:root {
  color-scheme: light;
  --ink: #16202a;
  --muted: #64707c;
  --line: #dce2e6;
  --surface: #ffffff;
  --surface-soft: #f5f8f8;
  --teal: #087d76;
  --teal-soft: #e8f5f2;
  --blue: #2f78c5;
  --blue-soft: #eaf3fb;
  --amber: #9a6300;
  --amber-soft: #fff5db;
  --danger: #a53434;
  --shadow: 0 12px 32px rgba(29, 47, 59, 0.1);
  --header-height: 68px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family:
    Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1440px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-size: 15px;
  line-height: 1.35;
}

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

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

.header-steps a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  color: #44505b;
  font-size: 14px;
  font-weight: 650;
}

.header-steps a:hover,
.header-steps a:focus-visible,
.header-steps a.is-current {
  background: var(--surface-soft);
  color: var(--teal);
  outline: none;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 170px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.primary-action svg,
.course-meta svg,
.back-link svg,
.lesson-footer-nav svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.course-map {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 80px;
}

.course-map-header {
  margin-bottom: 28px;
}

.course-map-header h2 {
  margin-bottom: 0;
  font-size: 27px;
  letter-spacing: 0;
}

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

.course-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 112px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 150ms ease;
}

.course-row:hover,
.course-row:focus-visible {
  background: var(--surface-soft);
  outline: none;
}

.course-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.course-copy strong,
.course-copy small {
  display: block;
  letter-spacing: 0;
}

.course-copy strong {
  margin-bottom: 5px;
  font-size: 18px;
}

.course-copy small {
  color: var(--muted);
  font-size: 14px;
}

.course-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 750;
}

.course-result {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  padding: 20px 22px;
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
}

.course-result > svg {
  width: 26px;
  height: 26px;
  color: var(--teal);
}

.course-result strong {
  display: block;
  margin-bottom: 2px;
}

.course-result p {
  margin-bottom: 0;
  color: #52665f;
  font-size: 14px;
}

.header-steps span {
  color: var(--teal);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.overview {
  border-bottom: 1px solid var(--line);
  background: #f3f7f6;
}

.overview-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  width: min(1440px, calc(100% - 48px));
  min-height: 250px;
  margin: 0 auto;
  padding: 52px 0 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: 0;
}

.overview-copy {
  max-width: 720px;
  margin-bottom: 0;
  color: #53606b;
  font-size: 17px;
}

.result-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 330px;
  padding: 16px 18px;
  border-left: 3px solid var(--teal);
  background: var(--surface);
  color: #4c5964;
}

.result-strip svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  color: var(--teal);
}

.result-strip strong {
  color: var(--ink);
}

.guide-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.step-rail {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  align-self: start;
  margin-top: 56px;
  padding-bottom: 32px;
}

.lesson-page .step-rail {
  margin-top: 44px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--teal);
  outline: none;
}

.rail-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.rail-progress {
  position: absolute;
  top: 52px;
  left: 17px;
  width: 2px;
  height: 204px;
  overflow: hidden;
  background: var(--line);
}

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

.rail-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 68px;
  color: #68747f;
}

.rail-step + .rail-step {
  margin-top: 0;
}

.rail-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
}

.rail-step strong,
.rail-step small {
  display: block;
  letter-spacing: 0;
}

.rail-step strong {
  font-size: 14px;
}

.rail-step small {
  margin-top: 2px;
  font-size: 11px;
}

.rail-step.is-active {
  color: var(--ink);
}

.rail-step.is-active .rail-number {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

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

.tutorial-step {
  padding: 58px 0 68px;
  border-bottom: 1px solid var(--line);
}

.step-heading {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 34px;
}

.step-index {
  flex: 0 0 auto;
  margin-top: 3px;
  padding: 5px 9px;
  border-radius: 5px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.step-heading h2 {
  margin-bottom: 6px;
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: 0;
}

.lesson-title {
  margin-bottom: 6px;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: 0;
}

.step-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.step-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 0.64fr);
  gap: 36px;
  align-items: start;
}

.plan-layout {
  grid-template-columns: minmax(300px, 0.45fr) minmax(280px, 0.55fr);
}

.instruction-pane {
  min-width: 0;
}

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

.action-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.action-list li:first-child {
  padding-top: 0;
}

.action-list li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.action-list li.important > span {
  background: var(--teal);
}

.action-list strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
}

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

code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--teal-soft);
  color: #076b65;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
  font-weight: 700;
}

.status-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 13px 14px;
  border-left: 3px solid;
  font-size: 13px;
}

.status-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.status-note.success {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: #31645f;
}

.status-note.info {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: #355d84;
}

.status-note.warning {
  border-color: var(--amber);
  background: var(--amber-soft);
  color: #74511a;
}

.screenshot-frame {
  min-width: 0;
  margin: 0;
}

.image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cfd7dc;
  border-radius: 8px;
  background: #eef2f3;
  box-shadow: 0 5px 16px rgba(37, 54, 65, 0.08);
  cursor: zoom-in;
}

.image-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wide .image-button {
  aspect-ratio: 3420 / 1902;
}

.portrait {
  width: min(100%, 520px);
  justify-self: center;
}

.portrait .image-button {
  aspect-ratio: 1298 / 1558;
}

.zoom-icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(22, 32, 42, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.zoom-icon svg {
  width: 17px;
  height: 17px;
}

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

.image-button:focus-visible {
  outline: 3px solid rgba(47, 120, 197, 0.28);
  outline-offset: 3px;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.screenshot-stack {
  display: grid;
  gap: 30px;
}

.completion {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  margin: 54px 0 76px;
  padding: 28px 30px;
  border: 1px solid #c9ded9;
  border-radius: 8px;
  background: #f1f8f6;
}

.completion.compact {
  margin-top: 14px;
}

.lesson-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 10px 0 70px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.lesson-footer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.lesson-footer-nav a:hover,
.lesson-footer-nav a:focus-visible {
  border-color: #9bbdb7;
  background: var(--surface-soft);
  outline: none;
}

.lesson-footer-nav a.next {
  justify-content: flex-end;
  text-align: right;
}

.lesson-footer-nav span,
.lesson-footer-nav small {
  display: block;
  letter-spacing: 0;
}

.lesson-footer-nav span {
  font-size: 14px;
  font-weight: 750;
}

.lesson-footer-nav small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.completion-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 7px;
  background: var(--teal);
  color: #fff;
}

.completion-icon svg {
  width: 25px;
  height: 25px;
}

.completion h2 {
  margin-bottom: 16px;
  font-size: 22px;
  letter-spacing: 0;
}

.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #42524f;
  font-size: 14px;
}

.check-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.check-list svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
}

.back-to-top {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top svg,
.lightbox-close svg {
  width: 19px;
  height: 19px;
}

.lightbox {
  width: min(94vw, 1500px);
  max-width: none;
  height: min(92vh, 980px);
  max-height: none;
  padding: 48px 18px 18px;
  border: 0;
  border-radius: 8px;
  background: #11181e;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.lightbox::backdrop {
  background: rgba(16, 22, 27, 0.78);
  backdrop-filter: blur(4px);
}

.lightbox img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: #9bbdb7;
  background: var(--surface-soft);
  outline: none;
}

.secondary-action svg,
.download-actions svg,
.method-go svg,
.sources svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.method-step {
  border-bottom: 0;
}

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

.method-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 142px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
}

.method-row:hover,
.method-row:focus-visible {
  background: var(--surface-soft);
  outline: none;
}

.method-row.recommended {
  border-left: 3px solid var(--teal);
  padding-left: 18px;
  background: #f7fbfa;
}

.method-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
}

.recommended .method-icon {
  background: var(--teal);
}

.method-icon svg {
  width: 23px;
  height: 23px;
}

.method-copy,
.method-copy strong,
.method-copy small,
.method-label {
  display: block;
}

.method-label {
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.method-copy strong {
  margin-bottom: 5px;
  font-size: 19px;
}

.method-copy small {
  color: var(--muted);
  font-size: 14px;
}

.method-go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 750;
}

.download-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 16px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  background: var(--surface-soft);
}

.download-band h2 {
  margin-bottom: 7px;
  font-size: 22px;
}

.download-band p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.download-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.source-note a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.walkthrough-list {
  margin-top: 48px;
}

.walkthrough-item {
  padding: 0 0 58px;
  border-bottom: 1px solid var(--line);
}

.walkthrough-item + .walkthrough-item {
  padding-top: 56px;
}

.walkthrough-item > header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 15px;
  margin-bottom: 24px;
}

.walkthrough-item > header > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.walkthrough-item h2 {
  margin-bottom: 5px;
  font-size: 23px;
}

.walkthrough-item header p {
  margin-bottom: 0;
  color: var(--muted);
}

.import-shot .image-button {
  aspect-ratio: 1920 / 958;
}

.optional-step > header > span {
  background: var(--muted);
}

.manual-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.manual-intro {
  padding: 52px 0 46px;
  border-bottom: 1px solid var(--line);
}

.manual-intro h1 {
  margin-bottom: 12px;
}

.manual-intro > p:not(.eyebrow) {
  max-width: 840px;
  color: var(--muted);
  font-size: 16px;
}

.prep-strip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 26px;
  padding: 18px 20px;
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
}

.prep-strip > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--teal);
}

.prep-strip strong {
  display: block;
  margin-bottom: 3px;
}

.prep-strip p {
  margin-bottom: 0;
  color: #45645f;
  font-size: 14px;
}

.platform-tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.platform-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 150px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 5px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 750;
}

.platform-tabs a:hover,
.platform-tabs a:focus-visible {
  background: var(--ink);
  color: #fff;
  outline: none;
}

.platform-tabs svg {
  width: 17px;
  height: 17px;
}

.platform-section {
  padding: 60px 0 18px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.platform-section + .platform-section {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.platform-heading {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.platform-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
}

.platform-mark svg {
  width: 25px;
  height: 25px;
}

.platform-heading h2 {
  margin-bottom: 4px;
  font-size: 28px;
}

.platform-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.config-tool {
  margin-bottom: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.config-tool > header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.tool-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 850;
}

.config-tool h3 {
  margin: 0 0 3px;
  font-size: 21px;
}

.config-tool header p,
.config-tool > p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.config-tool header p {
  margin-bottom: 0;
}

.compact-list {
  margin-bottom: 15px;
}

.compact-list li {
  padding-bottom: 10px;
  border-bottom: 0;
}

.code-shell {
  position: relative;
  margin: 12px 0 22px;
  overflow: hidden;
  border: 1px solid #293541;
  border-radius: 7px;
  background: #18212a;
}

.code-shell pre {
  max-width: 100%;
  margin: 0;
  padding: 20px 54px 20px 20px;
  overflow-x: auto;
  color: #edf6f4;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre;
}

.code-shell code {
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.copy-code {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 9px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.copy-code:hover,
.copy-code:focus-visible,
.copy-code.is-copied {
  background: var(--teal);
  outline: none;
}

.copy-code svg {
  width: 17px;
  height: 17px;
}

.tool-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #365d57 !important;
  font-weight: 650;
}

.tool-check > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--teal);
}

.troubleshooting {
  margin-top: 28px;
  padding: 34px 0 24px;
  border-top: 1px solid var(--line);
}

.troubleshooting h2,
.sources h2 {
  margin-bottom: 22px;
  font-size: 24px;
}

.troubleshooting dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.troubleshooting dl > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.troubleshooting dt {
  font-weight: 800;
}

.troubleshooting dd {
  margin: 0;
  color: var(--muted);
}

.sources {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.sources a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 22px 10px 0;
  color: var(--teal);
  font-size: 14px;
  font-weight: 750;
}

.manual-footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 28px;
}

.manual-footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.manual-footer-nav a:hover,
.manual-footer-nav a:focus-visible {
  border-color: #9bbdb7;
  background: var(--surface-soft);
  outline: none;
}

.manual-footer-nav span,
.manual-footer-nav small {
  display: block;
}

.manual-footer-nav span {
  font-size: 14px;
  font-weight: 750;
}

.manual-footer-nav small {
  color: var(--muted);
  font-size: 11px;
}

.manual-footer-nav svg {
  width: 18px;
  height: 18px;
}

.copy-status {
  position: fixed;
  z-index: 70;
  right: 18px;
  bottom: 18px;
  margin: 0;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

@media (max-width: 1050px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step-rail {
    position: sticky;
    z-index: 30;
    top: var(--header-height);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
  }

  .lesson-page .step-rail {
    margin-top: 0;
  }

  .lesson-page .back-link {
    display: none;
  }

  .rail-label,
  .rail-progress,
  .rail-step small {
    display: none;
  }

  .rail-step {
    justify-content: center;
    min-height: 42px;
  }

  .rail-number {
    width: 29px;
    height: 29px;
  }

  .step-grid,
  .plan-layout {
    grid-template-columns: 1fr;
  }

  .plan-layout .instruction-pane {
    grid-row: 1;
  }

  .plan-layout .portrait {
    grid-row: 2;
  }

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

  .download-actions {
    width: 100%;
  }

  .download-actions a {
    flex: 1;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 58px;
  }

  .header-inner,
  .overview-inner,
  .guide-layout {
    width: min(100% - 30px, 1440px);
  }

  .brand {
    min-width: auto;
  }

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

  .brand small,
  .header-steps {
    display: none;
  }

  .overview-inner {
    display: block;
    min-height: 0;
    padding: 34px 0 30px;
  }

  .primary-action {
    width: 100%;
    margin-top: 24px;
  }

  .course-map {
    width: min(100% - 30px, 1120px);
    padding: 42px 0 58px;
  }

  .course-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    min-height: 104px;
    padding: 18px 0;
  }

  .course-number {
    width: 40px;
    height: 40px;
  }

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

  .course-copy small {
    font-size: 13px;
  }

  .course-meta {
    display: none;
  }

  .method-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    min-height: 128px;
    padding: 20px 0;
  }

  .method-row.recommended {
    padding-left: 12px;
  }

  .method-icon {
    width: 40px;
    height: 40px;
  }

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

  .method-copy small {
    font-size: 13px;
  }

  .method-go {
    display: none;
  }

  h1 {
    font-size: 30px;
  }

  .overview-copy {
    font-size: 15px;
  }

  .result-strip {
    min-width: 0;
    margin-top: 24px;
    padding: 12px 14px;
    font-size: 13px;
  }

  .step-rail {
    width: calc(100% + 30px);
    margin-left: -15px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .rail-step {
    gap: 7px;
    font-size: 12px;
  }

  .rail-step strong {
    font-size: 12px;
  }

  .tutorial-step {
    padding: 42px 0 50px;
  }

  .step-heading {
    display: block;
    margin-bottom: 26px;
  }

  .step-index {
    display: inline-block;
    margin-bottom: 12px;
  }

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

  .lesson-title {
    font-size: 25px;
  }

  .step-heading p {
    font-size: 14px;
  }

  .step-grid,
  .plan-layout {
    gap: 28px;
  }

  .action-list li {
    padding: 14px 0;
  }

  .image-button {
    border-radius: 6px;
  }

  .zoom-icon {
    right: 8px;
    bottom: 8px;
    width: 32px;
    height: 32px;
    opacity: 1;
    transform: none;
  }

  .completion {
    grid-template-columns: 1fr;
    margin: 40px 0 58px;
    padding: 22px;
  }

  .lesson-footer-nav {
    grid-template-columns: 1fr;
    margin-bottom: 58px;
  }

  .lesson-footer-nav a.next {
    justify-content: space-between;
    text-align: left;
  }

  .completion-icon {
    width: 46px;
    height: 46px;
  }

  .check-list {
    display: grid;
  }

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

  .lightbox {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .download-band {
    padding: 20px;
  }

  .download-actions {
    display: grid;
  }

  .walkthrough-list {
    margin-top: 38px;
  }

  .walkthrough-item,
  .walkthrough-item + .walkthrough-item {
    padding-top: 38px;
    padding-bottom: 42px;
  }

  .walkthrough-item:first-child {
    padding-top: 0;
  }

  .walkthrough-item h2 {
    font-size: 20px;
  }

  .manual-main {
    width: min(100% - 30px, 1180px);
  }

  .manual-intro {
    padding: 38px 0 34px;
  }

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

  .platform-tabs a {
    min-width: 0;
  }

  .platform-section {
    padding-top: 44px;
  }

  .platform-heading {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }

  .platform-mark {
    width: 46px;
    height: 46px;
  }

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

  .config-tool {
    padding: 20px 16px;
  }

  .config-tool > header {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
  }

  .tool-mark {
    width: 36px;
    height: 36px;
  }

  .config-tool h3 {
    font-size: 19px;
  }

  .code-shell pre {
    padding: 18px 48px 18px 16px;
    font-size: 12px;
  }

  .troubleshooting dl > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .manual-footer-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .manual-footer-nav a {
    justify-content: space-between;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
