    :root {
      --bg: #0d1117;
      --surface: #161b22;
      --surface2: #1c2128;
      --border: #30363d;
      --accent: #2563eb;
      --accent-glow: rgba(37, 99, 235, 0.12);
      --text: #e6edf3;
      --text-muted: #8b949e;
      --text-dim: #6e7681;
      --heading: #f0f6fc;
    }

    [data-theme="light"] {
      --bg: #ffffff;
      --surface: #f6f8fa;
      --surface2: #eaeef2;
      --border: #d0d7de;
      --accent: #0969da;
      --accent-glow: rgba(9, 105, 218, 0.08);
      --text: #1f2328;
      --text-muted: #656d76;
      --text-dim: #6e7781;
      --heading: #1f2328;
    }

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

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
      font-size: 15px;
      color: var(--text);
      background: var(--bg);
      line-height: 1.6;
    }

    a { color: var(--accent); text-decoration: none; }
    a:hover { color: var(--accent); text-decoration: underline; opacity: 0.85; }

    /* ── Header ── */
    .header {
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      padding: 2.5rem 1.5rem 2rem;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .header::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 60% 50% at 50% -10%, rgba(37,99,235,0.15) 0%, transparent 70%);
      pointer-events: none;
    }

    .header-eyebrow {
      font-size: 0.7rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 0.75rem;
      opacity: 0.9;
    }

    .header-eyebrow a {
      color: inherit;
    }

    .header-eyebrow a:hover {
      color: var(--accent);
      text-decoration: none;
    }

    .header h1 {
      font-size: clamp(1.6rem, 4vw, 2.4rem);
      font-weight: 700;
      color: var(--heading);
      letter-spacing: -0.02em;
      margin-bottom: 0.5rem;
    }

    .header h1 span {
      color: var(--accent);
    }

    .header-sub {
      font-size: 0.95rem;
      color: var(--text-muted);
      max-width: 600px;
      margin: 0 auto;
    }

    /* ── Nav ── */
    .nav {
      background: var(--surface2);
      border-bottom: 1px solid var(--border);
      padding: 0.6rem 1.5rem;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.25rem;
    }

    .nav a {
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-muted);
      padding: 0.3rem 0.55rem;
      border-radius: 4px;
      border: 1px solid transparent;
      transition: color 0.12s, border-color 0.12s, background 0.12s;
    }

    .nav a:hover {
      color: var(--text);
      border-color: var(--border);
      background: var(--surface);
      text-decoration: none;
    }

    /* ── Layout ── */
    .container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 2rem 1.5rem 3rem;
    }

    .page-heading {
      margin-bottom: 1.5rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid var(--border);
    }

    .page-heading h2 {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--heading);
      margin-bottom: 0.4rem;
    }

    .page-heading p {
      font-size: 0.9rem;
      color: var(--text-muted);
      max-width: 700px;
      line-height: 1.65;
    }

    /* ── Table ── */
    .table-wrap {
      overflow-x: auto;
      border: 1px solid var(--border);
      border-radius: 8px;
    }

    .table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.84rem;
      table-layout: fixed;
    }

    .table thead th {
      background: var(--surface2);
      color: var(--text-muted);
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 0.65rem 1rem;
      border-bottom: 1px solid var(--border);
      white-space: nowrap;
      text-align: left;
    }

    .table thead th:nth-child(1) { width: 16%; }
    .table thead th:nth-child(2) { width: 30%; }
    .table thead th:nth-child(3) { width: 54%; }

    .table tbody tr {
      border-bottom: 1px solid var(--border);
      transition: background 0.1s;
    }

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

    .table tbody tr:nth-child(odd) { background: var(--surface); }
    .table tbody tr:nth-child(even) { background: var(--bg); }
    .table tbody tr:hover { background: var(--surface2); }

    .table td {
      padding: 0.65rem 1rem;
      vertical-align: top;
      color: var(--text);
    }

    .table td:nth-child(1) {
      white-space: nowrap;
      color: var(--text-dim);
      font-size: 0.78rem;
      font-family: "SF Mono", "Cascadia Code", "Fira Code", monospace;
    }

    .table td:nth-child(2) {
      word-break: break-word;
      overflow-wrap: break-word;
    }

    .table td:nth-child(3) {
      color: var(--text-muted);
      font-size: 0.82rem;
      line-height: 1.55;
    }

    /* ── Related ── */
    .related {
      margin-top: 2rem;
      padding: 1.5rem 0;
      border-top: 1px solid var(--border);
    }

    .related h3 {
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 0.75rem;
    }

    .related-links {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 0.75rem;
    }

    .related-card {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      padding: 1rem;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--surface);
      transition: border-color 0.15s, background 0.15s, transform 0.15s;
    }

    .related-card:hover {
      border-color: var(--accent);
      background: var(--surface2);
      text-decoration: none;
      transform: translateY(-1px);
    }

    .rc-name {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--heading);
    }

    .rc-count {
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--accent);
      letter-spacing: 0.03em;
    }

    .rc-blurb {
      font-size: 0.8rem;
      color: var(--text-muted);
      line-height: 1.45;
    }

    /* ── FAQ ── */
    .faq {
      margin-top: 2rem;
      padding: 1.5rem 0;
      border-top: 1px solid var(--border);
    }

    .faq h3 {
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 1rem;
    }

    .faq-item {
      margin-bottom: 1.25rem;
    }

    .faq-item dt {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--heading);
      margin-bottom: 0.3rem;
    }

    .faq-item dd {
      font-size: 0.84rem;
      color: var(--text-muted);
      line-height: 1.6;
      margin: 0;
    }

    /* ── Footer ── */
    .new-badge { display: inline-block; background: #238636; color: #fff; font-size: 0.65rem; font-weight: 700; padding: 1px 6px; border-radius: 3px; margin-left: 6px; vertical-align: middle; letter-spacing: 0.04em; }
    .age-tag { display: inline-block; font-size: 0.55rem; font-weight: 700; padding: 1px 5px; border-radius: 3px; margin-left: 6px; vertical-align: middle; letter-spacing: 0.02em; }
    .age-fresh { background: rgba(35,134,54,0.15); color: #3fb950; }
    .age-recent { background: rgba(56,139,253,0.15); color: #58a6ff; }
    .age-older { background: rgba(139,148,158,0.1); color: var(--text-dim); }
    .age-classic { background: rgba(139,148,158,0.06); color: var(--text-dim); opacity: 0.7; }
    .diff-badge { display: inline-block; font-size: 0.55rem; font-weight: 700; padding: 1px 5px; border-radius: 3px; margin-left: 6px; vertical-align: middle; letter-spacing: 0.04em; text-transform: uppercase; }
    .diff-beginner { background: rgba(56,139,253,0.15); color: #58a6ff; }
    .diff-intermediate { background: rgba(210,153,34,0.18); color: #d29922; }
    .diff-advanced { background: rgba(248,81,73,0.18); color: #f85149; }
    .diff-news { background: rgba(139,148,158,0.12); color: var(--text-dim); }
    .filter-bar { display: flex; gap: 12px; align-items: center; margin: 0 0 1rem; font-size: 0.85rem; color: var(--text-muted); flex-wrap: wrap; }
    .filter-bar select { padding: 4px 8px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 0.85rem; cursor: pointer; }
    .filter-bar .filter-count { color: var(--text-dim); font-size: 0.8rem; }
    tbody.collapsed { display: none; }
    table.user-expanded tbody.collapsed,
    table.filter-expanded tbody.collapsed { display: table-row-group; }
    table.user-expanded .show-more-row { display: none; }
    .show-more-row td { text-align: center; padding: 1rem; border-bottom: none; background: var(--surface); }
    #show-more-btn { padding: 8px 18px; border-radius: 4px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
    #show-more-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
    .source-link { display: inline-block; font-size: 0.72rem; color: var(--text-dim); margin-left: 8px; white-space: nowrap; }
    .source-link:hover { color: var(--accent); text-decoration: underline; }
    .topic-tag { display: inline-block; font-size: 0.6rem; font-weight: 700; padding: 1px 6px; border-radius: 3px; background: var(--surface2); color: var(--text-muted); margin-left: 4px; vertical-align: middle; text-transform: uppercase; letter-spacing: 0.04em; }
    .topic-tag:hover { background: var(--accent); color: #fff; text-decoration: none; }
    .kev-sidebar { margin: 0 0 1.25rem; padding: 0.85rem 1rem; border: 1px solid var(--border); border-left: 3px solid #f85149; border-radius: 6px; background: var(--surface); }
    .kev-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 0.5rem; flex-wrap: wrap; }
    .kev-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
    .kev-icon { color: #f85149; font-size: 0.85rem; }
    .kev-more { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.04em; }
    .kev-more:hover { color: var(--accent); text-decoration: underline; }
    .kev-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
    .kev-list li { font-size: 0.82rem; line-height: 1.5; color: var(--text-muted); }
    .kev-cve { font-family: "SF Mono", "Cascadia Code", "Fira Code", monospace; font-size: 0.78rem; font-weight: 600; }
    .kev-vendor { font-weight: 600; color: var(--text); }
    .kev-name { color: var(--text-muted); }
    .kev-date { font-size: 0.7rem; color: var(--text-dim); margin-left: 4px; white-space: nowrap; }
    .kev-ransom { display: inline-block; background: rgba(248,81,73,0.18); color: #f85149; font-size: 0.6rem; font-weight: 700; padding: 1px 5px; border-radius: 3px; margin-left: 4px; letter-spacing: 0.04em; vertical-align: middle; }
    .share-buttons { display: flex; gap: 8px; margin: 0.8rem 0 0.2rem; align-items: center; }
    .share-buttons a, .share-buttons button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; text-decoration: none; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); cursor: pointer; transition: all 0.15s; }
    .share-buttons a:hover, .share-buttons button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
    .share-buttons svg { width: 14px; height: 14px; fill: currentColor; }
    .share-copied { background: #238636 !important; color: #fff !important; border-color: #238636 !important; }
    .footer {
      text-align: center;
      padding: 1.5rem 0 2.5rem;
      margin-top: 2rem;
      font-size: 0.82rem;
      color: var(--text-dim);
      border-top: 1px solid var(--border);
    }

    .footer a { color: var(--text-muted); }
    .footer a:hover { color: var(--text); }

    /* ── Scrollbar ── */
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: var(--bg); }
    ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

    /* ── Mobile ── */
    @media (max-width: 640px) {
      .container {
        padding: 1.25rem 1rem 2rem;
      }

      .nav a {
        font-size: 0.78rem;
        padding: 0.4rem 0.65rem;
      }

      .table-wrap {
        border: none;
        border-radius: 0;
        overflow-x: visible;
      }

      .table,
      .table tbody,
      .table tbody tr,
      .table tbody td {
        display: block;
        width: 100%;
      }

      .table thead {
        display: none;
      }

      .table tbody tr {
        border: 1px solid var(--border);
        border-radius: 6px;
        margin-bottom: 0.75rem;
        padding: 0.75rem 0.9rem;
      }

      .table tbody tr:nth-child(odd),
      .table tbody tr:nth-child(even) {
        background: var(--surface);
      }

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

      .table td {
        padding: 0;
        border: none;
      }

      .table td:nth-child(1) {
        white-space: normal;
        font-size: 0.72rem;
        color: var(--text-dim);
        margin-bottom: 0.35rem;
      }

      .table td:nth-child(2) {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
      }

      .table td:nth-child(3) {
        font-size: 0.8rem;
        line-height: 1.5;
        color: var(--text-muted);
        padding-top: 0.5rem;
        border-top: 1px solid var(--border);
      }
    }
    /* ── Search ── */
    .search-wrap { background:var(--surface2);border-bottom:1px solid var(--border);padding:0.5rem 1.5rem;display:flex;justify-content:center; }
    .search-box-wrap { position:relative;width:100%;max-width:480px; }
    .search-wrap input { width:100%;padding:0.45rem 0.75rem;font-size:0.84rem;font-family:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:6px;outline:none;transition:border-color 0.15s; }
    .search-wrap input:focus { border-color:var(--accent); }
    .search-wrap input::placeholder { color:var(--text-dim); }
    #search-overlay { display:none;position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,0.6);backdrop-filter:blur(4px);overflow-y:auto;padding:4rem 1rem 2rem; }
    #search-overlay.active { display:block; }
    #search-results { max-width:640px;margin:0 auto;background:var(--surface);border:1px solid var(--border);border-radius:8px;overflow:hidden; }
    .sr-count { padding:0.6rem 1rem;font-size:0.72rem;color:var(--text-dim);border-bottom:1px solid var(--border);text-transform:uppercase;letter-spacing:0.08em; }
    .sr-empty { padding:1.5rem 1rem;text-align:center;color:var(--text-muted);font-size:0.9rem; }
    .sr-item { display:flex;align-items:baseline;gap:0.6rem;padding:0.55rem 1rem;border-bottom:1px solid var(--border);color:var(--text);text-decoration:none;transition:background 0.1s; }
    .sr-item:hover { background:var(--surface2);text-decoration:none; }
    .sr-tag { flex-shrink:0;font-size:0.65rem;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--accent);min-width:60px; }
    .sr-title { flex:1;font-size:0.84rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
    .sr-date { flex-shrink:0;font-size:0.72rem;color:var(--text-dim);font-family:"SF Mono","Cascadia Code","Fira Code",monospace; }
    .search-suggest { display:none;position:absolute;top:100%;left:0;right:0;z-index:1001;background:var(--surface);border:1px solid var(--border);border-top:none;border-radius:0 0 6px 6px;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,0.3); }
    .search-suggest.active { display:block; }
    .sg-item { display:flex;align-items:center;gap:0.6rem;padding:0.45rem 0.75rem;color:var(--text);text-decoration:none;transition:background 0.1s;cursor:pointer; }
    .sg-item:hover,.sg-item.sg-active { background:var(--surface2);text-decoration:none; }
    .sg-type { flex-shrink:0;font-size:0.6rem;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;color:var(--accent);min-width:50px; }
    .sg-text { font-size:0.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
