/* Learn Muse with PiXENDA. Light is the default theme; dark is opt-in via the header toggle. */
:root,
html[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f7f4fc;
  --surface-2: #efe9fa;
  --text: #17122b;
  --muted: #4d4766;
  --border: #ddd3ee;
  --accent: #6d28d9;
  --accent-ink: #ffffff;
  --accent-soft: #ede4fd;
  --danger: #b42318;
  --shadow: 0 1px 2px rgba(23, 18, 43, .06), 0 8px 24px rgba(23, 18, 43, .06);
}
html[data-theme="dark"] {
  --bg: #08080c;
  --surface: #13121b;
  --surface-2: #1c1a28;
  --text: #f5f4f8;
  --muted: #c3bcd4;
  --border: #2c2640;
  --accent: #b47cfa;
  --accent-ink: #120a1f;
  --accent-soft: #241a3a;
  --danger: #ff8a7a;
  --shadow: none;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.65;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.reg { color: var(--accent); font-size: .7em; vertical-align: super; line-height: 0; margin-left: 1px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* header */
header.site {
  position: sticky; top: 0; z-index: 10; background: var(--bg);
  border-bottom: 2px solid var(--accent);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px max(16px, calc((100% - 960px) / 2));
}
header.site .logo img { display: block; height: 40px; width: auto; }
.course-name { font-weight: 700; font-size: .95rem; color: var(--muted); }
header.site nav { margin-left: auto; display: flex; gap: 6px 16px; align-items: center; flex-wrap: wrap; }
header.site nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
header.site nav a:hover { color: var(--accent); }
button.theme { background: transparent; color: var(--text); border: 1px solid var(--border); padding: 6px 14px; font-size: .85rem; }

/* layout */
main { max-width: 860px; margin: 0 auto; padding: 28px 16px 80px; }
h1, h2, h3, .module-card h2 { font-family: Anton, Impact, "Arial Narrow", sans-serif; font-weight: 400; letter-spacing: .01em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 6vw, 3rem); margin: .2em 0 .4em; }
h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
h2.small { font-size: 1.25rem; margin-top: 0; }
h3 { font-size: 1.25rem; }
.eyebrow { display: block; font-family: Montserrat, system-ui, sans-serif; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 4px; }
.muted { color: var(--muted); }
.lead { font-size: 1.25rem; font-weight: 700; margin: 0 0 .5em; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; margin: 20px 0; box-shadow: var(--shadow); }
.hero { padding: 8px 0 4px; }
.rule-card { border-left: 5px solid var(--accent); }

/* buttons */
button, .btn {
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 700; font-size: .95rem;
  cursor: pointer; text-decoration: none; display: inline-block; line-height: 1.2;
}
button.secondary, .btn.secondary { background: transparent; color: var(--text); border-color: var(--border); }
button.secondary:hover, .btn.secondary:hover { border-color: var(--accent); color: var(--accent); }
button.danger { color: var(--danger); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }

/* progress */
.bar { height: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.fill { height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.checks { list-style: none; padding: 0; margin: 14px 0 0; }
.checks li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); }
.checks li:first-child { border-top: 0; }
.checks input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--accent); flex: none; }
.checks label { flex: 1; cursor: pointer; margin: 0; font-weight: 600; }
.checks .jump { font-size: .85rem; font-weight: 700; white-space: nowrap; }

/* modules grid */
.modules { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin: 20px 0; }
.module-card { display: block; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 18px 16px; box-shadow: var(--shadow); }
.module-card:hover { border-color: var(--accent); }
.module-card.start { border: 2px solid var(--accent); grid-column: 1 / -1; }
.module-card h2 { font-size: 1.35rem; margin: 2px 0 8px; }
.module-card ul { margin: 0 0 10px; padding-left: 18px; font-size: .88rem; color: var(--muted); }
.module-card .muted { font-size: .85rem; font-weight: 600; }

/* lessons */
.lesson h2.lesson-title, .setup h2.lesson-title { border-top: 2px solid var(--accent); padding-top: 18px; }
.lesson h2.lesson-title:first-of-type { margin-top: 1em; }
.setup h2.lesson-title { margin-top: 0; border-top: 0; padding-top: 0; }
.setup { border: 2px solid var(--accent); background: var(--accent-soft); }
.rule { border-left: 4px solid var(--accent); padding: 8px 14px; background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.note { font-size: .92rem; color: var(--muted); border: 1px dashed var(--border); border-radius: 10px; padding: 10px 14px; }
.homework { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; }
.done { font-weight: 600; }
.prompt { position: relative; background: var(--bg); border: 1px solid var(--accent); border-radius: 12px; padding: 14px 16px 14px; margin: 12px 0; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.55; }
.prompt p { margin: 0 0 10px; white-space: pre-wrap; }
.prompt .copy { padding: 6px 14px; font-family: Montserrat, system-ui, sans-serif; font-size: .82rem; }

/* video */
video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }

/* workbook */
label { font-weight: 700; display: block; margin: 16px 0 6px; }
textarea { width: 100%; min-height: 96px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 12px; font: inherit; font-size: 1rem; resize: vertical; }
textarea:focus { border-color: var(--accent); }

/* templates */
details.template { border-top: 1px solid var(--border); padding: 10px 0; }
details.template summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.template-body h2 { font-family: Montserrat, system-ui, sans-serif; font-weight: 700; font-size: 1.05rem; margin: 1.4em 0 .4em; }
.template-body table { border-collapse: collapse; width: 100%; font-size: .85rem; display: block; overflow-x: auto; }
.template-body th, .template-body td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; min-width: 70px; }
.template-body blockquote { margin: 10px 0; padding: 6px 14px; border-left: 4px solid var(--accent); color: var(--muted); }
.blank { display: inline-block; min-width: 14em; max-width: 100%; border-bottom: 1px solid var(--muted); height: 1.1em; vertical-align: bottom; }
li > .blank:only-child { width: 100%; }
.tlist { list-style: none; padding: 0; margin: 0; }
.tlist li { padding: 10px 0; border-top: 1px solid var(--border); }
.tlist li:first-child { border-top: 0; }

/* pager + footer */
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px; font-weight: 700; }
.pager .next { margin-left: auto; text-align: right; }
footer.site { border-top: 1px solid var(--border); padding: 24px 16px 32px; text-align: center; color: var(--muted); font-size: .88rem; }
footer.site p { margin: 6px auto; max-width: 720px; }
footer .rule-line { font-weight: 700; color: var(--text); }
footer .powered { font-weight: 700; }
footer.site a { color: var(--text); text-underline-offset: 3px; }
footer.site a:hover { color: var(--accent); }
.foot-links { font-weight: 600; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .course-name { display: none; }
  .card { padding: 16px; }
  header.site .logo img { height: 34px; }
}
@media print {
  header.site, footer.site, .noprint, .skip { display: none; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .fill { transition: none; } }

/* ---------- visuals and practice ---------- */
:root, html[data-theme="light"] { --ok: #0f7a4d; --ok-soft: #e3f4ec; --caution: #a15c00; --caution-soft: #fdf0dc; --risk: #b42318; --risk-soft: #fbe6e3; }
html[data-theme="dark"] { --ok: #4ade80; --ok-soft: #10271b; --caution: #fbbf24; --caution-soft: #2b2110; --risk: #ff8a7a; --risk-soft: #2e1512; }
.visual { margin: 26px 0; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.visual figcaption, .visual .sim-intro { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.visual-title { font-weight: 700; margin: 0 0 12px; }
.before { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 14px; padding: 16px 20px; margin: 20px 0 8px; }
.before h3 { font-family: Montserrat, system-ui, sans-serif; font-weight: 700; font-size: 1.05rem; margin: 0 0 8px; }
.before p { margin: 8px 0 0; font-size: .95rem; color: var(--muted); }
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
ul.ticks li { padding-left: 28px; position: relative; }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--accent); }

/* approval flow */
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: none; }
.flow-steps li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--muted); }
.flow-steps li b { color: var(--text); font-size: 1rem; }
.flow-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 700; background: var(--bg); line-height: 1; }
.flow-steps li.stop { border: 2px solid var(--accent); background: var(--accent-soft); }
.step-n { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .8rem; display: grid; place-items: center; }
.flow-fork { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.fork { border-radius: 12px; padding: 12px 14px; font-size: .9rem; display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.fork.yes { background: var(--ok-soft); border: 1px solid var(--ok); }
.fork.no { background: var(--risk-soft); border: 1px solid var(--risk); }
.fork.yes b { color: var(--ok); } .fork.no b { color: var(--risk); }
@media (max-width: 700px) {
  .flow-steps { grid-template-columns: 1fr; }
  .flow-steps li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -13px; transform: translateX(-50%); }
  .flow-fork { grid-template-columns: 1fr; }
}

/* permission ladder */
.rungs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rungs li { display: grid; grid-template-columns: 34% 1fr; gap: 14px; align-items: center; }
.rungs .bar { height: 26px; border-radius: 6px; }
.rungs .r1 .bar { width: 25%; background: var(--ok); }
.rungs .r2 .bar { width: 50%; background: var(--ok); opacity: .75; }
.rungs .r3 .bar { width: 75%; background: var(--caution); }
.rungs .r4 .bar { width: 100%; background: var(--risk); }
.rung-text { display: flex; flex-direction: column; font-size: .92rem; color: var(--muted); }
.rung-text b { color: var(--text); font-size: 1rem; }
.rung-text em { font-style: normal; font-weight: 600; }
.r1 em, .r2 em { color: var(--ok); } .r3 em { color: var(--caution); } .r4 em { color: var(--risk); }
@media (max-width: 600px) { .rungs li { grid-template-columns: 1fr; gap: 6px; } }

/* approval practice */
.sim { background: var(--surface); }
.sim-stage { margin-top: 14px; }
.sim-count { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.sim-ask { margin: 0 0 12px; font-style: italic; color: var(--muted); }
.sim-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); max-width: 520px; }
.sim-label { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sim-action { margin: 2px 0 8px; font-weight: 700; font-size: 1.15rem; }
.sim-details { margin: 0 0 14px; padding: 10px 12px 10px 28px; background: var(--surface); border-radius: 10px; font-size: .92rem; }
.sim-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sim-choice { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
.sim-choice:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.sim-choice:disabled { cursor: default; opacity: .55; }
.sim-choice.picked-good { opacity: 1; border: 2px solid var(--ok); color: var(--ok); }
.sim-choice.picked-bad { opacity: 1; border: 2px solid var(--risk); color: var(--risk); }
.sim-feedback { margin: 12px 0 0; padding: 0; max-width: 520px; }
.sim-feedback.good { padding: 10px 14px; border-radius: 10px; background: var(--ok-soft); border: 1px solid var(--ok); }
.sim-feedback.bad { padding: 10px 14px; border-radius: 10px; background: var(--risk-soft); border: 1px solid var(--risk); }
.sim-next { margin-top: 12px; }
.sim-done { max-width: 520px; }
.sim-score { font-family: Anton, Impact, sans-serif; font-size: 1.8rem; margin: 0 0 6px; color: var(--accent); }
.sim-done p { margin: 0 0 12px; }

/* free-lesson upsell */
.upsell { border: 2px solid var(--accent); background: var(--accent-soft); }
.upsell h2 { margin-top: 0; }
.upsell ul { margin: 10px 0 16px; padding-left: 20px; }
.upsell .actions { margin-bottom: 0; }
.sim-verdict { display: block; margin-bottom: 2px; }
.sim-feedback.good .sim-verdict { color: var(--ok); }
.sim-feedback.bad .sim-verdict { color: var(--risk); }

/* chatbot vs chief of staff */
.compare-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare .col { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.compare .col.strong { border: 2px solid var(--accent); background: var(--accent-soft); }
.col-title { font-weight: 700; margin: 0 0 8px; }
.mini-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: .95rem; }
.mini-steps .end { font-weight: 700; }
.col-note { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 600px) { .compare-cols { grid-template-columns: 1fr; } }
/* delegation builder */
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.presets button { padding: 7px 14px; font-size: .88rem; }
.b-fields label { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; font-size: .95rem; }
.b-tag { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .8rem; display: grid; place-items: center; flex: none; }
.b-fields textarea { min-height: 0; }
.b-meter { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; font-weight: 600; font-size: .92rem; }
.b-dots { display: flex; gap: 6px; }
.b-dots i { width: 28px; height: 8px; border-radius: 4px; background: var(--border); }
.b-dots i.on { background: var(--ok); }
.b-out { font-family: Montserrat, system-ui, sans-serif; }
/* draft check */
.draft-card { margin-bottom: 14px; }
.draft-card.good { border-color: var(--ok); }
.draft-text { white-space: pre-wrap; margin: 6px 0 0; font-size: .95rem; }

/* brief anatomy */
.page-mock { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 16px 18px; max-width: 720px; margin: 0 auto; }
.pm-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; border-bottom: 2px solid var(--accent); padding-bottom: 8px; margin-bottom: 12px; }
.pm-head span { color: var(--muted); font-size: .85rem; }
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-sec { border-radius: 8px; padding: 8px 10px 10px; border-left: 4px solid; background: var(--surface); }
.pm-sec b { display: block; font-size: .92rem; }
.pm-sec p { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.pm-tag { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pm-sec.who { border-color: var(--accent); } .pm-sec.who .pm-tag { color: var(--accent); }
.pm-sec.sell { border-color: var(--ok); } .pm-sec.sell .pm-tag { color: var(--ok); }
.pm-sec.sound { border-color: var(--caution); } .pm-sec.sound .pm-tag { color: var(--caution); }
.pm-sec.limit { border-color: var(--risk); } .pm-sec.limit .pm-tag { color: var(--risk); }
@media (max-width: 600px) { .pm-grid { grid-template-columns: 1fr; } }
/* assembler */
.asm-out p { white-space: pre-wrap; font-family: Montserrat, system-ui, sans-serif; }

/* briefing sample */
.brief-card { max-width: 560px; margin: 0 auto; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.bc-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.bc-head span { color: var(--muted); font-size: .88rem; }
.bc-sec { padding: 10px 16px 10px 14px; border-left: 5px solid; border-bottom: 1px solid var(--border); }
.bc-sec:last-child { border-bottom: 0; }
.bc-tag { margin: 0 0 4px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.bc-sec ul { margin: 0; padding-left: 18px; font-size: .93rem; }
.bc-sec.risk { border-left-color: var(--risk); } .bc-sec.risk .bc-tag { color: var(--risk); }
.bc-sec.caution { border-left-color: var(--caution); } .bc-sec.caution .bc-tag { color: var(--caution); }
.bc-sec.accent { border-left-color: var(--accent); } .bc-sec.accent .bc-tag { color: var(--accent); }
.bc-sec.ok { border-left-color: var(--ok); } .bc-sec.ok .bc-tag { color: var(--ok); }
/* lists to briefing */
.map { display: grid; gap: 10px; }
.map-row { display: grid; grid-template-columns: 1fr 32px 1fr; align-items: center; gap: 8px; }
.map-in { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: .93rem; }
.map-in.muted-in { color: var(--muted); font-style: italic; font-weight: 400; }
.map-arrow { text-align: center; color: var(--accent); font-weight: 700; }
.map-out { border-radius: 10px; padding: 10px 12px; font-weight: 700; font-size: .93rem; border: 1px solid; }
.map-out.risk { color: var(--risk); background: var(--risk-soft); border-color: var(--risk); }
.map-out.caution { color: var(--caution); background: var(--caution-soft); border-color: var(--caution); }
.map-out.accent { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.map-out.ok { color: var(--ok); background: var(--ok-soft); border-color: var(--ok); }
@media (max-width: 560px) { .map-row { grid-template-columns: 1fr; } .map-arrow { transform: rotate(90deg); } .map-arrow.lab { transform: none; } }
/* streak */
.streak-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.streak-days label { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: .82rem; cursor: pointer; }
.streak-days input { width: 22px; height: 22px; accent-color: var(--ok); }
.streak-days label:has(input:checked) { border-color: var(--ok); background: var(--ok-soft); }
.streak-msg { font-weight: 700; margin: 12px 0 0; }
.streak-msg.good { color: var(--ok); } .streak-msg.mid { color: var(--caution); }
@media (max-width: 480px) { .streak-days { grid-template-columns: repeat(4, 1fr); } }

/* Module 4: leak check, reply builder warning, 3-touch figure */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.b-label.warn { color: var(--caution); }
.la-grid { display: grid; grid-template-columns: minmax(84px, 1fr) repeat(3, minmax(64px, 1fr)); gap: 6px; align-items: center; }
.la-h { font-size: .8rem; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.2; }
.la-row { font-weight: 600; font-size: .9rem; }
.la-grid label { margin: 0; display: flex; justify-content: center; align-items: center; padding: 8px 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; }
.la-grid label:has(input:checked) { border-color: var(--risk); background: var(--risk-soft); }
.la-grid input { width: 22px; height: 22px; accent-color: var(--risk); }
.la-total { font-weight: 800; text-align: center; padding-top: 6px; border-top: 2px solid var(--border); }
.la-row.la-total { text-align: left; }
.leak-msg { font-weight: 700; margin: 12px 0 0; }
.leak-msg.good { color: var(--accent); }
.touches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: none; }
.touches li { margin: 0; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.touches li strong { font-size: 1rem; }
.touches li span:last-child { color: var(--muted); }
.touches .t-when { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.touches li.t-stop { border-top-color: var(--risk); }
.touches li.t-stop .t-when { color: var(--risk); }
.t-rule { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--caution-soft); border: 1px solid var(--caution); font-size: .92rem; }
@media (max-width: 640px) { .touches { grid-template-columns: 1fr 1fr; } }

/* Module 5: week strip, one-to-three fan, hour bar */
.wk-t { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; border: 1px solid; width: fit-content; }
.wk-t.proof { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.wk-t.answer { color: var(--ok); background: var(--ok-soft); border-color: var(--ok); }
.wk-t.offer { color: var(--caution); background: var(--caution-soft); border-color: var(--caution); }
.wk-t.reminder { color: var(--muted); background: var(--surface-2); border-color: var(--border); }
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.wk-day { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; font-size: .86rem; }
.wk-d { font-weight: 800; }
.wk-x { color: var(--muted); line-height: 1.35; }
.fan { display: grid; grid-template-columns: 1fr 1.6fr; gap: 14px; align-items: center; }
.fan-src { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; font-weight: 600; font-size: .92rem; position: relative; }
.fan-k { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fan-out { display: grid; gap: 8px; border-left: 3px solid var(--accent); padding-left: 14px; }
.fan-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: .9rem; display: flex; flex-direction: column; gap: 6px; }
.hour { display: flex; height: 64px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.hr-seg { display: flex; flex-direction: column; justify-content: center; padding: 0 10px; min-width: 0; font-size: .82rem; color: #fff; }
.hr-seg b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-seg span { opacity: .9; white-space: nowrap; }
.hr-seg.s1 { background: #8b5cf6; } .hr-seg.s2 { background: #6d28d9; } .hr-seg.s3 { background: #0f7a4d; } .hr-seg.s4 { background: #5b5470; padding: 0 6px; }
.hr-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 640px) {
  .week { grid-template-columns: 1fr; }
  .wk-day { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .wk-day .wk-x { flex-basis: 100%; }
  .fan { grid-template-columns: 1fr; }
  .hour { height: 72px; }
  .hr-seg { font-size: .72rem; padding: 0 6px; }
  .hr-seg.s4 b, .hr-seg.s4 span { display: none; }
}

/* Module 6: money stats, report calculator */
.stats4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.st4 { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.st4.caution { border-top-color: var(--caution); } .st4.risk { border-top-color: var(--risk); }
.st4-n { font-size: 2rem; font-weight: 800; line-height: 1; }
.st4.caution .st4-n { color: var(--caution); } .st4.risk .st4-n { color: var(--risk); }
.st4-l { font-weight: 700; font-size: .9rem; }
.st4-a { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.rc-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.rc-grid fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px 14px; margin: 0; background: var(--surface); }
.rc-grid legend { font-weight: 800; font-size: .85rem; padding: 0 6px; }
.rc-grid label { display: block; margin: 8px 0 4px; font-size: .86rem; font-weight: 600; }
.rc-grid input { width: 100%; box-sizing: border-box; }
.rc-line { font-weight: 800; font-size: 1.05rem; margin: 14px 0 4px; }
.rc-diag { font-weight: 700; margin: 0 0 8px; }
.rc-diag.good { color: var(--ok); } .rc-diag.mid { color: var(--caution); }
@media (max-width: 640px) { .stats4 { grid-template-columns: 1fr 1fr; } .rc-grid { grid-template-columns: 1fr; } }
.rc-grid input { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 1rem; }
.rc-grid input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }

/* Bonus 1: source bars, decision page */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 110px; gap: 10px; align-items: center; font-size: .9rem; }
.bar-l { font-weight: 600; }
.bar { height: 14px; border-radius: 7px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 7px; }
.bar i.ok { background: var(--ok); } .bar i.caution { background: var(--caution); } .bar i.risk { background: var(--risk); }
.bar-v { font-weight: 800; font-size: .82rem; }
.bar-v.ok { color: var(--ok); } .bar-v.caution { color: var(--caution); } .bar-v.risk { color: var(--risk); }
.dpage { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.dp-row { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border); font-size: .92rem; }
.dp-row:first-child { border-top: 0; }
.dp-k { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding-top: 2px; }
.dp-facts { display: grid; gap: 6px; }
.dp-facts em { font-style: normal; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; margin-left: 6px; white-space: nowrap; }
.pill-ok { color: var(--ok); background: var(--ok-soft); border: 1px solid var(--ok); }
.pill-un { color: var(--caution); background: var(--caution-soft); border: 1px solid var(--caution); }
@media (max-width: 640px) { .bar-row { grid-template-columns: 1fr 90px; } .bar-row .bar { grid-column: 1 / -1; grid-row: 2; } .dp-row { grid-template-columns: 1fr; gap: 4px; } }

/* Bonus 2: vague vs checkable report */
.vs2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vs-col { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.vs-col p { margin: 0; }
.vs-col.bad { border-top: 4px solid var(--risk); } .vs-col.good { border-top: 4px solid var(--ok); }
.vs-k { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.vs-col.bad .vs-k { color: var(--risk); } .vs-col.good .vs-k { color: var(--ok); }
.vs-col.good p { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; }
.vs-why { color: var(--muted); font-size: .84rem; }
.map-arrow { white-space: nowrap; }
@media (max-width: 640px) { .vs2 { grid-template-columns: 1fr; } }
.map.labeled .map-row { grid-template-columns: 1fr 56px 1fr; }
@media (max-width: 560px) { .map.labeled .map-row { grid-template-columns: 1fr; } }
.map-arrow.lab .ar { font-style: normal; } .map-arrow.lab .ar::after { content: "→"; }
@media (max-width: 560px) { .map-arrow.lab .ar::after { content: "↓"; } }

/* Bonus 3: permission screen, never list */
.pscreen { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.ps-card { background: #fff; color: #17122b; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; font-size: .9rem; }
.ps-card ul { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.ps-card li { display: flex; gap: 8px; align-items: center; margin: 0; }
.ps-h { font-weight: 800; margin: 0; }
.ps-f { margin: 0; color: #645b84; font-size: .84rem; display: flex; gap: 8px; align-items: center; }
.ps-q { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 800; display: inline-grid; place-items: center; }
.ps-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.ps-key li { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.never { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.never span { font-weight: 700; font-size: .88rem; padding: 6px 12px; border-radius: 999px; color: var(--risk); background: var(--risk-soft); border: 1px solid var(--risk); }
@media (max-width: 640px) { .pscreen { grid-template-columns: 1fr; } }

/* Bonus 4: price calculator, budget piles */
.pc-bar { display: flex; height: 36px; border-radius: 10px; overflow: hidden; margin: 14px 0 0; }
.pc-bar:empty { display: none; }
.pc-seg { display: flex; align-items: center; justify-content: center; color: #fff; font-size: .78rem; font-weight: 800; min-width: 0; overflow: hidden; white-space: nowrap; }
.pc-seg.a { background: #8b5cf6; } .pc-seg.b { background: #6d28d9; } .pc-seg.c { background: #5b5470; } .pc-seg.d { background: #0f7a4d; }
.pc-msg { font-weight: 700; margin: 0 0 8px; }
.pc-msg.good { color: var(--ok); } .pc-msg.mid { color: var(--caution); }
.bar i.acc { background: var(--accent); }
.piles .bar-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) 70px; }
.piles .bar-v { color: var(--text); text-align: right; }
.piles .bar-l em { font-style: normal; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--caution); background: var(--caution-soft); border: 1px solid var(--caution); border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
@media (max-width: 640px) { .piles .bar-row { grid-template-columns: 1fr 70px; } }
.pc-seg { justify-content: flex-start; padding-left: 6px; }
@media (max-width: 640px) { .pc-seg { font-size: .62rem; padding-left: 4px; } }

/* Bonus 5: landing page anatomy */
.lp { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-items: start; }
.lp-page { background: #fff; color: #17122b; border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.lp-b { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: #f3effc; font-size: .88rem; }
.lp-b.n1 { font-size: 1rem; background: #ede5ff; }
.lp-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #6d28d9; color: #fff; font-size: .75rem; font-weight: 800; display: inline-grid; place-items: center; }
.lp-btn { display: inline-block; background: #6d28d9; color: #fff; font-weight: 800; border-radius: 8px; padding: 8px 14px; }
.lp-out { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-out li { margin: 0; padding: 8px 12px; border-radius: 8px; border: 1px dashed var(--risk); color: var(--muted); text-decoration: line-through; text-decoration-color: var(--risk); font-size: .88rem; }
@media (max-width: 640px) { .lp { grid-template-columns: 1fr; } }

/* Bonus 6: day timeline, dictation errors */
.dayline { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 0; border-left: 3px solid var(--border); }
.dayline li { margin: 0; display: grid; grid-template-columns: 72px 64px 1fr; gap: 10px; align-items: center; padding: 8px 0 8px 14px; position: relative; font-size: .9rem; }
.dayline li::before { content: ""; position: absolute; left: -9px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.dl-t { font-weight: 800; }
.dl-w { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: 3px 6px; border-radius: 6px; border: 1px solid; }
.dl-w.phone { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.dl-w.voice { color: var(--caution); background: var(--caution-soft); border-color: var(--caution); }
.dl-w.desk { color: var(--ok); background: var(--ok-soft); border-color: var(--ok); }
.vs-col mark { background: var(--risk-soft); color: var(--risk); border-radius: 4px; padding: 0 3px; }
.vs-col b { color: var(--ok); }
@media (max-width: 560px) { .dayline li { grid-template-columns: 64px 1fr; } .dayline li > span:last-child { grid-column: 1 / -1; } .dayline li::before { top: 18px; margin-top: 0; } }
.vs-col.good p.plain { font-family: inherit; font-size: .92rem; }

/* Bonus 7: tool iterations */
.iter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.it-step { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.it-n { font-size: .8rem; font-weight: 800; color: var(--accent); min-height: 2.4em; }
.kb { display: flex; gap: 4px; }
.kb > span { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 4px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kb b { font-size: .58rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb i { display: block; height: 12px; border-radius: 3px; background: var(--accent-soft); border: 1px solid var(--accent); }
.kb i.late { background: var(--risk-soft); border-color: var(--risk); }
.kb .dep em { font-style: normal; font-size: .72rem; font-weight: 800; color: var(--ok); }
@media (max-width: 640px) { .iter { grid-template-columns: 1fr; } }
.it-step, .kb { min-width: 0; }

/* Bonus 8 */
.leak-msg.mid { color: var(--caution); }
.vs-col.yp { border-top: 4px solid var(--accent); }
.vs-col.yp .vs-k { color: var(--accent); }
.fg-grid { grid-template-columns: minmax(110px, 1.2fr) repeat(4, minmax(56px, 1fr)); }
@media (max-width: 560px) { .fg-grid { grid-template-columns: minmax(74px, 1.1fr) repeat(4, minmax(40px, 1fr)); gap: 4px; } .fg-grid .la-h { font-size: .64rem; overflow-wrap: anywhere; } .fg-grid .la-row { font-size: .8rem; } .fg-grid label { padding: 6px 0; } }

/* Course access page */
.access-form { display: grid; gap: 10px; max-width: 520px; }
.access-form label { font-weight: 700; }
.access-form input[type="text"] { font: inherit; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.access-form input[type="text"]::placeholder { text-transform: none; letter-spacing: .04em; }
.access-form input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.access-form input[aria-invalid="true"] { border-color: var(--risk); }
.access-form button { justify-self: start; }
.access-msg { margin: 12px 0 0; font-weight: 600; }
.access-msg:empty { display: none; }
.access-msg.bad { color: var(--risk); }
.signout { margin-top: 14px; }
