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

    body {
      background: #0a0a0a;
      color: #d0d0d0;
      font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
      line-height: 1.7;
      min-height: 100vh;
    }

    /* ── Nav ── */
    nav {
      display: flex; align-items: center; gap: 10px;
      padding: 14px 24px; border-bottom: 1px solid #1a1a1a; font-size: 0.82rem;
      position: sticky; top: 0; background: rgba(10,10,10,0.95);
      backdrop-filter: blur(8px); z-index: 50;
    }
    nav a { color: #555; text-decoration: none; transition: color 0.2s; }
    nav a:hover { color: #f0f0f0; }
    nav .sep { color: #333; }
    nav .current { color: #e0e0e0; }
    nav .spacer { flex: 1; }
    .nav-updated { font-size: 0.72rem; color: #2a2a2a; }
    /* ── Nav auth button ── */
    #nav-auth { position: relative; }
    #nav-auth-btn {
      background: none; border: 1px solid #252525; border-radius: 6px;
      color: #444; font-size: 0.75rem; padding: 4px 10px; cursor: pointer;
      font-family: inherit; transition: color 0.2s, border-color 0.2s;
      text-decoration: none; display: inline-block; line-height: 1.6;
    }
    #nav-auth-btn:hover { color: #888; border-color: #333; }
    #nav-auth-btn.authed { color: #4ade80; border-color: rgba(74,222,128,0.25); }
    #nav-auth-dropdown {
      display: none; position: absolute; right: 0; top: calc(100% + 6px);
      background: #0e0e0e; border: 1px solid #1e1e1e; border-radius: 8px;
      min-width: 160px; z-index: 200; overflow: hidden;
    }
    #nav-auth-dropdown.open { display: block; }
    .nav-dd-item {
      display: block; padding: 9px 14px; font-size: 0.8rem; color: #888;
      text-decoration: none; cursor: pointer; background: none; border: none;
      font-family: inherit; width: 100%; text-align: left; transition: background .15s, color .15s;
    }
    .nav-dd-item:hover { background: #161616; color: #ccc; }
    .nav-dd-item.danger:hover { color: #f87171; }

    /* ── Countdown ── */
    .countdown-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.75rem;
      color: #3a3a3a;
    }
    .countdown-label { letter-spacing: 0.06em; }
    #countdown {
      font-variant-numeric: tabular-nums;
      font-weight: 700;
      color: #555;
      letter-spacing: 0.05em;
    }

    /* ── Layout ── */
    .page { max-width: 740px; margin: 0 auto; padding: 0 24px 80px; }

    /* ── Date header ── */
    .date-bar {
      padding: 36px 0 28px;
      border-bottom: 1px solid #1a1a1a;
    }
    .date-label {
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: #2e2e2e;
      margin-bottom: 6px;
    }
    #display-date {
      font-size: 1rem;
      color: #555;
      font-weight: 500;
    }

    /* ── Loading ── */
    .loading {
      text-align: center;
      padding: 100px 0;
      color: #333;
      font-size: 0.9rem;
    }
    .spinner {
      width: 32px; height: 32px;
      border: 2px solid #1e1e1e;
      border-top-color: #f59e0b;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      margin: 0 auto 16px;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ── Content ── */
    #content { display: none; }

    .format-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 36px;
      background: rgba(245,158,11,0.08);
      border: 1px solid rgba(245,158,11,0.18);
      border-radius: 99px;
      padding: 4px 12px;
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: #f59e0b;
    }

    .content-title {
      font-size: clamp(1.5rem, 4vw, 2.1rem);
      font-weight: 800;
      color: #fff;
      letter-spacing: -0.02em;
      line-height: 1.2;
      margin-top: 18px;
    }

    .content-subtitle {
      font-size: 1rem;
      color: #555;
      margin-top: 10px;
      line-height: 1.6;
    }

    /* ── Sections ── */
    .sections {
      margin-top: 40px;
      display: flex;
      flex-direction: column;
      gap: 32px;
    }

    .section-heading {
      font-size: 0.78rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: #f59e0b;
      margin-bottom: 10px;
    }

    .section-body p {
      color: #aaa;
      font-size: 0.95rem;
      margin-bottom: 12px;
    }
    .section-body p:last-child { margin-bottom: 0; }

    .section-body ul {
      list-style: none;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .section-body ul li {
      color: #aaa;
      font-size: 0.95rem;
      padding-left: 20px;
      position: relative;
    }
    .section-body ul li::before {
      content: '▸';
      position: absolute;
      left: 0;
      color: #f59e0b;
      font-size: 0.7rem;
      top: 4px;
    }

    .section-body strong { color: #d0d0d0; font-weight: 600; }
    .section-body em     { color: #888; font-style: italic; }

    /* ── Footer note ── */
    .footer-note {
      margin-top: 48px;
      padding: 18px 20px;
      background: #111;
      border: 1px solid #1e1e1e;
      border-left: 3px solid #f59e0b;
      border-radius: 0 8px 8px 0;
      font-size: 0.88rem;
      color: #666;
      font-style: italic;
    }

    /* ── Attribution ── */
    .attribution {
      margin-top: 48px;
      padding-top: 24px;
      border-top: 1px solid #1a1a1a;
      font-size: 0.72rem;
      color: #2a2a2a;
      text-align: center;
      letter-spacing: 0.04em;
    }
    .attribution a {
      color: #2a2a2a;
      text-decoration: none;
    }

    @media (max-width: 500px) {
      .content-title { font-size: 1.4rem; }
    }

    /* ── Search overlay ── */
    #search-overlay {
      display: none; position: fixed; inset: 0; z-index: 1000;
      background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
      align-items: flex-start; justify-content: center; padding-top: 80px;
    }
    #search-overlay.open { display: flex; }
    #search-box {
      background: #111; border: 1px solid #2a2a2a; border-radius: 10px;
      width: 100%; max-width: 580px; overflow: hidden;
      box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    }
    #search-input {
      width: 100%; padding: 16px 20px; background: none; border: none; outline: none;
      color: #e0e0e0; font-size: 1rem; font-family: inherit; box-sizing: border-box;
    }
    #search-input::placeholder { color: #444; }
    #search-divider { height: 1px; background: #1e1e1e; }
    #search-results { max-height: 400px; overflow-y: auto; }
    .search-result {
      display: block; padding: 12px 20px; text-decoration: none; color: inherit;
      border-bottom: 1px solid #151515; transition: background 0.15s;
    }
    .search-result:hover, .search-result.active { background: #161616; }
    .search-result-title { color: #e0e0e0; font-size: 0.9rem; margin-bottom: 3px; }
    .search-result-snippet { color: #555; font-size: 0.78rem; line-height: 1.4; }
    .search-result-snippet mark { background: none; color: #4ade80; font-style: normal; }
    #search-empty { padding: 20px; text-align: center; color: #333; font-size: 0.85rem; }
    #search-hint {
      padding: 8px 20px; color: #2a2a2a; font-size: 0.72rem;
      border-top: 1px solid #151515; display: flex; gap: 16px;
    }
  
    /* ── Floating chat ── */
    #chat-bubble {
      position: fixed; bottom: 24px; right: 24px; z-index: 900;
      width: 48px; height: 48px; border-radius: 50%;
      background: #1a1a1a; border: 1px solid #2a2a2a;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; color: #555; transition: color 0.2s, border-color 0.2s, transform 0.2s;
      box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    }
    #chat-panel {
      position: fixed; bottom: 84px; right: 24px; z-index: 901;
      width: 340px; max-height: 480px;
      background: #111; border: 1px solid #1e1e1e; border-radius: 12px;
      display: none; flex-direction: column;
      box-shadow: 0 8px 40px rgba(0,0,0,0.6);
      overflow: hidden;
    }
    #chat-panel-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 12px 16px; border-bottom: 1px solid #1a1a1a;
      font-size: 0.82rem; color: #888;
    }
    #chat-messages {
      flex: 1; overflow-y: auto; padding: 12px 16px;
      display: flex; flex-direction: column; gap: 10px;
      min-height: 200px; max-height: 320px;
      font-size: 0.82rem; line-height: 1.5;
    }
    .chat-msg-user {
      align-self: flex-end; background: #1a1a1a; border-radius: 10px 10px 2px 10px;
      padding: 8px 12px; color: #d0d0d0; max-width: 85%;
    }
    .chat-msg-ai {
      align-self: flex-start; color: #aaa; max-width: 90%;
    }
    .chat-msg-ai.streaming::after {
      content: '\25ae'; animation: blink 0.8s step-end infinite;
    }
    @keyframes blink { 50% { opacity: 0; } }
    #chat-input-row {
      display: flex; padding: 10px 12px; gap: 8px; border-top: 1px solid #1a1a1a;
    }
    #chat-input {
      flex: 1; background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 6px;
      color: #e0e0e0; font-size: 0.82rem; padding: 8px 10px; outline: none; font-family: inherit;
    }
    #chat-send {
      background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 6px;
      color: #555; padding: 8px 12px; cursor: pointer; font-size: 1rem;
      transition: color 0.2s;
    }
