[x-cloak] { display:none !important; }

:root {
  --site-gutter: 16px;
  --site-content-standard: 1120px;
  --site-content-wide: 1400px;
  --site-content-narrow: 880px;
  --site-bg-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}
@media (min-width: 760px) {
  :root { --site-gutter: 24px; }
}
@media (min-width: 1180px) {
  :root { --site-gutter: 36px; }
}
.site-shell,
.site-shell-standard {
  width: min(var(--site-content-standard), calc(100vw - var(--site-gutter) - var(--site-gutter)));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}
.site-shell-wide {
  width: min(var(--site-content-wide), calc(100vw - var(--site-gutter) - var(--site-gutter)));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}
.site-shell-narrow {
  width: min(var(--site-content-narrow), calc(100vw - var(--site-gutter) - var(--site-gutter)));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}


.site-policy-footer {
  --site-policy-footer-bottom-space: 32px;
  margin-top: 28px;
  padding-top: 16px;
  padding-bottom: calc(var(--site-policy-footer-bottom-space) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-row, var(--border, var(--line, rgba(255,255,255,0.08))));
  color: var(--text-muted, var(--muted, rgba(230,228,224,0.62)));
  text-align: center;
}
.site-policy-footer__links {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 10px;
  flex-wrap: wrap;
  text-align: center;
}
.site-policy-footer__notice {
  margin: 0 0 2px;
  color: var(--text-muted, var(--muted, rgba(230,228,224,0.62)));
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 500;
  text-align: center;
}
.site-policy-footer__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, var(--muted, rgba(230,228,224,0.62)));
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 150ms ease;
}
.site-policy-footer__link:hover {
  color: var(--accent, #d4a04a);
}
.site-policy-footer__separator {
  width: 3px;
  height: 3px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
  color: var(--text-dim, var(--faint, rgba(230,228,224,0.34)));
  transform: translateY(0.5px);
}
@media (max-width: 640px) {
  .site-policy-footer {
    --site-policy-footer-bottom-space: 28px;
    margin-top: 24px;
    padding-top: 14px;
  }
  .site-policy-footer__links {
    gap: 0 9px;
  }
}

	  /* ═══ Design Tokens ═══════════════════════════════════════ */
  :root {
    --bg-body: #0a0a0c;
    --bg-header: #121214;
    --bg-surface: #1a1a1e;
    --bg-surface-hover: #24242a;
    --bg-card: #151517;
    --bg-card-elevated: rgba(21,21,24,0.82);
    --bg-input: #1a1a1e;
    --text-primary: #e6e4e0;
    --text-secondary: #a09890;
    --text-muted: #8b8174;
    --text-dim: #978a7c;
    --text-on-accent: #140f08;
    --accent: #d4a04a;
    --accent-glow: rgba(212, 160, 74, 0.25);
    --accent-soft: rgba(212, 160, 74, 0.08);
    --accent-strong: rgba(212, 160, 74, 0.95);
    --accent-border-soft: rgba(212,160,74,0.2);
    --border: rgba(255,255,255,0.06);
    --border-row: rgba(255,255,255,0.03);
    --accent-mid: rgba(212, 160, 74, 0.6);
    --accent-dim: rgba(212, 160, 74, 0.35);
    --text-inverse: #ffffff;
    --text-strong: rgba(255,252,245,1);
    --overlay-weak: rgba(255,255,255,0.02);
    --overlay-row: rgba(255,255,255,0.025);
    --overlay-row-hover: rgba(255,255,255,0.065);
    --overlay-row-active: rgba(212,160,74,0.08);
    --overlay-gold-soft: rgba(212,160,74,0.12);
    --overlay-gold-border: rgba(212,160,74,0.45);
    --overlay-gold-line: rgba(212,160,74,0.24);
    --overlay-gold-glow: rgba(212,160,74,0.45);
    --surface-border-weak: rgba(255,255,255,0.07);
    --surface-border-strong: rgba(255,255,255,0.08);
    --surface-border-soft: rgba(255,255,255,0.10);
    --surface-border-softer: rgba(255,255,255,0.05);
    --surface-border-hover: rgba(255,255,255,0.20);
    --surface-highlight-line: rgba(255,255,255,0.04);
    --surface-table-head: rgba(7,7,9,0.74);
    --surface-header-scanline: repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, transparent 1px, transparent 3px);
    --surface-signal-bg: linear-gradient(135deg, rgba(212,160,74,0.085), rgba(255,255,255,0.018) 46%, rgba(255,255,255,0.008));
    --surface-signal-hot-bg: linear-gradient(135deg, rgba(212,160,74,0.14), rgba(255,255,255,0.022) 48%, rgba(255,255,255,0.008));
    --surface-table-bg: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008) 130px);
    --surface-table-glow: radial-gradient(circle at 12% 0%, rgba(212,160,74,0.08), transparent 28%);
    --surface-mobile-card-bg: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
    --surface-mobile-card-hover-bg: linear-gradient(180deg, rgba(212,160,74,0.045), rgba(255,255,255,0.014));
    --copy-flash-bg: rgba(212,160,74,0.15);
    --meta-row-border: rgba(212,160,74,0.12);
    --badge-wash: rgba(212,160,74,0.04);
    --cat-movie-accent: rgba(74,222,128,0.3);
    --cat-tv-accent: rgba(96,165,250,0.3);
    --cat-doc-accent: rgba(251,146,60,0.3);
    --premium-row-bg: linear-gradient(90deg, rgba(212,160,74,0.07), rgba(255,255,255,0.026) 34%, transparent 100%);
    --premium-row-accent-soft: rgba(212,160,74,0.22);
    --premium-meta-bg: linear-gradient(90deg, rgba(212,160,74,0.045), rgba(255,255,255,0.018) 34%, transparent 100%);
    --premium-row-accent: rgba(251,191,36,0.62);
    --premium-row-accent-hover: rgba(251,191,36,0.9);
    --row-action-btn: 44px;
    --row-action-gap: 8px;
    --row-action-rail: calc(var(--row-action-btn) * 2 + var(--row-action-gap));
    --row-lock-rail: 64px;
    --row-unlocked-action-offset: calc((var(--row-action-rail) - var(--row-lock-rail)) / 2);
    --status-blue: #60a5fa;
    --status-blue-soft: rgba(96,165,250,0.12);
    --status-blue-border: rgba(96,165,250,0.25);
    --status-blue-glow: rgba(96,165,250,0.5);
    --status-green: #4ade80;
    --status-green-soft: rgba(74,222,128,0.12);
    --status-green-border: rgba(74,222,128,0.25);
    --status-orange: #fb923c;
    --status-orange-soft: rgba(251,146,60,0.12);
    --status-orange-border: rgba(251,146,60,0.25);
    --suggest-tv-bg: rgba(96, 165, 250, 0.15);
    --suggest-tv-fg: #93c5fd;
    --suggest-movie-bg: rgba(74, 222, 128, 0.15);
    --suggest-movie-fg: #86efac;
    --badge-remux-bg: rgba(245,158,11,0.22);
    --badge-remux-fg: #fcd34d;
    --badge-remux-border: rgba(245,158,11,0.55);
    --badge-webdl-bg: rgba(59,130,246,0.22);
    --badge-webdl-fg: #93c5fd;
    --badge-webdl-border: rgba(59,130,246,0.55);
    --badge-bdrip-bg: rgba(251,191,36,0.14);
    --badge-bdrip-fg: #fde68a;
    --badge-bdrip-border: rgba(251,191,36,0.38);
    --badge-webrip-bg: rgba(99,102,241,0.18);
    --badge-webrip-fg: #a5b4fc;
    --badge-webrip-border: rgba(99,102,241,0.42);
    --badge-dv-bg: rgba(139,92,246,0.25);
    --badge-dv-fg: #d8b4fe;
    --badge-dv-border: rgba(139,92,246,0.58);
    --badge-hdr10p-bg: rgba(5,150,105,0.22);
    --badge-hdr10p-fg: #6ee7b7;
    --badge-hdr10p-border: rgba(5,150,105,0.55);
    --badge-hdr-bg: rgba(16,185,129,0.18);
    --badge-hdr-fg: #86efac;
    --badge-hdr-border: rgba(16,185,129,0.45);
    --badge-atmos-bg: rgba(239,68,68,0.22);
    --badge-atmos-fg: #fca5a5;
    --badge-atmos-border: rgba(239,68,68,0.55);
    --badge-dtshd-bg: rgba(249,115,22,0.22);
    --badge-dtshd-fg: #fed7aa;
    --badge-dtshd-border: rgba(249,115,22,0.55);
    --badge-truehd-bg: rgba(236,72,153,0.22);
    --badge-truehd-fg: #f9a8d4;
    --badge-truehd-border: rgba(236,72,153,0.55);
    --badge-hevc-bg: rgba(51,65,85,0.55);
    --badge-hevc-fg: #cbd5e1;
    --badge-hevc-border: rgba(100,116,139,0.65);
    --badge-av1-bg: rgba(6,182,212,0.18);
    --badge-av1-fg: #67e8f9;
    --badge-av1-border: rgba(6,182,212,0.48);
    --seed-hot-bg: rgba(74,222,128,0.18);
    --seed-hot-fg: #86efac;
    --seed-warm-bg: rgba(74,222,128,0.10);
    --seed-warm-fg: #4ade80;
    --leech-fg: rgba(248,113,113,0.65);
    --leech-active-bg: rgba(248,113,113,0.10);
    --leech-active-fg: #fca5a5;
    --control-size-xs: 22px;
    --control-size-sm: 28px;
    --control-size-md: 44px;
    --icon-size-sm: 12px;
    --icon-size-md: 14px;
    --font-size-2xs: 9px;
    --font-size-xs: 10px;
    --font-size-sm: 11px;
    --font-size-md: 12px;
    --font-size-badge: 10px;
    --font-size-meta: 11px;
    --font-size-title: 14px;
    --table-cat-w: 64px;
    --table-action-w: var(--row-action-rail);
    --table-date-w: 88px;
    --table-size-w: 106px;
    --table-seed-w: 70px;
    --table-leech-w: 70px;
    --radius-xs: 4px;
    --radius-sm: 7px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --footer-pad-x: 16px;
    --footer-pad-top: 20px;
    --footer-pad-bottom: 24px;
    --footer-safe-extra: 0px;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.2);
    --shadow-board: 0 18px 50px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.03) inset;
    --shadow-toast: 0 4px 20px rgba(0,0,0,0.5);
    --shadow-search-dropdown: 0 12px 32px rgba(0,0,0,0.5);
    --shadow-search-focus: 0 4px 16px rgba(212,160,74,0.08);
  }

  /* ═══ Base ════════════════════════════════════════════════ */
  * { box-sizing: border-box; }
  html { background: var(--bg-body); background-image: var(--site-bg-texture); padding-top: constant(safe-area-inset-top); padding-top: env(safe-area-inset-top, 0px); }
  body {
    margin: 0;
    background: var(--bg-body);
    background-image: var(--site-bg-texture);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; cursor: pointer; border: none; font: inherit; }
  a { text-decoration: none; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
  :focus:not(:focus-visible) { outline: none; }
  .safe-bottom { padding-bottom: env(safe-area-inset-bottom, 8px); }
  /* Accessibility / SEO: visually hide content while keeping it in the DOM
     for Googlebot first-pass + screen readers. Standard a11y pattern. */
  .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px;
    overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  /* ═══ Footer Format Guide ══════════════════════════════════ */
  .site-footer {
    width: min(var(--site-content-wide), calc(100vw - var(--site-gutter) - var(--site-gutter)));
    margin: 48px auto 0;
    padding: 0 0 calc(var(--footer-pad-bottom) + env(safe-area-inset-bottom, var(--footer-safe-extra)));
    background: transparent;
    border-top: 0;
    color: var(--text-secondary);
  }
  .site-footer-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid var(--border-row);
    display: grid;
    gap: var(--space-4);
  }
  .format-guide-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0;
    padding-bottom: 2px;
  }
  .format-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
  }
  .format-guide-group {
    min-width: 0;
    border-top: 1px solid var(--border-row);
    padding-top: var(--space-3);
  }
  .format-guide-group-head {
    margin-bottom: var(--space-2);
  }
  .format-guide-group h3 {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12.5px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0;
  }
  .format-guide-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 48px;
    gap: var(--space-2);
  }
  .format-guide-link {
    min-width: 0;
    height: 48px;
    display: inline-grid;
    align-content: center;
    justify-items: start;
    gap: var(--space-1);
    padding: 6px var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--overlay-row);
    color: var(--text-primary);
    overflow: hidden;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
  }
  .format-guide-link:hover {
    border-color: var(--overlay-gold-border);
    background: var(--accent-soft);
  }
  .format-guide-name {
    color: var(--text-primary);
    font-size: 12px;
    line-height: 1.15;
    font-weight: 800;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 150ms ease;
  }
  .format-guide-link:hover .format-guide-name { color: var(--accent); }
  .format-guide-note {
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  @media (max-width: 900px) {
    .format-guide-grid {
      grid-template-columns: 1fr;
      gap: var(--space-4);
    }
  }
  @media (max-width: 600px) {
    :root {
      --footer-pad-x: var(--space-3);
      --footer-pad-top: var(--space-4);
      --footer-pad-bottom: var(--space-5);
    }
    .site-footer { margin-top: calc(var(--space-6) + var(--space-1)); padding-top: 0; }
    .site-footer-inner { gap: var(--space-4); padding-top: var(--space-4); }
    .format-guide-title { font-size: 17px; }
    .format-guide-grid { gap: var(--space-5); }
    .format-guide-group { padding-top: var(--space-3); }
    .format-guide-group-head { margin-bottom: var(--space-3); }
    .format-guide-group h3 { color: var(--accent); }
    .format-guide-links {
      grid-auto-rows: minmax(calc(var(--space-6) + var(--space-5)), auto);
      gap: 0;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      background: var(--overlay-row);
    }
    .format-guide-link {
      height: auto;
      min-height: calc(var(--space-6) + var(--space-5));
      padding-block: var(--space-2);
      padding-inline: var(--space-3);
      border: 0;
      border-radius: 0;
      background: transparent;
    }
    .format-guide-link:nth-child(2n) { border-inline-start: 1px solid var(--border); }
    .format-guide-link:nth-child(n + 3) { border-top: 1px solid var(--border); }
    .format-guide-link:hover { background: var(--accent-soft); }
    .format-guide-link:focus-visible {
      outline: 0;
      border-radius: var(--radius-sm);
      box-shadow: inset 0 0 0 2px var(--accent);
    }
    .format-guide-name {
      color: var(--text-strong);
      font-size: var(--font-size-md);
      line-height: 1.2;
    }
    .format-guide-note {
      display: -webkit-box;
      color: var(--text-secondary);
      font-size: var(--font-size-sm);
      line-height: 1.35;
      white-space: normal;
      overflow-wrap: anywhere;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }
  }

  /* ═══ Toast ══════════════════════════════════════════════ */
  .toast {
    position: fixed; bottom: calc(env(safe-area-inset-bottom, 0px) + 56px); left: 50%; transform: translateX(-50%);
    background: var(--accent-strong); color: var(--text-inverse); padding: 8px 20px; border-radius: var(--radius-md);
    font-size: 12px; font-weight: 600; z-index: 999; opacity: 0; transition: opacity 0.3s;
    backdrop-filter: blur(12px); box-shadow: var(--shadow-toast);
  }
  .toast.show { opacity: 1; }

  /* ═══ Support / Account panel ═══════════════════════════ */
  .support-overlay {
    position: fixed; inset: 0; z-index: 120;
    display: flex; align-items: center; justify-content: center;
    padding: 24px; background: rgba(0,0,0,0.66); backdrop-filter: blur(10px);
  }
  .support-panel {
    width: min(408px, calc(100vw - 32px));
    max-height: min(640px, calc(100vh - 48px));
    overflow-x: hidden; overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
      linear-gradient(180deg, rgba(212,160,74,0.055), transparent 118px),
      var(--bg-header);
    box-shadow: 0 22px 72px rgba(0,0,0,0.48);
  }
  .support-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:16px 16px 12px; }
  .support-heading { min-width:0; display:flex; align-items:center; gap:10px; }
  .support-logo {
    width:34px; height:34px; border-radius:var(--radius-md);
    display:flex; align-items:center; justify-content:center;
    background:var(--bg-card); border:1px solid var(--accent-border-soft);
    color:var(--accent); font-size:13px; font-weight:900; letter-spacing:-0.02em;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
    flex-shrink:0;
  }
  .support-title { color:var(--text-primary); font-size:16px; font-weight:850; line-height:1.2; }
  .support-sub { display:none; }
  .support-close { width:44px; height:44px; border-radius:var(--radius-sm); color:var(--text-muted); background:var(--bg-surface); border:1px solid var(--border); }
  .support-close:hover { color:var(--text-primary); border-color:var(--accent-dim); }
  .support-body { padding:0 16px 16px; display:grid; gap:12px; }
  .resource-unlock-overlay {
    position: fixed; inset: 0; z-index: 121;
    display: flex; align-items: center; justify-content: center;
    padding: 24px; background: rgba(0,0,0,0.66); backdrop-filter: blur(10px);
  }
  .resource-unlock-panel {
    width: min(432px, calc(100vw - 32px));
    max-height: min(620px, calc(100vh - 48px));
    overflow-x: hidden; overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
      linear-gradient(180deg, rgba(212,160,74,0.07), transparent 112px),
      var(--bg-header);
    box-shadow: 0 22px 72px rgba(0,0,0,0.48);
  }
  .resource-unlock-body { padding:0 16px 16px; display:grid; gap:10px; }
  .resource-unlock-card {
    display:grid; gap:5px; padding:12px;
    border:1px solid var(--accent-border-soft);
    border-radius:var(--radius-md);
    background:linear-gradient(180deg, rgba(212,160,74,0.08), rgba(212,160,74,0.025));
  }
  .resource-unlock-kicker { color:var(--accent); font-size:10px; line-height:1.25; font-weight:850; letter-spacing:0.08em; text-transform:uppercase; }
  .resource-unlock-title { color:var(--text-primary); font-size:13px; line-height:1.35; font-weight:850; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .resource-unlock-copy,
  .resource-unlock-meta { margin:0; color:var(--text-muted); font-size:11.5px; line-height:1.5; }
  .resource-unlock-meta { color:var(--text-secondary); }
  .resource-unlock-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .resource-membership-list { display:grid; gap:8px; }
  .resource-membership-card {
    display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:10px; align-items:center;
    border:1px solid var(--border); border-radius:var(--radius-md); padding:11px;
    background:var(--bg-surface);
  }
  .resource-membership-name { color:var(--text-primary); font-size:13px; font-weight:850; line-height:1.25; overflow-wrap:anywhere; }
  .resource-membership-meta { margin-top:3px; color:var(--text-muted); font-size:11px; line-height:1.4; }
  .resource-membership-price { color:var(--accent); font-size:12px; font-weight:850; line-height:1.3; white-space:nowrap; }
  .resource-membership-card .support-primary { min-width:88px; }
  .resource-unlock-panel.is-membership .resource-membership-card {
    grid-template-columns:minmax(0, 1fr) auto;
  }
  .resource-unlock-panel.is-membership .support-primary {
    width:auto;
    min-width:88px;
  }
  .support-row { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:8px; align-items:center; }
  .auth-panel {
    display:grid; gap:10px;
    padding:12px;
    border:1px solid var(--border);
    border-radius:var(--radius-md);
    background:var(--bg-card);
  }
  .auth-preview-note {
    padding:9px 10px;
    border:1px solid var(--accent-border-soft);
    border-radius:var(--radius-sm);
    background:var(--accent-soft);
    color:var(--text-secondary);
    font-size:11px;
    line-height:1.45;
  }
  .support-input {
    min-height:44px; min-width:0; border-radius:var(--radius-sm);
    border:1px solid var(--border); background:var(--bg-input); color:var(--text-primary);
    padding:0 12px; outline:none; font-size:13px;
  }
  .support-input:focus { border-color:var(--accent-dim); box-shadow:0 0 0 2px var(--accent-soft); }
  .support-input:disabled { opacity:0.55; }
  .support-textarea { min-height:86px; resize:vertical; padding:9px 12px; line-height:1.45; }
  .support-message-form { display:grid; gap:8px; }
  .auth-code-row { margin-top:-2px; }
  .auth-email-row { padding-top:2px; }
  .auth-method-block { display:grid; gap:8px; padding-top:2px; }
  .auth-method-label { color:var(--text-muted); font-size:10px; font-weight:750; text-transform:uppercase; letter-spacing:0.08em; }
  .support-primary, .support-secondary {
    min-height:44px; border-radius:var(--radius-sm); padding:0 13px; font-size:12px; font-weight:800;
  }
  .support-primary { background:var(--accent); color:var(--text-on-accent); white-space:nowrap; }
  .support-primary:disabled { opacity:0.55; cursor:not-allowed; }
  .support-secondary { background:var(--bg-surface); color:var(--text-secondary); border:1px solid var(--border); }
  .auth-provider-list { display:grid; grid-template-columns:1fr; gap:8px; }
  .auth-provider {
    min-height:46px; width:100%; border-radius:var(--radius-md); border:1px solid var(--border);
    background:var(--bg-surface); color:var(--text-primary); font-size:13px; font-weight:800;
    display:flex; align-items:center; justify-content:center; gap:9px;
  }
  .auth-provider:hover { border-color:var(--accent-dim); background:var(--accent-soft); }
  .auth-provider:disabled { opacity:0.55; cursor:not-allowed; }
  .auth-provider .provider-mark {
    width:20px; height:20px; border-radius:var(--radius-xs);
    display:flex; align-items:center; justify-content:center;
    color:var(--accent-mid); background:rgba(255,255,255,0.03);
    font-size:13px; font-weight:850; flex-shrink:0;
  }
  .auth-provider-google .provider-mark { color:#f5d08a; }
  .auth-provider-apple .provider-mark { color:var(--text-primary); font-size:15px; }
  .auth-divider { display:flex; align-items:center; gap:10px; color:var(--text-muted); font-size:10px; line-height:1; margin:2px 0 0; }
  .auth-divider:before, .auth-divider:after { content:""; flex:1; height:1px; background:var(--border); }
  .auth-stack { display:grid; gap:10px; }
  .auth-email-block { display:grid; gap:8px; }
  .auth-email-form { display:grid; gap:8px; }
  .auth-mode-switch {
    display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:3px;
    padding:3px; border:1px solid var(--border); border-radius:var(--radius-sm);
    background:var(--bg-surface);
  }
  .auth-mode-option {
    min-height:44px; border-radius:var(--radius-xs); border:0;
    background:transparent; color:var(--text-muted); font-size:12px; font-weight:800;
  }
  .auth-mode-option.is-active { background:var(--bg-card); color:var(--text-primary); box-shadow:0 0 0 1px var(--border); }
  .auth-mode-option:disabled { opacity:0.55; cursor:not-allowed; }
  .auth-field-stack { display:grid; gap:8px; }
  .auth-reset-context {
    display:grid; gap:3px; padding:10px 12px;
    border:1px solid var(--border); border-radius:var(--radius-sm);
    background:var(--bg-surface);
  }
  .auth-reset-kicker { color:var(--text-muted); font-size:10px; font-weight:750; letter-spacing:0.08em; text-transform:uppercase; }
  .auth-reset-email { color:var(--text-primary); font-size:13px; line-height:1.35; overflow-wrap:anywhere; }
  .auth-submit { width:100%; }
  .account-summary { display:grid; gap:10px; }
  .account-card {
    display:grid; grid-template-columns:42px minmax(0, 1fr); gap:11px; align-items:center;
    padding:12px; border:1px solid var(--border); border-radius:var(--radius-md);
    background:var(--bg-card);
  }
  .account-avatar {
    width:42px; height:42px; border-radius:var(--radius-md);
    display:flex; align-items:center; justify-content:center;
    color:var(--accent); background:var(--accent-soft); border:1px solid var(--accent-border-soft);
    font-size:14px; font-weight:850;
  }
  .account-kicker { color:var(--text-muted); font-size:10px; font-weight:750; letter-spacing:0.08em; text-transform:uppercase; margin-bottom:3px; }
  .account-email { color:var(--text-primary); font-size:13px; font-weight:850; line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .account-provider { margin-top:3px; color:var(--text-muted); font-size:11px; line-height:1.35; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .account-metrics { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; }
  .account-metric {
    min-height:52px; padding:10px; border:1px solid var(--border); border-radius:var(--radius-md);
    background:var(--bg-surface);
  }
  .account-metric-value { color:var(--text-primary); font-size:16px; font-weight:850; line-height:1; }
  .account-metric-label { margin-top:5px; color:var(--text-muted); font-size:10px; font-weight:700; }
  .account-actions { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
  .account-actions .support-primary,
  .account-actions .support-secondary { min-width:96px; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }
  .account-ledger { display:grid; gap:7px; }
  .account-ledger-list { display:grid; gap:6px; }
  .ledger-row {
    min-height:46px; display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:10px; align-items:center;
    padding:9px 10px; border:1px solid var(--border); border-radius:var(--radius-md);
    background:var(--bg-surface); color:inherit;
  }
  .ledger-row:hover { border-color:var(--accent-dim); }
  .ledger-title { color:var(--text-primary); font-size:12px; font-weight:800; line-height:1.25; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .ledger-meta { margin-top:3px; color:var(--text-muted); font-size:10px; line-height:1.35; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .ledger-delta { font-size:12px; font-weight:900; white-space:nowrap; }
  .ledger-delta.is-positive { color:var(--success); }
  .ledger-delta.is-negative { color:var(--error); }
  .pill-status {
    display:inline-flex; align-items:center; min-height:24px; border:1px solid var(--border);
    border-radius:999px; padding:0 8px; color:var(--text-muted); font-size:10px; font-weight:800; white-space:nowrap;
  }
  .support-section { display:grid; gap:8px; }
  .support-section-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
  .support-section-title { color:var(--text-secondary); font-size:11px; font-weight:850; letter-spacing:0.08em; text-transform:uppercase; }
  .support-reply-alert {
    display:grid; gap:7px; padding:11px;
    border:1px solid var(--accent-border-soft); border-radius:var(--radius-md);
    background:linear-gradient(180deg, rgba(212,160,74,0.11), rgba(212,160,74,0.035));
  }
  .support-reply-alert-title { color:var(--text-primary); font-size:13px; font-weight:850; line-height:1.25; }
  .support-reply-alert-body { color:var(--text-secondary); font-size:12px; line-height:1.45; overflow-wrap:anywhere; white-space:pre-wrap; }
  .support-reply-alert-meta { color:var(--text-muted); font-size:10px; line-height:1.35; }
  .support-reply-alert-action { justify-self:start; min-height:44px; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }
  .support-message-reply {
    margin-top:6px; color:var(--accent); font-size:11px; line-height:1.45;
    overflow-wrap:anywhere; white-space:normal;
  }
  .support-product-list { display:grid; gap:8px; }
  .support-product {
    border:1px solid var(--border); border-radius:var(--radius-md); padding:11px;
    background:var(--bg-surface); display:grid; grid-template-columns:minmax(0, 1fr) auto;
    gap:10px; align-items:center;
  }
  .support-product-title { color:var(--text-primary); font-size:13px; font-weight:850; line-height:1.25; overflow-wrap:anywhere; }
  .support-product-meta { color:var(--text-muted); font-size:11px; line-height:1.45; margin-top:3px; }
  .support-product .support-primary { min-width:92px; }
  .support-product-actions { display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; }
  .support-product-actions .support-primary,
  .support-product-actions .support-secondary { min-width:92px; }
  .support-crypto {
    display:grid;
    gap:8px;
    padding:10px;
    border:1px solid var(--border);
    border-radius:var(--radius-sm);
    background:var(--bg-surface);
  }
  .support-crypto-line { display:grid; gap:4px; }
  .support-crypto-label { color:var(--text-muted); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:0.06em; }
  .support-crypto-value { color:var(--text-secondary); font-size:12px; font-weight:750; overflow-wrap:anywhere; }
  .support-crypto-actions { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:8px; align-items:center; }
  .support-terms {
    border:1px solid var(--border); border-radius:var(--radius-md); padding:10px 11px;
    background:rgba(255,255,255,0.018); display:grid; gap:6px;
  }
  .support-note { color:var(--text-muted); font-size:11px; line-height:1.5; margin:0; }
  .support-note-error { color:var(--accent-mid); }
  .support-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break:break-all; color:var(--text-secondary); background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-sm); padding:8px; font-size:11px; }
  .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  @media (max-width: 480px) {
    .support-overlay { align-items:flex-end; padding:12px; }
    .support-panel { width:100%; max-height:calc(100vh - 24px); }
    .resource-unlock-overlay { align-items:center; padding:24px; }
    .resource-unlock-panel { width:min(432px, calc(100vw - 32px)); max-height:min(620px, calc(100vh - 48px)); }
    .resource-membership-card { grid-template-columns:1fr; }
    .resource-membership-card .support-primary { width:100%; }
    .resource-unlock-panel.is-membership .resource-membership-card { grid-template-columns:minmax(0, 1fr) auto; }
    .resource-unlock-panel.is-membership .support-primary { width:auto; min-width:88px; }
    .support-row { grid-template-columns:1fr; }
    .support-primary { width:100%; }
    .support-product { grid-template-columns:1fr; }
    .support-product .support-primary { width:100%; }
    .support-product-actions { justify-content:stretch; }
    .support-product-actions .support-primary,
    .support-product-actions .support-secondary { flex:1 1 100%; }
    .support-crypto-actions { grid-template-columns:1fr; }
  }

  /* ═══ Brand ══════════════════════════════════════════════ */
  /* Single rasterized icon unifies header + PWA home-screen visual. */
  .brand { display: flex; align-items: center; text-decoration: none; }
  .brand img { display: block; width: 44px; height: 44px; border-radius: var(--radius-lg); }
  /* Time filter pills */
  .time-pill {
    min-height: 44px;
    min-width: 44px;
    padding: 8px 12px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 600;
    white-space: nowrap; flex-shrink: 0; transition: all 0.15s; cursor: pointer;
    border: 1px solid transparent; background: none; color: var(--text-muted);
  }
  .time-pill:hover { color: var(--text-secondary); }
  .time-pill--active { color: var(--accent); border-color: var(--accent-dim); }

  /* Dedicated time-range row — always visible, left-aligned, sits below category row */
  .filter-row-time {
    justify-content: flex-start;
    gap: 4px;
    margin-top: 2px;
    min-height: 44px;
  }

  /* ═══ Header ═════════════════════════════════════════════ */
  .site-header {
    position: relative;
    z-index: 40;
    width: min(var(--site-content-wide), calc(100vw - var(--site-gutter) - var(--site-gutter)));
    margin: 10px auto 0;
    background: transparent;
    border-bottom: 0;
    padding: 12px 0 8px;
  }
  .site-header::after {
    display: none;
  }
  .header-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    position: relative;
    z-index: 1;
  }
  .header-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .header-actions { display: flex; align-items: center; gap: 8px; }
  .header-meta { font-size: 11px; color: var(--text-muted); }
  .search-btn,
  .calendar-btn,
  .support-btn {
    width: var(--control-size-md);
    min-width: var(--control-size-md);
    height: var(--control-size-md);
    min-height: var(--control-size-md);
    padding: 0;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    font-size: 0;
    text-decoration: none;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
  }
  .search-btn,
  .support-btn {
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-secondary);
  }
  .support-btn { position: relative; }
  .search-btn:hover,
  .support-btn:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-dim); }
  .support-btn.has-reply::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--status-blue);
    box-shadow: 0 0 0 2px var(--bg-surface), 0 0 8px var(--status-blue-glow);
  }
  .lang-btn {
    min-height: var(--control-size-md);
    height: var(--control-size-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    transition: color 0.15s, background 0.15s, border-color 0.15s;
  }
  .lang-btn {
    width: var(--control-size-md); min-width: var(--control-size-md); padding: 0;
    color: var(--text-secondary); font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .lang-btn:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
  .calendar-btn {
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-secondary);
  }
  .calendar-btn:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-dim); }
  .search-btn .search-icon,
  .calendar-btn .icon-sm,
  .support-btn .support-icon {
    display: block;
    width: var(--icon-size-md);
    height: var(--icon-size-md);
  }
  .search-btn .search-label,
  .calendar-btn .cal-label,
  .support-btn .support-label { display: none; }

  /* ═══ Filter System ══════════════════════════════════════ */
  .filter-zone { display: flex; flex-direction: column; gap: 4px; }
  .filter-row-group-break { margin-top: 6px; }
  .filter-row {
    display: flex; align-items: center; gap: 8px;
    position: relative;
  }
  .filter-row-scrollable {
    display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
    min-height: 46px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 2px;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }
  .filter-row-scrollable::-webkit-scrollbar { display: none; }
  /* Remove fade mask when scrolled to end */
  .filter-row-scrollable.scrolled-end {
    mask-image: none; -webkit-mask-image: none;
  }
  @media (min-width: 1024px) {
    .filter-row-scrollable {
      overflow-x: auto;
      flex-wrap: nowrap;
      mask-image: linear-gradient(to right, black 92%, transparent 100%);
      -webkit-mask-image: linear-gradient(to right, black 92%, transparent 100%);
    }
  }
  .filter-label {
    font-size: 11px; color: var(--text-muted); flex-shrink: 0; width: 32px;
    font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  }
  .filter-pill {
    min-height: 44px;
    min-width: 44px;
    padding: 8px 12px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600;
    white-space: nowrap; flex-shrink: 0; transition: all 0.15s ease;
    border: 1px solid transparent;
  }
  .filter-pill:active { transform: scale(0.95); }
  .filter-pill-cat {
    padding: 8px 12px; font-size: 12px;
  }
  .filter-pill--active { background: var(--accent); color: var(--text-on-accent); border-color: transparent; }
  .filter-pill--inactive { background: var(--bg-surface); color: var(--text-secondary); border-color: var(--border); }
  .filter-pill--inactive:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
  .filter-pill--active-secondary { background: var(--accent-dim); color: var(--text-inverse); border-color: var(--accent-border-soft); }
  .filter-pill-sm { padding: 8px 10px; font-size: 11px; }
  .filter-sep {
    display: inline-block; width: 1px; height: 16px; flex-shrink: 0;
    background: var(--text-dim); opacity: 0.4; align-self: center;
  }

  /* ═══ Search ═════════════════════════════════════════════ */
  .search-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
  .search-wrap { flex: 1; position: relative; }
  .search-input {
    min-height: 44px;
    width: 100%; padding: 8px 36px 8px 12px;
    background: var(--bg-surface); color: var(--text-primary);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    font-size: 13px; transition: all 0.15s; outline: none;
  }
  .search-input::placeholder { color: var(--text-muted); }
  .search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow), var(--shadow-search-focus);
  }
  .search-clear {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    min-width: 44px; min-height: 44px;
    background: none; color: var(--text-muted); font-size: 18px; line-height: 1; padding: 4px;
  }
  /* ═══ Search dropdown (history + live suggestions) ═══════ */
  .search-dropdown {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px);
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-search-dropdown);
    max-height: 60vh; overflow-y: auto; z-index: 50;
    backdrop-filter: blur(8px);
  }
  .search-dropdown-section { padding: 4px; }
  .suggest-item {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 8px 12px; border-radius: var(--radius-sm);
    color: var(--text-primary); cursor: pointer; transition: background 0.12s;
  }
  .suggest-item:hover { background: var(--bg-surface); }
  .suggest-name { font-size: 13px; line-height: 1.3; flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .suggest-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0;
    font-size: 11px; color: var(--text-muted); }
  .suggest-badge { padding: 1px 6px; border-radius: var(--radius-xs); font-weight: 700;
    font-size: 10px; letter-spacing: 0.03em; }
  .suggest-badge.badge-tv { background: var(--suggest-tv-bg); color: var(--suggest-tv-fg); }
  .suggest-badge.badge-movie { background: var(--suggest-movie-bg); color: var(--suggest-movie-fg); }
  .suggest-count { white-space: nowrap; }

  .history-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 12px 4px; font-size: 10px; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-muted); font-weight: 700;
  }
  .history-clear { background: none; color: var(--text-muted); font-size: 11px;
    padding: 2px 6px; border-radius: var(--radius-xs); transition: color 0.12s; text-transform: none; letter-spacing: 0; font-weight: 500; }
  .history-clear:hover { color: var(--accent); }
  .history-item {
    display: flex; align-items: stretch; border-radius: var(--radius-sm);
    transition: background 0.12s;
  }
  .history-item:hover { background: var(--bg-surface); }
  .history-pick {
    flex: 1; display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; background: none; color: var(--text-primary);
    font-size: 13px; text-align: left; min-width: 0;
  }
  .history-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .history-icon { color: var(--text-muted); flex-shrink: 0; }
  .history-remove {
    min-width: 44px; min-height: 44px; padding: 0 12px; background: none; color: var(--text-muted);
    font-size: 16px; line-height: 1; opacity: 0; transition: opacity 0.12s, color 0.12s;
  }
  .history-item:hover .history-remove,
  .history-item:focus-within .history-remove { opacity: 1; }
  .history-remove:hover { color: var(--accent); }
  @media (max-width: 600px) {
    .search-dropdown { max-height: 50vh; }
    .history-remove { opacity: 1; }
  }

  /* ═══ Resource Signal Strip ══════════════════════════════ */
  .signal-strip {
    display: none !important;
  }
  .signal-card {
    min-width: 0;
    flex: 1;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--surface-border-soft);
    background:
      linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005)),
      var(--bg-surface);
    box-shadow: none;
  }
  .signal-card-hot {
    border-color: var(--overlay-gold-line);
    background:
      var(--surface-signal-hot-bg),
      linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005)),
      var(--bg-surface);
  }
  .signal-card-hot .signal-value { color: var(--accent); }
  .signal-label {
    display: flex; align-items: center; gap: 6px;
    color: var(--text-secondary); font-size: 10px; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
  }
  .signal-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 10px var(--overlay-gold-glow);
    flex-shrink: 0;
  }
  .signal-main {
    margin-top: 3px; display: flex; align-items: baseline; gap: 8px; min-width: 0;
  }
  .signal-value {
    color: var(--text-primary); font-size: 16px; line-height: 1; font-weight: 800;
    font-variant-numeric: tabular-nums; white-space: nowrap;
  }
  .signal-sub {
    color: var(--text-muted); font-size: 10px; line-height: 1.35;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }

  /* ═══ Section Divider ════════════════════════════════════ */
  .section-divider {
    width: min(var(--site-content-wide), calc(100vw - var(--site-gutter) - var(--site-gutter)));
    max-width: none;
    margin: 0 auto;
    padding: 16px 0 10px;
    display: flex; align-items: center; gap: 12px;
    border-top: 1px solid var(--border);
  }
  .section-label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent-mid);
    text-transform: uppercase; flex-shrink: 0;
  }
  .section-line {
    flex: 1; height: 1px;
    background: linear-gradient(90deg, var(--overlay-gold-line), var(--border), transparent 86%);
  }
  .section-count {
    font-size: 10px; color: var(--text-secondary); font-weight: 600; flex-shrink: 1;
    font-variant-numeric: tabular-nums;
    min-width: 0;
    text-align: right;
  }

  /* ═══ Data Table ═════════════════════════════════════════ */
  .table-wrap {
    width: min(var(--site-content-wide), calc(100vw - var(--site-gutter) - var(--site-gutter)));
    max-width: none;
    margin: 0 auto;
    padding: 0 0 64px;
  }
  .table-scroll {
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    border: 1px solid var(--surface-border-weak);
    border-radius: var(--radius-md);
    background:
      var(--surface-table-bg),
      var(--surface-table-glow),
      var(--bg-card-elevated);
    box-shadow: var(--shadow-board);
  }
  .table-scroll::-webkit-scrollbar { display: none; }
  .data-table {
    width: 100%; min-width: calc(var(--table-cat-w) + 360px + var(--table-action-w) + var(--table-date-w) + var(--table-size-w) + var(--table-seed-w) + var(--table-leech-w));
    border-collapse: separate; border-spacing: 0; font-size: 13px;
    table-layout: fixed;
  }
  .data-table col.col-cat-track { width: var(--table-cat-w); }
  .data-table col.col-action-track { width: var(--table-action-w); }
  .data-table col.col-date-track { width: var(--table-date-w); }
  .data-table col.col-size-track { width: var(--table-size-w); }
  .data-table col.col-seed-track { width: var(--table-seed-w); }
  .data-table col.col-leech-track { width: var(--table-leech-w); }

  /* Table head */
  .data-table thead th {
    padding: 15px 10px; text-align: left; font-size: 10px; font-weight: 700;
    line-height: 14px;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary);
    background: var(--surface-table-head); white-space: nowrap;
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--surface-border-strong);
    border-bottom: 2px solid var(--accent); position: sticky; top: 0; z-index: 2;
  }
  .data-table { margin-top: 0; }
  .data-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
  .data-table thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
  .data-table .th-right { text-align: right; }
  .sort-btn { cursor: pointer; user-select: none; transition: color 0.15s; min-height: 44px; }
  .sort-btn:hover { color: var(--accent); }
  .sort-arrow { color: var(--accent); margin-left: 2px; }

  /* Table rows */
  .data-table tbody tr {
    border-bottom: 1px solid var(--border-row);
    transition: background 0.15s ease, box-shadow 0.15s ease;
    animation: rowIn 0.25s ease both;
    box-shadow: inset 3px 0 0 var(--cat-accent, transparent);
  }
  @keyframes rowIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .data-table tbody tr:nth-child(odd) { background: var(--overlay-row); }
  .data-table tbody tr:hover {
    background: var(--overlay-row-hover);
    box-shadow: inset 3px 0 0 var(--accent) !important;
  }
  .data-table tbody tr:active {
    background: var(--overlay-row-active);
    transform: scale(0.998);
  }
  .just-copied { animation: copy-flash 0.4s ease-out; }
  @keyframes copy-flash { 0% { background: var(--copy-flash-bg); } 100% { background: transparent; } }

  /* ── Table cells ── */
  .data-table tbody td {
    padding: 8px 10px; vertical-align: middle; transition: background 0.15s;
  }

  /* Row 1 (data row): bottom border only after row 2 */
  .row-data { border-bottom: none; }
  .row-data td { padding: 8px 10px 5px; }
  .row-data .action-cell { padding-left: 4px; padding-right: 4px; }
  /* Row 2 (meta row): badges + tech, visually grouped with row 1 */
  .row-meta { border-bottom: 1px solid var(--meta-row-border); }
  .row-meta td { padding: 0 10px 8px; vertical-align: top; min-height: 28px; }
  .row-meta:hover, .row-data:hover + .row-meta { background: var(--overlay-weak); }
  .row-data:hover { background: var(--overlay-weak); }

  /* Category group — colored left accent bar per category */
  .cat-group-movie  { --cat-accent: var(--cat-movie-accent); }
  .cat-group-tvshow { --cat-accent: var(--cat-tv-accent); }
  .cat-group-doc    { --cat-accent: var(--cat-doc-accent); }

  /* Category column */
  .cat-cell { white-space: nowrap; text-align: center; }
  .cat-pill {
    display: inline-flex; align-items: center; justify-content: center; font-size: var(--font-size-badge); font-weight: 700; padding: 1px 6px;
    border-radius: var(--radius-xs); letter-spacing: 0.04em; line-height: 1.4;
  }
  .cat-pill-movie { background: var(--status-green-soft); color: var(--status-green); border: 1px solid var(--status-green-border); }
  .cat-pill-tv    { background: var(--status-blue-soft); color: var(--status-blue); border: 1px solid var(--status-blue-border); }
  .cat-pill-doc   { background: var(--status-orange-soft); color: var(--status-orange); border: 1px solid var(--status-orange-border); }

  /* Title and action columns */
  .title-cell { width: 100%; }
  .title-row {
    min-width: 0; max-width: 100%; overflow: hidden;
  }
  .title-link {
    display: block; width: 100%; max-width: 100%; min-height: 44px;
    color: var(--text-strong); text-decoration: none; font-weight: 750; font-size: var(--font-size-title);
    line-height: 1.45; transition: color 0.15s;
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .title-link:hover { color: var(--text-inverse); }
  .action-cell { width: var(--row-action-rail); text-align: right; white-space: nowrap; overflow: visible; }
  .title-icons {
    width: var(--row-action-rail);
    display: inline-grid;
    grid-template-columns: repeat(2, var(--row-action-btn));
    align-items: center;
    justify-content: end;
    gap: var(--row-action-gap);
  }
  .home-ssr-action-space {
    display: inline-block;
    width: var(--row-action-rail);
    height: var(--row-action-btn);
  }
  .row-locked .home-ssr-action-space { width: var(--row-lock-rail); }
  .home-hydration-probe [data-home-dynamic-resource] tr {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .action-btn {
    width: var(--row-action-btn); min-width: var(--row-action-btn); height: var(--row-action-btn); border-radius: var(--radius-sm); color: var(--accent-mid);
    background: transparent; transition: all 0.15s; position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0;
    overflow: visible;
  }
  .action-btn::after { content: ''; position: absolute; inset: -6px; }
  .action-btn:hover { color: var(--accent); background: var(--accent-soft); }
  .action-btn svg { width: 16px; height: 16px; display: block; flex: 0 0 auto; overflow: visible; }
  .lock-btn {
    grid-column: 1 / -1;
    width: var(--row-lock-rail);
    min-width: var(--row-lock-rail);
    color: var(--text-muted);
    border: 1px solid var(--accent-border-soft);
    background: var(--accent-soft);
  }
  .lock-btn:hover { color: var(--accent); border-color: var(--accent-dim); }
  .action-label {
    font-size: 9px; line-height: 1; letter-spacing: 0.02em;
    margin-top: 4px; opacity: 0.92; display: none;
  }
  .action-btn .check-icon {
    position: absolute; inset: 0; display: flex; align-items: center;
    justify-content: center; opacity: 0; transition: opacity 0.15s;
  }
  .action-btn.copied .original-icon { opacity: 0; }
  .action-btn.copied .check-icon { opacity: 1; }

  /* Premium row accent */
  .row-premium {
    background: var(--premium-row-bg) !important;
    box-shadow: inset 3px 0 0 var(--premium-row-accent) !important;
  }
  .row-premium:hover { box-shadow: inset 3px 0 0 var(--premium-row-accent-hover) !important; }
  .row-premium-meta {
    background: var(--premium-meta-bg) !important;
  }
  .new-dot {
    display: inline-block; width: 4px; height: 4px; border-radius: 50%;
    background: var(--status-blue); box-shadow: 0 0 4px var(--status-blue-glow);
    margin-left: 8px; vertical-align: middle;
  }

  /* ── Badges (unified compact radius) ── */
  .badge-row { display: flex; flex-wrap: wrap; gap: 4px; min-height: 22px; align-items: center; }
  .badge {
    display: inline-block; font-size: var(--font-size-meta); padding: 2px 6px; border-radius: var(--radius-xs);
    font-weight: 600; line-height: 1.4; white-space: nowrap; letter-spacing: 0.02em;
    border: 1px solid; box-shadow: inset 0 0 0 100px var(--badge-wash);
  }
  .badge-remux  { background: var(--badge-remux-bg); color: var(--badge-remux-fg); border-color: var(--badge-remux-border); }
  .badge-webdl  { background: var(--badge-webdl-bg); color: var(--badge-webdl-fg); border-color: var(--badge-webdl-border); }
  .badge-bdrip  { background: var(--badge-bdrip-bg); color: var(--badge-bdrip-fg); border-color: var(--badge-bdrip-border); }
  .badge-webrip { background: var(--badge-webrip-bg); color: var(--badge-webrip-fg); border-color: var(--badge-webrip-border); }
  .badge-dv     { background: var(--badge-dv-bg); color: var(--badge-dv-fg); border-color: var(--badge-dv-border); }
  .badge-hdr10p { background: var(--badge-hdr10p-bg); color: var(--badge-hdr10p-fg); border-color: var(--badge-hdr10p-border); }
  .badge-hdr    { background: var(--badge-hdr-bg); color: var(--badge-hdr-fg); border-color: var(--badge-hdr-border); }
  .badge-atmos  { background: var(--badge-atmos-bg); color: var(--badge-atmos-fg); border-color: var(--badge-atmos-border); }
  .badge-dtshd  { background: var(--badge-dtshd-bg); color: var(--badge-dtshd-fg); border-color: var(--badge-dtshd-border); }
  .badge-truehd { background: var(--badge-truehd-bg); color: var(--badge-truehd-fg); border-color: var(--badge-truehd-border); }
  .badge-hevc   { background: var(--badge-hevc-bg); color: var(--badge-hevc-fg); border-color: var(--badge-hevc-border); }
  .badge-av1    { background: var(--badge-av1-bg); color: var(--badge-av1-fg); border-color: var(--badge-av1-border); }
  .badge-new {
    color: var(--accent); background: var(--overlay-gold-soft);
    border: 1px solid var(--overlay-gold-border); border-radius: var(--radius-sm);
  }

  .resource-card-list { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
  .resource-card {
    min-width:0;
    color:inherit;
    text-decoration:none;
    border:1px solid var(--border, rgba(255,255,255,0.06));
    border-radius:var(--radius-md, 10px);
    background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012)), var(--bg-card, var(--bg-surface, #151517));
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.025);
    transition:border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
  }
  .resource-card:hover {
    border-color:var(--accent-border-soft, rgba(212,160,74,0.28));
    background:linear-gradient(180deg, rgba(212,160,74,0.045), rgba(255,255,255,0.014)), var(--bg-card, var(--bg-surface, #151517));
  }
  .resource-card:active { transform:scale(.998); }
  .resource-card--locked {
    border-color:var(--border, rgba(255,255,255,0.06));
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.025);
    background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012)), var(--bg-card, var(--bg-surface, #151517));
  }
  .resource-card--locked:hover,
  .resource-card--locked:focus-visible,
  .resource-card--locked:focus-within {
    border-color:rgba(212,160,74,0.30);
    box-shadow:inset 1px 0 0 rgba(251,191,36,0.82), inset 0 1px 0 rgba(255,255,255,0.025);
    background:linear-gradient(90deg, rgba(212,160,74,0.055), rgba(255,255,255,0.022) 34%, rgba(255,255,255,0.012)), var(--bg-card, var(--bg-surface, #151517));
  }
  .resource-card--hub { display:grid; grid-template-columns:34px minmax(0,1fr) minmax(260px,360px); gap:12px; align-items:center; min-height:74px; padding:12px 14px; }
  .resource-card--compact { --resource-compact-source-width:76px; display:grid; grid-template-columns:var(--resource-compact-source-width) minmax(0,1fr) max-content; gap:8px 10px; align-items:start; padding:10px 11px; }
  .resource-card--nested { display:grid; grid-template-columns:minmax(0,1fr) max-content; gap:8px 10px; align-items:center; padding:10px 12px; }
  .resource-card--nested .resource-card__actions,
  .resource-card--nested .resource-card__facts { justify-content:flex-end; }
  .resource-card__kind { align-self:start; padding-top:1px; }
  .resource-card__main { min-width:0; display:grid; gap:5px; }
  .resource-card__title { display:block; min-width:0; color:var(--text-primary, #e6e4e0); font-size:13px; line-height:1.38; font-weight:650; overflow-wrap:anywhere; }
  .resource-card--hub .resource-card__title { font-size:14px; font-weight:560; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  .resource-card__release { min-width:0; color:var(--text-muted, #92877a); font-size:11px; line-height:1.35; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .resource-card__facts { min-width:0; display:flex; flex-wrap:wrap; gap:5px; align-items:center; justify-content:flex-end; }
  .resource-card__actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .resource-card__source {
    min-width:42px;
    min-height:22px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 7px;
    border:1px solid rgba(212,160,74,0.30);
    border-radius:var(--radius-xs, 4px);
    background:rgba(212,160,74,0.13);
    color:#dfb968;
    font-size:10px;
    line-height:1;
    font-weight:850;
    white-space:nowrap;
  }
  .resource-card--compact .resource-card__source {
    width:var(--resource-compact-source-width);
    min-width:0;
    box-sizing:border-box;
  }
  .resource-card__empty { display:block; color:var(--text-muted, #92877a); text-align:center; padding:24px; }
  .resource-kind-pill { display:inline-flex; align-items:center; justify-content:center; min-width:23px; height:22px; padding:0 6px; border-radius:var(--radius-sm, 7px); font-size:11px; font-weight:700; letter-spacing:.04em; line-height:1; }
  .resource-kind-pill--movie { background:var(--status-green-soft, rgba(74,222,128,0.12)); color:var(--status-green, #4ade80); border:1px solid var(--status-green-border, rgba(74,222,128,0.25)); }
  .resource-kind-pill--tv { background:var(--status-blue-soft, rgba(96,165,250,0.12)); color:var(--status-blue, #60a5fa); border:1px solid var(--status-blue-border, rgba(96,165,250,0.25)); }
  .resource-kind-pill--doc { background:var(--status-orange-soft, rgba(251,146,60,0.12)); color:var(--status-orange, #fb923c); border:1px solid var(--status-orange-border, rgba(251,146,60,0.25)); }
  .resource-badge-row { display:flex; flex-wrap:wrap; gap:4px; min-height:19px; align-items:center; }
  .resource-badge { display:inline-flex; align-items:center; min-height:18px; padding:1px 6px; border-radius:var(--radius-xs, 4px); font-size:10px; line-height:1.25; font-weight:650; white-space:nowrap; border:1px solid; box-shadow:inset 0 0 0 100px rgba(212,160,74,0.025); }
  .resource-badge--neutral { background:rgba(255,255,255,0.035); color:var(--text-secondary, #a09890); border-color:var(--border, rgba(255,255,255,0.06)); }
  .resource-badge--remux { background:rgba(245,158,11,0.18); color:#fcd34d; border-color:rgba(245,158,11,0.48); }
  .resource-badge--webdl { background:rgba(59,130,246,0.18); color:#93c5fd; border-color:rgba(59,130,246,0.48); }
  .resource-badge--webrip,
  .resource-badge--bdrip { background:rgba(251,191,36,0.12); color:#fde68a; border-color:rgba(251,191,36,0.34); }
  .resource-badge--dv { background:rgba(139,92,246,0.22); color:#d8b4fe; border-color:rgba(139,92,246,0.52); }
  .resource-badge--hdr10p,
  .resource-badge--hdr { background:rgba(16,185,129,0.16); color:#86efac; border-color:rgba(16,185,129,0.42); }
  .resource-badge--atmos,
  .resource-badge--dtshd,
  .resource-badge--truehd { background:rgba(239,68,68,0.14); color:#fca5a5; border-color:rgba(239,68,68,0.36); }
  .resource-badge--ddp { background:rgba(245,158,11,0.12); color:#f6c177; border-color:rgba(245,158,11,0.32); }
  .resource-badge--hevc { background:rgba(30,64,175,0.18); color:#93c5fd; border-color:rgba(30,64,175,0.46); }
  .resource-badge--av1 { background:rgba(6,182,212,0.16); color:#67e8f9; border-color:rgba(6,182,212,0.42); }
  .resource-badge--lock { background:rgba(212,160,74,0.16); color:#f3c35d; border-color:rgba(212,160,74,0.42); }
  .resource-fact { --resource-fact-font-size:10px; min-width:0; height:32px; box-sizing:border-box; display:inline-flex; align-items:center; gap:4px; padding:0 7px; border-radius:var(--radius-sm, 7px); border:1px solid var(--border, rgba(255,255,255,0.06)); background:rgba(255,255,255,0.018); font-size:var(--resource-fact-font-size); font-weight:700; line-height:1; letter-spacing:0; white-space:nowrap; }
  .resource-fact em { color:var(--text-muted, #92877a); font:inherit; font-style:normal; line-height:inherit; letter-spacing:inherit; }
  .resource-fact strong { color:var(--text-primary, #e6e4e0); font:inherit; line-height:inherit; letter-spacing:inherit; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-variant-numeric:tabular-nums; }
  .resource-fact--seed-hot { background:rgba(34,197,94,0.12); border-color:rgba(34,197,94,0.24); }
  .resource-fact--seed-hot strong { color:#86efac; }
  .resource-fact--seed-warm { background:rgba(212,160,74,0.10); border-color:rgba(212,160,74,0.22); }
  .resource-fact--seed-warm strong { color:#f3c35d; }
  .resource-fact--seed-cold strong,
  .resource-fact--muted strong { color:var(--text-muted, #92877a); }
  .resource-lock-action {
    min-width:42px;
    min-height:28px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:0 9px;
    color:var(--text-muted, #92877a);
    border:1px solid rgba(212,160,74,0.30);
    border-radius:var(--radius-sm, 7px);
    background:rgba(212,160,74,0.10);
    font-size:11px;
    line-height:1;
    font-weight:700;
    text-decoration:none;
  }
  .resource-lock-action:hover { border-color:rgba(212,160,74,0.46); color:var(--accent, #d4a04a); background:rgba(212,160,74,0.14); }
  .resource-lock-action svg { width:13px; height:13px; display:block; flex:0 0 auto; }
  .resource-action-link {
    min-height:28px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:0 9px;
    border-radius:var(--radius-sm, 7px);
    background:var(--accent, #d4a04a);
    color:var(--text-on-accent, #140f08);
    font-size:11px;
    line-height:1;
    font-weight:750;
    text-decoration:none;
  }
  .resource-action-link svg { width:13px; height:13px; display:block; flex:0 0 auto; }
  @media (max-width: 900px) {
    .resource-card--hub { grid-template-columns:28px minmax(0,1fr); gap:8px; align-items:start; min-height:0; padding:11px 10px 10px; }
    .resource-card--hub .resource-card__facts { grid-column:2; justify-content:flex-start; margin-top:2px; }
    .resource-card--hub .resource-card__title { -webkit-line-clamp:3; }
  }
  @media (max-width: 640px) {
    .resource-card--nested { grid-template-columns:minmax(0,1fr); }
    .resource-card--nested .resource-card__actions,
    .resource-card--nested .resource-card__facts { justify-content:flex-start; }
    .resource-card--compact { --resource-compact-source-width:64px; grid-template-columns:var(--resource-compact-source-width) minmax(0,1fr); gap:7px 9px; padding:9px 10px; }
    .resource-card--compact .resource-card__facts { grid-column:2; justify-content:flex-start; }
    .resource-card--compact .resource-card__source { min-width:38px; min-height:21px; padding:0 6px; font-size:9.5px; }
    .resource-card--compact .resource-card__title { font-size:11.75px; line-height:1.38; }
    .resource-card--compact .resource-badge,
    .resource-card--compact .resource-fact { --resource-fact-font-size:9.5px; height:21px; padding:0 5px; }
  }


  /* ── Data columns (auto-width, nowrap) ── */
  .col-date, .col-size, .col-seed, .col-leech {
    text-align: right; white-space: nowrap; font-size: 12px;
    font-variant-numeric: tabular-nums;
  }
  .col-date { color: var(--text-secondary); }
  .col-size { color: var(--text-secondary); }
  .seed-badge, .leech-badge {
    display: inline-block; padding: 2px 8px; border-radius: var(--radius-xs);
    font-size: 12px; font-variant-numeric: tabular-nums;
    min-width: 28px; text-align: center;
  }
  .seed-badge { font-weight: 700; }
  .seed-hot { background: var(--seed-hot-bg); color: var(--seed-hot-fg); }
  .seed-warm { background: var(--seed-warm-bg); color: var(--seed-warm-fg); }
  .seed-cold { color: var(--text-muted); }
  .leech-badge { color: var(--leech-fg); }
  .leech-active { background: var(--leech-active-bg); color: var(--leech-active-fg); }

  /* Desktop / Mobile visibility */
  .desktop-only { display: table-cell; }
  .mobile-only { display: none; }

  /* ═══ Pagination ═════════════════════════════════════════ */
  .pagination { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .page-row { display: flex; align-items: center; gap: 4px; }
  .page-btn {
    min-height: 44px; min-width: 44px; display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 12px; font-weight: 500; border-radius: var(--radius-sm);
    background: var(--bg-surface); color: var(--text-secondary);
    border: 1px solid var(--border); transition: all 0.15s;
  }
  .page-btn:hover:not(:disabled) { background: var(--bg-surface-hover); color: var(--text-primary); }
  .page-btn:disabled { opacity: 0.25; cursor: default; }
  .page-btn--active {
    background: var(--accent); color: var(--text-inverse); font-weight: 700; border-color: transparent;
  }
  .page-btn--mobile-number { display: none; }
  .page-info { font-size: 12px; color: var(--text-muted); }
  .page-info-num { color: var(--text-secondary); font-weight: 500; }

  /* ═══ Loading / Empty ════════════════════════════════════ */
  .state-center { text-align: center; padding: 80px 20px; color: var(--text-muted); font-size: 13px; }
  .state-center p { margin: 0 0 6px; }
  .state-center-sub { font-size: 12px; color: var(--text-dim); margin-bottom: 20px !important; }
  .state-clear-btn {
    display: inline-block; margin-top: 4px;
    min-height: 44px; min-width: 44px;
    padding: 7px 18px; border-radius: var(--radius-sm);
    font-size: 12px; font-weight: 600; cursor: pointer;
    background: transparent; color: var(--text-muted);
    border: 1px solid var(--surface-border-soft);
    transition: color 0.15s, border-color 0.15s;
  }
  .state-clear-btn:hover { color: var(--text-secondary); border-color: var(--surface-border-hover); }
  .state-error p:first-child { color: var(--text-primary); font-weight: 700; }

  /* Skeleton loader */
  .skeleton-table { width: 100%; border-collapse: separate; border-spacing: 0; }
  .skeleton-row td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
  .skel { background: var(--border); border-radius: var(--radius-xs); display: block; animation: skel-pulse 1.4s ease-in-out infinite; }
  @keyframes skel-pulse {
    0%, 100% { opacity: 0.3; }
    50%       { opacity: 0.6; }
  }
  .skel-dot   { width: 28px; height: 18px; }
  .skel-title { height: 14px; width: 60%; }
  .skel-sub   { height: 10px; width: 32%; margin-top: 6px; }
  .skel-date  { height: 12px; width: 52px; margin-left: auto; }
  .skel-size  { height: 12px; width: 44px; margin-left: auto; }
  .skel-seed  { height: 12px; width: 28px; margin-left: auto; }
  .animate-spin { animation: spin 1s linear infinite; }

  /* ═══ Filters Toggle ══════════════════════════════════════ */
  .filters-toggle {
    position: relative;
    display: none; align-items: center; justify-content: center; gap: 0;
    width: var(--control-size-md);
    min-width: var(--control-size-md);
    height: var(--control-size-md);
    min-height: 44px;
    padding: 0; border-radius: var(--radius-md); font-size: 0; font-weight: 700;
    background: var(--bg-surface); color: var(--text-secondary);
    border: 1px solid var(--border); flex-shrink: 0; transition: all 0.15s;
    letter-spacing: 0; text-transform: none;
  }
  .filters-toggle--active {
    color: var(--accent); border-color: var(--accent-dim);
    background: var(--accent-soft);
  }
  .filters-toggle-dot {
    width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
    display: none;
  }
  .filters-toggle--has-filter .filters-toggle-dot { display: inline-block; }
  .filters-toggle--has-filter {
    border-color: var(--accent-dim); color: var(--accent);
  }
  .filters-toggle-icon {
    display: block;
    width: var(--icon-size-md);
    height: var(--icon-size-md);
  }
  .filters-toggle-count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%; font-size: 10px; font-weight: 800;
    background: var(--accent); color: var(--text-on-accent); line-height: 1; flex-shrink: 0;
  }
  .mobile-filters-row { display: flex; }
  .pwa-prompt {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 56px;
    z-index: 50;
    padding: 12px;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-xs);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    box-shadow: var(--shadow-card);
  }
  .pwa-prompt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .pwa-prompt-copy { min-width:0; }
  .pwa-prompt-title { color:var(--text-primary); font-size:12px; font-weight:850; line-height:1.25; }
  .pwa-prompt-meta { margin-top:3px; color:var(--text-muted); font-size:11px; line-height:1.35; }
  .pwa-guide-link { color:var(--accent); font-size:11px; font-weight:850; white-space:nowrap; }
  .pwa-close-btn {
    min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 18px; line-height: 1; flex-shrink: 0; background: none;
  }
  .brand-static {
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .search-row-main { flex: 1; margin: 0; max-width: 560px; }
  @media (min-width: 768px) {
    .search-row-main { max-width: 640px; }
  }
  .icon-sm { width: var(--icon-size-md); height: var(--icon-size-md); }
  .skeleton-cat-cell { width: 40px; }
  .empty-search-term { color: var(--text-secondary); }
  .check-icon { color: var(--accent); }

  /* ═══ View Brief / Quick Paths ═══════════════════════════ */
  .view-brief-slot--reserved { min-height: 66px; }
  .view-brief {
    width: min(var(--site-content-wide), calc(100vw - var(--site-gutter) - var(--site-gutter)));
    max-width: none;
    margin: 0 auto;
    padding: 10px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--surface-border-softer);
    border-bottom: 1px solid var(--surface-border-softer);
  }
  .view-brief-main {
    min-width: 0;
    display: flex;
    align-items: center;
  }
  .view-copy { min-width: 0; }
  .view-title {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 760;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .view-meta {
    margin-top: 1px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sort-controls {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
  }
  .view-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
  }
  .list-refresh-btn {
    min-height: 44px;
    min-width: 72px;
    padding: 0 11px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--surface-border-weak);
    background: var(--bg-surface);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s, border-color 0.15s, opacity 0.15s;
  }
  .list-refresh-btn:hover:not(:disabled),
  .list-refresh-btn:focus {
    color: var(--accent);
    background: var(--bg-surface-hover);
    border-color: var(--accent-dim);
  }
  .list-refresh-btn:disabled {
    cursor: wait;
    opacity: 0.68;
  }
  .sort-menu {
    position: relative;
  }
  .sort-menu summary {
    list-style: none;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--surface-border-weak);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    cursor: pointer;
  }
  .sort-menu summary::-webkit-details-marker { display: none; }
  .sort-menu summary .sort-current {
    color: var(--text-primary);
  }
  .sort-menu summary .sort-order {
    color: var(--accent);
    font-size: 10px;
    line-height: 1;
  }
  .sort-menu summary:hover,
  .sort-menu summary:focus {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
    border-color: var(--surface-border-hover);
  }
  .sort-menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 5px);
    z-index: 30;
    min-width: 104px;
    padding: 4px;
    border: 1px solid var(--surface-border-weak);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    box-shadow: 0 12px 28px rgba(0,0,0,0.32);
  }
  .sort-menu-item {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: var(--radius-xs);
    padding: 0 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
  }
  .sort-menu-option-order {
    color: var(--accent);
    font-size: 10px;
    line-height: 1;
    font-weight: 850;
  }
  .sort-menu-item:hover {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
  }
  .sort-menu-item-active {
    color: var(--accent);
    background: var(--accent-soft);
  }

  @media (min-width: 1024px) {
    .action-label { display: block; }
  }

  /* Resource cards: one visual system for desktop and mobile. */
  .table-scroll {
      overflow: visible;
      border: none;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }
    .data-table, .data-table tbody, .data-table tr, .data-table td {
      display: block;
      width: 100%;
    }
    .data-table {
      min-width: 0;
      table-layout: auto;
    }
    .data-table colgroup,
    .data-table thead,
    .data-table .desktop-only {
      display: none !important;
    }
    .mobile-only { display: inline !important; }
    .data-table tbody {
      margin: 0 0 8px;
      border: 1px solid var(--surface-border-weak);
      border-radius: var(--radius-md);
      background:
        var(--surface-mobile-card-bg),
        var(--bg-card);
      box-shadow: inset 3px 0 0 var(--cat-accent, transparent);
      overflow: hidden;
    }
    .data-table tbody:hover {
      border-color: var(--overlay-gold-line);
      background:
        var(--surface-mobile-card-hover-bg),
        var(--bg-card);
    }
    .data-table tbody tr {
      border: 0;
      box-shadow: none !important;
      background: transparent !important;
    }
    .row-data {
      display: grid !important;
      grid-template-columns: 24px minmax(0, 1fr) var(--row-action-rail);
      grid-template-areas:
        "cat title actions"
        ". date actions";
      align-items: start;
      column-gap: 5px;
      row-gap: 2px;
      padding: 10px 8px 6px !important;
      border-bottom: 1px solid var(--border-row);
    }
    .row-data.row-locked {
      grid-template-columns: 24px minmax(0, 1fr) var(--row-lock-rail);
    }
    .data-table tbody .row-data { border-bottom: 1px solid var(--border-row); }
    .row-data > td { padding: 0 !important; width: auto; }
    .row-data .cat-cell { grid-area: cat; width: 24px; text-align: center; padding-top: 2px !important; }
    .row-data .cat-pill { font-size: var(--font-size-badge); padding: 1px 4px; }
    .row-data .title-cell { grid-area: title; min-width: 0; width: auto !important; overflow: hidden; }
    .row-data .action-cell {
      grid-area: actions;
      width: var(--row-action-rail);
      padding-top: 0 !important;
      display: flex !important;
      justify-content: center;
      align-items: center;
      align-self: stretch;
      text-align: center;
    }
    .row-data .col-date {
      grid-area: date;
      width: auto;
      padding-left: 0 !important;
      padding-right: 1px !important;
      padding-top: 0 !important;
      display: flex !important;
      align-items: center;
      gap: 0;
      font-size: var(--font-size-meta);
      text-align: left;
      color: var(--text-primary);
    }
    .row-data .col-size {
      display: none !important;
    }
    .resource-meta-label {
      color: var(--text-muted);
      font-weight: 700;
      margin-right: 3px;
      white-space: nowrap;
    }
    .resource-meta-separator {
      color: var(--text-muted);
      margin: 0 6px;
    }
    .resource-size-inline {
      display: inline-flex;
      align-items: center;
      color: var(--text-primary);
      font-weight: 650;
      white-space: nowrap;
    }
    .row-meta {
      display: flex !important;
      align-items: center;
      min-height: 42px;
      padding: 0 8px !important;
      padding-left: 37px !important;
      border-bottom: none !important;
    }
    .row-meta td {
      width: 100%;
      min-width: 0;
      max-width: 100%;
      min-height: 42px;
      padding: 0 !important;
      display: flex !important;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      overflow: hidden;
    }
    .row-meta .cat-cell { display: none !important; }
    .badge { font-size: var(--font-size-badge) !important; padding: 1px 5px; border-radius: var(--radius-xs) !important; }
    .badge-row { flex-wrap: nowrap; overflow: hidden; max-height: 20px; gap: 3px; }
    .title-link {
      font-size: var(--font-size-title) !important;
      font-weight: 400;
      color: var(--text-strong) !important;
      width: 100%;
      max-width: min(100%, 72ch);
      min-height: 0 !important;
      white-space: normal !important;
      overflow: hidden !important;
      overflow-wrap: anywhere;
      word-break: normal;
      text-wrap: pretty;
      text-overflow: unset !important;
      display: -webkit-box !important;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      line-height: 1.32 !important;
    }
    .title-row { display: block; min-width: 0; max-width: 100%; overflow: hidden; }
    .title-icons { padding-top: 0; }
    .action-btn { width: var(--row-action-btn); height: var(--row-action-btn); }
    .action-btn:hover { color: var(--accent); background: var(--overlay-gold-soft); }
    .action-btn::after { inset: 0; }
    .action-btn svg { width: 16px; height: 16px; }
    .action-label { display: none; }
    .row-unlocked .action-cell,
    .row-locked .action-cell {
      justify-content: flex-end;
    }
    .row-locked .action-cell {
      width: var(--row-lock-rail);
    }
    .row-unlocked .title-icons {
      width: var(--row-action-rail);
      justify-content: flex-end;
      transform: translateX(var(--row-unlocked-action-offset));
    }
    .row-unlocked .action-btn:first-child svg {
      transform: translateX(14px);
    }
    .row-unlocked .action-btn:nth-child(2) svg {
      transform: translateX(-14px);
    }
    .row-unlocked .action-btn {
      width: var(--row-action-btn);
      background: transparent;
      border-radius: 999px;
    }
    .row-unlocked .action-btn:hover,
    .row-unlocked .action-btn:active {
      color: var(--accent);
      background: transparent;
    }
    .row-unlocked .action-btn:focus-visible {
      outline: 1px solid var(--accent-dim);
      outline-offset: 2px;
      background: transparent;
    }
    .row-locked .title-icons {
      width: var(--row-lock-rail);
      grid-template-columns: var(--row-lock-rail);
      justify-content: flex-end;
    }
    .row-locked .action-btn {
      width: var(--row-lock-rail);
      border-radius: var(--radius-sm);
    }

  @media (max-width: 767px) {
    :root { --footer-pad-x: 12px; --footer-pad-top: 8px; --footer-pad-bottom: 6px; }
    .desktop-only { display: none !important; }
    .mobile-only { display: inline !important; }
    .filters-toggle { display: inline-flex; }
    .mobile-filters-row { display: none; }
    .mobile-filters-row--open { display: flex; }
    .site-header { padding: 8px 0 8px; }
    .header-top {
      gap: 8px;
      margin-bottom: 10px;
    }
    .brand img { width: 36px; height: 36px; border-radius: var(--radius-md); }
    .filter-zone { gap: 4px; }
    .filter-pill-cat { min-height: 44px; min-width: 44px; padding: 8px 10px; font-size: 11px; }
    .filter-pill-sm { min-height: 44px; min-width: 44px; padding: 8px 9px; font-size: 11px; }
    .filter-label { width: 28px; font-size: 10px; }
    .header-actions { gap: 6px; }
    .search-btn,
    .calendar-btn,
    .support-btn,
    .lang-btn {
      width: var(--control-size-md);
      min-width: var(--control-size-md);
      height: var(--control-size-md);
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: var(--radius-md);
      background: var(--bg-surface);
      border-color: var(--border);
    }
    .search-btn,
    .support-btn { border-color: var(--border); background: var(--bg-surface); color: var(--text-secondary); }
    .search-btn:hover,
    .support-btn:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-dim); }
    .lang-btn { font-size: 10px; }
    .search-row { margin-top: 0; }
    .search-input { min-height: 44px; padding: 6px 32px 6px 10px; font-size: 12px; border-radius: var(--radius-md); }
    .signal-strip {
      display: none;
    }
    .section-divider { padding: 8px 0 4px; border-top: 1px solid var(--surface-border-softer); }
    .section-label { letter-spacing: 0.12em; }
    .table-wrap { padding: 0 0 56px; }
    .pagination { width: 100%; overflow: hidden; align-items: stretch; }
    .page-row {
      width: 100%;
      max-width: 100%;
      justify-content: center;
      gap: 3px;
      overflow-x: hidden;
      padding: 0 0 2px;
    }
    .page-btn {
      min-height: 44px;
      min-width: 0;
      max-width: 40px;
      flex: 1 1 40px;
      padding-inline: 2px;
      font-size: 11px;
    }
    .page-btn--nav { max-width: 32px; flex-basis: 32px; }
    .page-btn--desktop-number { display: none; }
    .page-btn--mobile-number { display: inline-flex; }
    .page-info { text-align: center; }
    .calendar-btn .cal-label { display: none; }
    .view-brief {
      padding: 8px 0;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px 10px;
      align-items: start;
    }
    .view-brief-slot--reserved { min-height: 62px; }
    .view-brief-main {
      align-items: flex-start;
      grid-column: 1;
      min-width: 0;
    }
    .view-title { font-size: 12px; }
    .view-meta { font-size: 10px; }
    .sort-controls {
      justify-content: flex-end;
    }
    .view-actions { grid-column: 2; align-self: start; gap: 6px; }
    .list-refresh-btn { width: 44px; min-width: 44px; padding: 0; }
    .list-refresh-btn .refresh-label { display: none; }
    .sort-menu-list {
      right: 0;
      left: auto;
    }
    .sort-menu summary {
      min-height: 44px;
      min-width: 44px;
      max-width: 128px;
      font-size: 10px;
    }
  }

  @media (max-width: 340px) {
    .header-top { gap: 6px; }
    .header-actions { gap: 4px; }
    .calendar-btn,
    .support-btn,
    .lang-btn {
      width: 38px;
      min-width: 38px;
      height: 44px;
      padding: 0;
    }
    .support-btn {
      width: var(--control-size-md);
      min-width: var(--control-size-md);
    }
    .lang-btn {
      width: var(--control-size-md);
      min-width: var(--control-size-md);
    }
    .brand-static {
      width: 38px;
      min-width: 38px;
    }
    .brand img {
      width: 34px;
      height: 34px;
    }
    .calendar-btn {
      display: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
  }
