/* Konflikt-Simulator practice room v2 (19.10.2026): Taro's two Claude Design drafts merged -- the three columns of the
   first on a desktop, the second's visual language everywhere and its single column on phones and tablets. Colours,
   type scale, radii, the line's strokes and the icons are the second draft's; the fonts are self-hosted (fonts/, OFL),
   no third-party requests. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/figtree-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/figtree-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(fonts/literata-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(fonts/literata-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #FBF7F2; --ink: #1E1F1C; --quiet: #5E5F57; --faint: #6E6F67; --text2: #55564F; --text3: #3F403A;
  --sand: #E9DFCF;            /* the person's own lines */
  --sand2: #EFE8DD;           /* the stage: scene card, pocket, segmented control, icon tiles */
  --line: #E6DFD2; --line2: #EDE6DA; --deco: #D5CCBC; --wire: #DDD5C7; --node: #BFB6A5;
  --calm: #1F7D74; --calm-ink: #1A6B63; --calm-deep: #15594F; --calm-light: #E3F0EC; --calm-text: #1E2B28;
  --tension: #D9573F; --tension-ink: #A63D28; --tension-deep: #C94A33;
  --hint: #B7792F; --hint-ink: #8A4E16; --hint-line: #EBD9C3; --hint-ink3: #80531C;
  /* the draft's control borders (#D5CCBC) are 1.6:1 against white; the reply field and the outline buttons get a
     border that meets 3:1 (WCAG 1.4.11), the purely decorative lines keep the draft's sand */
  --control: #968970;
  --ui: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --stage: "Literata", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--ui); }
a { color: var(--calm-ink); } a:hover { color: #124C46; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 2.5px solid var(--calm); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { top: 8px; color: #fff; }
[hidden] { display: none !important; }

.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); margin: 0; line-height: 1.4; }
.small-muted { font-size: 12.5px; color: var(--quiet); }
.stage-text { font-family: var(--stage); font-style: italic; }        /* "the stage": scene, yardstick, feared sentence, pocket */
.glyph { flex: none; display: block; }

.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--control); background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.ghost:hover { background: var(--sand2); }
.ghost.small { min-height: 36px; font-size: 13.5px; padding: 0 12px; }
.link { background: none; border: 0; padding: 4px 0; min-height: 32px; color: var(--quiet); text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; }
.link:hover { color: var(--ink); }

/* header (draft 2) */
.top { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
.mark { flex: none; }
.names { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.brand { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.sub { font-size: 12.5px; color: var(--quiet); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pilot { font-size: 12.5px; font-weight: 600; color: var(--calm-ink); border: 1.5px solid var(--calm); border-radius: 999px; padding: 3px 10px; }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.turn-pill { font-size: 13px; color: var(--quiet); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pulse-pill { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: var(--sand2); color: var(--text3); }
.pulse-pill.tense { background: #F6EAD8; color: var(--hint-ink3); }
.pulse-pill.flooded { background: #F7E0DA; color: var(--tension-ink); }
.help { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1.5px solid var(--control); background: #fff; color: var(--calm-ink);
  font-weight: 700; font-size: 17px; display: grid; place-items: center; text-decoration: none; }
.help:hover { background: var(--calm-light); }

main { max-width: 1440px; margin: 0 auto; padding: 24px 28px 40px; }

/* ── start (draft 2) ── */
.setup { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.hero { padding: 12px 0 8px; display: flex; flex-direction: column; gap: 14px; }
.hero-line { width: 100%; max-width: 420px; height: auto; display: block; }
.setup h1 { margin: 4px 0 0; font-size: 32px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.lead { margin: 0; font-size: 17px; color: var(--text2); }
.features { padding: 14px 0 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.f-h { font-weight: 700; font-size: 14px; line-height: 1.25; }
.f-s { font-size: 12.5px; line-height: 1.35; color: var(--text2); }
.followup { margin-top: 18px; background: var(--calm-light); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; color: var(--calm-text); }
.field { margin: 0; border: 0; padding: 22px 0 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.f-label { padding: 0; font-weight: 700; font-size: 15px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--sand2); border-radius: 999px; padding: 4px; }
.seg button { min-height: 44px; border: 0; border-radius: 999px; font-weight: 500; font-size: 15px; background: transparent; color: var(--text2); }
.seg button[aria-pressed="true"] { font-weight: 700; background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(30,31,28,.12); }
.editions legend { margin-bottom: 8px; float: left; width: 100%; }
.ed-list { display: flex; flex-direction: column; gap: 6px; clear: both; }
.ed { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px 8px 8px; border-radius: 16px; cursor: pointer;
  border: 1.5px solid transparent; }
.ed:hover { background: rgba(255,255,255,.6); }
.ed input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ed-tile { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sand2); color: #4A4B45; }
.ed-txt { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.ed-name { font-weight: 650; font-size: 15.5px; line-height: 1.25; }
.ed-sub { font-size: 13px; line-height: 1.3; color: var(--quiet); }
.ed-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--control); background: #fff; }
.ed:has(input:checked) { background: #fff; border-color: var(--calm); box-shadow: 0 1px 3px rgba(30,31,28,.08); }
.ed:has(input:checked) .ed-tile { background: var(--calm); color: #fff; }
.ed:has(input:checked) .ed-dot { border: 6px solid var(--calm); }
.ed:has(input:focus-visible) { outline: 2.5px solid var(--calm); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--calm); flex: none; }
.adult { margin-top: 18px; }
.site-note { margin: 18px 0 0; padding: 12px 14px; border-radius: 14px; background: #E3F1EE; color: #1A6B63; font-size: 14.5px; line-height: 1.45; font-weight: 600; }   /* from the website (23.10.2026) */
.ai { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; background: var(--sand2); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.45; color: #4A4B45; }
.ai svg { flex: none; margin-top: 1px; }
.note { margin: 14px 0 0; color: var(--tension-ink); font-size: 14.5px; font-weight: 600; }
.go { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; border: 0; border-radius: 999px;
  font-weight: 700; font-size: 17px; color: #fff; background: var(--calm); }
.go:hover { background: #196A62; }
.go.small { width: auto; min-height: 44px; margin: 0; padding: 0 20px; font-size: 15px; }
.method { align-self: center; font-size: 14px; padding: 10px 0; }


/* ── the room: three columns on a desktop (draft 1), one on tablet and phone (draft 2) ── */
.room { display: grid; gap: 0 24px; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) minmax(270px, 330px);
  grid-template-areas: "left conv right"; align-items: start; }
.side.left { grid-area: left; } .conv { grid-area: conv; } .side.right { grid-area: right; }
.room.swapping { grid-template-columns: minmax(0, 760px); justify-content: center; grid-template-areas: "conv"; }
.room.swapping .side { display: none; }
.side { min-width: 0; }
.side > summary { display: none; }
.side-in { display: flex; flex-direction: column; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* scenario */
.scenario h2 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.setting { margin: 0; color: var(--text2); font-size: 15px; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--sand2); }
.ring { width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid var(--hint); display: grid; place-items: center; flex: none; overflow: hidden; background: #fff; }
.ring svg { width: 39px; height: 39px; display: block; }
.ring.big { width: 44px; height: 44px; }
#sc-avatar { display: contents; }
.who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.who .name { font-weight: 700; }
.who .role { font-size: 13px; color: var(--text2); }
.goal { display: flex; flex-direction: column; gap: 4px; }
.goal .stage-text { font-size: 15.5px; line-height: 1.45; color: var(--text3); }

/* the ladder, in the line's colours */
.stages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.band-h { font-size: 12.5px; font-weight: 700; margin-top: 8px; }
.band-h:first-child { margin-top: 0; }
.band-h.win { color: var(--calm-ink); } .band-h.one { color: var(--hint-ink3); } .band-h.lose { color: var(--tension-ink); }
.stage { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; color: var(--text3); font-size: 15px; border: 1.5px solid transparent; }
.stage .n { width: 24px; font-size: 12.5px; font-weight: 700; color: var(--quiet); flex: none; font-variant-numeric: tabular-nums; }
.stage .s { flex: 1 1 0; }
.stage.far { color: var(--faint); }
.stage.here { background: #fff; font-weight: 700; color: var(--ink); }
.stage.here.win { border-color: var(--calm); background: var(--calm-light); }
.stage.here.one { border-color: var(--hint); background: #F6EAD8; }
.stage.here.lose { border-color: var(--tension); background: #F7E0DA; }
.stage .tag { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: #fff; white-space: nowrap; background: var(--calm); }
.stage.one .tag { background: var(--hint-ink3); } .stage.lose .tag { background: var(--tension-ink); }
.stage .touched { font-size: 12px; color: var(--tension-ink); white-space: nowrap; }
.ladder-bar { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--calm) 0, #3E8C7C 30%, var(--hint) 50%, var(--tension) 75%, var(--tension-deep) 100%); }

/* ── the conversation (draft 2) ── */
.conv { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.log { display: flex; flex-direction: column; gap: 16px; padding: 22px 26px 16px; min-height: 360px; height: max(440px, calc(100vh - 330px)); overflow-y: auto; }
.scene-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 18px; background: var(--sand2); border-radius: 16px; text-align: center; align-self: center; max-width: 560px; width: 100%; }
.scene-card .eyebrow { color: #6B5D4C; }
.scene-pill { font-size: 13px; color: #6B5D4C; font-weight: 600; }
.scene-set { font-size: 15.5px; line-height: 1.45; color: var(--text3); }
.line { display: flex; flex-direction: column; gap: 8px; }
.line.me { align-items: flex-end; }
.line.me .bubble { max-width: 82%; background: var(--sand); border-radius: 20px 20px 6px 20px; padding: 11px 15px; }
.line.me.pending .bubble { opacity: .8; }
.line.them { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: start; }
.line.them > .ring { margin-top: 22px; }
.line.them .col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.who-h { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); }
.line.them .bubble { background: #fff; border: 1.5px solid rgba(217,87,63,.2); border-radius: 6px 20px 20px 20px; padding: 11px 15px; max-width: 94%;
  box-shadow: 0 1px 2px rgba(30,31,28,.05); align-self: flex-start; }
.line.swapped .bubble { background: #fff; border-color: var(--line); }
.bubble { overflow-wrap: anywhere; white-space: pre-wrap; }
.subtitle { font-size: 14px; color: var(--text2); font-family: var(--stage); font-style: italic; }
.level-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--quiet); flex-wrap: wrap; }
.level-t { font-weight: 700; }
.stepper { display: flex; align-items: flex-start; max-width: 420px; }
.step { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; min-width: 0; }
.step .wire { position: absolute; top: 8px; left: 50%; width: 100%; height: 2px; background: var(--wire); }
.step .wire.on { background: var(--calm); }
.step .node { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--node); }
.step.on .node { background: var(--calm); border: 0; }
.step-l { font-size: 11.5px; line-height: 1.2; font-weight: 500; color: var(--faint); text-align: center; }
.step.on .step-l { font-weight: 700; color: var(--calm-ink); }
.oks { display: flex; gap: 6px; flex-wrap: wrap; }
.ok { font-size: 12.5px; font-weight: 600; color: var(--calm-ink); background: var(--calm-light); border-radius: 999px; padding: 3px 10px; }
.hint { align-self: flex-end; max-width: 88%; display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--hint-line); border-radius: 16px;
  padding: 11px 14px; font-size: 14.5px; line-height: 1.45; margin-top: -8px; }
.hint svg { flex: none; margin-top: 1px; }
.hint strong { color: var(--hint-ink); font-weight: 700; }
.coachbox { background: var(--calm-light); border-radius: 20px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.coach-h { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--calm-deep); }
.coachbox p { margin: 0; color: var(--calm-text); white-space: pre-wrap; }
.notice { background: var(--sand2); border-radius: 16px; padding: 12px 14px; font-size: 14px; color: #4A4B45; white-space: pre-wrap; }
.notice a { font-weight: 700; }
.notice.calm-stop { background: var(--calm-light); color: var(--calm-text); }
.cardimg { align-self: center; max-width: 360px; width: 100%; margin: 0; }
.cardimg img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); display: block; }
.cardimg .caption { font-size: 13px; color: var(--quiet); margin-top: 6px; }
.typing { display: flex; gap: 10px; align-items: center; }
.dots { display: flex; gap: 5px; padding: 14px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 6px 20px 20px 20px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: blink 1.4s infinite; }
.dots span:nth-child(2) { animation-delay: .2s; } .dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.narr { font-size: 13.5px; color: var(--quiet); margin: 0; }

/* the reply area: draft 2's bottom bar, draft 1's lenses and preview */
.composer { position: relative; background: var(--paper); padding: 10px 20px 14px; border-top: 1px solid var(--line2); display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips:empty { display: none; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--calm); background: #fff; font-weight: 700; font-size: 14.5px; color: var(--calm-ink);
  text-decoration: none; display: inline-flex; align-items: center; }
.chip:hover { background: var(--calm-light); }
/* the scene start's feared-sentence row (19.10.2026): draft 2's chips, in the log under the scene; quotes wrap */
.feared-row { display: flex; flex-direction: column; gap: 8px; }
.feared-q { margin: 0; font-size: 14px; font-weight: 700; color: var(--text2); }
.feared-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.feared-chips .chip { text-align: left; line-height: 1.3; padding: 8px 16px; font-weight: 600; }
.feared-chips .chip.chip-skip { border-color: var(--control); color: var(--quiet); font-weight: 600; }
.feared-chips .chip.chip-skip:hover { background: var(--sand2); }
.bar-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pause-btn, .end-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.pause-btn { border: 1.5px solid var(--calm); background: #fff; color: var(--calm-ink); }
.pause-btn:hover { background: var(--calm-light); }
.pause-btn[aria-pressed="true"] { background: var(--calm); color: #fff; }
.pause-btn[aria-pressed="true"]:hover { background: #196A62; }
.end-btn { border: 1.5px solid var(--control); background: #fff; color: var(--ink); font-weight: 600; }
.end-btn:hover { background: var(--sand2); }
.lens-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.lens-label { font-size: 13px; color: var(--quiet); margin-right: 2px; }
.lens { min-height: 36px; padding: 0 12px; border-radius: 999px; font-weight: 600; font-size: 13.5px; background: transparent; color: var(--text2); border: 1.5px solid var(--control); }
.lens:hover { background: #fff; }
.lens[aria-pressed="true"] { background: var(--calm-ink); color: #fff; border-color: var(--calm-ink); }
.lens-hint { margin: -2px 0 0; font-size: 13.5px; color: var(--text2); }
#composer { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.say-row { display: flex; gap: 8px; align-items: flex-end; }
textarea { flex: 1 1 0; resize: none; min-height: 50px; max-height: 200px; border: 1.5px solid var(--control); border-radius: 25px; padding: 12px 18px;
  background: #fff; font-size: 16px; line-height: 1.4; color: var(--ink); }
textarea::placeholder { color: var(--faint); }
textarea:focus { outline: 2.5px solid var(--calm); outline-offset: 1px; }
.send { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--calm); color: #fff; display: grid; place-items: center; }
.send:hover { background: #196A62; }
.preview { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 13.5px; color: var(--text3); min-height: 20px; padding-left: 4px; }
.preview .pred { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }
.pulse-share { font-size: 13px; color: var(--text2); font-weight: 400; align-items: flex-start; }
.tools { display: flex; gap: 16px; align-items: center; font-size: 13.5px; }
.tools .turn-no { margin-left: auto; color: var(--quiet); }

/* right column */
.temp .head-row { align-items: flex-start; }
.big-num { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.big-num b { font-weight: 800; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.big-num .w { font-weight: 700; font-size: 14px; }
#temp-chart { min-height: 120px; }
.line-svg { display: block; max-width: 100%; height: auto; font-family: var(--ui); overflow: visible; }
.line-key { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--quiet); }
.line-key .k { display: inline-flex; align-items: center; gap: 6px; }
.line-key .ends { gap: 5px; font-weight: 600; }
.line-key .to { color: var(--faint); font-weight: 400; }
.kd { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.kd.me { background: var(--quiet); }
.kd.them { background: #fff; border: 2px solid var(--quiet); }
.why { margin: 0; font-size: 14px; color: var(--text3); }
.scale-note { margin: 0; font-size: 12.5px; color: var(--quiet); }
.need-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.need-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 15px; }
.need-list li.hidden-need { color: var(--faint); }
.ndots { display: flex; gap: 4px; flex: none; }
.ndots span { width: 9px; height: 9px; border-radius: 50%; background: var(--wire); }
.ndots span.on { background: var(--calm); }
.lock { margin: 0; display: inline-flex; gap: 8px; align-items: center; color: var(--faint); font-size: 13.5px; }
.next { border-color: var(--hint-line); }
.next-h { display: flex; align-items: center; gap: 8px; color: var(--hint-ink); }
.next p { margin: 0; font-size: 15px; }

/* ── the debrief: draft 1's structure in draft 2's look ── */
.debrief { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.d-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; }
.d-title { display: flex; flex-direction: column; gap: 8px; max-width: 700px; }
.d-title h1 { margin: 0; font-weight: 800; font-size: 44px; line-height: 1.08; letter-spacing: -.02em; }
.d-title h1:focus { outline: none; }
.d-title p { margin: 0; font-size: 17px; color: var(--text2); }
.tiles { display: flex; gap: 10px; flex-wrap: wrap; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.tile-l { font-size: 13px; color: var(--quiet); }
.tile-v { display: flex; align-items: center; gap: 8px; }
.tile-v b { font-weight: 800; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile-w { font-size: 14px; font-weight: 700; }
.tile.outcome { background: var(--calm); color: #fff; border: 0; justify-content: center; }
.tile.outcome .tile-l { color: #fff; }
.tile.outcome b { font-weight: 800; font-size: 20px; line-height: 1.3; }
.tile.outcome.open { background: var(--sand2); color: var(--ink); } .tile.outcome.open .tile-l { color: var(--quiet); }
.tile.outcome.stuck { background: #F7E0DA; color: var(--tension-ink); } .tile.outcome.stuck .tile-l { color: var(--tension-ink); }
.d-grid { display: flex; flex-direction: column; gap: 16px; }
.blk { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.blk-h { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; }
.blk p { margin: 0; }
.blk-eyebrow { font-size: 11.5px; }
.arc-box { min-height: 130px; }
.arc-ends { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; line-height: 1.35; }
.arc-ends > span { display: flex; flex-direction: column; max-width: 48%; }
.arc-ends .end-r { text-align: right; }
.arc-ends .q { color: var(--quiet); }
.d-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.blk.good { background: var(--calm-light); border: 0; }
.blk.good .blk-h { color: var(--calm-deep); }
.blk.good p { color: var(--calm-text); }
.blk.change { border-color: var(--hint-line); }
.blk.change .blk-h { color: var(--hint-ink); }
.d-steps { display: flex; justify-content: space-between; gap: 4px; padding: 4px 4px 0; max-width: 640px; width: 100%; align-self: center; }
.ds { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1 1 0; font-size: 12.5px; font-weight: 600; color: var(--faint); text-align: center; }
.ds .node { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed var(--hint); background: #fff; }
.ds.on { color: var(--calm-ink); font-weight: 700; }
.ds.on .node { background: var(--calm); border: 0; }
.moments { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.moment { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.m-head { display: flex; gap: 10px; align-items: center; }
.m-head .glyph { margin-left: -2px; }
.m-key { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.m-key.A { background: #F7E0DA; color: var(--tension-ink); } .m-key.B, .m-key.C { background: var(--calm-light); color: var(--calm-ink); }
.m-what { font-size: 13px; color: var(--quiet); font-weight: 600; }
.m-line { padding: 10px 14px; max-width: 100%; overflow-wrap: anywhere; font-size: 15px; }
.m-line.me { background: var(--sand); border-radius: 18px 18px 6px 18px; align-self: flex-end; }
.m-line.them { background: #fff; border: 1.5px solid var(--line); border-radius: 6px 18px 18px 18px; align-self: flex-start; }
.moment p { margin: 0; color: var(--text3); font-size: 15px; }
.bars { display: grid; grid-template-columns: 100px 1fr 28px; gap: 10px 14px; align-items: center; font-size: 15px; }
.bar { height: 10px; border-radius: 999px; background: var(--sand2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--calm); border-radius: 999px; }
.bars .n { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.blk.lenses p { color: var(--text3); font-size: 14.5px; }
.yard { gap: 10px; }
.yard-part { display: flex; flex-direction: column; gap: 2px; }
.yard-part + .yard-part { border-top: 1px solid var(--sand2); padding-top: 10px; }
.yard-part .stage-text { font-size: 16px; line-height: 1.45; }
.yard-part .verdict { font-size: 14.5px; color: var(--text3); }
.pocket { background: var(--sand2); border: 0; }
.pocket-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pocket-title { font-weight: 700; font-size: 14px; color: #4A4B45; }
.pocket-body { font-size: 15.5px; line-height: 1.5; color: #2E2C27; white-space: pre-wrap; }
.copy { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--calm); background: #fff; color: var(--calm-ink); font-weight: 700; font-size: 13.5px; }
.copy:hover { background: var(--calm-light); }
.blk.round { background: transparent; border: 0; padding: 4px 0 0; }
.round-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.rb { min-height: 52px; border-radius: 16px; border: 1.5px solid var(--calm); background: #fff; color: var(--calm-ink); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; text-align: center; }
.rb:hover { background: var(--calm-light); }
.rb.harder { border-color: var(--tension-deep); color: var(--tension-ink); }
.rb.harder:hover { background: #FBEDE9; }
.rb.swap { border: 0; background: var(--calm); color: #fff; border-radius: 999px; }
.rb.swap:hover { background: #196A62; }
.rb.new { border-color: var(--control); color: var(--ink); }
.rb.new:hover { background: var(--sand2); }
.full { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 20px; }
.full summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.full .txt { white-space: pre-wrap; color: var(--text3); margin-top: 10px; }
.after { display: flex; flex-direction: column; gap: 12px; }
.deleted { margin: 0 4px; font-size: 13.5px; color: var(--quiet); display: flex; gap: 8px; align-items: flex-start; }
.deleted svg { flex: none; margin-top: 2px; }
.fb-form { display: flex; gap: 10px; flex-wrap: wrap; }
.fb-form input { flex: 1 1 240px; min-height: 44px; border: 1.5px solid var(--control); border-radius: 22px; padding: 0 16px; background: #fff; }

/* ── tablet and phone: draft 2's single column; the side columns fold into two strips above the conversation ── */
@media (max-width: 1179px) {
  main { padding: 14px 16px 0; }
  .room { grid-template-columns: minmax(0, 1fr); grid-template-areas: "left" "right" "conv"; gap: 8px; }
  .room.swapping { grid-template-columns: minmax(0, 1fr); }
  .side > summary { display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; min-height: 48px; padding: 8px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; }
  .side > summary::-webkit-details-marker { display: none; }
  .side > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--quiet); border-bottom: 2px solid var(--quiet);
    transform: rotate(45deg); margin-left: auto; flex: none; }
  .side[open] > summary::after { transform: rotate(225deg); }
  .side[open] > summary { border-radius: 16px 16px 0 0; border-bottom-color: var(--line2); }
  .side > summary .eyebrow { flex: none; }
  .side-in { gap: 0; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; padding: 4px 0; }
  .side-in .card { border: 0; border-radius: 0; padding: 12px 16px; }
  .side-in .card + .card { border-top: 1px solid var(--line2); }
  .side.left .scenario > .eyebrow:first-child { display: none; }
  .sum-title { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .sum-temp { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
  .sum-tip { font-size: 13.5px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 0; }
  .side.right .side-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .side.right .side-in .card + .card { border-top: 0; }
  .conv { border: 0; border-radius: 0; margin: 0 -16px; background: var(--paper); overflow: visible; }
  .room > .conv { width: calc(100% + 32px); max-width: 820px; justify-self: center; }
  .log { height: auto; min-height: 220px; max-height: none; overflow: visible; padding: 14px 16px 12px; }
  .composer { position: sticky; bottom: 0; z-index: 5; padding: 8px 16px 14px; padding-bottom: max(14px, env(safe-area-inset-bottom)); box-shadow: 0 -6px 14px rgba(251,247,242,.9); }
  .lens-row { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .lens { flex: none; }
  .turn-pill { display: none; }
  .debrief { padding-bottom: 32px; }
  .d-title h1 { font-size: 34px; }
}
@media (max-width: 700px) {
  .top { flex-wrap: wrap; row-gap: 4px; }
  .top:has(.pilot:not([hidden]))::after { content: ""; order: 9; flex-basis: 100%; height: 0; }   /* the org badge: a row of its own */
  .pilot { order: 10; margin-left: 40px; max-width: calc(100% - 40px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; padding: 2px 10px; }
}
@media (max-width: 560px) {
  .top { padding: 10px 12px 10px 16px; }
  .actions .ghost span { display: none; }
  .actions .ghost { padding: 0 12px; }
  .setup h1 { font-size: 30px; }
  .bar-row .lens-row, .lens-hint { display: none !important; }      /* draft 2's phone bar: time-out and debrief only */
  .d-title h1 { font-size: 30px; }
  .d-title p { font-size: 16px; }
  .tiles { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile.outcome { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 10px; }
  .tile { min-width: 0; padding: 12px 10px; border-radius: 16px; }
  .tile-v b { font-size: 20px; }
  .tile-v .glyph { width: 30px; }
  .tile.outcome b { font-size: 15px; }
  .blk { padding: 14px 16px; border-radius: 20px; }
  .bars { grid-template-columns: 84px 1fr 24px; }
  .round-grid { grid-template-columns: 1fr 1fr; }
  .rb.replay, .rb.swap, .rb.new { grid-column: 1 / -1; }
  .d-pair { grid-template-columns: minmax(0, 1fr); }
  /* draft 2's order on a phone: the line, what went well and what to change, the four parts, the yardstick, the
     pocket, one more round -- then draft 1's moments and lens bars */
  .d-grid .d-pair { display: contents; }
  .d-grid .blk.arc { order: 1; } .d-grid .good { order: 2; } .d-grid .change { order: 3; } .d-grid .d-steps { order: 4; }
  .d-grid .yard { order: 5; } .d-grid .pocket { order: 6; } .d-grid .round { order: 7; } .d-grid .moments { order: 8; }
  .d-grid .lenses { order: 9; } .d-grid .full { order: 10; } .d-grid .after { order: 11; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .dots span { opacity: .6; }
}

/* the other two rooms, on our own domains instead of a language picker (19.10.2026) */
.other-langs { margin: .25rem 0 0; font-size: .9rem; color: var(--quiet, #5E5F57); text-align: center; }
.other-langs a { color: inherit; }
