
    :root {
      --bg: #061311;
      --panel: #0a1c18;
      --panel-2: #102923;
      --text: #f4fffb;
      --muted: #b7cbc4;
      --accent: #00d9a7;
      --accent-2: #2ef2c2;
      --line: rgba(255,255,255,.12);
      --warning: #ffd166;
      --danger: #ff7b7b;
      --radius: 18px;
      --shadow: 0 20px 55px rgba(0,0,0,.28);
      --max: 1220px;
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: 92px; }
    body {
      margin: 0;
      color: var(--text);
      background:
        radial-gradient(circle at 85% 5%, rgba(0,217,167,.12), transparent 32rem),
        linear-gradient(180deg, #061311 0%, #081a16 46%, #061311 100%);
      font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    a { color: var(--accent-2); }
    a:hover { color: #fff; }
    img { max-width: 100%; }
    button, input { font: inherit; }
    .skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: #fff; color:#000; padding:10px 14px; border-radius: 8px; }
    .skip-link:focus { top: 12px; }
    .topbar {
      position: sticky; top: 0; z-index: 50;
      backdrop-filter: blur(18px);
      background: rgba(6,19,17,.88);
      border-bottom: 1px solid var(--line);
    }
    .topbar-inner {
      max-width: var(--max); margin: auto; min-height: 74px; padding: 12px 22px;
      display: flex; align-items: center; gap: 20px;
    }
    .brand { display:flex; align-items:center; gap:14px; min-width: 270px; text-decoration:none; color:var(--text); }
    .brand img { width: 150px; height: 42px; object-fit: contain; object-position:left center; }
    .brand span { display:block; font-weight: 750; font-size:.95rem; }
    .brand small { color:var(--muted); display:block; font-size:.76rem; font-weight:500; }
    .top-actions { margin-left:auto; display:flex; gap:10px; align-items:center; }
    .search-wrap { position:relative; }
    .search-wrap input {
      width: min(340px, 34vw); padding: 11px 14px 11px 39px;
      color:var(--text); background:var(--panel); border:1px solid var(--line); border-radius:999px;
      outline:none;
    }
    .search-wrap input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(0,217,167,.16); }
    .search-wrap::before { content:"⌕"; position:absolute; left:15px; top:8px; color:var(--muted); font-size:1.25rem; }
    .button {
      display:inline-flex; align-items:center; justify-content:center; gap:8px;
      min-height: 44px; padding: 10px 16px; border-radius:999px; border:1px solid var(--line);
      background:var(--panel-2); color:var(--text); font-weight:750; text-decoration:none; cursor:pointer;
    }
    .button.primary { background:var(--accent); color:#04120f; border-color:transparent; }
    .button:hover { transform:translateY(-1px); box-shadow:0 8px 22px rgba(0,0,0,.2); }
    .hero { max-width:var(--max); margin:0 auto; padding:72px 22px 38px; display:grid; grid-template-columns:1.05fr .95fr; gap:44px; align-items:center; }
    .eyebrow { color:var(--accent-2); font-weight:800; text-transform:uppercase; letter-spacing:.11em; font-size:.78rem; }
    h1 { font-size:clamp(2.35rem, 6vw, 5rem); line-height:1.02; margin:.45rem 0 1rem; letter-spacing:-.045em; }
    .hero p { color:var(--muted); font-size:1.13rem; max-width:720px; }
    .hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:26px; }
    .hero-note { margin-top:18px; color:var(--muted); font-size:.9rem; }
    .screen-mockup {
      border:1px solid var(--line); border-radius:24px; background:#06110f; box-shadow:var(--shadow); overflow:hidden;
      transform:perspective(1100px) rotateY(-3deg) rotateX(1deg);
    }
    .mock-top { display:flex; align-items:center; gap:9px; padding:12px 14px; background:#0b1e1a; border-bottom:1px solid var(--line); }
    .dot { width:9px; height:9px; border-radius:50%; background:#50645e; }
    .mock-search { margin-left:auto; width:34%; height:22px; border-radius:20px; background:#102923; }
    .mock-body { display:grid; grid-template-columns:32% 68%; min-height:360px; }
    .mock-side { padding:15px; border-right:1px solid var(--line); background:#081815; }
    .mock-logo { width:82%; height:28px; border-radius:8px; background:linear-gradient(90deg,var(--accent),rgba(0,217,167,.18)); margin-bottom:16px; }
    .mock-menu { height:30px; margin:8px 0; border-radius:8px; background:#102923; position:relative; }
    .mock-menu.active { background:rgba(0,217,167,.22); border:1px solid rgba(0,217,167,.46); }
    .mock-menu::after { content:""; position:absolute; left:10px; right:20%; top:11px; height:7px; border-radius:5px; background:#75958b; }
    .mock-main { padding:16px; }
    .mock-player { aspect-ratio:16/9; border-radius:12px; background:linear-gradient(135deg,#112823,#061311); border:1px solid var(--line); display:grid; place-items:center; color:var(--accent); font-size:2.4rem; }
    .mock-now { height:42px; border-radius:10px; background:#102923; margin:12px 0; }
    .mock-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
    .mock-card { height:74px; border-radius:10px; background:#0c211c; border:1px solid var(--line); }
    .layout { max-width:var(--max); margin:auto; padding: 24px 22px 90px; display:grid; grid-template-columns:260px minmax(0,1fr); gap:34px; }
    .toc { position:sticky; top:96px; align-self:start; max-height:calc(100vh - 120px); overflow:auto; padding:15px; border:1px solid var(--line); border-radius:var(--radius); background:rgba(10,28,24,.72); }
    .toc strong { display:block; margin:2px 8px 10px; }
    .toc a { display:block; padding:8px 10px; color:var(--muted); text-decoration:none; border-radius:9px; font-size:.93rem; }
    .toc a:hover, .toc a.active { color:var(--text); background:rgba(0,217,167,.12); }
    main section { scroll-margin-top:94px; }
    .chapter { margin-bottom:34px; padding:clamp(22px,4vw,38px); background:rgba(10,28,24,.74); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 12px 34px rgba(0,0,0,.13); }
    .chapter h2 { margin:0 0 12px; font-size:clamp(1.55rem,3vw,2.2rem); letter-spacing:-.025em; }
    .chapter h3 { margin:28px 0 8px; font-size:1.2rem; }
    .chapter p, .chapter li { color:#d3e2dd; }
    .lead { font-size:1.08rem; color:var(--muted) !important; }
    .grid-2, .grid-3 { display:grid; gap:16px; }
    .grid-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .grid-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .card { padding:18px; border:1px solid var(--line); border-radius:14px; background:#0c211c; }
    .card h3 { margin:0 0 6px; }
    .card p:last-child { margin-bottom:0; }
    .step { display:flex; gap:15px; align-items:flex-start; }
    .step-number { flex:0 0 34px; width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:var(--accent); color:#03110e; font-weight:900; }
    .menu-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
    .menu-item { display:grid; grid-template-columns:46px 1fr; gap:13px; padding:17px; border-radius:14px; border:1px solid var(--line); background:#0b201b; }
    .menu-icon { width:42px; height:42px; border-radius:12px; background:rgba(0,217,167,.13); display:grid; place-items:center; color:var(--accent-2); font-weight:900; font-size:1.2rem; }
    .menu-item h3 { margin:0 0 3px; }
    .menu-item p { margin:0; font-size:.93rem; }
    .callout { margin:18px 0; padding:16px 18px; border-left:4px solid var(--accent); background:rgba(0,217,167,.08); border-radius:0 12px 12px 0; }
    .callout.warning { border-left-color:var(--warning); background:rgba(255,209,102,.08); }
    .callout.danger { border-left-color:var(--danger); background:rgba(255,123,123,.08); }
    .callout strong { color:var(--text); }
    .device-table { width:100%; border-collapse:collapse; overflow:hidden; border-radius:12px; }
    .device-table th, .device-table td { padding:13px 14px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
    .device-table th { background:#102923; color:var(--text); }
    .device-table td { color:#d3e2dd; }
    .badge { display:inline-block; padding:3px 8px; border-radius:999px; background:rgba(0,217,167,.13); color:var(--accent-2); font-size:.78rem; font-weight:800; }
    kbd { display:inline-block; min-width:1.8em; padding:2px 7px; border:1px solid #567068; border-bottom-width:3px; border-radius:6px; background:#102923; color:#fff; text-align:center; font-size:.84em; }
    details { border:1px solid var(--line); background:#0b201b; border-radius:12px; padding:0 16px; margin:10px 0; }
    summary { cursor:pointer; padding:15px 0; font-weight:800; }
    details > div { padding:0 0 16px; color:#d3e2dd; }
    .path { display:inline-block; padding:3px 8px; border-radius:7px; background:#061311; border:1px solid var(--line); color:var(--accent-2); font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:.9em; }
    .footer { border-top:1px solid var(--line); padding:35px 22px 50px; color:var(--muted); text-align:center; }
    .footer img { width:180px; margin-bottom:10px; }
    .no-results { display:none; padding:20px; border:1px dashed var(--line); border-radius:12px; color:var(--muted); }
    .print-only { display:none; }
    @media (max-width: 920px) {
      .hero { grid-template-columns:1fr; padding-top:48px; }
      .screen-mockup { transform:none; max-width:720px; }
      .layout { grid-template-columns:1fr; }
      .toc { position:relative; top:auto; max-height:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
      .toc strong { grid-column:1/-1; }
      .grid-3 { grid-template-columns:1fr 1fr; }
    }
    @media (max-width: 680px) {
      .topbar-inner { flex-wrap:wrap; }
      .brand { min-width:0; }
      .brand span { display:none; }
      .top-actions { width:100%; margin-left:0; }
      .search-wrap { flex:1; }
      .search-wrap input { width:100%; }
      .top-actions .button { padding-inline:12px; }
      .mock-body { grid-template-columns:39% 61%; min-height:260px; }
      .grid-2, .grid-3, .menu-grid { grid-template-columns:1fr; }
      .device-table, .device-table tbody, .device-table tr, .device-table td { display:block; width:100%; }
      .device-table thead { display:none; }
      .device-table tr { border:1px solid var(--line); border-radius:12px; overflow:hidden; margin:10px 0; }
      .device-table td { border-bottom:1px solid var(--line); }
      .device-table td::before { content:attr(data-label); display:block; color:var(--accent-2); font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
      .toc { grid-template-columns:1fr; }
    }
    @media print {
      :root { --text:#111; --muted:#333; --line:#ccc; }
      body { background:#fff; color:#111; font-size:11pt; }
      .topbar, .toc, .hero-actions, .search-wrap, .no-print { display:none !important; }
      .hero { display:block; padding:15mm 0 8mm; }
      .screen-mockup { display:none; }
      .layout { display:block; padding:0; }
      .chapter { break-inside:avoid; background:#fff; color:#111; box-shadow:none; margin:0 0 8mm; }
      .chapter p, .chapter li, .device-table td { color:#222; }
      .card, .menu-item, details { background:#fff; }
      .print-only { display:block; }
      a { color:#111; text-decoration:none; }
      .footer { color:#333; }
    }
  

/* Language selector and QuickStart wizard */
select.button {
  appearance: none;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent-2) 50%), linear-gradient(135deg, var(--accent-2) 50%, transparent 50%);
  background-position: calc(100% - 17px) 19px, calc(100% - 11px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.quickstart-banner {
  max-width: var(--max); margin: 0 auto 12px; padding: 0 22px;
}
.quickstart-banner-inner {
  display:grid; grid-template-columns:1fr auto; gap:18px; align-items:center;
  padding:20px 22px; border:1px solid rgba(0,217,167,.36); border-radius:var(--radius);
  background:linear-gradient(110deg,rgba(0,217,167,.13),rgba(10,28,24,.84)); box-shadow:var(--shadow);
}
.quickstart-banner h2 { margin:0 0 5px; font-size:1.35rem; }
.quickstart-banner p { margin:0; color:var(--muted); }
.wizard[hidden] { display:none !important; }
.wizard {
  position:fixed; inset:0; z-index:2000; display:grid; place-items:center; padding:clamp(12px,3vw,34px);
  background:rgba(2,10,8,.92); backdrop-filter:blur(20px); overflow:auto;
}
.wizard-shell {
  position:relative; width:min(100%,980px); min-height:min(720px,calc(100vh - 40px));
  display:grid; grid-template-rows:auto 1fr auto; overflow:hidden;
  border:1px solid rgba(255,255,255,.16); border-radius:28px;
  background:radial-gradient(circle at 90% 0,rgba(0,217,167,.2),transparent 36rem),#071814;
  box-shadow:0 35px 100px rgba(0,0,0,.6);
}
.wizard-progress { height:7px; background:rgba(255,255,255,.08); }
.wizard-progress span { display:block; width:0; height:100%; background:linear-gradient(90deg,var(--accent),var(--accent-2)); transition:width .3s ease; }
.wizard-header { display:flex; align-items:center; gap:16px; padding:22px 26px 12px; }
.wizard-header img { width:170px; height:48px; object-fit:contain; object-position:left center; }
.wizard-step-count { margin-left:auto; color:var(--muted); font-weight:750; }
.wizard-body { padding:clamp(20px,5vw,58px); display:grid; align-content:center; }
.wizard-panel { animation:wizardIn .28s ease; }
@keyframes wizardIn { from { opacity:0; transform:translateY(10px) scale(.99); } to { opacity:1; transform:none; } }
.wizard-kicker { color:var(--accent-2); text-transform:uppercase; letter-spacing:.11em; font-weight:850; font-size:.78rem; }
.wizard h2 { margin:.45rem 0 .8rem; font-size:clamp(2rem,5vw,4rem); line-height:1.05; letter-spacing:-.035em; }
.wizard-copy { max-width:740px; color:#d3e2dd; font-size:clamp(1rem,2vw,1.2rem); }
.device-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:26px; }
.device-choice {
  display:grid; grid-template-columns:56px 1fr; gap:15px; align-items:center; text-align:left;
  padding:18px; border:1px solid var(--line); border-radius:16px; background:#0c211c; color:var(--text); cursor:pointer;
}
.device-choice:hover,.device-choice:focus-visible,.device-choice.selected { border-color:var(--accent); background:rgba(0,217,167,.12); outline:none; }
.device-choice-icon { width:52px; height:52px; display:grid; place-items:center; border-radius:14px; background:rgba(0,217,167,.15); font-size:1.55rem; }
.device-choice strong { display:block; font-size:1.02rem; }
.device-choice small { display:block; color:var(--muted); margin-top:3px; }
.wizard-tip { margin-top:24px; padding:16px 18px; border-left:4px solid var(--accent); border-radius:0 12px 12px 0; background:rgba(0,217,167,.09); }
.wizard-actions { display:flex; gap:12px; align-items:center; padding:18px 26px 24px; border-top:1px solid var(--line); }
.wizard-actions .skip { margin-left:auto; }
.wizard-close { position:absolute; right:20px; top:20px; z-index:2; width:44px; height:44px; border-radius:50%; border:1px solid var(--line); background:#0c211c; color:#fff; cursor:pointer; font-size:1.25rem; }
.wizard-action-link { color:var(--accent-2); font-weight:800; }
body.wizard-open { overflow:hidden; }
html[dir="rtl"] .brand img, html[dir="rtl"] .wizard-header img { object-position:right center; }
html[dir="rtl"] .top-actions { margin-left:0; margin-right:auto; }
html[dir="rtl"] .search-wrap::before { left:auto; right:15px; }
html[dir="rtl"] .search-wrap input { padding:11px 39px 11px 14px; }
html[dir="rtl"] .device-table th, html[dir="rtl"] .device-table td, html[dir="rtl"] .device-choice { text-align:right; }
html[dir="rtl"] .callout, html[dir="rtl"] .wizard-tip { border-left:0; border-right:4px solid var(--accent); border-radius:12px 0 0 12px; }
html[dir="rtl"] .callout.warning { border-right-color:var(--warning); }
html[dir="rtl"] .callout.danger { border-right-color:var(--danger); }
html[dir="rtl"] .wizard-step-count { margin-left:0; margin-right:auto; }
html[dir="rtl"] .wizard-actions .skip { margin-left:0; margin-right:auto; }
html[dir="rtl"] .wizard-close { right:auto; left:20px; }
@media (max-width:760px) {
  .quickstart-banner-inner { grid-template-columns:1fr; }
  .quickstart-banner-inner .button { width:100%; }
  .device-options { grid-template-columns:1fr; }
  .wizard-shell { min-height:calc(100vh - 20px); border-radius:20px; }
  .wizard-header { padding:17px 18px 8px; }
  .wizard-header img { width:132px; }
  .wizard-body { padding:24px 18px; }
  .wizard-actions { flex-wrap:wrap; padding:14px 18px 18px; }
  .wizard-actions .button { flex:1; min-width:120px; }
  .wizard-actions .skip { order:3; flex-basis:100%; margin:0; }
  .wizard-step-count { padding-right:44px; }
}
@media print { .quickstart-banner,.wizard,.language-picker { display:none !important; } }


/* Inline screenshots: always placed directly under the relevant instruction */
.quick-steps-grid {
  display:block;
  columns:2 320px;
  column-gap:16px;
}
.quick-steps-grid > .step {
  break-inside:avoid;
  margin:0 0 16px;
}
.step-content { min-width:0; width:100%; }
.substep-note {
  margin:18px 0 0 !important;
  padding:12px 14px;
  border-left:3px solid var(--accent);
  border-radius:0 10px 10px 0;
  background:rgba(0,217,167,.07);
  color:var(--muted) !important;
  font-size:.92rem;
}

.guide-shot-group {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:16px;
  align-items:start;
  margin:16px 0 6px;
  min-width:0;
}
.guide-shot-group.mixed {
  grid-template-columns:minmax(0,1.75fr) minmax(220px,.65fr);
}
.guide-shot-group.mixed-three {
  grid-template-columns:minmax(0,1.55fr) minmax(190px,.55fr) minmax(190px,.55fr);
}
.guide-shot-group.desktop-pair {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.guide-shot-group.mobile-pair {
  grid-template-columns:repeat(2,minmax(220px,340px));
  justify-content:center;
}
.guide-shot-group.single-mobile {
  grid-template-columns:minmax(220px,360px);
  justify-content:center;
}
.guide-shot-group.compact-group {
  grid-template-columns:minmax(260px,520px);
  justify-content:center;
}
.guide-shot {
  margin:0;
  min-width:0;
  width:100%;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:#020806;
  box-shadow:0 12px 30px rgba(0,0,0,.2);
}
.guide-shot.mobile { max-width:360px; justify-self:center; }
.guide-shot.compact { max-width:520px; justify-self:center; }
.guide-shot-link {
  display:block;
  position:relative;
  overflow:hidden;
  cursor:zoom-in;
  background:#020806;
}
.guide-shot-link:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:-3px;
}
.guide-shot img {
  display:block;
  width:100%;
  height:auto;
  max-height:680px;
  object-fit:contain;
  object-position:center;
  background:#020806;
  transition:transform .2s ease, opacity .2s ease;
}
.guide-shot-link:hover img,
.guide-shot-link:focus-visible img { transform:scale(1.01); opacity:.96; }
.card .guide-shot img { max-height:480px; }
li > .guide-shot-group { margin-top:14px; }

/* Keep large-screen examples readable instead of squeezing them into three narrow cards */
.screen-layout-grid,
.player-feature-grid { grid-template-columns:1fr; }
.screen-layout-grid .card,
.player-feature-grid .card { min-width:0; }

/* Device controls */
.control-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  padding:0;
  margin:14px 0 0;
  list-style:none;
}
.control-card {
  position:relative;
  min-width:0;
  padding:18px 18px 18px 64px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#0c211c;
  color:#d3e2dd;
}
.control-icon {
  position:absolute;
  left:16px;
  top:15px;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:rgba(0,217,167,.13);
  font-size:1.15rem;
}
html[dir="rtl"] .control-card { padding:18px 64px 18px 18px; }
html[dir="rtl"] .control-icon { left:auto; right:16px; }
html[dir="rtl"] .substep-note {
  border-left:0;
  border-right:3px solid var(--accent);
  border-radius:10px 0 0 10px;
}

/* QuickStart images */
.wizard-shell {
  max-height:calc(100vh - 20px);
  grid-template-rows:auto auto minmax(0,1fr) auto;
}
.wizard-body {
  min-height:0;
  overflow:auto;
  align-content:start;
}
.wizard-screenshot {
  width:100%;
  max-width:920px;
  margin:22px 0 4px;
  padding:10px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  background:#020806;
  box-shadow:0 18px 45px rgba(0,0,0,.28);
}
.wizard-screenshot.mobile { max-width:330px; margin-inline:auto; }
.wizard-screenshot img {
  display:block;
  width:100%;
  height:auto;
  max-height:min(46vh,560px);
  object-fit:contain;
  object-position:center;
  border-radius:12px;
}

/* Full-screen image viewer */
.manual-image-viewer {
  position:fixed;
  inset:0;
  z-index:3500;
  display:none;
  place-items:center;
  padding:clamp(12px,3vw,34px);
  background:rgba(0,0,0,.94);
  backdrop-filter:blur(15px);
}
.manual-image-viewer.open { display:grid; }
.manual-image-viewer-inner {
  position:relative;
  width:min(100%,1600px);
  max-height:calc(100vh - 30px);
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.2);
  border-radius:20px;
  background:#020806;
  box-shadow:0 30px 100px rgba(0,0,0,.7);
}
.manual-image-viewer img {
  display:block;
  width:100%;
  height:100%;
  max-height:calc(100vh - 120px);
  object-fit:contain;
  background:#020806;
}
.manual-image-viewer-caption {
  margin:0;
  padding:13px 70px 15px 18px;
  color:#e6f4ef;
  background:#071814;
}
.manual-image-viewer-close {
  position:absolute;
  z-index:2;
  top:12px;
  right:12px;
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.25);
  border-radius:50%;
  background:rgba(3,17,14,.92);
  color:#fff;
  font-size:1.45rem;
  cursor:pointer;
}
body.image-viewer-open { overflow:hidden; }
html[dir="rtl"] .manual-image-viewer-caption { padding:13px 18px 15px 70px; }
html[dir="rtl"] .manual-image-viewer-close { right:auto; left:12px; }

@media (max-width:920px) {
  .guide-shot-group.mixed,
  .guide-shot-group.mixed-three,
  .guide-shot-group.desktop-pair { grid-template-columns:1fr; }
  .guide-shot-group.mixed .guide-shot.mobile,
  .guide-shot-group.mixed-three .guide-shot.mobile { max-width:340px; }
}
@media (max-width:680px) {
  .quick-steps-grid { columns:1; }
  .control-grid { grid-template-columns:1fr; }
  .guide-shot-group.mobile-pair { grid-template-columns:1fr; }
  .guide-shot.mobile { max-width:330px; }
  .guide-shot img, .card .guide-shot img { max-height:none; }
  .wizard-shell { min-height:calc(100vh - 10px); max-height:calc(100vh - 10px); }
  .wizard-body { padding:22px 16px; }
  .wizard-screenshot { margin-top:18px; padding:7px; border-radius:14px; }
  .wizard-screenshot img { max-height:38vh; border-radius:9px; }
  .manual-image-viewer { padding:8px; }
  .manual-image-viewer-inner { max-height:calc(100vh - 16px); border-radius:14px; }
  .manual-image-viewer img { max-height:calc(100vh - 105px); }
}

@media print {
  .guide-shot-group,
  .guide-shot-group.mixed,
  .guide-shot-group.mixed-three,
  .guide-shot-group.desktop-pair,
  .guide-shot-group.mobile-pair { grid-template-columns:1fr 1fr; gap:8mm; }
  .guide-shot { break-inside:avoid; box-shadow:none; }
  .guide-shot.mobile { max-width:75mm; }
  .guide-shot img { max-height:90mm; }
  .control-grid { grid-template-columns:1fr 1fr; }
  .manual-image-viewer { display:none !important; }
}

/* Prevent long paths and grid min-content widths from pushing mobile pages sideways */
.layout > main,
.layout > .toc,
.chapter,
.card { min-width:0; }
.path,
.chapter a { overflow-wrap:anywhere; word-break:break-word; }

/* Keep the step counter clear of the close button */
.wizard-step-count { padding-right:58px; }
html[dir="rtl"] .wizard-step-count { padding-right:0; padding-left:58px; }

@media (max-width:760px) {
  .wizard-actions {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }
  .wizard-actions .button {
    min-width:0;
    width:100%;
    padding-inline:8px;
  }
  .wizard-actions .skip {
    order:0;
    margin:0;
    flex-basis:auto;
  }
  .wizard-step-count { padding-right:44px; }
  html[dir="rtl"] .wizard-step-count { padding-right:0; padding-left:44px; }
}

/* 2026.07.23: calmer manual layout and compact three-step introduction. */
.hero-product-shot {
  margin:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:#020806;
  box-shadow:var(--shadow);
}
.hero-product-shot img {
  display:block;
  width:100%;
  height:auto;
  max-height:430px;
  object-fit:cover;
  object-position:top center;
}

.visual-details {
  margin-top:22px;
  padding:0 16px;
  border-color:rgba(255,255,255,.1);
  background:rgba(6,19,17,.7);
}
.visual-details summary {
  color:var(--accent-2);
  font-size:.92rem;
}
.visual-details-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  padding:0 0 16px;
}
.visual-details-grid .guide-shot-group {
  display:block;
  margin:0;
}
.visual-details-grid .guide-shot {
  height:100%;
  border-radius:10px;
  box-shadow:none;
}
.visual-details-grid .guide-shot img {
  max-height:300px;
}

.wizard {
  padding:20px;
  background:rgba(2,10,8,.88);
}
.wizard-shell {
  width:min(100%,760px);
  min-height:0;
  max-height:calc(100vh - 40px);
  grid-template-rows:auto minmax(0,1fr) auto;
  border-radius:16px;
  background:#071814;
}
.wizard-actions [hidden] { display:none !important; }
.wizard-header {
  min-height:70px;
  padding:16px 22px 10px;
}
.wizard-header img {
  width:42px;
  height:42px;
  border-radius:8px;
  object-fit:cover;
}
.wizard-step-count {
  padding-right:48px;
  font-size:.88rem;
}
.wizard-body {
  padding:22px 28px 26px;
}
.wizard h2 {
  margin:5px 0 8px;
  font-size:2rem;
  line-height:1.15;
  letter-spacing:0;
}
.wizard-copy {
  margin:0;
  max-width:640px;
  font-size:1rem;
}
.device-options {
  gap:10px;
  margin-top:20px;
}
.device-choice {
  grid-template-columns:46px 1fr;
  gap:12px;
  padding:14px;
  border-radius:10px;
}
.device-choice-icon {
  width:42px;
  height:42px;
  border-radius:8px;
  font-size:.72rem;
  font-weight:900;
}
.quickstart-checklist {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
}
.quickstart-checklist article {
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  gap:10px;
  padding:13px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#0c211c;
}
.quickstart-checklist article > span {
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--accent);
  color:#03110e;
  font-weight:900;
}
.quickstart-checklist h3 {
  margin:1px 0 4px;
  font-size:.98rem;
}
.quickstart-checklist p,
.quickstart-checklist small {
  display:block;
  margin:0;
  color:var(--muted);
  font-size:.84rem;
  line-height:1.45;
}
.quickstart-checklist small { margin-top:5px; color:var(--accent-2); }
.wizard-actions {
  padding:14px 22px 18px;
}
.wizard-close {
  top:13px;
  right:14px;
  width:40px;
  height:40px;
  border-radius:8px;
}
html[dir="rtl"] .wizard-close { right:auto; left:14px; }
html[dir="rtl"] .wizard-step-count { padding-right:0; padding-left:48px; }

@media (max-width:680px) {
  .hero { padding-top:34px; }
  .top-actions .no-print { display:none; }
  .visual-details-grid,
  .quickstart-checklist { grid-template-columns:1fr; }
  .wizard { padding:8px; }
  .wizard-shell {
    min-height:0;
    max-height:calc(100vh - 16px);
    border-radius:12px;
  }
  .wizard-header { min-height:60px; padding:12px 14px 8px; }
  .wizard-header img { width:36px; height:36px; }
  .wizard-body { padding:16px 14px 18px; }
  .wizard h2 { font-size:1.55rem; }
  .device-options { grid-template-columns:1fr; }
  .quickstart-checklist { gap:8px; }
  .quickstart-checklist article { padding:11px; }
  .wizard-actions {
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:10px 14px 14px;
  }
  .wizard-actions .skip { display:none; }
}
