/* Second review: navigable workbench, local feedback, countable lesson models. */
.desk-jumps{grid-column:1/-1;display:flex;gap:8px;padding:10px 64px 10px 18px;background:#173e4b;z-index:8}
.desk-jumps button{border:1px solid #9bb3b5;border-radius:5px;background:#275460;color:#fff9e9;padding:9px 16px;min-height:44px;font-size:15px}
#workbench[open]{grid-template-rows:auto minmax(0,1fr)}
#workbench .desk-scene,#workbench .desk-panel{scroll-padding-top:18px;overscroll-behavior:contain}
.chosen-reference{padding:10px 12px;background:#e3eee6;border-left:3px solid #427b68;font-size:16px;color:#244f46;line-height:1.5}
.entry-progress,.draft-status{display:block;color:#445e63;font-size:14px;line-height:1.6;margin:8px 0}.entry-progress{font-weight:800}
.field-note{font-size:15px;color:#914124;line-height:1.55;grid-column:1/-1}.field-note:empty{display:none}
.field-correct .field-note{color:#286749}.field-correct input{border-color:#528973!important}
#workbench .lesson-choices .choice:before{content:attr(data-option) '. ';font-variant-numeric:tabular-nums}
#workbench .choice[data-answer=correct]:before{content:'✓ '}
#workbench .choice[data-answer=retry]:before{content:'↻ '}
#workbench .choice[data-answer=retry]{background:#fae8d8;color:#713d25;border-color:#ab6646}
#workbench .quantity:focus-within>label{color:#176b77;text-decoration:underline;text-underline-offset:4px}
#workbench .quantity>label,#workbench .lesson-data dd{font-variant-numeric:tabular-nums}
.data-title{font-size:20px;letter-spacing:0;margin:14px 0;color:#234d5c}
.lesson-model{margin:20px 0;background:#f7f2e5;border:1px solid #bdb998;border-radius:8px;padding:16px;color:#254b55}
.lesson-model h3{font-size:19px;margin:0 0 10px}.lesson-model p{font-size:16px;line-height:1.65;margin:8px 0 16px}
.model-row{margin:14px 0}.model-row>strong{font-size:16px;display:block;margin-bottom:8px;font-variant-numeric:tabular-nums}
.model-cells{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));gap:3px;max-width:330px}
.model-cells i{display:block;aspect-ratio:1;min-height:10px;border:1px solid #708b8b;border-radius:50%;background:#fff9ec}
.model-cells i.filled{background:#327779;border-color:#23595f;box-shadow:inset 0 0 0 2px #ffffff28}
[data-model='8'] .model-cells i{aspect-ratio:auto;height:30px;border-radius:0;background:#fff6dd}
[data-model='8'] .model-cells i.filled{background:repeating-linear-gradient(135deg,#397b82 0 4px,#508d93 4px 7px)}
.model-legend{display:block;font-size:14px;color:#385b61;line-height:1.6}
.model-flow{padding:0;list-style:none;display:grid;gap:8px}.model-flow li{padding:10px;background:#e6ece1;border-left:3px solid #6d9384;line-height:1.6;font-size:16px;font-variant-numeric:tabular-nums}
.grid-task{font-size:17px!important;padding:12px;background:#edf1df;border-left:3px solid #788c4d}
#workbench .lesson-data dd{line-height:1.75}.lesson-data .unit-value{background:#f4e9ca;padding:2px 4px;border-radius:3px}
#workbench .lesson-illustration figcaption{max-width:52ch;text-wrap:pretty}
#workbench .concept-diagram p,#workbench .lesson-model p{max-width:48ch;text-wrap:pretty}
#workbench .lesson-step span{white-space:nowrap}#workbench .quantity input{letter-spacing:.04em}
#workbench .number-line{font-variant-numeric:tabular-nums}.lesson-checkpoint{font-variant-numeric:tabular-nums;line-height:1.7}
#workbench h2,#journal h2,#atlas h2{word-break:keep-all;overflow-wrap:anywhere;text-wrap:balance}
#objective{max-width:40ch;white-space:normal;text-align:left;line-height:1.5}
#save-status{color:#fff6df;background:#163a48e8;padding:6px 10px;border-radius:4px;font-size:13px;line-height:1.5}
#guide dd{margin-left:0}#guide dl{row-gap:12px}#guide dt{font-weight:800;color:#1e5664}
#guide .primary{position:sticky;bottom:0;box-shadow:0 -8px 20px #fff7e5}
#journal>footer{position:sticky;bottom:0;z-index:3;background:#fff8e9;padding:14px 0;display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid #c4b58d}
#journal>footer button{flex:1;min-height:48px}#receipt-next-name{max-width:48ch;margin-inline:auto}
#mission-receipt footer{display:flex;gap:12px;flex-wrap:wrap}#mission-receipt footer button{flex:1 1 220px;min-height:50px}
.route-stop.current-island{box-shadow:inset 4px 0 #1d6d7b}.route-stop:disabled{opacity:1;background:#eee8db;color:#5e625e}
.route-stop:disabled small{color:#596661!important}.route-stop>span:last-child{white-space:normal}
#lesson-art-viewer{max-height:calc(100dvh - 20px);overflow:auto}#lesson-art-viewer img{max-height:calc(100dvh - 145px);object-fit:contain}
.journal-entry h3{font-size:19px}.journal-entry .own-note{border-left:3px solid #5d8c86;padding-left:13px;white-space:pre-wrap;overflow-wrap:anywhere}
::selection{background:#225b68;color:#fff8e7}
@media(max-width:700px){
 #workbench[open]{display:block;height:calc(100dvh - 12px);overflow:auto}#workbench .desk-jumps{position:sticky;top:0}
 #workbench .desk-scene,#workbench .desk-panel{overflow:visible;scroll-padding-top:76px}#workbench .desk-jumps~* [tabindex='-1']{scroll-margin-top:76px}
 #workbench .desk-jumps button{flex:1;padding-inline:9px}#workbench .desk-title{padding-top:18px}
 .route-stop{grid-template-columns:36px minmax(0,1fr)!important}.route-stop>span:last-child{grid-column:2;justify-self:start}
 #save-status{max-width:55vw;font-size:12px}.location h1{line-height:1.2}#objective{max-width:32ch;font-size:14px!important}
}
@media(max-width:420px){#workbench #answer-controls{grid-template-columns:1fr}#workbench .quantity>label{min-height:0}.model-cells{gap:3px}#workbench .desk-panel{padding:20px 18px 0}.desk-jumps{padding-left:10px;padding-right:58px}}
@media(max-height:480px) and (min-width:701px){#workbench[open]{height:calc(100dvh - 8px)}#workbench .desk-title h2{font-size:23px}.desk-jumps{padding-block:4px}#workbench .desk-panel{padding-top:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media(forced-colors:active){.model-cells i.filled{background:Highlight}.model-cells i{border:1px solid CanvasText}.field-correct input{outline:2px solid Highlight}.lesson-choices .choice[aria-pressed=true]{outline:3px solid Highlight}}
/* Third review: compact direction, typographic hierarchy and narrow-screen operation. */
#workbench>.close{z-index:30!important}
.desk-jumps button[aria-pressed=true]{background:#fff3d5;color:#1c4a57;border-color:#e7c985;box-shadow:inset 0 -3px #b9883c}
.reference-why{margin:8px 0 15px;color:#345a60}.reference-why summary{font-size:15px;min-height:44px;display:list-item;padding:10px 0;cursor:pointer}.reference-why p{font-size:16px;line-height:1.7;margin:3px 0 12px;padding:10px;background:#edf0e3}
.task-focus{border-left:3px solid #568777;padding:9px 12px;background:#e9efe2;font-size:17px;line-height:1.6;font-weight:700;margin:12px 0}
.answer-unit{display:inline-block;white-space:nowrap;font-size:14px;font-weight:700;border:1px solid #93aaa7;background:#e9f0e9;border-radius:4px;padding:1px 6px;vertical-align:middle;color:#24515b}
.fraction-preview{display:inline-grid;justify-self:start;grid-template-columns:1fr;text-align:center;min-width:36px;color:#27545f;font-size:20px;line-height:1.25;font-variant-numeric:tabular-nums;grid-row:4}
.fraction-preview:empty{display:none}.fraction-preview span:first-child{border-bottom:1.5px solid currentColor;padding-bottom:2px}.fraction-preview span:last-child{padding-top:2px}
#workbench .quantity>input{grid-row:2}#workbench .answer-format{grid-row:3}#workbench .field-note{grid-row:5}
#workbench .quantity .fraction-key{grid-row:4;justify-self:end}
.hundred-grid.decade-grid{gap:3px}.hundred-grid.decade-grid i:nth-child(10n+1){border-left:2px solid #285e63}.hundred-grid.decade-grid i:nth-child(n+41):nth-child(-n+50){border-bottom:2px solid #285e63}
.hundred-grid.decade-grid i.painted{background:repeating-linear-gradient(135deg,#4e9995 0 5px,#63aaa1 5px 8px)}
.boat-replay input[type=range],#grid-paint{min-height:44px;accent-color:#236f79;touch-action:pan-y}
.boat-replay output,#grid-count{font-variant-numeric:tabular-nums;font-weight:800;line-height:1.6}
#grid-count{display:block;padding:8px 12px;background:#f1ead3;color:#235964;border-radius:4px}
#workbench .lesson-bar{overflow:visible}.lesson-bar span{width:max-content;max-width:none;min-width:100%;padding-inline:5px;box-sizing:border-box;text-shadow:0 1px 1px #fff7df;background:#fff8e84d}
#workbench .lesson-choices{gap:10px}#workbench .choice{word-break:keep-all;overflow-wrap:anywhere;flex-basis:100%}
#workbench .price-row>strong{display:block;line-height:1.6;margin-bottom:6px;font-variant-numeric:tabular-nums}
#workbench .price-bar{min-height:56px;height:auto;line-height:1.4}#workbench .price-bar span{padding:8px 5px;display:grid;place-content:center;text-align:center;font-size:15px;box-sizing:border-box}
#workbench .judgment-evidence strong{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:23px}
#workbench #extra-step label{display:block;font-size:17px;font-weight:700;line-height:1.6}
#workbench #extra-step textarea{box-sizing:border-box;font:inherit;font-size:18px;line-height:1.7;resize:vertical;min-height:120px;max-height:45dvh;padding:12px;border:1px solid #789493;border-radius:5px;background:#fffef9;color:#214b55}
#workbench #extra-step textarea:focus{outline:3px solid #9b723b;outline-offset:3px}
.attempt-history{margin-top:12px}.attempt-history summary{padding:12px 0;min-height:44px;box-sizing:border-box;font-size:15px;cursor:pointer;color:#295c69}.attempt-history small{padding:10px;background:#f0eadb;border-radius:5px}
.journal-overview{display:inline-block;background:#204c59;color:#fff5dc;padding:9px 14px;border-radius:5px;font-weight:700;font-variant-numeric:tabular-nums}
.journal-entry.locked-entry{border-style:dashed;color:#52656b;background:#f1eddf}.journal-entry.locked-entry h3{font-size:16px;font-weight:500}
#help-target{padding:12px;background:#e8efdf;color:#29545b;border-left:3px solid #57857a;font-weight:700}
#guide button{margin-top:12px}#guide .text-button{margin-left:8px}
#journal summary:focus-visible,#atlas button:focus-visible{outline-offset:2px}
.location .eyebrow{font-size:12px;letter-spacing:.08em}.brand span{letter-spacing:.15em}
#sailing h2{line-height:1.5}#sailing p{font-size:17px;line-height:1.7}
#loading p{font-size:17px;line-height:1.7;max-width:28ch;margin-inline:auto}#loading small{font-size:14px;line-height:1.6}
#camera-tools button,#camera-tools summary{line-height:1.4}.camera-tip p{font-size:15px}
#restore-exit{font-size:17px;min-height:48px;border:2px solid #e5ca85;background:#173e4bf5;color:#fff3d6}
#receipt-label{letter-spacing:.04em;font-size:15px;font-weight:700}#receipt-change{font-size:19px;line-height:1.7;word-break:keep-all;text-wrap:pretty}
#journal .muted{font-size:16px;line-height:1.7;color:#4b6066}#saved-voyages{display:grid;gap:10px}#saved-voyages button{text-align:left;line-height:1.6}
button:disabled{cursor:not-allowed}#workbench button:disabled{opacity:1;color:#56615e;background:#d9ddd4;border-color:#a2aca4;box-shadow:none}
button,summary{-webkit-tap-highlight-color:#c7e0da80}kbd{font-variant-numeric:tabular-nums;font-family:inherit;font-weight:700}
.desk-jumps button:focus-visible{outline-color:#ffe7aa;box-shadow:none}
@media(min-width:901px){#workbench .desk-title{position:sticky;top:0;background:#ece2c9f7;z-index:2;border-bottom:1px solid #c7b68d}.lesson-illustration,.data-title{scroll-margin-top:140px}}
@media(max-width:900px){.desk-jumps{position:sticky;top:0}.lesson-illustration,#lesson-visual,#lesson-observe,#answer-controls{scroll-margin-top:84px}.desk-jumps button{font-size:14px}#workbench[open]{height:calc(100dvh - 12px);padding:0}}
@media(max-width:480px){#workbench .desk-panel>footer{flex-direction:column;align-items:stretch;gap:8px}#workbench footer button{width:100%;padding:10px;min-height:46px}#workbench #hint-task{order:2;font-size:15px}#workbench .desk-title h2{font-size:24px}.price-bar{font-size:14px}.journal-overview{font-size:16px}#guide .text-button{margin-left:0}#journal>footer{flex-direction:column;align-items:stretch}}
@media(max-height:480px) and (min-width:701px){.brand,.move-wrap small,.companion{display:none}#camera-tools{right:14px;bottom:80px;max-width:48vw;flex-wrap:wrap;justify-content:flex-end}#wayfinder{top:90px!important;max-width:290px}#progress-wrap{top:90px;right:15px}#save-status{bottom:6px!important}#interact{min-height:46px}#move-pad{width:90px;height:90px}}
.optional-models,.formula-help{border-top:1px solid #bcba9e;border-bottom:1px solid #bcba9e;margin:14px 0;padding:0 4px;color:#2c5963}
.optional-models>summary,.formula-help>summary{padding:13px 4px;font-size:16px;font-weight:700;min-height:48px;box-sizing:border-box;cursor:pointer}
#workbench #feedback:empty{display:none}.mission-purpose{font-size:14px!important;margin:8px 0 0!important;padding:6px 9px!important}
#workbench .desk-title{padding-bottom:12px}.formula-help .specification{margin-top:0!important;border:0}.formula-help #source-caption{display:none}
@media(min-width:901px){.lesson-illustration,.data-title{scroll-margin-top:112px}}
@media(max-height:480px) and (min-width:701px){#wayfinder{top:100px!important;bottom:auto!important;right:14px;width:245px;min-height:0;padding:10px}#progress-wrap{left:24px;right:auto;top:105px;min-width:145px}#save-status{left:135px;right:auto;bottom:14px!important}}
