/* A small, tactile drawer cabinet: keep the reading surface quiet. */
:root{--paper:#fff9ec;--ink:#24493e;--green:#235844;--muted:#617367;--line:#d9d8c3;--white:#fffef9;--yellow:#f8d46b;--shadow:0 5px 0 #b0a78333}
body{background:radial-gradient(circle at 7% 15%,#ffeaa255 0,transparent 27%),radial-gradient(circle at 93% 45%,#d3ebef60 0,transparent 25%),var(--paper)}
header{padding-top:20px;padding-bottom:20px}.brand-mark{background:#285c48;box-shadow:0 3px 0 #153d2e;font-size:27px}.brand>span:last-child{font-weight:500}
.helper{object-fit:contain;display:block}.intro{padding-top:25px;padding-bottom:18px;align-items:center}.intro h1{font-size:39px}.intro p{margin-top:9px}.intro .eyebrow{font-size:13px;margin:0 0 9px;letter-spacing:.04em}.home-selector{display:flex;align-items:center;gap:17px}.home-helper{width:130px;height:130px}.time-block{display:block}.time-label{margin-bottom:10px}.segmented button{min-width:74px;padding:10px 14px}.segmented small{display:block;font-size:12px;margin-top:5px;font-weight:500}.segmented .active{background:var(--green);color:white;box-shadow:0 3px 0 #173c2e}.time-context{font-size:15px;color:#425e50;margin:14px 0 20px;line-height:1.7}.time-context span{display:block;font-size:13px;color:var(--muted)}
.cards{gap:20px}.card{border-radius:17px;border-color:#cfcbb5;box-shadow:0 6px 0 #c6baa94a}.card-top{height:135px;border-bottom:1px solid #00000010;justify-content:flex-end;padding:0 20px}.card .helper{width:130px;height:130px;align-self:flex-end;filter:drop-shadow(0 3px 2px #58442c12)}.card-num{top:24px;left:20px;background:#fffaf0cf;border:1px solid #ffffffb0;padding:8px 11px;border-radius:7px;color:var(--accent);font-size:14px;letter-spacing:0;opacity:1;transform:rotate(-3deg)}.card-content{padding:17px 19px 14px}.card h3{font-size:22px}.card p{font-size:15px}.card-meta{margin-top:12px;padding-top:10px}.handle{width:41px;height:8px;background:#e4d7b9;border:1px solid #8c7a56;box-shadow:0 2px 1px #68582c25}.complete-stamp{position:absolute;right:9px;top:8px;border:1px solid #427454;color:#2c6849;border-radius:20px;padding:4px 8px;font-size:12px;background:#fffef4ed;transform:rotate(5deg)}
.mustard{--tint:#f7df98;--accent:#866015}.orange{--tint:#f9d6a6;--accent:#9e541b}.blue{--tint:#cfe8ee;--accent:#365f83}.pink{--tint:#f3ccd0;--accent:#a0525a}.green{--tint:#c9e4ce;--accent:#337249}.lavender{--tint:#ded7ed;--accent:#6c508c}.card:hover{transform:translateY(-3px);box-shadow:0 9px 0 #c6baa94a}.shelf-tabs button{font-size:14px;min-height:40px}.shelf-heading{margin-top:12px;margin-bottom:12px}.shelf-heading h2 small{font-size:14px}
.activity-head{padding-bottom:12px}.activity-title h1{font-size:24px}.journey{display:flex;gap:16px;align-items:center;font-size:14px;padding-bottom:20px;font-weight:650}.journey>span{white-space:nowrap}.progress-track{height:8px;flex:1;border-radius:20px;background:#e5dfcd;overflow:hidden}.progress-track i{display:block;height:100%;background:#428368;border-radius:20px;transition:width .2s}.activity-layout{grid-template-columns:minmax(0,1fr) 252px}.puzzle-panel{box-shadow:0 5px 0 #b4ac951c;padding:24px 28px}.step-nav{display:flex;justify-content:space-between;gap:10px;margin:-8px 0 14px}.step-nav .text-button{font-size:13px}.task-title{font-size:24px}.task-desc{font-size:17px;color:#4f6256}.companion{display:flex;align-items:center;gap:4px;padding:10px 5px 13px}.companion .helper{width:92px;height:108px;flex-shrink:0}.companion b{font-size:15px}.companion p{font-size:14px;line-height:1.65;margin-top:7px}.aside-box{background:#f0f0e1;border:1px solid #d5dbc9;padding:19px}.aside-box h2{font-size:15px}.itinerary ol{list-style:none;display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:0 0 15px;padding:0}.itinerary button{font-size:13px;background:#fffdf4;border:1px solid #d8dbc8;border-radius:8px;width:100%;padding:8px 6px}.itinerary .now button{border:2px solid #447b60;padding:7px 5px;background:#e3eee0}.itinerary .passed button{background:#d5e9d0}.itinerary p{font-size:13px}
.choice{display:flex;align-items:start;gap:10px;font-size:17px}.option-mark{color:var(--accent);font-size:15px;font-weight:800;min-width:19px;flex-shrink:0}.answer-fields{display:grid;gap:18px;margin-top:23px}.answer-fields>label{font-size:16px;line-height:1.6;font-weight:650;display:block}.answer-fields input{display:block;margin-top:8px;width:100%;max-width:220px;min-height:50px;padding:10px 14px;border:1px solid #aebbab;border-radius:10px;background:#fffaf0;font:700 24px Pretendard,sans-serif;color:var(--ink)}.answer-fields textarea{display:block;margin-top:8px;font-weight:400;resize:vertical;min-height:90px}.writing-note{background:#f3eedf;padding:11px 14px;border-radius:9px;font-size:14px;line-height:1.7;margin-top:15px;color:#6b644d}.rule-note{background:var(--tint);padding:11px 14px;border-radius:9px;font-size:15px;line-height:1.7;margin-top:15px;color:var(--accent)}.reference{border:1px solid #d6dfd8;border-radius:12px;margin-top:20px;overflow:hidden}.reference summary{padding:13px 16px;background:#e9f0e6;font-weight:750;cursor:pointer;font-size:16px}.reference .notice-paper{margin:0;border:0;border-radius:0;background:#f7faf1;padding:12px 18px}.reference p{display:flex;gap:9px;font-size:15px;line-height:1.75;padding:7px 0;border-bottom:1px dashed #d8ddcc}.reference p:last-child{border:0}.reference p>span{display:inline-flex;flex-shrink:0;border:1px solid #c4d2be;border-radius:50%;height:22px;width:22px;align-items:center;justify-content:center;font-size:12px}
.number-collection{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;border:1px dashed #cabc8b;background:#fffbeb;border-radius:12px;padding:14px;margin-top:16px;font-size:14px}.number-collection span{border:1px solid #ccb266;padding:7px 15px;border-radius:8px;font-size:24px;font-weight:750;background:#f6df9f}.number-collection small{width:100%;text-align:center;font-size:13px}.collect{display:block;margin:auto}.conditions{margin-bottom:20px}.slot{width:85px;height:96px;font-size:44px}.number-card{height:64px;width:62px;font-size:30px}.number-cards{margin:20px 0}.lunch-grid{max-width:325px;gap:5px}.lunch-cell{aspect-ratio:1.15}.shape-board{max-width:var(--board-width);width:100%}.shape-controls{margin:13px 0}.shape-palette .piece{min-width:60px}.robot-grid{max-width:310px;margin-top:20px}.robot-cell{aspect-ratio:1.05}.robot-cell.blocked{background:repeating-linear-gradient(45deg,#dfc4b9,#dfc4b9 5px,#efd9ca 5px,#efd9ca 10px);color:#975846;border-color:#bf9987}.robot-avatar{width:58px;height:58px;max-width:96%;max-height:90%;object-fit:contain;margin-top:8px}.commands{gap:6px}.command{width:50px;height:60px}.robot-tools{display:flex;justify-content:center;align-items:center;gap:20px;margin-top:14px}.map-label{font-size:12px;z-index:1}.solution-tiling{display:grid;gap:5px;max-width:350px;margin:20px auto}.solution-tiling span{aspect-ratio:1;display:grid;place-items:center;border-radius:6px;font-weight:800;font-size:24px}
.image-open{position:relative;width:100%;padding:0;display:block;background:none;margin:18px 0;text-align:center}.image-open .observation-picture{margin:0;width:100%;max-height:340px;border:1px solid #d4caaf;background:#eee8d3}.image-open>span{position:absolute;bottom:8px;right:8px;background:#fffef5ec;border:1px solid #d0cbb4;font-size:12px;padding:7px 9px;border-radius:8px}.zoomed-picture{width:100%;height:auto;max-height:68dvh;object-fit:contain}.modal.wide{max-width:800px}.modal-top{display:flex;justify-content:space-between;align-items:start;gap:15px;position:sticky;top:-29px;background:var(--white);padding:9px 0;z-index:2}.modal-top h2{margin:0}.modal-top .secondary{padding:8px 14px;min-height:38px;font-size:14px}.notebook{border:1px solid #dbdacb;background:#faf8ed;border-radius:10px;padding:18px;margin-top:15px}.notebook h3{font-size:17px;margin-bottom:14px}.notebook b{font-size:14px;color:var(--muted)}.notebook p{white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 16px}.teacher-note{background:#fff3cb;padding:16px;border-radius:10px}.modal h3{font-size:18px;margin:24px 0 10px}.record-table{border-collapse:collapse;width:100%;font-size:14px}.record-table th,.record-table td{border-bottom:1px solid var(--line);padding:10px 5px;text-align:left}.record-table th:last-child,.record-table td:last-child{white-space:nowrap}.modal details summary{cursor:pointer;font-weight:700;padding:10px 0}.done-helper{height:140px;width:160px;margin:0 auto 12px}.done-panel{padding-top:25px;margin-top:30px}.done-panel .small{margin-top:20px;font-size:14px}.done-panel .primary{margin-top:20px}.rest{margin-top:40px}.rest .done-helper{height:150px}.action-progress{font-size:14px;color:var(--muted)}.feedback,.hint-body{scroll-margin-bottom:115px}.feedback{border:1px solid #e3c778}.feedback.good{border-color:#bbd3b2}.hint-body p{margin-top:8px}.self-check input{flex-shrink:0}
@media(max-width:1100px){.actionbar{max-width:690px}.activity-layout{padding-bottom:100px}.step-nav{margin-top:-7px}.side{min-width:0}.shape-board{max-width:var(--board-width)}.actionbar .primary,.actionbar .secondary{min-height:47px;padding:11px 18px}.actionbar{bottom:10px}.puzzle-panel{padding:21px}.home-helper{width:115px;height:115px}}
@media(min-width:801px) and (max-width:1100px) and (max-height:850px){.shape-board{max-width:245px}.shape-controls{margin:10px 0}.puzzle-panel[data-type="shape"] .task-area{margin-top:12px}.puzzle-panel[data-type="shape"] .step-nav{margin-bottom:5px}.puzzle-panel[data-type="shape"] .shape-palette .piece svg{height:31px}.robot-grid{max-width:245px}.activity-head{padding-top:15px}.journey{padding-bottom:13px}}
@media(max-width:800px){.activity-layout{grid-template-columns:1fr}.intro{flex-direction:row;gap:15px}.intro h1{font-size:34px}.home-selector{gap:0}.home-helper{display:none}.time-block{display:block}.card-top{padding-right:10px}.card .helper{width:116px;height:125px}.card-num{font-size:12px;left:11px;top:13px;padding:6px 7px}.card h3{font-size:20px}.companion{width:100%;justify-content:center}.companion .helper{height:90px;width:90px}.itinerary{display:none}.side .aside-box{min-width:200px}.home-selector .time-label{font-size:13px}.cards{gap:14px}.card-content{padding:14px}}
@media(max-width:600px){header{padding:15px 18px}.brand{font-size:18px;gap:8px}.header-right .text-button{font-size:13px}.intro{flex-direction:column;align-items:start;padding:23px 0 8px;gap:18px}.intro h1{font-size:32px}.intro h1 br{display:none}.intro h1 span{margin-left:8px}.intro .eyebrow{font-size:12px}.intro p{font-size:15px}.home-selector{width:100%;align-items:center;justify-content:space-between}.home-helper{display:block;width:88px;height:88px;order:2}.home-selector .time-block{display:block}.time-label{font-size:13px;margin-bottom:8px}.segmented button{min-width:62px;padding:7px 12px}.segmented small{font-size:12px;margin-top:3px}.shelf-heading h2{font-size:19px}.shelf-heading>.text-button{font-size:13px}.shelf-tabs{gap:6px;margin:8px 0}.shelf-tabs button{padding:7px 11px;font-size:13px;min-height:36px}.time-context{font-size:14px;margin:12px 0 17px}.time-context span{font-size:12px}.cards{gap:14px}.card{grid-template-columns:106px 1fr;min-height:145px}.card-top{min-height:145px;padding:0;height:100%;align-items:center;justify-content:center}.card .helper{width:104px;height:112px;align-self:center;margin-top:22px}.card-num{top:9px;left:8px;font-size:11px;transform:rotate(-3deg);padding:3px 6px}.card h3{font-size:21px;line-height:1.3}.card-content{padding:15px 13px}.card p{font-size:14px;line-height:1.5}.card-meta{font-size:12px;gap:5px}.card .handle{width:28px;height:7px}.complete-stamp{top:auto;bottom:5px;right:5px;font-size:10px;padding:3px 5px}.activity-title{align-items:start;gap:7px}.activity-title h1{font-size:21px;line-height:1.35}.activity-title .tag{font-size:12px;white-space:nowrap}.activity-head{gap:8px}.activity-head>.text-button{font-size:12px;white-space:nowrap}.journey{gap:10px;font-size:12px;padding-bottom:13px}.puzzle-panel{padding:18px 16px}.task-title{font-size:23px}.task-desc{font-size:16px;line-height:1.7}.step-nav{margin-bottom:12px}.step-nav .text-button{font-size:12px}.actionbar{padding:10px 12px;max-width:calc(100% - 24px);bottom:max(8px,env(safe-area-inset-bottom))}.actionbar .primary,.actionbar .secondary{padding:10px 13px;font-size:15px;min-height:47px}.action-progress{font-size:12px}.activity-layout{padding-bottom:90px}.answer-fields{gap:16px}.answer-fields label{font-size:15px}.writing-note{font-size:13px}.choice{font-size:16px;padding:13px}.choice.selected{padding:12px}.side .aside-box{min-width:100%}.reference .notice-paper{padding:10px 12px}.reference p{font-size:14px}.rule-note{font-size:14px}.slot{width:73px;height:88px;font-size:40px}.safeslots{gap:10px}.number-card{width:56px;height:61px}.number-cards{gap:11px}.conditions li{font-size:15px}.number-collection{font-size:13px}.commands{gap:4px}.command{width:37px;height:54px;font-size:24px}.command small{font-size:11px}.robot-avatar{width:45px;height:45px}.robot-grid{max-width:280px}.robot-tools{gap:15px}.image-open .observation-picture{max-height:280px}.shape-controls{gap:7px}.shape-board{max-width:var(--board-width)}.shape-cell{font-size:20px}.shape-palette{gap:8px}.shape-palette .piece{min-width:53px}.shape-palette svg{width:37px;height:37px}.modal{padding:20px}.modal-top{top:-20px}.modal h2{font-size:21px}.modal p{font-size:15px}.record-table{font-size:13px}.done-panel h1{font-size:27px}.bottom-note{padding-bottom:24px}.notebook{padding:15px}.zoomed-picture{max-height:68dvh}}
@media(max-width:370px){.intro h1{font-size:28px}.home-helper{width:65px}.card{grid-template-columns:94px 1fr}.card .helper{width:92px}.card h3{font-size:19px}.brand{font-size:16px}.header-right .text-button{font-size:12px}.card-meta .handle{display:none}.shape-controls .text-button{font-size:11px}}
@media print{body{background:white!important}#print-sheet .print-step{break-inside:avoid;border-bottom:1px solid #aaa;padding:12px 0 24px}#print-sheet .print-step h2{margin:16px 0 10px}#print-sheet .print-step pre{font-size:17px;line-height:1.5;margin:10px 0}#print-sheet .print-step li{font-size:15px;line-height:1.8}#print-sheet blockquote{font-size:13px;line-height:1.7;margin:12px 0;border:1px solid #aaa;padding:12px}#print-sheet .print-line{height:19mm;border-bottom:1px dashed #aaa}#print-sheet .print-picture{width:85%;max-height:220px;object-fit:contain}#print-sheet .answer-page{break-before:page}#print-sheet .answer-page section{break-inside:avoid}.actionbar{display:none!important}}
@media(min-width:601px){.card{display:flex;flex-direction:column}.card-top{width:100%;flex-shrink:0}.card-content{flex:1;display:flex;flex-direction:column;width:100%}.card-meta{margin-top:auto;padding-top:12px}.card-content>p{padding-bottom:12px}}
.evidence-title{font-size:15px;font-weight:700;border-top:1px solid var(--line);padding-top:18px;margin-top:20px}
@media screen and (min-width:900px){
 .puzzle-panel:has(>:is(.reference,.reference-group)):not([data-type="write"]){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:18px;align-items:start}
 .puzzle-panel:has(>:is(.reference,.reference-group)):not([data-type="write"])>.step-nav,.puzzle-panel:has(>:is(.reference,.reference-group)):not([data-type="write"])>.step-label,.puzzle-panel:has(>:is(.reference,.reference-group)):not([data-type="write"])>.task-title,.puzzle-panel:has(>:is(.reference,.reference-group)):not([data-type="write"])>.task-desc,.puzzle-panel:has(>:is(.reference,.reference-group)):not([data-type="write"])>.feedback,.puzzle-panel:has(>:is(.reference,.reference-group)):not([data-type="write"])>.hint-body,.puzzle-panel:has(>:is(.reference,.reference-group)):not([data-type="write"])>.actionbar{grid-column:1/-1}
 .puzzle-panel:has(>:is(.reference,.reference-group)):not([data-type="write"])>:is(.reference,.reference-group){grid-column:1;grid-row:5}
 .puzzle-panel:has(>:is(.reference,.reference-group)):not([data-type="write"])>.choices,.puzzle-panel:has(>:is(.reference,.reference-group)):not([data-type="write"])>.answer-fields{grid-column:2;grid-row:5}
 .puzzle-panel:has(>:is(.reference,.reference-group)):not([data-type="write"])>.grid-caption{grid-column:2}
 .puzzle-panel:has(>:is(.reference,.reference-group)):not([data-type="write"]) .reference .notice-paper{padding:10px 12px}
 .puzzle-panel:has(>:is(.reference,.reference-group)):not([data-type="write"]) .choice{font-size:15px;padding:12px;line-height:1.6}
 .puzzle-panel:has(>:is(.reference,.reference-group)):not([data-type="write"]) .choice.selected{padding:11px}
}
.new-label{display:block;font-size:11px;font-weight:600;margin-top:4px;letter-spacing:.04em}.data-table-wrap{margin:18px 0;max-width:100%}.data-table{border-collapse:separate;border-spacing:0;width:100%;font-size:15px;border:1px solid #c8d6cb;border-radius:10px;overflow:hidden;table-layout:fixed;background:#fffef7}.data-table caption{font-size:14px;text-align:left;font-weight:700;padding:0 0 9px;line-height:1.6}.data-table td,.data-table th{padding:11px 9px;border-right:1px solid #dce4d7;border-bottom:1px solid #dce4d7;line-height:1.5;overflow-wrap:anywhere;text-align:center}.data-table th{background:#edf3e6;font-weight:700}.data-table tr>:last-child{border-right:0}.data-table tbody tr:last-child>*{border-bottom:0}.data-chart{margin:20px 0;background:#f0f6f2;border:1px solid #cbded5;border-radius:12px;padding:18px}.data-chart figcaption{font-size:16px;font-weight:750;margin-bottom:17px;line-height:1.5}.chart-row{display:grid;grid-template-columns:24px 1fr 46px;align-items:center;gap:12px;margin:12px 0;font-size:15px}.chart-track{height:25px;background:#e2eae3;border-left:2px solid #6b8877}.chart-track i{height:100%;display:block;background:#5e99ac;border-radius:0 5px 5px 0}.data-chart p{font-size:13px;color:#516959;margin-top:15px}.order-work{margin:20px 0}.order-label{font-size:15px;font-weight:750}.order-slots{list-style:none;padding:0;display:grid;gap:9px;margin:12px 0 20px}.order-slots button{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:13px;background:#e5efd9;border:1px solid #97b47c;border-radius:10px;color:#30452d;font-size:16px;line-height:1.6}.order-slots b{border-radius:50%;background:#46704a;color:white;min-width:28px;height:28px;text-align:center}.order-slots span{flex:1}.order-slots small{font-size:12px;white-space:nowrap}.order-empty{border:1px dashed #bdc9b5;border-radius:10px;padding:17px;text-align:center;font-size:14px;color:#657560}.order-options{display:grid;gap:8px}.order-options .choice{margin:0}.order-options button:disabled{opacity:.45}.order-work>.text-button{margin-top:10px}.shelf-tabs{flex-wrap:wrap}
@media(max-width:600px){.data-table{font-size:13px}.data-table td,.data-table th{padding:10px 5px}.data-table caption{font-size:13px}.order-slots button{font-size:15px;padding:11px 9px;gap:8px}.data-chart{padding:15px}.new-label{font-size:10px;margin-top:2px}.card-num:has(.new-label){top:6px}.card-top:has(.new-label) .helper{margin-top:36px}.card:has(.new-label) .complete-stamp{bottom:3px}}
