/* ---- Tokens ----
   Every colour lives in this block and nowhere else; design-tokens.test.cjs fails on a hex value outside it.
   A shade that is only a hover or a wash of one of these is written as color-mix() from the token, not as a new hex. */
:root{
  color-scheme:light;
  accent-color:var(--blue);
  /* Brand and text */
  --blue:#2447e8;
  --ink:#17213b;
  --muted:#586176;
  --white:#fff;
  /* Quiet surfaces */
  --pale:#eef2ff;
  --pale-hover:#e1e7ff;
  --pale-line:#cdd7ff;
  --blue-soft:#adbcff;
  --yellow:#f4ecd8;
  /* Lines: --line divides, --field is the edge of something a person types in or ticks */
  --line:#dce1eb;
  --field:#7d879c;
  /* Text on the dark fills */
  --on-blue:#e0e6ff;
  --on-ink:#dce1eb;
  /* Recording, and nothing else */
  --coral:#ff745f;
  /* Status: done, wrong, and heads-up */
  --ok:#287650;
  --ok-wash:#f0f8f3;
  --error:#aa3020;
  --note:#fff7ce;
  --note-ink:#774800;
  --note-line:#d9c9a0;
  /* The five ways in */
  --hardway:#e8c07d;
  --room:#c6d8ff;
  --how:#bfe7c9;
  --offclock:#d9c6f7;
  --free:#ee9fb8;
  /* The card's hard offset, on desktop and on a phone */
  --lift:7px 8px 0;
  --lift-sm:4px 5px 0;
  --display:Georgia,'Times New Roman',serif;
  --body:Arial,sans-serif;
  /* Space and type come from a scale, the way colour does. The header, footer and landing page use only these; landing-page.test.cjs fails on a stray pixel value. */
  --s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:24px;--s6:32px;--s7:48px;--s8:64px;--s9:96px;
  --t-xs:12px;--t-sm:14px;--t-md:16px;--t-lg:18px;--t-xl:24px;--t-2xl:32px;
  /* One side gutter for the header, the page and the footer, so their left edges line up. */
  --gutter:var(--s5);
}
.hardway{--group:var(--hardway)}.room{--group:var(--room)}.how{--group:var(--how)}.offclock{--group:var(--offclock)}.free{--group:var(--free)}
/* The parts the browser draws, themed from the palette. Selecting text on a blue card needs its own colour: a blue highlight would vanish. */
::selection{background:color-mix(in srgb,var(--blue) 22%,var(--white));color:var(--ink)}
.story-treatment ::selection,.card-back ::selection{background:var(--yellow);color:var(--ink)}
input,textarea{caret-color:var(--blue)}
::placeholder{color:var(--muted);opacity:1}
textarea{scrollbar-color:var(--field) transparent}
*{box-sizing:border-box}body{margin:0;background:var(--white);color:var(--ink);font:16px/1.55 var(--body);font-synthesis:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button,a,textarea,input,select{outline-offset:5px} :focus-visible{outline:3px solid var(--blue)}a{color:inherit}button{color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--display);line-height:1.1;letter-spacing:-.045em;text-wrap:balance}button{border:0}h1{font-size:clamp(3.5rem,6.4vw,6.1rem);font-weight:800}h2{font-size:clamp(2.15rem,4vw,3.6rem)}h3{font-size:1.55rem}/* The header, the page and the footer share one gutter, so the logo, the headline and the footer start on the same line. The active tab changes colour, never weight: bold is wider and would push its neighbour. */
.site-header,.site-footer{width:min(1192px,calc(100% - 2 * var(--gutter)));margin:auto;padding:var(--s4) 0;display:flex;align-items:center;justify-content:space-between;gap:var(--s4)}.site-header{height:var(--s9)}.brand{display:flex;gap:var(--s3);align-items:center;min-height:44px;text-decoration:none;font-family:var(--display);font-weight:800;font-size:var(--t-xl);line-height:1}.brand-icon{background:var(--blue);color:var(--yellow);width:48px;height:48px;border-radius:15px 15px 15px 4px;display:grid;place-items:center;font-size:36px;letter-spacing:-3px;padding-right:3px}.brand-sub{display:block;font:var(--t-xs) var(--body);letter-spacing:0;margin-top:var(--s1);color:var(--muted)}nav{display:flex;gap:var(--s2)}.nav-button{background:transparent;padding:var(--s2) var(--s3);font-size:var(--t-sm);border-radius:var(--s3);min-height:44px;white-space:nowrap;display:inline-flex;align-items:center}.nav-button.active{background:var(--pale);color:var(--blue)}.nav-button span{display:inline-grid;place-items:center;min-width:var(--s5);height:var(--s5);padding:0 var(--s1);border-radius:999px;background:var(--blue);color:white;font-size:var(--t-xs);font-variant-numeric:tabular-nums;margin-left:var(--s2)}.site-footer{margin-top:var(--s8);border-top:1px solid var(--line);font-size:var(--t-xs);color:var(--muted);padding:var(--s5) 0}.footer-sep{margin:0 var(--s2)}#app{max-width:1240px;margin:auto;padding:0 var(--gutter);min-height:66vh}.hero{display:grid;grid-template-columns:1.08fr 1fr;gap:65px;align-items:center;padding:50px 0 62px}.edition{display:inline-flex;gap:8px;align-items:center;font-size:13px;margin-bottom:25px}.edition:before{content:'';width:8px;height:8px;background:var(--blue);border-radius:50%}.hero h1{max-width:670px}.intro{font-size:var(--t-lg);line-height:1.65;max-width:440px;margin-top:var(--s5);color:var(--muted)}.hero-actions{display:flex;gap:var(--s4);align-items:center;flex-wrap:wrap;margin-top:var(--s6)}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:50px;padding:13px 23px;border-radius:12px;background:var(--blue);color:white;font-weight:700;text-decoration:none;line-height:1.4;transition:transform .15s,background .15s}.button:hover{background:color-mix(in srgb,var(--blue) 82%,black)}@media(hover:hover) and (pointer:fine){.button:hover{transform:translateY(-2px)}}.button.secondary{background:var(--pale);color:var(--blue)}.button.secondary:hover{background:var(--pale-hover)}.button.yellow{background:var(--yellow);color:var(--ink)}.button.outline{background:white;border:1px solid var(--line);color:var(--ink)}.button.small{font-size:13px;min-height:40px;padding:10px 16px}.text-button{background:none;padding:8px 0;text-decoration:underline;text-underline-offset:5px;color:var(--muted);font-size:14px}.micro{font-size:var(--t-xs);color:var(--muted);line-height:1.55}.hero .micro{margin-top:17px}.deck-scene{position:relative;max-width:435px;width:100%;margin:25px auto 15px;isolation:isolate}.deck-scene:before,.deck-scene:after{content:'';position:absolute;inset:0;border-radius:27px;z-index:-1;border:1.5px solid var(--ink)}.deck-scene:before{background:var(--yellow);transform:rotate(-8deg)}.deck-scene:after{background:var(--pale);transform:rotate(6deg)}.cover-card{position:relative;min-height:435px;background:var(--blue);color:white;padding:32px;border-radius:27px;transform:rotate(-2deg);display:flex;flex-direction:column;justify-content:space-between;border:1.5px solid var(--ink)}.card-top,.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:13px}.card-top .mini-brand{font-weight:bold}.speech-mark{width:104px;height:94px;display:grid;place-items:center;background:var(--yellow);color:var(--blue);font-family:var(--display);font-size:63px;letter-spacing:-5px;font-weight:bold;border-radius:28px 28px 28px 0;transform:rotate(8deg);margin:28px auto 23px}.cover-card h2{font-size:49px;text-align:center;line-height:1.05;margin-bottom:30px}.cover-card .card-bottom{color:var(--on-blue)}.deck-caption{text-align:center;font-size:12px;color:var(--muted);margin-top:36px}.how-strip{display:grid;grid-template-columns:1fr 1fr 1fr;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:26px 0;gap:30px}.how-item{display:flex;gap:14px;align-items:flex-start}.step-dot{flex-shrink:0;display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:var(--pale);color:var(--blue);font-weight:700;font-size:12px}.how-item strong{display:block;font-size:15px;margin-bottom:3px}.how-item p{font-size:13px;color:var(--muted)}.below-note{display:flex;justify-content:space-between;gap:25px;padding:27px 0 0;font-size:13px;color:var(--muted)}.below-note strong{color:var(--ink)}.round-header{display:flex;align-items:center;justify-content:space-between;margin:30px 0 30px;gap:20px}.round-header h1{font-size:24px;letter-spacing:-.04em}.progress{display:flex;align-items:center;gap:7px}.progress span{width:29px;height:6px;border-radius:5px;background:var(--line)}.progress span.done{background:var(--blue)}.progress span.current{background:var(--blue-soft)}.progress-label{font-size:13px;color:var(--muted);margin-right:10px}.round-grid{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:start}.prompt-card{background:var(--yellow);padding:30px 34px 27px;border:1.5px solid var(--ink);border-radius:24px;min-height:445px;display:flex;flex-direction:column;box-shadow:var(--lift) var(--pale)}.prompt-card .category{font-size:14px;display:flex;align-items:center;gap:8px}.category .dot{width:9px;height:9px;border-radius:50%;background:var(--ink)}.prompt-card h2{font-size:clamp(28px,3.1vw,42px);line-height:1.16;letter-spacing:-.04em;margin:35px 0 30px}.constraint{margin-top:auto;padding-top:20px;border-top:1px solid var(--note-line)}.constraint span{display:block;font-size:12px;color:var(--muted);margin-bottom:5px}.constraint p{font-size:16px;font-weight:700}.prompt-foot{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-top:22px;font-size:12px;color:var(--muted)}.answer-panel{padding:5px 0}.timer-area{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}.timer-number{font-family:var(--display);font-size:86px;letter-spacing:-.08em;line-height:1;color:var(--blue);font-weight:800}.timer-number small{font-size:15px;font-weight:normal;letter-spacing:0;margin-left:8px;color:var(--muted)}.timer-copy{font-size:13px;color:var(--muted);max-width:190px}.timer-copy strong{display:block;color:var(--ink);font-size:15px;margin-bottom:5px}.record-zone{text-align:center;border:1px solid var(--line);border-radius:18px;padding:28px 24px}.mic-button{width:82px;height:82px;background:var(--coral);border:0;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px;color:var(--ink)}.mic-button:hover{background:color-mix(in srgb,var(--coral) 75%,var(--white))}.mic-button svg{width:30px;height:30px}.mic-button.recording{animation:pulse 1.4s infinite}.record-zone h3{font-size:20px;letter-spacing:-.02em;margin-bottom:8px}.record-zone p{font-size:13px;color:var(--muted)}.speech-opt{display:flex;align-items:flex-start;text-align:left;gap:9px;margin:20px 0 7px;font-size:13px}.speech-opt input{margin-top:4px;accent-color:var(--blue)}.field-label{display:block;font-size:14px;font-weight:700;margin-bottom:9px}.field-hint{font-size:12px;color:var(--muted);margin-bottom:12px}.answer-text{width:100%;min-height:180px;resize:vertical;padding:16px;border:1px solid var(--field);border-radius:12px;background:var(--white);line-height:1.7;font-size:15px}.input{width:100%;padding:12px 14px;border:1px solid var(--field);border-radius:9px;background:white;color:var(--ink)}textarea.input{resize:vertical;min-height:90px;line-height:1.6}.answer-meta{display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:12px;margin:8px 0 20px}.answer-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:18px}.notice{background:var(--pale);border-radius:10px;padding:12px 15px;font-size:13px;line-height:1.6;margin:14px 0;color:var(--ink)}.notice.warning{background:var(--note);color:var(--note-ink)}.error{color:var(--error);font-size:13px;line-height:1.5;margin:12px 0}audio{width:100%;height:40px;margin:12px 0}.recorded-label{color:var(--blue);font-size:13px;font-weight:bold}.reveal{max-width:820px;margin:42px auto 0}.reveal-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:28px}.reveal-heading h1{font-size:44px}.completion-stamp{background:var(--yellow);color:var(--ink);padding:12px 16px;border-radius:50%;transform:rotate(8deg);font-family:var(--display);font-weight:bold;font-size:18px;white-space:nowrap}.quote-sheet{position:relative;background:var(--blue);color:white;padding:37px;border-radius:22px}.quote-sheet .quote-label{font-size:13px;color:var(--on-blue);margin-bottom:18px}.quote-sheet blockquote{margin:0;font-family:var(--display);font-size:28px;line-height:1.4;letter-spacing:-.025em;overflow-wrap:anywhere}.quote-sheet .source{font-size:12px;color:var(--on-blue);margin-top:20px}.reveal-insight{padding:28px 0;border-bottom:1px solid var(--line)}.reveal-insight h3{margin-bottom:12px}.reveal-insight p{color:var(--muted);max-width:670px}.reveal-insight strong{color:var(--ink)}.reveal-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:26px;flex-wrap:wrap}.feedback{display:flex;gap:9px;margin-top:20px;align-items:center;flex-wrap:wrap;font-size:13px;color:var(--muted)}.feedback button{background:white;border:1px solid var(--line);border-radius:22px;padding:8px 13px;font-size:13px}.feedback button.selected{background:var(--pale);color:var(--blue);border-color:var(--blue)}.results{max-width:980px;margin:38px auto 0}.results-top{display:flex;align-items:flex-start;justify-content:space-between;gap:25px;margin-bottom:30px}.results-top h1{font-size:52px;max-width:650px}.results-top p{color:var(--muted);margin-top:16px;max-width:620px}.result-count{white-space:nowrap;background:var(--yellow);padding:10px 15px;border-radius:30px;font-size:13px;font-weight:bold}.context-box{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:24px;background:var(--pale);border-radius:18px;margin:25px 0 30px}.context-box .full{grid-column:1/-1}.context-box h3{font-size:21px}.context-box p{font-size:13px;color:var(--muted);margin-top:7px}.direction-options{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:20px 0 18px}.direction-option{text-align:left;background:white;border:1px solid var(--line);border-radius:14px;padding:21px 17px;display:flex;flex-direction:column;gap:10px;min-height:176px}.direction-option.selected{border:2px solid var(--blue);padding:20px 16px;background:var(--pale)}.direction-option .direction-radio{width:18px;height:18px;border:1.5px solid var(--field);border-radius:50%;margin-bottom:4px}.direction-option.selected .direction-radio{border:5px solid var(--blue)}.direction-option strong{font-family:var(--display);font-size:19px;letter-spacing:-.025em}.direction-option p{font-size:13px;line-height:1.55;color:var(--muted)}.result-section{padding:29px 0;border-bottom:1px solid var(--line)}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px}.section-heading h2{font-size:29px}.section-heading span{font-size:12px;color:var(--muted)}.evidence-list{display:flex;flex-direction:column;gap:14px;margin:20px 0}.evidence{display:grid;grid-template-columns:145px 1fr;gap:16px;padding:17px 0;border-top:1px solid var(--line)}.evidence:first-child{border-top:0}.evidence-label{font-size:13px;font-weight:bold;color:var(--blue)}.evidence blockquote{font-size:16px;line-height:1.65;margin:0;overflow-wrap:anywhere}.evidence .source{font-size:12px;color:var(--muted);margin-top:8px}.edit-note{font-size:12px;color:var(--muted);margin:9px 0}.bio-text{font-size:18px;min-height:140px!important}.content-drafts{display:flex;flex-direction:column;gap:25px;margin-top:22px}.draft-item{border-left:3px solid var(--blue);padding-left:23px}.draft-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:10px}.draft-head h3{font-size:21px}.draft-item textarea{min-height:160px}.draft-source{font-size:12px;color:var(--muted);margin-top:8px}.export-bar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:30px 0 12px}.library{margin-top:20px}.library details{border-bottom:1px solid var(--line);padding:15px 0}.library summary{cursor:pointer;font-size:14px;font-weight:700;padding:5px 0}.library p{font-size:14px;color:var(--muted);white-space:pre-wrap;margin:12px 0;overflow-wrap:anywhere}.library .input{margin-top:12px}.empty{max-width:620px;text-align:center;margin:80px auto}.empty h1{font-size:46px}.empty p{color:var(--muted);margin:20px 0 28px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:12px;padding:14px 22px;box-shadow:0 4px 20px color-mix(in srgb,var(--ink) 12%,transparent);z-index:30;max-width:90vw;font-size:14px}.demo-banner{background:var(--yellow);text-align:center;padding:12px 20px;font-size:13px}.demo-banner button{background:none;text-decoration:underline;font-weight:bold;padding:4px 8px}.shuffling{animation:shuffle .7s ease}.live-status{min-height:20px;margin-top:8px;font-size:12px;color:var(--muted)}.record-only-note{margin-top:12px}.spin-deck{padding:45px 0;text-align:center}.spin-deck .deck-scene{max-width:350px}.spin-deck .cover-card{min-height:350px}.spin-deck h1{font-size:38px;margin-bottom:25px}.spin-deck .button{margin-top:30px}.w-full{width:100%}.back-link{background:none;color:var(--muted);font-size:13px;padding:0;text-decoration:underline;text-underline-offset:4px}.feedback-note{margin-top:8px;font-size:12px;color:var(--muted)}[hidden]{display:none!important}@keyframes shuffle{0%,100%{transform:rotate(-2deg)}25%{transform:rotate(8deg) translateX(15px)}50%{transform:rotate(-10deg) translateX(-18px)}75%{transform:rotate(5deg) translateX(8px)}}@keyframes pulse{50%{box-shadow:0 0 0 10px color-mix(in srgb,var(--coral) 13%,transparent)}}
@media(min-width:1500px){.hero{padding-top:70px;padding-bottom:80px}.cover-card{min-height:470px}}
@media(max-width:900px){.hero{gap:35px}.cover-card{min-height:390px;padding:26px}.cover-card h2{font-size:40px}.round-grid{gap:30px}.prompt-card{padding:26px;min-height:420px}.timer-number{font-size:72px}.timer-copy{max-width:145px}.direction-options{gap:9px}.direction-option{padding:16px 13px}.direction-option.selected{padding:15px 12px}}
@media(max-width:650px){:root{--gutter:var(--s4)}.site-header{height:var(--s8);gap:var(--s2)}.brand{font-size:var(--t-lg)}.brand-icon{width:40px;height:40px;font-size:31px}.brand-sub{display:none}nav{gap:0}.nav-button{padding:var(--s2);font-size:var(--t-xs)}.hero{grid-template-columns:1fr;padding:26px 0 35px;gap:23px}.hero h1{font-size:60px;line-height:1}.edition{margin-bottom:20px}.intro{font-size:var(--t-md);margin-top:var(--s4);max-width:360px}.hero-actions{gap:var(--s4);margin-top:var(--s5)}.button{padding:13px 20px;font-size:14px}.deck-scene{max-width:300px;margin-top:25px}.cover-card{min-height:328px;padding:23px}.cover-card h2{font-size:36px;margin-bottom:25px}.speech-mark{width:75px;height:67px;font-size:44px;margin:22px auto 18px}.card-top,.card-bottom{font-size:11px}.deck-caption{margin-top:30px}.how-strip{grid-template-columns:1fr;gap:21px;padding:23px 0}.below-note{flex-direction:column;gap:13px;padding-top:20px}.site-footer{margin-top:var(--s7);align-items:flex-start;flex-direction:column;gap:var(--s2);font-size:var(--t-xs)}.round-header{margin:22px 0;align-items:flex-start;flex-direction:column;gap:12px}.round-grid{grid-template-columns:1fr;gap:30px}.prompt-card{min-height:330px;padding:24px}.prompt-card h2{font-size:32px;margin:25px 0}.prompt-foot{margin-top:16px}.answer-panel{padding:0}.timer-area{margin-bottom:20px}.timer-number{font-size:67px}.timer-copy{max-width:190px}.record-zone{padding:22px}.reveal{margin-top:26px}.reveal-heading h1{font-size:34px}.completion-stamp{font-size:14px;padding:13px 11px}.quote-sheet{padding:26px}.quote-sheet blockquote{font-size:23px}.reveal-actions{align-items:stretch}.reveal-actions .button{width:100%}.results{margin-top:24px}.results-top{flex-direction:column;gap:17px}.results-top h1{font-size:40px}.results-top p{font-size:15px}.context-box{grid-template-columns:1fr;padding:21px}.context-box .full{grid-column:auto}.direction-options{grid-template-columns:1fr}.direction-option{min-height:0;display:grid;grid-template-columns:20px 1fr;gap:6px 12px}.direction-option p{grid-column:2}.direction-radio{grid-row:1/3;margin-top:3px}.evidence{grid-template-columns:1fr;gap:9px}.section-heading{align-items:flex-start}.section-heading h2{font-size:27px}.section-heading span{text-align:right;max-width:105px}.draft-item{padding-left:15px}.draft-head h3{font-size:18px}.export-bar .button{width:100%}.demo-banner{font-size:12px}.empty{margin:60px auto}.empty h1{font-size:37px}.spin-deck{padding-top:25px}.spin-deck h1{font-size:32px}.answer-text{font-size:16px}.input{font-size:16px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.prompt-options{display:flex;flex-wrap:wrap;gap:18px}.meter-row{display:flex;gap:16px;align-items:center;margin-top:18px}.meter-row button{white-space:nowrap;font-size:13px}.input-meter{flex:1;min-width:80px;height:13px;border-radius:4px;background:var(--line);overflow:hidden}.input-meter span{display:block;width:0;height:100%;transition:width .1s linear;background:var(--ok)}.audio-input-controls #audio-level-label{min-height:32px;font-size:12px;line-height:1.4}
.analysis-wait{padding:36px;border:1px solid var(--line);border-radius:22px;background:var(--pale);margin:24px 0}.analysis-wait h2{font-size:32px;margin:15px 0}.analysis-wait p{line-height:1.6;margin:14px 0}.analysis-wait .answer-actions{align-items:center;gap:20px;flex-wrap:wrap}.story-summary .summary-text{font-size:24px;line-height:1.5;font-weight:600;margin:25px 0}.tidbit-heading{margin-top:45px}.tidbit-list{display:grid;gap:22px}.tidbit-number{font-size:12px;letter-spacing:2px;color:var(--blue);font-weight:700}.tidbit-why{margin-top:22px;font-size:14px}.tidbit-why strong{display:block;margin-bottom:6px}.content-seed{background:var(--pale);border-radius:12px;padding:23px;margin-top:25px}.content-seed .edition{margin:0;font-size:11px}.content-seed>p{font-size:22px;line-height:1.5;margin-top:8px}.source-proof{margin-top:18px;font-size:13px}.source-proof summary{cursor:pointer;color:var(--blue)}.source-proof blockquote{margin-top:13px;line-height:1.7;border-left:3px solid var(--line);padding-left:17px;color:var(--muted)}.story-followup{padding:28px 0;margin:12px 0}.story-followup h2{font-size:25px;line-height:1.5;margin-top:8px}.reveal .original-transcript{margin:24px 0}.evidence .back-link{display:inline-block;margin:12px 0 0;color:var(--blue)}.evidence p{line-height:1.6}.setup-page>.edition{margin-top:34px}
@media(max-width:650px){.meter-row{gap:10px}.audio-input-row{flex-wrap:wrap}.story-summary .summary-text{font-size:23px}.content-seed{padding:18px}.content-seed>p{font-size:20px}.analysis-wait{padding:24px}.analysis-wait h2{font-size:26px}}
.audio-input-controls{margin:0 0 20px}.audio-input-row{display:flex;align-items:center;gap:12px}.audio-input-row select{flex:1;min-width:0;font-size:13px}.audio-input-row button{font-size:12px;flex-shrink:0}.audio-input-controls .micro{margin-top:9px}.retake-notice{padding:16px 18px;background:var(--note);border-radius:12px;margin-bottom:20px;font-size:13px;line-height:1.5}.retake-notice p{margin:6px 0 10px}.clip-actions{flex-wrap:wrap}.clip-actions>.micro{flex-basis:100%}
.transcription-info{background:var(--pale);padding:15px 17px;border-radius:12px;margin:18px 0;font-size:13px;line-height:1.55}.transcription-info strong{display:block;margin-bottom:5px}.transcription-info p+p{margin-top:9px}.transcription-info a{color:var(--blue);font-weight:600}.original-transcript{border:1px solid var(--line);padding:14px;border-radius:12px;margin:12px 0;font-size:13px;line-height:1.6}.original-transcript summary{cursor:pointer;font-weight:bold}.original-transcript p{white-space:pre-wrap;margin:12px 0}.setup-page{max-width:660px;margin:55px auto;padding:0 25px}.setup-page h1{font-size:52px;line-height:1.05;letter-spacing:-2px}.setup-form{margin:30px 0;padding:25px;background:var(--pale);border:1px solid var(--line);border-radius:20px}.setup-form .button{margin-top:18px}.setup-form .micro{margin-top:12px}.setup-form a{color:var(--blue)}.setup-form a.button{color:var(--ink)}
.clip-actions{display:flex;align-items:center;gap:15px;margin-bottom:15px}.clip-actions .button{flex-shrink:0}
@media(max-width:650px){.clip-actions{align-items:flex-start}.clip-actions .micro{font-size:11px}}
/* The four colors are memory categories, shared by the deck and story archive. */
.journal-hero{display:grid;grid-template-columns:1.2fr 1fr;gap:var(--s8);align-items:center;padding:var(--s8) 0}.journal-kicker{color:var(--blue);font-size:15px;font-weight:700;margin-bottom:19px}.journal-hero h1{font-size:clamp(54px,4.8vw,68px);line-height:1.02}.journal-hero h1 span{display:block}.journal-hero .intro{max-width:455px}.journal-hero .micro{margin-top:var(--s4)}.resume-link{display:block;background:none;padding:var(--s3) 0;min-height:44px;margin-top:var(--s3);color:var(--blue);font-size:var(--t-sm);text-decoration:underline;text-underline-offset:4px;text-align:left}.memory-deck{position:relative;margin:var(--s4) var(--s4) var(--s4) 0;transform:rotate(3deg);max-width:400px;width:100%;justify-self:end}.memory-tab{position:relative;background:var(--group);border:1.5px solid var(--ink);border-radius:16px 16px 0 0;padding:var(--s3) var(--s5) var(--s5);font-weight:700;margin-bottom:calc(var(--s2) * -1)}.memory-tab:nth-child(1){transform:translateX(-20px) rotate(-5deg)}.memory-tab:nth-child(2){transform:translateX(-7px) rotate(-2deg)}.memory-tab:nth-child(3){transform:translateX(5px) rotate(1deg)}.memory-front{position:relative;border:1.5px solid var(--ink);border-radius:16px 16px 25px 25px;background:var(--group);padding:var(--s5);box-shadow:var(--lift) var(--ink)}.memory-front>span{font-size:var(--t-sm)}.memory-front>span:first-child{font-weight:700;font-size:var(--t-md)}.memory-front .memory-q{font-family:var(--display);font-size:var(--t-2xl);font-weight:700;line-height:1.13;letter-spacing:-.0375em;margin:var(--s6) 0;text-wrap:balance}.journal-rhythm{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--s7);padding:var(--s5) 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.journal-rhythm strong{font-size:var(--t-lg)}.journal-rhythm p{font-size:var(--t-sm);color:var(--muted);margin-top:var(--s2);max-width:290px}.home-bank{display:flex;align-items:center;justify-content:space-between;gap:var(--s6);margin:var(--s7) 0 var(--s4)}.home-bank h2{font-size:var(--t-xl)}.home-bank p{color:var(--muted);font-size:var(--t-sm);margin-top:var(--s2)}.home-bank .back-link{white-space:nowrap;color:var(--blue);min-height:44px;font-size:var(--t-sm)}
.picker{padding:22px 0 40px}.picker-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:35px;margin:25px 0 36px}.picker-heading h1{font-size:clamp(40px,5vw,62px)}.picker-heading>p{font-size:15px;color:var(--muted);padding-bottom:4px;line-height:1.65}.picker-grid{display:grid;grid-template-columns:340px minmax(0,1fr);gap:75px;align-items:start}.dice-button{background:var(--ink);color:white;display:flex;align-items:center;text-align:left;gap:21px;border-radius:20px;padding:22px;width:100%}.dice-button strong{display:block;font-size:22px}.dice-button small{display:block;font-size:12px;color:var(--on-ink);margin-top:5px}.color-die{display:grid;grid-template-columns:1fr 1fr;width:63px;height:63px;flex-shrink:0;border:3px solid white;background:white;gap:3px;border-radius:12px;transform:rotate(-10deg);overflow:hidden;box-shadow:3px 4px 0 color-mix(in srgb,var(--white) 31%,transparent)}.color-die i:nth-child(1){background:var(--hardway)}.color-die i:nth-child(2){background:var(--room)}.color-die i:nth-child(3){background:var(--how)}.color-die i:nth-child(4){background:var(--offclock)}.rolling .color-die{animation:dice-roll .65s ease-in-out}.picker-or{margin:27px 0 15px;font-size:13px;color:var(--muted)}.color-options{display:grid;gap:9px}.color-choice{display:flex;align-items:center;gap:14px;padding:14px 15px;border:1px solid var(--line);border-radius:12px;background:white;text-align:left}.color-choice:hover,.color-choice[aria-pressed=true]{border-color:var(--ink);background:color-mix(in srgb,var(--group) 30%,white)}.color-mark{display:block;width:29px;height:35px;border:1px solid var(--ink);border-radius:5px;background:var(--group);transform:rotate(-7deg);flex-shrink:0}.color-choice strong{display:block;font-size:16px}.color-choice small{display:block;font-size:12px;color:var(--muted);margin-top:2px}.color-choice>span:last-child{margin-left:auto}.picker-controls>.text-button{margin-top:18px}.drawn-card,.card-back{min-height:424px;border:1.5px solid var(--ink);border-radius:25px;padding:33px;display:flex;flex-direction:column;background:var(--group);box-shadow:var(--lift) var(--ink)}.drawn-card h2{font-size:clamp(29px,3.3vw,43px);line-height:1.1;margin:42px 0 25px;letter-spacing:-1.4px}.card-hint{font-size:15px;line-height:1.6;max-width:440px}.card-caption{font-size:12px;margin-top:auto;padding-top:25px}.card-back{background:var(--blue);color:white;align-items:center;justify-content:center;text-align:center}.card-back-symbol{font-family:var(--display);font-size:100px;line-height:1.05;color:var(--yellow);transform:rotate(-9deg)}.card-back h2{font-size:36px;margin:19px 0}.card-back p{font-size:14px;color:var(--on-blue);line-height:1.65}.drawn-actions{display:flex;align-items:center;gap:22px;margin-top:28px}.detour-link{display:inline-block;margin-top:19px}.journal-prompt{background:var(--group);color:var(--ink)}.journal-prompt .constraint{background:color-mix(in srgb,var(--white) 40%,transparent);color:var(--ink)}.journal-prompt .constraint span{color:var(--muted)}.journal-prompt h2{font-size:37px}.story-context{margin-top:23px}.story-context .field-label:not(:first-child){margin-top:20px}.story-context .input{font-size:14px}.detour-origin{margin-top:15px}.story-detail{max-width:920px;margin:25px auto 0}.story-detail-heading{margin:30px 0}.group-pill{display:inline-block;background:var(--group);padding:4px 11px;border-radius:6px;font-size:12px;color:var(--ink)}.story-detail-heading>.micro{margin:14px 0}.story-detail-heading h1{font-size:clamp(35px,4.8vw,58px);line-height:1.1;max-width:820px;margin:17px 0}.story-detail-heading>p:last-child{font-size:15px;color:var(--muted);max-width:650px}.story-detail .analysis-wait{margin:30px 0}.story-edit .field-label{margin-top:18px}.story-edit .button{margin-top:15px}.story-edit textarea{min-height:200px}.story-edit .micro{margin-top:12px}.story-detail .reveal-actions{margin-top:35px;flex-wrap:wrap}.story-detail .saved-media{max-width:600px}.story-bank{padding:35px 0}.bank-heading{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:35px}.bank-heading h1{font-size:clamp(48px,6vw,76px)}.bank-heading p:last-child{font-size:15px;color:var(--muted);margin-top:15px}.bank-tools{display:grid;grid-template-columns:2fr 1fr 1fr;gap:15px;padding:24px 0;border-top:1px solid var(--line)}.bank-tools label>span{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}.bank-tools .input{font-size:14px;min-height:44px}.bank-empty{padding:65px 0;text-align:center}.bank-empty h2{font-size:30px}.bank-empty p{margin-top:15px;color:var(--muted)}.bank-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:28px 0 15px}.bank-export{display:flex;gap:25px}.draft-shelf{background:var(--pale);border-radius:12px;padding:15px 20px;margin-bottom:24px;font-size:14px}.draft-shelf summary{cursor:pointer}.draft-resume{display:flex;justify-content:space-between;gap:20px;width:100%;background:none;text-align:left;border-top:1px solid var(--line);padding:13px 0;color:var(--blue)}.draft-resume:first-of-type{margin-top:15px}.analysis-wait .edition:before,.story-followup .edition:before,.content-seed .edition:before{display:none}.analysis-wait .edition,.story-followup .edition,.content-seed .edition{letter-spacing:0;text-transform:none}
@keyframes dice-roll{0%{transform:rotate(-10deg)}35%{transform:rotate(130deg) scale(.8)}70%{transform:rotate(290deg) scale(1.12)}100%{transform:rotate(350deg)}}
/* The landing deck is a button. A tap sends the front card to the back and the one behind it comes forward (app.js drawHomeCard); "Tell this one" under it starts a story on that card.
   The first time a tab opens the page, the cards are dealt in back to front, once. */
button.memory-deck{display:block;background:none;padding:0;text-align:left;touch-action:manipulation}.memory-cards,.memory-tab,.memory-front,.memory-front>span{display:block}.memory-front{transition:scale 150ms ease-out,translate 150ms ease-out}button.memory-deck:active .memory-front{scale:.98}button.memory-deck:focus-visible{outline:none}button.memory-deck:focus-visible .memory-front{outline:3px solid var(--blue);outline-offset:5px}@media(hover:hover) and (pointer:fine){button.memory-deck:hover .memory-front{translate:0 -3px}}.memory-deck.deal .memory-cards>*{animation:deal-in 420ms cubic-bezier(.23,1,.32,1) backwards}.memory-deck.deal .memory-cards>:nth-child(2){animation-delay:90ms}.memory-deck.deal .memory-cards>:nth-child(3){animation-delay:180ms}.memory-deck.deal .memory-cards>:nth-child(4){animation-delay:300ms}@keyframes deal-in{from{opacity:0;translate:0 -28px;rotate:-6deg}to{opacity:1;translate:0 0;rotate:0deg}}.home-deck{justify-self:end;width:100%;max-width:400px}.tell-drawn{display:block;position:relative;left:calc(var(--s4) / -2);margin:var(--s3) auto 0;min-height:44px;padding:var(--s3) var(--s4);background:none;color:var(--blue);font-size:var(--t-sm);text-decoration:underline;text-underline-offset:4px;visibility:hidden;opacity:0;transition:opacity 200ms ease-out,visibility 200ms}.tell-drawn.shown{visibility:visible;opacity:1}@media(max-width:950px){.home-deck{max-width:330px}}@media(max-width:650px){.home-deck{justify-self:center;max-width:290px}.tell-drawn{left:0}}.journal-hero .intro,.hero-use,.journal-rhythm p,.home-bank p{text-wrap:pretty}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:950px){.journal-hero{gap:var(--s6)}.memory-deck{max-width:330px}.memory-front .memory-q{font-size:var(--t-xl)}.picker-grid{gap:35px;grid-template-columns:290px minmax(0,1fr)}.drawn-card,.card-back{padding:27px}.drawn-card h2{font-size:34px}}
@media(max-width:650px){.journal-hero{grid-template-columns:1fr;padding:var(--s5) 0 var(--s6);gap:var(--s5)}.journal-hero .intro{font-size:var(--t-md);margin-top:var(--s4)}.journal-hero .hero-actions{gap:var(--s3)}.journal-hero .button{padding:var(--s3) var(--s4);font-size:var(--t-sm)}.memory-deck{justify-self:center;margin:var(--s5) 0 var(--s2);max-width:290px}.memory-tab{padding:var(--s2) var(--s4) var(--s4);font-size:var(--t-sm)}.memory-front>span:first-child{font-size:var(--t-sm)}.memory-front .memory-q{font-size:var(--t-xl);margin:var(--s5) 0}.journal-rhythm{grid-template-columns:1fr;gap:var(--s5)}.journal-rhythm p{max-width:none}.home-bank{flex-direction:column;align-items:flex-start;gap:var(--s4)}.picker-heading{display:block;margin-top:22px}.picker-heading h1{font-size:42px}.picker-heading>p{margin-top:18px;font-size:14px}.picker-grid{grid-template-columns:1fr;gap:25px}.color-options{grid-template-columns:1fr 1fr;gap:8px}.color-choice{padding:12px 10px;gap:9px}.color-choice strong{font-size:13px}.color-choice small{font-size:10px}.color-choice>span:last-child{display:none}.color-mark{width:20px;height:27px}.picker-controls>.text-button{margin-top:14px}.dice-button{padding:17px;gap:19px}.color-die{width:50px;height:50px}.dice-button strong{font-size:21px}.picker-or{margin-top:19px}.drawn-card,.card-back{min-height:355px;padding:26px;box-shadow:var(--lift-sm) var(--ink);border-radius:20px}.drawn-card h2{font-size:32px;margin-top:34px}.drawn-card .card-top{font-size:11px}.drawn-actions{gap:17px;flex-wrap:wrap}.drawn-actions .text-button{font-size:13px}.card-back h2{font-size:32px}.journal-prompt h2{font-size:32px}.story-context{margin-bottom:25px}.story-detail-heading h1{font-size:36px}.story-detail .analysis-wait h2{font-size:27px}.story-detail .reveal-actions{align-items:flex-start;gap:16px}.bank-heading{align-items:flex-start;flex-direction:column;gap:21px}.bank-heading h1{font-size:50px}.bank-tools{grid-template-columns:1fr 1fr;gap:13px}.bank-search{grid-column:1/-1}.bank-bottom{flex-direction:column;align-items:flex-start;gap:12px}.bank-export{gap:18px;flex-wrap:wrap}.bank-export .text-button{font-size:12px}.story-detail .content-seed>p{font-size:19px}}
@media(prefers-reduced-motion:reduce){.rolling .color-die{animation:none}.memory-deck,.memory-tab{transform:none}.memory-deck.deal .memory-cards>*{animation:none}.memory-front{transition:none}.tell-drawn{transition:none}}

/* Daily practice puts one memory card and one clear action at the center. */
.storage-disclosure{margin-top:var(--s2);max-width:510px;font-size:var(--t-sm);color:var(--muted);line-height:1.6}.storage-disclosure summary{cursor:pointer;color:var(--blue);font-weight:700;padding:var(--s3) 0;min-height:44px}.storage-disclosure p{margin:0 0 var(--s3)}.daily-round{grid-template-columns:minmax(330px,.9fr) minmax(0,1.1fr);align-items:stretch}.prompt-card.journal-prompt.daily-card{min-height:420px;padding:31px 32px;box-shadow:var(--lift) var(--ink)}.daily-card h2{font-size:clamp(31px,3.6vw,48px);margin:45px 0 18px}.daily-card-invite{font-size:16px;font-weight:700}.daily-card .prompt-help{margin-top:auto}.timer-track{height:10px;background:var(--line);border-radius:99px;overflow:hidden;margin:0 0 6px}.timer-track span{display:block;height:100%;background:var(--blue);border-radius:inherit;transition:width .2s linear}.timer-label{margin-bottom:22px}.discard-draft{margin-top:16px}.practice-progress{margin-top:15px;color:var(--muted);font-size:14px}.practice-progress strong{color:var(--ink)}.result-title{font-size:clamp(27px,3.8vw,38px);margin-bottom:17px}.content-details{margin-top:28px;border-top:1px solid var(--line);padding-top:18px}.content-details>summary{cursor:pointer;color:var(--blue);font-weight:700}.next-day-note{margin-top:-17px}.story-detail .content-details .edition{margin-bottom:12px}
@media(max-width:650px){.daily-round{grid-template-columns:1fr}.prompt-card.journal-prompt.daily-card{min-height:320px;padding:22px;box-shadow:var(--lift-sm) var(--ink)}.daily-card h2{font-size:29px;margin:30px 0 15px}.timer-track{height:8px}}


.record-stop-label{display:none}

/* A quiet, full-viewport card for someone filming their story. */
body:has(.recording-stage){overflow:hidden}
body:has(.recording-stage)>.site-header,
body:has(.recording-stage)>.site-footer,
body:has(.recording-stage)>#demo-banner{display:none}
#app.recording-stage{position:fixed;inset:0;z-index:20;max-width:none;min-height:0;margin:0;padding:clamp(16px,3vw,40px);padding-bottom:max(16px,env(safe-area-inset-bottom));overflow:auto;background:var(--white)}
.recording-stage .round-header,
.recording-stage .inline-card-actions,
.recording-stage .detour-origin,
.recording-stage .prompt-help,
.recording-stage .round-context,
.recording-stage .discard-draft,
.recording-stage .daily-round>.micro,
.recording-stage .timer-copy,
.recording-stage .timer-track,
.recording-stage .timer-label,
.recording-stage .transcription-info,
.recording-stage .audio-input-controls,
.recording-stage .retake-notice,
.recording-stage #record-title,
.recording-stage #record-caption{display:none}
#app.recording-stage .daily-round{display:flex;flex-direction:column;gap:24px;min-height:100%;max-width:1440px;margin:0 auto}
.recording-stage .prompt-column{display:flex;flex:1}
#app.recording-stage .daily-card{width:100%;min-height:0;padding:clamp(24px,5vw,72px);border-radius:24px;box-shadow:var(--lift) var(--ink);justify-content:space-between;gap:clamp(24px,5vh,56px)}
.recording-stage .daily-card .card-top{font-size:clamp(12px,1.4vw,18px);gap:20px}
#app.recording-stage .daily-card h2{font-size:clamp(34px,min(6.6vw,10vh),96px);line-height:1.08;letter-spacing:-.045em;max-width:19ch;margin:auto 0;overflow-wrap:break-word;text-wrap:balance}
.recording-stage .daily-card-invite{font-size:clamp(14px,1.7vw,22px);display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.recording-stage .daily-card-invite:after{content:'backstory';font-family:var(--display);font-weight:800;letter-spacing:-.04em}
#app.recording-stage .answer-panel{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0;margin:0}
.recording-stage .timer-area{margin:0}
.recording-stage .timer-number{font-size:36px;letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:var(--ink)}
.recording-stage .timer-number small{font-size:12px}
.recording-stage .record-zone{padding:0;border:0}
.recording-stage .mic-button{width:auto;min-height:52px;height:auto;padding:14px 22px;margin:0;display:flex;gap:12px;border-radius:12px;background:var(--ink);color:white;animation:none}
.recording-stage .mic-button:hover{background:var(--blue)}
.recording-stage .mic-button svg{width:18px;height:18px;color:var(--coral)}
.recording-stage .record-stop-label{display:inline;font-size:14px;font-weight:700}
.recording-stage #record-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-height:500px) and (min-width:651px){
  #app.recording-stage{padding:14px}
  #app.recording-stage .daily-round{gap:16px}
  #app.recording-stage .daily-card{padding:18px 28px;gap:14px}
  #app.recording-stage .daily-card h2{font-size:clamp(24px,6vh,36px);max-width:32ch}
}
@media(max-width:650px){
  #app.recording-stage .daily-round{gap:20px}
  #app.recording-stage .daily-card{border-radius:18px;box-shadow:var(--lift-sm) var(--ink);padding:26px 22px}
  #app.recording-stage .daily-card h2{font-size:clamp(32px,8.8vw,55px)}
  .recording-stage .card-top{align-items:flex-start}
  .recording-stage .card-top span:last-child{text-align:right}
  .recording-stage .timer-number{font-size:30px}
  .recording-stage .mic-button{padding:14px 16px}
}

/* Journal flow: keep the prompt present, then get out of the camera's way. */
.round-grid{grid-template-columns:minmax(280px,.76fr) minmax(0,1.24fr);gap:34px 48px}
.prompt-card.journal-prompt.compact{min-height:260px;padding:24px 26px;border-radius:18px}
.prompt-card.journal-prompt.compact h2{font-size:clamp(25px,2.5vw,34px);line-height:1.12;margin:27px 0 22px}
.prompt-help{margin-top:auto;border-top:1px solid color-mix(in srgb,var(--ink) 22%,transparent);padding-top:14px;font-size:13px}
.prompt-help summary,.round-context summary,.mic-settings summary,.transcription-info summary{cursor:pointer;font-weight:700}
.prompt-help p{margin-top:9px;line-height:1.55}
.inline-card-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px}
.inline-shuffle{display:flex;align-items:center;gap:11px;min-height:52px;padding:8px 14px;background:var(--ink);color:white;border-radius:13px;text-align:left;transition:transform .15s,background .15s}
.inline-shuffle:hover{background:color-mix(in srgb,var(--ink) 88%,var(--white))}
@media(hover:hover) and (pointer:fine){.inline-shuffle:hover{transform:translateY(-2px)}}
.inline-shuffle strong,.inline-shuffle small{display:block}
.inline-shuffle strong{font-size:14px}
.inline-shuffle small{margin-top:1px;color:var(--on-ink);font-size:10px}
.inline-die{display:grid;grid-template-columns:1fr 1fr;width:31px;height:31px;flex:0 0 auto;padding:2px;gap:2px;border-radius:7px;background:white;transform:rotate(-8deg);overflow:hidden}
.inline-die i:nth-child(1){background:var(--hardway)}
.inline-die i:nth-child(2){background:var(--room)}
.inline-die i:nth-child(3){background:var(--how)}
.inline-die i:nth-child(4){background:var(--offclock)}
.inline-shuffle.rolling .inline-die{animation:dice-roll .45s ease-in-out}
.round-context{grid-column:1/-1;max-width:620px;border-top:1px solid var(--line);padding:18px 0 0}
.round-context>summary{font-size:14px;color:var(--blue)}
.round-context>summary span{font-weight:400;color:var(--muted)}
.story-context-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;margin-top:18px}
.story-context-fields .field-label{margin:0;align-self:end}
.story-context-fields .input{grid-row:2}
.audio-input-controls{margin:0 0 14px}
.audio-input-controls .meter-row{margin:0}
.audio-input-controls #audio-level-label{min-height:0;margin-top:4px}
.mic-settings{margin-top:10px;border-top:1px solid var(--line);padding-top:9px;font-size:12px;color:var(--muted)}
.mic-settings .audio-input-row{margin-top:10px}
.transcription-info{background:transparent;border-top:1px solid var(--line);border-radius:0;padding:13px 0 0;margin:16px 0;font-size:12px}
.transcription-info summary{color:var(--muted)}
.transcription-info p{margin-top:9px}

.story-detail-heading{margin-bottom:22px}
.story-detail-heading h1{font-size:clamp(32px,4vw,50px);max-width:760px;margin-bottom:0}
.saved-badge{display:inline-block;margin-left:8px;color:var(--ok);font-size:12px;font-weight:700}
.story-recap{max-width:760px;padding:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.story-recap>p{white-space:pre-wrap;font-size:17px;line-height:1.75;max-width:68ch}
.story-media-actions{display:flex;align-items:center;gap:16px;margin-bottom:18px}
.completion-actions{justify-content:flex-start;margin:24px 0 30px}
.analysis-section{margin-top:38px}
.analysis-divider{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:12px}
.analysis-divider:after{content:'';height:1px;background:var(--line);flex:1}
.analysis-section .analysis-wait{background:transparent;border:0;border-radius:0;padding:0;margin:28px 0}
.analysis-section .analysis-wait h2{font-size:29px;margin:12px 0}
.analysis-section .analysis-wait>p{max-width:620px;color:var(--muted)}
.local-media-note{display:flex;flex-direction:column;gap:3px;margin:15px 0;padding:13px 15px;border-radius:10px;background:var(--note);font-size:12px;line-height:1.5}.local-media-note.compact{margin-top:14px}.local-media-note span{color:var(--muted)}
.story-treatment{border:1.5px solid var(--ink);border-radius:22px;padding:clamp(22px,4vw,36px);background:var(--blue);color:white;box-shadow:var(--lift) var(--yellow)}.story-treatment .summary-text{font-size:clamp(21px,3vw,28px);line-height:1.48;font-weight:600;margin:18px 0}.story-treatment .source{font-size:11px;color:var(--on-blue);margin-top:18px}.story-treatment .quote-label{font-size:12px;font-weight:700}.story-tags{display:flex;gap:8px;flex-wrap:wrap}.story-tag{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:5px 10px;background:white;color:var(--ink);font-size:11px;font-weight:700}.story-tag button{position:relative;background:transparent;padding:0;font-size:16px;line-height:1;color:var(--muted)}
/* The × is 9x16px. An invisible box around it brings the hit area to 44x44 without changing the chip. */
.story-tag button::after{content:'';position:absolute;inset:-14px -17.5px}.story-tag.static{border:1px solid var(--line);padding:4px 9px;font-weight:600}.tag-editor{margin-top:22px}.tag-add{display:flex;gap:8px;margin-top:12px;max-width:330px}
/* The global focus ring is blue. Inside the blue summary card it would sit on blue, so it is white here. */
.story-treatment :focus-visible{outline-color:var(--white)}
/* The × sits on a white chip, where a white ring would vanish. */
.story-treatment .story-tag button:focus-visible{outline-color:var(--blue);outline-offset:1px}.tag-add .input{min-height:39px;padding:8px 11px;font-size:12px}.tag-add .button{min-height:39px}.more-tidbits{margin-top:22px;border-top:1px solid var(--line);padding-top:18px}.more-tidbits>summary{cursor:pointer;color:var(--blue);font-weight:700}.more-tidbits .tidbit-list{margin-top:18px}.story-transcript{width:100%}.story-transcript summary{cursor:pointer;font-weight:700;color:var(--blue)}.story-transcript p{white-space:pre-wrap;font-size:16px;line-height:1.75;margin-top:18px}.bank-storage-note{margin-top:24px;padding:18px 20px;background:var(--note);border-radius:12px;font-size:13px}.bank-storage-note p{color:var(--muted);margin-top:5px;line-height:1.55}

@media(max-width:650px){
  .round-header{margin:14px 0 12px}
  .round-header .micro{display:none}
  .round-grid{grid-template-columns:1fr;gap:18px}
  .prompt-card.journal-prompt.compact{min-height:0;padding:18px 20px;border-radius:15px}
  .prompt-card.journal-prompt.compact h2{font-size:24px;margin:19px 0 15px;letter-spacing:-.03em}
  .prompt-help{padding-top:10px}
  .inline-card-actions{margin-top:13px;gap:10px}
  .inline-shuffle{min-height:48px;padding:7px 11px}
  .inline-shuffle small{display:none}
  .inline-die{width:28px;height:28px}
  .prompt-options{gap:12px}
  .answer-panel{margin-top:3px}
  .timer-area{margin-bottom:13px}
  .timer-number{font-size:55px}
  .audio-input-controls{margin-bottom:10px}
  .round-context{margin-top:8px}
  .story-context-fields{grid-template-columns:1fr}
  .story-context-fields .input{grid-row:auto}
  .story-context-fields .field-label:not(:first-child){margin-top:8px}
  .story-detail-heading{margin:23px 0 18px}
  .story-detail-heading h1{font-size:32px}
  .story-recap{padding:19px 0}
  .story-recap>p{font-size:16px;line-height:1.7}
  .story-media-actions{align-items:flex-start;flex-direction:column;gap:5px}
  .completion-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0 26px}
  .completion-actions .button{width:100%;padding-left:12px;padding-right:12px}
  .completion-actions .text-button{grid-column:1/-1;justify-self:start}
  .analysis-section{margin-top:32px}
  .analysis-section .analysis-wait{padding:0}
  .saved-badge{display:block;margin:8px 0 0}.story-treatment{border-radius:17px;box-shadow:var(--lift-sm) var(--yellow)}.tag-add{max-width:none}.story-recap{max-width:none}
}

/* Daily practice: the mic button owns the first screen; everything else is a quiet footnote list. */
#app:not(.timer-running) .timer-area,
#app:not(.timer-running) .timer-track,
#app:not(.timer-running) .timer-label{display:none}
.recording-stage .timer-track{display:block;position:fixed;top:0;left:0;right:0;height:4px;margin:0;border-radius:0;background:color-mix(in srgb,var(--coral) 20%,transparent);z-index:30}
.recording-stage .timer-track span{background:var(--coral);border-radius:0}
.recording-stage #record-warmth,.recording-stage .draft-danger{display:none}
#record-warmth{font-size:14px;color:var(--ink);margin:0 0 7px}
#record-caption{font-size:12px}
.audio-input-controls{margin:18px 0 0}
.audio-input-controls .meter-row{justify-content:space-between}
.audio-input-controls:not(.checking) .input-meter{display:none}
.transcription-info,.round-context,.draft-danger{border-top:1px solid var(--line);margin:0;padding:13px 0;font-size:13px}
.transcription-info{margin-top:20px}
.round-context>summary{font-size:13px}
.round-context[open]{padding-bottom:19px}
.draft-danger{grid-column:1/-1}
.daily-round{row-gap:0}
.daily-round .answer-panel{padding-bottom:0}
@media(min-width:651px){.round-context,.draft-danger{grid-column:2;max-width:none}}
.discard-draft{margin:0;padding:0;text-align:left;font-size:13px}
.draft-danger .micro{margin-top:4px}
/* Hero display type. The lines are not broken by hand: text-wrap:balance evens them out at whatever width there is. */
@media(max-width:650px){.journal-hero h1{font-size:clamp(34px,calc(12vw - 4px),54px)}}
/* The narrowest phones: the logo and both tabs need a little less room to share one line. After the 650px rules so it wins. */
@media(max-width:350px){.brand{gap:var(--s2);font-size:var(--t-md)}.nav-button{padding:var(--s2) var(--s1)}}
@media(max-width:650px){
  /* On a phone the card already says which practice this is; the button gets that space instead. */
  .round-header h1{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .round-header{margin:0 0 14px}
  .answer-panel{padding-top:18px}
  .record-zone{padding:19px 18px}
  .record-zone .mic-button{margin-bottom:12px}
  .transcription-info{margin-top:16px}
}

.hero-use{max-width:430px;font-size:var(--t-sm);color:var(--muted)}

/* ---- The bank: Stories | Angles, as a shelf ---- */
.bank-view-row{padding:6px 0 4px}
.view-toggle{display:inline-flex;background:var(--pale);border-radius:12px;padding:4px;gap:4px}
.view-toggle button{background:transparent;border-radius:9px;padding:10px 18px;font-size:14px;min-height:44px;color:var(--muted);display:flex;align-items:center;gap:7px}
.view-toggle button[aria-pressed=true]{background:var(--white);color:var(--ink);box-shadow:0 1px 3px color-mix(in srgb,var(--ink) 12%,transparent)}
.view-toggle b{font-weight:400;font-size:12px}
.result-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:26px}
.scope-chip{display:inline-flex;align-items:center;gap:9px;background:var(--pale);color:var(--ink);border-radius:999px;padding:7px 8px 7px 15px;font-size:13px}
.scope-chip button{position:relative;background:var(--white);border-radius:999px;width:26px;height:26px;display:grid;place-items:center;font-size:15px;color:var(--muted);line-height:1;padding:0}
/* The × is 26px. An invisible box brings the hit area to 44x44. */
.scope-chip button::after{content:'';position:absolute;inset:-9px}
.shelf{border-top:1px solid var(--line);margin-top:14px}
/* Three columns: content, provenance, action. The action column is a fixed width and its content is pushed to
   the right edge. Sized to `auto`, each row would size it to its own chip and shift the provenance column. */
.shelf-row{display:grid;grid-template-columns:minmax(0,1fr) 232px 112px;gap:28px;align-items:start;padding:28px 0;border-bottom:1px solid var(--line);transition:background .16s ease-out}
.shelf-row>.angle-chip,.shelf-row>.shelf-actions{justify-self:end}
.shelf-row:hover{background:color-mix(in srgb,var(--pale) 40%,var(--white))}
.shelf-angle,.shelf-title{font-family:var(--display);font-size:23px;line-height:1.25;letter-spacing:-.03em;margin:0 0 10px;max-width:34ch}
.shelf-title button{font:inherit;letter-spacing:inherit;background:none;padding:0;text-align:left}
.shelf-title button:hover{color:var(--blue)}
.shelf-hook,.shelf-summary{font-size:15px;line-height:1.62;color:var(--muted);margin:0;max-width:66ch}
.shelf-summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* 11px: the label is a real word, not decoration */
.hook-label{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.shelf-row .source-proof summary{display:flex;align-items:center;min-height:44px}
/* Provenance, in order of weight: the group as a pill, the story's own words, then the system's stamp. */
.shelf-meta{padding-top:4px;display:flex;flex-direction:column;align-items:flex-start;gap:11px}
.shelf-meta .when{font-family:var(--display);font-size:15px;line-height:1.35;color:var(--ink);letter-spacing:-.01em}
.shelf-meta .when button{font:inherit;letter-spacing:inherit;color:inherit;background:none;padding:0;text-align:left;text-decoration:underline;text-decoration-color:var(--field);text-underline-offset:3px}
.shelf-meta .when button:hover{color:var(--blue);text-decoration-color:currentColor}
.shelf-meta .stamp{font-size:12px;line-height:1.5;color:var(--muted);letter-spacing:.01em;font-variant-numeric:tabular-nums}
.shelf-meta .stamp .sep{opacity:.45;margin:0 5px}
.used-flag{font-size:11px;color:var(--ok);font-weight:700}
.shelf-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}
.no-angle-note{font-size:13px;color:var(--muted);background:var(--pale);border-radius:10px;padding:11px 14px;margin-top:12px;line-height:1.55}
/* The bridge between the views: how many angles a story holds. */
.angle-chip{display:inline-flex;align-items:center;gap:7px;background:var(--pale);color:var(--blue);border:1px solid var(--pale-line);border-radius:999px;padding:9px 16px;font-size:12px;font-weight:700;min-height:44px;white-space:nowrap;transition:background .16s ease-out,border-color .16s ease-out}
.angle-chip:hover{background:var(--pale-hover);border-color:var(--blue-soft)}
.angle-chip.none{background:transparent;border-color:var(--line);color:var(--muted);font-weight:400}
.copy-hook{background:transparent;border:1px solid var(--line);border-radius:9px;padding:9px 14px;font-size:13px;color:var(--blue);font-weight:700;min-height:44px;white-space:nowrap;transition:background .16s ease-out,border-color .16s ease-out,color .16s ease-out}
.copy-hook:hover{border-color:var(--blue);background:var(--pale)}
.copy-hook.done{border-color:var(--ok);color:var(--ok);background:var(--ok-wash)}
@media(max-width:850px){
  .shelf-row{grid-template-columns:1fr;gap:16px}
  /* line 1: the pill and the saved stamp. line 2: the story's own words, full width. */
  .shelf-meta{flex-flow:row wrap;align-items:center;gap:9px 12px;padding-top:0}
  .shelf-meta .group-pill{order:1}
  .shelf-meta .stamp{order:2;margin-left:auto}
  .shelf-meta .when{order:3;flex:0 0 100%;font-size:14px}
  .shelf-row>.angle-chip,.shelf-row>.shelf-actions{justify-self:start}
}
/* ---- Bank empty and no-match states ---- */
.bank-empty-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:28px}
.bank-empty p{max-width:52ch;margin-left:auto;margin-right:auto}
.bank-clear{min-height:44px;padding:0 4px}
/* ---- Bank export: long labels have to wrap on a phone ---- */
.bank-bottom{flex-wrap:wrap}
.bank-export{flex-wrap:wrap;gap:10px 25px}
.export-note{max-width:62ch;margin-top:2px}
.bank-bottom .text-button{min-height:44px}
/* ---- Story screen: the used switch beside the title, copy on each angle ---- */
.story-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px}
.story-detail-heading .story-title-row h1{margin-bottom:0}
.used-toggle{border:1px solid var(--line);border-radius:999px;background:var(--white);color:var(--muted);padding:9px 16px;font-size:13px;min-height:44px;white-space:nowrap;transition:background .16s ease-out,border-color .16s ease-out,color .16s ease-out}
.used-toggle:hover{border-color:var(--muted);color:var(--ink)}
.used-toggle[aria-pressed=true]{background:var(--ok-wash);border-color:var(--ok);color:var(--ok)}
.angle-actions{margin-top:14px}
.copy-story-row{margin-top:26px}
.copy-story{min-height:44px}
/* ---- One angle block, used for every angle on the story screen ---- */
.angle{position:relative;margin-top:26px;border:1px solid var(--line);border-radius:20px;padding:clamp(22px,4vw,32px)}
.tidbit-list .angle{margin-top:0}
.angle h2{font-size:clamp(24px,3.4vw,32px);margin:10px 0 14px}
.angle>p,.tidbit-why p{line-height:1.7;color:var(--muted)}
.angle .content-seed h3{font-size:21px;line-height:1.4;margin:9px 0 12px}
.content-seed .hook-label{margin:0}
.angle .source-proof summary{display:flex;align-items:center;min-height:44px}
/* ---- "Already used" is a mark on each angle ---- */
.angle-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.shelf-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
/* Beside the story title: how many angles are used. Not a control, so no border. */
.used-summary{display:inline-flex;align-items:center;min-height:44px;background:var(--ok-wash);color:var(--ok);border-radius:999px;padding:9px 16px;font-size:13px;font-weight:700;white-space:nowrap}
/* After the base rule above, so it wins on a phone: the two buttons sit side by side and wrap if they must. */
@media(max-width:850px){.shelf-actions{flex-direction:row;flex-wrap:wrap;align-items:center}}
/* ---- A draft in the bank's search: plainly unfinished, never a saved story ---- */
.shelf-row.draft-row{background:color-mix(in srgb,var(--note) 30%,var(--white));border-bottom:1px dashed var(--note-line)}
.shelf-row.draft-row:hover{background:color-mix(in srgb,var(--note) 60%,var(--white))}
.draft-flag{display:inline-block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--note-ink);background:var(--note);border-radius:6px;padding:4px 9px;margin-bottom:10px}
