/* ------------------------------------------------------------
   Theralieve Field Service — Aqualieve module
   Near-white canvas, steel-blue accent, Inter + JetBrains Mono
------------------------------------------------------------ */

:root {
  --bg:        #FAFAFB;
  --bg-raised:#FFFFFF;
  --bg-sunk:   #F2F3F5;
  --rail:      #FFFFFF;
  --ink:       #0B0B0C;
  --ink-2:     #2A2D31;
  --muted:     #60646C;
  --muted-2:   #8A8F98;
  --line:      #E4E6EA;
  --line-2:    #EDEEF1;
  --accent:    oklch(0.58 0.11 235);      /* steel blue */
  --accent-ink:oklch(0.36 0.09 235);
  --accent-wash: oklch(0.97 0.02 235);
  --warn:      oklch(0.62 0.14 55);       /* amber for escalate */
  --warn-wash: oklch(0.97 0.03 80);
  --good:      oklch(0.58 0.10 160);
  --shadow-1:  0 1px 0 rgba(10,10,12,0.04), 0 1px 3px rgba(10,10,12,0.04);
  --shadow-2:  0 1px 0 rgba(10,10,12,0.04), 0 6px 20px rgba(10,10,12,0.06);
  --radius:    14px;
  --radius-s:  10px;
  --radius-xs: 6px;
  --fs-scale:  1;
}

* { box-sizing: border-box; }

html, body { margin:0; padding:0; background: var(--bg); }
deck-stage { background: var(--bg) !important; }
body {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  font-weight: 500;
  font-feature-settings: "tnum";
}

deck-stage > section {
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}

/* ============ SLIDE SHELL ============ */

.slide {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  font-size: calc(16px * var(--fs-scale));
}

/* ============ LEFT RAIL ============ */

.rail {
  background: var(--rail);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 32px 0 24px;
  overflow: hidden;
}
.rail__brand {
  padding: 0 28px 28px;
  border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 10px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 140ms ease;
}
a.rail__brand:hover { opacity: 0.72; }
a.rail__brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.rail__mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--ink);
  display: grid; place-items: center;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 700;
}
.rail__wordmark {
  font-weight: 600; letter-spacing: -0.01em;
  font-size: 15px;
}
.rail__wordmark b { color: var(--ink); }
.rail__wordmark span { color: var(--muted); font-weight: 500; }

.rail__group {
  padding: 22px 16px 6px 28px;
}
.rail__group-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.rail__products {
  display: flex; flex-direction: column; gap: 2px;
  padding: 0 12px 0 20px;
}
.rail__product {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: default;
  line-height: 1.25;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
a.rail__product { cursor: pointer; transition: background 120ms; }
a.rail__product:hover { background: var(--bg-sunk); color: var(--ink); }
a.rail__product:hover .rail__product-dot { background: var(--muted); }
a.rail__product:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rail__product[data-active="true"] {
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-weight: 600;
}
.rail__product-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line);
  flex: 0 0 auto;
}
.rail__product[data-active="true"] .rail__product-dot {
  background: var(--accent);
}

.rail__sections {
  margin-top: auto;
  padding: 20px 20px 0 28px;
  border-top: 1px solid var(--line-2);
}
.rail__section {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 12px;
  min-height: 48px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.rail__section:hover { background: var(--bg-sunk); color: var(--ink); }
.rail__section[data-active="true"] {
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-weight: 600;
}
.rail__section-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  width: 18px;
  font-weight: 600;
}
.rail__section[data-active="true"] .rail__section-key {
  color: var(--accent);
}

.rail__footer {
  padding: 18px 28px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--line-2);
  margin-top: 16px;
  padding-top: 16px;
}

/* ============ MAIN AREA ============ */

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.topbar {
  height: 72px;
  padding: 0 56px;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 0 0 auto;
}
.topbar__crumbs {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  display: flex; gap: 8px; align-items: center;
}
.topbar__crumbs b { color: var(--ink); font-weight: 700; }
.topbar__crumbs .sep { color: var(--muted); }
.topbar__crumbs .crumb-home {
  color: inherit;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 120ms, color 120ms;
  -webkit-tap-highlight-color: transparent;
}
.topbar__crumbs .crumb-home:hover {
  background: var(--accent-wash);
  color: var(--accent-ink);
}
.topbar__crumbs .crumb-home:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.topbar__right {
  display: flex; gap: 14px; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pill .dot { width:6px; height:6px; border-radius:50%; background: var(--accent); }

.body {
  flex: 1 1 auto;
  padding: 48px 72px 56px;
  min-height: 0;
  overflow: hidden;
}

/* ============ TYPE ============ */

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  font-weight: 600;
  text-transform: uppercase;
}
.eyebrow b { color: var(--accent-ink); font-weight: 700; }

h1.display, .display {
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: -0.028em;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h2.title, .title {
  font-size: 46px;
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.subtitle {
  font-size: 22px;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 400;
  max-width: 900px;
  margin-top: 14px;
  text-wrap: pretty;
}

.mono { font-family: 'JetBrains Mono', monospace; }
.num  { font-variant-numeric: tabular-nums; }

/* ============ COMMON COMPONENTS ============ */

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-1);
}
.card__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.card__label .hash { color: var(--accent); }

.kv {
  display: grid;
  grid-template-columns: 160px 1fr;
  column-gap: 16px;
  row-gap: 10px;
  font-size: 14px;
}
.kv dt {
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 2px;
}
.kv dd { margin: 0; color: var(--ink-2); }

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px;
  border-radius: 7px;
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tag--accent {
  background: var(--accent-wash);
  border-color: color-mix(in oklch, var(--accent) 20%, transparent);
  color: var(--accent-ink);
}
.tag--warn {
  background: var(--warn-wash);
  color: oklch(0.4 0.14 55);
  border-color: color-mix(in oklch, var(--warn) 30%, transparent);
}

.meas {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

ul.bullets {
  list-style: none;
  padding: 0; margin: 0;
}
ul.bullets li {
  padding: 10px 0 10px 26px;
  position: relative;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
}
ul.bullets li:last-child { border-bottom: none; }
ul.bullets li::before {
  content: "";
  position: absolute;
  left: 4px; top: 18px;
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

/* ============ SLIDE 01: OVERVIEW ============ */

.overview {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  height: 100%;
}
.overview__left { display: flex; flex-direction: column; justify-content: flex-start; gap: 24px; }
.overview__systems {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 4px;
}
.overview__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 36px;
  margin-top: 8px;
  max-width: 680px;
}
.spec {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.spec__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
}
.spec__value {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 6px;
  letter-spacing: -0.015em;
}
.spec__value .unit { color: var(--muted); font-size: 17px; font-weight: 500; margin-left: 6px; }

.overview__hero {
  position: relative;
  background: linear-gradient(180deg, #F6F7F9 0%, #EDEFF3 100%);
  border-radius: 20px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
}
.overview__hero img {
  max-width: 95%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(10,10,12,0.15));
}
.overview__hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 30% 30%, rgba(255,255,255,0.8), transparent 60%);
  pointer-events: none;
}
.overview__hero-meta {
  position: absolute; top: 20px; left: 20px;
  display: flex; flex-direction: column; gap: 6px;
  z-index: 2;
}

/* ============ SLIDE 02: COMPONENT MAP ============ */

.map {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 40px;
  height: 100%;
}
.map__left { display: flex; flex-direction: column; gap: 18px; min-height: 0; }
.map__stage {
  position: relative;
  flex: 1;
  background: linear-gradient(180deg, #F6F7F9 0%, #EDEFF3 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.map__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity 180ms ease;
}
.map__caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 8px 14px;
  background: rgba(10,10,12,0.72);
  color: #fff;
  backdrop-filter: blur(10px);
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  z-index: 2;
  max-width: calc(100% - 32px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hotspot__pin {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(10,10,12,0.14);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}
.hotspot:hover .hotspot__pin,
.hotspot[data-active="true"] .hotspot__pin {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.08);
}
.hotspot__halo {
  position: absolute; inset: -10px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--accent) 18%, transparent);
  opacity: 0;
  transition: opacity 180ms ease;
}
.hotspot[data-active="true"] .hotspot__halo { opacity: 1; }

.map__list {
  display: flex; flex-direction: column; gap: 6px;
  height: 100%;
  overflow-y: auto;
}
.map__item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  min-height: 72px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 120ms, background 120ms;
}
.map__item:hover,
.map__item[data-active="true"] {
  border-color: color-mix(in oklch, var(--accent) 45%, var(--line));
  background: var(--accent-wash);
}
.map__item-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-sunk);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
}
.map__item[data-active="true"] .map__item-num {
  background: var(--accent); color: #fff;
}
.map__item-name { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.map__item-sub { font-size: 14px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.map__item-sys {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 5px;
  color: var(--muted);
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  text-transform: uppercase;
}

/* ============ SLIDE 03: NORMAL OPERATION ============ */

.normal {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 28px;
  height: 100%;
}
.normal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  min-height: 0;
}
.normal__col {
  display: flex; flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow-1);
  gap: 20px;
}
.normal__col-head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-2);
}
.normal__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-wash);
  display: grid; place-items: center;
  color: var(--accent);
}
.normal__icon svg { width: 22px; height: 22px; }
.normal__col-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.normal__col-title { font-size: 26px; font-weight: 600; letter-spacing: -0.015em; margin-top: 4px; }
.normal__items { display: flex; flex-direction: column; gap: 18px; }
.normal__item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-2);
}
.normal__item-bullet {
  margin-top: 9px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
}
.normal__item .hl {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-sunk);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

/* ============ SLIDE 04: INSTALL ============ */

.install {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  height: 100%;
}
.install__steps { display: flex; flex-direction: column; gap: 14px; }
.install__step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 18px 20px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: start;
}
.install__step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.install__step-body { display: flex; flex-direction: column; gap: 4px; }
.install__step-action { font-size: 18px; font-weight: 500; color: var(--ink); }
.install__step-note { font-size: 13.5px; color: var(--muted); line-height: 1.4; }

.install__side {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--shadow-1);
}
.install__side h3 {
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0;
}
.req-list { display: flex; flex-direction: column; gap: 12px; }
.req {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: baseline;
  font-size: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}
.req:last-child { border-bottom: none; padding-bottom: 0; }
.req dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}
.req dd { margin: 0; color: var(--ink); font-weight: 500; }

.warn-box {
  padding: 14px 16px;
  background: var(--warn-wash);
  border: 1px solid color-mix(in oklch, var(--warn) 30%, transparent);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  font-size: 13.5px;
  color: oklch(0.32 0.12 55);
  line-height: 1.45;
}

/* ============ SLIDE 05-09: ISSUE CARDS ============ */

.issue {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  height: 100%;
  min-height: 0;
}
.issue__left {
  display: flex; flex-direction: column;
  gap: 18px;
  min-height: 0;
}
.issue__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
}
.issue__title {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}
.issue__symptom {
  margin-top: 10px;
  padding: 20px 22px;
  background: var(--accent-wash);
  border: 1px solid color-mix(in oklch, var(--accent) 22%, transparent);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
}
.issue__symptom-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}
.issue__symptom-text {
  font-size: 18px;
  line-height: 1.4;
  color: var(--accent-ink);
  font-weight: 500;
}
.issue__sicon {
  margin-top: 2px;
  color: var(--accent);
}

.issue__sections {
  display: flex; flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
}
.issue-accordion {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}
.issue-accordion[data-open="true"] {
  border-color: color-mix(in oklch, var(--accent) 35%, var(--line));
  box-shadow: var(--shadow-2);
}
.issue-accordion__head {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  min-height: 64px;
}
.issue-accordion__key {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-sunk);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.issue-accordion[data-open="true"] .issue-accordion__key {
  background: var(--accent);
  color: #fff;
}
.issue-accordion__title {
  font-size: 16px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.005em;
}
.issue-accordion__preview {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
  line-height: 1.4;
}
.issue-accordion[data-open="true"] .issue-accordion__preview { display: none; }

.chev {
  width: 20px; height: 20px;
  color: var(--muted);
  transition: transform 180ms ease;
}
.issue-accordion[data-open="true"] .chev { transform: rotate(90deg); color: var(--accent); }

.issue-accordion__body {
  padding: 4px 24px 22px 68px;
  display: none;
  border-top: 1px solid var(--line-2);
  padding-top: 18px;
}
.issue-accordion[data-open="true"] .issue-accordion__body { display: block; }

.ranked-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 8px;
}
.ranked-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-2);
}
.ranked-list li .rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.ranked-list li .rank-note {
  color: var(--muted-2);
  font-size: 11.5px;
  margin-left: 6px;
}

.check-order { counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.check-order__step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-sunk);
  border-radius: 8px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.check-order__step-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  padding-top: 1px;
}

.fix-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 14px 16px;
  background: color-mix(in oklch, var(--good) 8%, white);
  border: 1px solid color-mix(in oklch, var(--good) 30%, transparent);
  border-radius: 10px;
  align-items: center;
}
.fix-row__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: oklch(0.42 0.11 160);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}
.fix-row__text {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.4;
}
.ttf {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.ttf-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.ttf-dot[data-on="true"] { background: var(--accent); }
.ttf-dot[data-warn="true"] { background: var(--warn); }

.escalate-row {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--warn-wash);
  border: 1px solid color-mix(in oklch, var(--warn) 28%, transparent);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14px;
  line-height: 1.45;
  color: oklch(0.32 0.12 55);
}
.escalate-row__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: oklch(0.42 0.14 55);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.issue__right {
  display: flex; flex-direction: column; gap: 16px; min-height: 0;
}
.issue__image {
  flex: 1;
  background: linear-gradient(180deg, #F6F7F9 0%, #EDEFF3 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  display: grid; place-items: center;
  min-height: 0;
}
.issue__image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.issue__image-caption {
  position: absolute;
  left: 14px; bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(10,10,12,0.62);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 6px;
}
.issue__classify {
  display: flex; gap: 8px; flex-wrap: wrap;
}

/* Scrollbar polish for issue body */
.issue__sections::-webkit-scrollbar { width: 6px; }
.issue__sections::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

/* ============ SLIDE 10: MAINTENANCE ============ */

.maint {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 32px;
  height: 100%;
}
.maint__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  min-height: 0;
}
.maint__col {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
}
.maint__cadence {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
}
.maint__title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.maint__count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.maint__items {
  margin-top: 22px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.maint__item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-2);
}
.maint__item:first-child { border-top: none; padding-top: 0; }
.maint__check {
  width: 22px; height: 22px;
  border-radius: 5px;
  border: 2.5px solid var(--muted);
  background: #fff;
  margin-top: 1px;
  box-shadow: inset 0 0 0 1px rgba(10,10,12,0.04);
}

/* ============ SLIDE 11: FLASHCARDS ============ */

.flash {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 28px;
  height: 100%;
}
.flash__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  min-height: 0;
}
.flash-card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 32px 28px;
  display: flex; flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.flash-card__rank {
  position: absolute;
  top: 26px; right: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 68px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--bg-sunk);
  line-height: 1;
}
.flash-card__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.flash-card__title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-wrap: balance;
}
.flash-card__desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: auto;
}
.flash-card__share {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.flash-card__share-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.flash-card__share-note {
  font-size: 12px;
  color: var(--muted);
}
.flash-card__first-checks {
  padding: 14px 16px;
  background: var(--accent-wash);
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--accent-ink);
}
.flash-card__first-checks b {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

/* ============ SLIDE 12: BEFORE CALLING ============ */

.before {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 32px;
  height: 100%;
}
.before__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  min-height: 0;
  align-content: start;
}
.before__item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 140ms, background 140ms;
}
.before__item[data-checked="true"] {
  background: color-mix(in oklch, var(--good) 6%, white);
  border-color: color-mix(in oklch, var(--good) 35%, transparent);
}
.before__check {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: #fff;
  border: 1.25px solid var(--ink-2);
  margin-top: 1px;
  display: grid; place-items: center;
  color: transparent;
  box-shadow: inset 0 0 0 1px rgba(10,10,12,0.05);
  transition: all 140ms;
}
.before__check svg { stroke-width: 3; }
.before__item:hover .before__check { border-color: var(--accent); }
.before__item[data-checked="true"] .before__check {
  background: var(--good);
  border-color: var(--good);
  color: #fff;
}
.before__body { display: flex; flex-direction: column; gap: 4px; }
.before__n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
  font-weight: 600;
}
.before__text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
}
.before__counter {
  display: flex; gap: 14px; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
}
.before__counter .n {
  font-size: 22px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* ============ TWEAKS PANEL ============ */

.tweaks-host {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 999;
  font-family: 'IBM Plex Sans', sans-serif;
}
.tweaks {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 12px 32px rgba(10,10,12,0.14);
  min-width: 260px;
  display: none;
  flex-direction: column; gap: 14px;
}
.tweaks[data-open="true"] { display: flex; }
.tweaks__head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.tweaks__row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.tweaks__label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.tweaks__seg {
  display: flex; gap: 4px;
  background: var(--bg-sunk);
  padding: 3px;
  border-radius: 8px;
}
.tweaks__seg button {
  border: none;
  background: transparent;
  padding: 10px 14px;
  min-width: 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  color: var(--muted);
}
.tweaks__seg button[data-on="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.toggle {
  width: 54px; height: 30px;
  background: var(--line);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 140ms;
}
.toggle[data-on="true"] { background: var(--accent); }
.toggle::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 24px; height: 24px;
  background: #fff;
  border-radius: 50%;
  transition: left 140ms;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.toggle[data-on="true"]::after { left: 27px; }

/* expert-mode compactification */
body[data-expert="true"] .issue-accordion__preview { display: none !important; }
body[data-expert="true"] .install__step-note { display: none; }
body[data-expert="true"] .overview__specs { gap: 10px 28px; }
body[data-expert="true"] .subtitle { display: none; }

/* focus ring */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ============ PERSISTENT TOUCH NAV ============ */
/* One bottom-center bar with prev / counter / next.
   Positioned below the deck canvas so it never overlaps the rail. */

.touchnav-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(10,10,12,0.16), 0 1px 3px rgba(10,10,12,0.08);
  backdrop-filter: blur(12px);
  z-index: 500;
  -webkit-user-select: none;
  user-select: none;
}

.touchnav {
  width: 64px;
  height: 56px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  font: inherit;
  transition: background 140ms ease, transform 120ms ease, opacity 140ms ease;
}
.touchnav:hover { background: var(--bg-sunk); }
.touchnav:active { transform: scale(0.94); }
.touchnav:disabled {
  opacity: 0.28;
  pointer-events: none;
  cursor: default;
}
.touchnav svg { width: 28px; height: 28px; stroke-width: 2.25; }

.touchnav-count {
  padding: 0 14px;
  min-width: 80px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.touchnav-count .sep { color: var(--muted); margin: 0 4px; font-weight: 500; }

/* ============ SYSTEM-CLASS COLOR TOKENS ============ */
/* Pattern: each class sets --sys (base), --sys-wash (bg), --sys-ink (text). */
[data-sys="fluid"], [data-sys="water"] {
  --sys:       oklch(0.58 0.13 240);
  --sys-wash:  oklch(0.97 0.02 240);
  --sys-ink:   oklch(0.36 0.10 240);
}
[data-sys="air"] {
  --sys:       oklch(0.68 0.10 200);
  --sys-wash:  oklch(0.97 0.02 200);
  --sys-ink:   oklch(0.40 0.08 200);
}
[data-sys="electrical"] {
  --sys:       oklch(0.70 0.14 85);
  --sys-wash:  oklch(0.97 0.04 85);
  --sys-ink:   oklch(0.42 0.12 85);
}
[data-sys="thermal"] {
  --sys:       oklch(0.63 0.17 40);
  --sys-wash:  oklch(0.97 0.04 40);
  --sys-ink:   oklch(0.42 0.14 40);
}
[data-sys="mechanical"] {
  --sys:       oklch(0.55 0.04 260);
  --sys-wash:  oklch(0.96 0.01 260);
  --sys-ink:   oklch(0.32 0.03 260);
}
[data-sys="vibration"] {
  --sys:       oklch(0.58 0.14 300);
  --sys-wash:  oklch(0.97 0.03 300);
  --sys-ink:   oklch(0.38 0.12 300);
}
[data-sys="electromagnetic"], [data-sys="pemf"] {
  --sys:       oklch(0.58 0.17 340);
  --sys-wash:  oklch(0.97 0.04 340);
  --sys-ink:   oklch(0.38 0.14 340);
}
[data-sys="light"] {
  --sys:       oklch(0.75 0.14 95);
  --sys-wash:  oklch(0.97 0.05 95);
  --sys-ink:   oklch(0.45 0.12 95);
}

/* System-colored pill */
.tag--sys {
  background: var(--sys-wash);
  border-color: color-mix(in oklch, var(--sys) 30%, transparent);
  color: var(--sys-ink);
  font-weight: 600;
}
.tag--sys::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sys);
  margin-right: 2px;
}

/* Slide B list-row system tag inherits when data-sys is set */
.map__item-sys[data-sys] {
  background: var(--sys-wash);
  color: var(--sys-ink);
  border-color: color-mix(in oklch, var(--sys) 30%, transparent);
  font-weight: 600;
}

/* Slide B hotspot pin tinted by system */
.hotspot[data-sys] .hotspot__pin {
  border-color: color-mix(in oklch, var(--sys) 60%, var(--line));
}
.hotspot[data-sys]:hover .hotspot__pin,
.hotspot[data-sys][data-active="true"] .hotspot__pin {
  background: var(--sys);
  border-color: var(--sys);
  color: #fff;
}
.hotspot[data-sys] .hotspot__halo {
  background: color-mix(in oklch, var(--sys) 22%, transparent);
}

/* Neutral "CLASS" label pill that leads the issue classification row */
.issue__classify .tag--label {
  background: var(--bg-sunk);
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ============ HIGH-VOLTAGE WARNING (220 V) ============ */
.hv-warn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  background: oklch(0.97 0.04 25);
  color: oklch(0.42 0.19 25);
  border: 1px solid color-mix(in oklch, oklch(0.60 0.22 25) 35%, transparent);
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92em;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  vertical-align: baseline;
  line-height: 1.4;
}
.hv-warn svg {
  flex-shrink: 0;
  fill: currentColor;
  stroke: none;
}
/* In the big Overview spec value, give the pill more presence */
.spec__value .hv-warn {
  font-size: 18px;
  padding: 2px 10px;
  letter-spacing: -0.01em;
}
.spec__value .hv-warn svg { width: 14px; height: 14px; }

/* ============ PORTRAIT-ORIENTATION OVERLAY (phones held vertically) ============ */
.portrait-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 40px 28px;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
@media (orientation: portrait) and (max-width: 900px) {
  .portrait-overlay { display: flex; }
}
.portrait-overlay[data-dismissed="true"] { display: none !important; }

.portrait-overlay__icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: var(--accent-wash);
  color: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-1);
}
.portrait-overlay__icon svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: portrait-rotate-hint 2.4s ease-in-out infinite;
}
@keyframes portrait-rotate-hint {
  0%, 40%   { transform: rotate(0deg); }
  60%, 100% { transform: rotate(90deg); }
}

.portrait-overlay__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  max-width: 320px;
  text-wrap: balance;
}
.portrait-overlay__sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  max-width: 320px;
  font-weight: 500;
}
.portrait-overlay__sub b { color: var(--ink-2); font-weight: 600; }

.portrait-overlay__dismiss {
  margin-top: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 140ms, border-color 140ms, background 140ms;
}
.portrait-overlay__dismiss:hover,
.portrait-overlay__dismiss:active {
  color: var(--ink-2);
  border-color: var(--muted-2);
  background: var(--bg-sunk);
}

/* ==================================================================== */
/* ============ MOBILE BREAKPOINT (≤ 900 px) ========================== */
/* Replaces the 1920×1080 canvas with a reflowed, scrollable, single-   */
/* column layout. Desktop / tablet (>900 px) keeps the canvas.          */
/* ==================================================================== */

@media (max-width: 900px) {
  html, body {
    background: var(--bg);
    min-height: 100%;
    height: auto;
  }

  /* Hide all desktop-deck chrome — deck-stage's fixed-inset host would */
  /* otherwise occupy the viewport and block body scroll even hidden.   */
  deck-stage,
  .tweaks-host,
  .touchnav-bar,
  .portrait-overlay { display: none !important; }

  /* ---- Root container ---- */
  .m-deck {
    width: 100%;
    max-width: 100%;
    padding: 0 0 96px;
  }

  /* ---- Sticky header ---- */
  .m-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(250, 250, 251, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    min-height: 56px;
  }
  .m-hamburger {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    background: var(--bg-raised);
    border-radius: 9px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--ink);
    padding: 0;
    flex-shrink: 0;
  }
  .m-hamburger svg {
    width: 20px; height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
  }
  .m-brand {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ink);
    text-decoration: none;
    text-transform: uppercase;
    padding: 4px 8px;
    flex-shrink: 0;
  }
  .m-product {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ---- Article per slide ---- */
  .m-slide {
    padding: 20px 18px 36px;
    border-bottom: 8px solid var(--bg-sunk);
    scroll-margin-top: 64px;
  }
  .m-slide:last-child { border-bottom: none; }
  .m-slide__header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--accent);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
  }
  .m-slide__section {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
  }
  .m-slide__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
    letter-spacing: 0.08em;
  }

  /* ---- Body reset — slides flow naturally ---- */
  .m-slide .body {
    padding: 0;
    height: auto;
    overflow: visible;
  }

  /* The eyebrow is duplicated by m-slide__header — hide within mobile */
  .m-slide .eyebrow { display: none; }

  /* Scaled-down typography */
  .m-slide .display { font-size: 32px; line-height: 1.05; }
  .m-slide .title { font-size: 22px; line-height: 1.15; }
  .m-slide .subtitle { font-size: 15px; line-height: 1.45; margin-top: 10px; max-width: none; }

  /* ---- Overview ---- */
  .m-slide .overview {
    grid-template-columns: 1fr;
    grid-template-areas: "hero" "left";
    gap: 20px;
    height: auto;
  }
  .m-slide .overview__hero { grid-area: hero; height: 220px; border-radius: 12px; }
  .m-slide .overview__hero img { max-width: 78%; max-height: 86%; }
  .m-slide .overview__hero-meta { top: 12px; left: 12px; gap: 4px; }
  .m-slide .overview__hero-meta .tag { font-size: 10px; padding: 4px 8px; }
  .m-slide .overview__left { grid-area: left; gap: 18px; }
  .m-slide .overview__systems { gap: 6px; margin-top: 0; }
  .m-slide .overview__systems .tag { font-size: 11.5px; padding: 5px 9px; }
  .m-slide .overview__specs {
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    margin-top: 4px;
    max-width: none;
  }
  .m-slide .spec { padding-top: 10px; }
  .m-slide .spec__label { font-size: 10.5px; letter-spacing: 0.08em; }
  .m-slide .spec__value { font-size: 20px; margin-top: 4px; }
  .m-slide .spec__value .unit { font-size: 13px; margin-left: 3px; }
  .m-slide .spec__value .hv-warn { font-size: 15px; padding: 1px 7px; }
  .m-slide .spec__value .hv-warn svg { width: 11px; height: 11px; }

  /* ---- Components map ---- */
  .m-slide .map {
    grid-template-columns: 1fr;
    gap: 14px;
    height: auto;
  }
  .m-slide .map__left { min-height: 0; gap: 12px; }
  .m-slide .map__stage { aspect-ratio: 4 / 3; border-radius: 12px; flex: initial; }
  .m-slide .map__caption { font-size: 11px; padding: 5px 10px; left: 10px; bottom: 10px; }
  .m-slide .map__list { height: auto; max-height: none; gap: 6px; }
  .m-slide .map__item { padding: 12px 14px; grid-template-columns: 30px 1fr auto; gap: 10px; }
  .m-slide .map__item-num { width: 26px; height: 26px; font-size: 11px; }
  .m-slide .map__item-name { font-size: 14px; }
  .m-slide .map__item-sub { font-size: 12px; }
  .m-slide .map__item-sys { font-size: 9.5px; padding: 2px 7px; }

  /* ---- Normal ---- */
  .m-slide .normal { gap: 14px; height: auto; grid-template-rows: auto 1fr; }
  .m-slide .normal__grid { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
  .m-slide .normal__col { padding: 16px 18px; gap: 12px; }
  .m-slide .normal__col-title { font-size: 17px; }
  .m-slide .normal__col-label { font-size: 10px; }
  .m-slide .normal__items { gap: 10px; }
  .m-slide .normal__item { font-size: 14px; gap: 10px; grid-template-columns: 16px 1fr; }
  .m-slide .normal__item-bullet { margin-top: 7px; }
  .m-slide .normal__item .hl { font-size: 12px; padding: 1px 5px; }
  .m-slide .normal__icon { width: 30px; height: 30px; border-radius: 8px; }

  /* ---- Install ---- */
  .m-slide .install {
    grid-template-columns: 1fr;
    gap: 16px;
    height: auto;
  }
  .m-slide .install__steps { gap: 8px; }
  .m-slide .install__step {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 14px 16px;
  }
  .m-slide .install__step-num { font-size: 18px; }
  .m-slide .install__step-action { font-size: 15px; }
  .m-slide .install__step-note { font-size: 12.5px; }
  .m-slide .install__side { padding: 18px; }
  .m-slide .install__side h3 { font-size: 11px; }
  .m-slide .req { grid-template-columns: 84px 1fr; gap: 10px; font-size: 13px; padding-bottom: 10px; }
  .m-slide .req dt { font-size: 10px; }
  .m-slide .warn-box { padding: 12px 14px; font-size: 13px; grid-template-columns: 18px 1fr; gap: 10px; }

  /* ---- Issue ---- */
  .m-slide .issue {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    height: auto;
  }
  .m-slide .issue__left { gap: 12px; min-height: 0; }
  .m-slide .issue__num { font-size: 11px; }
  .m-slide .issue__title { font-size: 22px; line-height: 1.1; }
  .m-slide .issue__symptom {
    padding: 14px 16px;
    gap: 10px;
    grid-template-columns: 18px 1fr;
  }
  .m-slide .issue__symptom-label { font-size: 9.5px; }
  .m-slide .issue__symptom-text { font-size: 14px; }
  .m-slide .issue__sections { overflow: visible; max-height: none; flex: initial; padding-right: 0; }
  .m-slide .issue-accordion__head {
    min-height: 52px;
    padding: 14px 16px;
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
  }
  .m-slide .issue-accordion__key { width: 22px; height: 22px; font-size: 10px; }
  .m-slide .issue-accordion__title { font-size: 14px; }
  .m-slide .issue-accordion__preview { font-size: 12px; }
  .m-slide .issue-accordion__body { padding: 14px 18px 18px 14px; }
  .m-slide .ranked-list li { grid-template-columns: 22px 1fr; font-size: 14px; }
  .m-slide .check-order__step { padding: 10px 12px; font-size: 13px; grid-template-columns: 28px 1fr; }
  .m-slide .fix-row { padding: 12px 14px; grid-template-columns: 1fr; gap: 10px; }
  .m-slide .fix-row__text { font-size: 13px; }
  .m-slide .ttf { font-size: 10px; }
  .m-slide .escalate-row { padding: 12px; font-size: 13px; grid-template-columns: 18px 1fr; gap: 10px; }
  .m-slide .issue__right { gap: 12px; min-height: 0; }
  .m-slide .issue__image { min-height: 200px; aspect-ratio: 4 / 3; flex: initial; border-radius: 12px; }
  .m-slide .issue__image-caption { font-size: 10px; left: 10px; bottom: 10px; }
  .m-slide .issue__classify { gap: 6px; flex-wrap: wrap; }
  .m-slide .issue__classify .tag { font-size: 11px; padding: 4px 8px; }

  /* ---- Maintenance ---- */
  .m-slide .maint { gap: 16px; height: auto; }
  .m-slide .maint__grid { grid-template-columns: 1fr; gap: 10px; min-height: 0; }
  .m-slide .maint__col { padding: 18px 20px; }
  .m-slide .maint__cadence { font-size: 10px; }
  .m-slide .maint__title { font-size: 20px; }
  .m-slide .maint__count { font-size: 12px; }
  .m-slide .maint__items { margin-top: 14px; gap: 8px; }
  .m-slide .maint__item { font-size: 14px; grid-template-columns: 22px 1fr; padding: 10px 0; }
  .m-slide .maint__check { width: 20px; height: 20px; }

  /* ---- Failures ---- */
  .m-slide .flash { gap: 16px; height: auto; }
  .m-slide .flash__grid { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
  .m-slide .flash-card { padding: 22px 20px 20px; gap: 12px; border-radius: 14px; }
  .m-slide .flash-card__rank { font-size: 44px; top: 16px; right: 20px; }
  .m-slide .flash-card__title { font-size: 20px; }
  .m-slide .flash-card__desc { font-size: 13px; }
  .m-slide .flash-card__first-checks { font-size: 12px; padding: 12px 14px; }
  .m-slide .flash-card__share-pct { font-size: 26px; }
  .m-slide .flash-card__share-note { font-size: 11px; }

  /* ---- Before Calling ---- */
  .m-slide .before { gap: 14px; height: auto; }
  .m-slide .before__grid { grid-template-columns: 1fr; gap: 8px; }
  .m-slide .before__item {
    padding: 12px 14px;
    grid-template-columns: 26px 1fr;
    gap: 12px;
  }
  .m-slide .before__check { width: 22px; height: 22px; border-radius: 5px; }
  .m-slide .before__check svg { width: 12px; height: 12px; }
  .m-slide .before__n { font-size: 9.5px; }
  .m-slide .before__text { font-size: 13.5px; line-height: 1.3; }
  .m-slide .before__counter { font-size: 11px; gap: 10px; }
  .m-slide .before__counter .n { font-size: 18px; }

  /* ---- Drawer ---- */
  /* When closed: visibility:hidden removes it from hit-testing AND       */
  /* touch-scroll capture on iOS (pointer-events:none is not enough).     */
  .m-drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    background: rgba(10, 10, 12, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms ease, visibility 0s linear 200ms;
  }
  .m-drawer[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 200ms ease, visibility 0s linear 0s;
  }
  .m-drawer__panel {
    width: 100%;
    max-height: 82vh;
    background: var(--bg-raised);
    border-radius: 16px 16px 0 0;
    padding: 12px 14px 28px;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
    -webkit-overflow-scrolling: touch;
  }
  .m-drawer[data-open="true"] .m-drawer__panel { transform: translateY(0); }
  .m-drawer__handle {
    width: 42px;
    height: 4px;
    background: var(--line);
    border-radius: 2px;
    margin: 2px auto 10px;
  }
  .m-drawer__group-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--muted);
    text-transform: uppercase;
    padding: 14px 8px 8px;
  }
  .m-drawer__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    min-height: 46px;
    -webkit-tap-highlight-color: transparent;
  }
  .m-drawer__item[data-active="true"] {
    background: var(--accent-wash);
    color: var(--accent-ink);
    font-weight: 700;
  }
  .m-drawer__item-sub {
    flex: 1;
    margin-left: 6px;
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
    text-align: right;
    text-transform: none;
    letter-spacing: 0;
  }
  .m-drawer__section-key {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    width: 18px;
    text-align: center;
  }
  .m-drawer__dismiss {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 14px;
    cursor: pointer;
  }
}
