:root {
  --bg: #080808;
  --card: #111111;
  --secondary: #1a1a1f;
  --muted: #161616;
  --fg: #eeeeee;
  --muted-fg: #888899;
  --border: #222228;
  --primary: #2b5bee;
  --accent: #7b49df;
  --pink: #d94fa0;
  --warm: #ee831a;
  --gold: #f5b93d;
  --success: #2eb860;
  --error: #d92626;
  --grad: linear-gradient(135deg, #2b5bee, #7b49df);
  --grad-accent: linear-gradient(135deg, #7b49df, #d94fa0);
  --grad-warm: linear-gradient(135deg, #d94fa0, #ee831a);
  --grad-ok: linear-gradient(135deg, #2eb860, #2b9bd6);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 6px 22px rgba(0, 0, 0, 0.32);
  --glass: rgba(8, 8, 8, 0.78);
  --tint: rgba(43, 91, 238, 0.14);
  --tint-strong: rgba(43, 91, 238, 0.24);
  --code-bg: #1a1a1f;
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 16px;
  --radius-xl: 24px;
  --topbar: 64px;
  --sidebar: 296px;
  --toc: 232px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f7f9;
  --card: #ffffff;
  --secondary: #e7e9f3;
  --muted: #edeef4;
  --fg: #171a26;
  --muted-fg: #696e82;
  --border: #d8dae6;
  --shadow: 0 18px 50px rgba(30, 40, 90, 0.12);
  --shadow-sm: 0 6px 22px rgba(30, 40, 90, 0.08);
  --glass: rgba(246, 247, 249, 0.82);
  --tint: rgba(43, 91, 238, 0.09);
  --tint-strong: rgba(43, 91, 238, 0.16);
  --code-bg: #edeef4;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

:root[data-theme="dark"] a {
  color: #6f93ff;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

::selection {
  background: var(--tint-strong);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

.ic {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  vertical-align: -0.2em;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--grad-warm);
  z-index: 100;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  font-weight: 800;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  height: 30px;
  width: auto;
}

.brand .logo-light {
  display: none;
}

:root[data-theme="light"] .brand .logo-light {
  display: block;
}

:root[data-theme="light"] .brand .logo-dark {
  display: none;
}

.brand-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-fg);
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.spacer {
  flex: 1;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.icon-btn:hover {
  border-color: var(--primary);
  background: var(--tint);
}

.menu-btn {
  display: none;
}

.search-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  min-width: 260px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-fg);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s;
}

.search-btn:hover {
  border-color: var(--primary);
}

.search-btn .kbd {
  margin-left: auto;
}

.kbd {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--muted-fg);
  font-family: inherit;
}

.theme-seg {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}

.theme-seg button {
  width: 32px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.theme-seg button[aria-pressed="true"] {
  background: var(--tint-strong);
  color: var(--primary);
}

:root[data-theme="dark"] .theme-seg button[aria-pressed="true"] {
  color: #8aa8ff;
}

.shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr) var(--toc);
  max-width: 1560px;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: var(--topbar);
  align-self: start;
  height: calc(100vh - var(--topbar));
  overflow-y: auto;
  padding: 26px 18px 60px 24px;
  border-right: 1px solid var(--border);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.nav-group + .nav-group {
  margin-top: 22px;
}

.nav-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-fg);
  padding: 0 10px 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  position: relative;
  transition: background 0.2s;
}

:root[data-theme="dark"] .nav-link {
  color: var(--fg);
}

.nav-link:hover {
  background: var(--muted);
  text-decoration: none;
}

.nav-link .tile {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--muted-fg);
  font-size: 14px;
  flex: none;
  transition: background 0.2s, color 0.2s;
}

.nav-link[aria-current="page"] {
  background: var(--tint);
  color: var(--primary);
}

:root[data-theme="dark"] .nav-link[aria-current="page"] {
  color: #8aa8ff;
}

.nav-link[aria-current="page"] .tile {
  background: var(--grad);
  color: #fff;
}

.main {
  min-width: 0;
  padding: 44px 56px 40px;
}

.article {
  max-width: 800px;
  margin: 0 auto;
}

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-fg);
  margin-bottom: 18px;
}

.crumbs a {
  color: var(--muted-fg);
}

.crumbs a:hover {
  color: var(--primary);
}

.page-head {
  position: relative;
  margin-bottom: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--tint);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

:root[data-theme="dark"] .eyebrow {
  color: #8aa8ff;
}

h1 {
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}

.lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted-fg);
  margin: 0;
  font-weight: 500;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted-fg);
  font-weight: 600;
}

h2 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 56px 0 14px;
  position: relative;
}

h3 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  margin: 36px 0 10px;
  position: relative;
}

h4 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin: 28px 0 8px;
}

.anchor {
  position: absolute;
  left: -26px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  color: var(--muted-fg);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

h2:hover .anchor,
h3:hover .anchor,
.anchor:focus {
  opacity: 1;
}

p {
  margin: 0 0 16px;
}

ul,
ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

li::marker {
  color: var(--primary);
  font-weight: 800;
}

strong {
  font-weight: 700;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.nowrap {
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--secondary);
  color: var(--fg);
  line-height: 1.7;
  vertical-align: 1px;
}

.pill.blue {
  background: var(--tint);
  color: var(--primary);
}

:root[data-theme="dark"] .pill.blue {
  color: #8aa8ff;
}

.pill.green {
  background: rgba(46, 184, 96, 0.16);
  color: #1f9a4c;
}

:root[data-theme="dark"] .pill.green {
  color: #5fd68a;
}

.pill.orange {
  background: rgba(238, 131, 26, 0.16);
  color: #c46508;
}

:root[data-theme="dark"] .pill.orange {
  color: #ffac5c;
}

.pill.red {
  background: rgba(217, 38, 38, 0.14);
  color: #c21f1f;
}

:root[data-theme="dark"] .pill.red {
  color: #ff7b7b;
}

.pill.purple {
  background: rgba(123, 73, 223, 0.16);
  color: #6a38c9;
}

:root[data-theme="dark"] .pill.purple {
  color: #b79bff;
}

.plats {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fg);
}

.plat.off {
  opacity: 0.45;
  text-decoration: line-through;
}

.plat .ic {
  color: var(--primary);
}

.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  background: var(--card);
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--c, var(--primary));
}

.callout .callout-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--c, var(--primary)) 16%, transparent);
  color: var(--c, var(--primary));
  flex: none;
  font-size: 17px;
}

.callout-body {
  min-width: 0;
  flex: 1;
}

.callout-title {
  font-weight: 800;
  margin: 2px 0 4px;
  font-size: 15px;
}

.callout-body > :last-child {
  margin-bottom: 0;
}

.callout p,
.callout li {
  font-size: 15px;
  line-height: 1.7;
}

.callout.tip {
  --c: var(--success);
}

.callout.info {
  --c: var(--primary);
}

.callout.warn {
  --c: var(--warm);
}

.callout.danger {
  --c: var(--error);
}

.callout.key {
  --c: var(--accent);
}

.steps {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 0 0 26px 62px;
  margin: 0;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-weight: 900;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(43, 91, 238, 0.35);
}

.step::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 46px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--border), transparent);
}

.step:last-child {
  padding-bottom: 4px;
}

.step:last-child::after {
  display: none;
}

.step-title {
  font-weight: 800;
  font-size: 17px;
  margin: 0 0 4px;
  line-height: 1.4;
  padding-top: 7px;
}

.step > :last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.55;
}

th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted-fg);
  padding: 14px 18px;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  font-weight: 700;
}

td p,
td ul {
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  position: relative;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

a.card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c, var(--primary)) 60%, var(--border));
  box-shadow: var(--shadow-sm);
}

.card-ic {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--g, var(--grad));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--c, var(--primary)) 35%, transparent);
  margin-bottom: 6px;
}

.card h3,
.card .card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted-fg);
  font-weight: 500;
}

.card .go {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

:root[data-theme="dark"] .card .go {
  color: #8aa8ff;
}

.card .tag {
  position: absolute;
  top: 18px;
  right: 18px;
}

.tone-1 {
  --g: var(--grad);
  --c: #2b5bee;
}

.tone-2 {
  --g: var(--grad-accent);
  --c: #7b49df;
}

.tone-3 {
  --g: var(--grad-warm);
  --c: #d94fa0;
}

.tone-4 {
  --g: var(--grad-ok);
  --c: #2eb860;
}

.tone-5 {
  --g: linear-gradient(135deg, #ee831a, #f5b93d);
  --c: #ee831a;
}

.tone-6 {
  --g: linear-gradient(135deg, #2b9bd6, #2b5bee);
  --c: #2b9bd6;
}

details.faq {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-l);
  margin: 0 0 12px;
  transition: border-color 0.2s;
}

details.faq[open] {
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
}

details.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 20px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  position: relative;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2.5px solid var(--muted-fg);
  border-bottom: 2.5px solid var(--muted-fg);
  transform: rotate(45deg);
  transition: transform 0.25s, margin 0.25s;
}

details.faq[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

details.faq .faq-a {
  padding: 0 20px 18px;
  color: var(--muted-fg);
  font-weight: 500;
}

details.faq .faq-a > :last-child {
  margin-bottom: 0;
}

.faq-tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 26px;
}

.field {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-fg);
}

.field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--tint);
}

.field input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  min-width: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  border-color: var(--primary);
}

.chip[aria-pressed="true"] {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

.faq-cat {
  margin: 36px 0 14px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted-fg);
}

.empty {
  display: none;
  text-align: center;
  padding: 48px 20px;
  color: var(--muted-fg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-l);
}

.pagenav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 64px 0 0;
}

.pagenav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--card);
  color: var(--fg);
  transition: border-color 0.2s, transform 0.2s;
}

.pagenav a:hover {
  text-decoration: none;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.pagenav small {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.pagenav span {
  font-weight: 800;
  font-size: 16px;
}

.pagenav .next {
  text-align: right;
  grid-column: 2;
}

.pagenav .prev {
  grid-column: 1;
}

.help-box {
  margin-top: 56px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--grad);
  color: #fff;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.help-box::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.help-box h3 {
  margin: 0 0 4px;
  font-size: 21px;
  color: #fff;
}

.help-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
}

.help-box .grow {
  flex: 1;
  min-width: 240px;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  font-size: 14.5px;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn.light {
  background: #fff;
  color: #1b2a6b;
}

:root[data-theme="dark"] .btn.light {
  color: #1b2a6b;
}

.btn.primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(43, 91, 238, 0.4);
}

:root[data-theme="dark"] .btn.primary {
  color: #fff;
}

.btn.ghost {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn.row {
  display: inline-flex;
}

.toc {
  position: sticky;
  top: var(--topbar);
  align-self: start;
  height: calc(100vh - var(--topbar));
  overflow-y: auto;
  padding: 48px 24px 40px 8px;
  scrollbar-width: none;
}

.toc-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 12px;
}

.toc a {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--muted-fg);
  padding: 5px 0 5px 14px;
  border-left: 2px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.toc a.l3 {
  padding-left: 28px;
  font-weight: 500;
}

.toc a:hover {
  color: var(--fg);
  text-decoration: none;
}

.toc a.on {
  color: var(--primary);
  border-left-color: var(--primary);
}

:root[data-theme="dark"] .toc a.on {
  color: #8aa8ff;
  border-left-color: #8aa8ff;
}

.footer {
  max-width: 800px;
  margin: 72px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted-fg);
  font-weight: 500;
}

.footer .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--muted-fg);
  font-weight: 600;
}

.footer a:hover {
  color: var(--primary);
}

.scrim {
  display: none;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.search-modal.open {
  display: flex;
}

.search-panel {
  width: 100%;
  max-width: 640px;
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: pop 0.22s ease;
}

.search-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 64px;
  border-bottom: 1px solid var(--border);
  color: var(--muted-fg);
  font-size: 18px;
}

.search-input input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--fg);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
}

.search-results {
  overflow-y: auto;
  padding: 10px;
}

.sr {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--fg);
}

.sr:hover,
.sr.sel {
  background: var(--tint);
  text-decoration: none;
}

.sr .tile {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.sr b {
  display: block;
  font-size: 15px;
  line-height: 1.4;
}

.sr small {
  display: block;
  color: var(--muted-fg);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
}

.sr mark {
  background: rgba(238, 131, 26, 0.3);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

.search-empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted-fg);
  font-weight: 500;
}

.search-foot {
  display: flex;
  gap: 16px;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted-fg);
  font-weight: 600;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}

.hero::before {
  width: 520px;
  height: 520px;
  left: -140px;
  top: -200px;
  background: #2b5bee;
}

.hero::after {
  width: 460px;
  height: 460px;
  right: -120px;
  bottom: -220px;
  background: #d94fa0;
  opacity: 0.35;
}

:root[data-theme="light"] .hero::before,
:root[data-theme="light"] .hero::after {
  opacity: 0.22;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 70%);
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 84px 32px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.grad-text {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: 20px;
  max-width: 560px;
}

.hero-search {
  margin-top: 32px;
  max-width: 560px;
  height: 58px;
  border-radius: 18px;
  padding: 0 20px;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: var(--card);
}

.hero-search {
  font: inherit;
  text-align: left;
  color: var(--muted-fg);
}

.hero-search span:not(.kbd) {
  flex: 1;
  color: var(--muted-fg);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-chips {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-chips > small {
  font-weight: 700;
  color: var(--muted-fg);
  margin-right: 4px;
}

.hero-chips a.chip {
  color: var(--fg);
}

.hero-chips a.chip:hover {
  text-decoration: none;
}

.stage {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 560px;
}

.phone {
  width: 286px;
  height: 584px;
  border-radius: 46px;
  border: 9px solid #1c1c22;
  background: var(--bg);
  box-shadow: var(--shadow), 0 0 0 1.5px #2e2e38;
  position: relative;
  overflow: hidden;
  padding: 44px 16px 0;
}

:root[data-theme="light"] .phone {
  border-color: #1f2230;
}

.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 84px;
  height: 22px;
  margin-left: -42px;
  border-radius: 14px;
  background: #000;
  z-index: 3;
}

.ph-hello {
  font-size: 11px;
  color: var(--muted-fg);
  font-weight: 600;
}

.ph-name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.ph-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.ph-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 6px;
  text-align: center;
}

.ph-stat b {
  display: block;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.ph-stat small {
  font-size: 9.5px;
  color: var(--muted-fg);
  font-weight: 600;
}

.ph-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.ph-card .t {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.ph-card .s {
  font-size: 10px;
  color: var(--muted-fg);
  font-weight: 500;
  line-height: 1.4;
}

.ring.ph-ring {
  width: 46px;
  height: 46px;
  flex: none;
}

.ph-live {
  background: var(--grad);
  border: 0;
  color: #fff;
}

.ph-live .s {
  color: rgba(255, 255, 255, 0.8);
}

.ph-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5d5d;
  box-shadow: 0 0 0 4px rgba(255, 93, 93, 0.3);
  flex: none;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(255, 93, 93, 0);
  }
}

.ph-nav {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 54px;
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: var(--shadow-sm);
}

.ph-nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 7.5px;
  font-weight: 700;
  color: var(--muted-fg);
}

.ph-nav span .ic {
  font-size: 16px;
}

.ph-nav span.on {
  color: var(--primary);
  background: var(--tint);
  padding: 6px 9px;
  border-radius: 14px;
}

.float {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: bob 5s ease-in-out infinite;
  z-index: 4;
}

.float .ic {
  color: var(--warm);
  font-size: 18px;
}

.float.a {
  left: -84px;
  top: 52px;
}

.float.b {
  right: -8px;
  top: 230px;
  animation-delay: -1.8s;
}

.float.b .ic {
  color: var(--success);
}

.float.c {
  left: 8px;
  bottom: 84px;
  animation-delay: -3.2s;
}

.float.c .ic {
  color: var(--accent);
}

@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}

.home-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.home-section {
  padding: 72px 0 8px;
}

.home-section h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.025em;
}

.section-lead {
  color: var(--muted-fg);
  font-size: 17px;
  margin: 0 0 28px;
  max-width: 680px;
  font-weight: 500;
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.start-card {
  position: relative;
  padding: 28px;
  border-radius: 26px;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  transition: transform 0.3s;
}

.start-card:hover {
  text-decoration: none;
  transform: translateY(-5px);
}

.start-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.start-card .num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  opacity: 0.8;
}

.start-card h3 {
  margin: 0;
  font-size: 23px;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.start-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 500;
}

.start-card .go {
  margin-top: auto;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.start-card.s1 {
  background: var(--grad);
}

.start-card.s2 {
  background: var(--grad-accent);
}

.start-card.s3 {
  background: var(--grad-warm);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.topic {
  display: flex;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  align-items: flex-start;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.topic:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c) 60%, var(--border));
  box-shadow: var(--shadow-sm);
}

.topic .card-ic {
  margin: 0;
  flex: none;
}

.topic b {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 2px;
}

.topic small {
  display: block;
  font-size: 13.5px;
  color: var(--muted-fg);
  line-height: 1.55;
  font-weight: 500;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 38px 0 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted-fg);
}

.group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.access-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 0.8fr) 44px minmax(0, 1fr);
  gap: 0;
  align-items: center;
  margin: 28px 0;
}

.am-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.am-node {
  padding: 14px 16px;
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.am-node small {
  display: block;
  color: var(--muted-fg);
  font-weight: 500;
  font-size: 12.5px;
}

.am-node .tile {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--g, var(--grad));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.am-core {
  padding: 22px 16px;
  text-align: center;
  border-radius: 22px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 16px 40px rgba(43, 91, 238, 0.4);
  font-weight: 900;
  line-height: 1.35;
}

.am-core small {
  display: block;
  font-weight: 600;
  opacity: 0.85;
  font-size: 12.5px;
  margin-top: 4px;
}

.am-core .ic {
  font-size: 26px;
  margin-bottom: 6px;
}

.am-arrow {
  display: flex;
  justify-content: center;
  color: var(--muted-fg);
  font-size: 22px;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin: 26px 0;
}

.flow-node {
  flex: 1 1 150px;
  min-width: 150px;
  padding: 16px;
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  background: var(--card);
  position: relative;
}

.flow-node b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  margin-bottom: 4px;
}

.flow-node b .ic {
  color: var(--primary);
}

.flow-node p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted-fg);
  line-height: 1.55;
  font-weight: 500;
}

.flow-node:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -11px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--muted-fg);
  border-right: 2px solid var(--muted-fg);
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
}

.mock {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 22px;
  margin: 26px 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.mock-cap {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted-fg);
  font-weight: 500;
  text-align: center;
}

.credit-mock {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ring {
  width: 92px;
  height: 92px;
  position: relative;
  flex: none;
}

.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring .bgc {
  stroke: var(--muted);
}

.ring .fg {
  stroke: url(#ringGrad);
  stroke-linecap: round;
}

.ring b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 900;
}

.credit-mock .info b {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.credit-mock .info span {
  font-size: 14px;
  color: var(--muted-fg);
  font-weight: 500;
}

.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.day {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--muted);
  padding: 10px 6px 8px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

.day h5 {
  margin: 0 0 4px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-fg);
  text-align: center;
  font-weight: 800;
}

.slot {
  border-radius: 10px;
  padding: 6px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.slot small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  opacity: 0.88;
}

.slot.ini {
  background: linear-gradient(135deg, #2eb860, #28a0a0);
}

.slot.int {
  background: var(--grad);
}

.slot.ava {
  background: var(--grad-warm);
}

.slot.off {
  background: var(--secondary);
  color: var(--muted-fg);
  text-decoration: line-through;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted-fg);
}

.legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: -1px;
}

.ladder {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.rung {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 18px;
  padding: 16px 8px 14px;
  text-align: center;
  position: relative;
}

.rung .medal {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  background: var(--g);
}

.rung b {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.rung small {
  display: block;
  font-size: 12px;
  color: var(--muted-fg);
  font-weight: 600;
}

.trail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.node {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  position: relative;
  box-shadow: 0 5px 0 0 var(--sh);
}

.node.done {
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  --sh: #b97309;
}

.node.cur {
  background: var(--grad);
  --sh: #1b3aa8;
  outline: 4px solid var(--tint-strong);
}

.node.lock {
  background: var(--secondary);
  color: var(--muted-fg);
  --sh: var(--border);
}

.node.chest {
  background: var(--grad-accent);
  --sh: #4a2a94;
}

.node small {
  position: absolute;
  bottom: -22px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-fg);
  white-space: nowrap;
}

.trail .n1 {
  transform: translateX(0);
}

.trail .n2 {
  transform: translateX(44px);
}

.trail .n3 {
  transform: translateX(62px);
}

.trail .n4 {
  transform: translateX(34px);
}

.trail .n5 {
  transform: translateX(-10px);
}

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.compare > div {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-l);
  padding: 20px;
}

.compare h4 {
  margin: 0 0 10px;
}

.compare ul {
  margin: 0;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(46, 184, 96, 0.18);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 9px;
  width: 5px;
  height: 9px;
  border-right: 2.5px solid var(--success);
  border-bottom: 2.5px solid var(--success);
  transform: rotate(40deg);
}

.cross-list {
  list-style: none;
  padding: 0;
}

.cross-list li {
  position: relative;
  padding-left: 30px;
}

.cross-list li::before {
  content: "×";
  position: absolute;
  left: 2px;
  top: 0;
  width: 18px;
  height: 18px;
  line-height: 17px;
  text-align: center;
  border-radius: 50%;
  background: rgba(217, 38, 38, 0.15);
  color: var(--error);
  font-weight: 900;
  font-size: 15px;
}

.term-list {
  display: grid;
  gap: 12px;
}

.term {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-l);
  padding: 18px 20px;
}

.term dt {
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 4px;
}

.term dd {
  margin: 0;
  color: var(--muted-fg);
  font-weight: 500;
}

.term dd p:last-child {
  margin-bottom: 0;
}

.alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 24px;
}

.alpha a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--fg);
  font-size: 13px;
  font-weight: 800;
}

.alpha a:hover {
  border-color: var(--primary);
  text-decoration: none;
}

.big-num {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.big-num > div {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-l);
  padding: 20px;
}

.big-num b {
  display: block;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.15;
}

.big-num span {
  font-size: 14px;
  color: var(--muted-fg);
  font-weight: 600;
}

.shot {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 26px 0;
  box-shadow: var(--shadow-sm);
}

.shot-bar {
  display: flex;
  gap: 7px;
  padding: 12px 16px;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

.shot-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.shot-body {
  padding: 22px;
}

.player-mock {
  aspect-ratio: 16 / 8;
  border-radius: 16px;
  background: linear-gradient(135deg, #131a3a, #2a1658 60%, #5a1d52);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.player-mock .play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.player-mock .bar {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
}

.player-mock .track {
  flex: 1;
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.28);
  position: relative;
}

.player-mock .track::after {
  content: "";
  position: absolute;
  inset: 0 62% 0 0;
  border-radius: 5px;
  background: #fff;
}

.module-mock {
  display: grid;
  gap: 10px;
}

.row-mock {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.row-mock .thumb {
  width: 72px;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  background: var(--g, var(--grad));
  flex: none;
}

.row-mock small {
  display: block;
  color: var(--muted-fg);
  font-weight: 500;
  font-size: 12.5px;
}

.row-mock .end {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.mini-bar {
  height: 8px;
  border-radius: 8px;
  background: var(--muted);
  overflow: hidden;
  margin-top: 8px;
}

.mini-bar i {
  display: block;
  height: 100%;
  width: var(--w, 40%);
  border-radius: 8px;
  background: var(--grad);
}

.timeline {
  position: relative;
  margin: 26px 0;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}

.tl {
  position: relative;
  padding-bottom: 20px;
}

.tl::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--primary);
}

.tl b {
  display: block;
  font-size: 15.5px;
}

.tl p {
  margin: 2px 0 0;
  font-size: 14.5px;
  color: var(--muted-fg);
  font-weight: 500;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

@media (max-width: 1320px) {
  .shell {
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
  }

  .toc {
    display: none;
  }
}

@media (max-width: 1020px) {
  .menu-btn {
    display: inline-flex;
  }

  .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    width: min(86vw, 340px);
    z-index: 80;
    background: var(--bg);
    transform: translateX(-102%);
    transition: transform 0.3s ease;
    padding-top: 22px;
    box-shadow: var(--shadow);
  }

  body.nav-open .sidebar {
    transform: none;
  }

  body.nav-open .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 70;
  }

  .main {
    padding: 32px 22px 32px;
  }

  .search-btn {
    min-width: 0;
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .search-btn span,
  .search-btn .kbd {
    display: none;
  }

  .brand-tag {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 56px 22px 72px;
    gap: 48px;
  }

  .home-wrap {
    padding: 0 22px;
  }

  .start-grid {
    grid-template-columns: 1fr;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .anchor {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 0 14px;
    gap: 10px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .compare {
    grid-template-columns: 1fr;
  }

  .big-num {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .access-map {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .am-arrow {
    transform: rotate(90deg);
  }

  .week {
    grid-template-columns: repeat(7, minmax(78px, 1fr));
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pagenav {
    grid-template-columns: 1fr;
  }

  .pagenav .next,
  .pagenav .prev {
    grid-column: auto;
    text-align: left;
  }

  .flow-node:not(:last-child)::after {
    display: none;
  }

  h2 {
    font-size: 24px;
  }

  .lead {
    font-size: 17px;
  }

  .theme-seg button {
    width: 28px;
  }

  .step {
    padding-left: 56px;
  }

  .stage {
    min-height: 0;
  }

  .float {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero-search {
    height: 52px;
  }

  .theme-seg {
    padding: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .float,
  .ph-dot {
    animation: none;
  }
}

@media print {
  .topbar,
  .sidebar,
  .toc,
  .pagenav,
  .help-box,
  .to-top,
  .progress,
  .search-modal {
    display: none !important;
  }

  .shell {
    display: block;
  }

  body {
    background: #fff;
    color: #000;
  }

  .main {
    padding: 0;
  }

  details.faq .faq-a {
    display: block;
  }
}

.hero-inner > *,
.shell > *,
.cards > *,
.start-grid > *,
.topic-grid > *,
.compare > *,
.big-num > *,
.flow > *,
.access-map > * {
  min-width: 0;
}

.article,
.main {
  overflow-wrap: break-word;
}

.article p,
.article li,
.article td,
.callout-body {
  overflow-wrap: anywhere;
}

.article img,
.article svg:not(.ic) {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1020px) {
  .stage {
    justify-content: center;
    overflow: hidden;
    padding: 8px 0;
  }

  .hero-search {
    width: 100%;
  }

  .hero .lead {
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .hero-inner {
    padding: 40px 18px 56px;
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(32px, 9.4vw, 44px);
    letter-spacing: -0.03em;
  }

  .hero-chips > small {
    width: 100%;
  }

  .home-wrap {
    padding: 0 18px;
  }

  .home-section {
    padding-top: 52px;
  }

  .main {
    padding: 24px 18px 28px;
  }

  h1 {
    font-size: clamp(28px, 8.4vw, 36px);
  }

  h3 {
    font-size: 18px;
  }

  .page-head {
    margin-bottom: 26px;
    padding-bottom: 22px;
  }

  .callout {
    padding: 16px;
    gap: 12px;
  }

  .callout .callout-ic {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .card {
    padding: 18px;
  }

  .start-card {
    min-height: 0;
    padding: 22px;
  }

  .topic {
    padding: 15px;
    gap: 13px;
  }

  .big-num b {
    font-size: 24px;
  }

  .big-num > div {
    padding: 15px;
  }

  .help-box {
    padding: 22px;
  }

  .help-box .btn {
    width: 100%;
    justify-content: center;
  }

  .row-mock {
    flex-wrap: wrap;
  }

  .row-mock .end {
    margin-left: 0;
  }

  .row-mock .thumb {
    width: 56px;
  }

  .shot-body,
  .mock {
    padding: 14px;
  }

  .ph-nav span {
    font-size: 7px;
  }

  th,
  td {
    padding: 11px 13px;
  }

  table {
    font-size: 13.5px;
  }

  details.faq summary {
    padding: 15px 46px 15px 16px;
    font-size: 15px;
  }

  details.faq summary::after {
    right: 16px;
  }

  details.faq .faq-a {
    padding: 0 16px 16px;
  }

  .faq-tools .field {
    min-width: 0;
  }

  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -18px;
    padding: 2px 18px 8px;
    scrollbar-width: none;
  }

  .chip {
    flex: none;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .to-top {
    right: 14px;
    bottom: 14px;
  }

  .search-modal {
    padding: 10px;
    align-items: flex-start;
  }

  .search-panel {
    max-height: 86vh;
  }

  .step {
    padding-left: 52px;
  }

  .step::before {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .step::after {
    left: 18px;
  }

  .ladder {
    gap: 8px;
  }

  .alpha a {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 380px) {
  .topbar {
    gap: 8px;
    padding: 0 10px;
  }

  .theme-seg button {
    width: 26px;
    height: 28px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .brand img {
    height: 26px;
  }

  .big-num {
    grid-template-columns: 1fr;
  }

  .ladder {
    grid-template-columns: 1fr 1fr;
  }
}

.sidebar {
  overscroll-behavior: contain;
}

@media (max-width: 1020px) {
  .sidebar {
    padding-bottom: 90px;
  }

  .nav-link {
    padding: 11px 10px;
    font-size: 15px;
  }

  .nav-link .tile {
    width: 32px;
    height: 32px;
  }

  body.nav-open {
    overflow: hidden;
  }
}

.drawer-head {
  display: none;
}

@media (max-width: 1020px) {
  .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 16px 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }

  .drawer-head .brand img {
    height: 28px;
  }

  .sidebar {
    padding-top: 16px;
  }
}

@media (max-width: 720px) {
  .table-wrap table {
    min-width: 540px;
  }

  td:first-child {
    min-width: 130px;
  }

  .table-wrap {
    position: relative;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 1020px) {
  .topbar {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .sidebar {
    top: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 90;
    visibility: hidden;
    will-change: transform;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.28s ease, visibility 0s linear 0.28s;
  }

  body.nav-open .sidebar {
    visibility: visible;
    transition: transform 0.28s ease, visibility 0s;
  }

  body.nav-open .scrim {
    z-index: 85;
  }

  .hero::before,
  .hero::after {
    filter: none;
    opacity: 1;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    background: radial-gradient(circle at 12% 0%, rgba(43, 91, 238, 0.35), transparent 55%);
  }

  .hero::after {
    background: radial-gradient(circle at 100% 100%, rgba(217, 79, 160, 0.28), transparent 50%);
  }

  :root[data-theme="light"] .hero::before,
  :root[data-theme="light"] .hero::after {
    opacity: 0.6;
  }

  .hero-grid {
    display: none;
  }

  .float,
  .ph-dot {
    animation: none;
  }

  .ph-nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--card);
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .search-modal {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (min-width: 1021px) {
  body.home .sidebar,
  body.home .scrim {
    display: none;
  }
}
