/* Echo free samples: the scenario screen after Codex's audit (job SX1, 25 Nov 2026). Loaded after echo.css, echo-dash.css
   and picker.css on the 15 sample pages and the samples list. echo-dash.css stays byte-identical to the D2C sync, so every
   change to the frame lives here. Same forest green, pale surfaces, serif titles and character art (R13 tokens --k-*).
   UI-01: on phones one navigation row, a one-line person bar, the counterpart's line, then the question and choices; the
   cast and background sit behind a labelled button; the bottom bar says what is still needed. Short laptops: compact head.
   UI-02: result order (what you did, what happened, one thing to try). 44 px targets. Pure ASCII. */

/* ---------- new pieces of the player ---------- */
.pk-audio{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;margin-top:2px;padding:3px 10px;border-radius:999px;
  font-size:12px;font-weight:700;color:var(--k-body,#3e5247);background:#fff;border:1px solid var(--k-line,#dde6dd)}
.pk-audio.on{color:var(--k-forest-800,#153e2d);border-color:var(--k-rim,#b9d3c2);background:var(--k-mint-50,#e5f4ea)}
.pk-bar p{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
.pk-bar p small{flex:1 1 100%}
.pk-bar .pk-btn{width:auto}
.pk-who{min-width:0}
.pk-mode{display:inline-flex;white-space:nowrap;padding:1px 9px;border-radius:999px;font-size:12px;font-weight:700;background:var(--k-tint,#eef1ed);color:var(--k-body,#3e5247)}

/* the side column: a disclosure that is simply open on wide screens */
.side-more>summary{display:none}
.side-more>.side-in{display:grid;gap:16px}
.side-more{display:block}

/* opening scene: settings in one quiet disclosure */
.settings{padding:0;overflow:hidden}
.settings>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:12px 18px;cursor:pointer;list-style:none}
.settings>summary::-webkit-details-marker{display:none}
.settings>summary b{display:block;font-size:14px;color:var(--k-ink,#1c3026)}
.settings .set-now{display:block;font-size:13px;color:var(--k-muted,#526258)}
.settings .set-open{flex:none;display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid #92ab98;border-radius:999px;font-size:13px;font-weight:700;color:var(--k-forest-800,#153e2d);background:#fff}
.settings[open] .set-open{background:var(--k-mint-50,#e5f4ea)}
.settings form,.settings .how{padding:0 18px 18px}
.settings .how h3{font-size:15px;margin:4px 0 8px}
.meet-who .role-only .bubble{font-size:14px;color:var(--k-muted,#526258)}
.stakes-card{padding:18px 20px}
.stakes-card h2{font-size:18px;margin-bottom:8px}

/* decision screen */
.prompt.card h2{margin-bottom:6px}
.answer-guidance .about{display:inline;padding:0;background:none;border:0;font-size:inherit}
.need{font-weight:700;color:var(--k-ink,#1c3026)}
.action-dock .btn[disabled]{opacity:.5;cursor:not-allowed;box-shadow:none}
.recap{padding:14px 18px;background:#fff;border:1px solid var(--k-line,#dde6dd);border-radius:12px;font-size:15px;line-height:1.6}
.recap b,.consequence b,.fu-note b{display:block;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--k-forest-800,#153e2d);margin-bottom:2px}
.happened>*+*{margin-top:12px}
.diff{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:8px}
.diff li{position:relative;padding:10px 12px 10px 40px;border-radius:10px;font-size:15px;line-height:1.55;background:#fff;border:1px solid var(--k-line,#dde6dd)}
.diff li::before{position:absolute;left:12px;top:10px;width:18px;height:18px;border-radius:50%;font-size:12px;font-weight:800;line-height:18px;text-align:center}
.diff li.ok::before{content:"\2713";background:var(--k-mint-50,#e5f4ea);color:var(--k-green-700,#176347)}
.diff li.gap::before{content:"!";background:#fbeedd;color:#8a4b12}
.cmp{margin-top:14px}
.fb .strongest,.fb .details{margin-top:14px}
.followup{margin-top:20px;padding:20px;border-left:4px solid var(--k-green-700,#176347)}
.followup .eyebrow{margin-bottom:4px}
.followup .fu-q{font-size:18px;margin:14px 0 10px}
.fu-note{margin-top:12px;padding:12px 16px;border-radius:12px;font-size:15px;line-height:1.6;background:#ecf1e6}
.fu-note.gap{background:#fbf3e6}

/* result */
.try-card{border:2px solid var(--k-green-700,#176347);margin-top:18px}
.try-card h2{font-size:22px;margin:2px 0 8px}
.try-card .btn-row{margin-top:14px}
.did-list{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:14px}
.did-list li{padding:0 0 14px;border-bottom:1px solid var(--k-line,#dde6dd);font-size:15px;line-height:1.55}
.did-list li:last-child{border-bottom:0;padding-bottom:0}
.did-list p+p{margin-top:4px}
.did-h{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px}
.did-mark{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--k-forest-800,#153e2d)}
.did-list .lbl{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--k-muted,#526258);margin-right:4px}
.practice-line .btn{margin-top:12px}
.small-link{display:inline-flex;align-items:center;min-height:44px;font-size:14px;font-weight:700;color:var(--k-green-700,#176347);text-decoration:underline;text-underline-offset:3px}
.result-layout .story-main>*+*{margin-top:18px}

/* 44 px targets */
.help-mark{width:44px;height:44px;top:6px;right:6px}
.option{padding-right:60px}
.pill-btn{min-height:44px;min-width:44px;justify-content:center}
.details summary{min-height:48px;display:flex;align-items:center}
:focus-visible{outline:3px solid #b5652b;outline-offset:2px}

/* ---------- short laptops (1366 x 768, 1440 x 900 and the like): a compact head so the first choice starts in view ---------- */
@media (min-width:821px) and (max-height:920px){
  .topbar{min-height:58px;padding-top:6px;padding-bottom:6px}
  .demo-strip{padding:4px 14px}
  .content{padding-top:16px}
  .pk-bar{padding:8px 14px;margin-bottom:10px}
  .pk-bar small{display:none}
  .story-head{margin-bottom:12px}
  .stage-nav li{min-height:36px;padding:5px 12px}
  #app h1{font-size:36px}
  .story-main>*+*{margin-top:12px}
  .dec-eyebrow{margin-bottom:6px}
  .player{padding:6px 0}
  .talk>li{margin-top:8px}
  .bubble{padding:10px 14px}
  .prompt.card{padding:18px 22px}
  .prompt h2{font-size:22px}
  .scene-art{height:220px}
  .bubble small{display:none}
  .answer-guidance{margin:2px 0 6px}
}
/* the first choice starts on the first screen at 1366 x 768: the narration sits beside the speaker */
@media (min-width:821px){
  #app h1{max-width:none}
  .dock-decide .dock-note{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
}

/* ---------- phones: one navigation row, compact person and progress, the line, then the question ---------- */
@media (max-width:820px){
  .demo-strip{font-size:12px;padding:4px 10px;line-height:1.4}
  .shell{display:flex;flex-wrap:wrap;align-items:stretch;background:linear-gradient(180deg,#153e2d 0%,#123526 100%) top/100% 60px no-repeat}
  .main{display:contents}
  .rail{flex:0 1 auto;padding:8px 6px 8px 10px;gap:6px;flex-wrap:nowrap;background:transparent}
  .rail .logo{padding:6px 8px;min-height:44px}
  .rail .logo span{display:none}
  .rail nav{margin-left:0;gap:4px;flex-wrap:nowrap}
  .rail nav a[aria-current]{display:none}
  .rail nav a{min-height:44px;padding:8px 12px;font-size:13px;white-space:nowrap}
  .topbar{flex:1 1 auto;min-width:0;justify-content:flex-end;padding:8px 10px 8px 0;background:transparent;border:0;-webkit-backdrop-filter:none;backdrop-filter:none;min-height:60px}
  .crumb{display:none}
  .top-actions{width:auto;justify-content:flex-end;flex-wrap:nowrap}
  .pill-btn.gs-open .lbl-h,#voice-toggle .lbl{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .pill-btn{padding:8px 11px}
  .content{flex:1 1 100%;padding:12px 12px 0}
  .footer{flex:1 1 100%}
  .pk-bar{padding:6px 6px 6px 12px;margin:0 0 10px;gap:6px;flex-wrap:nowrap;border-radius:14px}
  .pk-bar p{flex:1 1 auto;font-size:14px;min-width:0;flex-wrap:nowrap;align-items:center}
  .pk-bar small,.pk-bar .pk-role-s{display:none}
  .pk-bar .pk-btn{flex:none;padding:8px 12px;font-size:13px}
  .story-head{display:none}
  #app h1{font-size:27px;line-height:1.12}
  .dec-eyebrow{margin-bottom:4px;font-size:12px}
  .story-main>*+*{margin-top:10px}
  .story-main h1+.lead{margin-top:8px}
  .player{padding:4px 0;gap:8px}
  .player .round{width:44px;height:44px}
  .narr{font-size:15px;line-height:1.55}
  .talk>li{margin-top:8px;gap:8px}
  .talk .avatar{width:36px;height:36px}
  .talk .avatar img{width:36px;height:36px}
  .bubble{padding:9px 12px;font-size:15px;line-height:1.5}
  .bubble small{display:none}
  .prompt.card{padding:14px 12px}
  .prompt h2{font-size:20px;line-height:1.3}
  .answer-guidance{font-size:14px;margin:4px 0 8px}
  .option{padding:12px 56px 12px 12px;min-height:48px;font-size:15px;line-height:1.45}
  .options{gap:8px}
  .side-more>summary{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 16px;border:1px solid #92ab98;border-radius:999px;
    background:#fff;font-size:14px;font-weight:700;color:var(--k-forest-800,#153e2d);cursor:pointer;list-style:none}
  .side-more>summary::-webkit-details-marker{display:none}
  .side-more[open]>summary{margin-bottom:14px;background:var(--k-mint-50,#e5f4ea)}
  .story-side .side-extra{display:block}
  .action-dock{margin-top:16px;padding:8px 0;gap:8px;flex-wrap:nowrap;align-items:center}
  .action-dock .dock-note{flex:1 1 auto;min-width:0;font-size:13px;line-height:1.35}
  .action-dock .actions{width:auto;flex:none;margin-left:auto}
  .action-dock .btn{flex:none;padding:10px 16px;min-height:48px}
  .dock-decide .decision-track i{width:16px}
  .dock-result{flex-wrap:wrap}
  .dock-result .actions{width:100%}
  .dock-result .actions .btn{flex:1 1 0}
  .dock-result .dock-note{order:2;flex:1 1 100%;text-align:center}
  .try-card h2{font-size:20px}
  .followup{padding:14px 12px}
  .diff li{font-size:14px}
  .settings>summary{padding:10px 12px}
  .stakes-card{padding:14px}
}
@media (max-width:360px){
  .rail nav a{padding:8px 9px}
  .pill-btn{padding:8px 9px;font-size:12px}
  .action-dock .btn{padding:10px 12px}
}
/* phones in landscape and very short screens: keep the dock small */
@media (max-height:500px){.action-dock{position:static}}

/* ---------- the samples-only list (/echo/samples/) ---------- */
.sl-head{max-width:760px}
.sl-head h1{font-size:44px}
.sl-head .lead{margin-top:10px;font-size:17px;line-height:1.55;color:var(--k-body,#3e5247)}
.sl-goals{list-style:none;margin:26px 0 0;padding:0;display:grid;gap:18px}
.sl-goal{background:#fff;border:1px solid var(--k-line,#dde6dd);border-radius:22px;padding:20px 22px;box-shadow:var(--k-shadow,0 10px 30px rgba(21,62,45,.07));scroll-margin-top:90px}
.sl-goal:target{border-color:var(--k-green-700,#176347);box-shadow:inset 0 0 0 1px var(--k-green-700,#176347)}
.sl-goal h2{font-size:22px;line-height:1.3;margin:0;color:var(--k-ink,#1c3026)}
.sl-goal .sl-k{margin:0 0 2px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--k-green-700,#176347)}
.sl-list{list-style:none;margin:12px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.sl-card{display:flex;flex-direction:column;gap:6px;height:100%;min-height:44px;padding:14px 16px;border-radius:16px;background:var(--k-tint,#eef1ed);
  border:2px solid transparent;color:var(--k-ink,#1c3026);text-decoration:none}
.sl-card:hover{border-color:var(--k-rim,#b9d3c2);background:#f4f8f3}
.sl-card b{font-size:16px;line-height:1.35}
.sl-card span{font-size:14px;line-height:1.5;color:var(--k-body,#3e5247)}
.sl-card .sl-go{margin-top:auto;font-weight:800;color:var(--k-green-700,#176347)}
@media (max-width:820px){.sl-head h1{font-size:32px}.sl-goal{padding:16px 14px}.sl-list{grid-template-columns:1fr}}
