:root {
  color-scheme: light;
  --canvas: #f5f9fa;
  --surface: #ffffff;
  --surface-soft: #edf5f7;
  --surface-blue: #eef6fb;
  --ink: #102f3d;
  --ink-soft: #31505e;
  --muted: #6b838e;
  --line: #dce8ed;
  --line-strong: #bfd3dc;
  --ocean: #067fb9;
  --ocean-dark: #045e8a;
  --teal: #2ca875;
  --teal-soft: #e7f7ef;
  --coral: #c9673d;
  --coral-soft: #fff2ec;
  --shadow: 0 14px 36px rgba(18, 61, 78, 0.08);
  --shell: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

img,
svg {
  display: block;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.content-shell,
.header-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(220, 232, 237, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.header-shell {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 780;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.page-name {
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 13px;
  font-weight: 680;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.header-link:hover {
  border-color: var(--line-strong);
  color: var(--ocean-dark);
}

.header-link-primary {
  border-color: var(--ocean);
  color: #ffffff;
  background: var(--ocean);
}

.header-link-primary:hover {
  border-color: var(--ocean-dark);
  color: #ffffff;
  background: var(--ocean-dark);
}

.header-link:focus-visible,
.command-link:focus-visible,
.tutorial-nav a:focus-visible,
.download-option a:focus-visible,
.section-command:focus-visible,
.os-tab:focus-visible,
.prompt-toolbar button:focus-visible,
.support-row a:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(6, 127, 185, 0.42);
  outline-offset: 3px;
}

.intro-band {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.intro-grid {
  min-height: 430px;
  padding: 72px 0 62px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  align-items: center;
  gap: 72px;
}

.intro-copy {
  min-width: 0;
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.intro-copy h1 {
  max-width: 680px;
  margin: 0;
  color: var(--ink);
  font-size: 48px;
  font-weight: 790;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.intro-lede {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.intro-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.command-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 14px;
  font-weight: 720;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.command-link svg {
  width: 17px;
  height: 17px;
}

.command-link:hover {
  border-color: var(--ocean);
  transform: translateY(-1px);
}

.command-link-primary {
  border-color: var(--ocean);
  color: #ffffff;
  background: var(--ocean);
}

.command-link-primary:hover {
  border-color: var(--ocean-dark);
  background: var(--ocean-dark);
}

.route-summary {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.route-summary li {
  min-height: 70px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 14px;
  padding: 12px 4px;
}

.route-summary li + li {
  border-top: 1px solid var(--line);
}

.route-summary span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--ocean);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.route-summary strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.route-summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.tutorial-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 64px;
  padding-top: 58px;
  padding-bottom: 100px;
}

.tutorial-nav {
  position: sticky;
  top: 94px;
  min-width: 0;
}

.tutorial-nav-title {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.tutorial-nav nav {
  display: grid;
  border-top: 1px solid var(--line);
}

.tutorial-nav nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 680;
  transition: color 160ms ease, padding-left 160ms ease;
}

.tutorial-nav nav a:hover {
  padding-left: 4px;
  color: var(--ocean-dark);
}

.tutorial-nav nav a span {
  color: var(--ocean);
  font-size: 10px;
  font-weight: 800;
}

.security-note {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid #cce7d9;
  border-radius: 6px;
  background: var(--teal-soft);
}

.security-note > svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
}

.security-note p {
  margin: 0;
}

.security-note strong,
.security-note span {
  display: block;
}

.security-note strong {
  color: #176747;
  font-size: 12px;
}

.security-note span {
  margin-top: 4px;
  color: #4d7765;
  font-size: 11px;
  line-height: 1.5;
}

.tutorial-content {
  min-width: 0;
}

.tutorial-section {
  min-width: 0;
  padding: 0 0 72px;
}

.tutorial-section + .tutorial-section {
  padding-top: 72px;
  border-top: 1px solid var(--line-strong);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.section-index {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #b7dece;
  border-radius: 6px;
  color: var(--teal);
  background: var(--teal-soft);
  font-size: 12px;
  font-weight: 820;
}

.section-heading p {
  margin: 0 0 4px;
  color: var(--ocean);
  font-size: 11px;
  font-weight: 800;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 780;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.section-lede {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.section-lede code,
.compact-steps code,
.action-list code,
.faq-list code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ocean-dark);
  background: var(--surface);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.download-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.download-option {
  min-width: 0;
  min-height: 238px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(18, 61, 78, 0.045);
}

.platform-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.platform-icon svg {
  width: 21px;
  height: 21px;
}

.platform-windows {
  color: var(--ocean);
  background: var(--surface-blue);
}

.platform-mac {
  color: var(--teal);
  background: var(--teal-soft);
}

.download-option > div:not(.platform-icon) {
  margin-top: 18px;
}

.download-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.download-option h3 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 19px;
}

.download-option p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.download-option a {
  min-height: 38px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ocean-dark);
  font-size: 13px;
  font-weight: 750;
}

.download-option a svg {
  width: 16px;
  height: 16px;
}

.inline-notice,
.warning-notice {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #cddfeb;
  border-radius: 6px;
  background: var(--surface-blue);
}

.inline-notice svg,
.warning-notice > svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--ocean);
}

.inline-notice p,
.warning-notice p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.instruction-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 24px;
}

.action-list,
.compact-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.action-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
}

.action-list li + li {
  border-top: 1px solid var(--line);
}

.action-list li > span,
.compact-steps li > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ocean);
  background: var(--surface-blue);
  font-size: 11px;
  font-weight: 800;
}

.action-list strong {
  color: var(--ink);
  font-size: 14px;
}

.action-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.product-frame {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.frame-toolbar {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: #f8fbfc;
  font-size: 10px;
  font-weight: 740;
}

.frame-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
}

.frame-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.console-layout {
  min-height: 270px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
}

.console-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: #f8fbfc;
  font-size: 10px;
}

.console-sidebar strong {
  padding: 8px;
  border-radius: 5px;
  color: var(--ocean-dark);
  background: var(--surface-blue);
}

.console-logo {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--ocean);
  font-size: 12px;
  font-weight: 800;
}

.console-main {
  min-width: 0;
  padding: 20px;
}

.console-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.console-title strong,
.console-title small {
  display: block;
}

.console-title strong {
  color: var(--ink);
  font-size: 15px;
}

.console-title small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.console-title button,
.key-row button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 5px;
  color: #ffffff;
  background: var(--teal);
  font-size: 9px;
  font-weight: 760;
}

.endpoint-row {
  min-width: 0;
  margin-top: 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 2px solid rgba(6, 127, 185, 0.42);
  border-radius: 6px;
  color: var(--muted);
  font-size: 9px;
}

.endpoint-row code {
  min-width: 0;
  color: var(--ocean-dark);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.endpoint-row svg {
  width: 14px;
  height: 14px;
  color: var(--ocean);
}

.key-row {
  min-width: 0;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.key-row > div {
  min-width: 0;
}

.key-row strong,
.key-row code {
  display: block;
}

.key-row strong {
  color: var(--ink);
  font-size: 11px;
}

.key-row code {
  max-width: 100%;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.recharge-layout {
  min-height: 270px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
}

.recharge-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: #f8fbfc;
  font-size: 9px;
}

.recharge-sidebar > span:not(.console-logo),
.recharge-sidebar > strong {
  min-height: 31px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.recharge-sidebar > strong {
  color: var(--ink-soft);
  font-weight: 720;
}

.recharge-sidebar > strong.is-current {
  color: var(--ocean-dark);
  background: var(--surface-blue);
}

.recharge-sidebar svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.recharge-main {
  min-width: 0;
  padding: 24px 22px;
}

.recharge-title small,
.recharge-title strong {
  display: block;
}

.recharge-title small {
  color: var(--teal);
  font-size: 9px;
  font-weight: 760;
}

.recharge-title strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 17px;
}

.recharge-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.recharge-main > label {
  display: block;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 720;
}

.recharge-entry {
  min-width: 0;
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}

.recharge-entry code {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.recharge-entry button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 5px;
  color: #ffffff;
  background: var(--ocean);
  font-size: 9px;
  font-weight: 760;
}

.recharge-hint {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--teal);
}

.recharge-hint svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.recharge-hint p {
  margin: 0;
}

.recharge-hint strong,
.recharge-hint span {
  display: block;
}

.recharge-hint strong {
  color: var(--ink-soft);
  font-size: 10px;
}

.recharge-hint span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.product-frame figcaption {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #f8fbfc;
  font-size: 10px;
  line-height: 1.5;
}

.section-command {
  min-height: 42px;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--ocean);
  border-radius: 6px;
  color: #ffffff;
  background: var(--ocean);
  font-size: 13px;
  font-weight: 730;
  transition: background-color 160ms ease, transform 160ms ease;
}

.section-command:hover {
  background: var(--ocean-dark);
  transform: translateY(-1px);
}

.section-command svg {
  width: 16px;
  height: 16px;
}

.os-switcher {
  margin-top: 28px;
}

.os-tabs {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.os-tab {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.os-tab svg {
  width: 16px;
  height: 16px;
}

.os-tab.is-active {
  color: #ffffff;
  background: var(--ocean);
}

.os-panel {
  margin-top: 18px;
}

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

.compact-steps li {
  min-width: 0;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.compact-steps p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.editor-frame {
  margin-top: 22px;
}

.editor-layout {
  min-height: 260px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  background: #102531;
}

.file-tree {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #8eabb7;
  font-size: 10px;
}

.file-tree strong {
  margin-bottom: 4px;
  color: #d4e5eb;
}

.file-tree span {
  padding: 7px 8px;
  border-radius: 4px;
}

.file-tree .is-selected {
  color: #ffffff;
  background: rgba(6, 127, 185, 0.28);
}

.editor-layout pre {
  min-width: 0;
  margin: 0;
  overflow: auto;
  padding: 28px 24px;
  color: #eef8fb;
  font-size: 12px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.editor-layout pre span {
  color: #87a5b0;
}

.editor-layout pre b {
  color: #61d8a2;
  font-weight: 700;
}

.editor-frame figcaption code {
  color: var(--ocean-dark);
  font-size: 0.96em;
}

.signin-flow {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 28px;
}

.signin-steps {
  display: grid;
}

.signin-steps article {
  position: relative;
  padding: 15px 0 15px 42px;
}

.signin-steps article + article {
  border-top: 1px solid var(--line);
}

.signin-steps article > span {
  position: absolute;
  top: 16px;
  left: 0;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.signin-steps h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.signin-steps p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.signin-frame {
  padding: 26px;
}

.codex-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.codex-mark > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  background: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.codex-mark strong,
.codex-mark small {
  display: block;
}

.codex-mark strong {
  color: var(--ink);
  font-size: 16px;
}

.codex-mark small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.signin-choice {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--ocean);
  border-radius: 7px;
  background: var(--surface-blue);
}

.signin-choice + .signin-choice {
  margin-top: 10px;
}

.signin-choice > svg {
  width: 19px;
  height: 19px;
  color: var(--ocean);
}

.signin-choice strong,
.signin-choice small {
  display: block;
}

.signin-choice strong {
  color: var(--ink);
  font-size: 13px;
}

.signin-choice small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.signin-choice.is-muted {
  border-width: 1px;
  border-color: var(--line);
  background: var(--surface);
  opacity: 0.72;
}

.signin-frame figcaption {
  margin: 18px -26px -26px;
}

.warning-notice {
  border-color: #efd0c1;
  background: var(--coral-soft);
}

.warning-notice > svg {
  color: var(--coral);
}

.warning-notice strong {
  display: block;
  color: #8e4326;
  font-size: 13px;
}

.warning-notice p {
  margin-top: 4px;
  color: #765546;
}

.prompt-block {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid #254c5d;
  border-radius: 8px;
  background: #102531;
  box-shadow: var(--shadow);
}

.prompt-toolbar {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #9bb3bd;
  font-size: 11px;
  font-weight: 700;
}

.prompt-toolbar button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  color: #eaf4f7;
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.prompt-toolbar button:hover {
  background: rgba(255, 255, 255, 0.11);
}

.prompt-toolbar svg {
  width: 14px;
  height: 14px;
}

.prompt-block pre {
  min-width: 0;
  margin: 0;
  overflow: auto;
  padding: 22px;
  color: #eaf4f7;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.success-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.success-checks div {
  min-width: 0;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 680;
  text-align: center;
}

.success-checks div + div {
  border-left: 1px solid var(--line);
}

.success-checks svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--teal);
}

.faq-list {
  margin-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--line-strong);
}

.faq-list summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  flex: 0 0 auto;
  color: var(--ocean);
  content: "+";
  font-size: 21px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list details p {
  max-width: 720px;
  margin: -2px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.support-row {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(2, auto);
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.support-row > div {
  min-width: 0;
}

.support-row span,
.support-row strong {
  display: block;
}

.support-row span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.support-row strong {
  margin-top: 4px;
  color: var(--ocean-dark);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.support-row a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-soft);
  background: #fbfdfe;
  font-size: 12px;
  font-weight: 680;
}

.support-row a:hover {
  border-color: var(--line-strong);
  color: var(--ocean-dark);
}

.support-row svg {
  width: 15px;
  height: 15px;
  color: var(--ocean);
}

.copy-toast {
  position: fixed;
  z-index: 60;
  right: 22px;
  bottom: 22px;
  padding: 11px 15px;
  border: 1px solid #b7dece;
  border-radius: 6px;
  color: #176747;
  background: var(--teal-soft);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 720;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .intro-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 44px;
  }

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

  .route-summary li:nth-child(2) {
    border-top: 0;
  }

  .route-summary li:nth-child(even) {
    padding-left: 18px;
    border-left: 1px solid var(--line);
  }

  .tutorial-layout {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .tutorial-nav {
    position: static;
  }

  .tutorial-nav nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tutorial-nav nav a {
    justify-content: center;
  }

  .tutorial-nav nav a:nth-child(3n + 2),
  .tutorial-nav nav a:nth-child(3n + 3) {
    padding-left: 12px;
    border-left: 1px solid var(--line);
  }

  .security-note {
    max-width: 360px;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 28px);
  }

  html {
    scroll-padding-top: 76px;
  }

  .header-shell {
    min-height: 62px;
    gap: 12px;
  }

  .brand {
    gap: 8px;
    font-size: 17px;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .page-name,
  .header-link:first-child {
    display: none;
  }

  .header-link {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 12px;
  }

  .intro-grid {
    padding: 48px 0 44px;
    gap: 36px;
  }

  .section-kicker {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .intro-copy h1 {
    font-size: 35px;
    line-height: 1.18;
  }

  .intro-lede {
    margin-top: 17px;
    font-size: 15px;
    line-height: 1.7;
  }

  .intro-actions {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .command-link {
    width: 100%;
  }

  .route-summary {
    grid-template-columns: 1fr;
  }

  .route-summary li,
  .route-summary li:nth-child(2) {
    border-top: 1px solid var(--line);
  }

  .route-summary li:first-child {
    border-top: 0;
  }

  .route-summary li:nth-child(even) {
    padding-left: 4px;
    border-left: 0;
  }

  .tutorial-layout {
    gap: 44px;
    padding-top: 38px;
    padding-bottom: 62px;
  }

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

  .tutorial-nav nav a,
  .tutorial-nav nav a:nth-child(3n + 2),
  .tutorial-nav nav a:nth-child(3n + 3) {
    min-width: 0;
    justify-content: flex-start;
    padding: 0 8px;
    border-left: 0;
    font-size: 12px;
  }

  .tutorial-nav nav a:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .security-note {
    max-width: none;
  }

  .tutorial-section {
    padding-bottom: 52px;
  }

  .tutorial-section + .tutorial-section {
    padding-top: 52px;
  }

  .section-heading {
    gap: 12px;
  }

  .section-index {
    width: 38px;
    height: 38px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .section-lede {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.75;
  }

  .download-grid,
  .instruction-grid,
  .signin-flow {
    grid-template-columns: 1fr;
  }

  .download-option {
    min-height: 218px;
    padding: 20px;
  }

  .instruction-grid {
    gap: 20px;
  }

  .console-layout {
    min-height: 320px;
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .recharge-layout {
    min-height: 300px;
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .recharge-sidebar {
    padding: 14px 7px;
  }

  .recharge-sidebar > span:not(.console-logo),
  .recharge-sidebar > strong {
    gap: 5px;
    padding: 0 5px;
    font-size: 8px;
  }

  .recharge-main {
    padding: 20px 13px;
  }

  .recharge-entry {
    grid-template-columns: 1fr;
  }

  .recharge-entry button {
    justify-self: start;
  }

  .console-sidebar {
    gap: 11px;
    padding: 14px 8px;
    font-size: 8px;
  }

  .console-sidebar strong {
    padding: 7px 4px;
  }

  .console-main {
    padding: 15px 12px;
  }

  .console-title {
    align-items: center;
  }

  .endpoint-row {
    grid-template-columns: 1fr 16px;
  }

  .endpoint-row span {
    grid-column: 1 / 3;
  }

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

  .os-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-steps {
    grid-template-columns: 1fr;
  }

  .compact-steps li {
    min-height: 0;
  }

  .editor-layout {
    min-height: 300px;
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .file-tree {
    padding: 15px 7px;
    font-size: 8px;
  }

  .editor-layout pre {
    padding: 22px 14px;
    font-size: 10px;
    line-height: 1.9;
  }

  .signin-flow {
    gap: 20px;
  }

  .signin-frame {
    padding: 20px 16px;
  }

  .signin-frame figcaption {
    margin: 18px -16px -20px;
  }

  .prompt-toolbar {
    align-items: center;
    padding: 8px 12px;
  }

  .prompt-block pre {
    padding: 18px 14px;
    font-size: 11px;
  }

  .success-checks {
    grid-template-columns: 1fr;
  }

  .success-checks div {
    min-height: 50px;
    justify-content: flex-start;
    padding-inline: 14px;
    text-align: left;
  }

  .success-checks div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .support-row > div {
    grid-column: 1 / -1;
  }

  .support-row a {
    justify-content: center;
  }

  .copy-toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
