:root {
    color-scheme: light;
    --surface-0: #faf9f5;
    --surface-1: #ffffff;
    --surface-2: #f5f4ed;
    --surface-3: #f0eee6;
    --swatch-band: #f5f2ea;
    --swatch-band-border: #e5e1d4;
    --topbar-bg: rgba(250, 249, 245, 0.94);
    --glass-surface: rgba(255, 255, 255, 0.78);
    --ink-primary: #141413;
    --ink-primary-hover: #2c2c2a;
    --ink-secondary: #5e5d59;
    --ink-muted: #68665f;
    --border: #e8e6dc;
    --border-strong: #d1cfc5;
    --accent: #d97757;
    --accent-hover: #a84424;
    --accent-btn-bg: #b84e2d;
    --accent-btn-hover: #9e3f21;
    --accent-btn-ink: #ffffff;
    --accent-soft: rgba(217, 119, 87, 0.12);
    --navy: #1b365d;
    --navy-hover: #142947;
    --navy-soft: rgba(27, 54, 93, 0.08);
    --navy-border: rgba(27, 54, 93, 0.20);

    --git-added: #1e9e3c;
    --git-added-ink: #146c2e;
    --git-added-bg: rgba(30, 158, 60, 0.12);
    --git-removed: #cd2054;
    --git-removed-ink: #a61742;
    --git-removed-bg: rgba(205, 32, 84, 0.11);
    --git-modified: #98801f;
    --git-modified-ink: #6e5708;
    --git-modified-bg: #f1e6bf;

    --topbar-offset: 86px;
    --icon-stroke: 1.5;
    --footer-ground: #141413;
    --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --font-sans: 'Plus Jakarta Sans', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  }

  html[data-theme="dark"] {
    color-scheme: dark;
    --surface-0: #141413;
    --surface-1: #1c1b19;
    --surface-2: #242320;
    --surface-3: #2d2b27;
    --swatch-band: #1b1a17;
    --swatch-band-border: #2f2d28;
    --topbar-bg: rgba(20, 20, 19, 0.90);
    --glass-surface: rgba(28, 27, 25, 0.80);
    --ink-primary: #f5f4ed;
    --ink-primary-hover: #e2e0d6;
    --ink-secondary: #b5b2a8;
    --ink-muted: #9b988e;
    --border: #2c2a26;
    --border-strong: #3e3b35;
    --accent: #e08667;
    --accent-hover: #ec9a7e;
    --accent-btn-bg: #e08667;
    --accent-btn-hover: #ec9a7e;
    --accent-btn-ink: #141413;
    --accent-soft: rgba(224, 134, 103, 0.16);
    --navy: #7fa6db;
    --navy-hover: #9bbbea;
    --navy-soft: rgba(127, 166, 219, 0.14);
    --navy-border: rgba(127, 166, 219, 0.28);

    --git-added: #4ade80;
    --git-added-ink: #86efac;
    --git-added-bg: rgba(74, 222, 128, 0.15);
    --git-removed: #fb7185;
    --git-removed-ink: #fda4af;
    --git-removed-bg: rgba(251, 113, 133, 0.16);
    --git-modified: #facc15;
    --git-modified-ink: #fde047;
    --git-modified-bg: rgba(250, 204, 21, 0.16);

    --footer-ground: #0e0e0d;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--surface-0);
    color: var(--ink-primary);
    font-family: var(--font-sans);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  .page-body { flex: 1; }

  /* Minimalist SVG Icon System (Iconoir 1.5px stroke) */
  .icon {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
    pointer-events: none;
    fill: none;
    stroke: currentColor;
    stroke-width: var(--icon-stroke, 1.5);
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .icon-xs { width: 13px; height: 13px; }
  .icon-sm { width: 15px; height: 15px; }
  .icon-md { width: 17px; height: 17px; }
  .icon-lg { width: 20px; height: 20px; }
  .icon-xl { width: 24px; height: 24px; }

  .search-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
  }
  .search-field-icon {
    position: absolute;
    left: 13px;
    color: var(--ink-muted);
    pointer-events: none;
  }
  .search-field-wrap > input {
    width: 100%;
    padding-left: 36px;
  }

  .status-msg-row {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    line-height: 1.45;
  }
  .status-msg-row .icon { margin-top: 2px; }

  .legal-notice-bar {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--ink-secondary);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--navy);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
  }
  .legal-notice-icon {
    color: var(--navy);
    margin-top: 2px;
  }
  .legal-notice-bar a {
    color: var(--accent-hover);
    font-weight: 600;
    text-decoration: none;
  }
  .legal-notice-bar a:hover { text-decoration: underline; }

  /* Reading Progress Bar & Floating Scroll-to-Top */
  .read-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent);
    z-index: 60;
    pointer-events: none;
    transition: width 0.08s linear;
  }
  .scroll-top-btn {
    position: fixed;
    right: 22px;
    bottom: 24px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface-1);
    color: var(--ink-primary);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.15s ease, color 0.15s ease;
    z-index: 45;
  }
  .scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .scroll-top-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  /* Clean Print / Save-as-PDF Stylesheet */
  @media print {
    :root, html[data-theme="dark"] {
      --surface-0: #ffffff;
      --surface-1: #ffffff;
      --surface-2: #f7f7f5;
      --ink-primary: #141413;
      --ink-secondary: #3f3e3a;
      --border: #d9d9d4;
    }
    body { background: #ffffff !important; color: #141413 !important; }
    .topbar, .site-footer, .toc-sidebar, .mobile-toc, .mobile-toc-fab, .toc-drawer-backdrop, .controls,
    .hero-export-row, .article-head-actions, .scroll-top-btn,
    .read-progress-bar, .compare-toolbar, .modal-backdrop {
      display: none !important;
    }
    .page-shell { display: block !important; max-width: 100% !important; padding: 0 !important; }
    .hero-band { background: #ffffff !important; border-bottom: 2px solid #141413 !important; padding: 0 0 14px !important; }
    .article-card { break-inside: avoid; border: 1px solid #d9d9d4 !important; box-shadow: none !important; margin-bottom: 12px !important; }
  }

  /* Sticky Topbar */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--topbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .topbar::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 28%, var(--ink-primary) 28%, var(--ink-primary) 100%);
  }
  .topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 11px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
  }
  .brand-group { display: flex; align-items: center; gap: 12px; }
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink-primary);
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.025em;
  }
  .brand-mark {
    width: 26px;
    height: 26px;
    display: block;
    flex-shrink: 0;
  }
  .brand-mark-dark { display: none; }
  html[data-theme="dark"] .brand-mark-light { display: none; }
  html[data-theme="dark"] .brand-mark-dark { display: block; }
  .theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--border-strong);
    background: var(--surface-1);
    color: var(--ink-primary);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    padding: 0;
    flex-shrink: 0;
  }
  .theme-toggle:hover {
    background: var(--surface-3);
    border-color: var(--accent);
    color: var(--accent);
  }
  .theme-icon-sun { display: none; }
  html[data-theme="dark"] .theme-icon-moon { display: none; }
  html[data-theme="dark"] .theme-icon-sun { display: block; }
  .brand-sub {
    display: none;
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--ink-muted);
    padding-left: 10px;
    border-left: 1px solid var(--border-strong);
    letter-spacing: 0;
  }
  @media (min-width: 1040px) { .brand-sub { display: inline-block; } }

  .top-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
  .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
  }
  .nav-link {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-secondary);
    text-decoration: none;
    padding: 6px 11px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
  }
  .nav-link:hover { background: var(--surface-3); color: var(--ink-primary); }
  .nav-link.active {
    background: var(--surface-3);
    color: var(--ink-primary);
    font-weight: 600;
  }

  .nav-search {
    display: inline-flex;
    align-items: center;
    background: var(--surface-1);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 3px 4px 3px 12px;
    gap: 4px;
    margin-left: 4px;
    transition: border-color .15s, box-shadow .15s;
  }
  .nav-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  .nav-search input {
    border: none;
    background: transparent;
    color: var(--ink-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    width: 155px;
    outline: none;
  }
  .nav-search input::placeholder { color: var(--ink-muted); }
  .nav-search button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    background: var(--ink-primary);
    color: var(--surface-0);
    border-radius: 999px;
    padding: 5px 11px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
  }
  .nav-search button:hover { background: var(--accent); }
  @media (max-width: 720px) {
    :root { --topbar-offset: 128px; }
    .topbar-inner { padding: 8px 14px; gap: 6px 8px; }
    .brand { font-size: 18px; gap: 8px; }
    .top-right { display: contents; }
    .brand-group { order: 1; }
    .nav-links { order: 2; margin-left: auto; gap: 2px; }
    .nav-link { font-size: 13px; padding: 6px 8px; }
    .nav-auth-btn { order: 3; }
    .theme-toggle { order: 4; }
    .nav-search { order: 5; flex: 1 0 100%; width: 100%; margin-left: 0; padding: 3px 4px 3px 12px; }
    .nav-search input { width: 100%; min-width: 0; font-size: 14px; }
    .nav-search button { padding: 5px 13px; }
  }
  @media (max-width: 520px) {
    #navAbout, #navPricing { display: none; }
    .nav-auth-btn { padding: 5px 9px; font-size: 12px; gap: 4px; }
    .nav-auth-btn .nav-auth-long { display: none; }
    .nav-auth-label { max-width: 68px; }
  }

  /* Buttons */
  .btn-outline {
    background: var(--surface-1);
    color: var(--ink-primary);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
  }
  .btn-outline:hover { border-color: var(--ink-primary); background: var(--surface-2); }
  .btn-primary {
    background: var(--ink-primary);
    color: var(--surface-0);
    border: 1px solid var(--ink-primary);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background .15s;
  }
  .btn-primary:hover { background: var(--ink-primary-hover); border-color: var(--ink-primary-hover); }
  .btn-accent {
    background: var(--accent-btn-bg);
    color: var(--accent-btn-ink);
    border: 1px solid var(--accent-btn-bg);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
  }
  .btn-accent:hover { background: var(--accent-btn-hover); border-color: var(--accent-btn-hover); }

  /* Semantic Redline Inline Tokens */
  del.reg-del {
    background: var(--git-removed-bg);
    color: var(--git-removed-ink);
    text-decoration: line-through;
    padding: 1px 4px;
    border-radius: 4px;
  }
  ins.reg-ins {
    background: var(--git-added-bg);
    color: var(--git-added-ink);
    text-decoration: none;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 4px;
  }

  /* Badges */
  .badge {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .badge-ORIGINAL { background: var(--surface-3); color: var(--ink-secondary); }
  .badge-MODIFIED { background: var(--git-modified-bg); color: var(--git-modified-ink); }
  .badge-INSERTED { background: var(--git-added-bg); color: var(--git-added-ink); }
  .badge-DELETED { background: var(--git-removed-bg); color: var(--git-removed-ink); }
  .authority-pill {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--navy);
    background: var(--navy-soft);
    border: 1px solid var(--navy-border);
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
  }

  /* Shared Catalog / Explorer Cards */
  .catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
  }
  @media (max-width: 400px) { .catalog-grid { grid-template-columns: 1fr; } }
  .cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 22px;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, border-color .15s, box-shadow .15s;
  }
  .cat-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 10px 26px rgba(20, 20, 19, 0.05);
  }
  .cat-stretched-link {
    text-decoration: none;
    color: inherit;
  }
  .cat-stretched-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
  }
  .cat-action-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--ink-primary);
    text-decoration: none;
    transition: border-color .15s, background .15s;
    white-space: nowrap;
  }
  .cat-cta-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-hover);
    font-weight: 600;
  }
  .cat-cta-arrow .icon { transition: transform .15s ease; }
  .cat-card:hover .cat-cta-arrow .icon { transform: translateX(2.5px); }
  .cat-action-link:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-hover);
  }
  .cat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--accent-hover);
    font-weight: 600;
  }
  .cat-title {
    font-family: var(--font-serif);
    font-size: 18.5px;
    font-weight: 500;
    line-height: 1.32;
    margin: 0 0 12px;
    color: var(--ink-primary);
  }
  .cat-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--ink-secondary);
  }

  /* Footer */
  .site-footer {
    background: var(--footer-ground);
    color: var(--surface-0);
    padding: 40px 24px;
    margin-top: 64px;
  }
  .footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
  }
  .footer-brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .footer-logo {
    display: block;
    width: 128px;
    height: 48px;
  }
  .footer-brand { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: #d1cfc5; }
  .footer-sub { font-size: 13px; color: #a4a199; margin-top: 6px; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
  .footer-links a { color: #d1cfc5; text-decoration: none; font-size: 13px; }
  .footer-links a:hover { color: var(--accent); }

  /* Request Modal */
  .modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(20, 20, 19, 0.48);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  .modal-backdrop.open { display: flex; }
  .modal-card {
    background: var(--surface-0);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 24px;
    box-shadow: 0 24px 48px rgba(20, 20, 19, 0.18);
  }
  body.modal-open { overflow: hidden; }
  .modal-close-btn {
    display: inline-flex;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
  }
  .error-state-card {
    grid-column: 1 / -1;
    background: var(--surface-1);
    border: 1px solid var(--border-strong);
    border-left: 4px solid var(--git-removed);
    border-radius: 14px;
    padding: 24px 22px;
    text-align: center;
    margin: 12px 0;
  }
  .error-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--git-removed-bg);
    color: var(--git-removed);
    margin: 0 auto 12px;
  }
  .error-state-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--ink-primary);
    margin: 0 0 6px;
  }
  .error-state-msg {
    font-size: 13.5px;
    color: var(--ink-secondary);
    margin: 0 0 16px;
    line-height: 1.5;
  }
  .error-state-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  @media (max-width: 768px) {
    .theme-toggle { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
    .nav-link { min-height: 44px; display: inline-flex; align-items: center; }
    .nav-search { min-height: 44px; }
    .nav-search button { min-height: 36px; padding: 0 14px; }
    .btn-outline, .btn-primary, .btn-accent { min-height: 44px; justify-content: center; }
    .modal-close-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
    .cat-action-link {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      padding: 0 12px;
      font-size: 12px;
    }
    .scroll-top-btn {
      width: 40px;
      height: 40px;
      right: 14px;
      bottom: 16px;
      background: var(--glass-surface);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }
    .scroll-top-btn.visible { opacity: 0.88; }
  }
  @media (max-width: 640px) {
    .authority-pill { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
    .cat-card { padding: 16px; min-width: 0; }
    .cat-top { flex-wrap: wrap; }
    .modal-card { padding: 18px 16px; max-height: calc(100dvh - 24px); }
  }
  .modal-title { font-family: var(--font-serif); font-size: 24px; font-weight: 500; margin: 0 0 6px; }
  .modal-sub { font-size: 13.5px; color: var(--ink-secondary); margin: 0 0 16px; }
  .field-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-secondary); margin-bottom: 5px; }
  .field-input {
    width: 100%;
    background: var(--surface-1);
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    padding: 9px 12px;
    font-family: var(--font-sans);
    font-size: 13.5px;
    color: var(--ink-primary);
    margin-bottom: 12px;
    outline: none;
  }
  .field-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

  /* Reguli Pro Auth & Promo Code UI */
  .nav-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(217, 119, 87, 0.36);
    background: var(--accent-soft);
    color: var(--accent-hover);
    border-radius: 999px;
    padding: 6px 12px;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s, background .15s, color .15s;
    flex-shrink: 0;
  }
  .nav-auth-btn:hover {
    border-color: var(--accent);
    background: var(--surface-2);
    color: var(--ink-primary);
  }
  .nav-auth-btn.logged-in {
    background: var(--surface-1);
    border-color: var(--border-strong);
    color: var(--ink-primary);
  }
  .nav-auth-label {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .plan-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--git-modified-bg);
    color: var(--git-modified-ink);
    border: 1px solid rgba(152, 128, 31, 0.28);
    white-space: nowrap;
  }
  .auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 14px;
  }
  .auth-tab-btn {
    border: none;
    background: transparent;
    color: var(--ink-secondary);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 7px;
    cursor: pointer;
  }
  .auth-tab-btn.active {
    background: var(--surface-1);
    color: var(--ink-primary);
    box-shadow: 0 1px 2px rgba(20, 20, 19, 0.08);
  }
  .plan-banner-box {
    background: var(--accent-soft);
    border: 1px solid rgba(217, 119, 87, 0.30);
    border-radius: 12px;
    padding: 11px 13px;
    margin-bottom: 14px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ink-primary);
  }
  .plan-banner-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
  }
  .promo-redeem-box {
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0 0 14px;
  }
  .auth-context-note {
    background: var(--surface-2);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 8px 11px;
    margin-bottom: 12px;
    font-size: 12.5px;
    color: var(--ink-secondary);
  }
  .api-key-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 9px 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    margin: 6px 0 14px;
    overflow-wrap: anywhere;
  }
  .export-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px 5px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2px;
  }
  .export-pro-tag {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-hover);
  }
  .export-cta-banner {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    text-align: left;
    border: 1px solid rgba(217, 119, 87, 0.34);
    background: var(--accent-soft);
    color: var(--accent-hover);
    border-radius: 9px;
    padding: 8px 10px;
    margin-top: 4px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.35;
  }
  .export-cta-banner:hover { border-color: var(--accent); color: var(--ink-primary); }
  .export-menu-sep { height: 1px; background: var(--border); margin: 4px 0; }
  @media (max-width: 768px) {
    .nav-auth-btn { min-height: 38px; }
    .auth-tab-btn { min-height: 40px; }
  }
  .fb-context-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 11px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    font-size: 12.5px;
    color: var(--ink-secondary);
  }
  .fb-context-text {
    font-weight: 600;
    color: var(--ink-primary);
    overflow-wrap: anywhere;
  }
  .fb-context-clear {
    background: none;
    border: none;
    color: var(--ink-muted);
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
    flex-shrink: 0;
  }
