:root {
    --bg-primary: #0f1923;
    --bg-card: #1a2535;
    --bg-card-hover: #243347;
    --gold: #c9a227;
    --gold-light: #d4b43e;
    --silver: #8ea0b8;
    --text-primary: #e8e8e8;
    --text-secondary: #a3b3c7;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --radius: 10px;
  }
  * { box-sizing: border-box; }
  body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    min-height: 100vh;
  }
  .mono { font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace; }
  .tab-btn { transition: all 0.2s ease; }
  .tab-btn.active { color: var(--gold); border-color: var(--gold); }
  .tab-btn:not(.active) { color: var(--silver); border-color: transparent; }
  .tab-content { display: none; animation: fadeSlide 0.3s ease; }
  .tab-content.active { display: block; }
  @keyframes fadeSlide {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes slideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .result-card { animation: slideIn 0.4s ease; }
  .pill { cursor: pointer; transition: all 0.15s ease; }
  .pill:hover { background: var(--gold); color: #0f1923; }
  .ref-sub-tab { transition: all 0.15s ease; }
  .ref-sub-tab.active { background: var(--gold); color: #0f1923; }
  .ref-sub-tab:not(.active) { background: var(--bg-card); color: var(--silver); }
  .ref-sub-tab:not(.active):hover { background: var(--bg-card-hover); }
  table th { cursor: pointer; user-select: none; }
  table th:hover { color: var(--gold); }
  .accordion-header { cursor: pointer; transition: background 0.15s; }
  .accordion-header:hover { background: var(--bg-card-hover); }
  .accordion-body { display: none; }
  .accordion-body.open { display: block; animation: fadeSlide 0.25s ease; }
  .confidence-bar { height: 6px; border-radius: 3px; background: #2e4159; overflow: hidden; }
  .confidence-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
  input:focus, button:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
  .test-pass { color: var(--success); }
  .test-fail { color: var(--danger); }
  @media print {
    .no-print { display: none !important; }
    body { background: #fff; color: #000; }
    .result-card { border: 1px solid #ccc; }
  }
  pre code {
    display: block;
    background: #0a1018;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #b8c5d6;
  }
  .admin-input {
    background: #0f1923;
    border: 1px solid #2e4159;
    color: #e8e8e8;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    width: 100%;
  }
  .admin-input:focus { border-color: var(--gold); }
  .scroll-tabs { scrollbar-width: thin; scrollbar-color: #2e4159 transparent; }
  .scroll-tabs::-webkit-scrollbar { height: 4px; }
  .scroll-tabs::-webkit-scrollbar-thumb { background: #2e4159; border-radius: 2px; }
  .blue-callout {
    border-left: 4px solid #3b82f6;
    background: rgba(59, 130, 246, 0.08);
  }
  .version-badge {
    display: inline-block;
    background: var(--gold);
    color: #0f1923;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    vertical-align: super;
    letter-spacing: 0.05em;
  }
