    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      --mono: 'B612 Mono', 'Courier New', monospace;
    }

    /* ─── DARK THEME ─── */
    [data-theme="dark"] {
      --bg: #03050e;
      --card: #070d1c;
      --card2: #0b1428;
      --border: #152338;
      --border-bright: #1e3a58;
      --accent: #22c55e;
      --accent-dim: rgba(34, 197, 94, 0.09);
      --accent-border: rgba(34, 197, 94, 0.28);
      --accent-glow: 0 0 12px rgba(34, 197, 94, 0.35);
      --red: #ff3d5a;
      --red-dim: rgba(255, 61, 90, 0.12);
      --red-border: rgba(255, 61, 90, 0.35);
      --text: #cee0f3;
      --muted: #516a85;
      --muted2: #8aafd0;
      --amber: #f59e0b;
      --row-hover-bg: #091527;
      --row-hover-border: var(--accent);
      --dot-color: rgba(34, 197, 94, 0.035);
      --vignette: rgba(1, 2, 8, 0.45);
      --overlay-bg: rgba(1, 2, 8, 0.75);
    }

    /* ─── LIGHT THEME ─── */
    [data-theme="light"] {
      --bg: #f5f0e8;
      --card: #ede8dd;
      --card2: #e2ddd2;
      --border: #c8c0b0;
      --border-bright: #9a9080;
      --accent: #16a34a;
      --accent-dim: rgba(22, 163, 74, 0.08);
      --accent-border: rgba(22, 163, 74, 0.3);
      --accent-glow: 0 0 8px rgba(22, 163, 74, 0.25);
      --red: #cc1e35;
      --red-dim: rgba(204, 30, 53, 0.08);
      --red-border: rgba(204, 30, 53, 0.3);
      --text: #071428;
      --muted: #6b7888;
      --muted2: #4a5a6a;
      --amber: #b45309;
      --row-hover-bg: #ddd8cc;
      --row-hover-border: var(--accent);
      --dot-color: rgba(0, 70, 140, 0.06);
      --vignette: rgba(220, 210, 195, 0.4);
      --overlay-bg: rgba(180, 170, 155, 0.75);
    }

    html,
    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--mono);
      font-size: 13px;
      height: 100%;
      overflow: hidden;
      line-height: 1.6;
      transition: background 0.25s, color 0.25s;
    }

    /* DOT GRID BACKGROUND */
    body {
      background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
      background-size: 24px 24px;
    }

    body::after {
      content: '';
      position: fixed;
      inset: 0;
      background: radial-gradient(ellipse at 50% 40%, transparent 60%, var(--vignette) 100%);
      pointer-events: none;
      z-index: 5;
    }

    body::before {
      content: " ";
      display: block;
      position: fixed;
      inset: 0;
      background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.07) 50%);
      z-index: 4;
      background-size: 100% 3px;
      pointer-events: none;
      opacity: 0.015;
    }

    /* --- DETAIL PANEL --- */
    .detail-panel {
      position: fixed;
      top: 0;
      right: -400px;
      width: 380px;
      height: 100vh;
      background: var(--card);
      border-left: 1px solid var(--accent-border);
      box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
      z-index: 20000;
      transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
      padding: 0;
    }

    .detail-panel.open {
      right: 0;
    }

    .detail-header {
      padding: 20px;
      background: var(--card2);
      border-bottom: 1px solid var(--border-bright);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .detail-body {
      padding: 25px;
      overflow-y: auto;
      flex: 1;
    }

    .detail-row {
      margin-bottom: 20px;
    }

    .detail-label {
      font-size: 10px;
      color: var(--muted2);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 6px;
    }

    .detail-val {
      font-size: 13px;
      color: var(--text);
      word-break: break-all;
      line-height: 1.6;
    }

    .detail-btn {
      display: block;
      width: 100%;
      padding: 12px;
      margin-top: 10px;
      background: var(--accent-dim);
      border: 1px solid var(--accent-border);
      color: var(--accent);
      text-align: center;
      text-decoration: none;
      font-weight: 700;
      font-size: 11px;
      text-transform: uppercase;
      transition: 0.2s;
    }

    .detail-btn:hover {
      background: var(--accent-dim);
      border-color: var(--accent);
    }

    /* SCROLLBAR */
    ::-webkit-scrollbar {
      width: 4px;
      height: 4px;
    }

    ::-webkit-scrollbar-track {
      background: var(--bg);
    }

    ::-webkit-scrollbar-thumb {
      background: var(--border-bright);
    }

    /* LAYOUT */
    .app {
      max-width: 1400px;
      margin: 0 auto;
      padding: 16px 20px 0;
      height: calc(100vh - 64px - 44px);
      overflow: hidden;
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
    }

    /* ─── SITE HEADER ─── */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 500;
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      height: 64px;
      padding: 0 28px;
      gap: 20px;
      background: linear-gradient(180deg, #0b1628 0%, #070f1e 100%);
      border-top: 2px solid var(--accent);
      border-bottom: 1px solid rgba(34, 197, 94, 0.18);
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
      transition: border-bottom-color 0.25s, box-shadow 0.25s;
    }

    [data-theme="light"] .site-header {
      background: linear-gradient(180deg, #ddd7cc 0%, #e8e2d8 100%);
      border-bottom-color: rgba(22, 163, 74, 0.25);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    }

    .site-header.scrolled {
      border-bottom-color: rgba(34, 197, 94, 0.35);
      box-shadow: 0 4px 32px rgba(0, 0, 0, 0.85), 0 0 32px rgba(34, 197, 94, 0.04);
    }

    [data-theme="light"] .site-header.scrolled {
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .site-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .shield-icon {
      width: 16px;
      height: 16px;
      color: var(--accent);
      flex-shrink: 0;
      filter: drop-shadow(0 0 5px var(--accent));
    }

    .site-wordmark {
      font-size: 13px;
      font-weight: 700;
      color: var(--accent);
      letter-spacing: 0.22em;
      text-transform: uppercase;
      text-shadow: 0 0 14px rgba(34, 197, 94, 0.4);
      white-space: nowrap;
    }

    [data-theme="light"] .site-wordmark {
      text-shadow: 0 0 8px rgba(22, 163, 74, 0.25);
      animation: none;
    }



    .hdr-chrome-mobile {
      display: none;
    }

    /* ─── SITE NAV (tabs inside header) ─── */
    .site-nav {
      display: flex;
      align-items: stretch;
      justify-content: center;
      height: 100%;
    }


    /* ─── HEADER ACTION BUTTONS ─── */
    .site-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }

    .hdr-starcount {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      font-weight: 700;
      color: var(--amber);
      letter-spacing: 0.04em;
      flex-shrink: 0;
      margin-right: 2px;
      opacity: 0.85;
    }

    .hdr-icon-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      background: transparent;
      border: 1px solid var(--border);
      color: var(--muted2);
      text-decoration: none;
      flex-shrink: 0;
      transition: border-color 0.15s, color 0.15s, background 0.15s;
    }

    .hdr-icon-btn:hover {
      border-color: var(--border-bright);
      color: var(--text);
      background: var(--card2);
    }

    .hdr-icon-btn--coffee {
      color: var(--amber);
      border-color: rgba(245, 158, 11, 0.28);
      background: rgba(245, 158, 11, 0.05);
    }

    .hdr-icon-btn--coffee:hover {
      border-color: rgba(245, 158, 11, 0.55);
      background: rgba(245, 158, 11, 0.12);
    }

    .nav-cta {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 0 18px;
      height: 100%;
      background: var(--accent-dim);
      border-left: 1px solid var(--accent-border);
      color: var(--accent);
      font-family: var(--mono);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-decoration: none;
      text-transform: uppercase;
      white-space: nowrap;
      flex-shrink: 0;
      transition: background 0.15s, box-shadow 0.15s;
    }

    .nav-cta:hover {
      background: rgba(34, 197, 94, 0.15);
      box-shadow: inset 0 -2px 0 var(--accent);
    }

    .theme-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      background: var(--card2);
      border: 1px solid var(--border);
      cursor: pointer;
      font-size: 14px;
      transition: border-color 0.15s;
      flex-shrink: 0;
    }

    .theme-btn:hover {
      border-color: var(--accent);
    }

    /* ─── HAMBURGER (mobile) ─── */
    .hamburger {
      display: none;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 4px;
      background: transparent;
      border: 1px solid var(--border);
      width: 36px;
      height: 36px;
      cursor: pointer;
      padding: 10px;
      flex-shrink: 0;
    }

    .hamburger span {
      width: 14px;
      height: 1.5px;
      background: var(--muted2);
      display: block;
      transition: transform 0.2s, opacity 0.15s;
      transform-origin: center;
    }

    .hamburger.open span:nth-child(1) {
      transform: translateY(5.5px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
      transform: translateY(-5.5px) rotate(-45deg);
    }

    /* ─── MOBILE DRAWER ─── */
    .mobile-drawer {
      display: none;
      position: fixed;
      top: 64px;
      left: 0;
      right: 0;
      z-index: 490;
      background: #070f1e;
      border-bottom: 1px solid rgba(34, 197, 94, 0.15);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    [data-theme="light"] .mobile-drawer {
      background: #e8e2d8;
    }

    .mobile-drawer.open {
      max-height: 360px;
    }

    .mobile-drawer-inner {
      padding: 8px 12px 16px;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .mobile-nav-btn {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 11px 14px;
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted2);
      background: transparent;
      border: none;
      cursor: pointer;
      text-align: left;
      transition: background 0.1s, color 0.1s;
      width: 100%;
    }

    .mobile-nav-btn:hover {
      background: var(--card2);
      color: var(--text);
    }

    .mobile-nav-btn.active {
      color: var(--accent);
      background: var(--accent-dim);
    }

    /* ─── FOCUS STYLES (keyboard accessibility) ─── */
    :focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    button:focus-visible,
    a:focus-visible,
    input:focus-visible,
    select:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    /* ─── STATS ROW ─── */
    .stats-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      margin-bottom: 12px;
      flex-shrink: 0;
    }

    .stat-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-left: 4px solid var(--accent);
      padding: 18px 22px;
      display: flex;
      align-items: center;
      gap: 16px;
      opacity: 0;
      animation: fade-up 0.4s ease forwards;
      transition: border-color 0.2s, box-shadow 0.2s, background 0.15s;
      position: relative;
      overflow: hidden;
    }

    .stat-card:hover {
      border-color: var(--accent-border);
      box-shadow: inset 0 0 24px rgba(34, 197, 94, 0.06), 0 0 12px rgba(34, 197, 94, 0.08);
      background: rgba(34, 197, 94, 0.02);
    }

    .stat-card:nth-child(1) {
      animation-delay: 0.05s;
    }

    .stat-card:nth-child(2) {
      animation-delay: 0.15s;
    }

    .stat-card:nth-child(3) {
      animation-delay: 0.25s;
    }

    @keyframes fade-up {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .stat-icon {
      width: 18px;
      height: 18px;
      color: var(--accent);
      flex-shrink: 0;
      opacity: 0.7;
    }

    .stat-label {
      font-size: 10px;
      color: var(--muted2);
      text-transform: uppercase;
      letter-spacing: 0.12em;
      margin-bottom: 6px;
      font-weight: 600;
    }

    .stat-value {
      font-size: 32px;
      font-weight: 700;
      color: var(--accent);
      line-height: 1;
      letter-spacing: -0.02em;
    }

    /* ─── CATEGORY DISTRIBUTION + FILTER STRIP ─── */
    /* Stacked distribution bar */
    .cat-dist-bar {
      display: flex;
      height: 12px;
      overflow: hidden;
      margin-bottom: 14px;
      gap: 2px;
      border-radius: 3px;
      background: var(--card2);
      border: 1px solid var(--border);
      padding: 0;
    }

    .cat-dist-seg {
      height: 100%;
      width: 0;
      transition: width 0.75s cubic-bezier(0.4, 0, 0.2, 1), filter 0.12s ease;
      cursor: pointer;
      position: relative;
      flex-shrink: 0;
      border-radius: 1px;
    }

    .cat-dist-seg:hover {
      filter: brightness(1.25) saturate(1.3);
    }

    .cat-dist-seg.active {
      box-shadow: inset 0 0 0 1px var(--text);
      filter: brightness(1.1);
    }

    /* Pill chips */
    .cat-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      padding: 7px 14px;
      border: 1px solid var(--border);
      background: var(--card2);
      transition: border-color 0.12s, background 0.12s, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
      flex-shrink: 0;
      white-space: nowrap;
      will-change: transform;
      font-weight: 600;
    }

    .cat-item:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
      background: var(--card2);
    }

    .cat-item.active {
      background: var(--accent-dim);
      border-color: var(--accent);
      box-shadow: inset 0 0 12px rgba(34, 197, 94, 0.15);
    }

    .cat-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .cat-label {
      font-size: 11px;
      color: var(--text);
      white-space: nowrap;
      transition: color 0.15s;
      letter-spacing: 0.02em;
    }

    .cat-item.active .cat-label {
      color: var(--accent);
      font-weight: 700;
    }

    .cat-item:hover .cat-label {
      color: var(--text);
    }

    .cat-count {
      font-size: 9px;
      font-weight: 700;
      color: var(--muted);
      background: var(--bg);
      border: 1px solid var(--border);
      padding: 1px 5px;
      flex-shrink: 0;
    }

    .cat-item.active .cat-count {
      color: var(--accent);
      border-color: var(--accent-border);
      background: var(--accent-dim);
    }

    /* ─── INLINE CATEGORY STRIP ─── */
    .cat-strip {
      display: none;
      border-top: 1px solid var(--border);
      padding: 10px 16px 12px;
      background: var(--card);
    }

    .cat-strip.visible {
      display: block;
    }

    .cat-strip .cat-dist-bar {
      height: 6px;
      margin-bottom: 10px;
      border-radius: 1px;
    }

    .cat-strip-pills {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      overflow-y: hidden;
      scrollbar-width: thin;
      scrollbar-color: var(--muted) var(--card);
      -ms-overflow-style: auto;
      padding-bottom: 4px;
    }

    .cat-strip-pills::-webkit-scrollbar {
      height: 4px;
    }

    .cat-strip-pills::-webkit-scrollbar-track {
      background: var(--card);
    }

    .cat-strip-pills::-webkit-scrollbar-thumb {
      background: var(--muted);
      border-radius: 2px;
    }

    .cat-strip-pills::-webkit-scrollbar-thumb:hover {
      background: var(--muted2);
    }

    /* ─── SEARCH + FILTERS ─── */
    .search-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-left: 3px solid var(--accent);
      margin-bottom: 12px;
      flex-shrink: 0;
      transition: border-color 0.2s, box-shadow 0.2s, background 0.15s;
    }

    .search-card:focus-within {
      border-color: var(--accent-border);
      border-left-color: var(--accent);
      box-shadow: 0 0 0 2px var(--accent-border);
      background: rgba(34, 197, 94, 0.02);
    }

    .search-bar {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 16px 20px;
      border-bottom: 1px solid var(--border);
      transition: border-bottom-color 0.2s;
    }

    .search-bar svg {
      color: var(--accent);
      flex-shrink: 0;
      opacity: 0.7;
      transition: opacity 0.2s, filter 0.2s;
      width: 16px;
      height: 16px;
    }

    .search-bar:focus-within svg {
      opacity: 1;
      filter: drop-shadow(0 0 5px rgba(34, 197, 94, 0.5));
    }

    .search-bar input {
      flex: 1;
      background: none;
      border: none;
      outline: none;
      color: var(--text);
      font-family: var(--mono);
      font-size: 14px;
      letter-spacing: 0.02em;
      font-weight: 500;
    }

    .search-bar input::placeholder {
      color: var(--muted2);
    }

    .search-hint {
      font-size: 11px;
      color: var(--muted);
      background: var(--card2);
      border: 1px solid var(--border-bright);
      padding: 2px 8px;
      flex-shrink: 0;
      pointer-events: none;
      transition: opacity 0.15s;
      letter-spacing: 0.06em;
    }

    .search-bar:focus-within .search-hint {
      opacity: 0;
    }

    /* ─── FILTERS ROW ─── */
    .search-bar-row {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 0 16px 0 0;
    }

    .search-bar {
      flex: 1;
    }

    .filter-toggle-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--card2);
      border: 1px solid var(--border);
      color: var(--text);
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 9px 15px;
      cursor: pointer;
      white-space: nowrap;
      transition: border-color 0.12s, color 0.12s, background 0.12s, transform 0.15s;
      flex-shrink: 0;
      will-change: transform;
    }

    .filter-toggle-btn:hover {
      border-color: var(--accent);
      color: var(--accent);
      transform: translateY(-1px);
      background: rgba(34, 197, 94, 0.04);
    }

    .filter-toggle-btn.active {
      border-color: var(--accent);
      color: var(--accent);
      background: var(--accent-dim);
    }

    .filter-toggle-btn svg {
      transition: transform 0.2s;
    }

    .filter-toggle-btn.active svg {
      transform: rotate(180deg);
    }

    .filters-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 10px 16px;
      flex-wrap: wrap;
      min-width: 0;
      overflow: visible;
      max-height: 0;
      padding-top: 0;
      padding-bottom: 0;
      opacity: 0;
      pointer-events: none;
      transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.2s ease;
      border-top: 0px solid var(--border);
    }

    .filters-row.open {
      max-height: 180px;
      padding: 12px 16px;
      opacity: 1;
      pointer-events: auto;
      border-top: 1px solid var(--border);
      overflow: visible;
    }

    .filter-left {
      display: flex;
      gap: 10px;
      min-width: 0;
      flex: 1;
      flex-wrap: wrap;
      align-items: center;
    }

    .filter-select {
      background: var(--card2);
      border: 1px solid var(--border);
      color: var(--text);
      font-family: var(--mono);
      font-size: 11px;
      padding: 7px 30px 7px 10px;
      outline: none;
      cursor: pointer;
      min-width: 0;
      max-width: 160px;
      width: 100%;
      transition: border-color 0.2s;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a6080' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 8px center;
      overflow: hidden;
      text-overflow: ellipsis;
      letter-spacing: 0.03em;
    }

    .filter-select:focus {
      border-color: var(--accent);
    }

    .count-badge {
      background: var(--card2);
      border: 1px solid var(--border);
      padding: 5px 14px;
      font-size: 11px;
      color: var(--muted2);
      white-space: nowrap;
      letter-spacing: 0.04em;
    }

    .count-badge span {
      color: var(--accent);
      font-weight: 700;
    }

    .clear-btn {
      background: transparent;
      border: 1px solid var(--red);
      color: var(--red);
      font-family: var(--mono);
      font-size: 11px;
      padding: 8px 14px;
      cursor: pointer;
      display: none;
      align-items: center;
      gap: 6px;
      transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
      white-space: nowrap;
      flex-shrink: 0;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-weight: 700;
    }

    .clear-btn:hover {
      border-color: var(--red);
      color: var(--text);
      background: var(--red-dim);
      box-shadow: 0 0 8px rgba(255, 61, 90, 0.25);
    }

    .clear-btn.visible {
      display: inline-flex;
      border-color: var(--red);
      background: var(--red-dim);
    }

    /* ─── TABLE CARD ─── */
    .table-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-top: 2px solid var(--border-bright);
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 0;
      overflow: hidden;
    }

    table {
      width: 100%;
      border-collapse: collapse;
    }

    thead tr {
      background: var(--card2);
      border-bottom: 1px solid var(--border);
    }

    th {
      padding: 12px 16px;
      text-align: left;
      font-size: 11px;
      font-weight: 700;
      color: var(--text);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      white-space: nowrap;
      cursor: pointer;
      user-select: none;
      transition: color 0.15s;
    }

    th:hover {
      color: var(--accent);
    }

    th.sorted {
      color: var(--accent);
    }

    th:first-child {
      width: 48px;
      text-align: center;
    }

    tbody tr {
      border-bottom: 1px solid var(--border);
      transition: background 0.1s, box-shadow 0.12s;
      cursor: pointer;
      position: relative;
    }

    tbody tr:nth-child(even) {
      background: rgba(255, 255, 255, 0.022);
    }

    tbody tr:last-child {
      border-bottom: none;
    }

    tbody tr:hover {
      background: var(--row-hover-bg);
      box-shadow: inset 4px 0 0 var(--accent);
    }

    td {
      padding: 10px 16px;
      font-size: 12.5px;
      vertical-align: middle;
    }

    td:first-child {
      text-align: center;
      color: var(--muted);
      font-size: 10px;
      width: 48px;
    }

    .td-name {
      font-weight: 700;
      color: var(--text);
      max-width: 280px;
      white-space: nowrap;
      display: flex;
      align-items: center;
      gap: 8px;
      letter-spacing: 0.02em;
      cursor: pointer;
      transition: color 0.1s;
    }

    .td-name:hover {
      color: var(--accent);
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .td-name-text {
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1;
      min-width: 0;
    }

    .new-badge {
      display: inline-flex;
      align-items: center;
      background: var(--red-dim);
      border: 1px solid var(--red);
      color: var(--red);
      font-size: 8px;
      font-weight: 700;
      padding: 2px 6px;
      letter-spacing: 0.12em;
      flex-shrink: 0;
      animation: pulse-badge 2s ease-in-out infinite;
    }

    @keyframes pulse-badge {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0.55;
      }
    }

    .td-id {
      color: var(--muted2);
      font-size: 11px;
      font-family: var(--mono);
      white-space: nowrap;
      cursor: copy;
      transition: color 0.15s;
      letter-spacing: 0.03em;
    }

    .td-id:hover {
      color: var(--accent);
    }

    /* ─── COPY TOAST ─── */
    .copy-toast {
      position: fixed;
      bottom: 28px;
      left: 50%;
      transform: translateX(-50%) translateY(10px);
      background: var(--card);
      border: 1px solid var(--accent-border);
      color: var(--accent);
      font-family: var(--mono);
      font-size: 11px;
      padding: 9px 18px;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.2s, transform 0.2s;
      z-index: 10000;
      white-space: nowrap;
      letter-spacing: 0.05em;
      box-shadow: var(--accent-glow);
    }

    .copy-toast.visible {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .td-source {
      max-width: 160px;
    }

    .source-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: var(--card2);
      border: 1px solid var(--border);
      padding: 3px 9px;
      font-size: 10px;
      color: var(--muted2);
      white-space: nowrap;
      max-width: 150px;
      overflow: hidden;
      text-overflow: ellipsis;
      text-decoration: none;
      letter-spacing: 0.03em;
    }

    .source-badge.report {
      background: var(--accent-dim);
      border-color: var(--accent-border);
      color: var(--accent);
    }

    .source-badge svg {
      flex-shrink: 0;
    }

    .reason-malware {
      color: var(--red);
      font-weight: 700;
    }

    .reason-bundling {
      color: var(--amber);
      font-weight: 700;
    }

    .td-date {
      color: var(--muted2);
      font-size: 12px;
      white-space: nowrap;
      letter-spacing: 0.04em;
    }

    /* ─── BLOCKLIST COLUMN ─── */
    .th-blocklist {
      text-align: center;
      width: 80px;
      cursor: default;
    }

    .th-blocklist-inner {
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    .th-blocklist-info {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 13px;
      height: 13px;
      border-radius: 50%;
      border: 1px solid var(--muted);
      color: var(--muted);
      flex-shrink: 0;
      cursor: help;
      font-style: normal;
    }

    [data-tooltip] {
      position: relative;
    }

    [data-tooltip]::after {
      content: attr(data-tooltip);
      position: absolute;
      top: calc(100% + 8px);
      right: -8px;
      width: 230px;
      background: var(--card2);
      border: 1px solid var(--border-bright);
      padding: 10px 12px;
      font-size: 11px;
      font-weight: 400;
      color: var(--muted2);
      letter-spacing: 0.02em;
      text-transform: none;
      line-height: 1.5;
      white-space: normal;
      text-align: left;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.15s, transform 0.15s;
      transform: translateY(-4px);
      z-index: 200;
    }

    [data-tooltip]::before {
      content: '';
      position: absolute;
      top: calc(100% + 3px);
      right: 11px;
      width: 8px;
      height: 8px;
      background: var(--card2);
      border-left: 1px solid var(--border-bright);
      border-top: 1px solid var(--border-bright);
      transform: rotate(45deg);
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.15s;
      z-index: 201;
    }

    [data-tooltip]:hover::after,
    [data-tooltip]:hover::before {
      opacity: 1;
      transform: translateY(0);
    }

    [data-tooltip]:hover::before {
      transform: rotate(45deg);
    }

    .td-blocklist {
      text-align: center;
      width: 80px;
    }

    .blocked-check {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 16px;
      border: 1.5px solid var(--red-border);
      background: var(--red-dim);
      border-radius: 2px;
    }

    .blocked-check svg {
      color: var(--red);
    }

    .blocked-uncheck {
      display: inline-block;
      width: 16px;
      height: 16px;
      border: 1.5px solid var(--border-bright);
      border-radius: 2px;
    }

    /* ─── EMPTY STATE ─── */
    .empty-state {
      text-align: center;
      padding: 64px 20px;
      color: var(--muted);
      font-size: 12px;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    /* ─── PAGINATION ─── */
    .pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: 14px 16px;
      border-top: 1px solid var(--border);
      flex-shrink: 0;
      background: var(--card);
    }

    .page-btn {
      background: var(--card2);
      border: 1px solid var(--border);
      color: var(--muted2);
      font-family: var(--mono);
      font-size: 10px;
      padding: 5px 10px;
      cursor: pointer;
      transition: all 0.12s;
      min-width: 30px;
      text-align: center;
      letter-spacing: 0.05em;
      will-change: transform;
    }

    .page-btn:hover {
      border-color: var(--accent);
      color: var(--accent);
      transform: translateY(-1px);
    }

    .page-btn.active {
      background: var(--accent-dim);
      border-color: var(--accent);
      color: var(--accent);
      font-weight: 700;
    }

    .page-btn:disabled {
      opacity: 0.25;
      cursor: not-allowed;
    }

    .page-btn:disabled:hover {
      border-color: var(--border);
      color: var(--muted2);
    }

    .page-info {
      color: var(--muted);
      font-size: 10px;
      margin: 0 8px;
      letter-spacing: 0.04em;
    }

    /* ─── LOADING ─── */
    .loading {
      text-align: center;
      padding: 64px 20px;
      color: var(--muted);
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .loading-dot {
      display: inline-block;
      width: 5px;
      height: 5px;
      background: var(--accent);
      margin: 0 3px;
      animation: wave 1.2s ease-in-out infinite;
      box-shadow: 0 0 6px var(--accent);
    }

    .loading-dot:nth-child(2) {
      animation-delay: 0.12s;
    }

    .loading-dot:nth-child(3) {
      animation-delay: 0.24s;
    }

    @keyframes wave {

      0%,
      60%,
      100% {
        transform: translateY(0);
        opacity: 0.5;
      }

      30% {
        transform: translateY(-6px);
        opacity: 1;
      }
    }

    /* --- SCROLLABLE TABLE CONTAINER --- */
    #table-wrap {
      overflow: auto;
      flex: 1;
      min-height: 0;
      -webkit-overflow-scrolling: touch;
    }

    /* --- STICKY HEADERS --- */
    th {
      position: sticky;
      top: 0;
      z-index: 110;
      background: var(--card2);
      box-shadow: inset 0 -1px 0 var(--border-bright);
    }

    /* --- ROW SELECTION --- */
    tbody tr.selected-row {
      background: var(--accent-dim) !important;
      box-shadow: inset 4px 0 0 var(--accent);
    }

    /* ─── MOBILE CARDS ─── */
    #card-list {
      display: none;
      flex-direction: column;
      gap: 10px;
      padding: 12px;
    }

    .ext-card {
      background: var(--card2);
      border: 1px solid var(--border);
      border-left: 2px solid var(--border-bright);
      padding: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transition: border-color 0.15s;
    }

    .ext-card.expanded {
      border-left-color: var(--accent);
    }

    .ext-card-header {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      padding: 10px 12px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
    }

    .ext-card-header:active {
      background: var(--row-hover-bg);
    }

    .ext-card-name {
      font-weight: 700;
      font-size: 13px;
      color: var(--text);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      flex: 1;
      min-width: 0;
      letter-spacing: 0.03em;
    }

    .ext-card-reason-badge {
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--red);
      background: var(--red-dim);
      border: 1px solid var(--red-border);
      padding: 2px 6px;
      flex-shrink: 0;
      white-space: nowrap;
      max-width: 90px;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .ext-card-chevron {
      flex-shrink: 0;
      color: var(--muted);
      transition: transform 0.2s ease, color 0.15s;
      margin-left: 2px;
    }

    .ext-card.expanded .ext-card-chevron {
      transform: rotate(180deg);
      color: var(--accent);
    }

    .ext-card-num {
      font-size: 10px;
      color: var(--muted);
      flex-shrink: 0;
      letter-spacing: 0.06em;
    }

    .ext-card-meta {
      display: flex;
      flex-direction: column;
      gap: 8px;
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.25s ease, padding 0.2s ease;
      padding: 0 12px;
      border-top: 0px solid var(--border);
    }

    .ext-card.expanded .ext-card-meta {
      max-height: 260px;
      padding: 10px 12px;
      border-top-width: 1px;
    }

    .ext-card-row {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .ext-card-label {
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      white-space: nowrap;
      color: var(--muted);
      width: 46px;
      flex-shrink: 0;
    }

    .ext-card-val {
      font-size: 11px;
      color: var(--muted2);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      flex: 1;
      min-width: 0;
    }

    .ext-card-id {
      font-size: 11px;
      font-family: var(--mono);
      color: var(--muted2);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      flex: 1;
      min-width: 0;
      cursor: copy;
      transition: color 0.15s;
      letter-spacing: 0.03em;
    }

    .ext-card-id:active {
      color: var(--accent);
    }

    /* ─── FOOTER STATUS BAR ─── */
    .status-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 100;
      border-top: 1px solid var(--accent-border);
      padding: 11px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      background: var(--card);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }

    .status-bar-right {
      display: flex;
      align-items: center;
      gap: 18px;
      flex-shrink: 0;
    }

    .status-freshness {
      font-size: 11px;
      color: var(--text);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      opacity: 0.85;
    }

    .status-freshness span {
      color: var(--accent);
      font-weight: 700;
    }

    /* ─── FEEDBACK BUTTON ─── */
    .feedback-btn {
      position: fixed;
      bottom: 64px;
      right: 24px;
      z-index: 9998;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--card);
      border: 1px solid var(--accent-border);
      color: var(--accent);
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 10px 16px;
      cursor: pointer;
      box-shadow: 0 4px 24px rgba(34, 197, 94, 0.15), 0 0 0 1px var(--border);
      transition: background 0.2s, box-shadow 0.2s, transform 0.15s, opacity 0.2s;
      animation: fb-rise 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
      animation-delay: 1s;
    }

    .feedback-btn:hover {
      background: var(--accent-dim);
      box-shadow: 0 6px 32px rgba(34, 197, 94, 0.25), var(--accent-glow);
      transform: translateY(-2px);
    }

    .feedback-btn:active {
      transform: translateY(0);
    }

    .feedback-btn.scroll-hidden {
      opacity: 0;
      pointer-events: none;
      transform: translateY(8px);
    }

    .feedback-btn .fb-dot {
      width: 6px;
      height: 6px;
      background: var(--accent);
      border-radius: 50%;
      box-shadow: 0 0 6px var(--accent);
      flex-shrink: 0;
      animation: status-blink 2.4s ease-in-out infinite;
    }

    @keyframes fb-rise {
      from {
        opacity: 0;
        transform: translateY(16px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (max-width: 700px) {
      .feedback-btn {
        bottom: max(20px, env(safe-area-inset-bottom, 20px));
        right: 16px;
        font-size: 11px;
        padding: 10px 14px;
      }
    }

    .status-bar-text {
      font-size: 11px;
      color: var(--text);
      letter-spacing: 0.12em;
      text-transform: uppercase;
      opacity: 0.85;
    }

    /* ─── CATEGORIES SCROLL HINT ─── */
    .categories-scroll-wrap {
      position: relative;
    }

    .categories-scroll-wrap::after {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      width: 48px;
      height: 100%;
      background: linear-gradient(to right, transparent, var(--card));
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.3s;
    }

    .categories-scroll-wrap.can-scroll::after {
      opacity: 1;
    }

    .scroll-hint-label {
      display: none;
    }

    /* ─── ABOUT BAR ─── */
    .about-bar {
      border-bottom: 1px solid var(--border);
      padding: 7px 0 8px;
      margin-bottom: 16px;
      flex-shrink: 0;
    }

    .about-text {
      font-size: 11px;
      color: var(--muted2);
      line-height: 1.5;
      letter-spacing: 0.02em;
    }

    .about-text strong {
      color: var(--text);
      font-weight: 700;
      opacity: 0.9;
    }

    /* ─── NAV TABS (inside .site-nav) ─── */
    .nav-tab {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 0 16px;
      height: 36px;
      margin: auto 3px;
      font-family: var(--mono);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted2);
      background: transparent;
      border: 1px solid transparent;
      cursor: pointer;
      position: relative;
      transition: color 0.15s, background 0.15s, border-color 0.15s;
      white-space: nowrap;
    }

    .nav-tab svg {
      flex-shrink: 0;
      opacity: 0.5;
      transition: opacity 0.15s;
    }

    .nav-tab:hover {
      color: rgba(255, 255, 255, 0.85);
      background: rgba(255, 255, 255, 0.05);
      border-color: rgba(255, 255, 255, 0.1);
    }

    .nav-tab:hover svg {
      opacity: 0.85;
    }

    .nav-tab.active {
      color: var(--accent);
      background: rgba(34, 197, 94, 0.1);
      border-color: rgba(34, 197, 94, 0.3);
    }

    .nav-tab.active svg {
      opacity: 1;
      filter: drop-shadow(0 0 4px var(--accent));
    }

    [data-theme="light"] .nav-tab {
      color: rgba(15, 23, 42, 0.45);
    }

    [data-theme="light"] .nav-tab:hover {
      color: rgba(15, 23, 42, 0.85);
      background: rgba(0, 0, 0, 0.05);
      border-color: rgba(0, 0, 0, 0.12);
    }

    [data-theme="light"] .nav-tab.active {
      color: var(--accent);
      background: rgba(22, 163, 74, 0.08);
      border-color: rgba(22, 163, 74, 0.3);
    }

    .nav-dropdown-item {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 10px 16px;
      font-family: var(--mono);
      font-size: 11px;
      color: var(--muted2);
      text-decoration: none;
      border-bottom: 1px solid var(--border);
      transition: background 0.1s, color 0.1s;
      letter-spacing: 0.02em;
    }

    .nav-dropdown-item:last-child {
      border-bottom: none;
    }

    .nav-dropdown-item:hover {
      background: var(--card2);
      color: var(--text);
    }

    .nav-dropdown-item svg {
      flex-shrink: 0;
      color: var(--muted);
    }

    .nav-tab-chevron {
      transition: transform 0.15s;
      opacity: 0.6;
    }

    .nav-dropdown.open .nav-tab-chevron {
      transform: rotate(180deg);
    }

    .tab-feed-badge {
      display: inline-flex;
      align-items: center;
      background: var(--accent-dim);
      border: 1px solid var(--accent-border);
      color: var(--accent);
      font-size: 8px;
      font-weight: 700;
      letter-spacing: 0.12em;
      padding: 1px 6px;
      text-transform: uppercase;
    }

    .tab-feed-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--accent);
      margin-right: 4px;
      animation: pulse-dot 2s ease-in-out infinite;
    }

    @keyframes pulse-dot {

      0%,
      100% {
        opacity: 1;
        transform: scale(1);
      }

      50% {
        opacity: 0.4;
        transform: scale(0.7);
      }
    }

    .hdr-icon-btn--updates {
      position: relative;
      color: var(--accent);
      border-color: rgba(34, 197, 94, 0.42);
      background: linear-gradient(180deg, rgba(34, 197, 94, 0.14), rgba(34, 197, 94, 0.045));
      box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.08), 0 0 14px rgba(34, 197, 94, 0.08);
      overflow: visible;
    }

    .hdr-icon-btn--updates:hover {
      color: var(--accent);
      border-color: var(--accent);
      background: rgba(34, 197, 94, 0.16);
      box-shadow: var(--accent-glow), inset 0 0 0 1px rgba(34, 197, 94, 0.16);
      transform: translateY(-1px);
    }

    .hdr-icon-btn--updates::after {
      content: '';
      position: absolute;
      top: -3px;
      right: -3px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--red);
      border: 1px solid var(--card);
      box-shadow: 0 0 10px rgba(255, 61, 90, 0.7);
      animation: update-dot-pulse 2.4s ease-in-out infinite;
    }

    @keyframes update-dot-pulse {
      0%, 100% {
        transform: scale(1);
        opacity: 1;
      }

      50% {
        transform: scale(0.72);
        opacity: 0.55;
      }
    }

    .updates-panel {
      position: fixed;
      top: 0;
      right: -440px;
      width: 420px;
      max-width: 92vw;
      height: 100vh;
      background: var(--card);
      border-left: 1px solid var(--accent-border);
      box-shadow: -12px 0 34px rgba(0, 0, 0, 0.55);
      z-index: 20010;
      display: flex;
      flex-direction: column;
      visibility: hidden;
      pointer-events: none;
      transition: right 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.25s;
    }

    .updates-panel.open {
      right: 0;
      visibility: visible;
      pointer-events: auto;
      transition: right 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
    }

    .updates-panel-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 16px 18px;
      background: var(--card2);
      border-bottom: 1px solid var(--border-bright);
      flex-shrink: 0;
    }

    .updates-panel-title {
      display: flex;
      align-items: center;
      gap: 9px;
      color: var(--accent);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .updates-panel-close {
      width: 28px;
      height: 28px;
      background: transparent;
      border: 1px solid var(--border);
      color: var(--muted2);
      cursor: pointer;
      transition: border-color 0.15s, color 0.15s;
    }

    .updates-panel-close:hover {
      border-color: var(--red);
      color: var(--red);
    }

    .updates-panel-body {
      overflow-y: auto;
      padding: 16px 18px 24px;
      flex: 1;
      -webkit-overflow-scrolling: touch;
    }

    .updates-panel-intro {
      color: var(--muted2);
      font-size: 11px;
      line-height: 1.7;
      margin-bottom: 14px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--border);
    }

    .update-item {
      border: 1px solid var(--border);
      border-left: 2px solid var(--accent);
      background: var(--card2);
      padding: 12px 13px;
      margin-bottom: 10px;
    }

    .update-item-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 7px;
    }

    .update-item-date {
      color: var(--accent);
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.08em;
    }

    .update-item-type {
      color: var(--muted2);
      border: 1px solid var(--border-bright);
      background: var(--card);
      padding: 1px 6px;
      font-size: 8px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .update-item-title {
      color: var(--text);
      font-size: 12px;
      font-weight: 700;
      margin-bottom: 5px;
    }

    .update-item-summary {
      color: var(--muted2);
      font-size: 11px;
      line-height: 1.6;
    }

    /* ─── FEEDS VIEW ─── */
    .feeds-view {
      display: none;
      padding: 10px 0;
    }

    .feeds-view.active {
      display: block;
    }

    .db-view {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 0;
    }

    .db-view.hidden {
      display: none;
    }

    /* ─── FEEDS PAGE HEADER ─── */
    .feeds-hero {
      background: var(--card);
      border: 1px solid var(--border);
      border-top: 2px solid var(--accent);
      padding: 20px 24px;
      margin-bottom: 20px;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;
    }

    .feeds-hero-left {
      flex: 1;
    }

    .feeds-hero-title {
      font-size: 15px;
      font-weight: 700;
      color: var(--text);
      letter-spacing: 0.04em;
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .feeds-hero-title svg {
      color: var(--accent);
    }

    .feeds-hero-desc {
      font-size: 11px;
      color: var(--muted2);
      line-height: 1.6;
      max-width: 560px;
    }

    .feeds-hero-stats {
      display: flex;
      gap: 20px;
      flex-shrink: 0;
    }

    .feeds-hero-stat {
      text-align: center;
      padding: 10px 16px;
      background: var(--card2);
      border: 1px solid var(--border);
    }

    .feeds-hero-stat-num {
      font-size: 20px;
      font-weight: 700;
      color: var(--accent);
      letter-spacing: -0.02em;
    }

    .feeds-hero-stat-label {
      font-size: 9px;
      color: var(--muted2);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-top: 2px;
    }


    .feeds-table {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 20px;
    }

    .feeds-table thead tr {
      background: var(--card2);
      border-bottom: 2px solid var(--border-bright);
    }

    .feeds-table th {
      padding: 10px 14px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted2);
      text-align: left;
    }

    .feeds-table td {
      padding: 11px 14px;
      border-bottom: 1px solid var(--border);
      font-size: 12px;
      color: var(--text);
      vertical-align: middle;
    }

    .feeds-table tbody tr {
      background: var(--card);
      transition: background 0.12s;
    }

    .feeds-table tbody tr:hover {
      background: var(--card2);
    }

    .feeds-table td.feed-desc-cell {
      font-size: 11px;
      color: var(--muted2);
    }

    .feeds-table td.feed-actions-cell {
      white-space: nowrap;
      text-align: right;
    }

    .feed-type-badge {
      font-size: 8px;
      font-weight: 700;
      letter-spacing: 0.1em;
      padding: 2px 6px;
      border: 1px solid;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .feed-type-badge.misp {
      color: #f59e0b;
      border-color: rgba(245, 158, 11, 0.3);
      background: rgba(245, 158, 11, 0.06);
    }

    .feed-type-badge.stix {
      color: #60a5fa;
      border-color: rgba(96, 165, 250, 0.3);
      background: rgba(96, 165, 250, 0.06);
    }

    .feed-type-badge.splunk {
      color: #f97316;
      border-color: rgba(249, 115, 22, 0.3);
      background: rgba(249, 115, 22, 0.06);
    }

    .feed-type-badge.json {
      color: var(--accent);
      border-color: var(--accent-border);
      background: var(--accent-dim);
    }

    .feed-type-badge.csv {
      color: #a78bfa;
      border-color: rgba(167, 139, 250, 0.3);
      background: rgba(167, 139, 250, 0.06);
    }

    .feed-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-family: var(--mono);
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 5px 10px;
      border: 1px solid;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.15s;
    }

    .feed-btn+.feed-btn {
      margin-left: 5px;
    }

    .feed-btn.copy {
      background: var(--card2);
      border-color: var(--border);
      color: var(--muted2);
    }

    .feed-btn.copy:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    .feed-btn.copy.copied {
      border-color: var(--accent);
      color: var(--accent);
      background: var(--accent-dim);
    }

    .feed-btn.dl {
      background: var(--accent-dim);
      border-color: var(--accent-border);
      color: var(--accent);
    }

    .feed-btn.dl:hover {
      background: rgba(34, 197, 94, 0.15);
      border-color: var(--accent);
      box-shadow: var(--accent-glow);
    }

    @media (max-width: 700px) {
      .feeds-grid {
        grid-template-columns: 1fr;
      }

      .feeds-hero {
        flex-direction: column;
      }

      .feeds-hero-stats {
        width: 100%;
      }

      .feeds-hero-stat {
        flex: 1;
      }

      .site-header {
        padding: 0 14px;
        grid-template-columns: 1fr auto;
        gap: 0;
      }

      .site-nav {
        display: none;
      }

      .hamburger {
        display: flex;
      }

      .mobile-drawer {
        display: block;
      }

      .hdr-chrome-mobile {
        display: inline-flex;
      }

      .hdr-starcount {
        display: none !important;
      }

      .site-actions {
        gap: 5px;
      }

      .hdr-icon-btn {
        width: 30px;
        height: 30px;
      }
    }

    /* ─── SOURCES MODAL ─── */
    .stat-card-clickable {
      cursor: pointer;
    }

    .stat-card-clickable:hover {
      border-color: var(--accent);
      background: var(--accent-dim);
    }

    .sources-modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: var(--overlay-bg);
      z-index: 10000;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(2px);
    }

    .sources-modal-overlay.open {
      display: flex;
    }

    .sources-modal {
      background: var(--card);
      border: 1px solid var(--border-bright);
      border-top: 2px solid var(--accent);
      width: min(560px, 92vw);
      max-height: 75vh;
      display: flex;
      flex-direction: column;
      animation: modal-in 0.15s ease;
    }

    @keyframes modal-in {
      from {
        opacity: 0;
        transform: translateY(-12px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .sources-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 18px;
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }

    .sources-modal-title {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      font-weight: 700;
      color: var(--accent);
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    .sources-modal-close {
      background: none;
      border: 1px solid var(--border);
      color: var(--muted2);
      width: 26px;
      height: 26px;
      cursor: pointer;
      font-size: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: border-color 0.15s, color 0.15s;
    }

    .sources-modal-close:hover {
      border-color: var(--red);
      color: var(--red);
    }

    .sources-modal-body {
      overflow-y: auto;
      padding: 12px 18px 18px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .source-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 12px;
      background: var(--card2);
      border: 1px solid var(--border);
      cursor: pointer;
      transition: border-color 0.15s, background 0.15s;
      text-decoration: none;
    }

    .source-row:hover {
      border-color: var(--accent);
      background: var(--accent-dim);
    }

    .source-row-left {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .source-row-dot {
      width: 6px;
      height: 6px;
      background: var(--accent);
      border-radius: 50%;
      flex-shrink: 0;
    }

    .source-row-name {
      font-size: 11px;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .source-row-count {
      font-size: 10px;
      color: var(--accent);
      background: var(--accent-dim);
      border: 1px solid var(--accent-border);
      padding: 2px 8px;
      flex-shrink: 0;
      letter-spacing: 0.05em;
    }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 700px) {

      html,
      body {
        font-size: 14px;
        overflow: auto;
        height: auto;
      }

      .app {
        padding: 10px 10px 0;
        height: auto;
        overflow: visible;
        gap: 0;
        padding-bottom: 60px;
      }

      .db-view {
        flex: none;
        height: auto;
      }

      /* ── Stats ── */
      .stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
      }

      .stat-card {
        padding: 12px 10px;
        gap: 0;
        flex-direction: column;
        align-items: flex-start;
        background-image: none;
      }

      .stat-icon {
        display: none;
      }

      .stat-label {
        font-size: 9px;
        letter-spacing: 0.08em;
        margin-bottom: 5px;
      }

      .stat-value {
        font-size: 24px;
        letter-spacing: -0.02em;
      }

      #stat-latest {
        font-size: 13px;
        padding-top: 2px;
      }

      /* ── Categories ── */
      .cat-dist-bar {
        height: 8px;
        margin-bottom: 12px;
        border-radius: 1px;
      }

      .cat-item {
        padding: 5px 9px;
      }

      .cat-label {
        font-size: 10px;
      }

      /* ── Search ── */
      .search-bar {
        padding: 12px 14px;
        gap: 10px;
      }

      .search-bar input {
        font-size: 13px;
      }

      .search-bar input::placeholder {
        font-size: 12px;
      }

      .search-hint {
        display: none;
      }

      /* ── Filters ── */
      .filters-row.open {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px 14px;
        max-height: 300px;
        overflow-y: auto;
      }

      .filter-left {
        flex-wrap: wrap;
        gap: 8px;
      }

      #source-filter {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
        font-size: 13px;
        padding: 10px 28px 10px 10px;
      }

      #date-filter {
        flex: 1;
        font-size: 13px;
        padding: 10px 28px 10px 10px;
        max-width: 100%;
      }

      .filters-row>div:nth-child(2) {
        flex-direction: row;
        flex-shrink: 0;
        font-size: 11px;
        gap: 5px;
      }

      .filters-row>div:nth-child(2) #page-size {
        width: 60px;
        font-size: 12px;
        padding: 10px 4px 10px 8px;
      }

      .count-badge {
        font-size: 11px;
        padding: 7px 12px;
        text-align: center;
      }

      .clear-btn {
        width: auto;
        justify-content: center;
        font-size: 11px;
        padding: 7px 12px;
      }

      /* ── Table layout reset for mobile ── */
      .table-card {
        flex: none;
        overflow: visible;
        min-height: unset;
      }

      #table-wrap {
        overflow: visible;
        flex: none;
        min-height: unset;
      }

      /* ── Mobile cards ── */
      #table-wrap table {
        display: none;
      }

      #card-list {
        display: flex;
        padding: 10px;
        gap: 8px;
      }

      .ext-card-header {
        padding: 9px 12px;
      }

      .ext-card-name {
        font-size: 14px;
      }

      .ext-card-num {
        font-size: 10px;
      }

      .ext-card-label {
        font-size: 9px;
        width: 42px;
      }

      .ext-card-val,
      .ext-card-id {
        font-size: 12px;
      }

      /* ── Pagination ── */
      .pagination {
        padding: 12px 10px;
        gap: 3px;
        flex-wrap: wrap;
      }

      .page-btn {
        font-size: 11px;
        padding: 7px 10px;
        min-width: 34px;
      }

      .page-info {
        font-size: 10px;
      }

      /* ── Footer ── */
      .status-bar {
        padding: 10px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
      }

      .status-bar-text {
        font-size: 9px;
      }

      .status-bar-right {
        gap: 10px;
      }

      .status-freshness {
        font-size: 8px;
      }
    }

    /* Extra small phones */
    @media (max-width: 380px) {
      .header-title h1 {
        font-size: 15px;
      }

      .stats-row {
        grid-template-columns: repeat(3, 1fr);
      }

      .stat-value {
        font-size: 18px;
      }

      .filter-left .filter-select {
        font-size: 10px;
      }
    }

    .kbd-row {
      display: grid;
      grid-template-columns: 80px 1fr;
      gap: 12px;
      align-items: center;
      padding: 8px;
      background: var(--card2);
      border-left: 2px solid var(--accent);
    }

    /* ─── REPORTS VIEW ─── */
    .reports-view {
      display: none;
      padding: 10px 0;
    }

    .reports-view.active {
      display: grid;
      grid-template-columns: 240px 1fr;
      gap: 14px;
      min-height: 500px;
    }

    .reports-sidebar {
      background: var(--card);
      border: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .reports-sidebar-hdr {
      padding: 10px 14px;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted2);
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }

    .reports-list {
      overflow-y: auto;
      flex: 1;
    }

    .report-item {
      padding: 10px 14px;
      border-bottom: 1px solid var(--border);
      cursor: pointer;
      transition: background 0.12s;
    }

    .report-item:hover {
      background: var(--card2);
    }

    .report-item.active {
      background: var(--card2);
      border-left: 2px solid var(--accent);
    }

    .report-item-title {
      font-size: 11px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 4px;
      line-height: 1.3;
    }

    .report-item-meta {
      font-size: 9px;
      color: var(--muted2);
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
    }

    .report-tag {
      background: var(--card2);
      border: 1px solid var(--border);
      padding: 1px 6px;
      font-size: 8px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted2);
    }

    .reports-body {
      background: var(--card);
      border: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .reports-body-bar {
      padding: 8px 16px;
      border-bottom: 1px solid var(--border);
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted2);
      flex-shrink: 0;
    }

    .reports-body-empty {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted2);
      font-size: 11px;
    }

    .reports-md {
      flex: 1;
      overflow-y: auto;
      padding: 32px 28px;
      display: none;
      background: var(--bg);
    }

    .reports-md.visible {
      display: block;
    }

    .reports-md-inner {
      max-width: 680px;
      margin: 0 auto;
    }

    /* Markdown typography */
    .reports-md h1 {
      font-size: 20px;
      font-weight: 700;
      color: var(--text);
      margin: 0 0 16px;
      line-height: 1.3;
      letter-spacing: -0.01em;
    }

    .reports-md h2 {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      margin: 28px 0 10px;
      padding-bottom: 7px;
      border-bottom: 1px solid var(--border);
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .reports-md h3 {
      font-size: 12px;
      font-weight: 700;
      color: var(--text);
      margin: 18px 0 6px;
    }

    .reports-md p {
      font-size: 12px;
      color: var(--muted2);
      line-height: 1.8;
      margin: 0 0 12px;
    }

    .reports-md ul,
    .reports-md ol {
      font-size: 12px;
      color: var(--muted2);
      line-height: 1.8;
      margin: 0 0 12px;
      padding-left: 20px;
    }

    .reports-md li {
      margin-bottom: 4px;
    }

    .reports-md code {
      font-family: var(--mono);
      font-size: 10px;
      background: var(--card);
      border: 1px solid var(--border);
      padding: 2px 6px;
      color: var(--accent);
      border-radius: 2px;
    }

    .reports-md pre {
      background: var(--card);
      border: 1px solid var(--border);
      padding: 14px 16px;
      overflow-x: auto;
      margin: 0 0 14px;
      border-radius: 2px;
    }

    .reports-md pre code {
      background: none;
      border: none;
      padding: 0;
      color: var(--text);
      font-size: 11px;
    }

    /* - ABOUT VIEW - */
    .about-view {
      display: none;
      padding: 32px 0;
      height: 100%;
      overflow: auto;
      -webkit-overflow-scrolling: touch;
    }

    .about-view.active {
      display: block;
    }

    .about-container {
      max-width: 680px;
      margin: 0 auto;
      padding: 0 24px;
    }

    .about-header {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 20px;
    }

    .about-header svg {
      color: var(--accent);
      flex-shrink: 0;
    }

    .about-header h1 {
      font-size: 28px;
      font-weight: 700;
      color: var(--text);
      letter-spacing: -0.01em;
      margin: 0;
    }

    .about-tagline {
      font-size: 13px;
      color: var(--muted2);
      line-height: 1.6;
      margin-bottom: 28px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--border);
    }

    .about-section {
      margin-bottom: 32px;
    }

    .about-section h2 {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin: 0 0 12px;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--border-bright);
    }

    .about-section p {
      font-size: 12px;
      color: var(--muted2);
      line-height: 1.8;
      margin: 0 0 10px;
    }

    .about-section ul {
      font-size: 12px;
      color: var(--muted2);
      line-height: 1.8;
      margin: 12px 0;
      padding-left: 20px;
    }

    .about-section li {
      margin-bottom: 6px;
    }

    .about-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--accent);
      text-decoration: none;
      font-weight: 600;
      border-bottom: 1px solid rgba(34, 197, 94, 0.3);
      transition: border-color 0.2s, color 0.2s;
    }

    .about-link:hover {
      color: var(--accent);
      border-color: var(--accent);
    }

    @media (max-width: 700px) {
      .about-container {
        padding: 0 16px;
      }

      .about-header {
        flex-wrap: wrap;
      }

      .about-header h1 {
        font-size: 22px;
        width: 100%;
        margin-top: 8px;
      }

      .about-view {
        padding: 20px 0;
      }
    }

    .reports-md blockquote {
      border-left: 3px solid var(--accent);
      margin: 0 0 14px;
      padding: 10px 16px;
      background: var(--card);
    }

    .reports-md blockquote p {
      margin: 0;
      color: var(--muted2);
      font-style: italic;
    }

    .reports-md a {
      color: var(--accent);
      text-decoration: none;
    }

    .reports-md a:hover {
      text-decoration: underline;
    }

    .reports-md hr {
      border: none;
      border-top: 1px solid var(--border);
      margin: 24px 0;
    }

    .reports-md strong {
      color: var(--text);
      font-weight: 700;
    }

    .reports-md table {
      width: 100%;
      border-collapse: collapse;
      font-size: 11px;
      margin: 0 0 14px;
    }

    .reports-md th {
      background: var(--card);
      padding: 7px 12px;
      text-align: left;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted2);
      border-bottom: 2px solid var(--border);
    }

    .reports-md td {
      padding: 8px 12px;
      border-bottom: 1px solid var(--border);
      color: var(--muted2);
    }

    .reports-md tr:last-child td {
      border-bottom: none;
    }

    @media (max-width: 640px) {
      .reports-view.active {
        grid-template-columns: 1fr;
      }

      .reports-sidebar {
        max-height: 220px;
      }
    }

    /* ─── PARSER VIEW ─── */
    .parser-view {
      display: none;
      padding: 10px 0;
    }

    .parser-view.active {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 0;
      overflow-y: auto;
    }

    .crx-drop-wrap {
      background: var(--card);
      border: 1px dashed var(--border-bright);
      padding: 14px 20px;
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      transition: border-color 0.15s, background 0.15s;
      margin-bottom: 10px;
    }

    .crx-drop-wrap:hover,
    .crx-drop-wrap.drag-over {
      border-color: var(--accent);
      background: var(--accent-dim);
    }

    .crx-drop-icon {
      color: var(--accent);
      opacity: 0.7;
      flex-shrink: 0;
    }

    .crx-drop-title {
      font-size: 11px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 2px;
    }

    .crx-drop-sub {
      font-size: 10px;
      color: var(--muted2);
    }

    #crx-file-input {
      display: none;
    }

    .crx-or-divider {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 6px 0;
      color: var(--muted2);
      font-family: var(--mono);
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.1em;
    }
    .crx-or-divider::before,
    .crx-or-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    .crx-fetch-wrap {
      margin-bottom: 10px;
      background: var(--accent-dim);
      border: 1px solid var(--accent-border);
      padding: 10px 12px;
    }

    .crx-fetch-label {
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 7px;
      display: block;
    }

    .crx-fetch-row {
      display: flex;
      gap: 0;
      overflow: hidden;
    }

    .crx-fetch-input {
      flex: 1;
      min-width: 0;
      background: var(--card);
      border: 1px solid var(--accent-border);
      border-right: none;
      color: var(--text);
      font-family: var(--mono);
      font-size: 11px;
      padding: 9px 12px;
      outline: none;
      transition: border-color 0.15s;
    }

    .crx-fetch-input::placeholder {
      color: var(--muted2);
      opacity: 0.5;
    }

    .crx-fetch-input:focus {
      border-color: var(--accent);
    }

    .crx-fetch-btn {
      background: var(--accent);
      border: 1px solid var(--accent);
      color: #000;
      font-family: var(--mono);
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 0 18px;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.15s;
      flex-shrink: 0;
    }

    .crx-fetch-btn:hover {
      filter: brightness(1.15);
    }

    .crx-fetch-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .crx-status {
      font-size: 10px;
      color: var(--muted2);
      padding: 8px 12px;
      background: var(--card2);
      border: 1px solid var(--border);
      margin-bottom: 14px;
      display: none;
    }

    .crx-ext-header {
      display: none;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 10px;
    }

    .crx-ext-header.visible {
      display: flex;
    }

    .crx-ext-field {
      display: flex;
      flex-direction: column;
      gap: 2px;
      background: var(--card);
      border: 1px solid var(--border);
      padding: 7px 12px;
      cursor: pointer;
      transition: border-color 0.12s;
      min-width: 100px;
    }

    .crx-ext-field:hover {
      border-color: var(--accent);
    }

    .crx-ext-field--wide {
      flex: 1;
      cursor: default;
    }

    .crx-ext-field--wide:hover {
      border-color: var(--border);
    }

    .crx-ext-label {
      font-size: 8px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted2);
    }

    .crx-ext-value {
      font-size: 11px;
      font-weight: 700;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .crx-ext-field.copied .crx-ext-value {
      color: var(--accent);
    }

    .crx-workspace {
      display: none;
      grid-template-columns: 200px 1fr 300px;
      gap: 10px;
      min-height: 500px;
    }

    .crx-workspace.active {
      display: grid;
    }

    .crx-mobile-tabs {
      display: none;
    }

    @media (max-width: 640px) {
      .crx-workspace.active {
        display: flex;
        flex-direction: column;
        min-height: 0;
        gap: 0;
      }

      .crx-mobile-tabs {
        display: flex;
        flex-shrink: 0;
        border-bottom: 1px solid var(--border);
      }

      .crx-mob-tab {
        flex: 1;
        padding: 9px 4px;
        background: var(--card2);
        border: none;
        border-right: 1px solid var(--border);
        color: var(--muted2);
        font-family: var(--mono);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        cursor: pointer;
        transition: all 0.15s;
      }

      .crx-mob-tab:last-child { border-right: none; }

      .crx-mob-tab.active {
        color: var(--accent);
        background: var(--accent-dim);
      }

      .crx-sidebar,
      .crx-viewer,
      .crx-analysis {
        display: none !important;
        flex: 1;
        min-height: 400px;
      }

      .crx-workspace[data-panel="files"] .crx-sidebar,
      .crx-workspace[data-panel="code"] .crx-viewer,
      .crx-workspace[data-panel="analysis"] .crx-analysis {
        display: flex !important;
        flex-direction: column;
      }
    }

    .crx-sidebar {
      background: var(--card);
      border: 1px solid var(--border);
      overflow-y: auto;
    }

    .crx-sidebar-header {
      padding: 8px 12px;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted2);
      border-bottom: 1px solid var(--border);
      background: var(--card2);
    }

    .crx-file-item {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 6px 10px;
      cursor: pointer;
      border-bottom: 1px solid var(--border);
      transition: background 0.1s;
      overflow: hidden;
    }

    .crx-file-item:hover {
      background: var(--card2);
    }

    .crx-file-item.active {
      background: var(--accent-dim);
      border-left: 2px solid var(--accent);
    }

    .crx-file-icon {
      font-size: 8px;
      font-weight: 700;
      color: var(--muted2);
      letter-spacing: 0.04em;
      flex-shrink: 0;
      width: 18px;
      text-align: center;
    }

    .crx-tree-dir-header {
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 5px 10px;
      font-size: 10px;
      font-weight: 600;
      color: var(--muted2);
      cursor: pointer;
      border-bottom: 1px solid var(--border);
      user-select: none;
      transition: background 0.1s;
    }

    .crx-tree-dir-header:hover {
      background: var(--card2);
    }

    .crx-tree-arrow {
      font-size: 9px;
      flex-shrink: 0;
      transition: transform 0.15s;
      opacity: 0.5;
    }

    .crx-tree-dir.collapsed > .crx-tree-children {
      display: none;
    }

    .crx-tree-dir.collapsed > .crx-tree-dir-header .crx-tree-arrow {
      transform: rotate(-90deg);
    }

    .crx-file-name {
      font-size: 10px;
      color: var(--muted2);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .crx-file-item.active .crx-file-name {
      color: var(--accent);
    }

    .crx-viewer {
      background: var(--card);
      border: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .crx-viewer-bar {
      padding: 7px 12px;
      font-size: 9px;
      color: var(--muted2);
      border-bottom: 1px solid var(--border);
      background: var(--card2);
      display: flex;
      align-items: center;
      gap: 8px;
      letter-spacing: 0.06em;
    }

    .crx-viewer-bar span {
      color: var(--text);
      font-weight: 700;
    }

    .crx-viewer-body {
      flex: 1;
      overflow: auto;
      padding: 0;
    }

    .crx-viewer-body pre {
      margin: 0;
      padding: 14px;
      font-size: 11px;
      line-height: 1.5;
      background: transparent !important;
      white-space: pre;
      word-break: normal;
      overflow-x: auto;
    }

    .crx-viewer-empty {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;
      color: var(--muted2);
      font-size: 10px;
      flex-direction: column;
      gap: 8px;
    }

    .crx-analysis {
      background: var(--card);
      border: 1px solid var(--border);
      overflow-y: auto;
    }

    .crx-analysis-header {
      padding: 8px 12px;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted2);
      border-bottom: 1px solid var(--border);
      background: var(--card2);
    }

    #crx-analysis-results {
      padding: 12px;
    }

    .crx-host-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 5px 0;
      border-bottom: 1px solid var(--border);
      font-size: 10px;
    }

    .crx-host-name {
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1;
    }

    .crx-vt-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 8px;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--amber);
      border: 1px solid rgba(245, 158, 11, 0.3);
      background: rgba(245, 158, 11, 0.06);
      text-decoration: none;
      white-space: nowrap;
      transition: background 0.12s;
      flex-shrink: 0;
    }

    .crx-vt-btn:hover {
      background: rgba(245, 158, 11, 0.15);
    }

    .risk-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
    }

    .risk-score {
      font-size: 28px;
      font-weight: 700;
      letter-spacing: -0.02em;
    }

    .risk-high {
      color: var(--red);
    }

    .risk-med {
      color: var(--amber);
    }

    .risk-low {
      color: var(--accent);
    }

    .reason-high {
      color: var(--red);
    }

    .reason-med {
      color: var(--amber);
    }

    .reason-low {
      color: var(--accent);
    }

    .risk-item {
      display: flex;
      gap: 10px;
      padding: 8px;
      border: 1px solid var(--border);
      background: var(--card2);
      margin-bottom: 6px;
    }

    .risk-content {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
      flex: 1;
    }

    .risk-item.danger {
      border-color: rgba(255, 61, 90, 0.25);
      background: var(--red-dim);
    }

    .risk-item.warn {
      border-color: rgba(245, 158, 11, 0.25);
      background: rgba(245, 158, 11, 0.06);
    }

    .risk-icon {
      font-size: 14px;
      flex-shrink: 0;
    }

    .risk-title {
      font-size: 10px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 2px;
    }

    .risk-desc {
      font-size: 9px;
      color: var(--muted2);
      line-height: 1.4;
    }

    .host-list {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .host-tag {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      padding: 4px 0;
      border-bottom: 1px solid var(--border);
      font-size: 10px;
      color: var(--muted2);
    }

    .vt-query-btn {
      color: var(--amber);
      text-decoration: none;
      flex-shrink: 0;
    }

    @media (prefers-reduced-motion: reduce) {
      .site-wordmark {
        animation: none;
      }

      .mobile-drawer {
        transition: none;
      }

      .hamburger span {
        transition: none;
      }
    }
