/* Founder Reset — "Domino" design system.
   Warm paper, deep ink, one hot coral accent. Big serif questions, calm sans body. */

:root {
  --paper: #f7f3ec;
  --paper-2: #efe8dc;
  --card: #ffffff;
  --ink: #15171f;
  --ink-2: #2a2d3a;
  --muted: #5d6170;
  --line: #e2dacb;
  --accent: #ff5a36;
  --accent-ink: #b5300f;   /* accent for text on light: 5.6:1 */
  --accent-soft: #ffe4dc;
  --teal: #0f6f6e;
  --teal-soft: #d8efed;
  --gold: #f2b33d;
  --sky-1: #8fb6d9;
  --sky-2: #e9d6c5;
  --sun-bg: #fbe3c4;
  --room-bg: #3a3f73;
  --ok: #157a46;
  --warn-bg: #fff4d6;
  --err: #b42318;
  --err-bg: #fde8e6;
  --info-bg: #e6f0f7;
  --focus: #2b59ff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(21, 23, 31, .05), 0 8px 28px rgba(21, 23, 31, .07);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --script: 'Caveat', 'Bradley Hand', cursive;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.1; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; }
p { margin: 0 0 .8em; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mt { margin-top: 1.4rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: var(--muted); margin-bottom: .5em; }
.hl { color: var(--accent-ink); }
.plain { list-style: none; padding: 0; margin: 0 0 1em; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* ---------- Demo banner ---------- */
.demo-banner {
  background: repeating-linear-gradient(-45deg, #15171f, #15171f 14px, #22252f 14px, #22252f 28px);
  color: #fff; text-align: center; font-size: .86rem; padding: .45rem 1rem;
}
.demo-banner strong { color: var(--gold); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem clamp(1rem, 3vw, 2rem);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.mark { width: 30px; height: 30px; }
.mark .m1 { fill: var(--ink); } .mark .m1s { stroke: var(--ink); } .mark .m2 { fill: var(--accent); } .mark .m3 { fill: var(--gold); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.link-quiet { color: var(--ink-2); font-weight: 600; font-size: .9rem; text-decoration: none; padding: .5rem .2rem; }
.link-quiet:hover { color: var(--accent-ink); }

/* Domino progress rail: completed tiles tip over */
.rail { list-style: none; display: flex; gap: 7px; margin: 0 auto; padding: 0; align-items: flex-end; height: 30px; }
.rail li { display: block; }
.rail .tile { display: block; width: 11px; height: 26px; border-radius: 3px; background: var(--paper-2); border: 1.5px solid #cfc5b3; transform-origin: bottom right; transition: transform .5s cubic-bezier(.5,-0.4,.4,1.4), background .3s; }
.rail .is-done .tile { background: var(--accent); border-color: var(--accent); transform: rotate(22deg); }
.rail .is-current .tile { background: var(--ink); border-color: var(--ink); height: 30px; }

.save-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--muted); min-width: 9.5em; justify-content: flex-end; }
.save-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.save-status[data-state="saving"] .dot { background: var(--gold); animation: pulse 1s infinite; }
.save-status[data-state="error"] { color: var(--err); font-weight: 600; }
.save-status[data-state="error"] .dot { background: var(--err); }
.save-status[data-state="unsaved"] .dot { background: var(--gold); }
.save-status button { font: inherit; color: var(--err); text-decoration: underline; background: none; border: 0; cursor: pointer; padding: .2rem; min-height: 32px; }

/* Timer strip */
.timer-strip { position: sticky; top: 57px; z-index: 19; display: flex; gap: .7rem; align-items: center; justify-content: center; padding: .5rem 1rem; background: var(--ink); color: #fff; font-size: .95rem; }
.timer-strip strong { font-variant-numeric: tabular-nums; font-size: 1.2rem; letter-spacing: .02em; }
.timer-strip .timer-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s infinite; }
.timer-strip.is-zero { background: var(--accent-ink); }
.timer-strip.is-zero .timer-dot { animation: none; background: #fff; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 46px; padding: .7rem 1.25rem; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--card); color: var(--ink);
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .12s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(21,23,31,.12); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #1a0c07; }
.btn-primary:hover { background: #ff6a49; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: #c9bfae; }
.btn-small { min-height: 44px; padding: .5rem 1rem; font-size: .92rem; }
.btn-wide { width: 100%; }
.btn-voice svg { width: 18px; height: 18px; fill: currentColor; }
.btn-voice.is-recording { background: var(--err); color: #fff; border-color: var(--err); }
.linkish { background: none; border: 0; color: var(--accent-ink); text-decoration: underline; font: inherit; cursor: pointer; padding: .3rem; min-height: 44px; }
.inline-form { display: inline; }

/* ---------- Cards, fields ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.1rem, 3vw, 1.8rem); }
.field { margin-bottom: 1.15rem; }
.field label, .field legend, .big-label { display: block; font-weight: 600; margin-bottom: .35rem; }
.big-label { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; font-weight: 600; }
.hint { color: var(--muted); font-size: .9rem; margin: -.1rem 0 .5rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input:not([type]), textarea {
  width: 100%; font: 1rem/1.5 var(--sans); color: var(--ink);
  background: #fffdf9; border: 1.5px solid #d6ccba; border-radius: 12px;
  padding: .75rem .9rem; min-height: 48px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(43, 89, 255, .18); }
input.num { width: 6rem; }
.field-foot { display: flex; justify-content: flex-end; }
.counter { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter.is-near { color: var(--accent-ink); font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; cursor: pointer; min-height: 44px; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent-ink); flex: none; }
.check input:disabled + span { color: var(--muted); }
.pill-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.pill-radio input { position: absolute; opacity: 0; }
.pill-radio span { display: inline-flex; align-items: center; min-height: 46px; padding: .6rem 1.2rem; border-radius: 999px; border: 1.5px solid #cfc5b3; cursor: pointer; font-weight: 600; }
.pill-radio input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill-radio input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.alert { padding: .8rem 1rem; border-radius: 12px; font-size: .95rem; margin: 0 0 1rem; }
.alert-error { background: var(--err-bg); color: var(--err); }
.alert-warn { background: var(--warn-bg); color: #6b4b00; }
.alert-info { background: var(--info-bg); color: #19415f; }
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.badge-sim { background: repeating-linear-gradient(-45deg, #fff1c9, #fff1c9 8px, #ffe7a3 8px, #ffe7a3 16px); color: #5b3f00; border: 1px solid #f0cf73; }
.badge-live { background: var(--teal-soft); color: var(--teal); }
.chip { display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; padding: .35rem .75rem; border-radius: 999px; margin-bottom: .9rem; }
.chip-story { background: #e3ecf6; color: #234d73; }
.chip-room { background: #e6e4f7; color: #3a3f73; }
.chip-strategy { background: var(--accent-soft); color: var(--accent-ink); }
.chip-commit { background: var(--ink); color: #fff; }
.chip-review { background: var(--teal-soft); color: var(--teal); }

/* ---------- Landing ---------- */
.landing { max-width: 1180px; margin: 0 auto; padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem) 4rem; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.landing-hero { display: grid; gap: 2rem; }
.landing h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.meta-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .55rem; }
.meta-list li { display: flex; gap: 1rem; font-weight: 500; }
.meta-list span { width: 5.5rem; color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; padding-top: .1rem; }
.landing-visual { position: relative; height: 210px; border-radius: 26px; background: var(--ink); overflow: hidden; }
.edition-mark { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); }
.edition-mark svg { width: 128px; height: 128px; filter: drop-shadow(0 0 28px color-mix(in srgb, var(--accent) 45%, transparent)); }
.domino-run { position: absolute; left: 7%; right: 7%; bottom: 46px; display: flex; align-items: flex-end; justify-content: space-between; }
.domino-run span { --h: calc(34px + var(--i) * 15px); width: calc(12px + var(--i) * 3.2px); height: var(--h); background: var(--paper); border-radius: 3px; transform-origin: bottom right; animation: topple 6s cubic-bezier(.6,0,.4,1) infinite; animation-delay: calc(var(--i) * .16s); }
.domino-run span:first-child { background: var(--accent); }
@keyframes topple { 0%, 12% { transform: rotate(0); } 24%, 78% { transform: rotate(var(--tip, 18deg)); background: var(--accent); } 92%, 100% { transform: rotate(0); } }
.domino-run span:nth-child(7) { --tip: 0deg; }
.sss { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 1.4rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.sss .s1 { color: var(--sky-1); } .sss .s2 { color: var(--gold); } .sss .s3 { color: var(--accent); }
.join-card h2 { font-size: 1.7rem; }
.landing-action { position: sticky; top: 90px; }

/* ---------- Step layout ---------- */
.step { max-width: 1120px; margin: 0 auto; padding: clamp(1.2rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem) 4rem; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(1.2rem, 4vw, 3.5rem); align-items: start; }
.step-hero { position: sticky; top: 120px; }
.art-wrap { margin-bottom: 1.4rem; }
.art { width: 100%; max-width: 360px; height: auto; display: block; border-radius: 20px; }
.step-copy h1 { margin-bottom: .3em; }
.step-card { min-width: 0; }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); }
.step-nav .btn-primary { margin-left: auto; }

.step-wide { grid-template-columns: minmax(0, 1fr); max-width: 940px; }
.step-wide .step-hero { position: static; }
.week-tile textarea { resize: none; overflow: hidden; }

/* Breathing (leave it behind) */
.breathe { transform-origin: 120px 86px; animation: breathe 8s ease-in-out infinite; }
.breathe.b2 { animation-delay: .4s; } .breathe.b3 { animation-delay: .8s; }
@keyframes breathe { 0%, 100% { transform: scale(.84); } 50% { transform: scale(1.06); } }
.leave-box { position: relative; margin-bottom: 1rem; }
.leave-box textarea { background: #f3f6fa; border-color: #c7d3e0; min-height: 150px; }
.leave-box.is-fading textarea { animation: drift 1.6s ease-in forwards; }
@keyframes drift { to { opacity: 0; filter: blur(8px); transform: translateY(-24px) scale(.98); letter-spacing: .2em; } }
.leave-gone { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--serif); font-size: 1.4rem; color: var(--ink-2); background: linear-gradient(180deg, #f3f6fa, #fff); border-radius: 12px; border: 1.5px dashed #c7d3e0; animation: fadein .8s ease-out; }
.leave-gone span { font-weight: 800; font-size: 2rem; color: var(--teal); }
@keyframes fadein { from { opacity: 0; } }

/* Postcard (awesome 30) */
.postcard { position: relative; background: linear-gradient(180deg, #fffaf2, #fff); border: 1px solid #f0dcc0; border-radius: 14px; padding: 1.2rem 1.2rem .4rem; }
.postcard-stamp { position: absolute; top: -14px; right: 14px; transform: rotate(6deg); background: var(--accent); color: #1a0c07; font-weight: 800; font-family: var(--serif); padding: .55rem .8rem; border-radius: 6px; border: 3px dashed #fff; box-shadow: var(--shadow); }
.postcard-date { font-family: var(--script); font-size: 1.5rem; color: var(--accent-ink); margin-bottom: .2rem; }

/* Breakout prompts */
.prompt-card { background: var(--room-bg); color: #fff; border-radius: 16px; padding: 1.4rem 1.5rem; margin-bottom: 1.2rem; }
.prompt-card .eyebrow { color: #c5c8f0; }
.prompt-text { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.3; margin: 0; }
.prompt-dark { background: var(--ink); }
.prompt-dark .eyebrow { color: var(--gold); }
.your-words { border-left: 4px solid var(--gold); padding: .3rem 0 .3rem 1rem; margin-bottom: 1rem; }
.readout { font-size: 1.12rem; white-space: pre-wrap; }
.focus-q { margin: 0 0 1.4rem; padding: 1.2rem 1.3rem; background: var(--accent-soft); border-radius: 14px; }
.focus-q blockquote { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; font-weight: 600; color: #4a1a0b; }
.focus-q figcaption { margin-top: .5rem; font-size: .8rem; font-weight: 700; color: var(--accent-ink); letter-spacing: .08em; text-transform: uppercase; }

.work-badge { display: flex; gap: .6rem; align-items: center; font-size: .92rem; background: var(--ink); color: #fff; padding: .6rem .9rem; border-radius: 12px; margin-bottom: 1.3rem; }
.work-badge span { background: var(--accent); color: #1a0c07; font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 6px; }
.ramble { border: 1.5px dashed #d6ccba; border-radius: 14px; padding: .4rem 1rem; margin-bottom: 1rem; }
.ramble summary { cursor: pointer; font-weight: 600; padding: .6rem 0; min-height: 44px; display: flex; align-items: center; gap: .4rem; }
.ramble[open] { padding-bottom: 1rem; }

/* ---------- Coach ---------- */
.coach-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chat { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1rem; }
.bubble { max-width: 88%; padding: .8rem 1rem; border-radius: 16px; animation: pop .25s ease-out; }
.bubble p { margin: 0; white-space: pre-wrap; }
.bubble-coach { background: var(--teal-soft); color: #0b3d3c; border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble-me { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.bubble-note { background: var(--warn-bg); color: #6b4b00; }
.bubble-typing p::after { content: '…'; animation: pulse 1s infinite; }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } }
.chat-form { display: flex; gap: .6rem; align-items: flex-end; margin-bottom: 1rem; }
.chat-form textarea { flex: 1; }
.coach-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.coach-state { margin-bottom: 1rem; }

/* ---------- Plan editor ---------- */
.plan-head { display: grid; gap: .6rem; margin-bottom: 1rem; justify-items: start; }
.old-story { background: var(--paper-2); border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1.2rem; }
.old-story p { margin: 0; }
.field-hero textarea { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; background: #fff8f4; border-color: #f2c2b2; }
.weeks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin: .4rem 0 1.4rem; }
.week-tile { position: relative; background: #fffdf9; border: 1.5px solid var(--line); border-radius: 14px; padding: .9rem .9rem .2rem; border-top: 6px solid var(--accent); }
.week-tile:nth-child(2) { border-top-color: #ff7b5c; } .week-tile:nth-child(3) { border-top-color: var(--gold); } .week-tile:nth-child(4) { border-top-color: var(--teal); }
.week-tile header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.wk-num { font-family: var(--serif); font-weight: 800; font-size: 1.1rem; }
.wk-date { font-size: .8rem; color: var(--muted); font-weight: 600; }
.week-tile .field { margin-bottom: .7rem; }
.week-tile label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.week-tile input, .week-tile textarea { min-height: 44px; padding: .55rem .7rem; font-size: .95rem; }
.accept-box { background: var(--paper-2); border-radius: 14px; padding: 1rem 1.1rem; display: grid; gap: .7rem; justify-items: start; }
.accept-box.is-accepted { background: #e3f4ea; }
.problems { margin: 0; padding-left: 1.2rem; color: #6b4b00; font-size: .92rem; }
.accepted-msg { color: var(--ok); font-weight: 700; margin: 0; }
.conflict { background: var(--warn-bg); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }

/* ---------- Sign ---------- */
.commit-card { background: var(--ink); color: #fff; border-radius: 16px; padding: 1.4rem 1.5rem; margin-bottom: 1.4rem; }
.commit-card .eyebrow { color: var(--gold); }
.commit-card .muted { color: #b9bccb; }
.commit-quote { margin: 0 0 .6rem; font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.35; font-weight: 600; }
.sig-preview { height: 64px; border-bottom: 2px solid var(--ink); display: flex; align-items: flex-end; padding: 0 .4rem .2rem; margin-top: .6rem; }
.sig-preview span { font-family: var(--script); font-size: 2.6rem; line-height: 1; color: #23305c; }
.share-box { background: var(--paper); border-radius: 14px; padding: 1rem 1.1rem; margin: 1.2rem 0; }
.share-box legend { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; padding: 0; margin-bottom: .3rem; float: left; width: 100%; }
.form-error { color: var(--err); font-weight: 600; margin-bottom: .8rem; }
.btn-sign { font-size: 1.1rem; min-height: 54px; }
.signed-burst { text-align: center; padding: 1.4rem 0 .4rem; animation: fadein .5s; }
.signed-burst h2 { font-size: 2.4rem; }
.burst-dominoes { display: flex; justify-content: center; gap: 10px; height: 70px; align-items: flex-end; margin-bottom: 1rem; }
.burst-dominoes span { width: 14px; height: calc(30px + var(--i) * 7px); background: var(--accent); border-radius: 3px; transform-origin: bottom right; animation: fall .5s cubic-bezier(.6,0,.6,1.6) forwards; animation-delay: calc(.15s + var(--i) * .12s); }
.burst-dominoes span:nth-child(even) { background: var(--gold); }
@keyframes fall { to { transform: rotate(70deg); } }

/* ---------- My Plan ---------- */
.myplan { max-width: 1180px; margin: 0 auto; padding: clamp(1.2rem, 4vw, 2.6rem) clamp(1rem, 3vw, 2rem) 4rem; }
.myplan-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.6rem; align-items: start; }
.myplan-side { display: grid; gap: 1rem; position: sticky; top: 84px; }
.side-card { padding: 1.1rem; }
.side-card h2 { font-size: 1.1rem; }
.side-card .btn + .btn { margin-top: .6rem; }
.prompt-box { font-size: .85rem; background: var(--paper); margin-bottom: .6rem; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.status-line { margin-top: .6rem; }
.prefs { margin-top: .8rem; display: grid; gap: .1rem; }
.prefs .btn { justify-self: start; margin-top: .4rem; }
.plan-doc { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: clamp(1.3rem, 4vw, 2.6rem); }
.plan-doc-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; border-bottom: 2px solid var(--ink); padding-bottom: 1.2rem; margin-bottom: 1.4rem; }
.plan-doc-head .mark { width: 38px; height: 38px; margin-bottom: .4rem; }
.plan-doc h2 { font-size: .78rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 800; margin-bottom: .5rem; }
.plan-doc section { margin-bottom: 1.6rem; }
.seal { flex: none; width: 94px; height: 94px; border-radius: 50%; background: var(--accent); color: #1a0c07; display: grid; place-content: center; text-align: center; transform: rotate(-10deg); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 6px var(--accent); }
.seal span { font-family: var(--serif); font-weight: 800; font-size: 1.15rem; }
.seal small { font-weight: 700; font-size: .72rem; }
.seal-draft { background: var(--paper-2); color: var(--muted); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 6px #cfc5b3; }
.priority { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 800; line-height: 1.25; margin: 0; }
.story-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.story-pair p { margin: 0; padding: .9rem 1rem; border-radius: 12px; }
.story-pair span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .3rem; }
.story-pair .old { background: var(--paper-2); color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(93,97,112,.5); }
.story-pair .old span { text-decoration: none; display: block; }
.story-pair .new { background: var(--teal-soft); color: #0b3d3c; font-weight: 600; }
.weeks-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.wk { background: var(--paper); border-radius: 12px; padding: .8rem; border-top: 5px solid var(--accent); font-size: .9rem; }
.wk:nth-child(2) { border-top-color: #ff7b5c; } .wk:nth-child(3) { border-top-color: var(--gold); } .wk:nth-child(4) { border-top-color: var(--teal); }
.wk p { margin: 0 0 .35rem; }
.wk-top { display: flex; flex-direction: column; gap: .1rem; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.wk-domino { font-family: var(--serif); font-weight: 800; font-size: 1.05rem; }
.pd-commit blockquote { margin: 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.35; border-left: 5px solid var(--accent); padding-left: 1rem; }
.sig-line { margin-top: 1rem; display: flex; flex-direction: column; border-top: 1.5px solid var(--ink); padding-top: .2rem; max-width: 360px; }
.sig { font-family: var(--script); font-size: 2.3rem; color: #23305c; line-height: 1.1; order: -1; }
.history { margin-top: 2.5rem; }
.history > h2 { font-size: 1.6rem; }
.hist-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; margin-bottom: .9rem; }
.hist-card .priority { font-size: 1.15rem; }
.hist-card blockquote { margin: .5rem 0; color: var(--ink-2); }
.lastmonth { background: var(--teal-soft); border-radius: 14px; padding: 1.1rem 1.2rem; margin-bottom: 1.2rem; }
.lastmonth .commit-quote { font-size: 1.15rem; }

/* ---------- Simple pages ---------- */
.simple { min-height: 70vh; display: grid; place-items: center; padding: 2rem 1rem; }
.simple-card { width: min(520px, 100%); }
.simple-card.wide { width: min(820px, 100%); }
.simple-card h1 { font-size: 2rem; }
.conflict-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.conflict-card { box-shadow: none; }

/* ---------- Admin ---------- */
.admin { max-width: 1240px; margin: 0 auto; padding: 1.6rem clamp(1rem, 3vw, 2rem) 4rem; }
.admin-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1.4rem; }
.admin-head-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.counts-card { grid-column: span 2; }
.segmented { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: .6rem; }
.seg { border: 0; background: transparent; font: 600 .95rem var(--sans); padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer; min-height: 44px; color: var(--ink-2); }
.seg.is-on { background: var(--ink); color: #fff; }
.seg[value="live"].is-on { background: var(--accent); color: #1a0c07; }
.mode-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .92rem; }
.mode-list li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: .3rem 0; }
.mode-list span { color: var(--muted); }
.big-timer { text-align: center; background: var(--ink); color: #fff; border-radius: 16px; padding: 1.2rem; margin-bottom: 1rem; }
.big-timer span { display: block; font: 800 3.4rem/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.big-timer small { color: #b9bccb; }
.big-timer.is-zero { background: var(--accent-ink); }
.preset-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .7rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1.4rem; }
.stat { background: var(--paper); border-radius: 14px; padding: 1rem; }
.stat b { display: block; font: 800 2.4rem/1 var(--serif); }
.stat span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.stat-hot { background: var(--accent); }
.stat-hot span { color: #3b1206; }
.funnel { display: grid; gap: .45rem; }
.fn-row { display: grid; grid-template-columns: 8.5rem 1fr 2.5rem; gap: .7rem; align-items: center; font-size: .9rem; }
.fn-bar { height: 14px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.fn-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 999px; transition: width .6s; }
.fn-num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.prompt-mini { font-family: var(--serif); font-size: 1.05rem; margin-bottom: .5rem; }
.mod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .9rem; }
.mod-list li { display: flex; justify-content: space-between; gap: .6rem; align-items: center; border-bottom: 1px dashed var(--line); padding-bottom: .4rem; }
.mod-list li.is-hidden span { text-decoration: line-through; color: var(--muted); }
.mail pre { white-space: pre-wrap; font: .9rem/1.5 ui-monospace, Menlo, monospace; background: var(--paper); padding: 1rem; border-radius: 10px; }

/* ---------- Commitment wall (projection) ---------- */
.is-wall { background: #0f1222; color: #fff; min-height: 100vh; }
.wall { padding: clamp(1.5rem, 4vw, 3.5rem); min-height: 100vh; display: flex; flex-direction: column; }
.wall-head { text-align: center; margin-bottom: 2rem; }
.wall-head .eyebrow { color: var(--gold); font-size: .9rem; }
.wall-head h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.wall-count { color: var(--accent); display: inline-block; min-width: 1ch; }
.wall-count.bump { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.18); } }
.wall-sub { color: #c4c7da; font-size: 1.2rem; }
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.1rem; flex: 1; align-content: start; }
.wall-card { background: #1b2038; border-radius: 18px; padding: 1.4rem 1.5rem; border-top: 6px solid var(--accent); animation: rise .6s cubic-bezier(.2,.8,.2,1); }
.wall-card:nth-child(4n+2) { border-top-color: var(--gold); } .wall-card:nth-child(4n+3) { border-top-color: #5fc6c4; } .wall-card:nth-child(4n+4) { border-top-color: #9aa3ff; }
.wall-card p { font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.35; margin: 0 0 .9rem; color: #fff; }
.wall-card span { font-weight: 700; color: #c4c7da; letter-spacing: .04em; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.wall-empty { text-align: center; font-size: 1.4rem; color: #c4c7da; margin: 3rem 0; }
.wall-foot { display: flex; justify-content: space-between; align-items: center; color: #8e93ad; margin-top: 2rem; gap: 1rem; }
.wall-dominoes { display: inline-flex; gap: 6px; align-items: flex-end; }
.wall-dominoes i { width: 9px; height: calc(14px + var(--i) * 5px); background: var(--accent); border-radius: 2px; }
.wall-fs { color: #fff; border-color: #4a5072; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .landing { grid-template-columns: 1fr; }
  .landing-action { position: static; }
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .counts-card { grid-column: span 2; grid-row: auto; }
  .myplan-grid { grid-template-columns: 1fr; }
  .myplan-side { position: static; }
}
@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; }
  .step-hero { position: static; display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: center; }
  .step-hero .art-wrap { margin: 0; }
  .step-hero:not(:has(.art-wrap)) { grid-template-columns: 1fr; }
  .rail { gap: 4px; }
  .rail .tile { width: 8px; height: 20px; }
  .rail .is-current .tile { height: 24px; }
}
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; gap: .5rem; padding: .55rem 1rem; }
  .brand span { display: none; }
  .rail { order: 3; width: 100%; justify-content: center; height: 26px; }
  .save-status { min-width: 0; }
  .save-status .txt { font-size: .78rem; }
  .timer-strip { top: 92px; }
  .step-hero { grid-template-columns: 1fr; }
  .step-hero .art-wrap { display: none; }
  .weeks, .weeks-row, .story-pair, .conflict-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .counts-card { grid-column: auto; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .step-nav .btn { flex: 1; }
  .landing-visual { height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Print ---------- */
@media print {
  .demo-banner, .topbar, .timer-strip, .no-print, .alert, .history { display: none !important; }
  body { background: #fff; }
  .myplan { padding: 0; }
  .myplan-grid { display: block; }
  .plan-doc { box-shadow: none; border: 0; padding: 0; }
  .wk, .story-pair p { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .seal { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ======================= October rework ======================= */
/* Rail: clickable, hover labels, locked steps */
.rail-nav { margin: 0 auto; }
.rail li { position: relative; }
.rail a, .rail .rail-item { display: block; padding: 2px 1px; border-radius: 4px; outline-offset: 3px; }
.rail a:hover .tile { border-color: var(--accent); }
.rail .is-locked .tile { background: transparent; border-style: dashed; opacity: .55; }
.rail .tip { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px); white-space: nowrap; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 600; padding: .35rem .6rem; border-radius: 8px; pointer-events: none; opacity: 0; transition: opacity .15s, transform .15s; z-index: 30; }
.rail li:hover .tip, .rail li:focus-within .tip { opacity: 1; transform: translate(-50%, 0); }
.chip { background: var(--paper-2); color: var(--ink-2); }

/* Continue waits for the host */
.btn.is-waiting { background: var(--paper-2); color: var(--muted); border-color: var(--line); cursor: default; box-shadow: none; }
.btn.is-waiting::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: .5rem; animation: pulse 1.4s infinite; }
.btn.just-opened { animation: pop .4s ease-out; }

/* Need ideas */
.ideas { margin: .2rem 0 1rem; }
.ideas summary { cursor: pointer; font-weight: 700; color: var(--accent-ink); font-size: .92rem; list-style: none; display: inline-flex; gap: .35rem; align-items: center; }
.ideas summary::before { content: '+'; display: inline-grid; place-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); font-weight: 800; }
.ideas[open] summary::before { content: '–'; }
.ideas ul { list-style: none; padding: 0; margin: .7rem 0 .3rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.idea { font: inherit; font-size: .88rem; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: .5rem .75rem; cursor: pointer; color: var(--ink); }
.idea:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Leave it behind, saved */
.leave-box.is-left textarea { visibility: hidden; }
.leave-actions { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; margin: .4rem 0 .4rem; }
.leave-actions .check { margin: 0; }

/* Breakout tools */
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 1.2rem 0; }
.tool { background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.tool .eyebrow { margin-bottom: .2rem; }
.tool-clock { font-family: var(--serif); font-weight: 800; font-size: 2.6rem; line-height: 1; margin: .3rem 0 .6rem; font-variant-numeric: tabular-nums; }
.tool.is-running .tool-clock { color: var(--teal); }
.tool.is-zero .tool-clock { color: var(--accent-ink); }
.row.tight { gap: .45rem; margin-top: .45rem; flex-wrap: wrap; align-items: center; }
.tool select, .tool .num { width: 4.2rem; padding: .35rem .5rem; min-height: 0; }
.tool label.small { display: inline-flex; gap: .35rem; align-items: center; }
.talk-timer { display: inline-flex; gap: .7rem; align-items: center; background: var(--teal-soft); color: #0b3d3c; border-radius: 999px; padding: .3rem .4rem .3rem 1rem; margin: 0 0 .8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.talk-timer.is-zero { background: var(--accent-soft); color: var(--accent-ink); }

/* Teach page */
.teach-big { font-size: 1.1rem; line-height: 1.6; margin: 0 0 1.3rem; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 0 0 1rem; }
.rules:has(> .rule:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rule { background: var(--ink); color: #fff; border-radius: 14px; padding: 1rem 1.1rem; animation: rise .5s ease-out both; animation-delay: calc(var(--i) * .12s); }
.rule b { font-family: var(--serif); font-size: 1.3rem; display: block; margin: .2rem 0 .3rem; }
.rule p { margin: 0; color: #d4d6e2; font-size: .92rem; }
.rule-num { display: inline-grid; place-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); font-weight: 800; font-size: .85rem; }
.teach-hint { background: var(--warn-bg); color: #5a4100; border-radius: 12px; padding: .8rem 1rem; margin: 0 0 1.4rem; }
.block-title { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; margin: 0 0 .6rem; display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.block-title .small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.teach-steps { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.teach-steps li { display: flex; gap: .7rem; background: var(--paper); border-radius: 12px; padding: .8rem .9rem; }
.teach-steps p { margin: .15rem 0 0; font-size: .92rem; color: var(--ink-2); }
.ts-num { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-content: center; font-weight: 800; }
.ladder-row { display: flex; align-items: flex-end; gap: .5rem; flex-wrap: wrap; }
.ladder-row span { background: var(--teal); color: #fff; font-weight: 700; border-radius: 10px; padding: .55rem .8rem; font-size: calc(1.05rem - var(--i) * .07rem); opacity: calc(1 - var(--i) * .12); }
.ladder-row span + span::before { content: '→ '; opacity: .7; }

/* Prep page recap */
.recap { background: var(--paper); border-radius: 14px; padding: 1rem 1.1rem .2rem; margin-bottom: 1.2rem; }

/* Plan with the coach beside it */
.step-wide:has(.plan-layout) { max-width: 1240px; }
.plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.2rem; align-items: start; }
.plan-block { padding-bottom: .4rem; margin-bottom: 1rem; border-bottom: 1px dashed var(--line); }
.plan-block:last-child { border-bottom: 0; }
.plan-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.plan-context .field { opacity: .9; }
.field-accent textarea { border-color: var(--teal); background: #f6fbfa; }
.label-like { font-weight: 700; margin: 0 0 .3rem; }
.plan-editor.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px var(--teal-soft); border-radius: 12px; } 100% { box-shadow: 0 0 0 0 transparent; } }
.coach-panel { position: sticky; top: 92px; background: var(--teal-soft); border-radius: 16px; padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; max-height: calc(100vh - 120px); overflow: auto; }
.coach-panel .eyebrow { color: var(--teal); margin: 0; }
.coach-panel p.small { margin: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip-btn { font: inherit; font-size: .82rem; font-weight: 600; background: #fff; color: #0b3d3c; border: 1.5px solid #b5dcd8; border-radius: 999px; padding: .35rem .7rem; cursor: pointer; }
.chip-btn:hover { border-color: var(--teal); }
.coach-panel form { display: grid; gap: .45rem; }
.coach-panel textarea { background: #fff; min-height: 64px; }
.coach-panel .btn { justify-self: start; }
.revise-log { display: flex; flex-direction: column; gap: .45rem; }
.revise-log .bubble { max-width: 100%; font-size: .9rem; padding: .6rem .8rem; }
.revise-log .bubble-coach { background: #fff; }

/* Sign */
.commit-lead { font-family: var(--serif); font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; margin: .2rem 0 .8rem; }
.commit-first { margin: 0 0 .5rem; }
.commit-first span { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-right: .4rem; }
.share-opts { display: grid; gap: .5rem; clear: both; }
.share-opt { display: flex; gap: .7rem; align-items: flex-start; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .9rem; cursor: pointer; }
.share-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.share-opt input { margin-top: .25rem; accent-color: var(--accent); }
.share-opt b { display: block; }
.share-opt small { color: var(--muted); }

/* My plan document */
.pd-priority .why { margin: .7rem 0 0; color: var(--ink-2); }
.pd-priority .why span, .pd-first h2 { }
.pd-priority .why span { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: .3rem; }
.pd-first p { font-size: 1.1rem; font-weight: 600; background: var(--teal-soft); color: #0b3d3c; border-radius: 12px; padding: .8rem 1rem; margin: 0; }
.pd-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.pd-pair p { margin: 0; }

/* Host run of show */
.runshow-card { grid-row: span 2; }
.runshow { list-style: none; padding: 0; margin: .6rem 0 1rem; display: grid; gap: .35rem; counter-reset: rs; }
.runshow li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 10px; background: var(--paper); counter-increment: rs; }
.runshow li::before { content: counter(rs); width: 22px; height: 22px; border-radius: 6px; display: grid; place-content: center; font-size: .75rem; font-weight: 800; background: #fff; border: 1.5px dashed #cfc5b3; flex: none; }
.runshow li.is-open::before { background: var(--accent); border: 0; color: #fff; }
.runshow li.is-now { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.rs-label { flex: 1; font-weight: 600; font-size: .92rem; }
.rs-actions { display: flex; gap: .3rem; }
.rs-actions .btn { padding: .3rem .6rem; font-size: .8rem; }

@media (max-width: 980px) {
  .plan-layout { grid-template-columns: 1fr; }
  .coach-panel { position: static; max-height: none; }
  .runshow-card { grid-row: auto; }
}
@media (max-width: 640px) {
  .tools, .rules, .rules:has(> .rule:nth-child(4)), .teach-steps, .plan-two { grid-template-columns: 1fr; }
  .rail .tip { display: none; }
}
@media print { .coach-panel { display: none !important; } }

/* ---------- Oct 7 host feedback ---------- */
/* Host layout: run of show is the main panel; timer, prompts, wall and setup sit beside it. */
.admin-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.admin-side { display: grid; gap: 1.1rem; }
.admin-head-actions { align-items: center; }
.segmented-sm { margin: 0; }
.segmented-sm .seg { padding: .45rem .9rem; font-size: .88rem; min-height: 38px; }
.rs-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: .6rem; }
.rs-now { font: 600 1.35rem/1.25 var(--serif); margin: .1rem 0 .2rem; }
.rs-now b { color: var(--accent-ink); }
.pace-behind { color: var(--err); font-weight: 700; }
.pace-ahead { color: var(--teal); font-weight: 700; }
.pace-ok { color: var(--ok); font-weight: 700; }
.stat-row-sm { grid-template-columns: repeat(4, minmax(4.2rem, 1fr)); gap: .45rem; margin: 0; }
.stat-row-sm .stat { padding: .55rem .7rem; }
.stat-row-sm .stat b { font-size: 1.6rem; }
.stat-row-sm .stat span { font-size: .75rem; }
.runshow { counter-reset: none; gap: .4rem; }
.runshow li.rs-row { display: grid; grid-template-columns: 14px 1.6rem minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .55rem .75rem; border-radius: 12px; background: var(--paper); border: 1.5px solid transparent; }
.runshow li.rs-row::before { content: none; display: none; }
.rs-dot { width: 12px; height: 12px; border-radius: 50%; background: #c9c2b4; box-shadow: 0 0 0 3px #fff; }
.rs-row.is-open .rs-dot { background: #22a35a; }
.rs-row.is-now .rs-dot { background: #22a35a; animation: pulse 1.4s infinite; }
.rs-num { font-weight: 800; font-size: .85rem; color: var(--muted); text-align: center; }
.rs-main { display: grid; min-width: 0; }
.runshow .rs-label { font-weight: 700; font-size: .98rem; }
.rs-sub { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rs-row:not(.is-open) .rs-label { color: var(--muted); }
.rs-row.is-open [data-rs-state] { color: #157a46; font-weight: 700; }
.runshow li.rs-row.is-now { background: #eaf7ef; border-color: #22a35a; box-shadow: none; }
.rs-row.is-now [data-rs-state] { color: #0d5c31; }
.rs-actions { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.rs-actions .btn { min-height: 36px; padding: .3rem .7rem; font-size: .82rem; }
.rs-min { display: inline-flex; align-items: center; gap: .25rem; font-size: .8rem; color: var(--muted); }
.rs-min .num { width: 3.4rem; padding: .3rem .4rem; min-height: 36px; }
.rs-foot { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: .4rem; }
.btn-danger { background: var(--err); border-color: var(--err); color: #fff; }
.reset-box summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--err); }
.reset-box form { margin-top: .6rem; }
.reset-box input { max-width: 10rem; }
@media (max-width: 1100px) { .admin-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .runshow li.rs-row { grid-template-columns: 14px 1.4rem minmax(0, 1fr); }
  .rs-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Founders: the room moved on */
.moved-strip { position: sticky; top: 57px; z-index: 18; display: flex; gap: .8rem; align-items: center; justify-content: center; flex-wrap: wrap; padding: .55rem 1rem; background: #22a35a; color: #fff; font-weight: 600; font-size: .95rem; }
.timer-strip:not([hidden]) + .moved-strip { top: 100px; }
.moved-strip .btn { background: #fff; color: #0d5c31; border-color: #fff; min-height: 36px; }
@media (max-width: 760px) { .moved-strip { top: 92px; } }

/* Breakout instructions: one clear set */
.brief { background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; margin: 0 0 1.1rem; }
.brief-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 .5rem; }
.brief-meta span { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--room-bg); color: #fff; border-radius: 999px; padding: .25rem .65rem; }
.brief-first { margin: 0 0 .6rem; }
.brief-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: .45rem; }
.brief-steps li b { display: block; }
.brief-steps li span { color: var(--ink-2); }

/* Compact speaker timer */
.tool-compact { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 1.1rem; padding: .7rem 1rem; }
.tool-compact .tool-clock { font-size: 1.9rem; margin: 0; }
.tool-compact .st-main { display: grid; grid-template-columns: auto auto; column-gap: .8rem; align-items: baseline; }
.tool-compact .st-main .eyebrow { grid-column: 1 / -1; margin: 0; }
.tool-compact .st-main p.small { margin: 0; }
.tool-compact .st-controls { display: grid; gap: .35rem; justify-items: end; }
.tool-compact .st-controls label { display: inline-flex; gap: .3rem; align-items: center; }
.tool-compact .btn { min-height: 36px; padding: .3rem .75rem; }

/* Coach: one main action */
.btn-start { font-size: 1.15rem; padding: .8rem 2.4rem; }
.coach-fallbacks { margin-top: .5rem; }
.coach-fallbacks .linkish, .coach-fallbacks a { color: var(--muted); font-size: .88rem; min-height: 0; padding: 0; }
.step-nav .btn-next-quiet { margin-left: auto; }
.admin .prompt-mini { font-family: var(--sans); font-size: .92rem; line-height: 1.45; }

/* Coach as a real chat (Oct 7, batch 3) */
.chat { max-height: 52vh; overflow-y: auto; padding-right: .2rem; }
.coach-start-row { display: flex; justify-content: center; margin: .2rem 0 1rem; }
.coach-actions { align-items: center; }
.coach-actions .link-quiet { margin-left: auto; }
.coach-panel { overflow: hidden; }
.coach-panel .revise-log { flex: 1 1 auto; min-height: 120px; overflow-y: auto; padding-right: .2rem; }
.coach-panel .revise-log .bubble-me { background: var(--ink); color: #fff; }
.coach-panel .chip-row { flex: 0 0 auto; }
.revise-form { display: flex !important; gap: .45rem; align-items: flex-end; }
.revise-form textarea { flex: 1; min-height: 44px !important; }
.revise-form .btn { justify-self: auto; }

/* Tighter, modern chat (Oct 7, batch 4) */
.coach-head { margin-bottom: .6rem; }
.chat { gap: .45rem; max-height: 46vh; margin-bottom: .7rem; }
.bubble { padding: .55rem .85rem; border-radius: 18px; font-size: .95rem; line-height: 1.45; max-width: 82%; box-shadow: none; }
.bubble-coach { border-bottom-left-radius: 6px; }
.bubble-me { border-bottom-right-radius: 6px; }
.coach-start-row { margin: .1rem 0 .7rem; }
.btn-start { font-size: 1rem; padding: .6rem 2rem; min-height: 44px; }
.composer { display: flex; align-items: flex-end; gap: .4rem; background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: .3rem .35rem .3rem .9rem; margin: 0 0 .55rem; transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(43, 89, 255, .12); }
.composer textarea { flex: 1; border: 0 !important; box-shadow: none !important; background: transparent; resize: none; padding: .45rem 0; min-height: 0 !important; max-height: 140px; font-size: .95rem; line-height: 1.4; }
.composer textarea:focus { box-shadow: none; }
.send-btn { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .1s, opacity .15s; }
.send-btn svg { width: 18px; height: 18px; }
.send-btn:hover { transform: scale(1.05); }
.send-btn:disabled { opacity: .4; cursor: default; transform: none; }
.coach-actions { gap: .45rem; }
.pill { display: inline-flex; align-items: center; font: 600 .85rem var(--sans); padding: .4rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; min-height: 34px; }
.pill:hover { border-color: var(--ink); }
.pill-dark { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Plan-page coach panel: thread on top, composer, chips in one scrolling row */
.coach-panel { gap: .5rem; padding: .85rem .85rem .75rem; background: #f3f8f7; border: 1px solid #d5e8e5; }
.coach-panel .revise-log { gap: .35rem; }
.coach-panel .revise-log .bubble { font-size: .86rem; padding: .45rem .7rem; max-width: 92%; }
.coach-panel .revise-log .bubble-coach { background: #fff; }
.composer-sm { margin: 0; border-radius: 18px; padding: .2rem .25rem .2rem .75rem; }
.composer-sm textarea { font-size: .88rem; padding: .35rem 0; }
.composer-sm .send-btn { width: 30px; height: 30px; }
.composer-sm .send-btn svg { width: 15px; height: 15px; }
.chip-scroll { flex-wrap: nowrap !important; overflow-x: auto; gap: .3rem; padding-bottom: .15rem; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip-scroll .chip-btn { flex: 0 0 auto; white-space: nowrap; font-size: .76rem; padding: .25rem .6rem; border-width: 1px; }
.coach-panel form.composer { display: flex; }
.chat, .coach-panel .revise-log { scrollbar-width: thin; scrollbar-color: #c8d9d6 transparent; }
.mic-btn { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.mic-btn svg { width: 19px; height: 19px; }
.mic-btn:hover { background: var(--paper-2); color: var(--ink); }
.mic-btn.is-recording { background: var(--accent); color: #fff; animation: pulse 1.2s infinite; }
.mic-btn.is-busy { opacity: .5; pointer-events: none; }
.composer-sm .mic-btn { width: 30px; height: 30px; }
.composer-sm .mic-btn svg { width: 16px; height: 16px; }

/* Layout: more room for the work column, less air under titles (Oct 7, batch 5) */
.step { grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: clamp(1rem, 3vw, 2.4rem); padding-top: clamp(1rem, 3vw, 2rem); }
.step-wide { gap: .9rem; }
.step-copy h1 { margin-bottom: .2em; }
.step .lede { font-size: 1.02rem; margin-bottom: 0; }
.art-wrap { max-width: 240px; margin-bottom: 1rem; }
.chip { margin-bottom: .6rem; }
.step-side { margin-top: 1.1rem; }
.step-side .tool-compact { margin: 0; flex-direction: column; align-items: stretch; }
.step-side .tool-compact .st-controls { justify-items: start; }
.brainstorm { background: var(--paper); border: 1.5px dashed var(--line); border-radius: 14px; padding: 1rem 1.1rem .6rem; margin-top: 1.2rem; }
.brainstorm .field { margin-bottom: .5rem; }
.teach-big { margin-bottom: 1rem; }
.rules { margin-bottom: .8rem; }
.teach-hint { margin-bottom: 1rem; }
.ladder { margin-bottom: .4rem; }
@media (max-width: 760px) { .step-side { margin-top: .6rem; } }
.rs-row.rs-host { background: transparent; border: 1.5px dashed var(--line); }
.rs-row.rs-host .rs-dot { background: var(--gold); }
.rs-row.rs-host [data-rs-state] { color: var(--muted); font-weight: 600; }
.step.step-wide { grid-template-columns: minmax(0, 1fr); max-width: 940px; }
.step.step-wide:has(.plan-layout) { max-width: 1240px; }
/* "Check this": a value the coach picked for the founder to confirm */
.check-tag { display: inline-flex; align-items: center; gap: .25rem; margin-left: .45rem; font: 700 .74rem var(--sans); letter-spacing: .02em; color: #fff; background: #d9480f; border: 1px solid #b83d0c; border-radius: 999px; padding: .15rem .65rem; cursor: pointer; vertical-align: middle; }
.check-tag::after { content: '✓'; font-size: .7rem; opacity: .6; }
.check-tag:hover { background: #b83d0c; }
.check-tag-static { cursor: default; margin: 0 .2rem; }
.check-tag-static::after { content: none; }
.check-summary { background: #fff4e6; border: 1px solid #ffc078; border-left: 5px solid #d9480f; color: #5c2a06; border-radius: 10px; padding: .7rem 1rem; margin: 0 0 1rem; }
.field.is-suggested { border-left: 4px solid #d9480f; padding-left: .7rem; }
.field.is-suggested textarea, .field.is-suggested input { border-color: #ff922b; box-shadow: 0 0 0 3px rgba(253, 126, 20, .2); }

/* Slim speaker timer (Oct 7, batch 7) */
.speaker-slim { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .45rem .7rem; margin: 0 0 1rem; border-radius: 999px; }
.step-side .speaker-slim { margin: 0; }
.speaker-slim .st-label { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.speaker-slim .tool-clock { font-size: 1.25rem; margin: 0; min-width: 3.2ch; }
.speaker-slim .st-min { display: inline-flex; align-items: center; gap: .2rem; font-size: .8rem; color: var(--muted); }
.speaker-slim .st-min .num { width: 3.2rem; padding: .25rem .35rem; min-height: 32px; }
.speaker-slim .pill { min-height: 32px; padding: .3rem .8rem; }
.ideas-open { margin-top: .4rem; }
.ideas-title { font-weight: 700; font-size: .9rem; color: var(--accent-ink); margin: 0 0 .3rem; }
.ideas-open ul, .ideas-more ul { list-style: none; padding: 0; margin: 0 0 .3rem; display: grid; gap: .3rem; }
.ideas-more summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: .3rem; }
@media (max-width: 480px) { .speaker-slim .st-label { display: none; } .speaker-slim { gap: .35rem; } }
.email-hint { margin: .3rem 0 0; color: var(--accent-ink); }
.email-hint .linkish { min-height: 0; padding: 0; font-weight: 700; }
.verify-form { display: grid; gap: .3rem; }
.verify-form input { flex: 1; min-width: 0; }
/* Phones and narrow windows: one column (restates the 860px rule after the later two-column override) */
@media (max-width: 860px) {
  .step, .step.step-wide { grid-template-columns: 1fr; }
  .step-hero { position: static; }
  .art-wrap { max-width: 110px; }
}
@media (max-width: 640px) { .art-wrap { display: none; } }
.email-preview { white-space: pre-wrap; font: .82rem/1.45 var(--sans); background: var(--paper); border-radius: 10px; padding: .7rem .8rem; margin: .4rem 0 0; }

/* Plan drafting progress */
.build-banner { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 50; display: flex; gap: .9rem; align-items: center; background: var(--ink, #111); color: #fff; padding: .9rem 1.2rem; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); width: min(440px, calc(100vw - 32px)); }
.build-banner b { display: block; font-size: 1.02rem; }
.build-banner p { margin: .15rem 0 .5rem; font-size: .92rem; opacity: .85; }
.build-banner .spinner { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: var(--gold, #f5b700); animation: spin .9s linear infinite; }
.build-bar { height: 4px; background: rgba(255,255,255,.18); border-radius: 4px; overflow: hidden; }
.build-bar i { display: block; height: 100%; width: 0; background: var(--gold, #f5b700); animation: buildfill 40s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes buildfill { to { width: 95%; } }
@media (prefers-reduced-motion: reduce) { .build-banner .spinner, .build-bar i { animation-duration: 0s; } }
/* WOOP in breakout room 2 */
.woop-card .woop-row { margin: .35rem 0; }
.woop-card .woop-row b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.woop-card .woop-row .readout { margin: 0; }
.woop-edit { margin-top: 1rem; }
.woop-edit > summary { cursor: pointer; font-weight: 600; margin-bottom: .6rem; }
.woop-write { margin-top: 1.5rem; }
.woop-h { font-size: 1.25rem; margin-bottom: .2rem; }

/* Admin: People */
.people .pp-stats .stat span { display: block; }
.pp-scroll { overflow-x: auto; }
.pp-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pp-table th, .pp-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.pp-table th[data-sort] { cursor: pointer; user-select: none; }
.pp-table th[data-dir="asc"]::after { content: " ▲"; font-size: .7em; }
.pp-table th[data-dir="desc"]::after { content: " ▼"; font-size: .7em; }
.pp-table .pp-c { text-align: center; }
.pp-tools { align-items: center; flex-wrap: wrap; gap: .6rem; }
.pp-tools h2 { margin: 0 auto 0 0; }
.pp-tools input, .pp-tools select { width: auto; min-width: 12rem; }
@media (max-width: 700px) { .people .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* December sorter and plan */
.fkc-sorter { margin: .6rem 0 1rem; }
.fkc-rows { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-direction: column; gap: .45rem; }
.fkc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .7rem; border-radius: 12px; background: var(--card, rgba(127,127,127,.08)); border: 1px solid rgba(127,127,127,.18); }
.fkc-row[data-state=pri] { border-color: #0a8091; box-shadow: inset 4px 0 0 #0a8091; }
.fkc-row[data-state=kill] .fkc-loop { text-decoration: line-through; opacity: .65; }
.fkc-loop { flex: 1 1 14rem; min-width: 0; font-weight: 500; }
.fkc-btns { display: flex; flex-wrap: wrap; gap: .3rem; }
.fkc-btn { font: inherit; font-size: .8rem; font-weight: 600; padding: .32rem .6rem; border-radius: 999px; border: 1.5px solid rgba(127,127,127,.35); background: transparent; color: inherit; cursor: pointer; }
.fkc-btn-finish.is-on { background: #0a8091; border-color: #0a8091; color: #fff; }
.fkc-btn-kill.is-on { background: #f2b33d; border-color: #f2b33d; color: #15171f; }
.fkc-btn-carry.is-on { background: #19b8b0; border-color: #19b8b0; color: #15171f; }
.fkc-btn-pri.is-on { background: #15171f; border-color: #15171f; color: #ffd84a; }
.fkc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .75rem; }
.pd-fkc { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .9rem; margin: 1.2rem 0; }
.fkc-col { border-radius: 16px; padding: 1rem 1.1rem; border: 1px solid rgba(127,127,127,.2); }
.fkc-col h2 { display: flex; align-items: center; gap: .55rem; font-size: 1rem; margin: 0 0 .6rem; }
.fkc-col ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.fkc-mark { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .5rem; font-weight: 800; }
.fkc-finish .fkc-mark { background: #0a8091; color: #fff; } .fkc-finish { background: rgba(10,128,145,.08); }
.fkc-kill .fkc-mark { background: #f2b33d; color: #15171f; } .fkc-kill { background: rgba(242,179,61,.1); } .fkc-kill li { text-decoration: line-through; text-decoration-color: rgba(127,127,127,.6); }
.fkc-carry .fkc-mark { background: #19b8b0; color: #15171f; } .fkc-carry { background: rgba(25,184,176,.08); }
.pd-hours { border-left: 4px solid #f2b33d; padding: .4rem 0 .4rem 1rem; margin: 0 0 1.2rem; white-space: pre-line; }
.protect-intro { margin: 0 0 .4rem; }

/* ---------- December v2: loop list, sorter, summary, holiday planner, calendar ---------- */
.fkc { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.fkc-intro { margin: .5rem 0 0; color: var(--ink-2); }
.fkc-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .6rem; }
.fkc-eyebrow { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #0a6f7d; }
.fkc-h { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.fkc-step .hint { margin: 0; }
.loop-add { display: flex; gap: .5rem; }
.loop-add input { flex: 1; min-width: 0; min-height: 44px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 .8rem; font: inherit; background: var(--card); color: var(--ink); }
.loop-add .btn { min-height: 44px; }
.loop-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.loop-item { display: flex; align-items: center; gap: .3rem; padding: .35rem .4rem .35rem .8rem; background: var(--paper); border-radius: 10px; }
.loop-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.loop-edit { flex: 1; min-width: 0; min-height: 36px; font: inherit; border: 1.5px solid #0a8091; border-radius: 8px; padding: 0 .5rem; }
.loop-ico { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1rem; cursor: pointer; }
.loop-ico:hover { background: var(--paper-2); color: var(--ink); }
.fkc-text { margin-top: .2rem; }
.fkc-text > summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--muted); padding: .3rem 0; }
.fkc-text[open] > summary { margin-bottom: .5rem; }
.fkc-gate { margin: 0; text-align: center; font-size: .88rem; font-weight: 600; color: #0a6f7d; }
.fkc-row { flex-direction: column; align-items: stretch; gap: .5rem; background: var(--card); }
.fkc-row-top { display: flex; align-items: center; gap: .5rem; }
.fkc-row-top .fkc-loop { flex: 1; font-weight: 600; }
.fkc-pri-tag { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b4a00; background: #fff3d6; padding: .2rem .55rem; border-radius: 99px; }
.fkc-row .fkc-btns { display: grid; grid-template-columns: 1fr 1fr 1fr 48px; gap: .35rem; }
.fkc-row .fkc-btn { min-height: 42px; border-radius: 10px; font-size: .8rem; padding: 0 .2rem; white-space: nowrap; }
.fkc-btn-pri { font-size: 1.05rem !important; color: var(--muted); }
.fkc-btn-pri.is-on { background: #fff3d6; border-color: #f2b33d; color: #8a5f00; }
.fkc-row[data-state=pri] { border-color: #f2b33d; box-shadow: inset 4px 0 0 #f2b33d; }
.fkc-why { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.fkc-why input { min-height: 40px; border: 1.5px dashed #b9b2a3; border-radius: 10px; padding: 0 .7rem; font: inherit; font-weight: 400; color: var(--ink); background: var(--paper); }
.fkc-summary { background: #15171f; color: #f7f3ec; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .55rem; }
.fkc-summary .fkc-eyebrow { color: #19b8b0; }
.fkc-sum-row { display: grid; grid-template-columns: 20px 6.2rem 1fr; align-items: start; gap: .5rem; font-size: .92rem; line-height: 1.4; }
.fkc-sum-row b { font-weight: 700; }
.fkc-sum-row .sum-pri { grid-column: 1 / 3; color: #f2b33d; }
.fkc-sum-row span { overflow-wrap: anywhere; }
.fkc-ico { display: inline-block; flex: none; vertical-align: middle; }
.fkc-next { text-align: center; margin: .8rem 0 0; }
.hol-week { margin: .6rem 0 .1rem; font-weight: 700; font-size: .9rem; }
.hol-days { display: flex; flex-direction: column; }
.hol-day { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); grid-template-areas: "dl seg" ". focus"; column-gap: .6rem; align-items: center; padding: .4rem 0; border-top: 1px solid var(--line); }
.hol-dl { grid-area: dl; font-weight: 700; font-size: .88rem; line-height: 1.1; }
.hol-dl small { display: block; font-weight: 400; color: var(--muted); font-size: .74rem; }
.hol-seg { grid-area: seg; display: flex; gap: 3px; background: var(--paper-2); border-radius: 10px; padding: 3px; }
.hol-seg button { flex: 1; min-height: 38px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: .82rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.hol-seg .hs-o.is-on { background: #5d6170; color: #fff; }
.hol-seg .hs-c.is-on { background: #bfe3e1; color: #0b4f55; }
.hol-seg .hs-w.is-on { background: #0a8091; color: #fff; }
.hol-focus { grid-area: focus; }
.hol-focus select { margin-top: .35rem; width: 100%; min-height: 38px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--card); font: inherit; font-size: .88rem; color: var(--ink); padding: 0 .4rem; }
@media (min-width: 640px) {
  .hol-day { grid-template-columns: 3.4rem minmax(0, 18rem) minmax(0, 1fr); grid-template-areas: "dl seg focus"; }
  .hol-focus select { margin-top: 0; }
}
.hol-check { display: flex; flex-direction: column; gap: .45rem; margin-top: .5rem; }
.hol-label { margin: 0; font-weight: 700; font-size: .9rem; }
.hol-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.hol-check input, .hol-check select { min-height: 44px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 .75rem; font: inherit; background: var(--card); color: var(--ink); max-width: 28rem; }
/* finishes on the calendar */
.timeline { display: flex; flex-direction: column; gap: .2rem; margin: .4rem 0; }
.tl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.tl-wk { font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.25; padding: .35rem 0; border-radius: 7px; background: var(--paper); }
.tl-wk small { display: block; font-weight: 400; color: var(--muted); }
.tl-wk.is-hol { background: var(--paper-2); }
.tl-row { padding: .45rem 0; border-top: 1px solid var(--line); }
.tl-name { margin: 0 0 .3rem; font-size: .9rem; font-weight: 600; }
.tl-lane { position: relative; min-height: 28px; align-items: center; }
.tl-bg { grid-row: 1; align-self: stretch; border-radius: 7px; background: rgba(127,127,127,.06); }
.tl-bg.is-hol { background: rgba(127,127,127,.13); }
.tl-bar { grid-row: 1; height: 26px; border-radius: 7px; background: #0a8091; color: #fff; font-size: .74rem; font-weight: 700; display: flex; align-items: center; justify-content: flex-end; padding: 0 .5rem; white-space: nowrap; overflow: hidden; }
.tl-bar.is-pri { background: #f2b33d; color: #15171f; }
.tl-edit { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; font-size: .8rem; color: var(--muted); }
.tl-edit label { display: inline-flex; align-items: center; gap: .3rem; }
.tl-edit select, .tl-edit input { min-height: 34px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .82rem; padding: 0 .35rem; background: var(--card); color: var(--ink); }
.tl-edit input { width: 6.5rem; }
/* holiday calendar */
.hol-cal { display: flex; flex-direction: column; gap: .5rem; }
.hc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.hc-dow { font-size: .62rem; font-weight: 700; color: var(--muted); text-align: center; letter-spacing: .08em; }
.hc-cell { min-height: 58px; border-radius: 9px; padding: .3rem .3rem; display: flex; flex-direction: column; justify-content: space-between; font-size: .66rem; line-height: 1.15; overflow-wrap: anywhere; }
.hc-cell b { font-size: .8rem; }
.hc-w { background: #0a8091; color: #fff; }
.hc-c { background: #bfe3e1; color: #0b4f55; }
.hc-o, .hc-none { background: #ece8df; color: #5d6170; }
.hc-none { background: transparent; border: 1px dashed var(--line); }
.hc-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .78rem; margin: 0; }
.hc-sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.hc-legend .hc-o { background: #ece8df; }
.hc-note { margin: 0; font-size: .9rem; }
/* plan editor and signed plan */
.fkc-title { display: flex; align-items: center; gap: .35rem; }
.fkc-label { display: flex; align-items: center; gap: .45rem; font-weight: 700; }
.fkc-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 0 0 1.2rem; }
.fkc-tile { background: #15171f; color: #f7f3ec; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 1rem .6rem; display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; }
.fkc-tile b { font-size: 1rem; }
.fkc-tile small { font-size: .76rem; color: #b9bcc8; }
.pd-fkc2 { margin: 1.4rem 0; }
.pd-fkc-h { display: flex; align-items: center; gap: .6rem; }
.pd-list { margin: .5rem 0 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.pd-list.is-kill li { text-decoration: line-through; text-decoration-color: rgba(127,127,127,.55); }
.fkc-foot { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.fkc-foot span { margin-left: .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media print { .tl-edit { display: none; } }
