:root{color-scheme:dark;--cream:#f6e5c1;--gold:#dfb76d;--ink:#2d2c2a;--wine:#793846;font-family:system-ui,-apple-system,sans-serif}
*{box-sizing:border-box}
[hidden]{display:none!important}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
button{font:inherit;cursor:pointer;touch-action:manipulation}
button:focus-visible{outline:3px solid #f6df9e;outline-offset:5px}
button:disabled{opacity:.5;cursor:wait}
#game:focus{outline:none}
#ui{position:fixed;inset:0;pointer-events:none;color:var(--cream)}
#ui button{pointer-events:auto}
#ui a{pointer-events:auto}
.eyebrow{font-size:10px;font-weight:700;letter-spacing:.20em;color:var(--gold);margin:0 0 20px;line-height:1.7}
.primary,.secondary{border:0;border-radius:5px;min-height:50px;padding:14px 20px;font-weight:700;font-size:14px;text-align:left}
.primary{background:#dbb474;color:#2f2b28;display:flex;align-items:center;justify-content:space-between;gap:24px}
.primary span{font-size:20px;font-weight:400}
.primary:hover{background:#e8c88e}
.secondary{background:rgba(222,205,170,.10);box-shadow:inset 0 0 0 1px rgba(242,224,189,.25);color:#ead9ba}
.secondary:hover{background:rgba(222,205,170,.18)}
.hud{position:absolute;left:22px;right:22px;top:max(18px,env(safe-area-inset-top));display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.hud-left{display:flex;gap:18px;align-items:center;flex-wrap:wrap;min-height:44px;background:rgba(29,32,37,.82);padding:10px 16px;border-radius:5px;box-shadow:0 3px 20px rgba(0,0,0,.10);font-size:12px;font-weight:500}
.floor-label{font-size:10px;letter-spacing:.1em;color:#e6c68d;font-weight:700}.hud-separator{height:14px;width:1px;background:#75766e}
#hud-time{font-variant-numeric:tabular-nums;color:#f3e6ce}#hud-damage{font-variant-numeric:tabular-nums;color:#d6c7ac}#hud-open{color:#f0b58c;font-size:11px}
#pause-button{border:0;border-radius:5px;width:44px;height:44px;background:rgba(29,32,37,.82);font-size:20px;line-height:1;color:#e5d7bf}
.play-hint{position:absolute;bottom:max(16px,env(safe-area-inset-bottom));left:22px;right:22px;display:flex;justify-content:space-between;gap:20px;font-size:10px;color:#d8cbb3;text-shadow:0 1px 4px #14202d}
.play-hint b{margin-left:8px;color:#f9e8c7}
.coach{position:absolute;left:50%;bottom:62px;transform:translateX(-50%);width:max-content;max-width:min(390px,calc(100% - 28px));display:flex;align-items:center;gap:14px;padding:13px 17px;background:rgba(28,33,39,.92);border-radius:5px;box-shadow:0 4px 22px rgba(0,0,0,.12)}
.coach-key{display:flex;flex-shrink:0;align-items:center;justify-content:center;min-width:34px;min-height:34px;padding:4px 8px;color:#ead1a0;background:rgba(226,204,163,.12);border-radius:4px;font-size:13px;font-weight:700}
.coach strong{font-size:12px;font-weight:600;color:#f0dfc0}.coach p{margin:4px 0 0;font-size:11px;line-height:1.5;color:#c3bbab}
body[data-touch="true"] .coach{bottom:26px;max-width:330px}
@media(max-aspect-ratio:1/1){body[data-touch="true"] .coach{bottom:155px;max-width:calc(100% - 32px)}.coach{max-width:calc(100% - 32px);bottom:72px}}
.modal-backdrop{position:absolute;inset:0;background:rgba(18,25,35,.65);display:flex;align-items:center;justify-content:center;padding:24px;pointer-events:auto;backdrop-filter:blur(5px)}
.paper-panel{color:#4d3e33;background:#eddfbd url('assets/plaster.webp') center/cover;padding:34px;box-shadow:0 15px 60px rgba(0,0,0,.25);max-width:440px;width:100%;position:relative;border-radius:3px;max-height:calc(100% - 24px);overflow:auto}
.paper-panel:before{content:'';position:absolute;inset:0;background:rgba(246,235,208,.80);pointer-events:none}.paper-panel>*{position:relative}
.paper-panel .eyebrow{color:#8a6150;font-size:9px;margin-bottom:12px}.paper-panel h2{font:400 46px/.95 Georgia,serif;letter-spacing:-.04em;margin:0 0 15px}.paper-panel p{font-size:13px;line-height:1.6}.paper-panel .primary{width:100%;margin-top:26px;background:#713f42;color:#fae9c9}.paper-panel .primary:hover{background:#8b4d50}
.text-button{border:0;background:transparent;color:#6d5d4a;display:block;margin:16px auto 0;font-size:12px;min-height:44px}
.stars{color:#96602f;font-size:26px;letter-spacing:.2em;margin:20px 0}.result-panel h3{font:italic 400 23px Georgia,serif;border-top:1px dashed #af9878;padding-top:22px;margin:20px 0 14px}.result-panel dl{font-size:12px;margin:0}.result-panel dl div{display:flex;justify-content:space-between;gap:16px;margin:13px 0}.result-panel dt{color:#786655}.result-panel dd{font-weight:700;margin:0}
@media(max-width:760px){.eyebrow{font-size:9px}.hud{left:12px;right:12px;top:12px}.hud-left{font-size:11px;gap:12px;padding:10px 12px}.play-hint{font-size:10px;left:12px;right:12px;flex-wrap:wrap;gap:8px}}
@media(max-aspect-ratio:1/1){.primary,.secondary{padding:12px 14px;font-size:12px}.paper-panel{padding:26px}.paper-panel h2{font-size:40px}}
@media(max-height:540px){.paper-panel{padding:22px}.paper-panel h2{font-size:34px}.stars{font-size:20px;margin:10px 0}.result-panel h3{margin:10px 0;padding-top:12px}.result-panel dl div{margin:7px 0}.paper-panel .primary{margin-top:14px}.play-hint{bottom:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
.result-panel{max-width:820px;display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,1fr);gap:32px;align-items:center}
.result-details{min-width:0}.memory-preview{margin:0;min-width:0;transform:rotate(-1.5deg)}
.memory-preview img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:contain;box-shadow:0 6px 22px rgba(64,48,38,.20)}
.memory-preview figcaption{text-align:center;font:italic 13px Georgia,serif;color:#89705a;margin-top:15px}
.save-card{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;margin-top:22px;padding:12px 14px;border:1px solid #ad9372;border-radius:4px;color:#684b41;font-size:12px;font-weight:600;text-decoration:none}
.save-card:hover{background:rgba(138,105,76,.10)}.save-card:focus-visible{outline:3px solid #8a554c;outline-offset:4px}
#card-status{font-size:11px;color:#87574b;margin:8px 0 0}#card-status:empty{display:none}
@media(max-width:650px){.result-panel{display:block;max-width:400px}.memory-preview{max-width:210px;margin:0 auto 26px}.memory-preview figcaption{margin-top:10px;font-size:11px}.result-panel .eyebrow{margin-bottom:10px}}
@media(max-height:540px) and (min-width:651px){.result-panel{grid-template-columns:minmax(0,.85fr) minmax(280px,1fr);gap:24px;padding:20px}.memory-preview{max-width:245px;margin:auto}.memory-preview figcaption{font-size:11px;margin-top:8px}.save-card{margin-top:12px;min-height:44px}.result-panel .stars{margin:10px 0}}
/* Four missions per group keep selection compact on small screens. */
.mission-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;max-width:380px;margin:0 0 10px}
.mission-switch button{min-height:38px;padding:8px 11px;border:1px solid #7e796a;border-radius:4px;background:rgba(20,29,37,.42);color:#d1c6b0;text-align:left;font-size:11px}
.mission-switch button[aria-pressed=true]{background:#d9b472;color:#2e2b26;border-color:#d9b472;font-weight:700}
.mission-description{font-size:11px;line-height:1.55;color:#c8c0af;max-width:375px;margin:0 0 5px;min-height:34px}.mission-goal{color:#e1c48f;font-size:10px;margin:0 0 10px}
.goal-label{font-size:10px;color:#ddcda5}.hud-left{max-width:calc(100% - 55px);gap:12px}
#result-mission{font-size:12px;color:#805a42;margin:12px 0}.result-details #again-button{color:#725d49;width:100%;text-align:center;display:block;margin-top:6px}
@media(max-width:760px){.hud-left{gap:8px}#hud-mission{width:100%;font-size:10px}}
@media(max-aspect-ratio:1/1){.mission-switch{max-width:none}.mission-description{min-height:32px}.mission-switch button{min-height:36px}}
@media(max-height:540px){.mission-switch{gap:4px;margin-bottom:5px}.mission-switch button{min-height:30px;padding:5px 8px;font-size:10px}.mission-description{font-size:10px;min-height:0;margin-bottom:3px}.mission-goal{margin-bottom:4px;font-size:9px}}
/* The moving ledger keeps a separate stamp for each job and item. */
.progress-total{font-size:10px;letter-spacing:.06em;color:#dfbc80;margin:0 0 9px}.mission-name{display:block}.mission-mark{display:block;margin-top:5px;font-size:9px;font-weight:400;color:#9caaad;letter-spacing:.01em}.mission-mark[data-done=true]{color:#e7c68c}.mission-switch button[aria-pressed=true] .mission-mark{color:#69543b}
.selected-record{font-size:10px;line-height:1.5;color:#cbbd9f;min-height:15px;margin:0 0 12px}.progress-note{font-size:9px;line-height:1.5;color:#939e9f;margin:8px 0 0;max-width:380px}
.record-note{border-left:3px solid #9e7547;background:rgba(151,118,69,.1);padding:8px 11px;color:#765538;font-weight:600}
.bonus-chip{border:1px solid rgba(225,197,142,.3);border-radius:3px;font-size:9px;padding:3px 6px;color:#e5c48b}.bonus-chip[data-met=false]{color:#c7c0b1;border-color:rgba(199,192,177,.25)}
@media(max-aspect-ratio:1/1){.progress-total{margin-bottom:7px}.selected-record{margin-bottom:9px}}
@media(max-height:540px){.progress-total{margin-bottom:5px;font-size:9px}.mission-mark{font-size:8px;margin-top:3px}.mission-switch button{padding:5px 8px}.selected-record{font-size:9px;margin-bottom:6px}.progress-note{font-size:8px;margin-top:5px}}
@media(pointer:coarse){.mission-switch button{min-height:44px}}
@media(max-height:540px){.coach{bottom:40px;padding:9px 13px;gap:10px}.coach p{font-size:10px}.coach-key{min-height:30px;min-width:30px}body[data-touch="true"] .coach{bottom:20px}}

.mission-chapters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-width:380px;margin:0 0 7px}
.mission-chapters button{flex:1;min-height:36px;padding:7px 10px;border:0;border-bottom:2px solid transparent;background:rgba(20,29,37,.3);color:#aeb2ac;font-size:10px;text-align:left;border-radius:3px 3px 0 0}
.mission-chapters button[aria-pressed=true]{color:#efd09a;border-bottom-color:#d9b472;background:rgba(219,180,116,.1)}
@media(max-aspect-ratio:1/1){.mission-chapters{max-width:none}}
@media(max-height:540px){.mission-chapters{margin-bottom:5px}.mission-chapters button{min-height:28px;padding:5px 8px;font-size:9px}}
@media(pointer:coarse){.mission-chapters button{min-height:44px}}

/* Route and objective feedback share the HUD space already reserved by the camera. */
.route-strip{flex-basis:100%;display:flex;align-items:center;gap:10px;border-top:1px solid rgba(221,205,165,.15);padding-top:8px;color:#c9c7b8;font-size:10px;min-width:0}
#hud-route{flex:1;min-width:0;line-height:1.4}
#route-percent{font-variant-numeric:tabular-nums;font-size:9px;color:#e1c48f}
#route-progress{appearance:none;border:0;width:clamp(48px,10vw,110px);height:4px;border-radius:3px;overflow:hidden;background:#495052;color:#dfb76d}
#route-progress::-webkit-progress-bar{background:#495052;border-radius:3px}
#route-progress::-webkit-progress-value{background:#dfb76d;border-radius:3px}
#route-progress::-moz-progress-bar{background:#dfb76d;border-radius:3px}
.goal-label[data-urgent=true]{font-weight:700}
.pause-job{border-top:1px dashed #b39b78;border-bottom:1px dashed #b39b78;padding:14px 0;margin:18px 0;color:#684d3e}
.pause-job strong{font-size:13px}.pause-job p{font-size:11px;line-height:1.6;margin:6px 0 0}
@media(max-width:760px){.route-strip{gap:7px;padding-top:6px;font-size:9px}.hud-left{row-gap:7px}}
@media(max-height:540px){.pause-job{padding:9px 0;margin:10px 0}}

.recover-button{width:100%;min-height:44px;margin-top:10px;padding:11px 14px;border:1px solid #a78c68;border-radius:4px;background:rgba(140,105,65,.08);color:#684d3e;font-size:12px;font-weight:600;text-align:left}
.recover-button:hover{background:rgba(140,105,65,.16)}.recover-button:disabled{cursor:default;opacity:.65}
#ambience-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;margin:10px 0 0;padding:10px 14px;border:1px solid #b69d78;border-radius:4px;background:rgba(110,87,61,.045);text-align:left}
#ambience-toggle::after{content:'';display:block;width:28px;height:16px;border-radius:99px;background:radial-gradient(circle at 20px 8px,#f4e8cf 0 5px,transparent 5.5px),#777f57}
#ambience-toggle[aria-pressed=false]::after{background:radial-gradient(circle at 8px 8px,#f4e8cf 0 5px,transparent 5.5px),#9b9281}
.paper-panel .recover-note{font-size:10px;line-height:1.6;color:#806b53;margin:8px 0 0}
@media(max-height:540px){.pause-panel .eyebrow{margin-bottom:6px}.pause-panel h2{margin-bottom:8px}.pause-panel>p{margin:6px 0}.pause-panel .primary{margin-top:12px}.pause-panel .text-button{margin:6px auto 0}.pause-panel .recover-button{margin-top:7px}}

@media(max-height:540px) and (min-width:651px){
 .pause-panel{display:grid;grid-template-columns:1fr 1.15fr;gap:24px;max-width:720px;align-items:center}
 .pause-panel .pause-overview>p{font-size:11px;margin:8px 0}
 .pause-panel .pause-overview .eyebrow{font-size:8px;margin:0 0 8px}
 .pause-panel .pause-job{margin-bottom:0}.pause-panel .pause-actions .primary{margin-top:0}
 .pause-panel .recover-note{font-size:9px}.pause-panel .text-button{margin-top:5px}
}


/* The ledger previews each group and the recommended next delivery. */
.progress-overview{display:flex;align-items:center;justify-content:space-between;gap:8px;max-width:380px;margin-bottom:8px}
.progress-overview .progress-total{margin:0;letter-spacing:.02em}
.find-job{flex:none;min-height:32px;padding:4px 0 4px 8px;border:0;background:transparent;color:#ebce99;font-size:10px;text-align:right}
.find-job:hover{color:#fff0cf;text-decoration:underline}
.mission-chapters button::after{content:attr(data-progress);display:block;margin-top:4px;font-size:8px;color:#98a5a5;font-variant-numeric:tabular-nums}
.mission-chapters button[aria-pressed=true]::after{color:#d5bd94}
.mission-chapters button[data-complete=true]::after{color:#bfd3a7}
.chapter-summary{display:flex;align-items:center;gap:10px;max-width:380px;margin:0 0 9px;color:#a8b3ac}
.chapter-summary p{flex:1;margin:0;font-size:9px;line-height:1.5}
#chapter-meter{appearance:none;flex:none;width:48px;height:3px;border:0;border-radius:3px;overflow:hidden;background:#475053;color:#dfb76d}
#chapter-meter::-webkit-progress-bar{background:#475053}#chapter-meter::-webkit-progress-value{background:#dfb76d}#chapter-meter::-moz-progress-bar{background:#dfb76d}
.next-job-card{margin-top:18px;padding:13px 0 0;border-top:1px dashed #af9878;color:#755c48}
.next-job-card .result-progress{margin:0 0 9px;color:#806d57;font-size:10px}
#next-job-reason{display:block;color:#8d6650;font-size:9px;letter-spacing:.08em;margin-bottom:6px}
#next-job-name{display:block;font:400 20px/1.2 Georgia,serif;color:#684b3c}
.next-job-card p{margin:7px 0 0;font-size:11px;line-height:1.5}
.next-job-card #next-job-goal{font-size:10px;color:#8d6848}
.result-details #next-button{margin-top:12px}
@media(max-aspect-ratio:1/1){.progress-overview,.chapter-summary{max-width:none}.progress-overview .progress-total{font-size:9px}.find-job{font-size:9px}}
@media(max-height:540px){.progress-overview{margin-bottom:5px}.find-job{min-height:28px;font-size:9px}.chapter-summary{margin-bottom:5px}.chapter-summary p{font-size:8px}.mission-chapters button::after{margin-top:2px;font-size:7px}.next-job-card{margin-top:12px;padding-top:10px}#next-job-detail{display:none}}
@media(pointer:coarse){.find-job{min-height:44px}}


.result-report{margin-top:16px;padding-top:10px;border-top:1px dashed #af9878}
.result-report summary{min-height:36px;cursor:pointer;font:italic 400 22px/1.5 Georgia,serif;color:#785d47}
.result-report summary:focus-visible{outline:2px solid #8a554c;outline-offset:3px}
.result-report dl{padding-bottom:6px}.result-details .save-card{margin-top:12px}

/* Conditions are checked individually in pause and on the delivery receipt. */
.pause-objectives{margin-top:14px}.pause-objectives h3{font-size:11px;font-weight:600;margin:0 0 5px;color:#755743}
.pause-objectives #pause-objective-summary{margin:0 0 9px;font-size:9px;color:#86715a}
.objective-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.objective-list li{display:flex;gap:9px;align-items:center;min-height:44px;padding:8px 9px;background:rgba(112,126,84,.08);border-left:2px solid #8a9568;border-radius:2px;color:#58643e}
.objective-list li[data-met=false]{color:#864b45;background:rgba(137,75,68,.07);border-left-color:#ac7165}
.objective-marker{flex:none;width:13px;font-size:18px;text-align:center}.objective-copy{flex:1;min-width:0}.objective-copy strong{display:block;font-size:10px;font-weight:600;line-height:1.4}.objective-copy small{display:block;margin-top:3px;font-size:9px;line-height:1.45;color:#776750}
.objective-status{flex:none;font-size:8px;letter-spacing:.02em}
.result-objectives{margin:14px 0 0;padding:10px 0;border-top:1px dashed #af9878;border-bottom:1px dashed #af9878}
.result-objectives summary{font-size:11px;color:#785b45;cursor:pointer;min-height:24px;line-height:24px}
.result-objectives summary:focus-visible{outline:2px solid #8a554c;outline-offset:3px}
.result-objectives[open] .objective-list{margin-top:9px}
.result-objectives #result-objective-note{font-size:10px;line-height:1.5;color:#86614f;margin:10px 0 0}
.result-details .result-report{margin-top:8px;padding-top:4px;border-top:0}
@media(min-width:761px){.pause-panel{max-width:760px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(240px,1fr);gap:26px;align-items:start}.pause-actions .primary{margin-top:0}.pause-panel .pause-job{margin-bottom:0}}
@media(max-width:760px){.pause-panel h2{font-size:34px;margin-bottom:8px}.pause-panel .pause-overview>p:not(.eyebrow){display:none}.pause-panel .pause-job{margin:12px 0;padding:10px 0}.pause-objectives{margin-top:10px}.objective-list li{min-height:39px;padding:6px 8px}}
@media(max-height:540px){.pause-objectives{margin-top:8px}.objective-list{gap:4px}.objective-list li{min-height:32px;padding:5px 7px}.objective-copy small{margin-top:1px}.pause-objectives #pause-objective-summary{margin-bottom:6px}.pause-panel .pause-overview>p:not(.eyebrow){display:none}}



/* A brief landing receipt appears only after the load reaches a new return point. */
.landing-notice{position:absolute;left:22px;top:84px;z-index:5;display:flex;align-items:center;gap:10px;width:min(390px,calc(100vw - 44px));min-height:54px;max-height:64px;padding:10px 13px;border-left:3px solid #cfb375;border-radius:3px;background:rgba(27,39,43,.96);color:#f0dfb6;box-shadow:0 5px 18px rgba(0,0,0,.15);pointer-events:none}
.landing-notice-icon{flex:none;color:#dbc08a;font-size:22px;line-height:1}
.landing-notice strong{display:block;font-size:12px;font-weight:600;line-height:1.4}
.landing-notice p{margin:4px 0 0;color:#bbc5b6;font-size:9px;line-height:1.45}
@media(max-width:760px){.landing-notice{left:12px;top:112px;width:calc(100vw - 24px);padding:9px 11px;gap:9px}.landing-notice strong{font-size:11px}.landing-notice p{font-size:9px}}

/* Retry keeps the current job settings; the neighbouring action returns to selection. */
.retry-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.retry-button{min-height:42px;width:100%;padding:9px 10px;border:1px solid #af9877;border-radius:4px;background:rgba(129,94,60,.07);color:#70513e;font-size:11px;line-height:1.4;text-align:center}
.retry-button:hover{background:rgba(129,94,60,.15)}
.pause-panel .retry-row .text-button,.result-details .retry-row #again-button{margin:0;min-height:42px;padding:8px;font-size:11px}
.paper-panel .retry-note{font-size:9px;line-height:1.5;color:#89735b;margin:7px 0 0}
@media(max-height:540px){.retry-row{margin-top:8px}.retry-button{font-size:10px}.paper-panel .retry-note{font-size:8px;margin-top:5px}}


.memory-preview .save-card{margin-top:12px;transform:rotate(1.5deg);text-align:left}
@media(min-width:651px) and (min-height:541px) and (max-height:800px){.result-panel .stars{margin:14px 0}.result-panel .result-objectives{margin-top:10px;padding:8px 0}.result-panel .next-job-card{margin-top:12px;padding-top:10px}.result-panel h2{margin-bottom:12px}}

/* One book for all missions, with independent sofa and sofa-bed stamps. */
.ledger-links{display:flex;flex:none;gap:12px;align-items:center}.ledger-links .find-job{padding-left:0}
.job-book{z-index:10;padding:24px}.job-book-panel{max-width:820px;max-height:100%;height:min(820px,100%);display:flex;flex-direction:column;overflow:hidden;padding:28px 32px}
.job-book-panel:before{z-index:0}.book-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex:none}.book-header h2{margin:0}.book-header .eyebrow{margin-bottom:8px}
.book-close{flex:none;border:1px solid #af9877;border-radius:3px;background:transparent;color:#70513e;min-width:76px;min-height:44px;padding:8px 12px;font-size:11px}
.paper-panel .book-help{flex:none;font-size:11px;line-height:1.6;color:#806b54;margin:14px 0}
.book-filters{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;flex:none}.book-filters button{min-height:44px;padding:8px 6px;font-size:10px;border:1px solid #bba283;border-radius:3px;background:transparent;color:#795b43}.book-filters button[aria-pressed=true]{background:#75454a;border-color:#75454a;color:#ffedc8}
.paper-panel .book-count{flex:none;margin:12px 0;font-size:10px;color:#856d52;font-variant-numeric:tabular-nums}
.book-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 6px 10px 2px;scrollbar-width:thin;scrollbar-color:#a98b65 transparent;touch-action:pan-y}
.book-list section+section{margin-top:18px}.book-list h3{font-size:10px;letter-spacing:.08em;font-weight:600;color:#826343;margin:0 0 6px;padding:8px 0;border-bottom:1px dashed #b99f7d}
.book-row{display:grid;grid-template-columns:minmax(0,1.2fr) repeat(2,minmax(0,1fr));gap:7px;align-items:center;padding:6px 0;border-bottom:1px solid rgba(155,128,90,.18)}
.book-row>strong{font:400 17px/1.3 Georgia,serif;color:#6a4d3c;padding-right:5px}.book-row button{min-height:56px;text-align:left;border:1px solid #b8a386;border-radius:3px;padding:8px 10px;color:#786650;background:rgba(255,248,224,.2);min-width:0}.book-row button[data-done=true]{border-color:#97a077;background:rgba(104,123,72,.07);color:#5b653f}
.book-row button[aria-pressed=true]{box-shadow:inset 0 0 0 1px #80514b;border-color:#80514b}.book-row button:hover,.book-close:hover{background:rgba(130,95,65,.13)}.book-row button span{display:block;font-size:11px;font-weight:600}.book-row button small{display:block;font-size:9px;line-height:1.5;margin-top:3px}
.job-book-panel button:focus-visible,.book-list:focus-visible{outline:2px solid #80514b;outline-offset:2px}
.paper-panel .book-empty{font:italic 21px/1.5 Georgia,serif;color:#80674c;margin:30px 6px}
@media(max-width:650px){.job-book{padding:12px}.job-book-panel{padding:20px 16px}.book-header h2{font-size:36px}.book-header .eyebrow{font-size:8px;letter-spacing:.13em}.paper-panel .book-help{font-size:10px;margin:12px 0}.book-filters{grid-template-columns:repeat(2,1fr)}.book-row{grid-template-columns:minmax(0,1.15fr) repeat(2,minmax(0,1fr));gap:5px}.book-row>strong{font-size:14px}.book-row button{padding:7px 6px;min-height:60px}.book-row button span{font-size:10px}.book-row button small{font-size:8px}.book-list{padding-right:3px}.ledger-links{gap:9px}}
@media(max-height:540px){.job-book{padding:10px}.job-book-panel{padding:16px 22px}.book-header h2{font-size:30px}.book-header .eyebrow{display:none}.paper-panel .book-help{font-size:10px;margin:6px 0}.paper-panel .book-count{margin:8px 0}.book-list h3{padding:4px 0}.book-row{padding:4px 0}}




/* Briefing facts stay visible; the longer flavour note opens on demand. */
.mission-brief{max-width:380px;margin:0 0 8px;padding:10px 11px 8px;border:1px solid rgba(204,177,124,.27);border-left:2px solid #c59f64;border-radius:3px;background:rgba(18,27,33,.72)}
.brief-facts{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:9px;margin:0}.brief-facts>div{min-width:0}.brief-facts dt{color:#a8b1ad;font-size:8px;letter-spacing:.08em;margin-bottom:4px}.brief-facts dd{margin:0;color:#efdab3;font-size:11px;line-height:1.35;font-weight:500}
.brief-risks{display:flex;flex-wrap:wrap;list-style:none;gap:4px 8px;padding:0;margin:8px 0 0;color:#bdcbc5}.brief-risks li{font-size:9px;line-height:1.45}.brief-risks li::before{content:'·';color:#ddb777;margin-right:4px}
#brief-note{margin-top:5px}#brief-note summary{cursor:pointer;min-height:26px;display:list-item;align-content:center;font-size:9px;line-height:26px;color:#abb7b7}#brief-note summary:hover{color:#ebce99}#brief-note summary:focus-visible{outline:2px solid #edcb89;outline-offset:2px}#brief-note .mission-description{margin:4px 0 2px;min-height:0;font-size:10px}
@media(max-aspect-ratio:1/1){.mission-brief{max-width:none}.brief-facts dd{font-size:10px}}
@media(max-height:540px){.mission-brief{padding:7px 9px;margin-bottom:6px}.brief-facts dt{font-size:7px;margin-bottom:2px}.brief-facts dd{font-size:10px}.brief-risks{margin-top:5px}.brief-risks li{font-size:8px}#brief-note{margin-top:1px}}
@media(pointer:coarse){#brief-note summary{min-height:40px;line-height:40px}}
@media(min-aspect-ratio:1/1) and (min-height:541px) and (max-height:800px){#brief-note summary{min-height:22px;line-height:22px}}

/* Load-driven delivery stops: checked landings and the next destination. */
.route-stops{display:flex;align-items:start;list-style:none;margin:0;padding:2px 0 0;gap:0;flex-basis:100%;min-width:0;width:100%;color:#9daba7}
.route-stops li{position:relative;flex:1;min-width:0;text-align:center;font-size:9px;line-height:1.3}
.route-stops li:not(:last-child)::after{content:'';position:absolute;left:calc(50% + 9px);right:calc(-50% + 9px);top:8px;height:1px;background:rgba(184,199,184,.22)}
.route-dot{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:17px;height:17px;margin:0 auto 4px;border:1px solid #6e8279;border-radius:50%;font-size:10px;background:#283633;color:#9daba7}
.route-stops small{display:block;font-size:9px;white-space:nowrap}.route-stops [data-state=done] .route-dot{background:#425a4a;border-color:#839c7d;color:#e6dcae}.route-stops [data-state=done] small{color:#bccbb3}
.route-stops [data-state=next] .route-dot{background:#dfbd7c;border-color:#dfbd7c;color:#26332f;font-weight:700}.route-stops [data-state=next] small{color:#eed3a1;font-weight:700}
.pause-job .route-stops{color:#8c795e;margin:13px 0 16px;max-width:100%}.pause-job .route-stops li:not(:last-child)::after{background:#bcaa8c}.pause-job .route-dot{background:#e7dbbb;border-color:#aa9978;color:#7b6a50}.pause-job .route-stops small{color:#7c6b53}.pause-job .route-stops [data-state=done] .route-dot{background:#e1e1bf;color:#596844;border-color:#929b70}.pause-job .route-stops [data-state=next] .route-dot{background:#785149;color:#fff1d3;border-color:#785149}.pause-job .route-stops [data-state=next] small{color:#754c43}
@media(max-width:760px){.route-stops small{font-size:8px}.route-stops{padding-top:0}}
@media(max-height:540px){#route-stops .route-dot{display:none}#route-stops li:not(:last-child)::after{display:none}#route-stops small{font-size:8px}#route-stops [data-state=next] small::before{content:'→ ';color:#e9c98d}.pause-job .route-stops{margin:10px 0}.route-stops small{font-size:8px}}

/* A one-second acceptance meter appears only near the van. */
.delivery-meter{flex-basis:100%;width:100%;min-width:0;border-top:1px solid rgba(221,205,165,.18);padding-top:7px}
.delivery-line{display:flex;gap:9px;align-items:baseline;color:#e6c68c;font-size:9px;line-height:1.4}.delivery-line>span:first-child{color:#b0bcb4;flex:none}.delivery-line strong{font-size:10px;flex:1;min-width:0;font-weight:500}.delivery-line>span:last-child{font-variant-numeric:tabular-nums;flex:none}
#delivery-progress{display:block;appearance:none;width:100%;height:4px;border:0;border-radius:3px;overflow:hidden;margin-top:6px;background:#46514c;color:#dfbd7c}#delivery-progress::-webkit-progress-bar{background:#46514c}#delivery-progress::-webkit-progress-value{background:#dfbd7c}#delivery-progress::-moz-progress-bar{background:#dfbd7c}.delivery-meter[data-kind=complete] #delivery-progress::-webkit-progress-value{background:#9fb58c}.delivery-meter[data-kind=complete] #delivery-progress::-moz-progress-bar{background:#9fb58c}
@media(max-height:540px){.delivery-meter{padding-top:5px}.delivery-line,.delivery-line strong{font-size:9px}#delivery-progress{margin-top:4px;height:3px}}
/* Keep stop markers inside their HUD/paper stacking context. */
.route-stops{isolation:isolate}
.route-stops li:last-child{flex:1.35}

#hud-open{border:1px solid rgba(235,169,119,.45);border-radius:3px;padding:3px 6px;font-size:9px;line-height:1.4;color:#f1be91;background:rgba(152,84,53,.16)}
#hud-open[data-open=false]{color:#c6d3b7;border-color:rgba(164,189,148,.35);background:rgba(100,130,83,.12)}
/* Touch instructions stay clear of the thumb controls. */
@media(max-aspect-ratio:1/1){body[data-touch=true] .coach{bottom:164px}}
@media(max-height:540px) and (min-aspect-ratio:1/1){body[data-touch=true] .coach{top:122px;bottom:auto;left:50%;right:auto;transform:translateX(-50%);width:min(440px,calc(100% - 160px));max-width:calc(100% - 160px);padding:7px 11px}body[data-touch=true] .coach strong{font-size:11px}body[data-touch=true] .coach p{font-size:9px;line-height:1.4}body[data-touch=true] .coach-key{font-size:11px}}

/* Group navigation narrows the existing delivery/bonus/star filters. */
.book-group-row{display:flex;align-items:center;gap:12px;margin:0 0 10px;flex:none}
.book-group-row label{font-size:10px;color:#80654d;flex:none}
.book-group-row select{flex:1;min-width:0;min-height:42px;padding:8px 30px 8px 10px;background:#f1e3c5;color:#6b4f3d;border:1px solid #bba283;border-radius:3px;font:11px system-ui;color-scheme:light;pointer-events:auto}
.book-group-row select:focus-visible{outline:2px solid #80514b;outline-offset:2px}
@media(max-height:540px){.book-group-row{margin-bottom:7px;gap:8px}.book-group-row label{font-size:9px}.book-group-row select{min-height:32px;padding-top:5px;padding-bottom:5px;font-size:10px}}

/* The rating explanation shares the receipt's compact disclosures. */
.result-rating{margin:12px 0 0;padding:8px 0;border-top:1px dashed #af9878}
.result-rating summary{font-size:11px;color:#785b45;cursor:pointer;min-height:28px;line-height:28px}
.result-rating summary:focus-visible{outline:2px solid #8a554c;outline-offset:2px}
.result-rating[open] .objective-list{margin-top:8px}
.result-rating #result-rating-note{font-size:10px;line-height:1.5;color:#86614f;margin:9px 0 0}
@media(max-height:540px){.result-rating{margin-top:8px;padding:5px 0}.result-rating summary{min-height:24px;line-height:24px}}

/* Route and carrying condition help compare jobs before opening a briefing. */
.mission-preview{display:block;margin-top:5px;font-size:10px;line-height:1.4;font-weight:400;color:#c7c7b7;letter-spacing:0}
.mission-switch button[aria-pressed=true] .mission-preview{color:#594b38}
.book-row .book-route{display:block;margin-top:4px;font-size:11px;line-height:1.4;font-weight:400;color:#6d5a3e;letter-spacing:0}
@media(max-height:540px){.mission-preview{font-size:9px;margin-top:3px}}
/* Unplayed status stays available to screen readers without repeating a third
   visible line on every card. Completed jobs retain their star/bonus stamps. */
.mission-mark[data-done=false]{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}





.sound-mixer{max-width:380px;margin:8px 0;color:#d7c9af;font-size:11px}
.sound-mixer summary{cursor:pointer;min-height:40px;line-height:40px;touch-action:manipulation}
.sound-mixer summary:focus-visible{outline:2px solid #dfb76d;outline-offset:-2px}
.mixer-row{display:grid;grid-template-columns:1fr auto;gap:3px 12px;margin:0 0 10px}.mixer-row output{font-variant-numeric:tabular-nums}
.mixer-row input{grid-column:1/-1;width:100%;margin:0;min-height:36px;accent-color:#d8b373;cursor:pointer;pointer-events:auto;touch-action:pan-y}
.pause-panel .sound-mixer{color:#594532;max-width:none}.pause-panel .mixer-row input{accent-color:#793846}
.mixer-row input:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media(max-aspect-ratio:1/1){.sound-mixer{max-width:none}}
@media(pointer:coarse){.mixer-row input{min-height:44px}}


.book-backup{flex:none;border-top:1px dashed #b99f7d;padding-top:8px;margin-top:6px}
.book-backup-actions{display:flex;gap:8px;align-items:center}.book-backup-actions a,.book-backup-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:7px 12px;border:1px solid #af9877;border-radius:3px;background:transparent;color:#70513e;font-size:11px;text-decoration:none}
.book-backup-actions a:hover,.book-backup-actions button:hover{background:rgba(130,95,65,.13)}.book-backup-actions a:focus-visible{outline:2px solid #80514b;outline-offset:2px}
.paper-panel .book-backup p{margin:5px 0 0;font-size:10px;line-height:1.4;color:#735b43}.book-backup #career-backup-status{color:#713f42}.book-backup #career-backup-status:empty{display:none}
@media(pointer:coarse){.book-backup-actions a,.book-backup-actions button{min-height:44px}}
@media(max-height:540px){.book-backup{padding-top:5px;margin-top:4px}.book-backup-actions a,.book-backup-actions button{min-height:32px;font-size:10px;padding:5px 10px}.paper-panel .book-backup p{font-size:9px;margin-top:3px}}

.career-preview{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 6px 10px 2px;scrollbar-width:thin;scrollbar-color:#a98b65 transparent}
.career-preview h3{font:400 24px Georgia,serif;color:#6a4d3c;margin:8px 0}.paper-panel .career-preview>p{font-size:11px;color:#735b43;margin:8px 0 12px}
.career-preview ul{list-style:none;padding:0;margin:0}.career-preview li{padding:10px 0;border-bottom:1px solid rgba(155,128,90,.25);font-size:11px;color:#70513e}.career-preview strong{display:block;font-size:12px;font-weight:600}.paper-panel .career-preview li p{font-size:11px;line-height:1.5;margin:5px 0 0;color:#735b43}
.career-preview:focus-visible{outline:2px solid #80514b;outline-offset:-2px}#apply-career{background:#75454a;color:#ffedc8;border-color:#75454a}#apply-career:disabled{cursor:default;opacity:.5}
.job-book[data-review=true] .book-group-row,.job-book[data-review=true] .book-filters,.job-book[data-review=true] .book-help{display:none}

/* The title card and delivery book use the apartment's plaster and sofa colors. */
.menu {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: auto;
  padding: max(16px, env(safe-area-inset-top)) clamp(16px, 4.5vw, 78px) max(16px, env(safe-area-inset-bottom));
  background: #2b2827 url('assets/hero.webp') center / cover no-repeat;
  isolation: isolate;
  pointer-events: auto;
  touch-action: pan-y;
}
.menu-shade {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #231b25a3, #2d1d3426 52%, transparent);
  pointer-events: none;
}
.title-content {
  --title-ink: #3e2926;
  --title-muted: #684e40;
  --title-border: #ac8969;
  --title-accent: #763b45;
  color: var(--title-ink);
  color-scheme: light;
  width: min(100%, 410px);
  max-height: 100%;
  padding: clamp(18px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(#f6e8cded, #f3e3c5ed), url('assets/plaster.webp') center / cover;
  border: 1px solid #d4ae82;
  border-top: 4px solid var(--title-accent);
  border-radius: 9px;
  box-shadow: 0 20px 56px #2212195c;
}
.menu:not([data-view=home]) .title-content { width: min(100%, 520px); }
.title-home, .title-section-header, .title-launch, .title-home-actions { flex: none; }
.title-home h1 {
  margin: 0;
  font: 700 clamp(42px, 5vw, 61px)/.98 Georgia, serif;
  letter-spacing: -.065em;
}
.title-home h1 em { color: var(--title-accent); }
.title-tagline {
  margin: 12px 0 0;
  max-width: 29ch;
  font-size: 15px;
  line-height: 1.48;
  color: var(--title-muted);
}
.title-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.title-section-header h2 { margin: 0; font: 700 clamp(26px, 4vw, 38px)/1 Georgia, serif; color: var(--title-ink); }
.title-content button, .title-content summary { min-height: 44px; }
.privacy-link { justify-self: center; font-size: 13px; color: #693244; text-underline-offset: 3px; padding: 8px; }
.menu:not([data-view=home]) .privacy-link { display: none; }
[data-android-voices=subtitles] .mixer-row:has([id$="-voiceVolume"]) { display: none; }
.title-content button:focus-visible, .title-content summary:focus-visible,
.title-content input:focus-visible, .title-scroll:focus-visible {
  outline: 3px solid var(--title-accent);
  outline-offset: 2px;
}
.title-home-actions, .audio-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.title-home-actions button, .title-section-header button, .audio-controls button {
  padding: 8px 9px;
  border: 1px solid var(--title-border, #ac8969);
  border-radius: 5px;
  background: #fff9e342;
  color: #53382e;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}
.title-home-actions button:hover, .title-section-header button:hover, .title-content .secondary:hover,
.audio-controls button:hover { background: #e6cba3; }
.title-play-buttons { display: grid; gap: 8px; }
.title-play-buttons .primary {
  min-height: 54px;
  padding: 10px 16px;
  color: #fff3da;
  background: var(--title-accent);
  box-shadow: 0 3px 0 #552934;
}
.title-play-buttons .primary:hover { background: #8b4750; }
.title-play-buttons .primary span { font-weight: 750; }
.title-play-buttons .secondary {
  padding: 9px 14px;
  min-height: 44px;
  text-align: center;
  border: 1px solid var(--title-border);
  border-radius: 5px;
  box-shadow: none;
  color: var(--title-ink);
  background: #fff6dc70;
}
.launch-selection {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 7px;
  margin: 11px 0 0;
  color: var(--title-muted);
  font-size: 13px;
  line-height: 1.4;
}
.launch-selection strong { overflow-wrap: anywhere; }
.menu[data-view=jobs] .title-launch { padding-top: 8px; border-top: 1px solid #ac896966; }
#asset-status { margin: 0; color: var(--title-muted); font-size: 12px; }
#asset-status:empty { display: none; }
.title-scroll {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #a6866d transparent;
  scroll-padding: 6px;
  padding: 4px 5px 8px;
  margin: -4px -5px 0;
  touch-action: pan-y;
}
.title-jobs .progress-overview { display: block; max-width: none; margin-bottom: 8px; }
.title-jobs .progress-total { color: var(--title-muted); font-size: 13px; }
.title-jobs .ledger-links { justify-content: space-between; gap: 8px; }
.title-jobs .find-job { color: var(--title-accent); font-size: 13px; text-align: left; }
.chapter-picker { margin: 0 0 8px; }
.chapter-picker summary, .control-details summary {
  display: list-item;
  align-content: center;
  border: 1px solid var(--title-border);
  border-radius: 5px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}
.chapter-picker summary::marker, .control-details summary::marker { color: var(--title-accent); }
.title-jobs .mission-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; margin: 7px 0; }
.title-jobs .mission-chapters button {
  grid-column: auto;
  border: 1px solid var(--title-border);
  background: #fff6dc70;
  color: var(--title-ink);
  border-radius: 5px;
  font-size: 12px;
}
.title-jobs .mission-chapters button::after { font-size: 10px; color: var(--title-muted); }
.title-jobs .mission-chapters button[aria-pressed=true] { background: #dfc5a0; border-color: var(--title-accent); }
.title-jobs .chapter-summary { max-width: none; color: var(--title-muted); }
.title-jobs .chapter-summary p { font-size: 11px; }
.title-jobs .mission-switch { max-width: none; gap: 7px; margin-bottom: 9px; }
.title-jobs .mission-switch button {
  padding: 8px 9px;
  background: #fff6dc70;
  color: var(--title-ink);
  border: 1px solid var(--title-border);
  font-size: 14px;
  font-weight: 700;
  min-width: 0;
}
.title-jobs .mission-switch button[aria-pressed=true] {
  border-color: var(--title-accent);
  background: #ead1b0;
  box-shadow: inset 0 0 0 1px var(--title-accent);
}
.title-jobs .mission-switch .mission-preview, .title-jobs .mission-mark[data-done=true] { color: var(--title-muted); font-size: 11px; }
.title-jobs .level-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 9px 0; }
.title-jobs .level-switch button {
  border: 1px solid var(--title-border);
  border-radius: 5px;
  background: transparent;
  color: var(--title-ink);
  font-size: 14px;
  font-weight: 700;
}
.title-jobs .level-switch button[aria-pressed=true] { background: var(--title-accent); border-color: var(--title-accent); color: #fff3da; }
.title-jobs .mission-brief {
  max-width: none;
  background: #fff7dd7d;
  border-color: #b29070;
}
.title-jobs .mission-brief :is(dt, dd, li, p),
.title-jobs :is(.mission-goal, .selected-record, .progress-note) { color: var(--title-muted); font-size: 12px; }
.title-jobs #brief-note > summary { min-height: 44px; line-height: 1.3; font-size: 14px; }
.title-jobs #brief-note .mission-brief { margin-top: 8px; }
.title-jobs .mission-description { min-height: 0; margin: 8px 0 0; }
.title-jobs .mission-goal { font-weight: 700; }
.title-jobs .selected-record, .title-jobs .progress-note { line-height: 1.4; margin: 4px 0; }
.title-controls table { width: 100%; text-align: left; border-collapse: collapse; font-size: 14px; }
.title-controls :is(th, td) { padding: 11px 5px; border-bottom: 1px solid #b2907080; }
.title-controls th { color: var(--title-muted); }
.title-controls td { white-space: nowrap; }
.title-controls kbd {
  display: inline-block;
  border: 1px solid #b29070;
  border-radius: 4px;
  padding: 3px 5px;
  background: #fff9e7;
  color: var(--title-ink);
  font-size: 12px;
}
.control-details { margin-top: 9px; }
.control-details p { margin: 8px 3px; color: var(--title-muted); font-size: 14px; line-height: 1.5; }
.title-sound .sound-mixer { max-width: none; margin-top: 18px; color: var(--title-ink); font-size: 14px; }
.title-sound h3 { margin: 0 0 14px; font-size: 15px; }
.title-sound input { accent-color: var(--title-accent); }
.audio-controls button[aria-pressed=false] { background: #ead5b7; color: #634b3a; }
.pause-actions .audio-controls { margin: 10px 0; }
.pause-actions .audio-controls button { min-height: 44px; }
.pause-actions .sound-mixer summary, .pause-overview .pause-objectives > summary {
  min-height: 44px;
  align-content: center;
  line-height: 1.35;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.pause-actions :is(button, summary):focus-visible, .pause-overview summary:focus-visible { outline: 3px solid #763b45; outline-offset: 2px; }
.job-book-panel .book-filters button, .job-book-panel .book-close { font-size: 12px; }
.job-book-panel .book-row button span { font-size: 13px; }
.job-book-panel .book-row button small { font-size: 11px; }
.job-book-panel .book-group-row select { min-height: 44px; }

@media (max-aspect-ratio: 1/1) {
  .menu {
    align-items: flex-end;
    justify-content: center;
    background-position: 52% top;
    background-size: auto 69%;
  }
  .menu-shade { background: linear-gradient(0deg, #261e23 18%, #261e2370 46%, transparent 76%); }
  .title-home h1 { font-size: clamp(38px, 11vw, 56px); }
  .menu:not([data-view=home]) .title-content { max-height: 100%; }
}
@media (max-height: 540px) {
  .title-content { padding: 14px 17px; gap: 10px; }
  .title-home h1 { font-size: clamp(36px, 6vw, 49px); }
  .title-tagline { font-size: 13px; margin-top: 8px; max-width: none; }
  .title-play-buttons { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .title-play-buttons .primary { min-height: 44px; }
  .launch-selection { margin-top: 8px; }
}
@media (max-width: 360px) {
  .title-home-actions button, .audio-controls button { font-size: 12px; padding-inline: 5px; }
}
@media (max-height: 290px) {
  .menu[data-view=home] { align-items: flex-start; }
  .menu[data-view=home] .title-content { max-height: none; }
}

.result-details .result-breakdown { margin-top: 12px; }
.result-details .result-breakdown summary { min-height: 44px; align-content: center; line-height: 1.35; }
.result-details .retry-row button { min-height: 44px; font-size: 13px; }
@media (max-width: 650px) {
  .result-panel { display: flex; flex-direction: column; gap: 18px; align-items: stretch; }
  .result-panel .memory-preview { margin: 0 auto 8px; }
}

.pause-actions .pause-home {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid #ac8969;
  border-radius: 5px;
  background: #fff6dc70;
  color: #53382e;
  font-size: 13px;
  font-weight: 700;
}
.pause-actions .pause-home:hover { background: #e6cba3; }
.pause-actions .pause-options {
  margin-top: 8px;
  color: #594532;
}
.pause-actions .pause-options > summary {
  min-height: 44px;
  align-content: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.pause-options .retry-button { margin-top: 10px; min-height: 44px; font-size: 13px; }
@media (min-width: 651px) {
  .result-panel .result-details { grid-area: 1 / 2; }
  .result-panel .memory-preview { grid-area: 1 / 1; }
  .result-panel:has(.memory-preview[hidden]) { max-width: 520px; grid-template-columns: 1fr; }
  .result-panel:has(.memory-preview[hidden]) .result-details { grid-column: 1; }
}

.coach[data-lesson=true] {
  background: #f2e3c8;
  color: #3e2926;
  border-left: 4px solid #763b45;
  box-shadow: 0 5px 26px #20141b5c;
}
.coach[data-lesson=true] .coach-key { background: #763b45; color: #fff3da; }
.coach[data-lesson=true] strong { color: #3e2926; font-size: 14px; font-weight: 750; }
.coach[data-lesson=true] p { color: #5c4438; }
.coach-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
#coach-step { color: #754450; font-size: 10px; font-weight: 700; white-space: nowrap; }
