:root {
  color-scheme: light;
  --ink: #172126;
  --ink-soft: #435159;
  --muted: #6d7b82;
  --line: #dce5e7;
  --line-strong: #cbd8da;
  --surface: #ffffff;
  --surface-soft: #f5f8f8;
  --surface-mint: #eaf8f5;
  --teal: #087f75;
  --teal-dark: #075f59;
  --teal-light: #bdece4;
  --blue: #1b64b0;
  --amber: #a96008;
  --amber-bg: #fff7e6;
  --success: #16794e;
  --success-bg: #e9f7ef;
  --dark: #17282c;
  --shadow-sm: 0 1px 2px rgba(21, 44, 49, 0.08);
  --shadow-lg: 0 22px 70px rgba(18, 41, 46, 0.18);
  --header-height: 68px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

html.theme-dark {
  color-scheme: dark;
  --ink: #e5eef0;
  --ink-soft: #bdcdd1;
  --muted: #8fa3a8;
  --line: #2d4146;
  --line-strong: #3a5157;
  --surface: #101a1d;
  --surface-soft: #172428;
  --surface-mint: #12302e;
  --teal: #37c5b7;
  --teal-dark: #6ed9ce;
  --teal-light: #255c57;
  --blue: #75afea;
  --amber: #f0b35f;
  --amber-bg: #322716;
  --success: #67d39c;
  --success-bg: #143225;
  --dark: #0b1315;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 22px 70px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

html.theme-dark body {
  background: var(--surface);
}

html.theme-dark .intro-copy h1,
html.theme-dark .route-item strong,
html.theme-dark .step-heading h2,
html.theme-dark .checklist-heading h3,
html.theme-dark .site-footer strong {
  color: #f1f7f8;
}

button,
a,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(203, 216, 218, 0.88);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

html.theme-dark .site-header {
  background: rgba(16, 26, 29, 0.94);
}

.header-inner,
.intro-inner,
.tutorial-shell,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--surface-mint);
  font-size: 12px;
  font-weight: 800;
}

html.theme-dark .brand-mark {
  background: #163735;
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  font-size: 11px;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 16px;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.header-actions,
.intro-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.icon-button:focus-visible,
.image-zoom:focus-visible,
.step-nav a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(27, 100, 176, 0.25);
  outline-offset: 2px;
}

.button-primary {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

.button-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.button-ghost {
  color: var(--ink-soft);
  background: #ffffff;
  border-color: var(--line);
}

html.theme-dark .button-ghost,
html.theme-dark .icon-button {
  background: var(--surface-soft);
}

html.theme-dark .download-icon {
  background: #14283a;
}

.button-ghost:hover {
  color: var(--teal-dark);
  border-color: var(--teal-light);
  background: var(--surface-mint);
}

.button-dark {
  color: #ffffff;
  background: var(--dark);
  border-color: var(--dark);
  white-space: nowrap;
}

.button-dark:hover {
  background: #0c191c;
}

.button-light {
  color: var(--dark);
  background: #ffffff;
  border-color: #ffffff;
}

.button-large {
  min-height: 46px;
  padding: 11px 17px;
}

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

.intro-inner {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 76px;
  padding-top: 58px;
  padding-bottom: 58px;
}

.eyebrow,
.step-kicker,
.sidebar-title {
  margin: 0;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.intro-copy h1 {
  max-width: 720px;
  margin: 12px 0 18px;
  color: var(--dark);
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro-lead {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.intro-actions {
  margin-top: 30px;
}

.time-hint {
  color: var(--muted);
  font-size: 13px;
}

.quick-route {
  border-left: 1px solid rgba(8, 127, 117, 0.24);
}

.route-item {
  min-height: 74px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  padding: 9px 0 9px 22px;
  border-bottom: 1px solid rgba(8, 127, 117, 0.17);
}

.route-item:last-child {
  border-bottom: 0;
}

.route-index {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.route-item div {
  display: grid;
}

.route-item strong {
  color: var(--dark);
  font-size: 15px;
}

.route-item div span {
  color: var(--muted);
  font-size: 12px;
}

.tutorial-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.step-sidebar {
  align-self: stretch;
  border-right: 1px solid var(--line);
}

.sidebar-sticky {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  padding: 52px 32px 52px 0;
}

.progress-track {
  height: 5px;
  margin-top: 15px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-soft);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--teal);
  transition: width 220ms ease;
}

.progress-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 9px 0 28px;
}

.progress-label strong {
  color: var(--dark);
  font-size: 14px;
}

.progress-label span {
  color: var(--muted);
  font-size: 11px;
}

.step-nav {
  display: grid;
  gap: 4px;
}

.step-nav a {
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 5px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  transition: color 150ms ease, background-color 150ms ease;
}

.step-nav a span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 10px;
}

.step-nav a:hover,
.step-nav a.active {
  color: var(--teal-dark);
  background: var(--surface-mint);
}

.step-nav a.active span {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

.sidebar-note {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--success);
}

.sidebar-note p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.sidebar-note strong {
  font-size: 12px;
}

.sidebar-note span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

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

.tutorial-step,
.help-section {
  padding: 72px 0 82px;
  border-bottom: 1px solid var(--line);
}

.tutorial-content section:last-child {
  border-bottom: 0;
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}

.step-heading.compact {
  margin-bottom: 28px;
}

.step-number {
  width: 52px;
  height: 52px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--teal-light);
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--surface-mint);
  font-size: 13px;
  font-weight: 800;
}

.step-number.help-mark {
  border-color: var(--line-strong);
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 18px;
}

.step-heading h2,
.checklist-heading h3 {
  margin: 3px 0 0;
  color: var(--dark);
  line-height: 1.25;
}

.step-heading h2 {
  font-size: 29px;
}

.step-summary {
  max-width: 760px;
  margin: 22px 0 30px;
  color: var(--ink-soft);
  font-size: 17px;
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.download-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.download-main p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.download-icon {
  width: 48px;
  height: 48px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  color: var(--blue);
  background: #eaf3fc;
}

.download-icon .icon {
  width: 24px;
  height: 24px;
}

.platform-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.platform-guide div {
  display: grid;
  gap: 2px;
  padding: 13px 15px;
  border-right: 1px solid var(--line);
}

.platform-guide div:last-child {
  border-right: 0;
}

.platform-guide span {
  color: var(--muted);
  font-size: 11px;
}

.platform-guide strong {
  font-size: 13px;
}

.notice {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 3px solid;
  border-radius: 0 5px 5px 0;
}

.notice strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.notice p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.notice-neutral {
  border-color: var(--blue);
  background: #eff6fc;
}

html.theme-dark .notice-neutral {
  background: #14283a;
}

.notice-warning {
  border-color: #d99016;
  background: var(--amber-bg);
}

.notice-warning strong {
  color: var(--amber);
}

.notice-success {
  border-color: var(--success);
  background: var(--success-bg);
}

.notice-success strong {
  color: var(--success);
}

.action-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.action-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border-top: 2px solid var(--line-strong);
  background: var(--surface-soft);
}

.action-list li > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

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

.action-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 13px;
}

.screenshot-frame {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  overflow: hidden;
  background: #edf2f3;
  box-shadow: var(--shadow-sm);
}

.screenshot-frame.screenshot-narrow {
  width: min(100%, 820px);
}

.image-zoom {
  position: relative;
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: #edf2f3;
}

.image-zoom img {
  width: 100%;
  aspect-ratio: auto;
}

.image-zoom > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  color: #ffffff;
  background: rgba(14, 31, 35, 0.78);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.image-zoom:hover > span,
.image-zoom:focus-visible > span {
  opacity: 1;
  transform: translateY(0);
}

.screenshot-frame figcaption {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #ffffff;
  font-size: 12px;
}

html.theme-dark .screenshot-frame figcaption,
html.theme-dark .completion-checklist i {
  background: var(--surface-soft);
}

html.theme-dark .screenshot-frame,
html.theme-dark .image-zoom {
  background: #0c1618;
}

.screenshot-frame figcaption span {
  color: var(--teal-dark);
  font-weight: 800;
}

.verify-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.verify-strip div {
  display: grid;
  gap: 2px;
  padding: 12px 13px;
  border-right: 1px solid var(--line);
}

.verify-strip div:last-child {
  border-right: 0;
}

.verify-strip span {
  color: var(--muted);
  font-size: 10px;
}

.verify-strip strong {
  font-size: 12px;
}

.command-block {
  width: min(100%, 820px);
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 38px;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 11px 12px 11px 16px;
  border: 1px solid #263b40;
  border-radius: 6px;
  color: #dbeaec;
  background: var(--dark);
}

.command-block > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b9ced2;
  font-size: 12px;
}

.command-block code {
  color: #ffffff;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  color: var(--ink-soft);
  background: #ffffff;
  transition: background-color 150ms ease, color 150ms ease;
}

.icon-button:hover {
  color: var(--teal-dark);
  background: var(--surface-mint);
}

.command-block .icon-button {
  border-color: #435c62;
  color: #dbeaec;
  background: #20363b;
}

.completion-checklist {
  width: min(100%, 820px);
  margin-top: 34px;
  border-top: 1px solid var(--line-strong);
}

.checklist-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 16px;
}

.checklist-heading h3 {
  font-size: 19px;
}

.checklist-heading > span {
  flex: 0 0 auto;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.completion-checklist label {
  display: block;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.completion-checklist input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.completion-checklist label > span {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 2px;
  color: var(--ink-soft);
  font-size: 14px;
}

.completion-checklist i {
  width: 23px;
  height: 23px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: transparent;
  background: #ffffff;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.completion-checklist i .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.completion-checklist input:checked + span {
  color: var(--success);
}

.completion-checklist input:checked + span i {
  color: #ffffff;
  background: var(--success);
  border-color: var(--success);
}

.completion-checklist input:focus-visible + span i {
  outline: 3px solid rgba(27, 100, 176, 0.25);
  outline-offset: 2px;
}

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

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

.faq-list summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 750;
}

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

.faq-list summary .icon {
  color: var(--muted);
  transition: transform 180ms ease;
}

.faq-list details[open] summary .icon {
  transform: rotate(90deg);
}

.faq-list details p {
  max-width: 760px;
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.support-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
  padding: 24px;
  border-radius: 7px;
  color: #ffffff;
  background: var(--dark);
}

.support-band p {
  margin: 3px 0 0;
  color: #b9ced2;
  font-size: 12px;
}

.site-footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer p {
  margin: 0;
}

.site-footer > div p {
  display: grid;
}

.site-footer strong {
  color: var(--dark);
  font-size: 13px;
}

.image-dialog {
  width: min(96vw, 1500px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 1px solid #52666a;
  border-radius: 7px;
  color: #ffffff;
  background: #101a1d;
  box-shadow: var(--shadow-lg);
}

.image-dialog::backdrop {
  background: rgba(7, 15, 17, 0.78);
  backdrop-filter: blur(5px);
}

.dialog-toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 10px 8px 18px;
  border-bottom: 1px solid #2d4146;
}

.dialog-toolbar p {
  margin: 0;
  overflow: hidden;
  color: #dbeaec;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-toolbar .icon-button {
  border-color: #3c5156;
  color: #ffffff;
  background: #17282c;
}

.dialog-image-wrap {
  max-height: calc(94vh - 55px);
  overflow: auto;
}

.dialog-image-wrap img {
  width: auto;
  max-width: none;
  min-width: 100%;
  margin: 0 auto;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  padding: 9px 13px;
  border: 1px solid #3f595f;
  border-radius: 5px;
  color: #ffffff;
  background: var(--dark);
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

html.is-embedded {
  --header-height: 0px;
}

html.is-embedded .site-header,
html.is-embedded .site-footer {
  display: none;
}

html.is-embedded .intro-inner {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding-top: 48px;
  padding-bottom: 30px;
}

html.is-embedded .intro-copy h1 {
  margin-top: 8px;
  margin-bottom: 12px;
  font-size: 38px;
}

html.is-embedded .intro-lead {
  max-width: 820px;
  font-size: 15px;
}

html.is-embedded .intro-actions {
  margin-top: 20px;
}

html.is-embedded .quick-route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(8, 127, 117, 0.24);
  border-left: 0;
}

html.is-embedded .route-item {
  min-height: 62px;
  padding: 10px 14px;
  border-right: 1px solid rgba(8, 127, 117, 0.17);
  border-bottom: 0;
}

html.is-embedded .route-item:last-child {
  border-right: 0;
}

html.is-embedded .sidebar-sticky {
  top: 24px;
  padding-top: 44px;
}

html.is-embedded .tutorial-step,
html.is-embedded .help-section {
  padding-top: 58px;
  padding-bottom: 64px;
}

html.is-embedded .dialog-toolbar {
  justify-content: flex-start;
  padding-left: 10px;
}

html.is-embedded .dialog-toolbar .icon-button {
  order: -1;
  margin-right: 4px;
}

@media (max-width: 980px) {
  .intro-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .quick-route {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-left: 0;
    border-top: 1px solid rgba(8, 127, 117, 0.24);
  }

  .route-item:nth-child(odd) {
    border-right: 1px solid rgba(8, 127, 117, 0.17);
  }

  .tutorial-shell {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 42px;
  }

  .sidebar-sticky {
    padding-right: 22px;
  }

  .action-list {
    grid-template-columns: 1fr;
  }

  .verify-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .verify-strip div:nth-child(2) {
    border-right: 0;
  }

  .verify-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 980px) {
  html.is-embedded .quick-route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.is-embedded .route-item {
    border-right: 0;
    border-bottom: 1px solid rgba(8, 127, 117, 0.17);
  }

  html.is-embedded .route-item:nth-child(odd) {
    border-right: 1px solid rgba(8, 127, 117, 0.17);
  }

  html.is-embedded .route-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 740px) {
  :root {
    --header-height: 62px;
  }

  .header-inner,
  .intro-inner,
  .tutorial-shell,
  .site-footer {
    width: min(100% - 28px, 680px);
  }

  .hide-on-small,
  .brand-copy small {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .button {
    padding-right: 12px;
    padding-left: 12px;
  }

  .intro-inner {
    min-height: auto;
    padding-top: 45px;
    padding-bottom: 38px;
  }

  .intro-copy h1 {
    font-size: 39px;
  }

  .intro-lead {
    font-size: 16px;
  }

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

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

  html.is-embedded .quick-route {
    grid-template-columns: 1fr;
  }

  .route-item:nth-child(odd),
  html.is-embedded .route-item:nth-child(odd) {
    border-right: 0;
  }

  html.is-embedded .route-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(8, 127, 117, 0.17);
  }

  html.is-embedded .route-item:last-child {
    border-bottom: 0;
  }

  .tutorial-shell {
    display: block;
  }

  .step-sidebar {
    position: sticky;
    z-index: 30;
    top: var(--header-height);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
  }

  html.theme-dark .step-sidebar {
    background: rgba(16, 26, 29, 0.96);
  }

  .sidebar-sticky {
    position: static;
    padding: 8px 14px;
  }

  .sidebar-title,
  .progress-track,
  .progress-label,
  .sidebar-note {
    display: none;
  }

  .step-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .step-nav::-webkit-scrollbar {
    display: none;
  }

  .step-nav a {
    min-width: max-content;
    grid-template-columns: 24px auto;
    padding: 6px 9px;
    font-size: 12px;
  }

  .step-nav a span {
    width: 20px;
    height: 20px;
  }

  .tutorial-step,
  .help-section {
    padding: 54px 0 60px;
  }

  .step-heading {
    align-items: flex-start;
  }

  .step-number {
    width: 42px;
    height: 42px;
  }

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

  .step-summary {
    margin-top: 18px;
    font-size: 15px;
  }

  .download-panel,
  .support-band {
    align-items: stretch;
    flex-direction: column;
  }

  .download-panel .button,
  .support-band .button {
    width: 100%;
  }

  .platform-guide {
    grid-template-columns: 1fr;
  }

  .platform-guide div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .platform-guide div:last-child {
    border-bottom: 0;
  }

  .image-zoom > span {
    opacity: 1;
    transform: none;
  }

  .command-block {
    grid-template-columns: minmax(0, 1fr) auto 38px;
  }

  .command-block > div span {
    display: none;
  }

  .checklist-heading {
    align-items: flex-start;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .image-dialog {
    width: 100vw;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .dialog-image-wrap {
    max-height: calc(100vh - 55px);
  }
}

@media (max-width: 420px) {
  .header-inner,
  .intro-inner,
  .tutorial-shell,
  .site-footer {
    width: calc(100% - 22px);
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .header-actions .button {
    min-height: 38px;
    font-size: 12px;
  }

  .intro-copy h1 {
    font-size: 34px;
  }

  .download-main {
    align-items: flex-start;
  }

  .verify-strip {
    grid-template-columns: 1fr;
  }

  .verify-strip div,
  .verify-strip div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .verify-strip div:last-child {
    border-bottom: 0;
  }

  .screenshot-frame figcaption {
    align-items: flex-start;
  }
}

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

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