.pl-root {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 4rem;
  }

  .pl-topbar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
  }

  .theme-dark .pl-topbar {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .pl-search-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
  }

  .pl-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgb(148, 163, 184);
    pointer-events: none;
    transition: color 0.3s;
  }

  .pl-search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    color: rgb(30, 41, 59);
    transition: all 0.3s;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
  }

  .pl-search-input:focus {
    outline: none;
    border-color: rgb(139, 92, 246);
    background: rgb(255, 255, 255);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
  }

  .theme-dark .pl-search-input {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgb(248, 250, 252);
  }

  .theme-dark .pl-search-input:focus {
    background: rgba(30, 41, 59, 0.8);
  }

  .pl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    white-space: nowrap;
  }

  .pl-btn-primary {
    background: linear-gradient(135deg, rgb(139, 92, 246), rgb(192, 38, 211));
    color: rgb(255, 255, 255);
    box-shadow: 0 4px 15px -3px rgba(192, 38, 211, 0.4);
  }

  .pl-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px -5px rgba(192, 38, 211, 0.5);
  }

  .pl-btn-primary:active {
    transform: translateY(0) scale(0.98);
  }

  .pl-btn-secondary {
    background: rgba(139, 92, 246, 0.1);
    color: rgb(139, 92, 246);
    border: 1px solid rgba(139, 92, 246, 0.2);
  }

  .pl-btn-secondary:hover {
    background: rgba(139, 92, 246, 0.2);
  }

  .pl-btn-ghost {
    background: transparent;
    color: rgb(100, 116, 139);
    border: none;
  }

  .pl-btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
    color: rgb(30, 41, 59);
  }

  .theme-dark .pl-btn-ghost {
    color: rgb(148, 163, 184);
  }

  .theme-dark .pl-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgb(248, 250, 252);
  }

  .pl-btn-danger {
    background: rgb(239, 68, 68);
    color: rgb(255, 255, 255);
    border: none;
    box-shadow: 0 4px 15px -3px rgba(239, 68, 68, 0.4);
  }

  .pl-btn-danger:hover {
    background: rgb(220, 38, 38);
  }

  .pl-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    color: rgb(100, 116, 139);
    cursor: pointer;
    transition: all 0.2s;
  }

  .pl-btn-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    color: rgb(30, 41, 59);
  }

  .pl-btn-icon.pl-danger:hover {
    color: rgb(239, 68, 68);
    background: rgba(239, 68, 68, 0.1);
  }

  .theme-dark .pl-btn-icon {
    color: rgb(148, 163, 184);
  }

  .theme-dark .pl-btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgb(248, 250, 252);
  }

  .pl-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 1.5rem;
    margin-top: 2rem;
  }

  .theme-dark .pl-empty-state {
    border-color: rgba(255, 255, 255, 0.1);
  }

  .pl-empty-icon {
    margin-bottom: 1.5rem;
    color: rgb(139, 92, 246);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
  }

  .pl-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(30, 41, 59);
    margin-bottom: 0.5rem;
  }

  .pl-empty-desc {
    font-size: 1.125rem;
    color: rgb(100, 116, 139);
    max-width: 400px;
    margin-bottom: 2rem;
    line-height: 1.6;
  }

  .theme-dark .pl-empty-title {
    color: rgb(248, 250, 252);
  }

  .theme-dark .pl-empty-desc {
    color: rgb(148, 163, 184);
  }

  .pl-no-results {
    text-align: center;
    padding: 3rem;
    color: rgb(100, 116, 139);
    font-size: 1.125rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1rem;
    grid-column: 1 / -1;
  }

  .pl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
  }

  .pl-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all 0.3s;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
  }

  .pl-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgb(139, 92, 246), rgb(192, 38, 211));
    opacity: 0;
    transition: opacity 0.3s;
  }

  .pl-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
  }

  .pl-card:hover::before {
    opacity: 1;
  }

  .theme-dark .pl-card {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .pl-card-top {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .pl-card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: rgb(15, 23, 42);
    line-height: 1.3;
  }

  .theme-dark .pl-card-title {
    color: rgb(248, 250, 252);
  }

  .pl-card-actions {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
  }

  .pl-card-body {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
  }

  .theme-dark .pl-card-body {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
  }

  .pl-card-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgb(71, 85, 105);
    white-space: pre-wrap;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
  }

  .theme-dark .pl-card-text {
    color: rgb(203, 213, 225);
  }

  .pl-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pl-card-tag {
    background: rgba(139, 92, 246, 0.1);
    color: rgb(124, 58, 237);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
  }

  .theme-dark .pl-card-tag {
    background: rgba(139, 92, 246, 0.15);
    color: rgb(167, 139, 250);
  }

  .pl-star-btn {
    color: rgb(203, 213, 225);
  }

  .pl-star-btn:hover {
    color: rgb(245, 158, 11);
    background: rgba(245, 158, 11, 0.1);
  }

  .pl-star-icon.pl-starred {
    color: rgb(245, 158, 11);
    fill: rgb(245, 158, 11);
  }

  .pl-var-highlight {
    background: rgba(139, 92, 246, 0.2);
    color: rgb(124, 58, 237);
    padding: 0 0.25rem;
    border-radius: 0.25rem;
    font-weight: 600;
  }

  .pl-var-highlight.pl-var-filled {
    background: rgba(16, 185, 129, 0.2);
    color: rgb(5, 150, 105);
  }

  .theme-dark .pl-var-highlight {
    background: rgba(139, 92, 246, 0.3);
    color: rgb(167, 139, 250);
  }

  .theme-dark .pl-var-highlight.pl-var-filled {
    background: rgba(16, 185, 129, 0.3);
    color: rgb(52, 211, 153);
  }

  .pl-card-vars {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(139, 92, 246, 0.05);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px dashed rgba(139, 92, 246, 0.3);
  }

  .pl-card-vars-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgb(139, 92, 246);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
  }

  .pl-var-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    color: rgb(30, 41, 59);
    box-sizing: border-box;
  }

  .theme-dark .pl-var-input {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgb(248, 250, 252);
  }

  .pl-modal {
    padding: 0;
    border: none;
    background: transparent;
    max-width: 600px;
    width: 90%;
    border-radius: 1.5rem;
    margin: auto;
    overflow: visible;
  }

  .pl-modal::backdrop {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .pl-modal[open]::backdrop {
    opacity: 1;
  }

  .pl-modal-container {
    background: rgb(255, 255, 255);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }

  .theme-dark .pl-modal-container {
    background: rgb(30, 41, 59);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .pl-modal.pl-modal-open .pl-modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  .pl-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
  }

  .pl-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgb(139, 92, 246), rgb(192, 38, 211));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .pl-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .pl-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .pl-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgb(51, 65, 85);
  }

  .theme-dark .pl-label {
    color: rgb(226, 232, 240);
  }

  .pl-input {
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgb(248, 250, 252);
    font-size: 1rem;
    color: rgb(30, 41, 59);
    transition: all 0.2s;
    box-sizing: border-box;
  }

  .pl-textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgb(248, 250, 252);
    font-size: 1rem;
    color: rgb(30, 41, 59);
    transition: all 0.2s;
    box-sizing: border-box;
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
  }

  .theme-dark .pl-input {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgb(248, 250, 252);
  }

  .theme-dark .pl-textarea {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgb(248, 250, 252);
  }

  .pl-input:focus {
    outline: none;
    border-color: rgb(139, 92, 246);
    background: rgb(255, 255, 255);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
  }

  .pl-textarea:focus {
    outline: none;
    border-color: rgb(139, 92, 246);
    background: rgb(255, 255, 255);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
  }

  .theme-dark .pl-input:focus {
    background: rgba(15, 23, 42, 0.9);
  }

  .theme-dark .pl-textarea:focus {
    background: rgba(15, 23, 42, 0.9);
  }

  .pl-hint {
    font-size: 0.85rem;
    color: rgb(100, 116, 139);
    margin-top: 0.25rem;
  }

  .theme-dark .pl-hint {
    color: rgb(148, 163, 184);
  }

  .pl-tags-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgb(248, 250, 252);
    min-height: 3.5rem;
    transition: all 0.2s;
    align-items: center;
    cursor: text;
  }

  .theme-dark .pl-tags-input-wrapper {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .pl-tags-input-wrapper:focus-within {
    border-color: rgb(139, 92, 246);
    background: rgb(255, 255, 255);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
  }

  .theme-dark .pl-tags-input-wrapper:focus-within {
    background: rgba(15, 23, 42, 0.9);
  }

  .pl-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pl-tags-input-field {
    flex-grow: 1;
    min-width: 150px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: rgb(30, 41, 59);
    padding: 0.25rem 0;
    outline: none;
  }

  .theme-dark .pl-tags-input-field {
    color: rgb(248, 250, 252);
  }

  .pl-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .theme-dark .pl-modal-footer {
    border-top-color: rgba(255, 255, 255, 0.05);
  }

  .pl-confirm-dialog {
    max-width: 400px;
  }

  .pl-confirm-container {
    text-align: center;
  }

  .pl-confirm-icon {
    margin-bottom: 1rem;
    color: rgb(239, 68, 68);
  }

  .pl-confirm-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgb(15, 23, 42);
    margin-bottom: 0.5rem;
  }

  .theme-dark .pl-confirm-title {
    color: rgb(248, 250, 252);
  }

  .pl-confirm-desc {
    font-size: 1rem;
    color: rgb(100, 116, 139);
    margin-bottom: 1.5rem;
  }

  .pl-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }

  @media (min-width: 768px) {
    .pl-topbar {
      flex-direction: row;
      padding: 1.25rem 2rem;
    }
  }