:root {
  --ink: #17263d;
  --body: #465268;
  --muted: #637087;
  --blue: #245cc3;
  --blue-deep: #174695;
  --blue-wash: #edf3fd;
  --blue-line: #d4dfef;
  --navy: #12213a;
  --green: #1d6b47;
  --green-wash: #eef7f2;
  --green-line: #c5e2d2;
  --amber: #785512;
  --amber-wash: #fffbef;
  --border: #e0e5ec;
  --soft: #f7f9fc;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--body);
  background: #fff;
  font-synthesis: none;
  line-height: 1.65;
  font-size: 15px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 28px; }
body { margin: 0; background: #fff; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
h1, h2, h3, h4, strong, legend, .question-label { color: var(--ink); }
h1, h2, h3, h4 { line-height: 1.25; }
h1 { font-size: clamp(36px, 4.7vw, 54px); letter-spacing: -2px; font-weight: 650; margin: 18px 0 22px; }
h2 { font-size: 26px; letter-spacing: -.65px; font-weight: 650; margin: 0; }
h3 { font-size: 17px; font-weight: 650; margin: 0 0 12px; }
h4 { font-size: 15px; margin: 0 0 8px; }
p { margin: 0 0 14px; }
code, pre, kbd { font-family: var(--mono); }
code { font-size: .87em; }
kbd { font-size: .82em; border: 1px solid #cfd7e4; border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; background: #fff; color: var(--ink); white-space: nowrap; }
pre { margin: 0; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
ul { padding-left: 22px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 16px; background: #fff; border: 1px solid var(--blue); border-radius: 5px; padding: 10px 16px; z-index: 30; }
.skip-link:focus { top: 12px; }

/* Platform switch: hide the other platform only once a choice is active. */
html[data-os="win"] .os-mac, html[data-os="mac"] .os-win { display: none !important; }
kbd.os-win + kbd.os-mac { margin-left: 6px; }
html[data-os] kbd.os-win + kbd.os-mac { margin-left: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1256px; margin: auto; padding: 24px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); display: inline-flex; align-items: center; gap: 20px; text-decoration: none; }
.brand-logo { display: block; width: 128px; height: auto; flex-shrink: 0; }
.brand-description { border-left: 1px solid var(--border); padding-left: 20px; font-size: 12px; line-height: 1.5; font-weight: 550; }
.badge { border: 1px solid var(--border); border-radius: 5px; font-size: 11px; font-weight: 600; letter-spacing: .15px; padding: 5px 10px; background: var(--soft); color: var(--body); }

/* Layout and progress navigation */
.page-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 60px; max-width: 1256px; margin: auto; padding: 0 40px; }
.sidebar { align-self: start; position: sticky; top: 24px; padding-top: 56px; max-height: calc(100vh - 24px); overflow-y: auto; }
.nav-label, .eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: var(--muted); }
.nav-label { margin: 22px 0 8px 10px; display: flex; justify-content: space-between; align-items: baseline; }
.nav-label:first-child { margin-top: 0; }
.nav-label span { font-weight: 600; letter-spacing: .2px; font-size: 10px; color: var(--muted); opacity: .85; }
#guide-nav a { display: flex; gap: 9px; align-items: center; padding: 7px 10px; color: var(--body); text-decoration: none; border-radius: 5px; font-size: 12px; margin-bottom: 1px; line-height: 1.4; }
#guide-nav a .nav-num { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; min-width: 14px; }
.nav-state { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #c3ccda; flex-shrink: 0; display: grid; place-items: center; font-size: 9px; line-height: 1; color: #fff; background: #fff; }
#guide-nav a[data-state="done"] .nav-state { background: var(--green); border-color: var(--green); }
#guide-nav a[data-state="done"] .nav-state::after { content: "✓"; font-weight: 700; }
#guide-nav a:hover { background: var(--soft); color: var(--blue); }
#guide-nav a[aria-current="step"] { color: var(--blue); background: var(--blue-wash); font-weight: 600; }
#guide-nav a[aria-current="step"] .nav-num { color: var(--blue); }
#guide-nav a[aria-current="step"] .nav-state { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 3px #245cc32b; }
#guide-nav a[aria-current="step"][data-state="done"] .nav-state { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 3px #1d6b472b; }
#guide-nav .nav-help { margin-top: 10px; }
.sidebar-note { font-size: 11px; line-height: 1.7; color: var(--muted); border-top: 1px solid var(--border); margin: 18px 10px 0; padding-top: 16px; }
.os-switch { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 18px 10px 0; }
.os-switch-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; width: 100%; margin-bottom: 4px; }
.os-switch button { border: 1px solid #cfd7e4; background: #fff; color: var(--body); border-radius: 5px; font-size: 11px; font-weight: 600; padding: 6px 11px; min-height: 32px; }
.os-switch button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.os-switch-inline { margin: 0 0 22px; }
.os-switch-inline .os-switch-label { width: auto; margin: 0 8px 0 0; }
.mobile-progress { display: none; }
main { min-width: 0; }

/* Hero */
.hero { padding: 60px 0 48px; border-bottom: 1px solid var(--border); scroll-margin-top: 24px; }
.hero .eyebrow { color: var(--blue); display: flex; gap: 10px; align-items: baseline; }
.hero .eyebrow .section-number { font-size: 10px; }
.hero-subtitle { font-size: 18px; line-height: 1.65; max-width: 680px; margin-bottom: 22px; color: var(--ink); }
.hero-roles { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; max-width: 760px; }
.hero-roles li { font-size: 14px; padding-left: 16px; position: relative; }
.hero-roles li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 2px; background: var(--blue); }
.hero-support { font-size: 14px; color: var(--muted); max-width: 720px; }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.act { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: 8px; text-decoration: none; border: 1px solid var(--border); color: var(--body); transition: border-color .15s, transform .15s; }
.act:hover { border-color: #b9c9e7; color: var(--body); }
.act-label { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: var(--muted); }
.act-title { font-size: 19px; font-weight: 650; color: var(--ink); letter-spacing: -.3px; }
.act-text { font-size: 13px; }
.act-meta { font-size: 11px; color: var(--muted); margin-top: auto; padding-top: 8px; }
.act-exercise { background: var(--navy); border-color: var(--navy); color: #c9d4e6; }
.act-exercise:hover { border-color: var(--blue); color: #c9d4e6; }
.act-exercise .act-label, .act-exercise .act-meta { color: #8fa3c4; }
.act-exercise .act-title { color: #fff; }

/* Sections */
.section { padding: 46px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.section-number { font-size: 11px; color: var(--blue); font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; }
.lead { font-size: 17px; color: var(--ink); }
.subhead { margin-top: 36px; font-size: 18px; letter-spacing: -.2px; }
.stage-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 26px; background: var(--soft); }
.stage-intro > div { padding: 16px 20px; }
.stage-intro > div + div { border-left: 1px solid var(--border); }
.stage-intro .eyebrow { margin-bottom: 6px; }
.stage-intro p:not(.eyebrow) { font-size: 13px; margin: 0; }


/* Tool cards */
.tool-card { border: 1px solid var(--border); border-radius: 9px; padding: 22px 24px; margin-top: 14px; scroll-margin-top: 24px; }
.tool-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.tool-head h3 { margin-bottom: 4px; }
.tool-head p { font-size: 13px; margin: 0; }
.tool-letter { flex-shrink: 0; width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.tool-card-claude .tool-letter { background: var(--blue); }
.tool-card-cpi { margin-top: 28px; border-style: dashed; }
.tool-card-cpi .tool-letter { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.actions { margin: 0 0 14px; padding-left: 20px; }
.actions li { font-size: 14px; margin-bottom: 7px; padding-left: 4px; }
.actions li::marker { color: var(--muted); font-size: 12px; font-weight: 600; }
.learn-box { border-left: 3px solid var(--blue); background: var(--blue-wash); padding: 14px 18px; border-radius: 0 6px 6px 0; margin: 16px 0; }
.learn-box p { font-size: 13px; }
.learn-box .eyebrow { color: var(--blue); margin-bottom: 6px; }
.shortcut-list { display: flex; gap: 28px; margin: 0 0 10px; flex-wrap: wrap; }
.shortcut-list div { display: flex; align-items: center; gap: 10px; }
.shortcut-list dt { font-size: 12px; color: var(--muted); }
.shortcut-list dd { margin: 0; font-size: 15px; }
.learn-box p:last-child { margin-bottom: 0; }
.expect { font-size: 13px; color: var(--ink); margin: 12px 0 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.expect > span:first-child { flex-shrink: 0; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--green); background: var(--green-wash); border: 1px solid var(--green-line); border-radius: 4px; padding: 1px 7px; }
.verify-card { border: 1px solid var(--border); background: var(--soft); border-radius: 9px; padding: 20px 24px; margin-top: 14px; }
.verify-card .eyebrow { margin-bottom: 6px; }
.verify-card > p { font-size: 14px; }

/* Disclosure */
details.trouble, details.optional { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 10px; }
details.trouble summary, details.optional summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 28px; }
details.trouble summary::-webkit-details-marker, details.optional summary::-webkit-details-marker { display: none; }
details.trouble summary::before, details.optional summary::before { content: "+"; display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1px solid #cfd7e4; border-radius: 3px; font-size: 12px; line-height: 1; }
details[open].trouble summary::before, details[open].optional summary::before { content: "−"; }
details.trouble summary:hover, details.optional summary:hover { color: var(--blue); }
details.trouble ul { margin: 10px 0 0; padding-left: 18px; }
details.trouble li, details.optional p { font-size: 13px; margin-bottom: 6px; }
details.optional p { margin-top: 10px; }
.trouble-standalone { margin-top: 24px; }

/* Section completion checks */
.section-checks { border: 1px solid var(--border); border-radius: 8px; margin: 22px 0 0; padding: 14px 18px 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; }
.section-checks legend { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
.section-checks label, .checkpoint-checks label, .ready-list label, .inline-check { display: flex; gap: 9px; align-items: center; font-size: 13px; color: var(--ink); cursor: pointer; min-height: 30px; }
input[type="checkbox"] { accent-color: var(--green); width: 17px; height: 17px; flex-shrink: 0; margin: 0; }
.inline-check { margin-top: 14px; }

/* Code, prompts and facts */
.code-block { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; background: var(--soft); border: 1px solid var(--border); padding: 13px 16px; border-radius: 6px; margin: 12px 0; color: var(--ink); }
.verify-card .code-block, .identity-card .code-block { background: #fff; }
.code-block pre { flex: 1; min-width: 0; font-size: 14px; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cfd7e4; background: #fff; border-radius: 5px; min-height: 34px; padding: 5px 11px; color: var(--body); font-size: 11px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.copy-button:hover { background: var(--blue-wash); border-color: #b9c9e7; color: var(--blue); }
.inline-copy { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inline-copy .copy-button { min-height: 28px; padding: 3px 9px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--border); }
.facts > div { padding: 10px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding-right: 16px; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.facts-compact { grid-template-columns: 1fr; margin: 12px 0; max-width: 620px; }
.facilitator-value { color: var(--amber) !important; font-style: italic; }
.facilitator-value::before { content: "◆ "; font-style: normal; font-size: 9px; vertical-align: 1px; }
.facts-card, .identity-card, .known-facts { border: 1px solid var(--border); border-radius: 9px; padding: 20px 24px; margin-bottom: 8px; }
.facts-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.facts-head .eyebrow { margin: 0; }
.mini-facts { margin: 12px 0 0; padding-left: 18px; }
.mini-facts li { font-size: 13px; margin-bottom: 4px; }
.small-badge { color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .65px; border: 1px solid var(--border); background: var(--soft); border-radius: 3px; display: inline-block; padding: 3px 7px; }
.split-label { font-size: 10px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.identity-card { background: var(--soft); margin-bottom: 0; }
.identity-card > p:not(.eyebrow):not(.split-label):not(.small-text) { font-size: 13px; }
.identity-card .facts { margin-bottom: 18px; }
.identity-card input { max-width: 360px; font-family: var(--mono); }
.identity-card .split-label { margin-top: 18px; }
.repo-name-block pre { font-size: 13px; }
#repo-name-status.is-error { color: #a1301f; }
#repo-name-status.is-ok { color: var(--green); }
.ready-status.is-complete { color: var(--green); }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; }
.steps > li { position: relative; counter-increment: step; padding: 0 0 26px 48px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.steps > li:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 50%; font-size: 11px; color: var(--muted); font-weight: 600; }
.steps p { font-size: 14px; }
.steps .small-text { font-size: 12px; }
.steps .button { margin: 2px 0 6px; }
.small-text { font-size: 12px; color: var(--muted); }
.note { border-left: 2px solid #c6d5ec; background: var(--soft); font-size: 13px; padding: 15px 18px; margin: 22px 0 0; }
.safety-note { color: var(--muted); font-size: 12px; margin: 18px 0 0; padding-left: 12px; border-left: 2px solid #c6d5ec; }

/* Checkpoints */
.checkpoint { border: 1px solid var(--green-line); border-radius: 10px; margin-top: 30px; overflow: hidden; scroll-margin-top: 24px; }
.checkpoint-head { background: var(--green-wash); padding: 14px 22px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--green-line); }
.checkpoint-head h3 { margin: 0; font-size: 18px; }
.checkpoint-tag { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: #fff; background: var(--green); border-radius: 4px; padding: 3px 8px; }
.checkpoint-body { display: grid; grid-template-columns: minmax(200px, .8fr) 1.2fr; }
.checkpoint-checks { border: 0; margin: 0; padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; }
.checkpoint-checks label { font-size: 14px; font-weight: 550; }
.checkpoint-fail { padding: 18px 22px; border-left: 1px solid var(--green-line); background: #fff; }
.checkpoint-fail > p { font-size: 13px; }
.checkpoint-fail details.trouble { border-top: 0; padding-top: 0; margin-top: 6px; }
.diagnosis { margin: 0 0 6px; }
.diagnosis > div { padding: 8px 0; border-top: 1px solid var(--border); }
.diagnosis dt { font-size: 13px; font-weight: 600; color: var(--ink); }
.diagnosis dd { margin: 2px 0 0; font-size: 12px; }

/* Signature: the layer stack */
.stack-figure { margin: 4px 0 30px; display: grid; grid-template-columns: minmax(0, 420px) 40px 40px; justify-content: start; grid-template-rows: repeat(6, auto); column-gap: 8px; align-items: stretch; }
.layer-stack { grid-column: 1; grid-row: 1 / 7; display: grid; grid-template-rows: subgrid; list-style: none; margin: 0; padding: 0; }
.layer { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; border: 1px solid var(--blue-line); border-radius: 7px; background: #fff; }
.layer[data-row="1"] { background: var(--blue-wash); }
.layer[data-row="3"] { border-radius: 7px 7px 0 0; border-bottom-style: dashed; }
.layer[data-row="4"] { border-radius: 0 0 7px 7px; border-top: 0; }
.layer-sap { border-color: var(--ink); }
.layer-name { font-size: 14px; font-weight: 650; color: var(--ink); }
.layer-detail { font-size: 11px; color: var(--muted); text-align: right; }
.layer-link { position: relative; display: flex; align-items: center; padding: 8px 0 8px 30px; min-height: 36px; }
.layer-link::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 2px; background: #b9c6db; }
.layer-link span { font-size: 11px; color: var(--muted); padding-left: 10px; }
.layer-link code { font-size: 11px; color: var(--ink); }
.stack-bracket { position: relative; width: 14px; border: 2px solid var(--green); border-left: 0; border-radius: 0 8px 8px 0; margin: 10px 0; }
.stack-bracket span { position: absolute; left: calc(100% + 5px); top: 50%; transform: translateY(-50%); writing-mode: vertical-lr; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--green); white-space: nowrap; }
.bracket-1 { grid-column: 2; grid-row: 4 / 7; }
.bracket-2 { grid-column: 3; grid-row: 1 / 7; }
.stack-figure figcaption { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin-top: 12px; }

/* Ready check */
.ready-section { background: var(--green-wash); border: 1px solid var(--green-line); border-radius: 12px; padding: 32px; margin: 34px 0 40px; }
.ready-section h2 { font-size: 30px; }
.ready-list { border: 0; padding: 0; margin: 20px 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.ready-list label { font-size: 14px; background: #fff; border: 1px solid var(--green-line); border-radius: 6px; padding: 8px 12px; min-height: 42px; }
.ready-status { font-size: 13px; font-weight: 600; color: var(--muted); min-height: 1.6em; margin: 12px 0 0; }
.ready-cta { margin-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ready-cta p { margin: 0; }
.button-large { font-size: 14px; min-height: 50px; padding: 13px 22px; }
.link-button { background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--blue); }

/* Part band */
.part-band { display: flex; align-items: center; gap: 26px; background: var(--navy); color: #fff; border-radius: 12px; padding: 26px 32px; margin: 0 0 6px; }
.part-band img { width: 92px; height: auto; flex-shrink: 0; }
.part-band > div { border-left: 1px solid #ffffff33; padding-left: 26px; }
.part-band-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: #8fa3c4; margin: 0 0 4px; }
.part-band-title { font-size: 22px; font-weight: 650; letter-spacing: -.4px; color: #fff; margin: 0; line-height: 1.3; }

/* Mission */
.mission-story { max-width: 720px; }
.mission-story p { font-size: 16px; color: var(--ink); }
.journey { margin: 26px 0 8px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 10px; background: var(--soft); }
.journey ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 0; align-items: center; }
.journey li { font-size: 12px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; position: relative; margin-right: 26px; }
.journey li::after { content: "→"; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); color: #9aa8bf; font-weight: 400; }
.journey li:last-child { margin-right: 0; }
.journey li:last-child::after { content: none; }
.journey-optional { border-style: dashed !important; color: var(--body) !important; font-weight: 500 !important; }
.journey-human { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
.journey-end { background: var(--green-wash) !important; border-color: var(--green-line) !important; color: var(--green) !important; }
.journey figcaption { font-size: 12px; color: var(--muted); margin-top: 14px; }
.spec-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.spec-actions .small-text { max-width: 440px; }
.spec-card { border: 1px solid var(--border); border-radius: 8px; margin-top: 20px; overflow: hidden; }
.spec-header { padding: 26px 28px; background: var(--soft); border-bottom: 1px solid var(--border); }
.spec-header h3 { font-size: 19px; margin-bottom: 7px; }
.spec-header p { font-size: 12px; margin: 0; color: var(--muted); }
.spec-part { padding: 24px 28px; border-bottom: 1px solid var(--border); }
.spec-part:last-child { border-bottom: 0; }
.spec-part h3 { color: var(--muted); font-size: 10px; letter-spacing: 1.2px; margin-bottom: 18px; }
.spec-part p, .spec-part li { font-size: 13px; }
.spec-part p:last-child { margin-bottom: 0; }
.requirement { padding: 16px 0; border-bottom: 1px solid var(--border); }
.requirement:first-of-type { padding-top: 0; }
.requirement:last-child { border-bottom: 0; padding-bottom: 0; }
.requirement h4 { font-size: 13px; }
.requirement ol { font-size: 13px; padding-left: 22px; margin: 12px 0; }
.filename { display: block; background: var(--soft); border: 1px solid var(--border); border-radius: 4px; padding: 10px 12px; margin: 8px 0 12px; font-size: 12px; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; margin-top: 14px; border: 1px solid var(--border); border-radius: 5px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
caption { text-align: left; font-size: 12px; padding: 10px 14px; color: var(--muted); background: var(--soft); }
th { font-size: 11px; font-weight: 600; color: var(--ink); background: var(--soft); text-align: left; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border: 0; }
.scope-list { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 22px; margin-bottom: 0; }
.open-items { background: var(--amber-wash); }
.open-items h3 { color: var(--amber); }
.open-items h4 { color: #705019; margin-bottom: 12px; }
.open-items p, .open-items li { color: #725625; }
.open-items ol { padding-left: 20px; }
.environment-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.environment-cell { padding: 22px 24px; }
.environment-cell:first-child { border-right: 1px solid var(--border); }
.environment-cell .eyebrow { margin-bottom: 10px; }
.environment-cell p:not(.eyebrow):not(.split-label) { font-size: 13px; }
.sftp-cell { grid-column: 1 / -1; border-top: 1px solid var(--border); background: #fafbfd; }
.sftp-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.environment-details { display: grid; grid-template-columns: 1fr .6fr 1.2fr; gap: 16px; margin: 0; }
.environment-details dt { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.environment-details dd { margin: 0; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.environment-details dd code { font-size: 12px; }
.secret-box { border: 1px dashed #d8c48f; background: var(--amber-wash); border-radius: 6px; padding: 12px 14px; }
.secret-box .split-label { color: var(--amber); }
.secret-box p:last-child { margin: 0; font-size: 12px !important; color: #725625; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; font-size: 12px; font-weight: 600; min-height: 40px; padding: 10px 16px; border-radius: 5px; text-decoration: none; border: 1px solid transparent; line-height: 1.5; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: #194da9; color: #fff; }
.button-secondary { border-color: #cfd7e4; background: #fff; color: var(--ink); }
.button-secondary:hover { background: var(--soft); color: var(--blue); }
.button-quiet { color: var(--blue); padding-left: 4px; padding-right: 4px; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 24px; }
.action-row-tight { padding-top: 4px; align-items: center; }

/* Start */
.start-section { background: #f5f8fe; border: 1px solid #d8e3f6; border-radius: 12px; padding: 32px; margin: 32px 0 0; }
.start-section h2 { font-size: 30px; }
.start-section .section-heading { margin-bottom: 18px; }
.prompt-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--blue-line); background: #fff; border-radius: 6px; padding: 15px 18px; color: var(--ink); margin: 14px 0; }
.prompt-card code { line-height: 1.65; overflow-wrap: anywhere; }
.main-prompt { padding: 23px; margin: 18px 0 22px; }
.main-prompt code { font-size: 22px; font-weight: 550; letter-spacing: -.5px; }
.start-handover { font-size: 15px; border-left: 3px solid var(--blue); padding: 4px 0 4px 14px; }
.stacked-prompt { align-items: flex-start; flex-direction: column; gap: 12px; background: var(--soft); }
.stacked-prompt code { font-size: 12px; }
.known-facts { background: #fff; margin-top: 26px; border-color: var(--blue-line); }
.known-facts .eyebrow { color: var(--blue); margin-bottom: 6px; }
.known-facts > p:not(.eyebrow) { font-size: 13px; }
.known-facts .facts { margin: 14px 0 16px; grid-template-columns: 1fr; }
.known-facts .facts > div { grid-template-columns: 150px 1fr; }

/* Work with Claude */
.judgment { background: var(--navy); color: #fff; border-radius: 12px; padding: 26px 30px; margin-bottom: 22px; }
.judgment-title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 650; letter-spacing: -.5px; color: #fff; margin: 0 0 16px; line-height: 1.3; }
.judgment-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid #ffffff2a; }
.judgment-split p { margin: 0; padding: 14px 0 0; font-size: 14px; color: #c9d4e6; }
.judgment-split p + p { border-left: 1px solid #ffffff2a; padding-left: 20px; }
.judgment-split span { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #8fa3c4; margin-bottom: 2px; }
.judgment-split p + p span { color: #8ec5a8; }
.moment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.moment { border: 1px solid var(--border); border-radius: 8px; padding: 20px 22px; }
.moment .eyebrow { color: var(--blue); }
.moment p { font-size: 13px; }
.moment p:last-child { margin-bottom: 0; }
blockquote { font-size: 13px; margin: 12px 0 14px; border-left: 2px solid var(--border); padding-left: 12px; line-height: 1.7; color: var(--muted); font-style: italic; }
.safety-card { border: 1px solid #e3cf95; background: var(--amber-wash); border-radius: 10px; padding: 20px 24px; margin-top: 22px; scroll-margin-top: 24px; }
.safety-card .eyebrow { color: var(--amber); }
.safety-card ul { margin: 0; padding-left: 18px; }
.safety-card li { font-size: 13px; margin-bottom: 7px; color: #5e4618; }
.safety-card strong { color: #4d3913; }
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rule-card { border: 1px solid var(--border); border-radius: 7px; padding: 20px; }
.rule-number { font-size: 12px; font-weight: 600; color: var(--blue); display: block; margin-bottom: 16px; }
.rule-card h4 { font-size: 15px; }
.rule-card p { font-size: 12px; }
.rule-card p:last-child { margin: 0; }
.rule-prompt { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.rule-prompt code { font-size: 11px; }
.finish-list { padding-left: 20px; }
.finish-list li { font-size: 14px; margin-bottom: 6px; }

/* Feedback */
.feedback-part { margin-top: 30px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.feedback-part:first-child { margin-top: 18px; }
.feedback-part .eyebrow { color: var(--ink); margin: 0; }
.feedback-question { border: 0; border-bottom: 1px solid var(--border); padding: 24px 0; margin: 0; min-width: 0; }
fieldset.feedback-question { padding-top: 14px; margin-top: 24px; }
legend, .question-label { font-size: 14px; font-weight: 550; width: 100%; padding: 0; line-height: 1.7; }
legend > span, .question-label > span:not(.optional) { color: var(--muted); margin-right: 5px; }
.question-label { display: block; margin-bottom: 15px; }
.choice-group { display: flex; flex-wrap: wrap; gap: 9px; }
.choice { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.choice span { min-width: 44px; min-height: 44px; text-align: center; padding: 10px 15px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cfd7e4; border-radius: 5px; font-size: 12px; background: #fff; color: var(--body); }
.choice:hover span { background: var(--soft); }
.choice input:checked + span { color: #fff; background: var(--blue); border-color: var(--blue); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 4px; }
.rating { width: 256px; max-width: 100%; flex-wrap: nowrap; }
.rating-caption { display: flex; justify-content: space-between; width: 256px; max-width: 100%; font-size: 10px; color: var(--muted); margin-top: 7px; }
.input-label { display: block; font-size: 12px; margin: 18px 0 9px; color: var(--body); }
.input-label span, .optional { font-weight: 400; color: var(--muted); font-size: 12px; }
textarea, input[type="text"], input[type="time"], input[type="number"] { width: 100%; border: 1px solid #cfd7e4; background: #fff; color: var(--ink); border-radius: 5px; padding: 11px 13px; font-size: 13px; }
textarea { resize: vertical; min-height: 90px; display: block; line-height: 1.7; }
textarea::placeholder, input::placeholder { color: var(--muted); opacity: 1; }
.hours-input { max-width: 180px; }
.hours-help { margin: 8px 0 0; }
.feedback-subpoints { margin: 0 0 18px; font-size: 13px; }

/* Troubleshooting */
.help-section { border-bottom: 0; }
.boundary { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 22px; }
.boundary > div { padding: 16px 20px; }
.boundary > div:first-child { background: var(--blue-wash); }
.boundary > div + div { border-left: 1px solid var(--border); background: var(--soft); }
.boundary .eyebrow { margin-bottom: 6px; }
.boundary p:not(.eyebrow) { margin: 0; font-size: 14px; color: var(--ink); }
.layer-help { margin: 0; }
.layer-help > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.layer-help dt { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.layer-tag { font-size: 9px; font-weight: 700; letter-spacing: 1.3px; color: var(--blue); }
.layer-help dd { margin: 0; font-size: 13px; }
.links-line { margin-top: 22px; line-height: 2; }

/* Facilitator */
.facilitator-section { margin-top: 32px; padding: 28px; background: var(--soft); border: 1px solid var(--border); border-radius: 8px; }
.facilitator-section h2 { margin-bottom: 16px; }
.facilitator-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.facilitator-rules > div { background: #fff; border: 1px solid var(--border); border-radius: 7px; padding: 14px 18px; }
.facilitator-rules ul { margin: 0 0 8px; padding-left: 18px; }
.facilitator-rules li { font-size: 12px; }
.facilitator-block { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 16px 20px 20px; margin: 18px 0 0; min-width: 0; }
.facilitator-block legend { font-size: 13px; font-weight: 650; padding: 0 6px; width: auto; }
.facilitator-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 14px 0; }
.facilitator-fields-single { grid-template-columns: 1fr; max-width: 420px; }
.facilitator-fields label, label[for="friction"], label[for="setup-friction"] { display: block; font-size: 12px; margin-bottom: 8px; color: var(--ink); }
.observation-checks { margin: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.observation-checks label { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; cursor: pointer; }
.observation-checks input { accent-color: var(--blue); width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; }

/* Footer, toast, dialog */
.page-footer { padding: 28px 0 40px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); border-radius: 6px; padding: 12px 20px; background: var(--ink); color: #fff; box-shadow: 0 5px 20px #17263d18; font-size: 13px; max-width: calc(100% - 32px); text-align: center; z-index: 25; }
.toast:empty { display: none; }
dialog { width: min(640px, calc(100% - 32px)); border: 1px solid var(--border); border-radius: 8px; padding: 28px; color: var(--body); background: #fff; }
dialog::backdrop { background: #17263d70; }
dialog h2 { margin-bottom: 14px; }
dialog label { font-size: 12px; display: block; margin-bottom: 8px; }
dialog textarea { margin-bottom: 18px; }

/* Workflow process diagram (source: diagrams/how-the-workflow-works.drawio) */
.process { margin: 26px 0 0; padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.process img { display: block; width: 100%; max-width: 936px; height: auto; margin: 0 auto; }
.process figcaption { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }
.process-steps { list-style: none; counter-reset: process; padding: 0; margin: 0; display: grid; gap: 8px; }
.process-steps li { counter-increment: process; display: grid; grid-template-columns: 30px 122px 1fr; align-items: start; gap: 12px; border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; }
.process-steps li::before { content: counter(process); width: 26px; height: 26px; border-radius: 50%; background: #5b738b; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.process-steps p { margin: 0; font-size: 14px; }
.process-who { font-size: 10px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); padding-top: 5px; }
.process-who-you { color: #07838f; }
.process-steps li:has(.process-who-you) { border-color: #9bd8d0; background: #f3fcfa; }
.process-facts { margin-top: 18px; border-left: 2px solid #c6d5ec; background: var(--soft); padding: 14px 18px; display: grid; gap: 6px; }
.process-facts p { margin: 0; font-size: 13px; }

@media (min-width: 1400px) { .page-shell { gap: 80px; } }
@media (max-width: 1100px) {
  .page-shell { grid-template-columns: 196px minmax(0, 1fr); gap: 34px; padding: 0 28px; }
  .header-inner { padding: 22px 28px; }
  .facts { grid-template-columns: 1fr; }
  .section-checks { grid-template-columns: 1fr 1fr; }
  .checkpoint-body { grid-template-columns: 1fr; }
  .checkpoint-fail { border-left: 0; border-top: 1px solid var(--green-line); }
  .environment-details { grid-template-columns: 1fr 1fr; }
  .environment-details > div:last-child { grid-column: 1 / -1; }
  .sftp-split { grid-template-columns: 1fr; gap: 16px; }
  .rules-grid { gap: 10px; }
  .rule-card { padding: 16px; }
}
@media (max-width: 820px) {
  .page-shell { display: block; max-width: 740px; }
  .sidebar { display: none; }
  .mobile-progress { display: block; position: sticky; top: 0; z-index: 20; background: #fffffff2; backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
  .mobile-progress summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 28px; cursor: pointer; min-height: 48px; }
  .mobile-progress summary::-webkit-details-marker { display: none; }
  .mobile-progress-part { font-size: 9px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #fff; background: var(--ink); border-radius: 3px; padding: 2px 7px; flex-shrink: 0; }
  .mobile-progress-step { font-size: 13px; font-weight: 600; color: var(--ink); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-progress-toggle { font-size: 11px; font-weight: 600; color: var(--blue); border: 1px solid var(--blue-line); border-radius: 5px; padding: 3px 9px; }
  .mobile-progress[open] .mobile-progress-toggle { background: var(--blue-wash); }
  .mobile-progress-panel { padding: 4px 28px 16px; max-height: 70vh; overflow-y: auto; }
  .mobile-progress-panel #guide-nav-mobile a { display: flex; gap: 9px; align-items: center; padding: 9px 10px; color: var(--body); text-decoration: none; border-radius: 5px; font-size: 13px; min-height: 40px; }
  .mobile-progress-panel .nav-num { color: var(--muted); font-size: 10px; min-width: 14px; }
  .mobile-progress-panel a[aria-current="step"] { background: var(--blue-wash); color: var(--blue); font-weight: 600; }
  .mobile-progress-panel a[data-state="done"] .nav-state { background: var(--green); border-color: var(--green); }
  .mobile-progress-panel a[data-state="done"] .nav-state::after { content: "✓"; font-weight: 700; }
  .mobile-progress-panel a[aria-current="step"] .nav-state { border-color: var(--blue); }
  .mobile-progress-panel .os-switch { margin: 14px 10px 0; }
  .hero { padding-top: 42px; }
  .header-inner { padding-top: 18px; padding-bottom: 18px; }
  h1 { font-size: 44px; }
  html { scroll-padding-top: 64px; }
  .section, .hero, .checkpoint, .tool-card { scroll-margin-top: 64px; }
}
@media (max-width: 560px) {
  :root { font-size: 14px; }
  .page-shell { padding: 0 20px; }
  .mobile-progress summary { padding: 10px 20px; }
  .mobile-progress-panel { padding: 4px 20px 16px; }
  .header-inner { padding: 18px 20px; gap: 12px; align-items: flex-start; }
  .brand { gap: 10px; }
  .brand-logo { width: 88px; }
  .brand-description { padding-left: 10px; font-size: 9px; }
  .badge { font-size: 9px; max-width: 116px; line-height: 1.5; padding: 4px 7px; }
  .hero { padding: 36px 0; }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1px; }
  h1 { font-size: 34px; letter-spacing: -1.3px; }
  h2 { font-size: 23px; }
  .hero-subtitle { font-size: 16px; }
  .hero-support { font-size: 13px; }
  .hero-roles, .acts, .stage-intro, .moment-grid, .judgment-split, .boundary, .ready-list, .section-checks, .facilitator-rules { grid-template-columns: 1fr; }
  .process { padding: 10px; }
  .process-steps li { grid-template-columns: 26px 1fr; gap: 4px 10px; padding: 12px; }
  .process-steps li::before { grid-row: span 2; }
  .process-who { padding-top: 4px; }
  .stage-intro > div + div, .boundary > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .judgment-split p + p { border-left: 0; padding-left: 0; border-top: 1px solid #ffffff2a; margin-top: 14px; }
  .section { padding: 32px 0; }
  .section-heading { gap: 10px; }
  .tool-card, .verify-card, .facts-card, .identity-card, .known-facts, .moment, .safety-card { padding: 18px; }
  .tool-head { gap: 12px; }
  .facts > div, .known-facts .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .stack-figure { grid-template-columns: minmax(0, 1fr) 30px 30px; column-gap: 4px; }
  .layer { flex-direction: column; gap: 0; padding: 10px 12px; }
  .layer-detail { text-align: left; }
  .stack-bracket { width: 10px; }
  .checkpoint-head, .checkpoint-checks, .checkpoint-fail { padding-left: 16px; padding-right: 16px; }
  .ready-section, .start-section { padding: 22px 18px; }
  .ready-section h2, .start-section h2 { font-size: 24px; }
  .part-band { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; }
  .part-band > div { border-left: 0; padding-left: 0; }
  .part-band-title { font-size: 19px; }
  .judgment { padding: 22px 20px; }
  .environment-grid { grid-template-columns: 1fr; }
  .environment-cell { padding: 20px; }
  .environment-cell:first-child { border-right: 0; border-bottom: 1px solid var(--border); }
  .environment-details { grid-template-columns: 1fr; gap: 14px; }
  .layer-help > div { grid-template-columns: 1fr; gap: 6px; }
  .steps > li { padding-left: 38px; }
  .code-block { gap: 8px; padding: 12px; }
  .code-block pre { font-size: 12px; }
  .main-prompt { padding: 18px 14px; flex-direction: column; align-items: flex-start; }
  .main-prompt code { font-size: 19px; }
  .prompt-card { padding: 14px; gap: 10px; }
  .spec-header, .spec-part { padding: 20px; }
  .scope-list { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .rule-card { padding: 22px; }
  .rule-number { margin-bottom: 12px; }
  .rule-prompt { flex-direction: row; align-items: center; justify-content: space-between; }
  .facilitator-section { padding: 20px; }
  .facilitator-fields, .observation-checks { grid-template-columns: 1fr; }
  .page-footer { flex-direction: column; gap: 5px; }
}
@media (max-width: 360px) {
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand-logo { width: 76px; }
  .brand-description { padding-left: 8px; font-size: 8px; }
  .badge { font-size: 8px; }
  h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { .act { transition: none; } }
@media print {
  .sidebar, .mobile-progress, .copy-button, .button, .toast, .skip-link, .os-switch, .link-button { display: none !important; }
  html[data-os] .os-win, html[data-os] .os-mac { display: revert !important; }
  .page-shell { display: block; }
  .hero, .section { padding: 24px 0; }
  details > *:not(summary) { display: block; }
  .spec-part, .moment, .rule-card, .checkpoint, .tool-card, .process, .process-steps li { break-inside: avoid; }
  .part-band, .judgment, .act-exercise { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Getting-started additions */
.identity-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 4px; }
.identity-fields .identity-wide { grid-column: 1 / -1; }
.identity-fields .input-label { margin-top: 12px; }
.identity-card .identity-fields input { max-width: none; }
.identity-card .mini-facts { margin-top: 14px; }
.prompt-list { display: grid; gap: 10px; margin: 14px 0; }
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.glossary > div { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; background: #fff; }
.glossary dt { font-weight: 700; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.glossary dd { margin: 0; font-size: 13px; color: var(--body); }
@media (max-width: 640px) {
  .identity-fields, .glossary { grid-template-columns: 1fr; }
}
