:root {
  color-scheme: light;
  --ink: #202629;
  --muted: #60696d;
  --line: #dfe3df;
  --paper: #f5f6f2;
  --panel: #ffffff;
  --brand: #bb2532;
  --brand-dark: #941d29;
  --brand-soft: #faecee;
  --soft: #f1f3f0;
  --accent: #36735a;
  --warn: #996020;
  --danger: #a12528;
  --code: #303a3e;
  --nav-height: 76px;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-height) + 24px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans CJK SC", "Noto Sans CJK JP", "Noto Sans CJK KR", "Noto Sans Arabic", "Noto Sans Devanagari", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
button, select, input { font: inherit; }
button, select, a, summary { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
button { touch-action: manipulation; }
a { color: var(--brand); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid #b76b39; outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; inset-inline-start: 16px; z-index: 50; padding: 8px 14px; background: var(--panel); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.page { max-width: 1440px; margin: 0 auto; padding: 0 48px 64px; }

/* Brand and persistent navigation. */
.langbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: var(--nav-height);
  background: rgba(245, 246, 242, .96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; direction: ltr; }
.brand picture { display: block; }
.brand img { display: block; width: 210px; height: auto; max-width: 100%; object-fit: contain; }
.nav-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.nav-controls select { height: 40px; max-width: 100%; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--ink); padding: 6px 10px; font-size: 13px; line-height: 1.4; }
.chapter-select { width: 260px; }
.language-select { width: 118px; direction: ltr; }

.manual-initializing .hero, .manual-initializing .guide-intro, .manual-initializing .quick-section { visibility: hidden; }
.quick-grid:empty { min-height: 260px; }

/* A calm introduction, with the two devices kept visually distinct. */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 48px; margin-top: 28px; padding: 32px 44px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.eyebrow { margin: 0 0 16px; color: var(--brand); font-size: 11px; font-weight: 750; letter-spacing: 2.3px; }
h1 { max-width: 760px; margin: 0 0 20px; font-size: clamp(34px, 3.5vw, 50px); font-weight: 720; line-height: 1.25; letter-spacing: -1.2px; text-wrap: balance; }
.subtitle { display: block; max-width: 800px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; white-space: normal; overflow: visible; text-overflow: clip; }
.device-overview { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.device-card { display: flex; align-items: flex-start; gap: 18px; min-width: 0; padding: 0; }
.device-card > div { min-width: 0; }
.device-code { display: flex; align-items: center; justify-content: center; flex: 0 0 46px; height: 46px; color: var(--brand); font-size: 28px; line-height: 1; font-weight: 750; letter-spacing: -1.2px; }
.device-card h2 { margin: 0 0 5px; padding: 0; border: 0; font-size: 17px; line-height: 1.45; }
.device-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.meta { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; color: var(--muted); font-size: 11px; letter-spacing: .15px; }
.meta span { display: inline-flex; gap: 5px; align-items: center; }
.meta bdi { font-variant-numeric: tabular-nums; }
.guide-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 18px 4px 0; color: var(--muted); font-size: 13px; }
.guide-intro p { max-width: 850px; margin: 0; }
.guide-intro a { flex-shrink: 0; font-weight: 650; text-decoration: none; }
.top-section { margin-top: 34px; }
.top-section > h2 { margin: 0 0 18px; font-size: 22px; line-height: 1.5; font-weight: 700; letter-spacing: -.3px; }
h3 { margin: 26px 0 10px; font-size: 19px; line-height: 1.5; color: var(--code); }
p { margin: 0 0 14px; }
ul, ol { padding-inline-start: 1.5em; margin: 10px 0 20px; }
li { margin: 7px 0; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; counter-reset: quick; padding: 0; margin: 0; }
.quick-grid li { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; margin: 0; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; counter-increment: quick; }
.quick-grid li::before { content: counter(quick, decimal-leading-zero); position: absolute; top: 24px; inset-inline-end: 22px; color: #859087; font-size: 11px; font-weight: 650; letter-spacing: .6px; }
.quick-grid h3 { margin: 0 0 10px; font-size: 16px; line-height: 1.5; }
.quick-grid p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.quick-action { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; margin-top: auto; padding-block: 6px; font-size: 13px; font-weight: 700; text-decoration: none; }
.quick-action:hover { text-decoration: underline; }

/* The contents stays beside the reading column, with its own scroll area. */
.manual-layout { display: grid; grid-template-columns: 274px minmax(0, 1fr); align-items: start; gap: 30px; margin-top: 40px; }
.manual-aside { position: sticky; top: calc(var(--nav-height) + 24px); min-width: 0; }
.manual-main, #content { min-width: 0; }
.toc-section { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 8px; margin: 0; padding: 20px 16px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.toc-section > h2 { grid-column: 1 / -1; margin: 0 4px 16px; padding: 0; border: 0; font-size: 18px; line-height: 1.5; font-weight: 700; }
#searchLabel { display: block; grid-column: 1 / -1; margin: 0 4px 7px; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.6; }
.toc-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-column: 1 / -1; align-items: start; gap: 0 8px; min-width: 0; }
#tocSearch { width: 100%; min-width: 0; height: 42px; padding: 9px 11px; color: var(--ink); background: var(--paper); border: 1px solid #d8ded9; border-radius: 7px; font-size: 13px; line-height: 1.5; }
#tocSearch::placeholder { color: var(--muted); opacity: 1; }
#tocSearch:focus { border-color: var(--brand); }
#clearSearch { min-width: 40px; min-height: 42px; padding: 8px; color: var(--brand); background: var(--panel); border: 1px solid var(--line); border-radius: 7px; font-size: 12px; line-height: 1.5; }
#clearSearch:hover { background: var(--brand-soft); border-color: #d7b5aa; }
#clearSearch:disabled { cursor: default; color: var(--muted); opacity: .55; }
#searchStatus { grid-column: 1 / -1; margin: 8px 4px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
#searchStatus:empty { display: none; }
.toc { display: flex; flex-direction: column; grid-column: 1 / -1; gap: 3px; min-width: 0; max-height: calc(100vh - var(--nav-height) - 242px); max-height: calc(100dvh - var(--nav-height) - 242px); margin-top: 14px; padding: 12px 3px 4px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #acb7b0 transparent; border-top: 1px solid var(--line); }
.toc a { display: flex; align-items: center; flex-shrink: 0; min-height: 42px; padding: 9px 10px; border-inline-start: 3px solid transparent; border-radius: 6px; color: var(--muted); font-size: 13px; line-height: 1.6; text-decoration: none; }
.toc a:hover { color: var(--brand-dark); background: var(--soft); }
.toc a.is-active, .toc a[aria-current="true"], .toc a[aria-current="location"] { border-inline-start-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 650; }
.toc a:focus-visible { outline-offset: -3px; }
.toc-section .load-state { grid-column: 1 / -1; }

/* Each chapter is an independent reading card. */
.manual-section { min-width: 0; margin: 0; padding: 34px 36px 32px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; scroll-margin-top: 0; }
.manual-section + .manual-section { margin-top: 22px; }
.manual-section > h2 { display: flex; align-items: flex-start; gap: 20px; margin: 0 0 26px; padding: 0 0 24px; border-bottom: 1px solid var(--line); font-size: 28px; line-height: 1.4; font-weight: 700; letter-spacing: -.5px; }
.chapter-number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 42px; min-height: 40px; padding: 0; color: var(--brand); font-size: 30px; line-height: 1.3; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -1px; direction: ltr; }
.chapter-title { min-width: 0; padding-top: 1px; }
.manual-section > .body { max-width: 78ch; }
.body p { margin: 0 0 18px; }
.body p:empty { display: none; }
.body strong { color: var(--code); }
.manual-section > :last-child, .body > :last-child { margin-bottom: 0; }
.steps { max-width: 82ch; counter-reset: steps; list-style: none; margin: 24px 0; padding: 0; }
.steps > li { position: relative; counter-increment: steps; margin: 0 0 16px; padding: 2px 0 16px; padding-inline-start: 46px; border-bottom: 1px solid var(--line); }
.steps > li:last-child { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.steps > li::before { content: counter(steps); position: absolute; inset-inline-start: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--brand); font-size: 13px; font-weight: 750; }
.steps h3 { margin: 0 0 6px; font-size: 17px; }
.steps p { margin: 0 0 8px; }

/* Images and tables scroll within the card, never the whole page. */
.screens-note, .image-context { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.screens-note { padding-inline-start: 12px; border-inline-start: 2px solid var(--line); }
.shot-row { display: flex; align-items: flex-start; gap: 14px; width: 100%; max-width: 100%; min-width: 0; margin: 20px 0 22px; padding: 2px 2px 12px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #acb7b0 transparent; scroll-snap-type: inline proximity; }
.shot-row:empty { display: none; }
.portal-figure { max-width: 650px; margin: 28px auto; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.portal-figure img { display: block; width: 100%; height: auto; border-radius: 8px; background: #0d1821; }
.portal-figure > figcaption { margin: 12px 0 8px; font-size: 13px; line-height: 1.65; color: var(--muted); overflow-wrap: anywhere; }
.portal-figure .shot-zoom-btn { width: auto; padding-inline: 16px; }
.shot-card { flex: 0 0 170px; min-width: 0; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; scroll-snap-align: start; }
.shot-card h3 { margin: 0 0 11px; min-height: 2.8em; font-size: 13px; line-height: 1.4; font-weight: 650; white-space: normal; overflow: visible; color: var(--code); }
.shot-img { display: block; width: 144px; height: auto; max-width: 100%; margin: 0 auto; border: 6px solid #211a17; border-radius: 16px; background: #211a17; object-fit: contain; }
.shot-zoom-btn { display: block; width: 100%; min-height: 36px; margin-top: 12px; padding: 6px; border: 1px solid #d8dfd9; border-radius: 6px; background: var(--panel); color: var(--ink); font-size: 12px; font-weight: 650; line-height: 1.4; }
.shot-zoom-btn:hover { color: var(--brand); border-color: #a3ada6; }
.photo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
.photo-row .shot-card { width: auto; min-width: 0; }
.photo-row .shot-img { width: 100%; border: 0; border-radius: 7px; background: var(--soft); }
.photo-row .shot-card h3 { min-height: 0; }
.table-wrap { max-width: 100%; min-width: 0; margin: 26px 0; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--line); border-radius: 6px; scrollbar-width: thin; scrollbar-color: #acb7b0 transparent; }
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; background: var(--panel); font-size: 14px; line-height: 1.7; }
th, td { min-width: 130px; padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; overflow-wrap: anywhere; }
th { background: var(--soft); color: var(--code); font-weight: 650; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
.notice { margin: 24px 0; padding: 18px 20px; border-inline-start: 3px solid var(--brand); border-radius: 0 4px 4px 0; background: var(--soft); font-size: 14px; line-height: 1.8; }
.success { border-inline-start-color: var(--accent); }
.warning { border-inline-start-color: var(--warn); }
.danger { border-inline-start-color: var(--danger); }
.kbd { display: inline-block; min-width: 1.8em; padding: 1px 6px; border: 1px solid #c8b7ab; border-bottom-width: 2px; border-radius: 5px; background: #fff; text-align: center; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.card h3 { margin-top: 0; }

/* Reference material is available without interrupting the chapter flow. */
.reference-panel { min-width: 0; margin-top: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.reference-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; padding: 22px 28px; color: var(--code); list-style: none; font-size: 18px; font-weight: 700; line-height: 1.5; }
.reference-panel > summary::-webkit-details-marker { display: none; }
.reference-panel > summary::after { content: ""; flex: 0 0 9px; width: 9px; height: 9px; margin-inline-end: 3px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg) translateY(-2px); }
.reference-panel[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.reference-panel > summary:hover { color: var(--brand); }
.reference-panel > summary:focus-visible { outline-offset: -5px; }
.reference-panel > :not(summary) { width: auto; max-width: calc(100% - 56px); margin-inline: 28px; }
.reference-panel > :last-child { margin-bottom: 26px; }
.load-state { margin: 18px 0; color: var(--muted); font-size: 14px; }
.load-state:empty { display: none; }
.retry-button { margin-inline-start: 12px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--brand); }
footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer p { margin: 0; }
footer a { flex-shrink: 0; text-decoration: none; }

body.modal-open { overflow: hidden; }
.manual-lightbox { position: fixed; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(29, 20, 15, .82); }
.manual-lightbox.open { display: flex; }
.manual-lightbox-panel { display: flex; flex-direction: column; max-width: 1160px; width: 100%; max-height: 94vh; max-height: 94dvh; padding: 18px; background: var(--paper); border-radius: 12px; box-shadow: 0 24px 80px rgba(0, 0, 0, .3); }
.manual-lightbox-head { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.manual-lightbox-title { font-size: 15px; font-weight: 650; }
.manual-lightbox-close, .manual-lightbox-toggle { flex-shrink: 0; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); font-size: 13px; }
.manual-lightbox-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.manual-lightbox-toggle[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.manual-lightbox-viewport { min-width: 0; min-height: 0; max-height: calc(94vh - 130px); max-height: calc(94dvh - 130px); overflow: auto; overscroll-behavior: contain; direction: ltr; border-radius: 7px; background: var(--soft); }
.manual-lightbox-img { display: block; max-width: 100%; max-height: calc(94vh - 130px); max-height: calc(94dvh - 130px); width: auto; height: auto; margin: 0 auto; border-radius: 7px; object-fit: contain; }
.manual-lightbox.native-size .manual-lightbox-img { max-width: none; max-height: none; margin: 0; border-radius: 0; }
[dir="rtl"] .eyebrow { text-align: right; }
[dir="rtl"] .notice { border-radius: 8px 0 0 8px; }
[dir="rtl"] .manual-section { line-height: 1.95; }
[dir="rtl"] h1, [dir="rtl"] .manual-section > h2 { letter-spacing: 0; }

/* Hardware is composited from the original shell photo and the manual's
   localized reference screen. The caption identifies the older interface. */
.hero-copy {
  min-width: 0;
  align-self: center;
}
.hero-visual {
  align-self: center;
  justify-self: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 8px 0 0;
  min-height: 322px;
}
.hero-device {
  position: relative;
  width: 231.04px;
  height: 272.01px;
  margin-inline: auto;
  direction: ltr;
}
.hero-hardware {
  position: relative;
  width: 304px;
  height: 357.9px;
  overflow: hidden;
  border-radius: 72px;
  transform: scale(.76);
  transform-origin: top left;
  isolation: isolate;
}
.hero-shell {
  position: absolute;
  top: -104.485226px;
  left: -220.317263px;
  width: 756.454121px;
  height: auto;
  max-width: none;
  pointer-events: none;
}
.hero-screen {
  position: absolute;
  top: 30.258165px;
  left: 31.203733px;
  width: 239.2286px;
  height: 297.381px;
  overflow: hidden;
  border-radius: 40px;
  background: #000;
}
.hero-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.hero-visual figcaption {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 260px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.hero-visual figcaption bdi {
  flex: 0 0 auto;
  white-space: nowrap;
  padding-top: 1px;
  color: var(--brand);
  font-weight: 750;
  letter-spacing: .5px;
}
.hero-visual figcaption span {
  min-width: 0;
}
.quick-icon {
  display: flex;
  align-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 15px;
  color: var(--brand);
}
.quick-icon .visual-icon {
  width: 32px;
  height: 32px;
}
.quick-action::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
}
.quick-grid li:focus-within {
  border-color: var(--brand);
}
.toc-section {
  border-color: #242d31;
  border-radius: 6px;
  background: #242d31;
  color: #eef2ef;
}
.toc-section > h2 {
  margin-bottom: 18px;
  color: #f7f8f6;
  font-size: 17px;
}
#tocSearch {
  border-color: #53615f;
  background: #303c40;
  color: #f5f6f2;
}
#tocSearch::placeholder {
  color: #c0cac5;
}
#tocSearch:focus {
  border-color: #f0a3ab;
}
#clearSearch {
  border-color: #53615f;
  background: #303c40;
  color: #eef2ef;
}
#clearSearch:hover {
  border-color: #c1858c;
  background: #3c484a;
}
#searchStatus, .toc-section .load-state {
  color: #c7d0cb;
}
.toc {
  border-top-color: #465250;
  scrollbar-color: #65736d transparent;
}
.toc a {
  align-items: flex-start;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 3px;
  color: #c3cdc7;
  font-size: 13px;
  line-height: 1.7;
}
.toc a:hover {
  background: #303c40;
  color: #fff;
}
.toc a.is-active, .toc a[aria-current="location"] {
  border-inline-start-color: #ed6f7a;
  background: #394447;
  color: #fff;
  font-weight: 650;
}
.toc-number {
  flex: 0 0 20px;
  padding-top: 1px;
  color: #a9b7ae;
  font-size: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.toc-label {
  min-width: 0;
}
.toc a.is-active .toc-number {
  color: #f49ba4;
}
.manual-section:focus-visible {
  outline: 0;
}
.manual-section:focus-visible > h2 {
  border-bottom-color: var(--brand);
  box-shadow: 0 1px 0 var(--brand);
}
.table-wrap tbody tr:nth-child(even) {
  background: #f7f9f6;
}
.steps > li::before {
  border: 1px solid #dbe3dc;
  border-radius: 6px;
  background: #f4f7f3;
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .quick-grid li {
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  }
  .quick-grid li:hover {
    transform: translateY(-3px);
    border-color: #adbdb2;
    box-shadow: 0 10px 24px rgb(29 44 34 / 6%);
  }
}

:lang(hi) h1, :lang(hi) .manual-section > h2 {
  letter-spacing: 0;
}

/* Plain-language buying guidance stays next to the setup routes. */
.intro-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.buying-guide { margin-top: 28px; padding: 30px 34px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.buying-heading h2 { margin: 0 0 10px; font-size: 25px; line-height: 1.4; letter-spacing: -.4px; }
.buying-heading p { max-width: 88ch; margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.buying-options { margin: 0; }
.buying-row { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 1.4fr); gap: 12px 30px; padding: 19px 0; border-top: 1px solid var(--line); }
.buying-row dt { min-width: 0; font-size: 15px; font-weight: 700; }
.buying-row dd { min-width: 0; margin: 0; font-size: 14px; }
.buying-row dd p { margin: 0 0 5px; color: var(--muted); }
.buying-row dd a { display: inline-block; min-height: 32px; padding-block: 3px; font-size: 13px; font-weight: 650; text-decoration: none; }
.buying-checks { margin-top: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.buying-checks summary { min-height: 52px; padding: 13px 18px; font-size: 14px; font-weight: 700; }
.buying-checks ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 34px; margin: 4px 24px 20px; padding-inline-start: 20px; }
.buying-checks li { min-width: 0; margin: 0; padding-inline-start: 4px; }
.buying-checks h3 { margin: 0 0 6px; font-size: 14px; }
.buying-checks p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.buying-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 24px; }
.purchase-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; max-width: 100%; padding: 10px 19px; border-radius: 6px; background: var(--brand); color: #fff; text-align: center; font-size: 14px; font-weight: 700; text-decoration: none; }
.purchase-button:hover { background: var(--brand-dark); color: #fff; }
.support-link { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 650; }
.support-address { font-size: 11px; font-weight: 400; }
.buying-guide:focus-visible { outline: 0; }
.buying-guide:focus-visible h2 { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.buying-actions p { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 12px; }
.toc-group-title { grid-column: 1 / -1; margin: 14px 8px 4px; padding-top: 12px; border-top: 1px solid #465250; color: #e3e9e5; font-size: 11px; line-height: 1.7; font-weight: 700; }
.toc-group-title:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.chapter-nav { display: flex; align-items: stretch; gap: 20px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.chapter-link { display: flex; flex-direction: column; flex: 0 1 50%; justify-content: flex-start; min-width: 0; min-height: 48px; text-decoration: none; }
.chapter-link span { margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.chapter-link strong { font-size: 13px; line-height: 1.7; font-weight: 650; }
.chapter-link--next { margin-inline-start: auto; text-align: end; }
.chapter-link:hover strong { text-decoration: underline; }
@media (max-width: 700px) {
  .intro-actions { justify-content: flex-start; }
  .buying-guide { margin-top: 20px; padding: 24px 20px; }
  .buying-heading h2 { font-size: 22px; }
  .buying-row { grid-template-columns: minmax(0, 1fr); gap: 7px; padding-block: 17px; }
  .buying-checks ol { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-inline: 20px; }
  .buying-actions { align-items: flex-start; flex-direction: column; }
  .buying-actions p { flex-basis: auto; }
  .chapter-nav { flex-direction: column; gap: 16px; }
  .chapter-link { flex-basis: auto; }
  .chapter-link--next { margin-inline-start: 0; text-align: start; }
}
@media print {
  .intro-actions, .buying-actions, .chapter-nav { display: none; }
  .buying-guide { padding: 18px 0; border: 0; }
  .toc-group-title, .toc-group-title[hidden] { display: block !important; color: #303a3e; border-color: #dfe3df; break-after: avoid; }
}

@media (max-width: 1120px) {
  .quick-grid:empty { min-height: 440px; }
  .page { padding-inline: 28px; }
  .manual-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 22px; }
  .manual-section { padding: 26px; }
  .hero { padding: 34px 34px 26px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .quick-grid li { padding: 20px; }
}
@media (max-width: 980px), (max-height: 600px) {
  .manual-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 32px; }
  .manual-aside { position: static; }
  .toc-section { padding: 22px; }
  .toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 3px 12px; max-height: 330px; }
  .toc a { align-items: flex-start; }
  .toc-search, #tocSearch { min-width: 0; }
  .quick-grid li { padding: 20px 18px; }
  .device-card { padding: 0; gap: 14px; }
}
@media (max-width: 700px) {
  .hero-visual { display: none; }
  .page { padding-inline: 22px; }
  .brand picture { display: block; }
.brand img { width: 170px; }
  .chapter-select { width: 190px; }
  .language-select { width: 108px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 30px 26px 24px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid li { padding: 18px; }
  .quick-grid li::before { top: 21px; inset-inline-end: 18px; }
  .quick-grid p { margin-bottom: 5px; }
  .quick-action { margin-top: 4px; }
  .guide-intro { display: block; }
  .guide-intro a { display: inline-block; margin-top: 8px; }
}
@media (max-width: 600px) {
  :root { --nav-height: 104px; --radius: 12px; }
  .page { padding: 0 14px 40px; }
  .langbar { display: grid; grid-template-columns: minmax(0, 1fr) 98px; grid-template-rows: 36px 36px; gap: 8px 12px; padding-block: 12px; }
  .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .brand picture { display: block; }
.brand img { width: 140px; }
  .nav-controls { display: contents; }
  .nav-controls select { height: 36px; padding: 5px 8px; font-size: 12px; }
  .chapter-select { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; }
  .language-select { grid-column: 2; grid-row: 1; width: 98px; }
  .hero { margin-top: 16px; padding: 26px 22px 22px; border-radius: 6px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.6px; margin-bottom: 13px; }
  h1 { font-size: 29px; line-height: 1.35; margin-bottom: 14px; letter-spacing: -.5px; }
  .subtitle { font-size: 14px; line-height: 1.8; }
  .device-overview { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 24px; padding-top: 22px; }
  .device-card { padding: 0; }
  .device-code { flex-basis: 38px; height: 44px; font-size: 17px; border-radius: 10px; }
  .device-card h2 { font-size: 16px; }
  .device-card p { font-size: 13px; }
  .meta { gap: 5px 14px; margin-top: 17px; font-size: 11px; }
  .guide-intro { padding: 16px 2px 0; font-size: 12px; }
  .top-section { margin-top: 28px; }
  .top-section > h2 { font-size: 20px; margin-bottom: 14px; }
  .quick-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .quick-grid li { padding: 14px 16px; }
  .quick-grid li::before { top: 20px; inset-inline-end: 16px; }
  .quick-grid h3 { padding-inline-end: 26px; font-size: 16px; }
  .quick-grid p { margin-bottom: 4px; font-size: 13px; line-height: 1.65; }
  .quick-grid h3 { margin-bottom: 5px; }
  .quick-action { min-height: 32px; padding-block: 3px; }
  .quick-icon { position: absolute; top: 16px; inset-inline-start: 16px; width: 28px; height: 28px; margin: 0; }
  .quick-grid li { padding-inline-start: 58px; }
  .quick-icon .visual-icon { width: 28px; height: 28px; }
  .manual-layout { margin-top: 28px; gap: 20px; }
  .toc-section { padding: 20px 16px 12px; }
  .toc-section > h2 { font-size: 18px; }
  #tocSearch { font-size: 16px; }
  .toc { display: flex; max-height: 304px; margin-top: 12px; }
  .toc a { align-items: center; min-height: 44px; font-size: 13px; }
  .manual-section { padding: 24px 20px; }
  .manual-section + .manual-section { margin-top: 16px; }
  .manual-section > h2 { gap: 12px; margin-bottom: 22px; padding-bottom: 18px; font-size: 21px; line-height: 1.45; letter-spacing: -.3px; }
  .chapter-number { min-width: 28px; min-height: 30px; padding: 0; font-size: 23px; }
  .chapter-title { padding-top: 0; }
  .body, .steps { font-size: 15px; }
  .steps { margin-block: 22px; }
  .steps > li { padding-inline-start: 40px; }
  .steps h3 { font-size: 16px; }
  .shot-row { gap: 10px; }
  .shot-card { flex-basis: 156px; padding: 10px; }
  .shot-img { width: 132px; }
  .shot-zoom-btn { min-height: 44px; }
  .photo-row { grid-template-columns: minmax(0, 1fr); }
  .photo-row .shot-img { max-width: 420px; }
  .table-wrap table { min-width: 480px; font-size: 13px; }
  th, td { padding: 11px 13px; }
  .notice { padding: 14px 16px; font-size: 13px; }
  .reference-panel { margin-top: 16px; }
  .reference-panel > summary { min-height: 66px; padding: 20px; font-size: 16px; }
  .reference-panel > :not(summary) { max-width: calc(100% - 40px); margin-inline: 20px; }
  .reference-panel > :last-child { margin-bottom: 20px; }
  footer { display: block; margin-top: 32px; }
  footer a { display: inline-block; margin-top: 12px; }
  .manual-lightbox { padding: 12px; }
  .manual-lightbox-panel { padding: 12px; }
  .manual-lightbox-title { font-size: 13px; }
  .manual-lightbox-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .manual-lightbox-tools { align-self: flex-end; max-width: 100%; }
  .manual-lightbox-toggle { min-width: 0; flex-shrink: 1; }
  .manual-lightbox-viewport, .manual-lightbox-img { max-height: calc(94vh - 180px); max-height: calc(94dvh - 180px); }
}
@media (max-width: 360px) {
  .page { padding-inline: 12px; }
  .hero { padding-inline: 18px; }
  h1 { font-size: 26px; }
  .manual-section { padding-inline: 16px; }
  .manual-section > h2 { font-size: 20px; }
  .device-card { gap: 12px; padding: 0; }
  .toc-section { padding-inline: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button, summary { transition: color .15s, border-color .15s, background-color .15s; }
}
@media print {
  body { background: #fff; font-size: 11pt; }
  .page { max-width: none; padding: 0; }
  .langbar, .skip-link, .shot-zoom-btn, .manual-lightbox, .load-state, .quick-action, #searchLabel, #tocSearch, #clearSearch, #searchStatus, footer a { display: none; }
  .hero { display: block; box-shadow: none; margin-top: 0; break-inside: avoid; }
  .hero-visual { display: none; }
  .toc-section > h2, #tocSearch, #clearSearch, .toc-number { color: #202629 !important; }
  a { color: inherit; }
  .manual-layout { display: block; }
  .manual-aside { position: static; margin-bottom: 24px; }
  .toc-section { display: block; background: #fff; color: #202629; border-color: #dfe3df; }
  .toc { display: block; max-height: none; overflow: visible; columns: 2; }
  .toc a, .toc a[hidden] { display: flex !important; break-inside: avoid; color: #303a3e !important; background: transparent !important; }
  .shot-row { overflow: visible; flex-wrap: wrap; }
  .table-wrap { overflow: visible; }
  .table-wrap table { min-width: 0; }
  .manual-section { padding: 20px 0; border: 0; border-radius: 0; box-shadow: none; break-before: auto; }
  .manual-section > h2 { break-after: avoid; }
  .notice, .shot-card, .device-card, .steps > li { break-inside: avoid; }
  .quick-grid { display: block; }
  .quick-grid li { break-inside: avoid; margin-bottom: 12px; }
}

/* Localized illustrations use intrinsic sizes and remain readable when zoomed. */
#clock-calendar .portal-figure, #sleep .portal-figure { max-width: 560px; margin-inline: auto; }
#clock-calendar .portal-figure > img[src$="/screen.png"] {
  width: min(100%, 288px); margin-inline: auto; border: 10px solid #070a0c;
  border-radius: 24px; box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
}

/* The diagrams are text and local vectors, with no image or font requests. */
.visual-guide { width: 100%; min-width: 0; margin: 28px 0; padding: 22px; border: 0; border-radius: 6px; background: #f4f6f3; }
.visual-guide > figcaption { margin: 0 0 18px; color: var(--code); font-size: 17px; line-height: 1.5; font-weight: 750; }
.visual-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 14px; list-style: none; margin: 0; padding: 0; }
.visual-grid[data-count="2"], .visual-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.visual-node { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; margin: 0; padding: 18px 16px; border: 1px solid #e0e5e0; border-radius: 5px; background: var(--panel); }
.visual-symbol { position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.visual-icon { display: block; width: 36px; height: 36px; }
.visual-number { position: absolute; top: -7px; inset-inline-end: -7px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: white; font-size: 11px; line-height: 1; font-weight: 750; }
.visual-copy { min-width: 0; width: 100%; }
.visual-node h3 { margin: 0 0 8px; font-size: 15px; line-height: 1.5; font-weight: 700; color: var(--ink); }
.visual-node p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--muted); }
.visual-note { margin: 17px 0 0 !important; padding-top: 13px; border-top: 1px solid #e0e5e0; font-size: 13px; line-height: 1.75; color: var(--code); }
.visual-guide--flow .visual-node:not(:last-child)::after, .visual-guide--timeline .visual-node:not(:last-child)::after { content: ""; position: absolute; top: 34px; inset-inline-end: -11px; z-index: 1; width: 7px; height: 7px; border-top: 2px solid #af8b77; border-inline-end: 2px solid #af8b77; transform: rotate(45deg); }
.visual-guide--flow .visual-grid[data-count="3"] .visual-node:nth-child(3n)::after,
.visual-guide--timeline .visual-grid[data-count="3"] .visual-node:nth-child(3n)::after,
.visual-guide--flow .visual-grid[data-count="4"] .visual-node:nth-child(2n)::after,
.visual-guide--timeline .visual-grid[data-count="4"] .visual-node:nth-child(2n)::after,
.visual-guide--flow .visual-grid[data-count="5"] .visual-node:nth-child(3n)::after,
.visual-guide--timeline .visual-grid[data-count="5"] .visual-node:nth-child(3n)::after { display: none; }
[dir="rtl"] .visual-guide--flow .visual-node::after, [dir="rtl"] .visual-guide--timeline .visual-node::after { transform: rotate(-45deg); }
.visual-guide--compare .visual-symbol { background: #e7efe8; color: #36735a; }
.visual-guide--checklist .visual-symbol { background: #eaf1ec; color: #36735a; }
.visual-guide--gesture .visual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.visual-guide--gesture .visual-symbol { border-radius: 50%; background: #e6edf1; color: #456879; }
.visual-guide--timeline .visual-number { background: var(--brand); }
.visual-curve { display: block; width: 100%; height: auto; margin: -4px 0 18px; border-radius: 8px; background: var(--panel); }
@media (max-width: 760px) {
  .visual-guide { padding: 16px; }
  .visual-grid, .visual-grid[data-count="2"], .visual-grid[data-count="4"], .visual-guide--gesture .visual-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .visual-node { flex-direction: row; gap: 14px; padding: 15px 12px; }
  .visual-symbol { width: 42px; height: 42px; margin-bottom: 0; }
  .visual-icon { width: 31px; height: 31px; }
  .visual-guide--flow .visual-node:not(:last-child)::after, .visual-guide--timeline .visual-node:not(:last-child)::after { display: block !important; top: auto; bottom: -10px; inset-inline-end: auto; inset-inline-start: 29px; transform: rotate(135deg); }
  [dir="rtl"] .visual-guide--flow .visual-node:not(:last-child)::after, [dir="rtl"] .visual-guide--timeline .visual-node:not(:last-child)::after { transform: rotate(-135deg); }
  .visual-node h3 { margin-bottom: 5px; }
  .visual-node p { font-size: 13px; }
}
@media print {
  .visual-guide { break-inside: avoid; }
}
