:root {
  --paper: #f4eee4;
  --paper-soft: #faf6ef;
  --ink: #241d1a;
  --red: #c60035;
  --red-dark: #9f002a;
  --line: rgba(198, 0, 53, 0.34);
  --muted: #6f625c;
  --white: #fffdf8;
  --shadow: 0 24px 80px rgba(70, 35, 25, 0.12);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: #ddd6cd; color: var(--ink); }

body {
  font-family: "Anuphan", "Noto Sans Thai", Tahoma, sans-serif;
  overflow: hidden;
}

html, body, button, a, [role="button"], input, select, label { cursor: url("assets/retro-cursor.svg") 2 2, auto; }
button, a, [role="button"], label, select { cursor: url("assets/retro-pointer.svg") 7 2, pointer; }

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.deck {
  width: 100vw;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(0px, 2vw, 28px);
}

.stage {
  position: relative;
  width: min(100%, calc((100dvh - clamp(0px, 4vw, 56px)) * 16 / 9));
  aspect-ratio: 16 / 9;
  max-height: 100dvh;
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.app-modebar { position: absolute; z-index: 92; top: 18px; right: 18px; display: flex; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,248,.92); box-shadow: 0 8px 26px rgba(64,31,24,.13); backdrop-filter: blur(12px); }
.app-modebar button { min-height: 34px; padding: 7px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--red); font-size: 11px; font-weight: 800; }
.app-modebar button:hover, .app-modebar button.active { background: var(--red); color: white; }
.app-modebar .fullscreen { position: static; }
.floating-change-path { position: absolute; z-index: 66; top: 72px; right: 22px; }
.mode-present .app-modebar { background: rgba(255,253,248,.96); }
.mode-present .app-modebar [data-app-mode="present"] { background: var(--ink); color: white; }

.app-launcher { position: fixed; z-index: 180; inset: 0; display: grid; place-items: center; padding: 20px; }
.app-launcher[hidden] { display: none; }
.launcher-backdrop { position: absolute; inset: 0; border: 0; background: rgba(36,29,26,.72); backdrop-filter: blur(8px); }
.launcher-panel { position: relative; width: min(920px, 100%); max-height: min(820px, calc(100dvh - 40px)); overflow: auto; padding: clamp(22px, 3vw, 38px); border: 4px solid var(--ink); border-radius: 8px; background: var(--paper-soft); box-shadow: 12px 12px 0 var(--red); }
.launcher-panel header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.launcher-panel header small { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.launcher-panel h2 { margin: 5px 0 12px; color: var(--red); font-size: clamp(34px, 5vw, 64px); }
.launcher-panel header > button { width: 44px; height: 44px; flex: 0 0 auto; border: 3px solid var(--ink); border-radius: 4px; background: white; color: var(--ink); font-size: 28px; line-height: 1; }
.launcher-progress { height: 10px; border: 2px solid var(--ink); background: white; overflow: hidden; }
.launcher-progress span { display: block; height: 100%; background: var(--red); }
.launcher-status { margin: 8px 0 18px; color: var(--muted); font-size: 14px; }
.launcher-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.launcher-grid > button { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; min-height: 105px; padding: 14px; border: 2px solid var(--line); border-radius: 6px; background: white; color: var(--ink); text-align: left; box-shadow: 4px 4px 0 rgba(198,0,53,.16); }
.launcher-grid > button:hover { border-color: var(--red); transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--red); }
.launcher-grid i { display: grid; place-items: center; width: 46px; height: 46px; background: var(--red); color: white; font-style: normal; font-weight: 900; }
.launcher-grid span { display: grid; gap: 2px; }
.launcher-grid small { color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.launcher-grid b { font-size: 17px; }
.launcher-grid em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.35; }
.launcher-grid strong { color: var(--red); font-size: 24px; }
.launcher-reset { width: 100%; margin-top: 16px; min-height: 44px; border: 2px solid var(--ink); border-radius: 4px; background: transparent; color: var(--ink); font-weight: 800; }

.slide {
  height: 100%;
  padding: clamp(28px, 4.2vw, 74px) clamp(30px, 5.3vw, 92px) clamp(66px, 6vw, 100px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 96% 8%, rgba(198,0,53,.035), transparent 22%),
    var(--paper);
  animation: reveal .38s cubic-bezier(.2,.7,.2,1);
}

.product-process-slide { padding-top: clamp(24px, 3vw, 48px); }
.product-process-slide .topline { margin-bottom: 12px; }
.product-process-slide h2 { margin-bottom: 14px; font-size: clamp(32px, 3.8vw, 60px); }
.process-map { position: relative; flex: 1; display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; min-height: 0; padding: 0 3.5%; }
.process-phase { --phase: var(--red); position: relative; display: grid; grid-template-columns: 24% 1fr; align-items: center; gap: 12px; padding: 13px 18px; border: 2px solid var(--phase); color: var(--phase); background: rgba(255,253,248,.7); }
.process-phase::before, .process-phase::after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; background: var(--paper-soft); }
.process-phase::before { left: -9px; transform: translateY(-50%) rotate(-135deg); }
.process-phase::after { right: -9px; transform: translateY(-50%) rotate(45deg); }
.phase-two { --phase: #e23462; }
.phase-three { --phase: var(--ink); }
.phase-label { display: grid; align-content: center; border-right: 1px solid currentColor; padding-right: 14px; }
.phase-label b { font-size: clamp(13px, 1.15vw, 18px); letter-spacing: .08em; }
.phase-label span { color: var(--ink); font-size: clamp(11px, .9vw, 14px); line-height: 1.3; }
.phase-track { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.phase-track.reverse { grid-template-columns: repeat(3, minmax(0,1fr)); direction: rtl; }
.phase-track.reverse article { direction: ltr; }
.phase-track article { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 9px; align-items: center; min-height: 66px; padding: 9px 14px 9px 9px; border-radius: 999px; background: var(--phase); color: white; box-shadow: 0 6px 16px rgba(36,29,26,.08); }
.phase-track article:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; right: -20px; top: 50%; color: var(--phase); font-size: 22px; font-weight: 900; transform: translateY(-50%); }
.phase-track.reverse article:not(:last-child)::after { content: "←"; right: auto; left: -20px; }
.phase-track i { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid white; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 800; }
.phase-track article div { display: grid; gap: 2px; }
.phase-track article b { font-size: clamp(11px, .9vw, 14px); line-height: 1.15; }
.phase-track article span { font-size: clamp(9px, .72vw, 11px); line-height: 1.25; opacity: .86; }
.process-turn { position: absolute; z-index: 2; width: 6%; height: 34%; border: 10px solid var(--red); pointer-events: none; }
.process-turn span { position: absolute; bottom: -17px; color: var(--red); font-size: 22px; font-weight: 900; }
.turn-right { top: 17%; right: -1%; border-left: 0; border-radius: 0 46px 46px 0; }
.turn-right span { right: 13px; }
.turn-left { top: 50%; left: -1%; border-right: 0; border-radius: 46px 0 0 46px; }
.turn-left span { left: 13px; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--red);
  font-size: clamp(11px, 1.05vw, 18px);
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
  margin-bottom: clamp(20px, 3.2vw, 52px);
}

.chapter-no { color: var(--muted); font-weight: 500; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.045em; }

h1 {
  color: var(--red);
  font-size: clamp(52px, 8vw, 136px);
  line-height: .94;
  margin-bottom: 24px;
  font-weight: 700;
}

h2 {
  color: var(--red);
  font-size: clamp(36px, 5.5vw, 90px);
  line-height: 1.06;
  margin-bottom: clamp(18px, 2.4vw, 38px);
  font-weight: 700;
}

h3 {
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1.15;
  margin-bottom: 12px;
}

h1, h2, h3, .quote { text-wrap: balance; overflow-wrap: anywhere; }
p, li, td, th, button, .sentence, .formula { overflow-wrap: anywhere; }

p, li, label, input {
  font-size: clamp(14px, 1.45vw, 24px);
  line-height: 1.52;
}

.lead {
  max-width: 850px;
  font-size: clamp(18px, 2.2vw, 36px);
  line-height: 1.4;
  color: var(--ink);
}

.red { color: var(--red); }
.muted { color: var(--muted); }
.small { font-size: clamp(12px, 1.05vw, 18px); }
.eyebrow { color: var(--red); font-size: clamp(13px, 1.2vw, 20px); font-weight: 700; margin-bottom: 14px; }

.cover { padding-bottom: 0; }
.cover .topline { margin-bottom: clamp(8px, 1vw, 18px); }
.cover h1 { max-width: 1050px; position: relative; z-index: 2; }
.cover .lead { position: relative; z-index: 2; max-width: 720px; }
.hero-hands {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 61%;
  object-fit: cover;
  object-position: bottom center;
  z-index: 0;
  mix-blend-mode: multiply;
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--paper) 0%, rgba(244,238,228,.94) 28%, rgba(244,238,228,.05) 64%);
  z-index: 1;
  pointer-events: none;
}
.cover .topline, .cover h1, .cover .lead { z-index: 2; }

.split {
  flex: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(28px, 5vw, 84px);
  align-items: center;
}

.quote {
  color: var(--red);
  font-size: clamp(32px, 5.4vw, 88px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -.055em;
  max-width: 1050px;
}

.callout {
  border: 2px solid var(--line);
  border-radius: 26px;
  padding: clamp(20px, 2.7vw, 42px);
  background: rgba(255,253,248,.42);
}

.callout strong { color: var(--red); }

.big-number {
  font-size: clamp(78px, 14vw, 220px);
  color: var(--red);
  font-weight: 700;
  line-height: .78;
  letter-spacing: -.08em;
}

.paths {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.5vw, 24px);
}

.path {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  border-top: 2px solid var(--red);
  padding: clamp(14px, 2vw, 28px) 0;
}

button.path {
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
  background: transparent;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, padding .2s ease;
}
button.path:hover, button.path.selected {
  transform: translateY(-3px);
  background: rgba(198,0,53,.055);
  padding-left: 16px;
}
button.path.selected { box-shadow: inset 5px 0 0 var(--red); }

.interaction-result {
  grid-column: 1 / -1;
  color: var(--red);
  font-size: clamp(14px, 1.25vw, 20px);
  font-weight: 600;
  min-height: 32px;
  margin-top: -2px;
}

.path .index {
  color: var(--red);
  font-size: clamp(28px, 4vw, 64px);
  font-weight: 700;
  line-height: 1;
}

.path p { margin: 4px 0 0; color: var(--muted); }

.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}
.compare th, .compare td {
  border-bottom: 1px solid var(--line);
  padding: clamp(10px, 1.35vw, 22px) 12px;
  text-align: left;
  font-size: clamp(13px, 1.32vw, 22px);
}
.compare th { color: var(--red); font-weight: 700; }
.compare tr:last-child td { border-bottom: 0; }
.level { display: inline-block; color: var(--red); font-weight: 700; letter-spacing: .12em; }

.flow {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-content: center;
  gap: 16px;
}
.flow-step {
  position: relative;
  min-height: clamp(120px, 14vw, 210px);
  padding: 24px;
  border: 2px solid var(--red);
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.flow-step::after {
  content: "→";
  position: absolute;
  right: -24px;
  top: 44%;
  width: 30px;
  text-align: center;
  color: var(--red);
  font-size: 30px;
  z-index: 2;
}
.flow-step:last-child::after { display: none; }
.flow-step b { color: var(--red); font-size: clamp(30px, 4vw, 64px); line-height: 1; }
.flow-step span { font-size: clamp(15px, 1.65vw, 27px); font-weight: 600; }

.steps-row {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
}
.step-card {
  border-top: 5px solid var(--red);
  padding: 22px 8px 12px;
}
.step-card .num { color: var(--red); font-size: clamp(36px, 5vw, 78px); font-weight: 700; line-height: 1; }
.step-card p { color: var(--muted); }

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2vw, 30px);
  margin-top: auto;
  margin-bottom: auto;
}
.check {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
}

button.check {
  width: 100%;
  text-align: left;
  color: inherit;
  background: transparent;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  cursor: pointer;
  transition: padding .2s ease, background .2s ease;
}
button.check:hover { background: rgba(198,0,53,.04); padding-left: 10px; }
button.check.done { background: rgba(198,0,53,.07); padding-left: 10px; }
button.check.done b::before { content: "✓"; }
button.check.done b { font-size: 0; }
button.check.done b::before { font-size: 28px; }
.check b { color: var(--red); font-size: 28px; }
.check p { margin: 0; }

.data-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}
.data-item {
  padding: 28px 0;
  border-top: 3px solid var(--red);
}
.data-item .code { font-size: clamp(12px, 1vw, 16px); color: var(--red); font-weight: 700; letter-spacing: .08em; }
.data-item p { color: var(--muted); margin-bottom: 0; }

.lens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: auto 0;
}
.lens > div { min-height: 260px; padding: 30px; border: 2px solid var(--line); border-radius: 999px 999px 28px 28px; display: flex; flex-direction: column; justify-content: end; }
.lens h3 { color: var(--red); font-size: clamp(30px, 4vw, 64px); }
.lens p { margin: 0; }

.sentence {
  margin: auto 0;
  color: var(--red);
  font-size: clamp(28px, 4.2vw, 70px);
  line-height: 1.25;
  font-weight: 600;
}
.blank { display: inline-block; min-width: 180px; border-bottom: 4px solid var(--red); color: var(--ink); }

.score {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: auto 0;
}
.score-item { text-align: center; border: 1px solid var(--line); border-radius: 24px; padding: 26px 14px; }
.score-item b { display: block; color: var(--red); font-size: clamp(36px, 5vw, 76px); line-height: 1; margin-bottom: 18px; }
.score-item span { font-size: clamp(14px, 1.3vw, 21px); }
button.score-item { color: inherit; background: transparent; cursor: pointer; transition: transform .18s ease, background .18s ease; }
button.score-item:hover { transform: translateY(-5px); }
button.score-item.active { background: var(--red); color: white; }
button.score-item.active b { color: white; }
.score-total { color: var(--red); font-size: clamp(16px, 1.5vw, 24px); font-weight: 700; margin-top: 18px; }
.score-total span { font-size: 1.6em; }

.models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: auto 0;
}
.model { border-top: 3px solid var(--red); padding: 20px 6px; }
.model b { display: block; color: var(--red); font-size: clamp(22px, 2.6vw, 40px); margin-bottom: 8px; }
.model p { margin: 0; color: var(--muted); }

.formula {
  margin: auto 0;
  padding: clamp(28px, 5vw, 78px);
  border: 2px solid var(--red);
  border-radius: 32px;
  background: var(--paper-soft);
  color: var(--red);
  font-size: clamp(24px, 3.3vw, 54px);
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.calc-slide { padding-top: 34px; }
.calc-slide .topline { margin-bottom: 12px; }
.calc-slide h2 { font-size: clamp(30px, 4vw, 62px); margin-bottom: 12px; }
.calculator {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 30px;
}
.calc-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 14px;
  align-content: start;
}
.field label { display: block; font-size: clamp(11px, .95vw, 15px); color: var(--muted); margin-bottom: 5px; }
.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.48);
  padding: 9px 12px;
  color: var(--ink);
  outline: none;
  font-size: clamp(13px, 1.1vw, 18px);
}
.field input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(198,0,53,.1); }
.percent-field { position: relative; }
.percent-field input { padding-right: 34px; }
.percent-field > span { position: absolute; right: 12px; bottom: 10px; color: var(--red); font-weight: 700; pointer-events: none; }
.calc-results { background: var(--red); color: white; border-radius: 26px; padding: clamp(18px, 2.2vw, 32px); display: flex; flex-direction: column; justify-content: space-between; }
.result-main small { opacity: .8; font-size: clamp(12px, 1vw, 16px); }
.result-main strong { display: block; font-size: clamp(44px, 6vw, 92px); line-height: 1; letter-spacing: -.06em; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.result-grid div { border-top: 1px solid rgba(255,255,255,.45); padding-top: 10px; }
.result-grid span { display: block; font-size: clamp(10px, .85vw, 14px); opacity: .8; }
.result-grid b { font-size: clamp(18px, 1.8vw, 28px); }
.cost-calculator-slide .calc-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-y: auto; padding-right: 6px; }
.cost-calculator-slide .field input { padding-block: 7px; }
.cost-breakdown { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.35); font-size: clamp(10px, .8vw, 13px); line-height: 1.45; opacity: .86; }

.cream-cost-journey { padding-top: 28px; }
.cream-cost-journey .topline { margin-bottom: 8px; }
.cost-journey-head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
.cost-journey-head h2 { margin-bottom: 10px; font-size: clamp(30px, 4.3vw, 66px); line-height: 1; }
.cost-product { display: flex; align-items: center; gap: 12px; min-width: 250px; padding: 8px 18px 8px 8px; border: 2px solid var(--red); border-radius: 999px; background: var(--paper-soft); }
.cost-product img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; background: #efb5aa; }
.cost-product div { display: flex; flex-direction: column; color: var(--red); }
.cost-product b { font-size: clamp(34px, 4vw, 60px); line-height: .9; }
.cost-product span { margin-top: 5px; font-size: 12px; font-weight: 700; }
.cost-road { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; overflow-y: auto; padding: 4px 4px 10px 0; }
.cost-stage { position: relative; padding: 13px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,248,.58); }
.cost-stage::after { content: "→"; position: absolute; right: -11px; top: 22px; z-index: 2; color: var(--red); font-size: 18px; font-weight: 700; }
.cost-stage:nth-child(4)::after, .cost-stage:last-child::after { display: none; }
.cost-stage header { margin-bottom: 8px; }
.cost-stage small { color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.cost-stage h3 { margin: 2px 0 0; color: var(--ink); font-size: clamp(15px, 1.25vw, 20px); line-height: 1.15; }
.cost-stage > div { display: flex; flex-wrap: wrap; gap: 5px; }
.cost-chip { min-height: 25px; padding: 4px 8px; border: 1px solid rgba(198,0,53,.28); border-radius: 999px; background: transparent; color: var(--muted); font-size: clamp(9px, .68vw, 11px); line-height: 1.2; text-align: left; cursor: pointer; transition: .16s ease; }
.cost-chip:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.cost-chip.found { border-color: var(--red); background: var(--red); color: white; }
.cost-chip.found::before { content: "✓ "; font-weight: 700; }

.presenter-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.presenter-visual { display: grid; grid-template-rows: 1fr auto; gap: 12px; }
.presenter-photo-slot { position: relative; min-height: 0; display: grid; place-items: center; border: 2px dashed var(--red); border-radius: 32px; background: linear-gradient(145deg, #f6dbe1, var(--paper-soft)); color: var(--red); text-align: center; font-weight: 700; }
.presenter-photo-slot::before { content: "＋"; display: block; position: absolute; font-size: 76px; opacity: .12; }
.presenter-logo-slot { padding: 14px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; letter-spacing: .08em; }
.presenter-copy { align-self: center; }
.presenter-copy h2 { margin-bottom: 12px; }
.presenter-copy h3 { color: var(--red); font-size: clamp(18px, 1.7vw, 28px); }
.presenter-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 18px; }
.presenter-points > div { padding: 13px; border-top: 3px solid var(--red); background: rgba(255,253,248,.45); }
.presenter-points b, .presenter-points span { display: block; }
.presenter-points b { color: var(--red); font-size: 11px; }
.presenter-points span { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.custom-blank-slide .blank-canvas { flex: 1; display: grid; place-items: center; border: 2px dashed var(--line); border-radius: 28px; color: var(--muted); text-align: center; }

.timeline {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}
.week { min-height: 250px; border-left: 2px solid var(--red); padding: 0 22px; display: flex; flex-direction: column; justify-content: center; }
.week b { color: var(--red); font-size: clamp(40px, 5.5vw, 86px); line-height: 1; }
.week h3 { margin: 16px 0 8px; }
.week p { margin: 0; color: var(--muted); }

.nav {
  position: absolute;
  z-index: 20;
  left: clamp(18px, 3vw, 46px);
  right: clamp(18px, 3vw, 46px);
  bottom: clamp(14px, 2vw, 30px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}
.nav-controls { display: flex; gap: 8px; }
.nav button {
  border: 1px solid rgba(198,0,53,.24);
  width: clamp(38px, 3.2vw, 52px);
  height: clamp(38px, 3.2vw, 52px);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(250,246,239,.85);
  color: var(--red);
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.nav button:hover { background: var(--red); color: white; }
.nav button:disabled { opacity: .32; cursor: default; }
.nav button:disabled:hover { background: rgba(250,246,239,.85); color: var(--red); }
.progress-track { height: 3px; background: rgba(198,0,53,.15); }
.progress { height: 100%; background: var(--red); transition: width .3s ease; }
.page-no { color: var(--red); font-weight: 700; font-size: clamp(12px, 1vw, 16px); min-width: 60px; text-align: right; }

.hint {
  position: absolute;
  right: 26px;
  top: 22px;
  z-index: 30;
}
.fullscreen {
  border: 0;
  background: transparent;
  color: var(--red);
  opacity: .7;
  cursor: pointer;
  font-size: 20px;
}

.hint { display: flex; align-items: center; gap: 10px; }
.change-path {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(250,246,239,.86);
  color: var(--red);
  padding: 8px 14px;
  font-size: clamp(10px, .85vw, 14px);
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.change-path:hover { background: var(--red); color: white; }
.edit-mode-button {
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: white;
  padding: 8px 14px;
  font-size: clamp(10px, .85vw, 14px);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(198,0,53,.18);
}
.edit-mode-button:hover { background: var(--red-dark); }

.editing .slide { box-shadow: inset 0 0 0 5px rgba(198,0,53,.24); }
.editing .nav { z-index: 80; }
.editing .hint { z-index: 90; }
.editor-text { outline: 1px dashed transparent; border-radius: 4px; cursor: text; }
.editor-text:hover, .editor-text:focus { outline-color: var(--red); background: rgba(255,255,255,.44); }
.editor-text:focus, .editor-text.selected { outline-color: var(--red); box-shadow: 0 0 0 4px rgba(198,0,53,.1); }
.editor-text[data-editor-icon="true"] { cursor: pointer; }
.editor-text[data-editor-icon="true"].selected { outline: 3px solid var(--red); outline-offset: 4px; }
.editor-inline-svg-icon svg { width: 1em; height: 1em; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.editor-toolbar {
  position: fixed;
  z-index: 95;
  left: 18px;
  right: 18px;
  bottom: 16px;
  width: auto;
  max-height: min(280px, 38vh);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 16px;
  border: 1px solid rgba(198,0,53,.25);
  border-radius: 18px;
  background: rgba(255,253,248,.94);
  box-shadow: 0 16px 50px rgba(64,31,24,.18);
  backdrop-filter: blur(14px);
  touch-action: pan-x pan-y;
  overscroll-behavior: contain;
}
.editor-toolbar-title { display: flex; align-items: center; gap: 12px; color: var(--red); font-size: 14px; margin-bottom: 10px; cursor: grab; touch-action: none; user-select: none; }
.editor-toolbar-title:active, .editor-toolbar.is-dragging .editor-toolbar-title { cursor: grabbing; }
.editor-toolbar-title span { margin-left: auto; color: var(--muted); font-size: 10px; }
.editor-toolbar-title button { min-height: 32px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--red); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.editor-quick-actions { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 8px; margin-bottom: 10px; }
.editor-quick-actions button { min-height: 42px; border: 1px solid var(--line); border-radius: 11px; background: var(--red); color: white; font-size: 12px; font-weight: 700; cursor: pointer; }
.editor-quick-actions #editor-delete { background: #241d1a; }
.editor-quick-actions button:disabled { opacity: .3; cursor: default; }
.editor-tools { display: grid; grid-template-columns: repeat(8, minmax(92px, 1fr)); gap: 8px; }
.editor-tools button, .editor-upload, .editor-number-control, .editor-color-control, .editor-select-control {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.editor-tools button:hover, .editor-upload:hover { background: var(--red); color: white; }
.editor-tools button:disabled { opacity: .32; cursor: default; }
.editor-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.editor-number-control, .editor-color-control, .editor-select-control { grid-template-columns: auto 1fr; gap: 5px; padding: 4px 6px; }
.editor-number-control input { width: 48px; min-width: 0; border: 0; border-bottom: 1px solid var(--line); color: var(--red); font: inherit; text-align: center; background: transparent; }
.editor-number-control input:disabled { opacity: .32; }
.editor-color-control input { width: 30px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.editor-select-control { grid-column: span 2; }
.editor-select-control select { min-width: 0; width: 100%; border: 0; color: var(--red); background: transparent; font: inherit; cursor: pointer; }
.editor-select-control select:disabled { opacity: .32; }
.icon-drawer { position: fixed; z-index: 105; left: 50%; bottom: min(310px, 42vh); transform: translateX(-50%); width: min(680px, calc(100vw - 36px)); max-height: 38vh; overflow: auto; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,248,.98); box-shadow: 0 18px 54px rgba(64,31,24,.22); }
.icon-drawer[hidden] { display: none; }
.icon-drawer-title { margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.icon-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.icon-grid button { display: grid; place-items: center; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--red); cursor: pointer; }
.icon-grid button:hover { color: white; background: var(--red); }
.icon-grid svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.manager-drawer { position: fixed; z-index: 110; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(760px, calc(100vw - 40px)); max-height: min(72vh, 720px); overflow: auto; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,248,.99); box-shadow: 0 22px 70px rgba(64,31,24,.28); }
.add-slide-button { width: 100%; margin: 8px 0 12px; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--red); color: white; font-weight: 700; cursor: pointer; }
.manager-drawer[hidden] { display: none; }
.manager-title { color: var(--red); font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.next-page-control, .button-link-row { display: grid; gap: 5px; margin-bottom: 10px; color: var(--ink); font-size: 12px; font-weight: 700; }
.next-page-control select, .button-link-row select { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: 12px; }
.slide-order-list { display: grid; gap: 5px; }
.slide-order-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 8px; border: 1px solid transparent; border-radius: 10px; }
.slide-order-item.current { border-color: var(--red); background: rgba(198,0,53,.055); }
.slide-order-item > button { min-height: 38px; border: 0; background: transparent; color: var(--ink); text-align: left; font-size: 14px; cursor: pointer; }
.slide-order-item span { display: flex; gap: 3px; }
.slide-order-item span button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--red); cursor: pointer; }
.editor-toolbar.is-collapsed { left: 18px; right: auto; bottom: 16px; width: min(330px, calc(100vw - 36px)); max-height: none; overflow: visible; }
.editor-toolbar.is-collapsed .editor-quick-actions, .editor-toolbar.is-collapsed .editor-tools, .editor-toolbar.is-collapsed .icon-drawer { display: none; }
.editor-toolbar.is-collapsed .editor-toolbar-title { margin: 0; }
.editor-reveal-item.editor-reveal-hidden { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; transform: scale(.82) !important; }
.editor-reveal-item.editor-reveal-shown { visibility: visible; animation: reveal-pixel-pop .42s steps(5, end) both; }
.reveal-next-button { position: absolute; z-index: 65; right: 3%; bottom: 8%; display: grid; grid-template-columns: 38px auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-width: 210px; padding: 11px 15px; border: 3px solid var(--ink); border-radius: 4px; background: var(--red); color: white; box-shadow: 6px 6px 0 var(--ink); font: inherit; text-align: left; }
.reveal-next-button span { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border: 3px solid white; font-weight: 900; font-size: 21px; }
.reveal-next-button b { font-size: 14px; line-height: 1.15; }
.reveal-next-button small { font-size: 11px; opacity: .78; }
.reveal-next-button.is-complete { background: var(--ink); box-shadow: 3px 3px 0 var(--red); }
@keyframes reveal-pixel-pop { 0% { opacity: 0; transform: scale(.72); } 65% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
.manager-empty { margin: 0; color: var(--muted); font-size: 12px; }
.editor-action-button { outline: 2px dashed #3067d6 !important; outline-offset: 3px; }

.editor-frame {
  position: absolute;
  overflow: visible;
  touch-action: none;
}
.editor-frame > .editor-image-content {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  mix-blend-mode: normal !important;
  display: block;
  box-sizing: border-box;
}
.editor-frame.is-circle, .editor-frame.is-circle > .editor-image-content { border-radius: 50%; }
.editor-shape-content { width: 100%; height: 100%; box-sizing: border-box; }
.editor-shape-content.shape-circle { border-radius: 50%; }
.editor-frame.is-editing { outline: 1px dashed rgba(198,0,53,.55); }
.editor-frame.is-editing.selected { outline: 3px solid var(--red); box-shadow: 0 10px 34px rgba(52,20,16,.18); }
.object-dragger {
  position: absolute;
  left: 6px;
  top: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 5px 8px;
  cursor: grab;
  opacity: .82;
}
.object-dragger:active { cursor: grabbing; }
.resize-handle {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 17px;
  height: 17px;
  border-radius: 4px;
  background: white;
  border: 3px solid var(--red);
  cursor: nwse-resize;
}
.object-delete {
  position: absolute;
  right: 5px;
  top: 5px;
  z-index: 5;
  width: 30px;
  height: 30px;
  border: 2px solid white;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0;
  background: #241d1a;
  color: white;
  font: 700 22px/1 Arial, sans-serif;
  box-shadow: 0 4px 12px rgba(36,29,26,.24);
  cursor: pointer;
  touch-action: manipulation;
}
.editor-custom-text {
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 24px 10px 8px;
  font-weight: 700;
  line-height: 1.3;
  white-space: pre-wrap;
  background: transparent;
}
.editor-custom-text:focus { outline: 0; background: transparent; }
.editor-icon { width: 100%; height: 100%; padding: 22px 5px 5px; display: grid; place-items: center; }
.editor-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.editor-motion-bounce { animation: editorBounce .75s cubic-bezier(.2,.75,.35,1.25) both; }
.editor-motion-pulse { animation: editorPulse 1.05s ease-in-out 2 both; }
.editor-motion-float { animation: editorFloat 2.2s ease-in-out infinite; }
.editor-motion-shake { animation: editorShake .58s ease-in-out both; }
.editor-motion-pop { animation: editorPop .62s cubic-bezier(.2,.9,.25,1.35) both; }
@keyframes editorBounce { 0% { transform: translateY(-30px) scale(.94); opacity: .25; } 55% { transform: translateY(8px) scale(1.03); opacity: 1; } 75% { transform: translateY(-4px); } 100% { transform: translateY(0) scale(1); } }
@keyframes editorPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); filter: drop-shadow(0 8px 14px rgba(198,0,53,.22)); } }
@keyframes editorFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes editorShake { 0%,100% { transform: translateX(0) rotate(0); } 20% { transform: translateX(-8px) rotate(-2deg); } 40% { transform: translateX(7px) rotate(2deg); } 60% { transform: translateX(-5px) rotate(-1deg); } 80% { transform: translateX(3px) rotate(1deg); } }
@keyframes editorPop { 0% { transform: scale(.2) rotate(-8deg); opacity: 0; } 70% { transform: scale(1.12) rotate(2deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }

.path-badge {
  position: absolute;
  z-index: 18;
  left: clamp(26px, 5.3vw, 92px);
  bottom: clamp(54px, 5vw, 80px);
  color: var(--muted);
  font-size: clamp(10px, .8vw, 13px);
  letter-spacing: .04em;
}
.path-badge b { color: var(--red); }

.route-map {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-content: center;
}
.route-pill {
  position: relative;
  min-height: 122px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255,253,248,.4);
}

.role-choice-slide h2 { margin-bottom: 12px; }
.role-paths { grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.role-paths .path { position: relative; grid-template-columns: 1fr; align-content: start; padding: 16px 12px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,248,.45); }
.role-paths .path:hover, .role-paths .path.selected { padding-left: 12px; transform: translateY(-6px); box-shadow: 0 16px 30px rgba(80,24,30,.11); }
.role-paths .path .index { position: absolute; right: 12px; top: 10px; font-size: 18px; }
.role-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 50%; background: var(--red); color: white; font-size: 22px; }
.role-paths h3 { color: var(--red); font-size: clamp(17px,1.45vw,24px); }
.role-paths p { font-size: clamp(12px,.92vw,15px); line-height: 1.4; }

.product-universe { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.product-universe > div, .business-types > div { position: relative; min-height: 105px; padding: 18px 18px 14px 72px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,253,248,.6); }
.product-universe > div:last-child { grid-column: 1 / -1; }
.product-universe i, .business-types i { position: absolute; left: 17px; top: 17px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: white; font-size: 20px; font-style: normal; }
.product-universe b, .product-universe span { display: block; }
.product-universe b { color: var(--red); font-size: 18px; }
.product-universe span { margin-top: 4px; color: var(--muted); font-size: 15px; }
.versus-grid { flex: 1; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.versus-card { position: relative; overflow: hidden; padding: 24px; border: 2px solid var(--red); border-radius: 28px; background: rgba(255,253,248,.58); }
.versus-card h3 { color: var(--red); font-size: clamp(24px,2.4vw,38px); }
.versus-card p, .versus-card li { font-size: clamp(13px,1.1vw,18px); }
.versus-card img { position: absolute; right: -5%; bottom: -10%; width: 42%; pointer-events: none; }
.versus-icon { float: right; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: white; font-size: 24px; }
.not-equal { align-self: center; color: var(--red); font-size: clamp(52px,7vw,100px); font-weight: 700; }
.business-hierarchy h2 { margin-bottom: 12px; }
.hierarchy-map { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 270px; gap: 18px; }
.hierarchy-business, .hierarchy-product, .hierarchy-brand { border: 2px solid var(--red); }
.hierarchy-business { min-height: 0; padding: 18px; border-radius: 30px; background: rgba(255,253,248,.5); }
.hierarchy-product { margin-top: 12px; padding: 14px; border-radius: 23px; background: #f6dbe1; }
.hierarchy-brand { position: relative; min-height: 105px; margin-top: 10px; padding: 12px 150px 12px 14px; border-radius: 18px; background: var(--red); color: white; overflow: hidden; }
.hierarchy-map span { display: block; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.hierarchy-map h3 { margin: 3px 0; font-size: clamp(18px, 1.65vw, 27px); }
.hierarchy-map p { margin: 0; color: var(--muted); font-size: clamp(12px, .95vw, 15px); }
.hierarchy-brand span, .hierarchy-brand p { color: white; }
.hierarchy-brand img { position: absolute; right: 0; bottom: -25%; width: 145px; height: 145px; object-fit: cover; border-radius: 50%; }
.hierarchy-note { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 22px; border-radius: 26px; background: var(--red); color: white; }
.hierarchy-note b { font-size: 22px; }
.hierarchy-note span { color: white; font-size: 15px; line-height: 1.5; letter-spacing: 0; }
.business-types { flex: 1; display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; align-items: center; }
.business-types > div { min-height: 190px; padding: 78px 18px 18px; }
.business-types h3 { color: var(--red); font-size: clamp(18px,1.7vw,28px); }
.business-types p { font-size: clamp(13px,1vw,17px); }
.icon-flow .flow-step { padding-top: 20px; }
.icon-flow .flow-step i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: white; font-style: normal; font-size: 20px; }
.icon-flow .flow-step span strong, .icon-flow .flow-step span small { display: block; }
.icon-flow .flow-step span small { margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.route-pill::after { content: "→"; position: absolute; right: -14px; top: 42%; color: var(--red); font-size: 20px; z-index: 2; }
.route-pill:nth-child(3n)::after, .route-pill:last-child::after { display: none; }
.route-pill small { color: var(--red); font-weight: 700; letter-spacing: .08em; }
.route-pill b { font-size: clamp(18px, 1.8vw, 30px); }
.route-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; }
.start-route {
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: white;
  padding: 13px 24px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(198,0,53,.2);
}
.start-route:hover { background: var(--red-dark); transform: translateY(-2px); }

.confetti { position: absolute; z-index: 50; width: 10px; height: 18px; border-radius: 2px; pointer-events: none; animation: pop .8s ease-out forwards; }
@keyframes pop { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(300deg); } }

.case-hero { padding-right: 52%; position: relative; }
.case-hero h2 { position: relative; z-index: 2; }
.case-hero .lead { position: relative; z-index: 2; }
.case-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 54%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.case-specs { position: relative; z-index: 2; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.case-specs span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--red); font-weight: 700; font-size: clamp(12px, 1vw, 16px); }

.customer-lab { flex: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; min-height: 0; }
.choice-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; align-content: start; }
.choice-group { border-top: 2px solid var(--red); padding-top: 10px; }
.choice-group h3 { color: var(--red); font-size: clamp(16px, 1.5vw, 24px); margin-bottom: 8px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 7px; }
.choice-chip { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 7px 11px; font-size: clamp(11px, .9vw, 15px); cursor: pointer; }
.choice-chip:hover, .choice-chip.selected { background: var(--red); color: white; border-color: var(--red); transform: translateY(-1px); }
.lab-result { background: var(--red); color: white; border-radius: 26px; padding: clamp(18px, 2.2vw, 34px); display: flex; flex-direction: column; justify-content: space-between; }
.lab-result small { opacity: .75; letter-spacing: .08em; }
.lab-result h3 { font-size: clamp(23px, 2.5vw, 40px); margin: 14px 0; }
.lab-result p { font-size: clamp(13px, 1.15vw, 19px); }
.quick-fill { align-self: flex-start; border: 1px solid rgba(255,255,255,.65); background: transparent; color: white; border-radius: 999px; padding: 9px 14px; cursor: pointer; font-weight: 700; }
.quick-fill:hover { background: white; color: var(--red); }

.persona-frame { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 28px; }
.persona-frame img { width: 100%; height: 100%; object-fit: cover; }
.persona-labels { position: absolute; inset: auto 0 0; display: grid; grid-template-columns: repeat(3, 1fr); background: linear-gradient(transparent, rgba(25,10,8,.86)); color: white; padding: 80px 22px 20px; gap: 16px; }
.persona-labels b { display: block; font-size: clamp(17px, 1.6vw, 27px); }
.persona-labels span { font-size: clamp(11px, .9vw, 15px); opacity: .88; }
.persona-labels .primary { color: #ffbacd; }

.channel-switch { display: flex; gap: 8px; margin-bottom: 18px; }
.channel-switch button { border: 1px solid var(--line); background: transparent; color: var(--red); border-radius: 999px; padding: 10px 18px; font-weight: 700; cursor: pointer; }
.channel-switch button.selected { background: var(--red); color: white; }
.channel-board { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.channel-column { border-top: 4px solid var(--red); padding-top: 20px; opacity: .34; transform: scale(.98); transition: opacity .2s ease, transform .2s ease; }
.channel-column.active { opacity: 1; transform: scale(1); }
.channel-column h3 { color: var(--red); font-size: clamp(28px, 3vw, 48px); }
.channel-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.channel-item b { display: block; color: var(--red); }
.channel-item span { color: var(--muted); font-size: clamp(12px, 1vw, 17px); }
.channel-summary { color: var(--red); font-weight: 700; margin-top: 12px; }
.channel-plan-slide h2 { margin-bottom: 10px; }
.platform-logo-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin: 9px 0 12px; }
.platform-mark { min-width: 0; display: flex; align-items: center; gap: 6px; padding: 7px 8px; border: 1px solid rgba(36,29,26,.12); border-radius: 12px; background: white; box-shadow: 0 4px 12px rgba(50,25,20,.05); }
.platform-mark i { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--platform-color, var(--red)); color: white; font-size: 13px; font-style: normal; font-weight: 800; }
.platform-mark b { min-width: 0; font-size: clamp(8px, .72vw, 11px); line-height: 1.15; overflow-wrap: normal; }
.platform-mark.shopee { --platform-color: #ee4d2d; }
.platform-mark.tiktok { --platform-color: #101010; }
.platform-mark.lazada { --platform-color: #24105e; }
.platform-mark.line { --platform-color: #06c755; }
.platform-mark.line i { font-size: 8px; }
.platform-mark.thaimart { --platform-color: #b51f2e; }
.platform-mark.amaze { --platform-color: #6b43d6; }
.platform-mark.website { --platform-color: #1d3e74; }

@media (max-width: 820px) and (orientation: portrait) {
  .deck { padding: 0; background: var(--paper); }
  .stage { width: 100vw; height: 100dvh; max-height: none; aspect-ratio: auto; box-shadow: none; }
  .app-modebar { position: fixed; top: auto; right: 10px; bottom: 12px; left: 10px; justify-content: center; padding: 5px; overflow: hidden; }
  .app-modebar button { flex: 1; min-width: 0; padding: 7px 3px; font-size: 11px; }
  .floating-change-path { top: 70px; right: 12px; }
  .launcher-panel { max-height: calc(100dvh - 24px); padding: 20px 16px; box-shadow: 6px 6px 0 var(--red); }
  .launcher-grid { grid-template-columns: 1fr; }
  .launcher-grid > button { min-height: 88px; }
  .slide { padding: 28px 24px 88px; overflow-y: auto; }
  .product-process-slide h2 { font-size: clamp(32px, 9vw, 46px); margin-bottom: 18px; }
  .process-map { display: block; padding: 0; }
  .process-phase { display: block; margin-bottom: 18px; padding: 14px; }
  .phase-label { border-right: 0; border-bottom: 1px solid currentColor; padding: 0 0 9px; margin-bottom: 10px; }
  .phase-track, .phase-track.reverse { grid-template-columns: 1fr; gap: 9px; direction: ltr; }
  .phase-track article { min-height: 66px; }
  .phase-track article:not(:last-child)::after, .phase-track.reverse article:not(:last-child)::after { content: "↓"; left: auto; right: 12px; top: auto; bottom: -16px; transform: none; color: var(--red); }
  .phase-track article b { font-size: 14px; }
  .phase-track article span { font-size: 12px; }
  .process-turn { display: none; }
  .topline { margin-bottom: 28px; }
  h1 { font-size: clamp(42px, 13.2vw, 68px); line-height: 1; }
  h2 { font-size: clamp(34px, 9.6vw, 52px); line-height: 1.08; }
  h3 { line-height: 1.22; }
  .lead { font-size: 18px; line-height: 1.55; }
  .quote { font-size: clamp(34px, 10.8vw, 56px); line-height: 1.08; }
  .cover h1 { line-height: 1; }
  .hero-hands { height: 47%; width: 160%; left: -30%; }
  .split, .calculator { grid-template-columns: 1fr; align-items: start; }
  .big-number { font-size: 128px; }
  .paths, .checklist, .data-list, .lens, .models { grid-template-columns: 1fr; }
  .flow, .steps-row, .timeline { grid-template-columns: 1fr 1fr; gap: 12px; }
  .route-map { grid-template-columns: 1fr 1fr; }
  .route-pill::after { display: none; }
  .path-badge { left: 24px; bottom: 65px; max-width: 52vw; }
  .change-path { padding: 7px 10px; }
  .edit-mode-button { padding: 7px 10px; }
  .editor-toolbar { top: auto; left: 8px; right: 8px; bottom: 70px; width: auto; max-height: 48dvh; padding: 12px; }
  .editor-toolbar-title { margin-bottom: 8px; font-size: 12px; }
  .editor-toolbar-title span { display: none; }
  .editor-quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-quick-actions button { min-height: 44px; font-size: 12px; }
  .editor-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .editor-tools button, .editor-upload, .editor-number-control, .editor-color-control, .editor-select-control { min-width: 0; min-height: 44px; padding: 6px 4px; font-size: 10px; }
  .editor-select-control { grid-column: span 3; }
  .manager-drawer { left: 10px; right: 10px; top: 70px; bottom: 76px; transform: none; width: auto; max-height: none; padding: 16px; }
  .icon-drawer { left: 10px; right: 10px; top: 80px; bottom: 76px; transform: none; width: auto; max-height: none; padding: 14px; }
  .icon-grid { grid-template-columns: repeat(5, 1fr); }
  .editor-toolbar.is-collapsed { left: 8px; right: auto; bottom: 70px; width: min(260px, calc(100vw - 16px)); }
  .reveal-next-button { position: fixed; right: 16px; bottom: 76px; min-width: 196px; padding: 9px 12px; }
  .role-paths { grid-template-columns: 1fr; }
  .role-choice-slide { overflow-y: auto; }
  .role-paths .path { min-height: 140px; }
  .role-choice-slide h2, .business-vs-brand h2, .business-hierarchy h2, .service-system-slide h2 { font-size: clamp(32px, 8.8vw, 48px); }
  .role-paths h3 { font-size: 21px; line-height: 1.2; }
  .role-paths p { font-size: 14px; line-height: 1.5; }
  .product-universe, .versus-grid, .business-types { grid-template-columns: 1fr; }
  .product-universe > div:last-child { grid-column: auto; }
  .everything-product, .business-vs-brand, .business-hierarchy, .service-examples { overflow-y: auto; }
  .hierarchy-map { grid-template-columns: 1fr; }
  .hierarchy-business { padding: 14px; }
  .hierarchy-product { padding: 12px; }
  .hierarchy-brand { padding-right: 105px; }
  .hierarchy-brand img { width: 105px; height: 105px; }
  .hierarchy-note { padding: 18px; }
  .not-equal { justify-self: center; line-height: .7; }
  .business-types > div { min-height: 140px; }
  .flow-step span { font-size: 16px; line-height: 1.35; }
  .icon-flow .flow-step span small { font-size: 12px; line-height: 1.35; }
  .compare th, .compare td { font-size: 13px; line-height: 1.35; padding: 9px 7px; }
  .case-hero { padding-right: 24px; padding-bottom: 48%; }
  .case-image { top: auto; bottom: 0; width: 100%; height: 45%; }
  .customer-lab { grid-template-columns: 1fr; overflow-y: auto; }
  .choice-groups { grid-template-columns: 1fr; }
  .lab-result { min-height: 260px; }
  .persona-frame { min-height: 520px; }
  .persona-frame img { object-position: center; }
  .persona-labels { grid-template-columns: 1fr; padding-top: 110px; }
  .channel-board { grid-template-columns: 1fr; overflow-y: auto; }
  .channel-plan-slide { overflow-y: auto; }
  .platform-logo-strip { grid-template-columns: repeat(2, 1fr); }
  .platform-mark:last-child { grid-column: 1 / -1; }
  .platform-mark b { font-size: 12px; }
  .flow-step { min-height: 130px; }
  .flow-step::after { display: none; }
  .lens > div { min-height: 160px; border-radius: 24px; }
  .score { grid-template-columns: 1fr 1fr; }
  .calc-inputs { grid-template-columns: 1fr 1fr; }
  .calc-results { min-height: 250px; }
  .cream-cost-journey { overflow-y: auto; }
  .cost-journey-head { grid-template-columns: 1fr; gap: 6px; }
  .cost-journey-head h2 { font-size: clamp(34px, 10vw, 48px); }
  .cost-product { min-width: 0; width: 100%; padding-right: 14px; }
  .cost-product img { width: 76px; height: 76px; }
  .cost-road { overflow: visible; grid-template-columns: 1fr; gap: 10px; padding-bottom: 18px; }
  .cost-stage::after { content: "↓"; right: 20px; top: auto; bottom: -16px; }
  .cost-stage:nth-child(4)::after { display: block; }
  .cost-stage:last-child::after { display: none; }
  .cost-stage h3 { font-size: 19px; }
  .cost-chip { min-height: 32px; padding: 6px 10px; font-size: 12px; }
  .presenter-slide { overflow-y: auto; }
  .presenter-layout { grid-template-columns: 1fr; }
  .presenter-photo-slot { min-height: 300px; }
  .presenter-points { grid-template-columns: 1fr; }
  .compare th:nth-child(4), .compare td:nth-child(4) { display: none; }
  .nav { left: 18px; right: 18px; bottom: 18px; }
}

@media (max-height: 620px) and (orientation: landscape) {
  .slide { padding-top: 24px; padding-bottom: 62px; }
  .topline { margin-bottom: 14px; }
  h2 { margin-bottom: 14px; }
  .flow-step { min-height: 110px; padding: 16px; }
  .lens > div { min-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { animation: none; }
  .progress { transition: none; }
}

/* Drag handles must capture touch gestures instead of scrolling the page. */
.object-dragger, .resize-handle { touch-action: none; user-select: none; }
.text-move-handle { z-index: 95; min-height: 28px; min-width: 52px; opacity: 1; }
.text-move-handle[hidden] { display: none; }

.hero-hands.product-variety, .editor-frame > .editor-image-content.product-variety { object-fit: contain !important; object-position: bottom center !important; }

/* Compact floating editor: scroll tools while keeping its handle and actions visible. */
.editor-toolbar {
  left: 12px; right: auto; bottom: 12px;
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 9px; border-radius: 14px; overflow: visible;
}
.editor-toolbar-title { gap: 6px; font-size: 11px; margin-bottom: 7px; }
.editor-toolbar-title button { min-height: 28px; padding: 4px 8px; font-size: 10px; }
.editor-toolbar-title b { flex: 1; }
.editor-toolbar-title span { font-size: 9px; }
.editor-quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-bottom: 7px; }
.editor-quick-actions button { min-height: 32px; font-size: 10px; padding: 3px; border-radius: 7px; }
.editor-tools {
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px;
  max-height: min(112px, 24dvh); overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px;
}
.editor-tools button, .editor-tools .editor-upload, .editor-tools .editor-number-control,
.editor-tools .editor-color-control, .editor-tools .editor-select-control {
  min-width: 0; min-height: 32px; padding: 4px; font-size: 10px; border-radius: 7px;
}
.editor-toolbar.is-collapsed { width: min(300px, calc(100vw - 24px)); padding: 8px; }
@media (max-width: 820px) and (orientation: portrait) {
  .editor-toolbar { left: 8px; bottom: 70px; width: calc(100vw - 16px); }
  .editor-tools { max-height: min(100px, 20dvh); }
  .editor-tools button, .editor-tools .editor-upload, .editor-tools .editor-number-control,
  .editor-tools .editor-color-control, .editor-tools .editor-select-control { min-height: 40px; }
  .editor-quick-actions button { min-height: 40px; }
}

.editor-toolbar .editor-weight-row { display: grid; grid-template-columns: auto 1fr; min-height: 34px; margin-bottom: 7px; padding: 5px 8px; gap: 12px; }
.editor-toolbar .editor-weight-row select { min-height: 26px; }
.editor-toolbar.is-collapsed .editor-weight-row { display: none; }

.editor-toolbar.is-resized:not(.is-collapsed) {
  display: flex; flex-direction: column;
  width: min(var(--toolbar-width), calc(100vw - 16px));
  height: min(var(--toolbar-height), calc(100dvh - 16px));
  max-height: calc(100dvh - 16px);
}
.editor-toolbar.is-resized > .editor-toolbar-title,
.editor-toolbar.is-resized > .editor-quick-actions,
.editor-toolbar.is-resized > .editor-weight-row { flex-shrink: 0; }
.editor-toolbar.is-resized:not(.is-collapsed) > .editor-tools { flex: 1; min-height: 0; max-height: none; align-content: start; }
.toolbar-resizer { position: absolute; z-index: 5; touch-action: none; user-select: none; }
.toolbar-resizer.resize-n, .toolbar-resizer.resize-s { left: 12px; right: 12px; height: 10px; cursor: ns-resize; }
.toolbar-resizer.resize-n { top: -5px; }
.toolbar-resizer.resize-s { bottom: -5px; }
.toolbar-resizer.resize-e, .toolbar-resizer.resize-w { top: 12px; bottom: 12px; width: 10px; cursor: ew-resize; }
.toolbar-resizer.resize-e { right: -5px; }
.toolbar-resizer.resize-w { left: -5px; }
.toolbar-resizer.resize-ne, .toolbar-resizer.resize-nw, .toolbar-resizer.resize-se, .toolbar-resizer.resize-sw { width: 20px; height: 20px; }
.toolbar-resizer.resize-ne { top: -5px; right: -5px; cursor: nesw-resize; }
.toolbar-resizer.resize-nw { top: -5px; left: -5px; cursor: nwse-resize; }
.toolbar-resizer.resize-se { bottom: -5px; right: -5px; cursor: nwse-resize; color: var(--red); font-size: 16px; }
.toolbar-resizer.resize-sw { bottom: -5px; left: -5px; cursor: nesw-resize; }
.editor-toolbar.is-collapsed > .toolbar-resizer { display: none; }

.cover > .topline > span:first-child { font-family: 'Kanit', sans-serif; font-weight: 700; }

.cover > .cover-product-background { z-index: 0 !important; }
.cover > .topline { position: relative; z-index: 2; }

.editor-toolbar .editor-line-row { display: grid; grid-template-columns: 1fr 64px auto; gap: 8px; min-height: 34px; margin-bottom: 7px; padding: 5px 8px; flex-shrink: 0; }
.editor-toolbar .editor-line-row input { width: 64px; }
.editor-toolbar.is-collapsed .editor-line-row { display: none; }

.stage.editing > .slide { animation: none; }

.everything-product .heading-translation { font-family: 'Anuphan', sans-serif; font-size: clamp(18px, 2vw, 28px); font-weight: 500; line-height: 1.3; color: var(--red); margin: -10px 0 22px; }

.editor-group-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; margin-bottom: 7px; flex-shrink: 0; }
.editor-group-actions button { border: 1px solid var(--line); border-radius: 7px; color: var(--red); background: white; min-height: 32px; font-size: 11px; }
.editor-group-actions button:disabled { opacity: .35; }
.editor-group-actions button[aria-pressed="true"] { background: var(--red); color: white; }
.editor-group-actions small { grid-column: 1 / -1; color: var(--muted); }
.editor-toolbar.is-collapsed .editor-group-actions { display: none; }
.editor-marquee-box, #editor-group-box { position: absolute; z-index: 89; border: 2px dashed var(--red); pointer-events: none; }
.editor-marquee-box { background: rgba(198,0,53,.1); }
#editor-group-box > button { pointer-events: auto; top: -30px; left: 0; white-space: nowrap; }
#editor-group-box[hidden] { display: none; }
.marquee-mode, .marquee-mode .slide, .marquee-mode .slide * { cursor: crosshair; touch-action: none; user-select: none; }
.multi-selection .editor-frame.selected > .resize-handle, .multi-selection .editor-frame.selected > .object-dragger, .multi-selection .editor-frame.selected > .object-delete { display: none; }

.editor-container.selected { outline: 2px dashed var(--red); outline-offset: 3px; }
.editor-container.selected .editor-text { outline-color: transparent; }

.group-reveal-hidden { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.group-reveal-trigger { cursor: pointer; }
.group-reveal-trigger:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.group-link-settings { padding: 12px; margin-bottom: 15px; border: 1px solid var(--line); border-radius: 12px; }
.group-link-settings select { width: 100%; padding: 10px; font: inherit; color: var(--red); background: white; border: 1px solid var(--line); border-radius: 8px; }
.group-link-settings p { font-size: 14px; margin: 0 0 10px; }

body > .manager-drawer { position: fixed; z-index: 220; left: 50%; top: 50%; width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); transform: translate(-50%, -50%); box-shadow: 0 22px 70px rgba(64,31,24,.28); }
.editor-dialog-close { position: sticky; top: 0; z-index: 2; display: block; margin: 0 0 12px auto; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-soft); color: var(--red); font: inherit; cursor: pointer; }

.group-reveal-controls { position: absolute; z-index: 80; right: 3%; bottom: 10%; display: flex; gap: 8px; flex-wrap: wrap; max-width: 85%; }
.group-reveal-controls button { padding: 10px 18px; border: 2px solid var(--red); border-radius: 999px; background: var(--paper-soft); color: var(--red); font: inherit; font-weight: 700; cursor: pointer; }

/* Keep navigation without a line crossing slide content. */
.nav > .progress-track { display: none; }
.nav > .page-no { grid-column: 3; }
.nav { pointer-events: none; }
.nav .nav-controls { pointer-events: auto; }

/* Keep route labels in the navigation row, apart from slide content. */
.nav > .path-badge { position: static; grid-column: 2; grid-row: 1; min-width: 0; max-width: none; font-size: 10px; line-height: 1.3; }
.nav > .page-no { grid-row: 1; }
.slide:has(> .route-action) { padding-top: clamp(24px, 3vw, 48px); padding-bottom: 86px; }
.slide:has(> .route-action) > .topline { margin-bottom: 16px; }
.slide:has(> .route-action) > h2 { font-size: clamp(30px, 4vw, 64px); margin-bottom: 18px; }
.slide:has(> .route-action) > .route-map { min-height: 0; gap: 12px; }
.slide:has(> .route-action) .route-pill { min-height: 86px; padding: 14px 18px; }
.slide:has(> .route-action) > .route-action { flex-shrink: 0; margin-top: 12px; gap: 14px; }
.route-action > p { margin: 0; font-size: clamp(12px, 1.2vw, 17px); line-height: 1.4; flex: 1; }
.route-action > button { flex-shrink: 0; font-size: clamp(12px, 1.1vw, 16px); padding: 10px 18px; }
@media (max-width: 820px) and (orientation: portrait) {
  .stage:has(.route-action) > .nav { bottom: 68px; }
  .slide:has(> .route-action) { padding-bottom: 132px; }
  .slide:has(> .route-action) > h2 { font-size: clamp(30px, 8vw, 44px); }
  .slide:has(> .route-action) > .route-map { flex: none; }
  .slide:has(> .route-action) > .route-action { flex-direction: column; align-items: stretch; }
  .nav > .path-badge { font-size: 9px; }
}

.stage.editing .business-hierarchy .editor-text { position: relative; z-index: 30; pointer-events: auto; }
.stage.editing .business-hierarchy .editor-container { cursor: default; }

/* Remove the requested side note without shifting saved editor text IDs. */
.business-hierarchy .hierarchy-note { display: none !important; }

#editor-group-box > .container-delete { position: absolute; left: auto; right: 0; top: -32px; padding: 5px 10px; border: 0; border-radius: 999px; color: white; background: #241d1a; cursor: pointer; font-size: 12px; }
#editor-group-box > .container-delete[hidden] { display: none; }

/* Removed PRODUCT block on the hierarchy slide at user request. */
.business-hierarchy .hierarchy-product { display: none !important; }

/* Remove the BRAND block requested on slide 41. */
.business-hierarchy .hierarchy-brand { display: none !important; }

.editor-tools .editor-color-control { min-height: 44px; cursor: pointer; }
.editor-color-control input[type=color] { width: 100%; min-width: 44px; height: 34px; border-radius: 6px; }

/* Keep the selected object move handle above overlapping slide objects. */
.stage.editing:has(#editor-group-box:not([hidden])) .editor-frame.selected > .object-dragger { visibility: hidden; }

/* Text boxes grow with their content instead of scrolling internally. */
.editor-frame:has(> .editor-custom-text) { height: auto !important; min-height: var(--text-frame-height, 0px); }
.editor-frame > .editor-custom-text { height: auto; overflow: visible; overflow-wrap: anywhere; }

.text-width-handle { position:absolute; top:50%; transform:translateY(-50%); width:12px; height:26px; padding:0; border:2px solid var(--red); border-radius:4px; background:white; pointer-events:auto; cursor:ew-resize; touch-action:none; }
.text-width-handle.width-left { left:-7px; }
.text-width-handle.width-right { right:-7px; }
.text-width-handle[hidden] { display:none; }

#editor-group-box > .text-width-handle { top:50%; }
#editor-group-box > .width-left { left:-7px; right:auto; }
#editor-group-box > .width-right { left:auto; right:-7px; }

/* One layout container keeps individual and group reveal controls apart. */
.reveal-controls-dock { position:absolute; z-index:80; right:3%; bottom:12%; display:flex; flex-direction:column; align-items:flex-end; gap:12px; max-width:85%; max-height:35%; overflow:auto; padding:6px 8px; }
.reveal-controls-dock > .reveal-next-button, .reveal-controls-dock > .group-reveal-controls { position:static; margin:0; max-width:100%; flex-shrink:0; }
.reveal-controls-dock > .group-reveal-controls { justify-content:flex-end; }

/* Clear typography for the business-system diagram. */
.business-hierarchy > h2 { font-family: 'Kanit', 'Anuphan', sans-serif; max-width: 62%; letter-spacing: 0; line-height:1.25; }
.business-hierarchy .editor-custom-text { font-family:'Anuphan',sans-serif; letter-spacing:0; }

.business-diagram-refined .hierarchy-map { display:none; }
.business-diagram-refined > h2 { max-width:26%; }
.editor-custom-text.diagram-label { padding:0 4px; min-height:var(--text-frame-height); display:flex; align-items:center; justify-content:center; text-align:center; white-space:pre-wrap; }
.stage:has(.business-diagram-refined) .reveal-controls-dock { bottom:8%; max-height:12%; flex-direction:row; align-items:center; max-width:89%; }
.stage:has(.business-diagram-refined) .reveal-next-button { min-width:160px; padding:6px 10px; box-shadow:none; border-radius:12px; }
.stage:has(.business-diagram-refined) .group-reveal-controls button { font-size:12px; padding:7px 10px; }

#role-chooser > [data-role=brand] { order:1; }
#role-chooser > [data-role=business] { order:2; }
#role-chooser > [data-role=affiliate] { order:3; }
#role-chooser > [data-role=service] { order:4; }
#role-chooser > .interaction-result { order:5; }

/* Reserve footer space on the channel comparison slide. */
@media (min-width:821px), (orientation:landscape) {
.channel-plan-slide { padding-bottom:76px; }
.channel-plan-slide .channel-board { min-height:0; }
.channel-plan-slide .channel-column { padding-top:10px; }
.channel-plan-slide .channel-column h3 { font-size:clamp(24px,2.6vw,36px); margin:0 0 8px; }
.channel-plan-slide .channel-item { padding:8px 0; }
.channel-plan-slide .channel-summary { flex-shrink:0; margin:10px 0 0; font-size:clamp(12px,1.25vw,17px); line-height:1.4; }
.channel-plan-slide .channel-switch { margin-bottom:12px; }
}


/* Readable type scale for the unit-economics explanation. */
.unit-economics-slide { padding-bottom:80px; }
.unit-economics-slide > h2 { font-family:'Kanit','Anuphan',sans-serif; font-size:clamp(30px,3.4vw,44px) !important; line-height:1.18 !important; margin-bottom:20px; }
.unit-economics-slide .formula { flex:1; min-height:0; padding:24px 28px; font-family:'Anuphan',sans-serif; font-size:clamp(16px,1.7vw,22px) !important; line-height:1.65 !important; font-weight:400; text-align:left; color:var(--ink); border-width:1px; border-radius:20px; }
.unit-economics-slide .formula .editor-text { font-size:inherit !important; line-height:inherit !important; }
.unit-economics-slide .formula b { color:var(--red); font-weight:700; }

.mode-play #validate-check .click-to-reveal-answer, .mode-present #validate-check .click-to-reveal-answer { visibility:visible !important; opacity:1 !important; pointer-events:auto !important; }
.mode-play #validate-check .click-to-reveal-answer:not(.answer-shown) > *, .mode-present #validate-check .click-to-reveal-answer:not(.answer-shown) > * { visibility:hidden !important; }
#validate-check .click-to-reveal-answer:not(.answer-shown)::after { content:'คลิกเพื่อแสดง'; color:var(--red); font-size:14px; }
#validate-check .answer-shown > * { visibility:visible !important; opacity:1 !important; }
#validate-check .answer-shown p { animation:pop .4s ease-out; }
.mode-edit #validate-check .click-to-reveal-answer::after { display:none; }

.brand-journey-card h3 { transition:color .25s ease; }
.brand-journey-card.brand-transformed { background:#f6dbe1; border-color:var(--red); }
.brand-journey-card.brand-transformed h3 { animation:pop .45s ease-out; }
.brand-journey-start { margin-left:14px; padding:9px 16px; background:var(--red); color:white; border:0; border-radius:999px; font:inherit; cursor:pointer; }

/* Uploaded videos retain native playback controls in both editor and presentation. */
.editor-frame > .editor-video-content { display:block; width:100%; height:100%; object-fit:contain; background:#111; border-radius:8px; touch-action:auto; }
.editor-frame:has(> .editor-video-content) { touch-action:auto; }
.editor-video-error { position:absolute; inset:15% 5% auto; background:#fff; color:#a00028; padding:12px; border-radius:8px; }

#editor-video-url { width:250px; max-width:100%; padding:7px 10px; border:1px solid #c60035; border-radius:6px; }
iframe.editor-video-content { border:0; }

.editor-link-button { width:100%; height:100%; display:flex; align-items:center; justify-content:center; gap:12px; background:#c60035; color:white; border:0; border-radius:16px; font:700 clamp(16px,2vw,28px) sans-serif; cursor:pointer; }
.editor-link-button svg { width:28px; height:28px; fill:none; stroke:currentColor; stroke-width:2; }
.website-link-object { cursor:pointer; }
.website-link-object:focus-visible { outline:3px solid #c60035; outline-offset:5px; }
.website-dialog { width:92vw; max-width:1400px; height:88vh; max-height:92vh; padding:0; border:0; border-radius:16px; background:white; color:#222; }
.website-dialog[open] { display:flex; flex-direction:column; }
.website-dialog::backdrop { background:rgba(0,0,0,.65); }
.website-dialog header { display:flex; align-items:center; gap:16px; padding:12px 18px; flex-wrap:wrap; }
.website-dialog header strong { margin-right:auto; }
.website-dialog header button { background:#c60035; color:white; border:0; border-radius:8px; padding:10px 16px; cursor:pointer; }
.website-dialog p { margin:0; padding:8px 18px; font-size:13px; background:#f6f1eb; }
.website-dialog iframe { width:100%; flex:1; min-height:0; border:0; background:white; }
#editor-object-url, #editor-button-label { max-width:220px; padding:7px; }

/* Keep the icon picker above the compact editor toolbar. */
#editor-icon-drawer { position:absolute; left:0; right:auto; top:auto; bottom:calc(100% + 8px); transform:none; width:min(420px, calc(100vw - 36px)); max-height:38vh; box-sizing:border-box; }
#editor-object-url, #editor-button-label { width:100%; min-width:0; box-sizing:border-box; }

.money-drop-waiting { visibility:hidden !important; pointer-events:none !important; }
.money-drop-trigger { cursor:pointer; }
.money-drop-trigger:focus-visible { outline:2px dashed #c60035; outline-offset:6px; }
.money-drop-ghost { position:fixed; z-index:1000; pointer-events:none; margin:0; padding:0; transform-origin:center; }

.route-card-select { position:absolute; right:6px; top:4px; z-index:40; background:#c60035; color:white; border-radius:10px; padding:3px 7px; font:11px sans-serif; cursor:pointer; }

/* Larger readable cost labels, with wrapping inside each cost card. */
#cost-road .cost-chip { font-size:clamp(15px,1.2vw,18px); line-height:1.45; font-weight:500; min-height:38px; padding:7px 10px; max-width:100%; white-space:normal; overflow-wrap:anywhere; border-radius:12px; }
#cost-road .cost-stage > div { gap:7px; }

/* Thai affiliate case studies on slide 28. Original route content remains recoverable. */
.affiliate-examples-slide > h2 { font-size: clamp(26px, 3.4vw, 48px); line-height: 1.12; }
.affiliate-examples-slide > h2 br { display:none; }
.affiliate-examples-slide > .route-map { visibility:hidden; }
.affiliate-examples-slide > .route-action { position:absolute; bottom: 8%; left:5%; right:5%; }
.affiliate-examples-slide > .route-action .muted { display:none; }

.editor-crop-viewport {position:relative;width:100%;height:100%;overflow:hidden;border-radius:inherit;pointer-events:none}
.image-crop-dialog {width:min(760px,90vw);max-height:90vh;overflow:auto;border:1px solid #c60035;border-radius:20px;background:#f4eee4;color:#241d1a;padding:24px}
.image-crop-dialog::backdrop{background:#241d1aaa}
.image-crop-dialog h2{font-size:26px;margin:0;color:#c60035}
.crop-preview{position:relative;width:fit-content;margin:12px auto;touch-action:none;cursor:crosshair;overflow:hidden;line-height:0}
.crop-preview img{display:block;max-width:100%;max-height:45vh;width:auto;height:auto;user-select:none}
.crop-selection{position:absolute;border:2px solid #c60035;box-shadow:0 0 0 2000px #0008;pointer-events:none}
.crop-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px}.crop-inputs label{display:flex;align-items:center;gap:8px}.crop-inputs input{width:100%;min-width:40px;accent-color:#c60035}.crop-inputs output{min-width:55px}
.image-crop-dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.image-crop-dialog button{padding:10px 18px;border:1px solid #c60035;border-radius:10px;color:#c60035;background:#fff;cursor:pointer}.image-crop-dialog [data-save]{background:#c60035;color:white}

.blank-canvas { position:relative; }
.blank-canvas-remove-frame {position:absolute;right:8px;top:8px;z-index:30;border:0;border-radius:20px;background:#241d1a;color:white;padding:7px 12px;font:600 13px sans-serif;cursor:pointer;}

.stage.editor-dragging-object iframe, .stage.editor-dragging-object video {pointer-events:none !important;}

/* Keep MOVE inside the object when its top edge meets the slide boundary. */
.editor-frame.is-editing > .object-dragger { top:8px; left:8px; transform:none; z-index:40; }
