:root {
  --ink: #182421;
  --ink-soft: #32413d;
  --muted: #6f7d78;
  --muted-light: #96a19d;
  --paper: #f2f4ef;
  --surface: #ffffff;
  --surface-soft: #f7f8f4;
  --line: #dfe5df;
  --line-strong: #cbd5cd;
  --forest: #16302c;
  --forest-deep: #10231f;
  --teal: #0b7e6c;
  --teal-light: #65d9c0;
  --teal-wash: #e8f5f0;
  --coral: #ee735a;
  --coral-wash: #fff0eb;
  --gold: #f2c768;
  --shadow-sm: 0 6px 24px rgba(19, 35, 31, 0.06);
  --shadow-lg: 0 28px 60px rgba(14, 36, 31, 0.14);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", ui-sans-serif, sans-serif;
  --font-display: "PingFang SC", "Microsoft YaHei UI", "Noto Sans SC", ui-sans-serif, sans-serif;
  --topbar-height: 74px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 94% 2%, rgba(11, 126, 108, 0.06), transparent 26rem),
    var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

::selection {
  color: var(--forest-deep);
  background: #a9efdc;
}

:focus-visible {
  outline: 3px solid rgba(11, 126, 108, 0.42);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--forest);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.reading-progress {
  position: fixed;
  z-index: 1600;
  inset: 0 0 auto;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal-light), var(--gold));
  box-shadow: 0 0 16px rgba(101, 217, 192, 0.55);
}

.topbar {
  position: sticky;
  z-index: 1200;
  top: 0;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid rgba(203, 213, 205, 0.78);
  background: rgba(248, 249, 246, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #d6f8ef;
  background: var(--forest);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.7;
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.brand-copy strong {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-trigger,
.header-feedback {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.header-feedback {
  gap: 7px;
  padding: 0 12px;
  border-color: #cfe1d9;
  color: #28675a;
  background: #eef7f3;
  font-size: 12px;
  font-weight: 650;
}

.header-feedback svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.search-trigger {
  min-width: 240px;
  padding: 0 10px 0 13px;
  text-align: left;
}

.search-trigger svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.search-trigger span {
  flex: 1;
  color: var(--muted);
  font-size: 13px;
}

.search-trigger kbd {
  padding: 3px 6px;
  border: 1px solid #d9e0da;
  border-bottom-color: #c8d0ca;
  border-radius: 6px;
  color: #7b8782;
  background: #f7f8f5;
  font-family: var(--font-sans);
  font-size: 10px;
  line-height: 1.2;
}

.search-trigger:hover,
.header-feedback:hover {
  transform: translateY(-1px);
}

.search-trigger:hover {
  border-color: #bccac1;
  background: #fff;
}

.header-feedback:hover {
  border-color: #a7cfc1;
  background: #e5f4ee;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--ink);
  transition: transform 180ms ease;
}

.app-shell {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  align-items: start;
}

.sidebar {
  position: sticky;
  z-index: 900;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 22px 26px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(247, 248, 245, 0.72);
  scrollbar-width: thin;
  scrollbar-color: #c9d2cc transparent;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.sidebar-count {
  color: #95a09b;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.toc {
  display: grid;
  gap: 3px;
}

.toc-link {
  position: relative;
  display: grid;
  grid-template-columns: 35px 1fr;
  align-items: center;
  min-height: 40px;
  padding: 6px 9px;
  border-radius: 9px;
  color: #5f6d68;
  font-size: 13px;
  font-weight: 560;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.toc-link::before {
  position: absolute;
  left: -22px;
  width: 3px;
  height: 18px;
  border-radius: 0 99px 99px 0;
  background: transparent;
  content: "";
}

.toc-link > span {
  color: #98a39f;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  letter-spacing: 0.04em;
}

.toc-link:hover {
  color: var(--ink);
  background: #eef1ec;
}

.toc-link.is-active {
  color: var(--ink);
  background: #e9efea;
  font-weight: 690;
}

.toc-link.is-active::before {
  background: var(--teal);
}

.toc-link.is-active > span {
  color: var(--teal);
}

.completion-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.completion-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.completion-copy strong {
  color: var(--ink);
  font-size: 12px;
}

.completion-track {
  height: 5px;
  margin: 11px 0 10px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf0ec;
}

.completion-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #47c3a8);
  transition: width 320ms ease;
}

.completion-card p {
  margin: 0;
  color: #84908b;
  font-size: 10px;
  line-height: 1.55;
}

.quick-links {
  display: grid;
  gap: 3px;
  padding-top: 4px;
}

.quick-links-title {
  margin: 0 0 7px;
  padding: 0 9px;
  color: #929d98;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.1em;
}

.quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border-radius: 8px;
  color: #687671;
  font-size: 12px;
  text-decoration: none;
}

.quick-links a:hover {
  color: var(--teal);
  background: #edf3ef;
}

.quick-links a span:last-child {
  font-size: 14px;
}

.sidebar-footnote {
  margin: auto 8px 0;
  color: #a0aaa6;
  font-size: 9px;
  line-height: 1.5;
}

.nav-scrim {
  display: none;
}

.main-content {
  min-width: 0;
  padding: 0 42px 56px;
}

.hero,
.guide-section,
.closing-panel,
.site-footer {
  width: 100%;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(310px, 0.72fr);
  gap: 56px;
  margin-top: 32px;
  padding: 58px 54px 52px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #f6fbf8;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #1b3934 0%, var(--forest) 55%, #102720 100%);
  background-size: 46px 46px, 46px 46px, auto;
  box-shadow: 0 24px 70px rgba(14, 35, 30, 0.16);
}

.hero::before {
  position: absolute;
  z-index: -1;
  right: -90px;
  bottom: -160px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(255, 255, 255, 0.025),
    0 0 0 104px rgba(255, 255, 255, 0.02);
  content: "";
}

.hero-glow {
  position: absolute;
  z-index: -1;
  top: -120px;
  left: 38%;
  width: 420px;
  height: 300px;
  border-radius: 50%;
  background: rgba(48, 180, 151, 0.15);
  filter: blur(80px);
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: #a9c6be;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 22px;
  height: 1px;
  background: var(--teal-light);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 5.2vw, 70px);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 1.13;
}

.hero h1 em {
  color: #a7ead8;
  font-style: normal;
  font-weight: 570;
}

.hero-intro {
  max-width: 650px;
  margin: 24px 0 0;
  color: #bbcfc9;
  font-size: 15px;
  line-height: 1.85;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
}

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

.button-primary {
  color: var(--forest-deep);
  background: #eaf7f2;
}

.button-primary:hover {
  background: #fff;
}

.button-ghost {
  border-color: rgba(231, 247, 241, 0.25);
  color: #dcebe7;
  background: rgba(255, 255, 255, 0.045);
}

.button-ghost:hover {
  border-color: rgba(231, 247, 241, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
  color: #91aca4;
  font-size: 11px;
}

.hero-facts span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.hero-facts b {
  color: #e3f1ed;
  font-size: 14px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.route-card {
  align-self: stretch;
  padding: 24px;
  border: 1px solid rgba(206, 239, 230, 0.16);
  border-radius: 20px;
  background: rgba(9, 29, 25, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.route-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(217, 241, 235, 0.12);
}

.route-head > span {
  color: #eaf7f3;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.04em;
}

.route-head small {
  color: #809d95;
  font-size: 10px;
}

.route-list {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.route-list li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  padding: 13px 0;
}

.route-list li:not(:last-child)::after {
  position: absolute;
  top: 40px;
  bottom: -6px;
  left: 13px;
  width: 1px;
  background: rgba(137, 199, 186, 0.22);
  content: "";
}

.route-dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(121, 208, 189, 0.28);
  border-radius: 50%;
  color: #9ce2d1;
  background: #183c35;
  font-size: 9px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.route-list strong {
  display: block;
  color: #e7f2ef;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.route-list small {
  display: block;
  margin-top: 2px;
  color: #829e96;
  font-size: 10px;
  line-height: 1.55;
}

.route-note {
  display: flex;
  gap: 10px;
  margin-top: 11px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.route-note svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: #79cbb8;
}

.route-note p {
  margin: 0;
  color: #99b1aa;
  font-size: 10px;
  line-height: 1.6;
}

.guide-section {
  position: relative;
  margin-top: 28px;
  padding: 42px 44px 46px;
  scroll-margin-top: calc(var(--topbar-height) + 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 8px 34px rgba(23, 44, 38, 0.035);
}

.guide-section[id] {
  scroll-margin-top: calc(var(--topbar-height) + 24px);
}

.intro-section {
  padding-bottom: 38px;
  border-color: #d9e4dc;
  background:
    linear-gradient(135deg, rgba(232, 245, 240, 0.65), rgba(255, 255, 255, 0.8) 42%),
    #fff;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-kicker i {
  width: 34px;
  height: 1px;
  background: #a5d6c9;
}

.intro-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin: 15px 0 28px;
}

.intro-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.1vw, 38px);
  font-weight: 710;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.intro-heading p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  flex: none;
  padding-bottom: 4px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 680;
  text-decoration: none;
}

.text-link span {
  margin-left: 5px;
  transition: transform 160ms ease;
}

.text-link:hover span {
  display: inline-block;
  transform: translateX(3px);
}

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

.preflight-item {
  display: flex;
  gap: 13px;
  padding: 17px;
  border: 1px solid #e3e9e3;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.7);
}

.preflight-icon {
  width: 36px;
  height: 36px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 10px;
  color: var(--teal);
  background: var(--teal-wash);
}

.preflight-icon svg {
  width: 19px;
  height: 19px;
}

.preflight-item h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.5;
}

.preflight-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.plain-note {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 15px;
  margin-top: 22px;
  padding: 15px 17px;
  border: 1px solid #dce7df;
  border-radius: 12px;
  background: var(--surface-soft);
}

.plain-note strong {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.plain-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.warning-note {
  border-color: #f0dfd4;
  background: #fff9f5;
}

.warning-note strong {
  color: #a54b38;
}

.section-header {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.chapter-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 54px;
  border: 1px solid #dce8e1;
  border-radius: 14px;
  color: var(--teal);
  background:
    linear-gradient(145deg, rgba(232, 245, 240, 0.9), rgba(247, 249, 246, 0.92));
  font-size: 21px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.section-title p {
  margin: 0 0 2px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 740;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 35px);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.3;
}

.complete-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: #fff;
  font-size: 10px;
  font-weight: 630;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.complete-button > span:first-child {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid #cbd5ce;
  border-radius: 50%;
  background: #fff;
  transition: background 160ms ease, border-color 160ms ease;
}

.complete-button > span:first-child::after {
  position: absolute;
  top: 4px;
  left: 3.5px;
  width: 8px;
  height: 4px;
  border-bottom: 1.5px solid transparent;
  border-left: 1.5px solid transparent;
  content: "";
  transform: rotate(-45deg);
}

.complete-button:hover {
  color: var(--teal);
  border-color: #bdd7ce;
}

.complete-button[aria-pressed="true"] {
  color: #087661;
  border-color: #badfd4;
  background: #edf9f4;
}

.complete-button[aria-pressed="true"] > span:first-child {
  border-color: var(--teal);
  background: var(--teal);
}

.complete-button[aria-pressed="true"] > span:first-child::after {
  border-color: #fff;
}

.section-lead {
  max-width: 830px;
  margin: 24px 0 0;
  color: #55645f;
  font-size: 15px;
  line-height: 1.8;
}

.steps {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: block;
  padding: 30px 0;
  scroll-margin-top: calc(var(--topbar-height) + 30px);
  border-top: 1px solid #e8ece8;
}

.step:first-child {
  padding-top: 4px;
  border-top: 0;
}

.step:last-child {
  padding-bottom: 0;
}

@supports selector(:has(*)) {
  .step:has(.media-grid) {
    display: grid;
    grid-template-columns: minmax(230px, 0.78fr) minmax(0, 1.22fr);
    gap: 42px;
    align-items: start;
  }
}

.step-body {
  min-width: 0;
}

.step-label {
  display: inline-block;
  margin-bottom: 7px;
  color: #8b9893;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.1em;
}

.step h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 710;
  letter-spacing: -0.025em;
  line-height: 1.5;
}

.step p {
  margin: 0 0 12px;
  color: #64716d;
  font-size: 13px;
  line-height: 1.8;
}

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

.step a,
.faq-answer a,
.choice-card a {
  color: var(--teal);
  font-weight: 620;
  text-decoration: underline;
  text-decoration-color: rgba(11, 126, 108, 0.25);
  text-underline-offset: 3px;
}

.step a:hover,
.faq-answer a:hover,
.choice-card a:hover {
  text-decoration-color: currentColor;
}

.step code {
  padding: 2px 5px;
  border: 1px solid #e3e8e3;
  border-radius: 5px;
  color: #31514a;
  background: #f4f7f3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.91em;
}

.inline-action {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--teal-wash);
  font-size: 11px !important;
}

.ipa-download-panel {
  grid-column: 1 / -1;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid #dbe7e0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(82, 198, 168, 0.1), transparent 18rem),
    linear-gradient(145deg, #f8fbf8, #eef5f1);
}

.ipa-download-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #dce6df;
}

.ipa-download-kicker {
  color: var(--teal);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.ipa-download-head h4 {
  margin: 5px 0 4px;
  color: #2e4039;
  font-size: 20px;
  font-weight: 710;
  letter-spacing: -0.035em;
}

.ipa-download-head p {
  margin: 0;
  color: #75827d;
  font-size: 10px;
  line-height: 1.7;
}

.ipa-download-head > a {
  min-height: 36px;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border-radius: 8px;
  color: #fff;
  background: var(--forest);
  font-size: 9px;
  font-weight: 660;
  text-decoration: none;
}

.ipa-download-head > a:hover {
  background: #23443e;
}

.ipa-download-head > a svg {
  width: 14px;
  height: 14px;
}

.ipa-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.ipa-method-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid #dce5df;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.84);
}

.ipa-method-scan {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(240, 249, 245, 0.92));
}

.ipa-method-label {
  color: #438476;
  font-size: 8px;
  font-weight: 730;
  letter-spacing: 0.08em;
}

.ipa-method-card h5 {
  margin: 6px 0 13px;
  color: #34463f;
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.ipa-method-steps {
  display: grid;
  gap: 9px;
  margin: 0 0 15px;
  padding: 0;
  list-style: none;
}

.ipa-method-steps li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.ipa-method-steps li > span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid #d4e5dd;
  border-radius: 50%;
  color: var(--teal);
  background: #edf7f3;
  font-size: 8px;
  font-weight: 720;
}

.ipa-method-steps p {
  margin: 0;
  color: #62716b;
  font-size: 10px;
  line-height: 1.7;
}

.ipa-method-steps a {
  color: var(--teal);
  font-weight: 650;
}

.ipa-page-figure,
.ipa-qr-figure {
  margin: auto 0 0;
}

.ipa-page-figure .shot-button {
  height: 210px;
  padding: 8px;
}

.ipa-qr-figure {
  width: min(330px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.ipa-qr-figure .shot-button {
  height: 330px;
  padding: 8px;
}

.ipa-scan-hint {
  margin: 9px 0 0 !important;
  color: #8a9691 !important;
  font-size: 8px !important;
  text-align: center;
}

.media-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shot {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dfe5df;
  border-radius: 13px;
  background: #f8f9f6;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.shot:hover {
  border-color: #c4d4cb;
  box-shadow: 0 12px 24px rgba(21, 48, 41, 0.08);
}

.shot-wide {
  grid-column: 1 / -1;
}

.shot-button {
  position: relative;
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  border: 0;
  background:
    linear-gradient(45deg, rgba(22, 48, 44, 0.025) 25%, transparent 25%, transparent 75%, rgba(22, 48, 44, 0.025) 75%),
    linear-gradient(45deg, rgba(22, 48, 44, 0.025) 25%, transparent 25%, transparent 75%, rgba(22, 48, 44, 0.025) 75%),
    #f5f7f4;
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
  cursor: zoom-in;
}

.shot-button::after {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(18, 45, 40, 0.74);
  content: "＋";
  font-size: 14px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.shot-button:hover::after,
.shot-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(20, 43, 37, 0.08);
}

.shot-wide .shot-button {
  height: 235px;
}

.shot.compact-shot {
  max-width: 420px;
}

.shot.compact-shot .shot-button {
  height: 315px;
}

.shot figcaption {
  display: flex;
  gap: 7px;
  padding: 9px 11px;
  border-top: 1px solid #e3e8e3;
  color: #798681;
  background: #fff;
  font-size: 10px;
  line-height: 1.5;
}

.shot figcaption span {
  flex: none;
  color: var(--teal);
  font-weight: 730;
  font-variant-numeric: tabular-nums;
}

.completion-strip {
  margin-top: 26px;
  padding: 13px 15px;
  border-left: 3px solid var(--teal);
  color: #56726a;
  background: #f1f8f5;
  font-size: 11px;
}

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

.choice-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
}

.choice-tag {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 99px;
  color: var(--teal);
  background: #e4f3ed;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.choice-card h3 {
  margin: 14px 0 7px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.choice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.subguide-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 35px;
  padding: 18px;
  border: 1px solid #dfe9e2;
  border-radius: 13px;
  background: #f6faf7;
}

.subguide-heading > span {
  display: inline-flex;
  min-width: 46px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #fff;
  background: var(--forest);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.subguide-heading h3 {
  margin: 0 0 3px;
  font-size: 17px;
  font-weight: 710;
}

.subguide-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.compact-steps {
  margin-top: 25px;
}

.code-block {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 12px 44px 12px 13px;
  overflow-x: auto;
  border: 1px solid #dce7e1;
  border-radius: 9px;
  background: #f5f8f5;
}

.code-block code {
  min-width: max-content;
  padding: 0;
  border: 0;
  color: #28584f;
  background: transparent;
  font-size: 10px;
}

.copy-code {
  position: absolute;
  top: 6px;
  right: 7px;
  padding: 4px 6px;
  border: 1px solid #d4e1da;
  border-radius: 5px;
  color: #60756f;
  background: #fff;
  font-size: 8px;
  cursor: pointer;
}

.copy-code:hover {
  color: var(--teal);
  border-color: #9fcbbf;
}

.code-block.secondary {
  background: #fafafa;
}

.small-note {
  color: #8b9692 !important;
  font-size: 11px !important;
}

.faq-section {
  background:
    radial-gradient(circle at 100% 0, rgba(238, 115, 90, 0.045), transparent 26rem),
    #fff;
}

.faq-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 11px;
  color: var(--muted);
  font-size: 10px;
}

.faq-tools button {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 9px;
  cursor: pointer;
}

.faq-tools button:hover {
  color: var(--teal);
  border-color: #b9d7cd;
}

.faq-list {
  display: grid;
  gap: 9px;
}

.faq-list details {
  border: 1px solid #e0e6e0;
  border-radius: 12px;
  background: #fff;
  scroll-margin-top: calc(var(--topbar-height) + 30px);
  transition: border-color 160ms ease, background 160ms ease;
}

.search-highlight {
  animation: search-flash 1.6s ease;
}

@keyframes search-flash {
  0%,
  100% {
    outline: 0 solid rgba(11, 126, 108, 0);
    outline-offset: 0;
  }
  18%,
  55% {
    outline: 3px solid rgba(11, 126, 108, 0.34);
    outline-offset: 6px;
  }
}

.faq-list details[open] {
  border-color: #cbdcd2;
  background: #fbfcfa;
}

.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 48px 17px 17px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 670;
  line-height: 1.55;
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #7c8984;
  border-bottom: 1.5px solid #7c8984;
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform 180ms ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-list summary > span {
  display: inline-flex;
  width: 29px;
  height: 22px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--coral);
  background: var(--coral-wash);
  font-size: 8px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.faq-answer {
  padding: 0 20px 18px 59px;
}

.faq-answer p {
  margin: 0 0 10px;
  color: #65726e;
  font-size: 13px;
  line-height: 1.8;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-shot {
  max-width: 420px;
  margin-top: 17px;
}

.faq-shot .shot-button {
  height: 340px;
}

.faq-reinstall-shot {
  max-width: 680px;
  margin-top: 16px;
}

.faq-reinstall-shot .shot-button {
  height: 165px;
  padding: 9px;
}

.public-feedback-block {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #e4e9e4;
}

.public-feedback-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
}

.public-feedback-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal);
  font-size: 8px;
  font-weight: 740;
  letter-spacing: 0.1em;
}

.public-feedback-eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(11, 126, 108, 0.09);
}

.public-feedback-head h3 {
  margin: 6px 0 5px;
  color: #2e3f39;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.public-feedback-head > div:first-child > p {
  max-width: 660px;
  margin: 0;
  color: #7b8782;
  font-size: 10px;
  line-height: 1.7;
}

.public-feedback-tools {
  display: flex;
  flex: none;
  align-items: center;
  gap: 7px;
}

.public-feedback-tools > span {
  color: #8e9994;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.public-feedback-tools button,
.public-feedback-tools a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid #d9e3dc;
  border-radius: 7px;
  color: #66756f;
  background: #fff;
  font-size: 8px;
  font-weight: 630;
  text-decoration: none;
  cursor: pointer;
}

.public-feedback-tools button:hover {
  color: var(--teal);
  border-color: #b9d6cc;
}

.public-feedback-tools a {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}

.public-feedback-tools a:hover {
  background: #21443e;
}

.public-feedback-list {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}

.public-feedback-loading {
  min-height: 115px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed #dce4de;
  border-radius: 11px;
  color: #8b9691;
  background: #fafbf9;
  font-size: 9px;
}

.public-feedback-loading span {
  width: 20px;
  height: 20px;
  border: 2px solid #dce6df;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: publicFeedbackSpin 700ms linear infinite;
}

.public-feedback-loading p {
  margin: 0;
}

@keyframes publicFeedbackSpin {
  to {
    transform: rotate(360deg);
  }
}

.public-feedback-item {
  overflow: hidden;
  border: 1px solid #e0e6e1;
  border-radius: 11px;
  background: #fff;
  transition: border-color 160ms ease, background 160ms ease;
}

.public-feedback-item[open] {
  border-color: #c9ddd3;
  background: #fbfcfa;
}

.public-feedback-item summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 14px 45px 14px 15px;
  list-style: none;
  cursor: pointer;
}

.public-feedback-item summary::-webkit-details-marker {
  display: none;
}

.public-feedback-item summary::after {
  position: absolute;
  top: 50%;
  right: 17px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #7f8c86;
  border-bottom: 1.5px solid #7f8c86;
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform 180ms ease;
}

.public-feedback-item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.public-question-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.public-question-top strong {
  min-width: 0;
  overflow: hidden;
  color: #3d4e47;
  font-size: 11px;
  font-weight: 660;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-feedback-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 99px;
  color: #147263;
  background: #e7f5ef;
  font-size: 7px;
  font-weight: 680;
}

.public-feedback-badge::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.public-question-preview {
  margin: 3px 0 0;
  overflow: hidden;
  color: #89948f;
  font-size: 8px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-feedback-date {
  flex: none;
  color: #9aa49f;
  font-size: 7px;
  font-variant-numeric: tabular-nums;
}

.public-feedback-answer {
  padding: 0 16px 15px;
}

.public-question-description {
  margin: 0;
  padding: 10px 11px;
  border: 1px solid #e5eae5;
  border-radius: 8px;
  color: #66756f;
  background: #f7f9f6;
  font-size: 9px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.public-answer-content {
  position: relative;
  margin-top: 8px;
  padding: 12px 13px 12px 35px;
  border-radius: 8px;
  color: #3d5a51;
  background: #eaf6f1;
}

.public-answer-content::before {
  position: absolute;
  top: 13px;
  left: 14px;
  width: 11px;
  height: 11px;
  border: 1.5px solid #2d8e7b;
  border-radius: 50%;
  content: "✓";
  color: #2d8e7b;
  font-size: 7px;
  line-height: 11px;
  text-align: center;
}

.public-answer-content > span {
  display: block;
  color: #4f8f80;
  font-size: 7px;
  font-weight: 720;
  letter-spacing: 0.07em;
}

.public-answer-content p {
  margin: 3px 0 0;
  font-size: 9px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.public-feedback-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 7px 0 0;
  color: #98a29d;
  font-size: 7px;
  font-variant-numeric: tabular-nums;
}

.public-feedback-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
  padding: 18px;
  border: 1px dashed #dce4de;
  border-radius: 11px;
  background: #fafbf9;
}

.public-feedback-empty[hidden] {
  display: none;
}

.public-feedback-empty > span {
  width: 36px;
  height: 36px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 10px;
  color: #88a69c;
  background: #edf4f0;
}

.public-feedback-empty svg {
  width: 18px;
  height: 18px;
}

.public-feedback-empty strong {
  display: block;
  color: #62716b;
  font-size: 10px;
  font-weight: 650;
}

.public-feedback-empty p {
  margin: 2px 0 0;
  color: #909b96;
  font-size: 8px;
}

.public-feedback-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 2px 0;
  color: #909b96;
  font-size: 8px;
}

.public-feedback-privacy svg {
  width: 12px;
  height: 12px;
  flex: none;
}

.feedback-number {
  color: #b65742;
  border-color: #f0ddd6;
  background: linear-gradient(145deg, #fff5f1, #fffaf7);
}

.gateway-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid #d6e8e0;
  border-radius: 99px;
  color: #558077;
  background: #f1f8f4;
  font-size: 9px;
  font-weight: 640;
}

.gateway-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(11, 126, 108, 0.09);
}

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

.gateway-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 27px;
  border-radius: 18px;
  color: #f4fbf8;
  background:
    radial-gradient(circle at 94% 8%, rgba(93, 207, 181, 0.17), transparent 15rem),
    linear-gradient(135deg, #1b3b34, var(--forest));
}

.gateway-main::after {
  position: absolute;
  z-index: -1;
  right: -80px;
  bottom: -120px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255, 255, 255, 0.02);
  content: "";
}

.gateway-main-head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.gateway-icon {
  width: 42px;
  height: 42px;
  display: grid;
  flex: none;
  place-items: center;
  border: 1px solid rgba(136, 226, 207, 0.19);
  border-radius: 11px;
  color: #a2e7d6;
  background: rgba(83, 190, 165, 0.1);
}

.gateway-icon svg {
  width: 20px;
  height: 20px;
}

.gateway-main-head span:not(.gateway-icon) {
  color: #7eb6aa;
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.08em;
}

.gateway-main-head h3 {
  margin: 2px 0 0;
  color: #ecf7f4;
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.gateway-main > p {
  max-width: 650px;
  margin: 14px 0 0;
  color: #a5bcb5;
  font-size: 11px;
  line-height: 1.75;
}

.gateway-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 19px 0 0;
  padding: 0;
  list-style: none;
}

.gateway-steps li {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(220, 241, 235, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.gateway-steps li > span {
  display: block;
  margin-bottom: 5px;
  color: #65bdab;
  font-size: 8px;
  font-weight: 740;
}

.gateway-steps strong {
  display: block;
  color: #d9e9e4;
  font-size: 10px;
  font-weight: 650;
}

.gateway-steps small {
  display: block;
  margin-top: 2px;
  color: #7f9b93;
  font-size: 8px;
  line-height: 1.55;
}

.gateway-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px;
  margin-top: 20px;
}

.gateway-primary {
  min-height: 40px;
  color: var(--forest);
  background: #e9f7f2;
  font-size: 10px;
}

.gateway-primary:hover {
  background: #fff;
}

.gateway-primary svg {
  width: 16px;
  height: 16px;
}

.gateway-actions .text-link {
  color: #99c9bd;
  font-size: 9px;
}

.gateway-actions .text-link:hover {
  color: #d5eee7;
}

.closing-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  padding: 38px 42px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #f7fbf9;
  background:
    radial-gradient(circle at 90% 10%, rgba(101, 217, 192, 0.2), transparent 20rem),
    var(--forest);
}

.closing-panel::after {
  position: absolute;
  z-index: -1;
  right: 22%;
  bottom: -140px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.closing-panel p {
  margin: 0 0 9px;
  color: #7fcfbd;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.closing-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.closing-panel > div > span {
  color: #9eb5ae;
  font-size: 11px;
}

.closing-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 8px;
}

.button-light {
  color: var(--forest);
  background: #f3faf6;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 3px 0;
  color: #8d9994;
  font-size: 9px;
}

.back-to-top {
  position: fixed;
  z-index: 800;
  right: 24px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d3dcd6;
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(20, 43, 36, 0.12);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

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

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

.back-to-top:hover {
  background: #fff;
}

.search-modal,
.lightbox {
  position: fixed;
  z-index: 1500;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: 9vh 18px 24px;
}

.search-modal[hidden],
.lightbox[hidden] {
  display: none;
}

.search-backdrop,
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 25, 22, 0.58);
  cursor: default;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.search-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: 76vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  background: #fbfcfa;
  box-shadow: 0 30px 80px rgba(5, 18, 14, 0.3);
}

.search-panel-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-bottom: 1px solid #e0e6e1;
}

.search-panel-head > svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--teal);
}

.search-panel-head input {
  width: 100%;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.search-panel-head input::placeholder {
  color: #99a39f;
}

.search-close {
  flex: none;
  padding: 5px 7px;
  border: 1px solid #d9e1db;
  border-radius: 6px;
  color: #7d8984;
  background: #f7f8f5;
  font-size: 9px;
  cursor: pointer;
}

.search-help {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 16px;
  border-bottom: 1px solid #edf0ed;
  color: #8c9893;
  background: #f8f9f6;
  font-size: 9px;
}

.search-help kbd {
  padding: 1px 4px;
  border: 1px solid #d8dfda;
  border-radius: 4px;
  color: #6f7b76;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 8px;
}

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

.search-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 30px;
  color: #8b9792;
  text-align: center;
}

.search-empty > span {
  display: block;
  margin-bottom: 6px;
  color: #b0bbb6;
  font-size: 38px;
  line-height: 1;
}

.search-empty p {
  margin: 0;
  font-size: 11px;
}

.search-result {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 0;
  border-radius: 9px;
  color: var(--ink-soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.search-result:hover,
.search-result.is-selected {
  background: #edf4f0;
}

.result-index {
  min-width: 37px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 740;
}

.result-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.5;
}

.result-copy small {
  display: block;
  margin-top: 2px;
  color: #7d8984;
  font-size: 9px;
  line-height: 1.5;
}

.result-copy mark {
  color: inherit;
  background: #d6f2e8;
}

.result-arrow {
  color: #99a49f;
  font-size: 15px;
}

.search-no-results {
  padding: 40px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

.lightbox {
  z-index: 1700;
  place-items: center;
  padding: 20px;
}

.lightbox-panel {
  position: relative;
  width: min(1100px, 94vw);
  height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: #0e1b18;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.lightbox-toolbar {
  height: 48px;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #a6b6b0;
  font-size: 10px;
}

.lightbox-toolbar button {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #d8e4e0;
  background: rgba(255, 255, 255, 0.05);
  font-size: 9px;
  cursor: pointer;
}

.lightbox-panel > img {
  width: 100%;
  min-height: 0;
  flex: 1;
  padding: 18px 64px;
  object-fit: contain;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.02) 75%),
    #0b1613;
  background-size: 18px 18px;
}

.lightbox-panel > p {
  flex: none;
  margin: 0;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #c5d3ce;
  font-size: 10px;
  text-align: center;
}

.lightbox-nav {
  position: absolute;
  z-index: 2;
  top: calc(50% - 10px);
  width: 38px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #eff7f4;
  background: rgba(9, 22, 18, 0.68);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.toast {
  position: fixed;
  z-index: 1900;
  bottom: 24px;
  left: 50%;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  background: rgba(17, 41, 35, 0.94);
  box-shadow: var(--shadow-lg);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript-note {
  position: fixed;
  z-index: 2000;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 10px;
  border: 1px solid #ead7bc;
  border-radius: 8px;
  color: #735b3e;
  background: #fff9ed;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 1180px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 1300;
    top: var(--topbar-height);
    left: 0;
    width: min(310px, 86vw);
    height: calc(100vh - var(--topbar-height));
    padding-top: 25px;
    background: #f8f9f6;
    box-shadow: 18px 0 50px rgba(9, 24, 19, 0.18);
    transform: translateX(-105%);
    transition: transform 230ms cubic-bezier(0.2, 0.85, 0.3, 1);
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .nav-scrim {
    position: fixed;
    z-index: 1250;
    inset: var(--topbar-height) 0 0;
    display: block;
    border: 0;
    background: rgba(8, 22, 18, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  body.nav-open .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: block;
  }

  body.nav-open .menu-toggle span:first-child {
    transform: translateY(3.25px) rotate(45deg);
  }

  body.nav-open .menu-toggle span:nth-child(2) {
    transform: translateY(-3.25px) rotate(-45deg);
  }

  .main-content {
    padding-right: 30px;
    padding-left: 30px;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 48px 40px 40px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .route-card {
    max-width: 640px;
  }

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

  .step:has(.media-grid) {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .guide-section {
    padding: 36px 34px 40px;
  }

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

  .feedback-gateway-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --topbar-height: 66px;
  }

  .topbar {
    padding: 0 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .brand-copy {
    display: grid;
    gap: 0;
  }

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

  .brand-copy small {
    font-size: 9px;
  }

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

  .search-trigger span,
  .search-trigger kbd,
  .header-feedback span {
    display: none;
  }

  .header-feedback {
    width: 40px;
    justify-content: center;
    padding: 0;
  }

  .main-content {
    padding: 0 14px 42px;
  }

  .hero,
  .guide-section,
  .closing-panel {
    border-radius: 20px;
  }

  .hero {
    margin-top: 14px;
    padding: 38px 24px 28px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .hero-intro {
    font-size: 13px;
  }

  .hero-actions .button {
    flex: 1 1 180px;
  }

  .hero-facts {
    gap: 12px;
  }

  .route-card {
    padding: 19px;
  }

  .guide-section {
    margin-top: 14px;
    padding: 28px 20px 32px;
  }

  .intro-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .intro-heading h2 {
    font-size: 28px;
  }

  .plain-note {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .section-header {
    grid-template-columns: 55px minmax(0, 1fr);
    gap: 13px;
  }

  .chapter-number {
    width: 52px;
    height: 47px;
    border-radius: 12px;
    font-size: 17px;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .complete-button {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 1px;
  }

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

  .ipa-download-panel {
    padding: 18px;
    border-radius: 13px;
  }

  .ipa-download-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .ipa-download-head > a {
    align-self: stretch;
    justify-content: center;
  }

  .ipa-method-grid {
    grid-template-columns: 1fr;
  }

  .ipa-page-figure .shot-button {
    height: 190px;
  }

  .ipa-qr-figure .shot-button {
    height: 320px;
  }

  .shot-wide {
    grid-column: auto;
  }

  .shot-button,
  .shot-wide .shot-button {
    height: 270px;
  }

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

  .gateway-status {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .public-feedback-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .public-feedback-tools {
    width: 100%;
    flex-wrap: wrap;
  }

  .public-feedback-tools a {
    margin-left: auto;
  }

  .public-question-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .public-question-top strong {
    white-space: normal;
  }

  .gateway-main {
    padding: 22px;
  }

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

  .gateway-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gateway-primary {
    width: 100%;
  }

  .faq-answer {
    padding-left: 20px;
  }

  .faq-shot {
    max-width: 100%;
  }

  .faq-reinstall-shot {
    max-width: 100%;
  }

  .faq-reinstall-shot .shot-button {
    height: 135px;
  }

  .site-footer {
    flex-direction: column;
    gap: 4px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .closing-panel {
    margin-top: 14px;
    padding: 30px 24px;
  }
}

@media (max-width: 480px) {
  .brand-copy strong {
    max-width: 98px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero h1 {
    letter-spacing: -0.06em;
  }

  .hero-facts span {
    font-size: 10px;
  }

  .guide-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .shot-button,
  .shot-wide .shot-button {
    height: 230px;
    padding: 9px;
  }

  .shot.compact-shot .shot-button,
  .faq-shot .shot-button {
    height: 300px;
  }

  .search-modal {
    padding-top: 18px;
  }

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

  .search-help span:last-child {
    display: none;
  }

  .lightbox {
    padding: 10px;
  }

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

  .lightbox-panel > img {
    padding: 10px 4px 54px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 53px;
    width: 42px;
    height: 42px;
    transform: none;
  }

  .lightbox-prev {
    left: 18px;
  }

  .lightbox-next {
    right: 18px;
  }
}

@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;
  }
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  :root {
    --topbar-height: 0px;
  }

  body {
    color: #111;
    background: #fff;
    font-size: 10pt;
  }

  .topbar,
  .sidebar,
  .nav-scrim,
  .reading-progress,
  .back-to-top,
  .search-modal,
  .lightbox,
  .toast,
  .hero-actions,
  .complete-button,
  .faq-tools,
  .closing-actions {
    display: none !important;
  }

  .app-shell {
    display: block;
  }

  .main-content {
    padding: 0;
  }

  .hero,
  .guide-section,
  .closing-panel {
    max-width: none;
    margin: 0 0 8mm;
    color: #111;
    background: #fff;
    box-shadow: none;
  }

  .hero {
    padding: 0 0 8mm;
    border-radius: 0;
    border-bottom: 1px solid #bbb;
  }

  .hero h1,
  .hero h1 em,
  .hero-intro,
  .eyebrow,
  .hero-facts,
  .hero-facts b {
    color: #111;
  }

  .hero::before,
  .hero-glow,
  .route-card {
    display: none;
  }

  .guide-section {
    padding: 0;
    border: 0;
    break-inside: auto;
  }

  .section-header {
    break-after: avoid;
  }

  .step {
    break-inside: avoid;
  }

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

  .shot-button,
  .shot-wide .shot-button {
    height: 65mm;
  }

  .shot-button::after {
    display: none;
  }

  .faq-list details {
    break-inside: avoid;
  }

  .faq-list details > .faq-answer {
    display: block !important;
  }
}
