:root{font-family:Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui,sans-serif;color:#26353a;background:#e4e8e6;font-synthesis:none}
*{box-sizing:border-box}
html,body{height:100%;min-width:350px;margin:0}
body{background:#e4e8e6}
button{font:inherit}
.sim-shell{height:100dvh;min-height:570px;display:grid;grid-template-rows:64px minmax(0,1fr) 78px;overflow:hidden}
.sim-header{position:relative;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 clamp(18px,3vw,42px);background:#243338;color:#f8f8f5;border-bottom:1px solid #566367}
.identity{display:flex;align-items:baseline;gap:18px;min-width:0}
.identity-small{font-size:13px;font-weight:600;color:#aebbbd;white-space:nowrap}
.identity-main{font-size:20px;letter-spacing:-.7px;white-space:nowrap;font-weight:750}
.identity-main span{font-weight:400;color:#c3cbcb}
.header-controls{display:flex;align-items:center;gap:18px}
.lesson-state{font-size:14px;font-weight:650;white-space:nowrap;color:#e2e8e5}
.state-divider{display:inline-block;width:1px;height:14px;vertical-align:middle;background:#7a898b;margin:0 11px}
.utility-control{display:flex;align-items:center;gap:7px;height:42px;padding:0 10px;border:1px solid transparent;border-radius:4px;background:transparent;color:#d8e1e0;cursor:pointer;font-size:13px;font-weight:650;white-space:nowrap}
.utility-control:hover{background:#34464a}
.utility-control:focus-visible{outline:3px solid #ecbf67;outline-offset:1px}
.utility-control[aria-pressed="false"]{color:#9aa8a9}
.utility-control svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.help-button{display:grid;place-items:center;width:38px;height:38px;font-size:18px;font-weight:500;border:1px solid #7c8d8d;border-radius:50%;padding:0}
.simulation{position:relative;min-height:0;background:#e1e6e4;overflow:hidden}
.experiment-heading{position:absolute;z-index:3;top:clamp(18px,2.7vh,32px);left:clamp(18px,3vw,42px);color:#25373d;pointer-events:none}
.experiment-line{display:flex;align-items:center;gap:13px}
.phase-marker{border-left:3px solid #cc9345;padding-left:8px;font-size:12px;font-weight:750;color:#486065;white-space:nowrap}
.experiment-heading h1{font-size:clamp(21px,2.2vw,29px);margin:0;letter-spacing:-.85px;font-weight:750}
.experiment-heading p{font-size:15px;margin:9px 0 0 76px;color:#56686b;font-weight:450}
.play-area{position:absolute;inset:0;overflow:hidden;display:grid;place-items:center}
.scene-art{position:absolute;inset:25px 0 0;display:grid;place-items:center}
.scene-art svg{display:block;width:min(100%,1420px);height:100%;max-width:none;min-width:0;filter:drop-shadow(0 20px 25px rgb(25 48 43 / .09))}
.loading-art{font-size:15px;color:#5b7474}
.scene-detail{position:absolute;right:clamp(18px,3vw,42px);bottom:24px;display:flex;gap:9px;align-items:center;font-size:12px;font-weight:550;color:#58716f;pointer-events:none}
.detail-dash{display:block;width:15px;height:1px;background:#58716f}
.help-note{position:absolute;right:clamp(16px,3vw,42px);top:22px;max-width:min(335px,calc(100% - 32px));z-index:4;padding:24px 24px 22px;border:1px solid #cbd4d2;background:#fff;color:#273b3e;box-shadow:0 14px 28px rgb(31 55 50 /.13);border-radius:4px}
.help-note[hidden]{display:none}
.help-note h2{margin:0 0 12px;font-size:17px;letter-spacing:-.25px}
.help-note p{font-size:14px;line-height:1.65;margin:0 0 9px}
.help-note p.preview-note{color:#6d7878;font-size:12px;margin-top:16px;padding-top:14px;border-top:1px solid #e1e7e4}
.analysis-bar{position:relative;z-index:4;display:flex;align-items:center;gap:32px;background:#fcfcfa;color:#2a3b3f;border-top:1px solid #d1d8d4;padding:0 clamp(18px,3vw,42px);box-shadow:0 -2px 12px rgb(41 58 53 / .05)}
.analysis-title{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:750;white-space:nowrap}
.measure-mark{display:inline-block;width:6px;height:16px;background:#25636b}
.readout{display:flex;align-items:center;justify-content:space-evenly;flex:1;min-width:0}
.reading{display:flex;align-items:baseline;gap:13px;min-width:0;padding:0 25px;min-height:30px;border-left:1px solid #d8dfdc}
.reading-label{font-size:14px;font-weight:500;color:#647474;white-space:nowrap}
.reading strong{font-size:17px;font-weight:750;color:#244d54;white-space:nowrap}
.model-caveat{font-size:12px;white-space:nowrap;color:#7f8c89;border-bottom:1px dotted #9aa9a5}
#spatial-labels{transition:opacity .18s ease}
.scene-art:not(.show-labels) #spatial-labels{opacity:0;visibility:hidden}
@media(min-width:1500px){.scene-art svg{width:min(100%,1530px)}}
@media(max-width:1050px){.identity-small{display:none}.sim-shell{grid-template-rows:58px minmax(0,1fr) 84px}.analysis-bar{gap:16px}.reading{padding:0 12px;gap:6px;flex-direction:column;justify-content:center}.experiment-heading h1{font-size:22px}.experiment-heading p{margin-left:0}.scene-art{inset:35px 0 0}.model-caveat{display:none}}
@media(max-width:690px){.sim-shell{grid-template-rows:56px minmax(0,1fr) 92px}.sim-header{padding:0 12px}.identity-main{font-size:16px}.identity-main span{display:none}.header-controls{gap:4px}.lesson-state{font-size:12px}.utility-control{font-size:12px;padding:0 7px}.utility-control svg{display:none}.help-button{font-size:17px;width:32px;height:32px}.experiment-heading{top:15px;left:14px}.phase-marker{display:none}.experiment-heading h1{font-size:19px}.experiment-heading p{font-size:12px}.scene-art{inset:70px -95px 0}.scene-detail{display:none}.analysis-bar{padding:0 12px;gap:8px}.analysis-title{font-size:12px}.readout{justify-content:space-between}.reading{padding:0 6px}.reading-label{font-size:11px}.reading strong{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

/* 2-B-3B-1 architectural review: no atmospheric filters or decorative glow */
.scene-art{inset:53px 0 4px}
.scene-art svg{filter:none}
.scene-art:not(.show-zones) #logic-grid{display:none}
.scene-art.show-zones #logic-grid{display:inline}
@media(max-width:1050px){.scene-art{inset:68px 0 4px}}
@media(max-width:690px){.scene-art{inset:85px -40px 4px}}

/* Stage 2-B-3B-3: keep the scene large and uncluttered; no nested cards. */
.experiment-heading{top:19px}
.experiment-heading p{max-width:650px}
.scene-art{inset:72px 2px 1px}
.scene-art svg{width:min(100%,1430px);height:100%;filter:none}
.scene-detail{bottom:10px;font-size:11px}
@media(max-width:1050px){.scene-art{inset:82px -8px 0}}
@media(max-width:690px){.scene-art{inset:92px -65px 0}}

/* 3-A: single compact tool dock, not a card-based dashboard. */
.experiment-dock{position:absolute;z-index:5;left:clamp(18px,3vw,42px);bottom:22px;display:flex;align-items:center;gap:12px;max-width:calc(100% - 42px);padding:9px 11px;background:#f9fbf9f2;border:1px solid #C9D5D2;border-radius:8px;box-shadow:0 5px 17px rgba(20,39,38,.12);color:#263b40}
.dock-set{display:flex;align-items:center;gap:5px;white-space:nowrap}
.dock-label{font-size:12px;font-weight:700;color:#526469;margin-right:5px}
.dock-divider{width:1px;align-self:stretch;background:#D6DEDC;margin:1px 2px}
.switch-chip,.blind-chip,.reset-control{height:38px;min-width:56px;border:1px solid #D0DAD8;border-radius:5px;background:#fff;color:#354F54;cursor:pointer;font-size:13px;font-weight:650;padding:0 11px;white-space:nowrap;touch-action:manipulation}
.switch-chip{display:inline-flex;align-items:center;gap:8px}
.switch-indicator{width:8px;height:8px;border-radius:50%;background:#879999;box-shadow:0 0 0 1px #6F8988}
.switch-chip[aria-pressed="true"]{background:#ECF5EF;border-color:#8AAC98;color:#235842}
.switch-chip[aria-pressed="true"] .switch-indicator{background:#4C9C6D;box-shadow:0 0 0 1px #3C895C}
.blind-chip[aria-pressed="true"]{background:#275B62;border-color:#275B62;color:#fff}
.reset-control{background:transparent;border-color:transparent;color:#596E71;text-decoration:underline;text-underline-offset:3px;font-size:12px}
.experiment-dock button:hover,.blind-popover button:hover{filter:brightness(.965)}
.experiment-dock button:focus-visible,.blind-popover button:focus-visible{outline:3px solid #D09C42;outline-offset:2px}
.blind-popover{position:absolute;z-index:9;display:flex;gap:5px;align-items:center;padding:8px;border-radius:7px;background:#fff;border:1px solid #AFC4C1;box-shadow:0 8px 24px rgba(24,50,53,.19);white-space:nowrap}
.blind-popover[hidden]{display:none}
.popover-heading{font-size:14px;font-weight:800;padding:0 7px 0 4px;color:#2B4E56}
.blind-popover button{font:inherit;font-size:13px;font-weight:700;min-height:38px;padding:0 9px;color:#40585B;background:transparent;border:1px solid #DEE6E3;border-radius:4px;cursor:pointer}
.blind-popover button[aria-pressed="true"]{background:#295C62;color:white;border-color:#295C62}
.blind-popover .popover-close{border:0;font-size:23px;font-weight:400;color:#6B7D7F;padding:0 5px}
.scene-art .svg-hit-area{fill:transparent;stroke:transparent;stroke-width:4px;pointer-events:all;cursor:pointer}
.scene-art .light-hotspot:hover .svg-hit-area,.scene-art .blind-hotspot:hover .svg-hit-area{fill:rgba(40,128,135,.10);stroke:rgba(30,100,110,.55);stroke-width:2px}
.scene-art .blind-hotspot.selected .svg-hit-area{fill:rgba(40,128,135,.10);stroke:#357784;stroke-width:3px}
.scene-art .light-hotspot:focus-visible .svg-hit-area,.scene-art .blind-hotspot:focus-visible .svg-hit-area{stroke:#D7A144;stroke-width:5px}
.scene-art .light-hotspot,.scene-art .blind-hotspot{outline:none}
.reading strong[data-status="warning"]{color:#AB572F}
.reading strong[data-status="good"]{color:#23654D}
.scene-detail{display:none}
@media(max-width:1250px){.experiment-dock{gap:7px;padding:7px}.dock-label{font-size:11px;margin-right:2px}.switch-chip,.blind-chip{padding:0 8px;height:36px;font-size:12px}.reset-control{padding:0 3px}}
@media(max-width:900px){.experiment-dock{left:12px;bottom:9px;max-width:calc(100% - 24px);flex-wrap:wrap;justify-content:center}.dock-divider{display:none}.switch-chip,.blind-chip{min-height:39px}.experiment-heading p{font-size:12px}}
@media(max-width:630px){.experiment-dock{bottom:5px;gap:4px}.dock-set{gap:3px}.dock-label{display:none}.switch-chip,.blind-chip{font-size:11px;padding:0 6px}.blind-popover{max-width:calc(100% - 16px)}.blind-popover button{font-size:11px;padding:0 6px}}

/* 3-B: small weather toggle near the experiment, not another card panel. */
.play-area[data-weather="cloudy"] { background-color:#DCE3E5; transition:background-color .7s ease; }
.play-area[data-weather="sunny"] { background-color:#E1E6E4; transition:background-color .7s ease; }
.weather-switch{position:absolute;right:clamp(18px,3vw,42px);top:18px;z-index:6;display:flex;align-items:center;gap:4px;padding:5px;background:#F9FBF9;border:1px solid #CDD7D5;border-radius:6px;box-shadow:0 3px 10px #23393b15}
.weather-caption{font-size:12px;font-weight:700;color:#66787A;margin:0 7px}
.weather-choice{display:flex;align-items:center;justify-content:center;gap:6px;min-height:39px;min-width:74px;border-radius:4px;border:1px solid transparent;background:transparent;color:#40595E;cursor:pointer;padding:0 9px;font-size:13px;font-weight:700;touch-action:manipulation}
.weather-choice[aria-pressed="true"]{background:#285C64;color:#fff}
.weather-choice svg{height:18px;width:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.weather-choice:focus-visible{outline:3px solid #D09C42;outline-offset:2px}
@media(max-width:1050px){.weather-switch{top:63px;right:12px}.experiment-heading p{max-width:475px}}
@media(max-width:690px){.weather-switch{top:85px;right:8px;padding:3px}.weather-caption{display:none}.weather-choice{min-width:57px;min-height:35px;padding:0 5px;font-size:12px}.weather-choice svg{width:15px}}
@media(prefers-reduced-motion:reduce){.play-area[data-weather], [data-weather-pane], [data-glare-marker], #daylight-feedback ellipse, #floor-feedback polygon{transition:none!important}}


/* 4-A: explicit sunny-plan actions, no permanent sidebar or nested cards. */
.plan-tools{position:absolute;z-index:7;top:77px;right:clamp(18px,3vw,42px);display:flex;flex-direction:column;align-items:flex-end;gap:5px;max-width:min(440px,calc(100% - 36px));color:#344E53}
.plan-eyebrow{font-size:12px;font-weight:750;letter-spacing:.01em;color:#546E72}
.plan-buttons{display:flex;gap:6px}
.plan-buttons button{min-height:42px;border-radius:5px;padding:0 13px;font-size:13px;font-weight:750;border:1px solid #B5C6C5;cursor:pointer;white-space:nowrap;touch-action:manipulation}
.plan-save{color:#fff;background:#285C64;border-color:#285C64!important}
.plan-load{color:#274F57;background:#fff}
.plan-buttons button:disabled{cursor:not-allowed;opacity:.5}
.plan-buttons button:focus-visible,.confirmation-dialog button:focus-visible{outline:3px solid #D09C42;outline-offset:2px}
.plan-summary{max-width:100%;font-size:12px;font-weight:600;text-align:right;line-height:1.3;background:#E1E8E5E8;padding:3px 6px;border-radius:3px}
.plan-status{font-size:12px;color:#255D53;max-width:100%;text-align:right;line-height:1.3;min-height:16px}
.plan-status:empty{min-height:0}
.confirmation-dialog{border:1px solid #B7C7C7;border-radius:8px;padding:25px 28px;max-width:min(390px,calc(100vw - 32px));color:#263b40;background:#fff;box-shadow:0 18px 48px #263b4029}
.confirmation-dialog::backdrop{background:rgba(26,43,46,.34)}
.confirmation-dialog h2{font-size:19px;margin:0 0 10px}
.confirmation-dialog p{font-size:14px;line-height:1.6;margin:0 0 22px}
.confirmation-actions{display:flex;justify-content:flex-end;gap:8px}
.confirmation-actions button{min-height:42px;border-radius:5px;border:1px solid #CBD7D5;background:#fff;color:#344F53;font-weight:700;padding:0 18px;cursor:pointer}
.confirmation-actions #overwrite-confirm{background:#285C64;color:white;border-color:#285C64}
@media(max-width:1050px){.plan-tools{top:119px;right:12px;gap:3px}.plan-eyebrow{display:none}.plan-buttons button{font-size:12px;min-height:38px;padding:0 9px}.plan-summary{font-size:11px}.plan-status{font-size:11px}}
@media(max-width:690px){.plan-tools{top:137px;right:8px;max-width:calc(100% - 16px)}.plan-buttons button{font-size:11px;min-height:35px;padding:0 7px}.plan-status{max-width:260px}}

/* 4-B: weather is teacher-paced; the scene remains the primary object. */
.weather-choice:disabled{cursor:default;opacity:1}
.weather-choice:disabled:not([aria-pressed="true"]){opacity:.48}
.phase-tools{display:flex;gap:6px;align-items:center}
.phase-action,.phase-compare{font-size:13px;font-weight:730;min-height:39px;padding:0 12px;border-radius:5px;cursor:pointer;white-space:nowrap;touch-action:manipulation}
.phase-action{background:#286771;border:1px solid #286771;color:#fff}
.phase-compare{background:#fff;color:#285761;border:1px solid #AFC2C4}
.phase-tools button:disabled{opacity:.46;cursor:not-allowed}
.phase-tools button:focus-visible{outline:3px solid #D09C42;outline-offset:2px}
.comparison-dialog{width:min(1190px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:24px 26px 20px;background:#F7F9F8;color:#26383C;border:1px solid #C5D2D0;border-radius:9px;box-shadow:0 22px 65px #0D262744;overflow:auto}
.comparison-dialog::backdrop{background:#162A30AA}
.comparison-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.comparison-eyebrow{font-size:12px;color:#567076;font-weight:700}
.comparison-top h2{font-size:23px;letter-spacing:-.5px;margin:5px 0 0}
#comparison-close{border:0;background:transparent;color:#4D6268;font:inherit;font-weight:700;font-size:14px;min-height:42px;padding:0 10px;cursor:pointer}
.comparison-tabs{display:flex;gap:20px;border-bottom:1px solid #CFDAD9;margin:15px 0 17px}
.comparison-tabs button{background:transparent;border:0;border-bottom:3px solid transparent;font:inherit;font-size:14px;font-weight:700;color:#62777B;padding:8px 2px 10px;cursor:pointer}
.comparison-tabs button[aria-pressed="true"]{border-bottom-color:#26616B;color:#234C54}
.comparison-tabs button:disabled{opacity:.36;cursor:not-allowed}
.comparison-scenes{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
.comparison-side{min-width:0}
.comparison-side h3{font-size:16px;margin:0 0 9px;font-weight:750}
.comparison-scene{background:#E7EEEC;border:1px solid #D6E1DE;border-radius:4px;aspect-ratio:1280/740;overflow:hidden}
.comparison-scene svg{width:100%;height:100%;display:block}
.comparison-readout{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:13px 0 0}
.comparison-readout span{display:flex;flex-direction:column;gap:3px;min-width:0}
.comparison-readout small{font-size:12px;color:#698080}
.comparison-readout strong{font-size:15px;font-weight:760;color:#2A4C54}
.comparison-readout strong[data-status="warning"]{color:#B25D33}
.comparison-readout strong[data-status="good"]{color:#286A52}
.comparison-caveat{font-size:12px;color:#667B7C;margin:17px 0 0;line-height:1.45}
@media(max-width:1050px){.plan-tools{top:110px}.phase-action,.phase-compare{font-size:12px;padding:0 8px;min-height:36px}.comparison-dialog{padding:16px}.comparison-scenes{gap:10px}.comparison-readout strong{font-size:13px}}
@media(max-width:730px){.plan-tools{top:135px}.phase-tools{gap:4px}.phase-action,.phase-compare{font-size:11px;padding:0 6px}.comparison-scenes{grid-template-columns:1fr}.comparison-dialog{max-height:calc(100dvh - 12px)}.comparison-scene{max-height:240px}.comparison-side h3{font-size:14px}}

/* 6-A: compact lesson switching, not a second dashboard. */
[hidden]{display:none!important}
.back-to-school{display:inline-flex;align-items:center;justify-content:center;min-height:40px;color:#DDE8E5;font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap;padding:0 4px}
.back-to-school:hover{text-decoration:underline}
.lesson-picker-label{font-size:12px;color:#B5C8C6;font-weight:650}
.lesson-picker{appearance:auto;height:38px;max-width:165px;border:1px solid #7B9797;background:#213E42;color:white;border-radius:4px;font-family:inherit;font-weight:700;font-size:13px;padding:0 8px;cursor:pointer}
.lesson-picker:focus-visible,.back-to-school:focus-visible{outline:3px solid #E7B65A;outline-offset:2px}
.sim-shell[data-lesson="6"] .plan-tools,.sim-shell[data-lesson="7"] .plan-tools{display:none}
.sim-shell[data-lesson="6"] .dock-set[aria-label="블라인드 전체 조절"],
.sim-shell[data-lesson="6"] .dock-divider{display:none}
.sim-shell[data-lesson="9"] .experiment-dock,.sim-shell[data-lesson="9"] .weather-switch{display:none}
.sim-shell[data-lesson="9"] .plan-tools{top:78px}
.sim-shell[data-lesson="9"] .plan-buttons,.sim-shell[data-lesson="9"] #apply-cloudy,.sim-shell[data-lesson="9"] #cloudy-save{display:none}
.sim-shell[data-lesson="9"] .phase-tools{justify-content:flex-end}
.sim-shell[data-lesson="6"] .weather-switch,.sim-shell[data-lesson="7"] .weather-switch{top:18px}
.sim-shell[data-lesson="6"] .scene-art,.sim-shell[data-lesson="7"] .scene-art{inset:32px 0 12px}
@media(max-width:1100px){
 .identity-small{display:none}
 .header-controls{gap:6px}
 .lesson-picker{max-width:142px;font-size:12px}
 .back-to-school{font-size:12px}
 .sim-shell[data-lesson="6"] .weather-switch,.sim-shell[data-lesson="7"] .weather-switch{top:56px}
}
@media(max-width:760px){
 .lesson-picker-label{display:none}
 .lesson-picker{max-width:122px;min-height:40px}
 .back-to-school{font-size:11px}
 .sim-header{gap:6px}
 .sim-shell[data-lesson="9"] .plan-tools{top:128px}
}
@media(max-width:550px){.header-controls{gap:1px}.lesson-picker{max-width:100px;font-size:11px;padding:0 2px}.back-to-school{max-width:46px;text-align:center;line-height:1.2}}

/* 6-A tablet touch targets and heading rhythm */
@media (min-width:768px) and (max-width:1200px){
 .experiment-heading p{max-width:460px;line-height:1.45}
 .switch-chip,.blind-chip,.reset-control{min-height:42px}
 .plan-buttons button,.phase-action,.phase-compare{min-height:41px}
}
