
 
    /* ── LAYOUT ── */
    .content-layout {
      display: grid;
      grid-template-columns: 1fr 300px;
      gap: 24px;
    }
	
	.content-layout a { color: var(--blue-500); }
 
    /* ── CARD ── */
    .card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-card);
      transition: background var(--transition), border-color var(--transition);
    }
 
    .card-padded { padding: 24px; }
 
    /* ── ACTION BAR ── */
    .action-bar {
      display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
      padding: 16px 20px;
      border-bottom: 1px solid var(--border);
    }
 
    .action-bar .spacer { flex: 1; }
 
    /* split button */
    .split-btn {
      display: inline-flex; border-radius: 999px; overflow: hidden;
      box-shadow: 0 1px 4px rgba(37,99,235,.2);
    }
    .split-btn .main-btn {
      background: var(--blue-600); color: white; border: none;
      padding: 7px 16px; font-family: inherit; font-size: 0.8rem; font-weight: 600;
      cursor: pointer; display: flex; align-items: center; gap: 6px;
      transition: background var(--transition);
    }
    .split-btn .main-btn:hover { background: var(--blue-700); }
    .split-btn .drop-btn {
      background: var(--blue-700); color: white; border: none; border-left: 1px solid var(--blue-500);
      padding: 7px 10px; cursor: pointer; transition: background var(--transition); position: relative;
    }
    .split-btn .drop-btn:hover { background: var(--blue-800, #1e40af); }
    .split-btn .drop-btn svg { display: block; width: 12px; height: 12px; }
 
    /* inline dropdown */
    .inline-dropdown { position: relative; display: inline-flex; }
    .inline-dropdown-menu {
      display: none; position: absolute; top: calc(100% + 6px); right: 0;
      background: var(--bg-card); border: 1px solid var(--border);
      border-radius: var(--radius-md); box-shadow: 0 8px 32px rgba(15,23,42,.14);
      min-width: 200px; z-index: 50; overflow: hidden;
    }
    .inline-dropdown-menu.open { display: block; }
    .inline-dropdown-menu a, .inline-dropdown-menu button {
      display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
      padding: 10px 16px; border: none; background: none;
      font-family: inherit; font-size: 0.875rem; color: var(--text); cursor: pointer;
      transition: background var(--transition);
    }
    .inline-dropdown-menu a:hover, .inline-dropdown-menu button:hover {
      background: var(--blue-50); color: var(--blue-600); text-decoration: none;
    }
 
    /* social/utility buttons */
    .icon-btn {
      background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 999px;
      padding: 6px 14px; font-family: inherit; font-size: 0.8rem; font-weight: 500;
      color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
      transition: background var(--transition), border-color var(--transition), color var(--transition);
    }
    .icon-btn:hover { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue-600); }
    .icon-btn.liked { color: #ef4444; border-color: #fca5a5; background: #fff1f2; }
	
	h3 { margin-bottom: 10px; }
 
    /* ── LIST DISPLAY ── */
    .list-window {
      max-height: 1000px; min-height: 460px; overflow-y: auto;
      padding: 20px 24px;
      font-family: 'DM Mono', 'Fira Mono', 'Courier New', monospace;
      font-size: 0.9rem; line-height: 1.6;
    }
    .list-window::-webkit-scrollbar { width: 6px; }
    .list-window::-webkit-scrollbar-track { background: var(--bg-subtle); border-radius: 3px; }
    .list-window::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
 
    .list-window select { max-width: 100%; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); color: var(--text); font-family: inherit; }
	.list-window ul, .list-window ol {padding-left: 30px; }
 
 
    .report-link {
      display: flex; align-items: center; gap: 6px;
      padding: 12px 20px; font-size: 0.85rem; color: #ef4444 !important;
      border-top: 1px solid var(--border);
    }
    .report-link:hover { background: #fff1f2; text-decoration: none; border-radius:0 0 var(--radius-lg) var(--radius-lg);}
    [data-theme="dark"] .report-link:hover { background: rgba(239,68,68,.1); }
 
    /* ── SIDEBAR ── */
    .sidebar { display: flex; flex-direction: column; gap: 16px; }
 
    .meta-card .meta-row {
      display: flex; justify-content: space-between; align-items: center;
      padding: 10px 0; font-size: 0.875rem;
      border-bottom: 1px solid var(--border);
    }
    .meta-card .meta-row:last-child { border-bottom: none; }
    .meta-label {
      display: flex; align-items: center; gap: 7px;
      font-weight: 600; color: var(--text);
    }
    .meta-label svg { color: var(--blue-500); width: 16px; text-align: center; }
    .meta-value { color: var(--text-muted); text-align: right; }
 
    .controls-card { position: sticky; top: 80px; }
    .controls-card .ctrl-section-title {
      display: flex; align-items: center; gap: 6px;
      font-family: 'Quicksand', sans-serif; font-size: 0.85rem; font-weight: 700;
      text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted);
      padding: 14px 20px 8px;
    }
    .controls-card .ctrl-section-title svg { color: var(--blue-500); }
 
    .ctrl-divider { height: 1px; background: var(--border); margin-inline: 20px; }
 
    .radio-group { padding: 8px 20px 12px; display: flex; flex-direction: column; gap: 6px; }
 
    .radio-item {
      display: flex; align-items: center; gap: 10px;
      padding: 0 10px; border-radius: var(--radius-sm); cursor: pointer;
      transition: background var(--transition);
    }
    .radio-item:hover { background: var(--blue-50); }
    .radio-item input[type="radio"] { accent-color: var(--blue-600); cursor: pointer; width: 15px; height: 15px; flex-shrink: 0; }

.radio-item span { 
  font-size: 0.875rem; 
  color: var(--text); 
  cursor: pointer; 
  flex: 1; 
}
.radio-item button { float;right;}

/* Optional: Add this to ensure the whole row feels like a button */
.radio-item {
  user-select: none; /* Prevents accidental text highlighting on double clicks */
}

/* Container for the checkbox and label */
.checkbox-item {
  display: flex; 
  align-items: center; 
  gap: 10px;
  padding: 0 10px; 
  border-radius: var(--radius-sm); 
  cursor: pointer;
  transition: background var(--transition);
}

/* Hover state matching your radio style */
.checkbox-item:hover { 
  background: var(--blue-50); 
}

/* The checkbox input itself */
.checkbox-item input[type="checkbox"] { 
  accent-color: var(--blue-600); 
  cursor: pointer; 
  width: 15px; 
  height: 15px; 
  flex-shrink: 0; 
}

/* The label text */
.checkbox-item span { 
  font-size: 0.875rem; 
  color: var(--text); 
  cursor: pointer; 
  flex: 1; 
}
 
    /* ── DESCRIPTION CARD ── */
    .desc-card { padding: 28px 32px; grid-column: 1 / -1;}
    .desc-card h2 {
      font-family: 'Quicksand', sans-serif; font-size: 1.4rem; font-weight: 700;
      color: var(--text); margin-bottom: 12px;
    }
    .desc-card p { color: var(--text-muted); margin-bottom: 12px; line-height: 1.7; font-size: 0.95rem; }
    .desc-card h4 {
      font-family: 'Quicksand', sans-serif; font-size: 1rem; font-weight: 700;
      color: var(--text); margin: 24px 0 8px;
    }
    .desc-card ol, .desc-card ul {
      padding-inline-start: 20px; color: var(--text-muted);
      font-size: 0.925rem; line-height: 1.7; margin-bottom: 12px;
    }
    .desc-card li { margin-bottom: 10px; }
    .desc-card strong { color: var(--text); }
 
    /* ── MODAL ── */
    .modal-overlay {
      display: none; position: fixed; inset: 0; z-index: 200;
      background: rgba(15,23,42,.5); backdrop-filter: blur(4px);
      align-items: center; justify-content: center;
    }
    .modal-overlay.open { display: flex; }
    .modal-box {
      background: var(--bg-card); border: 1px solid var(--border);
      border-radius: var(--radius-lg); width: min(480px, calc(100vw - 48px));
      box-shadow: 0 20px 60px rgba(15,23,42,.2); overflow: hidden;
    }
    .modal-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 18px 24px; border-bottom: 1px solid var(--border);
    }
    .modal-header h5 {
      font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text);
    }
    .modal-close {
      background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 50%;
      width: 32px; height: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center;
      font-size: 0.8rem; color: var(--text-muted);
      transition: background var(--transition), color var(--transition);
    }
    .modal-close:hover { background: var(--border); color: var(--text); }
    .modal-body { padding: 20px 24px; }
    .modal-footer { padding: 14px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
 
    .del-input-wrap { text-align: center; margin-top: 12px; }
    .del-input {
      text-align: center; border: 1.5px solid var(--border); background: var(--bg-subtle);
      color: var(--text); border-radius: var(--radius-sm); padding: 8px 16px; width: 90px;
      font-family: inherit; font-size: 1rem; outline: none;
      transition: border-color var(--transition), box-shadow var(--transition);
    }
    .del-input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--blue-100); }
 
    /* ── BACK TOP ── */
    #back-top {
      position: fixed; bottom: 28px; right: 28px;
      width: 44px; height: 44px; background: var(--blue-600); border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; border: none;
      box-shadow: 0 4px 16px rgba(37,99,235,.35);
      opacity: 0; transform: translateY(16px); pointer-events: none;
      transition: opacity var(--transition), transform var(--transition), background var(--transition);
    }
    #back-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
    #back-top:hover { background: var(--blue-700); }
 
    /* ── TOAST ── */
    .toast {
      position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
      background: #1e293b; color: white; padding: 10px 20px;
      border-radius: 999px; font-size: 0.875rem; font-weight: 500;
      box-shadow: 0 4px 20px rgba(0,0,0,.25); opacity: 0;
      transition: opacity .3s, transform .3s; pointer-events: none; z-index: 300;
    }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@keyframes flash-effect {
  0% { background-color: rgba(255, 255, 0, 0.5); } /* Start: transparent yellow */
  100% { background-color: transparent; }        /* End: back to normal */
}

/* The class we will trigger with JS */
.flash-active {
  animation: flash-effect 1s ease-out;
}
	
    /* ── LIST DESCRIPTION ── */
    .list-description {
      padding: 20px 24px; color: var(--text-muted);
      font-size: 0.925rem; line-height: 1.7;
      border-bottom: 1px solid var(--border);
    }
 
    /* ── MOBILE ── */
    @media (max-width: 900px) {
      .nav-links, .nav-search-form, .nav-actions { display: none; }
      .nav-toggle { display: flex; align-items: center; justify-content: center; margin-inline-start: auto; }
      .nav-mobile {
        display: none; position: fixed; inset: 64px 0 0 0;
        background: var(--bg-card); z-index: 99; padding: 20px;
        overflow-y: auto; flex-direction: column; gap: 14px;
        border-top: 1px solid var(--border);
      }
      .nav-mobile.open { display: flex; }
      .nav-mobile-search { display: flex; gap: 8px; }
      .nav-mobile-search input {
        flex: 1; padding: 9px 14px; border: 1.5px solid var(--border);
        border-radius: var(--radius-sm); background: var(--bg-subtle); color: var(--text);
        font-family: inherit; font-size: 0.9rem; outline: none;
      }
      .nav-mobile-search button {
        background: var(--blue-600); color: white; border: none;
        border-radius: var(--radius-sm); padding: 9px 14px; font-family: inherit; font-weight: 600; cursor: pointer;
      }
      .nav-mobile-cats { display: flex; flex-direction: column; gap: 2px; }
      .nav-mobile-cats a {
        padding: 9px 12px; border-radius: var(--radius-sm);
        font-size: 0.9rem; color: var(--text);
      }
      .nav-mobile-cats a:hover { background: var(--blue-50); text-decoration: none; }
      .nav-mobile-actions { display: flex; gap: 10px; }
      .nav-mobile-actions .btn { flex: 1; justify-content: center; }
 
      .content-layout { grid-template-columns: 1fr; }
      .controls-card { position: static; }
    }