:root {
  color-scheme: light;
  --paper: #f5f3ec;
  --surface: #fffdf8;
  --surface-2: #ebe8de;
  --ink: #171814;
  --ink-2: #484a43;
  --muted: #777a70;
  --line: #d5d2c8;
  --lime: #d9ff43;
  --lime-ink: #233000;
  --orange: #ff6b35;
  --blue: #405ee7;
  --red: #c9452d;
  --green: #167454;
  --sidebar: 280px;
  --topbar: 62px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(25, 27, 20, .08);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #11120f;
  --surface: #191a16;
  --surface-2: #24251f;
  --ink: #f2f1e9;
  --ink-2: #c2c4b9;
  --muted: #8e9185;
  --line: #35372f;
  --lime: #c9f33c;
  --lime-ink: #1c2600;
  --orange: #ff7544;
  --blue: #7790ff;
  --red: #ff846e;
  --green: #65d4a8;
  --shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 20px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 2000;
  left: 1rem;
  top: -10rem;
  padding: .7rem 1rem;
  border-radius: .5rem;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { top: 1rem; }

.reading-progress {
  position: fixed;
  z-index: 1200;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
}
.reading-progress span { display: block; width: 0; height: 100%; background: var(--orange); transition: width .12s linear; }

.topbar {
  position: fixed;
  z-index: 1100;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.1rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}
.brand { display: flex; gap: .5rem; align-items: baseline; text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.brand strong { font-size: 1rem; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: .45rem; }
.icon-button, .text-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.icon-button { width: 40px; height: 40px; }
.text-button { padding: .45rem .8rem; font-size: .82rem; font-weight: 700; }
.menu-button { display: none; }

.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; padding-top: var(--topbar); }
.sidebar {
  position: fixed;
  z-index: 900;
  top: var(--topbar);
  bottom: 0;
  left: 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--paper);
  overflow-y: auto;
}
.sidebar-intro { padding: 1.35rem 1.15rem 1.15rem; border-bottom: 1px solid var(--line); }
.sidebar-intro .edition {
  display: inline-flex;
  margin-bottom: .85rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .03em;
}
.sidebar-intro strong { display: block; font-size: .92rem; line-height: 1.45; }
.sidebar-intro p { margin: .3rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.toc { padding: .65rem; }
.toc a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: center;
  gap: .2rem;
  padding: .52rem .6rem;
  border-radius: 9px;
  color: var(--ink-2);
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}
.toc a span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .68rem; }
.toc a:hover { background: var(--surface-2); }
.toc a.active { background: var(--ink); color: var(--paper); }
.toc a.active span { color: var(--lime); }
.toc a.complete::after { content: "✓"; margin-left: auto; color: var(--green); }
.sidebar-status { margin-top: auto; padding: .9rem 1.15rem 1.15rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.sidebar-status span { color: var(--ink); font-weight: 800; }
.sidebar-status button { float: right; border: 0; background: transparent; color: var(--muted); font-size: .7rem; cursor: pointer; text-decoration: underline; }

.book { grid-column: 2; width: 100%; min-width: 0; }
.chapter {
  width: min(100% - 3rem, 980px);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) 0;
  border-bottom: 1px solid var(--line);
}
.chapter:not(.cover) { min-height: 75vh; }
.chapter-head { max-width: 760px; margin-bottom: 2.7rem; }
.eyebrow { margin: 0 0 .75rem; color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; letter-spacing: -.035em; }
h2 { margin-bottom: 1rem; font-size: clamp(2.05rem, 5vw, 4.2rem); line-height: 1.12; }
h3 { line-height: 1.3; }
.lead { margin: 0; color: var(--ink-2); font-size: clamp(1.02rem, 1.2vw, 1.2rem); line-height: 1.75; }
.section-title { margin: 4rem 0 1.5rem; font-size: 1.55rem; }

.cover {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - var(--topbar));
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .65fr);
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  border-bottom: 0;
  background: #121510;
  color: #f6f6ee;
  overflow: hidden;
}
.cover-grid {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(120deg, black 0%, transparent 72%);
}
.cover::before {
  content: "";
  position: absolute;
  width: 26rem;
  height: 26rem;
  right: 9%;
  top: 7%;
  border-radius: 50%;
  background: var(--lime);
  filter: blur(1px);
  opacity: .95;
}
.cover-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 7rem);
}
.cover .eyebrow { color: #aeb4a3; }
.cover h1 { margin: 0; max-width: 760px; font-size: clamp(3.5rem, 8vw, 7.3rem); line-height: .94; letter-spacing: -.07em; }
.cover h1 em { color: var(--lime); font-style: normal; }
.cover-subtitle { margin: 2rem 0 0; color: #c4c8bc; font-size: clamp(1.05rem, 1.8vw, 1.38rem); line-height: 1.55; }
.cover-contract {
  width: min(100%, 650px);
  margin-top: 2.2rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255,255,255,.17);
  border-left: 5px solid var(--orange);
  background: rgba(255,255,255,.06);
}
.cover-contract strong { display: block; margin-bottom: .2rem; }
.cover-contract span { color: #c4c8bc; font-size: .9rem; }
.cover-meta { display: flex; gap: 1rem; margin-top: 2rem; color: #8f9587; font-size: .72rem; }
.cover-index {
  position: relative;
  z-index: 2;
  align-self: end;
  display: grid;
  padding: 1.2rem;
  background: rgba(18,21,16,.84);
  backdrop-filter: blur(18px);
}
.cover-index div { display: grid; grid-template-columns: 2.2rem 1fr; gap: .1rem .65rem; padding: 1.1rem .8rem; border-top: 1px solid rgba(255,255,255,.14); }
.cover-index b { grid-row: 1 / span 2; color: var(--lime); font-size: .75rem; font-variant-numeric: tabular-nums; }
.cover-index span { color: #959b8e; font-size: .7rem; }
.cover-index strong { font-size: 1rem; }

.thesis-card {
  margin: 0 0 2rem;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}
.thesis-card p { margin: 0; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.thesis-card strong { display: block; margin: .3rem 0; color: var(--lime); font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.35; letter-spacing: -.04em; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.panel, .definition-card, .experiment-card, .case-intro {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.panel h3 { margin-bottom: .8rem; }
.check-list, .x-list { margin: 0; padding: 0; list-style: none; }
.check-list li, .x-list li { position: relative; padding-left: 1.55rem; margin: .45rem 0; }
.check-list li::before, .x-list li::before { position: absolute; left: 0; font-weight: 900; }
.check-list li::before { content: "✓"; color: var(--green); }
.x-list li::before { content: "×"; color: var(--red); }
.good-panel { border-top: 5px solid var(--green); }
.stop-panel { border-top: 5px solid var(--red); }
.definition-card { margin: 1rem 0 0; border-left: 5px solid var(--lime); }
.definition-card.orange { border-left-color: var(--orange); }
.definition-card h3 { margin: .8rem 0 .4rem; font-size: 1.7rem; }
.definition-card p { margin: 0; color: var(--ink-2); }
.path-switcher { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; margin-top: 2rem; }
.path-switcher a { padding: 1.15rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; transition: transform .2s, border-color .2s; }
.path-switcher a:hover { transform: translateY(-3px); border-color: var(--orange); }
.path-switcher span { display: block; color: var(--orange); font-size: .72rem; font-weight: 800; }
.path-switcher strong { display: block; margin: .2rem 0; }
.path-switcher small { color: var(--muted); }

.chapter-done {
  display: block;
  margin: 3rem 0 0 auto;
  padding: .7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}
.chapter-done.complete { border-color: var(--green); background: color-mix(in srgb, var(--green) 12%, var(--surface)); color: var(--green); font-weight: 800; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 1.1rem 2.5rem 1.1rem 0; cursor: pointer; font-weight: 760; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: .4rem; top: .9rem; font-size: 1.35rem; color: var(--muted); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { max-width: 760px; margin: -.2rem 0 1.2rem; color: var(--ink-2); }

.process-flow, .funnel-row, .evidence-ladder, .formula {
  display: flex;
  align-items: stretch;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .5rem;
}
.process-flow div { flex: 1 0 155px; padding: 1rem; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.process-flow div.human { border-color: var(--orange); }
.process-flow div span { display: block; color: var(--orange); font-size: .66rem; font-weight: 850; text-transform: uppercase; }
.process-flow div strong { display: block; margin: .2rem 0; }
.process-flow div small { color: var(--muted); line-height: 1.45; }
.process-flow i, .funnel-row i, .evidence-ladder i { align-self: center; color: var(--muted); font-style: normal; }

.comparison-table, .diagnosis-table { margin-top: 1.5rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .9rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

.callout { margin: 1.5rem 0 0; padding: 1.15rem 1.25rem; border-left: 5px solid var(--blue); background: color-mix(in srgb, var(--blue) 8%, var(--surface)); }
.callout strong { display: block; margin-bottom: .25rem; }
.callout p { margin: 0; color: var(--ink-2); }
.callout.warning { border-left-color: var(--orange); background: color-mix(in srgb, var(--orange) 9%, var(--surface)); }
.callout.legal { border-left-color: var(--green); background: color-mix(in srgb, var(--green) 9%, var(--surface)); }

.formula { align-items: center; margin-bottom: 1.5rem; padding: 1rem; border-radius: 13px; background: var(--ink); color: var(--paper); }
.formula span { flex: 0 0 auto; padding: .3rem .55rem; border-radius: 6px; background: rgba(255,255,255,.08); font-size: .76rem; }
.formula b { color: #7e8477; }
.formula strong { color: var(--lime); white-space: nowrap; }
.calculator { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.calculator-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line); }
.calculator-head h3 { margin: .45rem 0 0; font-size: 1.4rem; }
.calculator-head p { max-width: 330px; margin: 0; color: var(--muted); font-size: .75rem; text-align: right; }
.calculator-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem 1.2rem; padding: 1.5rem; }
.calculator-grid label { display: flex; align-items: center; justify-content: space-between; gap: .8rem; color: var(--ink-2); font-size: .85rem; }
.calculator-grid label span { display: flex; align-items: center; gap: .3rem; white-space: nowrap; }
.calculator-grid input { width: 110px; padding: .45rem .55rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.preset-row { display: flex; align-items: center; gap: .45rem; padding: 0 1.5rem 1.2rem; }
.preset-row span { margin-right: .4rem; color: var(--muted); font-size: .72rem; }
.preset-row button { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; }
.preset-row button.active { background: var(--ink); color: var(--paper); }
.calculator-results { display: grid; grid-template-columns: repeat(4,1fr); background: var(--ink); color: var(--paper); }
.calculator-results article { padding: 1.25rem; border-right: 1px solid rgba(255,255,255,.12); }
.calculator-results article:last-child { border-right: 0; }
.calculator-results span { display: block; color: #aeb4a3; font-size: .7rem; }
.calculator-results strong { display: block; margin-top: .3rem; color: var(--lime); font-size: clamp(1.1rem,2vw,1.55rem); font-variant-numeric: tabular-nums; }
.fine-print { margin: 0; padding: 1rem 1.5rem; color: var(--muted); font-size: .72rem; }
.rate-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: .7rem; margin-top: 1rem; }
.rate-cards article { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.rate-cards span { color: var(--orange); font-weight: 850; }
.rate-cards strong { display: block; margin: .2rem 0; font-size: 1.2rem; }
.rate-cards small { color: var(--muted); }

.route-diagnosis { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.8fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.route-form { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; padding: 1.5rem; }
.route-form label { align-self: center; color: var(--ink-2); font-size: .82rem; }
.route-form select { min-width: 0; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.route-form button { grid-column: 1 / -1; margin-top: .4rem; padding: .7rem; border: 0; border-radius: 9px; background: var(--ink); color: var(--paper); font-weight: 800; cursor: pointer; }
.route-result { padding: 1.7rem; background: var(--lime); color: var(--lime-ink); }
.route-result span { font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.route-result h3 { margin: .45rem 0; font-size: 1.65rem; }
.route-result p { margin: 0 0 1rem; }
.route-result a { font-size: .82rem; font-weight: 850; }
.route-map { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; margin-top: 1rem; }
.route-map article { position: relative; padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.route-map .route-no { color: var(--orange); font-size: .7rem; font-weight: 900; }
.route-map h3 { margin: .4rem 0; }
.route-map p { color: var(--ink-2); }
.route-map b { display: block; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .76rem; }

.three-step { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; margin-top: 1rem; }
.three-step article { padding: 1.2rem; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.three-step span { color: var(--orange); font-size: .7rem; font-weight: 850; }
.three-step h3 { margin: .3rem 0; }
.three-step p { margin: 0; color: var(--ink-2); font-size: .84rem; }

.safety-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .7rem; }
.safety-grid article { padding: 1.1rem; border-radius: 13px; background: var(--ink); color: var(--paper); }
.safety-grid b { color: var(--lime); font-size: .7rem; }
.safety-grid h3 { margin: .35rem 0; }
.safety-grid p { margin: 0; color: #b6baae; font-size: .78rem; line-height: 1.55; }
.disclosure-demo { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }
.disclosure-demo > div { padding: 1.15rem; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.disclosure-demo span { font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.disclosure-demo p { margin: .45rem 0; font-weight: 750; }
.disclosure-demo small { color: var(--muted); }
.disclosure-demo .bad { border-top: 5px solid var(--red); }
.disclosure-demo .bad span { color: var(--red); }
.disclosure-demo .good { border-top: 5px solid var(--green); }
.disclosure-demo .good span { color: var(--green); }

.evidence-badge { display: inline-flex; align-items: center; width: fit-content; padding: .16rem .48rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .61rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.evidence-badge.official { background: color-mix(in srgb, var(--blue) 13%, var(--surface)); color: var(--blue); }
.evidence-badge.dynamic { background: color-mix(in srgb, var(--orange) 15%, var(--surface)); color: var(--red); }
.evidence-badge.simulation { background: var(--lime); color: var(--lime-ink); }
.evidence-badge.definition { background: var(--ink); color: var(--paper); }
.evidence-badge.template { background: color-mix(in srgb, var(--green) 15%, var(--surface)); color: var(--green); }
.evidence-badge.marketing { background: color-mix(in srgb, var(--orange) 14%, var(--surface)); color: var(--orange); }
.figure-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1.5rem; }
.figure-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.evidence-figure { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.evidence-figure.wide { grid-column: 1 / -1; }
.image-button { display: block; width: 100%; min-height: 220px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: #e6e6e2; cursor: zoom-in; overflow: hidden; }
.image-button img { display: block; width: 100%; height: 270px; object-fit: cover; object-position: top center; transition: transform .25s; }
.wide .image-button img { height: 390px; }
.image-button:hover img { transform: scale(1.018); }
.evidence-figure figcaption { display: grid; gap: .35rem; padding: 1rem 1.1rem 1.15rem; }
.evidence-figure figcaption b { font-size: .95rem; }
.evidence-figure figcaption small { color: var(--muted); line-height: 1.5; }
.evidence-figure figcaption a { width: fit-content; color: var(--blue); font-size: .72rem; font-weight: 750; text-decoration: none; }

.content-patterns, .angle-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .7rem; }
.content-patterns article, .angle-grid article { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.content-patterns span { color: var(--orange); font-size: .67rem; font-weight: 850; }
.content-patterns h3 { margin: .35rem 0; font-size: 1rem; }
.content-patterns p { margin: 0; color: var(--ink-2); font-size: .78rem; }
.post-template, .prompt-card { margin-top: 1.2rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.post-template ol { margin: 1rem 0 0; padding-left: 1.5rem; }
.post-template li { margin: .45rem 0; }

.execution-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem 1rem;
  align-items: center;
  margin-bottom: 1.4rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 6px solid var(--lime);
  border-radius: 13px;
  background: var(--surface);
}
.execution-note b { color: var(--orange); font-size: .72rem; letter-spacing: .05em; }
.execution-note p { margin: 0; color: var(--ink-2); font-size: .88rem; }

.hands-on {
  margin: 1.6rem 0;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 2px solid var(--orange);
  border-radius: calc(var(--radius) + 2px);
  background: color-mix(in srgb, var(--orange) 6%, var(--surface));
  box-shadow: var(--shadow);
}
.hands-on-head { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.hands-on-head > span { color: var(--orange); font-size: .7rem; font-weight: 900; letter-spacing: .05em; }
.hands-on-head h3 { margin: .35rem 0; font-size: clamp(1.25rem, 3vw, 1.8rem); line-height: 1.25; }
.hands-on-head p { margin: 0; color: var(--ink-2); }
.hands-on .minute-plan li { border: 1px solid var(--line); }
.hands-on em { color: var(--ink); font-style: normal; font-weight: 800; }
.reply-box, .practice-sheet, .shoot-setup {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
}
.reply-box strong, .practice-sheet strong, .shoot-setup strong { color: var(--lime); }
.reply-box p, .practice-sheet p, .shoot-setup p { margin: .65rem 0 0; color: #d6d9d0; font-size: .82rem; }
.reply-box p { padding-top: .65rem; border-top: 1px solid rgba(255,255,255,.12); }
.link-placement { margin: 1rem 0 0; padding: 1rem; border-left: 6px solid var(--lime); background: var(--paper); color: var(--ink-2); }
.link-placement mark { padding: .05rem .25rem; background: var(--lime); color: var(--lime-ink); }
.full-copy { margin-top: 1rem; }
.hands-on .action-table { margin-top: 1rem; }

.action-tabs {
  margin: 1.6rem 0 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tab-list {
  display: flex;
  gap: .35rem;
  padding: .65rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  overflow-x: auto;
  scrollbar-width: thin;
}
.tab-button {
  flex: 0 0 auto;
  padding: .58rem .8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 800;
  white-space: nowrap;
}
.tab-button:hover { border-color: var(--line); background: var(--surface); }
.tab-button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tab-button[aria-selected="true"]::before { content: "●"; margin-right: .4rem; color: var(--lime); font-size: .56rem; }
.tab-panel { padding: clamp(1.1rem, 3vw, 2rem); }
.tab-panel[hidden] { display: none; }
.tab-panel > :first-child { margin-top: 0; }
.tab-panel > :last-child { margin-bottom: 0; }

.deliverable {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .2rem 1rem;
  align-items: center;
  margin-bottom: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--lime);
  color: var(--lime-ink);
}
.deliverable span { grid-row: 1 / span 2; font-size: .65rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.deliverable strong { font-size: 1rem; }
.deliverable small { opacity: .78; }

.step-list { display: grid; gap: .7rem; }
.step-list article {
  display: grid;
  grid-template-columns: 2.2rem minmax(0,1fr);
  gap: .2rem .8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.step-list .step-no {
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  align-self: start;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-size: .72rem;
  font-weight: 900;
}
.step-list h3 { margin: 0; font-size: .98rem; }
.step-list p { margin: .2rem 0 0; color: var(--ink-2); font-size: .82rem; }
.step-list small { display: block; margin-top: .3rem; color: var(--muted); line-height: 1.55; }

.path-card {
  margin: 1rem 0;
  padding: 1.15rem 1.25rem;
  border-radius: 13px;
  background: var(--ink);
  color: var(--paper);
}
.path-card span { color: var(--lime); font-size: .68rem; font-weight: 850; }
.path-card h3 { margin: .35rem 0; }
.path-card p, .path-card li { color: #b9beb1; font-size: .82rem; }
.path-card ol, .path-card ul { margin: .6rem 0 0; padding-left: 1.25rem; }

.choice-grid, .example-grid, .record-grid, .failure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .8rem;
  margin-top: 1rem;
}
.choice-grid article, .record-grid article, .failure-grid article {
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.choice-grid article { border-top: 5px solid var(--orange); }
.choice-grid span, .record-grid span, .failure-grid span { color: var(--orange); font-size: .66rem; font-weight: 850; }
.choice-grid h3, .record-grid h3, .failure-grid h3 { margin: .3rem 0; font-size: 1rem; }
.choice-grid p, .record-grid p, .failure-grid p { margin: 0; color: var(--ink-2); font-size: .8rem; }

.example-post {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}
.example-post header { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.example-post header span { color: var(--orange); font-size: .68rem; font-weight: 850; }
.example-post h3 { margin: .45rem 0 .25rem; font-size: 1.02rem; }
.example-post > p { margin: 0 0 .7rem; color: var(--muted); font-size: .74rem; }
.example-post pre { min-height: 100%; margin-top: .7rem; font-family: inherit; font-size: .79rem; }

.do-now {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-left: 6px solid var(--orange);
  border-radius: 12px;
  background: color-mix(in srgb, var(--orange) 7%, var(--surface));
}
.do-now strong { display: block; margin-bottom: .55rem; }
.do-now label { display: flex; gap: .55rem; align-items: flex-start; margin: .35rem 0; color: var(--ink-2); font-size: .82rem; }
.do-now input { margin-top: .35rem; accent-color: var(--green); }

.sprint-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap: .5rem;
  margin-top: 1rem;
}
.sprint-grid article { padding: .85rem .7rem; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.sprint-grid b { color: var(--orange); font-size: .66rem; }
.sprint-grid strong { display: block; margin: .25rem 0; font-size: .82rem; }
.sprint-grid span { display: block; color: var(--muted); font-size: .67rem; line-height: 1.45; }

.action-table { margin: 1rem 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.action-table th { min-width: 120px; }
.action-table td { min-width: 145px; vertical-align: top; }
.action-table small { color: var(--muted); }

.script-timeline { display: grid; gap: .55rem; margin-top: 1rem; }
.script-timeline article { display: grid; grid-template-columns: 4.3rem 1fr; gap: .15rem .8rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.script-timeline b { grid-row: 1 / span 3; color: var(--orange); font-variant-numeric: tabular-nums; }
.script-timeline strong { font-size: .9rem; }
.script-timeline span { color: var(--ink-2); font-size: .78rem; }
.script-timeline small { color: var(--muted); }

.micro-warning { margin-top: .8rem; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.funnel-row, .evidence-ladder { align-items: center; margin: 1.3rem 0; padding: 1rem; border-radius: 13px; background: var(--ink); color: var(--paper); }
.funnel-row span, .funnel-row strong, .evidence-ladder span, .evidence-ladder strong { flex: 0 0 auto; padding: .35rem .65rem; border-radius: 7px; background: rgba(255,255,255,.08); font-size: .77rem; }
.funnel-row strong, .evidence-ladder strong { background: var(--lime); color: var(--lime-ink); }
.experiment-card { margin-top: 1rem; }
.experiment-card h3 { font-size: 1.35rem; }
.experiment-card li { margin: .5rem 0; }
.experiment-card p { margin-bottom: 0; color: var(--ink-2); }

.shot-board { display: grid; grid-template-columns: repeat(6,1fr); gap: .5rem; }
.shot-board article { min-width: 0; padding: 1rem .8rem; border-radius: 12px; background: var(--ink); color: var(--paper); }
.shot-board b { color: var(--lime); font-size: .65rem; }
.shot-board strong { display: block; margin: .35rem 0; font-size: .9rem; }
.shot-board span { display: block; color: #aeb4a3; font-size: .68rem; line-height: 1.45; }
.channel-ladder { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: .75rem; align-items: center; margin: 1.2rem 0; }
.channel-ladder > div { align-self: stretch; padding: 1.1rem; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.channel-ladder > div.active { border-color: var(--orange); }
.channel-ladder span { color: var(--orange); font-size: .68rem; font-weight: 850; }
.channel-ladder h3 { margin: .35rem 0; font-size: 1.03rem; }
.channel-ladder p { margin: 0; color: var(--ink-2); font-size: .78rem; }
.channel-ladder i { color: var(--muted); font-style: normal; }

.angle-grid { grid-template-columns: repeat(7,1fr); }
.angle-grid article { padding: .8rem; text-align: center; }
.angle-grid b { color: var(--orange); font-size: .68rem; }
.angle-grid span { display: block; font-weight: 850; }
.angle-grid p { margin: .3rem 0 0; color: var(--muted); font-size: .65rem; line-height: 1.4; }
.prompt-head { display: flex; align-items: center; justify-content: space-between; }
.copy-button { padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; font-size: .72rem; }
pre { margin: 1rem 0 0; padding: 1.15rem; border-radius: 12px; background: #11150f; color: #e8eddf; font-family: "SFMono-Regular", Consolas, monospace; font-size: .78rem; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }

.roadmap-board { display: grid; grid-template-columns: repeat(2,1fr); gap: .9rem; }
.roadmap-board article { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.roadmap-board header { padding: 1.2rem; background: var(--ink); color: var(--paper); }
.roadmap-board header span { color: var(--lime); font-size: .68rem; font-weight: 850; }
.roadmap-board h3 { margin: .25rem 0; font-size: 1.6rem; }
.roadmap-board header b { color: #aeb4a3; font-size: .76rem; }
.roadmap-board ul { flex: 1; margin: 1rem 1.2rem; padding-left: 1.2rem; }
.roadmap-board li { margin: .35rem 0; color: var(--ink-2); font-size: .82rem; }
.roadmap-board > article > label { padding: .8rem 1.2rem; border-top: 1px solid var(--line); font-size: .8rem; font-weight: 750; }
.roadmap-board input { accent-color: var(--green); }
.weekly-routine { display: grid; grid-template-columns: auto repeat(5,1fr); gap: .55rem; align-items: stretch; margin-top: 1rem; }
.weekly-routine h3 { display: flex; align-items: center; margin: 0; padding: 1rem; border-radius: 12px; background: var(--lime); color: var(--lime-ink); font-size: 1rem; }
.weekly-routine div { padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.weekly-routine span { color: var(--orange); font-size: .7rem; font-weight: 850; }
.weekly-routine p { margin: .25rem 0 0; color: var(--ink-2); font-size: .72rem; line-height: 1.45; }

.diagnosis-table td:first-child { font-weight: 800; }
.diagnosis-table td:nth-child(2) { color: var(--ink-2); }
.stability-gate { display: grid; grid-template-columns: repeat(4,1fr); gap: .7rem; margin-top: 1rem; }
.stability-gate div { padding: 1.1rem; border: 1px solid var(--line); border-top: 5px solid var(--lime); border-radius: 13px; background: var(--surface); }
.stability-gate span { color: var(--muted); font-size: .7rem; }
.stability-gate strong { display: block; margin: .2rem 0; }
.stability-gate p { margin: 0; color: var(--ink-2); font-size: .75rem; }

.case-intro { border-left: 5px solid var(--orange); }
.case-intro p { margin: 0; }
.case-status { display: grid; grid-template-columns: repeat(4,1fr); gap: .7rem; margin-top: 1rem; }
.case-status article { padding: 1.1rem; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.case-status span { color: var(--muted); font-size: .65rem; font-weight: 850; }
.case-status .done span { color: var(--green); }
.case-status .current { border-color: var(--orange); }
.case-status .current span { color: var(--orange); }
.case-status h3 { margin: .35rem 0; font-size: 1rem; }
.case-status p { margin: 0; color: var(--ink-2); font-size: .74rem; }
.gate-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: .5rem; }
.gate-grid article { padding: .9rem .6rem; border-radius: 11px; background: var(--ink); color: var(--paper); text-align: center; }
.gate-grid strong { display: block; color: var(--lime); font-size: 1.5rem; }
.gate-grid span { display: block; color: #aeb4a3; font-size: .64rem; line-height: 1.35; }
.gate-rule { margin: 1rem 0 0; padding: 1rem; border-left: 5px solid var(--lime); background: var(--surface); }

.source-registry { display: grid; grid-template-columns: repeat(4,1fr); gap: .7rem; }
.source-registry article { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.source-registry span { color: var(--orange); font-size: .68rem; font-weight: 850; }
.source-registry h3 { margin: .35rem 0; font-size: .95rem; }
.source-registry p { margin: 0 0 .5rem; color: var(--muted); font-size: .7rem; }
.source-registry a { color: var(--blue); font-size: .72rem; font-weight: 750; }
.change-log { margin-top: 1.5rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.change-log h3 { margin-bottom: 1rem; }
.change-log > div { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.change-log time { color: var(--orange); font-size: .75rem; font-weight: 800; }
.change-log p { margin: 0; color: var(--ink-2); font-size: .82rem; }
.book-footer { width: min(100% - 3rem, 980px); margin: 0 auto; padding: 3rem 0 4rem; color: var(--muted); font-size: .75rem; }
.book-footer strong { display: block; color: var(--ink); font-size: 1rem; }
.book-footer p { margin: .2rem 0; }

.cover-start {
  width: fit-content;
  margin-top: 1.2rem;
  padding: .72rem 1rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: .82rem;
  font-weight: 850;
  text-decoration: none;
}
.cover-start:hover { background: white; }

.persona-contract, .complete-chain {
  margin: 1.3rem 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.persona-contract { border-top: 7px solid var(--lime); }
.persona-contract h3 { margin: .8rem 0 .4rem; font-size: clamp(1.3rem, 3vw, 2rem); }
.persona-contract > p { margin: 0; color: var(--ink-2); }
.privacy-strip { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; margin-top: 1.1rem; padding: 1rem; border-radius: 12px; background: color-mix(in srgb, var(--orange) 10%, var(--paper)); }
.privacy-strip b { color: var(--red); }
.privacy-strip span { color: var(--ink-2); font-size: .85rem; }
.prep-check { margin-top: .8rem; border-top: 1px solid var(--line); }
.prep-check summary { padding: .8rem 0 .2rem; cursor: pointer; font-weight: 800; }
.prep-check ul { display: grid; grid-template-columns: repeat(2,1fr); gap: .3rem 1rem; margin: .7rem 0; padding-left: 1.2rem; }
.prep-check li, .prep-check p { color: var(--ink-2); font-size: .78rem; }
.prep-check p { margin: .6rem 0 0; }

.income-ladder { display: grid; grid-template-columns: repeat(6,1fr); gap: .55rem; margin: 1rem 0 1.4rem; }
.income-ladder article { position: relative; min-width: 0; padding: 1rem .75rem; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.income-ladder article.active { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 8%, var(--surface)); }
.income-ladder span { display: block; color: var(--orange); font-size: .63rem; font-weight: 850; }
.income-ladder b { position: absolute; top: .7rem; right: .7rem; color: var(--line); font-size: 1.5rem; }
.income-ladder strong { display: block; margin: .35rem 0 .1rem; font-size: .82rem; }
.income-ladder small { color: var(--muted); font-size: .65rem; }

.starter-tabs { border-color: color-mix(in srgb, var(--orange) 45%, var(--line)); }
.minute-plan { display: grid; gap: .55rem; margin: 1rem 0; padding: 0; list-style: none; }
.minute-plan li { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: .8rem 1rem; border-radius: 11px; background: var(--paper); }
.minute-plan b { color: var(--orange); font-size: .78rem; }
.minute-plan span { color: var(--ink-2); font-size: .84rem; }
.starter-copy { margin-top: 1rem; }
.time-blocks { display: grid; grid-template-columns: repeat(3,1fr); gap: .65rem; }
.time-blocks article { padding: 1rem; border: 1px solid var(--line); border-top: 5px solid var(--lime); border-radius: 12px; background: var(--paper); }
.time-blocks article.break { border-top-color: var(--blue); }
.time-blocks b { color: var(--orange); font-size: .7rem; }
.time-blocks strong, .time-blocks span { display: block; }
.time-blocks strong { margin: .2rem 0; }
.time-blocks span { color: var(--muted); font-size: .72rem; }
.starter-sprint { grid-template-columns: repeat(7,1fr); }
.verdict-grid, .decision-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: .7rem; }
.verdict-grid article, .decision-cards article { padding: 1rem; border: 1px solid var(--line); border-left: 6px solid var(--muted); border-radius: 12px; background: var(--paper); }
.verdict-grid b, .decision-cards b { display: block; margin-bottom: .35rem; }
.verdict-grid p, .decision-cards p { margin: 0; color: var(--ink-2); font-size: .79rem; }
.verdict-grid .green, .decision-cards .green { border-left-color: var(--green); }
.verdict-grid .yellow, .decision-cards .yellow { border-left-color: #d7a512; }
.verdict-grid .gray { border-left-color: var(--muted); }
.verdict-grid .red, .decision-cards .red { border-left-color: var(--red); }
.decision-cards .orange { border-left-color: var(--orange); }

.complete-chain { margin-top: 2rem; }
.complete-chain-head h3 { margin: .8rem 0 .35rem; font-size: 1.5rem; }
.complete-chain-head p { margin: 0 0 1rem; color: var(--muted); font-size: .8rem; }
.chain-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: .7rem; }
.chain-steps article { position: relative; padding: 1rem; border-radius: 12px; background: var(--paper); }
.chain-steps article > b { color: var(--orange); font-size: .68rem; }
.chain-steps strong { display: block; margin: .25rem 0; }
.chain-steps p { margin: 0; color: var(--ink-2); font-size: .78rem; }
.chain-steps .bad-draft { border: 1px solid color-mix(in srgb, var(--red) 45%, var(--line)); }
.chain-steps s { color: var(--red); }
.chain-note { margin: 1rem 0 0; padding: 1rem; border-left: 5px solid var(--lime); background: var(--paper); color: var(--ink-2); }
.plain-glossary { margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.plain-glossary summary { padding: 1rem 1.2rem; cursor: pointer; font-weight: 850; }
.plain-glossary dl { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 1rem; margin: 0; padding: 0 1.2rem 1.2rem; }
.plain-glossary dl div { padding: .7rem 0; border-top: 1px solid var(--line); }
.plain-glossary dt { font-weight: 800; }
.plain-glossary dd { margin: .15rem 0 0; color: var(--ink-2); font-size: .78rem; }

.time-economics, .first-products { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; margin-top: 1rem; }
.time-economics article, .first-products article { padding: 1.1rem; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.time-economics span, .first-products span { color: var(--orange); font-size: .67rem; font-weight: 850; }
.time-economics strong { display: block; margin: .3rem 0; font-size: 1.4rem; }
.time-economics p, .first-products p { margin: 0; color: var(--ink-2); font-size: .78rem; }

.default-route { margin-bottom: 1rem; padding: 1.4rem; border: 2px solid var(--orange); border-radius: var(--radius); background: var(--surface); }
.default-route > div { display: grid; grid-template-columns: auto 1fr auto auto 1fr; gap: .7rem; align-items: center; margin: 1rem 0 .5rem; }
.default-route > div b { color: var(--muted); font-size: .68rem; }
.default-route > div strong { font-size: 1.15rem; }
.default-route > div i { color: var(--orange); font-style: normal; font-size: 1.5rem; }
.default-route p { color: var(--ink-2); }
.default-route a { color: var(--blue); font-weight: 800; text-decoration: none; }
.alternate-route { margin: 1rem 0 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.alternate-route summary { padding: 1rem 1.2rem; cursor: pointer; font-weight: 800; }
.alternate-route .route-diagnosis { margin: 0 1rem 1rem; }
.route-map article.recommended { border-color: var(--orange); box-shadow: inset 0 5px 0 var(--orange); }

.persona-safety { display: grid; gap: .45rem; margin-bottom: 1rem; padding: 1rem 1.2rem; border-left: 6px solid var(--orange); border-radius: 12px; background: var(--surface); }
.persona-safety strong { color: var(--red); }
.persona-safety span { color: var(--ink-2); font-size: .82rem; }

.screen-map { margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.screen-map summary { padding: 1rem 1.2rem; cursor: pointer; font-weight: 850; }
.screen-map > p { margin: 0 1.2rem .8rem; }
.screen-map-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .7rem; padding: 0 1.2rem 1.2rem; }
.screen-map-grid article { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; padding: 1rem; border-radius: 12px; background: var(--paper); }
.screen-map-grid span { flex-basis: 100%; color: var(--orange); font-size: .68rem; font-weight: 850; }
.screen-map-grid b { font-size: .72rem; }
.screen-map-grid i { color: var(--muted); font-style: normal; }
.zero-audience { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }
.zero-audience > div, .zero-audience > article { margin: 0; }
.zero-audience > div { padding: 1.1rem; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.zero-audience h3 { margin: .7rem 0 .35rem; font-size: 1rem; }
.zero-audience p { margin: 0; color: var(--ink-2); font-size: .78rem; }

.tab-step-navigation { display: grid; grid-template-columns: 1fr auto auto; gap: .55rem; align-items: center; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.tab-step-navigation span { color: var(--muted); font-size: .72rem; font-weight: 800; }
.tab-step-navigation button { padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; font-size: .75rem; font-weight: 800; }
.tab-step-navigation .tab-next { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.tab-step-navigation strong { color: var(--green); font-size: .76rem; }

.core-routine { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: 1rem 0; }
.core-routine div { flex: 1 1 100px; padding: .75rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.core-routine span { display: block; color: var(--orange); font-size: .66rem; font-weight: 850; }
.core-routine b { font-size: .76rem; }
.core-routine i { color: var(--muted); font-style: normal; }
.evidence-formula { margin: 1.3rem 0 1rem; padding: 1.3rem; border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.evidence-formula p { margin: .65rem 0; color: #d7dacd; font-size: .85rem; }
.evidence-formula p b { color: var(--lime); }
.evidence-formula small { display: block; margin-top: .9rem; color: #aeb4a3; }


.lightbox { width: min(94vw, 1400px); max-height: 94vh; padding: 0; border: 0; border-radius: 14px; background: #0b0c0a; box-shadow: 0 30px 100px rgba(0,0,0,.45); }
.lightbox::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(7px); }
.lightbox img { display: block; width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox button { position: absolute; z-index: 2; top: .7rem; right: .7rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.75); color: white; font-size: 1.6rem; cursor: pointer; }
.toast { position: fixed; z-index: 2000; right: 1rem; bottom: 1rem; padding: .7rem 1rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .78rem; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }
.overlay { display: none; }

@media (max-width: 1120px) {
  :root { --sidebar: 245px; }
  .chapter { width: min(100% - 2.4rem, 880px); }
  .cover h1 { font-size: clamp(3rem, 7.5vw, 5.9rem); }
  .cover::before { width: 20rem; height: 20rem; }
  .gate-grid { grid-template-columns: repeat(4,1fr); }
  .shot-board { grid-template-columns: repeat(3,1fr); }
  .angle-grid { grid-template-columns: repeat(4,1fr); }
  .weekly-routine { grid-template-columns: repeat(3,1fr); }
  .weekly-routine h3 { grid-column: 1 / -1; }
  .sprint-grid { grid-template-columns: repeat(4,1fr); }
  .income-ladder { grid-template-columns: repeat(3,1fr); }
  .starter-sprint { grid-template-columns: repeat(4,1fr); }
  .chain-steps { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 860px) {
  :root { --topbar: 58px; }
  .menu-button { display: inline-grid; place-items: center; }
  .shell { display: block; }
  .book { width: 100%; }
  .sidebar {
    width: min(86vw, 320px);
    transform: translateX(-105%);
    transition: transform .24s ease;
    box-shadow: 20px 0 60px rgba(0,0,0,.16);
  }
  .sidebar.open { transform: translateX(0); }
  .overlay { position: fixed; z-index: 850; inset: var(--topbar) 0 0; background: rgba(0,0,0,.48); }
  .overlay.show { display: block; }
  .cover { grid-template-columns: 1fr; min-height: calc(100svh - var(--topbar)); }
  .cover-copy { padding: clamp(2.2rem, 9vw, 4.5rem) clamp(1.3rem, 6vw, 3.5rem); }
  .cover-index { grid-template-columns: repeat(3,1fr); }
  .cover-index div { grid-template-columns: 1fr; }
  .cover-index b { grid-row: auto; }
  .calculator-results { grid-template-columns: repeat(2,1fr); }
  .calculator-results article { border-bottom: 1px solid rgba(255,255,255,.12); }
  .route-map, .three-step, .case-status { grid-template-columns: 1fr; }
  .safety-grid { grid-template-columns: repeat(2,1fr); }
  .content-patterns { grid-template-columns: repeat(2,1fr); }
  .channel-ladder { grid-template-columns: 1fr; }
  .channel-ladder i { transform: rotate(90deg); justify-self: center; }
  .source-registry { grid-template-columns: repeat(2,1fr); }
  .example-grid, .choice-grid, .record-grid, .failure-grid { grid-template-columns: 1fr; }
  .time-blocks { grid-template-columns: repeat(2,1fr); }
  .screen-map-grid { grid-template-columns: 1fr; }
  .zero-audience { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; line-height: 1.72; word-break: normal; overflow-wrap: anywhere; }
  .topbar { gap: .55rem; padding: 0 .7rem; }
  .brand span { display: none; }
  .text-button { display: none; }
  .chapter { width: min(100% - 1.5rem, 520px); padding: 3.35rem 0; }
  .chapter-head { margin-bottom: 1.8rem; }
  .cover { width: 100%; max-width: none; }
  h2 { font-size: clamp(1.9rem, 8.8vw, 2.45rem); line-height: 1.15; letter-spacing: -.045em; }
  .cover h1 { font-size: clamp(2.8rem, 13vw, 4.15rem); line-height: .98; }
  .cover::before { width: 14rem; height: 14rem; right: -15%; top: 5%; opacity: .34; }
  .cover-meta { flex-direction: column; gap: .2rem; }
  .cover-index { grid-template-columns: 1fr; }
  .cover-index div { grid-template-columns: 2rem 1fr; }
  .cover-index b { grid-row: 1 / span 2; }
  .two-col, .path-switcher, .calculator-grid, .route-diagnosis, .disclosure-demo, .figure-grid, .figure-grid.two, .roadmap-board { grid-template-columns: 1fr; }
  .evidence-figure.wide { grid-column: auto; }
  .calculator-head { display: block; }
  .calculator-head p { margin-top: .5rem; text-align: left; }
  .calculator-grid label { display: grid; grid-template-columns: 1fr; gap: .25rem; }
  .calculator-grid label span { justify-self: stretch; }
  .calculator-grid input { width: 100%; }
  .calculator-results { grid-template-columns: 1fr 1fr; }
  .rate-cards { grid-template-columns: repeat(2,1fr); }
  .route-form { grid-template-columns: 1fr; }
  .route-form button { grid-column: auto; }
  .safety-grid, .content-patterns, .source-registry, .stability-gate { grid-template-columns: 1fr; }
  .image-button img, .wide .image-button img { height: 230px; }
  .shot-board { grid-template-columns: repeat(2,1fr); }
  .angle-grid { grid-template-columns: repeat(2,1fr); }
  .weekly-routine { grid-template-columns: 1fr 1fr; }
  .weekly-routine h3 { grid-column: 1 / -1; }
  .gate-grid { grid-template-columns: repeat(2,1fr); }
  .change-log > div { grid-template-columns: 1fr; gap: .2rem; }
  .execution-note, .deliverable { grid-template-columns: 1fr; padding: .95rem; }
  .execution-note b, .deliverable span { grid-row: auto; }
  .action-tabs { margin-right: -.15rem; margin-left: -.15rem; border-radius: 14px; }
  .tab-list { gap: .4rem; padding: .65rem; }
  .tab-button { min-height: 44px; padding: .65rem .8rem; }
  .tab-panel { padding: .9rem; }
  .step-list article { grid-template-columns: 2rem minmax(0,1fr); padding: .85rem; }
  .sprint-grid { grid-template-columns: repeat(2,1fr); }
  .script-timeline article { grid-template-columns: 3.8rem 1fr; }
  .formula { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; padding: .8rem; }
  .formula span { min-width: 0; font-size: .68rem; white-space: normal; text-align: center; }
  .formula b { display: none; }
  .formula strong { grid-column: 1 / -1; padding-top: .35rem; text-align: center; white-space: normal; }
  .privacy-strip, .default-route > div { grid-template-columns: 1fr; }
  .income-ladder { grid-template-columns: repeat(2,1fr); }
  .time-blocks, .verdict-grid, .decision-cards, .chain-steps, .plain-glossary dl, .time-economics, .first-products, .prep-check ul { grid-template-columns: 1fr; }
  .minute-plan li { grid-template-columns: 1fr; gap: .2rem; padding: .75rem; }
  .minute-plan b { font-size: .74rem; }
  .starter-sprint { grid-template-columns: repeat(2,1fr); }
  .default-route > div i { display: none; }
  .tab-step-navigation { grid-template-columns: 1fr 1fr; }
  .tab-step-navigation span { grid-column: 1 / -1; }
  .tab-step-navigation .tab-next:only-of-type { grid-column: 2; }
  .core-routine i { display: none; }
  .hands-on { margin: 1.2rem 0; padding: 1rem; border-radius: 15px; }
  .hands-on-head h3 { font-size: 1.32rem; }
  .example-post { padding: .9rem; }
  .example-post header { align-items: flex-start; }
  .copy-button { min-height: 40px; flex: 0 0 auto; }
  pre, .example-post pre { padding: .95rem; font-size: .82rem; line-height: 1.7; }
  .mobile-card-table { overflow: visible; border: 0; }
  .mobile-card-table table, .mobile-card-table tbody, .mobile-card-table tr, .mobile-card-table td { display: block; width: 100%; }
  .mobile-card-table thead { display: none; }
  .mobile-card-table tr { margin-bottom: .65rem; padding: .85rem; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
  .mobile-card-table td { min-width: 0; padding: .15rem 0; border: 0; }
  .mobile-card-table td:first-child { color: var(--orange); font-size: 1.05rem; font-weight: 900; }
  .mobile-card-table td:nth-child(2) { color: var(--muted); font-size: .72rem; font-weight: 800; }
  .mobile-card-table td:nth-child(3) { margin-top: .25rem; font-weight: 800; }
  .mobile-card-table td:nth-child(4) { color: var(--ink-2); font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  @page { size: A4; margin: 16mm 14mm 18mm; }
  :root { --paper: white; --surface: white; --surface-2: #f2f2ed; --ink: #111; --ink-2: #333; --muted: #666; --line: #ccc; }
  body { font-size: 10pt; background: white; }
  .topbar, .sidebar, .reading-progress, .chapter-done, .copy-button, .overlay, .toast, .tab-list, .tab-step-navigation { display: none !important; }
  .shell, .book { display: block; }
  .chapter { width: 100%; min-height: 0 !important; padding: 12mm 0; break-before: page; }
  .cover { width: 100%; min-height: 250mm; margin: 0; padding: 18mm; break-before: auto; break-after: page; }
  .cover-copy { padding: 0; }
  .cover h1 { font-size: 42pt; }
  .cover-index { display: none; }
  h2 { font-size: 26pt; }
  .calculator, .route-diagnosis, .evidence-figure, .callout, .panel, table { break-inside: avoid; }
  .image-button { min-height: 0; }
  .image-button img, .wide .image-button img { height: auto; max-height: 120mm; object-fit: contain; }
  a[href^="http"]::after { content: " ↗"; font-size: 7pt; }
  .lightbox { display: none; }
  .tab-panel[hidden] { display: block !important; }
  .action-tabs { box-shadow: none; overflow: visible; }
  .tab-panel { padding: 8mm 0; border-top: 1px solid var(--line); break-inside: avoid-page; }
}
