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

  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #111111;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 60px;
    background: #000;
    border-bottom: 3px solid #CC1F1F;
    flex-shrink: 0;
  }
  .logo {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    text-decoration: none;
  }
  .logo span { color: #CC1F1F; }
  .topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.65);
  }
  .topbar-right i { font-size: 14px; }

  .page {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 3rem 2rem;
  }

  .doc {
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 8px;
    padding: 3rem 3rem 2.5rem;
  }

  .doc-header { margin-bottom: 2rem; }
  .doc-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: #CC1F1F;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 0.75rem;
  }
  .doc-title {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
  }
  .doc-meta {
    font-size: 12px;
    color: #999;
  }

  .doc-body h2 {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 2rem 0 0.75rem;
    letter-spacing: -0.3px;
  }
  .doc-body h2:first-child { margin-top: 0; }
  .doc-body p {
    font-size: 14px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 0.75rem;
  }
  .doc-body ul {
    margin: 0.5rem 0 1rem 1.25rem;
    font-size: 14px;
    color: #444;
    line-height: 1.75;
  }
  .doc-body ul li { margin-bottom: 0.35rem; }
  .doc-body strong { color: #222; }

  .doc-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0 1.25rem;
    font-size: 13px;
  }
  .doc-body table th {
    text-align: left;
    background: #F5F5F5;
    padding: 8px 12px;
    font-weight: 700;
    color: #222;
    border: 1px solid #E0E0E0;
  }
  .doc-body table td {
    padding: 8px 12px;
    color: #444;
    border: 1px solid #E0E0E0;
    vertical-align: top;
    line-height: 1.6;
  }

  .divider-line {
    height: 1px;
    background: #E8E8E8;
    margin: 2rem 0;
  }

  .back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2rem;
    font-size: 13px;
    color: #CC1F1F;
    text-decoration: none;
  }
  .back-link:hover { text-decoration: underline; }
  .back-link i { font-size: 16px; }

  .bottombar {
    background: #000;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 12px 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }
  .bottombar-left { font-size: 11px; color: rgba(255,255,255,0.6); }
  .bottombar-right { display: flex; gap: 20px; }
  .bottombar-right a { font-size: 11px; color: rgba(255,255,255,0.6); text-decoration: none; cursor: pointer; }
  .bottombar-right a:hover { color: rgba(255,255,255,0.6); }

  @media (max-width: 600px) {
    .topbar { padding: 0 1.25rem; }
    .page { padding: 1.5rem 1.25rem; }
    .doc { padding: 2rem 1.5rem 1.5rem; }
    .doc-title { font-size: 22px; }
    .doc-body table { font-size: 12px; }
    .doc-body table th, .doc-body table td { padding: 6px 8px; }
    .bottombar { padding: 12px 1.25rem; flex-direction: column; gap: 8px; text-align: center; }
  }
  .nav-icon-btn, .theme-btn {
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0.45rem;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
  }
  .nav-icon-btn:hover, .theme-btn:hover {
    opacity: 0.8;
    background: rgba(255,255,255,0.08);
  }
  body.light {
    background: #F5F7FA;
    color: #111;
  }
  body.light .topbar, body.light .topnav {
    background: #fff;
    border-color: #E5E7EB;
    color: #111;
  }
  body.light .topbar-right, body.light .topnav-right {
    color: rgba(0,0,0,0.65);
  }
  body.light .logo {
    color: #111;
  }
  body.light .logo span {
    color: #CC1F1F;
  }
  body.light a, body.light .nav-link {
    color: #111;
  }
  body.light .bottombar { background: #fff; border-top-color: #E8E8E8; }
  body.light .bottombar-left { color: rgba(0,0,0,0.4); }
  body.light .bottombar-right a { color: rgba(0,0,0,0.4); }
  body.light .bottombar-right a:hover { color: #111; }
  body.light .nav-icon-btn, body.light .theme-btn { color: rgba(0,0,0,0.4); }
  body.light .nav-icon-btn:hover, body.light .theme-btn:hover { color: #111; background: rgba(0,0,0,0.04); }
