/* The bureau gives every investigation a purpose, a client and a partner. */
.bureau-home{max-width:1500px;width:100%;flex:1;min-height:0;padding:26px 3% 12px;margin:auto;display:grid;grid-template-rows:minmax(0,1fr) 195px 25px;gap:22px}.home-hero{display:grid;grid-template-columns:1.15fr 1fr;gap:50px;min-height:0;align-items:center}.home-copy h1{font-size:clamp(42px,4.6vw,66px);line-height:1.06;letter-spacing:-2px;margin:12px 0 18px}.home-copy>p{font-size:20px;line-height:1.5;max-width:650px}.home-goal{display:flex;gap:14px;align-items:center;margin-top:22px;padding:16px 18px;border-left:4px solid var(--teal);background:var(--mint);border-radius:0 10px 10px 0;font-size:17px;line-height:1.4}.home-goal b{color:var(--teal);white-space:nowrap}.home-actions{display:flex;gap:12px;margin-top:24px}.home-actions .primary{font-size:18px;min-height:52px}.tess-welcome{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;max-height:490px;background:#e7eee3;border:1px solid #d0ddcb;border-radius:25px;padding:22px;overflow:hidden}.tess-welcome::before{content:'';position:absolute;width:240px;height:240px;border:1px solid #b9d0c2;border-radius:50%;top:38px;background:#f1f6ed88}.bureau-seal{position:relative;font-size:11px;letter-spacing:1.5px;color:var(--teal);text-align:center}.tess-detective{position:relative;width:205px;height:236px;flex-shrink:0;filter:drop-shadow(0 10px 10px #194b4410);animation:tess-arrive .4s ease-out}.welcome-bubble{position:relative;background:var(--surface);border:1px solid #d0ddcb;border-radius:15px;padding:18px 22px;max-width:450px;margin-top:-2px}.welcome-bubble b{font-size:15px;color:var(--teal)}.welcome-bubble p{font-size:18px;line-height:1.45;margin-top:8px}.partner-note{position:relative;margin-top:14px;font-size:13px;color:var(--muted)}.home-files{min-height:0}.home-files-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.home-files-title h2{font-size:22px;letter-spacing:-.6px}.home-files-title>span{font-size:14px;color:var(--teal)}.home-case-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.home-case{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-radius:14px;text-align:left;color:var(--ink);box-shadow:var(--shadow)}.home-case:hover{border-color:var(--teal);background:#f1f6ed}.case-stamp{font-size:11px;letter-spacing:1.5px;color:var(--teal);font-weight:700}.home-case-title{display:flex;gap:10px;align-items:center;font-size:20px}.home-case-title .icon{width:24px;height:24px}.home-case>span:not(.case-stamp):not(.home-case-title){font-size:16px;line-height:1.4}.home-case small{font-size:12px;color:var(--muted)}.home-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;color:var(--muted)}.case-arrival{width:100%;max-width:1350px;padding:30px 3%;flex:1;min-height:0;display:flex;align-items:center;justify-content:center}.arrival-card{display:grid;grid-template-columns:.6fr 1.4fr;gap:35px;width:100%;height:100%;max-height:690px;background:var(--surface);border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:var(--shadow)}.arrival-art{display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--mint);padding:26px;text-align:center}.arrival-art .tess-detective{width:230px;height:265px;max-width:100%}.partner-name{font-size:17px;font-weight:600;color:var(--teal);margin-top:16px}.arrival-copy{padding:30px 34px 30px 0;display:flex;flex-direction:column;justify-content:center;gap:16px;min-height:0}.arrival-copy>.eyebrow{font-size:12px;color:var(--teal);margin:0}.arrival-copy h1{font-size:38px;line-height:1.15;letter-spacing:-1.2px}.arrival-hook{font-size:20px;font-weight:600;line-height:1.35}.tess-brief{font:inherit;font-size:19px;line-height:1.5;margin:0;color:var(--muted);font-weight:400}.assignment{background:#f3f4ec;border:1px solid #dce2d4;border-radius:12px;padding:18px}.assignment>span{font-size:12px;letter-spacing:1.5px;color:var(--teal);font-weight:700}.assignment h2{font-size:22px;line-height:1.35;margin-top:8px}.assignment p{font-size:16px;line-height:1.4;margin-top:10px;color:var(--muted)}.case-win{font-size:16px;line-height:1.4;color:var(--muted)}.case-win b{color:var(--ink)}.arrival-actions{display:flex;align-items:center;gap:20px;margin-top:4px}.arrival-actions .primary{font-size:18px;min-height:50px}.mission-goal{display:block;font-size:14px;font-weight:600;color:var(--teal);margin-top:6px}.observation.selected.pending{background:#f4f1e6;border-color:#9c9b82}.observation.selected.pending .choice-dot{background:transparent;color:var(--ink);border-color:#9c9b82}.clue-feedback{margin-top:20px;border:1px solid #a7c6b2;background:#f5fbf1;border-radius:14px;padding:20px}.clue-feedback.unsupported{border-color:#d5b68c;background:#fff7e9}.tess-check-title{display:flex;align-items:center;gap:12px;font-size:15px;font-weight:600;color:var(--teal)}.tess-check-title .tess-shape{width:58px;height:58px;margin:0}.clue-feedback h2{font-size:27px;margin-top:18px}.clue-feedback p{font-size:19px;line-height:1.5;margin-top:14px;color:var(--ink)}.move-card.checking .flow-next{margin-top:auto}.revision-link{margin-top:12px;font-size:15px;white-space:normal}.review-partner{display:flex;align-items:center;gap:10px;color:var(--teal);font-size:16px;font-weight:600}.review-partner .tess-shape{width:46px;height:46px;margin:0}.clue-path button:disabled{opacity:.45}.clue-path button.done{opacity:1}@keyframes tess-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.tess-detective{animation:none}}
@media(max-height:780px) and (min-width:761px){.bureau-home{padding-top:16px;gap:15px;grid-template-rows:minmax(0,1fr) 176px 22px}.home-copy h1{font-size:46px;margin:8px 0 10px}.home-copy>p{font-size:18px;line-height:1.4}.home-goal{margin-top:14px;padding:12px;font-size:16px}.home-actions{margin-top:14px}.home-actions .primary{min-height:46px;font-size:16px}.tess-welcome{padding:12px}.tess-welcome .tess-detective{width:155px;height:178px}.welcome-bubble{padding:12px 18px}.welcome-bubble p{font-size:16px}.partner-note{font-size:12px;margin-top:9px}.home-case{padding:14px;gap:8px}.home-case-title{font-size:18px}.home-case>span:not(.case-stamp):not(.home-case-title){font-size:15px}.case-arrival{padding-top:20px;padding-bottom:20px}.arrival-copy{gap:12px;padding:20px 26px 20px 0}.arrival-copy h1{font-size:32px}.arrival-hook{font-size:18px}.tess-brief{font-size:17px}.assignment{padding:13px}.assignment h2{font-size:19px}.assignment p,.case-win{font-size:15px}.clue-feedback{margin-top:12px;padding:15px}.clue-feedback h2{font-size:24px;margin-top:12px}.clue-feedback p{font-size:17px;margin-top:10px}.mission-goal{font-size:13px}}
@media(max-width:760px){.bureau-home{padding:12px 12px 6px;grid-template-rows:minmax(0,1fr) 260px 20px;gap:12px}.home-hero{display:flex;flex-direction:column;align-items:stretch;gap:12px;justify-content:center}.home-copy .eyebrow{font-size:10px}.home-copy h1{font-size:34px;line-height:1.05;letter-spacing:-1px;margin:7px 0 10px}.home-copy h1 br{display:none}.home-copy>p{font-size:15px;line-height:1.4}.home-goal{font-size:14px;line-height:1.35;gap:10px;padding:9px 11px;margin-top:10px}.home-actions{margin-top:12px;gap:8px}.home-actions .primary{width:100%;min-height:44px;font-size:16px}.home-actions>.secondary{display:none}.tess-welcome{flex-direction:row;gap:10px;min-height:91px;height:auto;padding:9px 12px;border-radius:13px;justify-content:start;overflow:visible}.tess-welcome::before,.bureau-seal,.partner-note{display:none}.tess-welcome .tess-detective{width:63px;height:73px}.welcome-bubble{background:none;border:0;padding:0;margin:0}.welcome-bubble b{font-size:13px}.welcome-bubble p{font-size:14px;line-height:1.35;margin-top:5px}.home-files-title{margin-bottom:8px;gap:8px}.home-files-title h2{font-size:18px}.home-files-title>span{font-size:12px}.home-case-grid{grid-template-columns:1fr;gap:8px}.home-case{padding:10px 12px;gap:5px;display:grid;grid-template-columns:1fr auto;align-items:center;border-radius:11px;min-height:69px}.case-stamp{font-size:9px;grid-column:2;grid-row:1}.home-case-title{font-size:17px;grid-column:1;grid-row:1;gap:7px}.home-case-title .icon{width:19px;height:19px}.home-case>span:not(.case-stamp):not(.home-case-title){font-size:13px;grid-column:1 / -1}.home-case small{display:none}.home-footer{font-size:10px}.case-arrival{padding:12px}.arrival-card{display:flex;flex-direction:column;gap:0;border-radius:16px;max-height:none}.arrival-art{flex-direction:row;justify-content:start;gap:12px;padding:8px 16px;min-height:78px;max-height:78px}.arrival-art>.eyebrow{display:none}.arrival-art .tess-detective{width:56px;height:66px}.partner-name{font-size:16px;margin:0}.arrival-copy{padding:16px;gap:11px;justify-content:center;flex:1}.arrival-copy>.eyebrow{font-size:10px;line-height:1.3}.arrival-copy h1{font-size:28px;letter-spacing:-.8px}.arrival-hook{font-size:17px}.tess-brief{font-size:16px;line-height:1.4}.assignment{padding:12px}.assignment>span{font-size:10px}.assignment h2{font-size:18px;line-height:1.3;margin-top:6px}.assignment p{font-size:14px;margin-top:8px;line-height:1.35}.case-win{font-size:14px;line-height:1.35}.arrival-actions{gap:8px;margin-top:0}.arrival-actions .primary{font-size:16px;min-height:44px;padding:9px 13px;flex:1}.arrival-actions .text-button{font-size:13px;white-space:normal;max-width:105px;min-height:44px}.mission-goal{font-size:12px;margin-top:4px}.play-layout{grid-template-rows:minmax(0,1fr) minmax(0,1.03fr)}.move-card.checking{grid-template-rows:23px minmax(0,1fr) 42px 24px;row-gap:7px}.move-card.checking .move-label{grid-row:1;grid-column:1 / -1}.clue-feedback{grid-row:2;grid-column:1 / -1;margin:0;padding:12px;min-height:0;display:flex;flex-direction:column;justify-content:center}.tess-check-title{font-size:13px;gap:8px}.tess-check-title .tess-shape{width:35px;height:35px}.clue-feedback h2{font-size:21px;line-height:1.2;margin-top:8px;display:block}.clue-feedback p{font-size:16px;line-height:1.4;margin-top:9px}.move-card.checking .flow-next{grid-row:3;grid-column:1 / -1}.revision-link{grid-row:4;grid-column:1 / -1;margin:0;font-size:13px;min-height:24px}.review-partner{font-size:14px}.review-partner .tess-shape{width:35px;height:35px}}
@media(max-height:650px){body{overflow:auto}#app{height:auto;min-height:100dvh}.bureau-home{min-height:720px}.case-arrival{min-height:760px}}

@media(min-width:761px) and (max-width:1100px){.home-case{padding:12px;gap:6px}.home-case-title{font-size:17px;line-height:1.25;gap:7px}.home-case-title .icon{width:20px;height:20px}.home-case>span:not(.case-stamp):not(.home-case-title){font-size:14px;line-height:1.35}.home-case small{display:none}.case-stamp{font-size:10px}}

/* Stable evidence: choosing and checking an answer never remounts the graph. */
.graph-card,.move-card,.plot,.tess-detective{animation:none!important}
.tess-shape,.tess-detective{object-fit:contain}
.shelf-controls{display:flex;align-items:center;gap:8px}.shelf-controls .secondary{min-width:44px;padding:4px 12px;font-size:24px}.shelf-controls span{font-size:14px}
.lesson-visual{width:100%;padding:12px 0}.visual-label{text-align:center;font-size:17px;margin:12px 0}.number-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.number-tiles span{font-size:30px;border:1px solid #b9cdbf;background:#eef5ed;border-radius:12px;text-align:center;padding:16px 8px}.comparison-rows{display:grid;gap:10px}.comparison-rows>div{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #d0ddcb;background:#f1f6ed;border-radius:12px;padding:14px 18px;font-size:20px}.comparison-rows b{font-size:24px;text-align:right}.lesson-table{width:100%;border-collapse:collapse;font-size:20px}.lesson-table th,.lesson-table td{padding:14px 10px;border-bottom:1px solid #b9cdbf;text-align:left}.lesson-table td{color:var(--teal);font-weight:600}.quartile-strip{display:flex}.quartile-strip span{width:25%;padding:35px 5px;background:#d1e5da;border:1px solid white;text-align:center;font-size:18px}.quartile-strip span:nth-child(even){background:#b9d6c6}.quartile-markers{display:flex;justify-content:space-evenly;padding:14px 0;font-size:19px;font-weight:600}.lesson-plot text{fill:#43594f}.home-files-title{gap:10px}
@media(max-width:760px){.shelf-controls{gap:5px}.shelf-controls .secondary{min-height:36px;min-width:36px;padding:0 8px}.home-files-title>span{font-size:11px}.lesson-visual{padding:2px 0}.visual-label{font-size:13px;margin:6px 0}.number-tiles{gap:5px}.number-tiles span{font-size:21px;padding:8px 2px}.comparison-rows{gap:5px}.comparison-rows>div{font-size:13px;padding:7px 9px;gap:8px}.comparison-rows b{font-size:16px}.lesson-table{font-size:13px}.lesson-table th,.lesson-table td{padding:8px 4px}.quartile-strip span{padding:18px 2px;font-size:12px}.quartile-markers{padding:8px 0;font-size:12px}.home-files-title h2{font-size:16px}}

.move-card .choice-prompt{display:none}.move-card .flow-next{flex-shrink:0}.move-card .choice-status{margin-bottom:10px}
.graph-card .lesson-plot .tick,.graph-card .lesson-plot .axis-label{font-size:27px}.graph-card .lesson-plot .median-label{font-size:23px}
@media(max-width:760px){.move-card .choice-status{margin-bottom:0}.graph-card .lesson-plot .tick,.graph-card .lesson-plot .axis-label{font-size:32px}.graph-card .lesson-plot .median-label{font-size:30px}}

/* Four substantive choices stay visible beside the evidence. */
.play-layout{grid-template-columns:minmax(0,1.3fr) minmax(340px,1fr)}
.observation-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.observation-choices .observation{align-items:flex-start;font-size:16px;line-height:1.3;padding:10px;min-height:76px;gap:8px}.observation-choices .choice-dot{width:21px;height:21px;font-size:14px;margin-top:1px}
.move-card h2{font-size:23px;margin-top:10px}.move-card .choice-status{font-size:12px;margin-top:8px;margin-bottom:6px}.hint-trigger{min-height:50px;margin-top:5px}.hint-trigger .tess-shape{width:48px;height:48px}.move-card .flow-next{min-height:44px;font-size:17px}
.teaching-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0}.teaching-pages .secondary{padding:0 10px;min-height:36px;min-width:36px;font-size:23px}.teaching-pages span{font-size:13px;text-align:center;color:var(--teal)}.feedback-topic{display:block;font-size:12px;letter-spacing:1px;color:var(--teal);margin-top:10px;font-weight:600}.clue-feedback p{font-size:17px;line-height:1.4;margin-top:7px}.clue-feedback h2{font-size:23px;margin-top:5px}.tess-check-title .tess-shape{width:68px;height:68px}.review-partner .tess-shape{width:80px;height:80px}.tess-welcome .tess-detective{width:235px;height:260px}.arrival-art .tess-detective{width:250px;height:285px}
@media(max-width:760px){
 .play-layout{grid-template-columns:1fr;grid-template-rows:minmax(0,.8fr) minmax(0,1.2fr)}
 .move-card{grid-template-rows:48px auto minmax(0,1fr) 16px 42px;row-gap:5px}.move-card h2{font-size:19px;margin:0}.move-label{align-self:center}.hint-trigger{margin:0;min-height:48px;gap:4px;font-size:11px}.hint-trigger .tess-shape{width:46px;height:46px}.hint-trigger span{max-width:85px}.observation-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.observation-choices .observation{font-size:16px;line-height:1.25;padding:8px;min-height:64px;gap:6px}.observation-choices .choice-dot{width:18px;height:18px;font-size:12px}.move-card .choice-status{font-size:11px;margin:0}.move-card .flow-next{font-size:16px;min-height:42px}
 .move-card.checking{grid-template-rows:23px minmax(0,1fr) 36px 42px 24px;gap:5px}.move-card.checking .teaching-pages{grid-column:1 / -1;grid-row:3;margin:0}.move-card.checking .flow-next{grid-row:4}.move-card.checking .revision-link{grid-row:5}.clue-feedback{padding:10px;justify-content:center}.tess-check-title .tess-shape{width:62px;height:62px}.clue-feedback h2{font-size:20px;margin-top:3px}.clue-feedback p{font-size:16px;line-height:1.35;margin-top:5px}.feedback-topic{font-size:11px;margin-top:5px}.tess-check-title{font-size:12px}.teaching-pages span{font-size:12px}.review-partner .tess-shape{width:64px;height:64px}
 .tess-welcome .tess-detective{width:90px;height:100px}.tess-welcome{grid-template-columns:90px 1fr}.arrival-art .tess-detective{width:76px;height:76px}.arrival-art{max-height:96px;min-height:96px}.home-files-title h2{font-size:15px}
}

@media(max-width:760px){
 .lesson-graph .legend,.lesson-graph .visual-label{display:none}
 .play-layout:has(.checking){grid-template-rows:minmax(0,.65fr) minmax(0,1.35fr)}
 .play-layout:has(.checking) .graph-instruction{display:none}
 .play-layout:has(.checking) .number-tiles span{padding:4px 2px}
 .clue-feedback{position:relative;padding:10px 12px;justify-content:center}
 .clue-feedback .tess-check-title{min-height:52px;height:52px;flex-shrink:0}
 .clue-feedback .tess-check-title .tess-shape{width:58px;height:58px}
 .clue-feedback h2{font-size:18px;line-height:1.15;margin-top:0}
 .clue-feedback .feedback-topic{display:none}
 .clue-feedback p{font-size:16px;line-height:1.3;margin-top:5px}
}

@media(max-width:760px){
 .play-layout{grid-template-rows:minmax(0,.65fr) minmax(0,1.35fr)}
 .lesson-graph:has(.comparison-rows) .readout{display:none}
 .case-regression .graph-instruction,.case-normal .graph-instruction{display:none}
 .number-tiles span{padding:6px 2px}
 .observation-choices{align-content:start}.observation-choices .observation{min-height:72px;height:auto}
}

@media(min-width:761px){.tess-welcome .tess-detective{height:clamp(165px,22dvh,260px);width:235px}}
@media(max-width:760px){.lesson-graph:has(.lesson-table) .readout{display:none}}

.studio-return{display:flex;justify-content:space-between;gap:12px;padding:6px 16px;font-size:13px;background:#f5f2e9}.studio-return a{color:#183d3c;text-decoration:underline}.studio-return a:focus-visible{outline:2px solid #183d3c;outline-offset:2px}
