:root {
  color-scheme: dark;
  --bg: #0c1624;
  --bg-deep: #08111e;
  --panel: #142337;
  --panel-raised: #1a2d43;
  --border: #2b4057;
  --border-soft: #223449;
  --text: #f0f6fc;
  --muted: #9eb1c5;
  --blue: #4bb9ff;
  --blue-soft: #183a55;
  --red: #f01a33;
  --header-height: 74px;
  --sidebar-width: 270px;
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: -60px; left: 14px; padding: 9px 15px; border: 1px solid var(--blue); background: var(--bg-deep); border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 10px; }

.topbar {
  position: sticky;
  top: 0;
  height: var(--header-height);
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 21, 34, .97);
  backdrop-filter: blur(14px);
}
.topbar-inner { height: 100%; max-width: 1760px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; white-space: nowrap; min-width: 0; }
.brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 7px rgba(241, 24, 49, .25)); }
.brand-wordmark { font-size: 16px; font-weight: 800; letter-spacing: .095em; }
.brand-mark { color: var(--red); padding: 0 3px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 21px; }
.download-link { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 15px; border: 1px solid #bf2639; border-radius: 7px; background: #6b1a2d; color: white; font-size: .88rem; font-weight: 650; text-decoration: none; }
.download-link:hover { color: white; background: #8b2439; }
.language-picker { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: .8rem; font-weight: 650; }
.language-picker select { min-width: 125px; padding: 7px 28px 7px 10px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--panel); }
.nav-toggle { display: none; width: 38px; height: 38px; flex: 0 0 38px; padding: 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--panel); }
.nav-toggle span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--text); }

.page-grid { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); max-width: 1760px; min-height: calc(100vh - var(--header-height)); margin: 0 auto; }
.sidebar { border-right: 1px solid var(--border-soft); background: #101e2f; }
.sidebar-inner { position: sticky; top: var(--header-height); display: flex; flex-direction: column; height: calc(100vh - var(--header-height)); padding: 29px 16px 20px; }
.sidebar-label { margin: 0 12px 14px; color: #6f91ad; font-size: .7rem; font-weight: 800; letter-spacing: .15em; }
#section-nav { overflow: auto; min-height: 0; padding-right: 4px; }
#section-nav a { display: flex; align-items: center; min-height: 38px; margin: 3px 0; padding: 7px 11px; border-left: 3px solid transparent; border-radius: 0 7px 7px 0; color: #b4c5d6; text-decoration: none; font-size: .89rem; }
#section-nav a:hover { color: white; background: #1a3046; }
#section-nav a[aria-current="true"] { border-left-color: var(--blue); background: var(--blue-soft); color: #e5f7ff; font-weight: 650; }
.sidebar-footer { margin-top: auto; padding: 20px 12px 0; border-top: 1px solid var(--border-soft); color: #7d98b2; font-size: .77rem; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--blue); vertical-align: 1px; }

.main { min-width: 0; max-width: 1270px; width: 100%; padding: 39px clamp(22px, 4vw, 70px) 60px; }
.hero { padding-bottom: 37px; border-bottom: 1px solid var(--border); }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: .7rem; letter-spacing: .14em; font-weight: 800; }
h1 { margin: 0; font-size: clamp(2.3rem, 3.7vw, 3.7rem); line-height: 1.08; letter-spacing: -.035em; }
.hero-subtitle { max-width: 820px; margin: 16px 0 23px; color: var(--muted); font-size: 1.04rem; }
.hero-subtitle:empty { display: none; }
.search-wrap { position: relative; max-width: 700px; }
.search-wrap input { width: 100%; height: 48px; padding: 9px 58px 9px 46px; border: 1px solid #41637e; border-radius: 9px; background: #13263a; color: var(--text); outline: none; box-shadow: 0 0 0 3px transparent; }
.search-wrap input::placeholder { color: #85a1b8; }
.search-wrap input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(75,185,255,.17); }
.search-symbol { position: absolute; width: 15px; height: 15px; left: 18px; top: 15px; border: 2px solid #a7c1d6; border-radius: 50%; pointer-events: none; }
.search-symbol::after { content: ""; position: absolute; width: 7px; height: 2px; right: -6px; bottom: -3px; background: #a7c1d6; transform: rotate(45deg); border-radius: 2px; }
.search-shortcut { position: absolute; right: 14px; top: 11px; min-width: 26px; padding: 2px 7px; border: 1px solid #39536c; border-radius: 5px; color: #9eb8cc; font: 600 .85rem/1.3 ui-monospace, Consolas, monospace; text-align: center; }
.search-status { min-height: 22px; margin: 9px 0 0; color: var(--muted); font-size: .79rem; }

.loading-state, .empty-state, .error-state { margin: 36px 0; padding: 28px; border: 1px solid var(--border); border-radius: 11px; color: var(--muted); background: var(--panel); }
.empty-state strong, .error-state strong { display: block; color: var(--text); font-size: 1.12rem; }
.empty-state p, .error-state p { margin-bottom: 0; }
.error-state { border-color: #784158; }
.error-state a { display: inline-block; margin-top: 14px; color: var(--blue); }
.manual-content { padding-top: 4px; }
.manual-section { padding: 40px 0 15px; border-bottom: 1px solid var(--border); }
.manual-section:last-child { border-bottom: 0; }
.section-kicker { display: block; margin-bottom: 6px; color: var(--blue); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.manual-section h2 { margin: 0 0 10px; font-size: clamp(1.55rem, 2vw, 2.1rem); letter-spacing: -.025em; line-height: 1.25; }
.section-summary, .group-description, .text-block { max-width: 870px; color: var(--muted); }
.section-summary { margin: 0 0 22px; }
.manual-group { margin: 24px 0; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.group-head { padding: 17px 20px 16px; background: var(--panel-raised); border-bottom: 1px solid var(--border); }
.manual-group:has(.group-head:only-child) .group-head { border-bottom: 0; }
.group-head h3 { margin: 0; font-size: 1.02rem; font-weight: 700; color: #d7edff; }
.group-description { margin: 6px 0 0; font-size: .88rem; }
.option-table-wrap { overflow-x: auto; }
.option-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.option-table th { padding: 10px 17px; border-bottom: 1px solid var(--border); color: #8daac2; background: #102033; font-size: .69rem; font-weight: 750; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.option-table td { padding: 15px 17px; border-bottom: 1px solid var(--border-soft); vertical-align: top; font-size: .88rem; overflow-wrap: anywhere; }
.option-table tr:last-child td { border-bottom: 0; }
.option-table tr:hover td { background: rgba(75,185,255,.04); }
.option-table .col-option { width: 24%; }
.option-table .col-description { width: 54%; }
.option-table .col-default { width: 22%; }
.option-table.no-default .col-option { width: 29%; }
.option-table.no-default .col-description { width: 71%; }
.option-name { color: #eff8ff; font-weight: 680; }
.option-description { margin: 0 0 7px; color: #b6c9db; }
.option-description:last-child { margin-bottom: 0; }
.option-note { display: block; margin-top: 8px; color: #89a8c1; font-size: .82rem; }
.option-default { display: inline-block; padding: 2px 8px; border: 1px solid #31536c; border-radius: 5px; background: #17344b; color: #c7eaff; font-size: .77rem; }
.text-list { max-width: 910px; padding-left: 20px; color: var(--muted); }
.text-list li { margin: 7px 0; }
.text-callout { margin: 19px 0; padding: 16px 19px; border-left: 3px solid var(--blue); background: #122c41; color: #c5dbe9; }
.main-footer { display: flex; justify-content: space-between; gap: 18px; margin-top: 45px; padding-top: 21px; border-top: 1px solid var(--border); color: #7f9bb3; font-size: .78rem; }
.main-footer a { color: #9bcbea; text-decoration: none; }

@media (max-width: 1080px) {
  :root { --sidebar-width: 222px; }
  .topbar-inner { padding: 0 18px; }
  .main { padding-left: 32px; padding-right: 32px; }
  .option-table .col-option { width: 28%; }
  .option-table .col-description { width: 52%; }
  .option-table .col-default { width: 20%; }
}
@media (max-width: 760px) {
  :root { --header-height: 64px; }
  .topbar-inner { gap: 10px; padding: 0 13px; }
  .brand img { width: 33px; height: 33px; }
  .brand-wordmark { font-size: .85rem; letter-spacing: .045em; }
  .download-link { display: none; }
  .language-picker span { display: none; }
  .language-picker select { min-width: 108px; max-width: 118px; font-size: .78rem; }
  .nav-toggle { display: block; }
  .page-grid { display: block; }
  .sidebar { position: fixed; z-index: 50; top: var(--header-height); bottom: 0; left: 0; width: min(82vw, 290px); box-shadow: 12px 0 40px rgba(0,0,0,.4); transform: translateX(-110%); transition: transform .2s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-inner { top: 0; height: calc(100vh - var(--header-height)); padding-top: 20px; }
  .sidebar-backdrop { position: fixed; z-index: 45; inset: var(--header-height) 0 0; background: rgba(0,0,0,.54); }
  .main { max-width: none; padding: 26px 18px 44px; }
  .hero { padding-bottom: 25px; }
  .hero-subtitle { font-size: .95rem; }
  .manual-section { padding-top: 30px; }
  .option-table, .option-table tbody, .option-table tr, .option-table td { display: block; width: 100%; }
  .option-table thead { display: none; }
  .option-table tr { padding: 13px 16px; border-bottom: 1px solid var(--border-soft); }
  .option-table tr:last-child { border-bottom: 0; }
  .option-table td { padding: 3px 0; border: 0; }
  .option-table td::before { content: attr(data-label); display: block; margin: 4px 0 2px; color: #789ab5; font-size: .66rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
  .option-table td:first-child::before { display: none; }
  .option-table .col-option, .option-table .col-description, .option-table .col-default { width: 100%; }
  .group-head { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Public manual precedes the security-gated launcher release. */
.download-link { display: none !important; }

