:root{font-family:'Noto Sans KR',sans-serif;color:#292747;background:#faf7f0;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:0;color:inherit;background:#fffaf5;border-radius:18px;padding:12px 18px;font-weight:700;min-height:48px;transition:transform .15s,box-shadow .15s}button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 5px 15px #67608020}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #784cc9;outline-offset:3px}header{height:104px;display:flex;align-items:center;gap:32px;padding:20px 30px}a{color:inherit}.brand{font-size:30px;font-weight:900;text-decoration:none;white-space:nowrap}.logo{color:#9973e5;font-size:46px;vertical-align:middle}form{display:flex;align-items:center;gap:10px;background:white;border:2px solid #e8e2ee;border-radius:40px;padding:5px 8px 5px 20px;margin:auto;width:min(520px,45%);box-shadow:0 4px 0 #eae4ed}form>span{font-size:32px}input{border:0;background:transparent;min-width:0;flex:1;font-size:17px;outline:none}form button{background:#eee5fc}#about-button{background:#eee4fc}.playground{height:calc(100dvh - 104px);min-height:610px;display:grid;grid-template-columns:260px minmax(360px,1fr) 300px;gap:18px;padding:0 24px 24px}.library{background:#edf5e8;border-radius:28px;padding:22px 16px;overflow:auto}.library h2{font-size:23px;margin:0 0 20px}.folders{display:grid;grid-template-columns:1fr 1fr;gap:12px}.folder{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 5px;border:2px solid transparent;background:#fffaf3;border-radius:20px;font-size:16px}.folder.active{border-color:#aa7beb;background:#eee3fb}.folder-picture{height:62px;width:82px;position:relative;display:grid;place-items:center;font-size:30px;background:var(--folder);border-radius:6px 12px 12px 12px;box-shadow:0 4px 0 #00000009;margin-top:9px}.folder-picture:before{content:'';position:absolute;top:-8px;left:0;width:36px;height:12px;border-radius:7px 7px 0 0;background:var(--folder)}.library-heading{display:flex;align-items:center;justify-content:space-between;margin-top:18px}.library-heading h3{margin:8px 0}.library-heading button{font-size:11px;padding:6px;min-height:32px}.work{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:2px solid #b78de8;background:#fff;border-radius:18px;padding:9px}.work img{width:84px;height:64px;object-fit:cover;border-radius:12px}.work span{display:block;font-size:12px;color:#726680;font-weight:500}.library-note{font-size:15px;text-align:center;color:#71806c;margin-top:24px;line-height:1.8}#catalog-status{font-size:14px;line-height:1.8;color:#6c6873}.workspace{display:flex;flex-direction:column;min-height:0}.workspace-heading{display:flex;align-items:center;justify-content:space-between;padding:10px 8px 16px;gap:12px}h1{font-size:29px;margin:0}.eyebrow{font-size:12px;color:#827890;margin:0 0 5px}.badge{font-size:12px;white-space:nowrap;background:#ffffffb3;border-radius:20px;padding:8px 12px}#viewer{position:relative;flex:1;min-height:300px;border-radius:30px;background:radial-gradient(ellipse at center,#eef8ff,#cce6f7);overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff90}#canvas-container{position:absolute;inset:0}canvas{display:block;touch-action:none}.viewer-top,.viewer-bottom{position:absolute;left:20px;right:20px;display:flex;align-items:center;justify-content:space-between;pointer-events:none;z-index:2}.viewer-top{top:16px}.viewer-bottom{bottom:18px;font-size:14px}.viewer-bottom small{font-size:11px;color:#617685}.viewer-top button,.viewer-bottom button{pointer-events:auto;background:#ffffffb8;font-size:12px;padding:10px;min-height:40px}.views{display:flex;gap:6px}#load-status{position:absolute;inset:0;display:grid;place-items:center;background:#e8f3f9;z-index:3}.controls{display:flex;justify-content:center;gap:22px;padding:18px 0 12px}.controls button{font-size:23px;min-width:140px;border-radius:32px;box-shadow:0 4px 0 #0000000b}#prev{background:#d7eee7}#next{background:#9970e4;color:white}#play{min-width:66px;width:66px;background:#b18af0;color:white;border-radius:50%}#step-list{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.step-item{padding:0;min-height:34px;min-width:34px;width:34px;height:34px;font-size:12px;background:#e4dfec;border-radius:50%}.step-item>span:last-child{display:none}.step-item.current{background:#9a70e0;color:white;box-shadow:0 0 0 4px #eaddfc}.step-item.done{background:#d9e9dc}.instructions{background:#eee5fa;border-radius:28px;padding:26px 22px;display:flex;flex-direction:column;gap:14px;align-self:stretch;overflow:auto}.step-heading{display:flex;align-items:baseline;gap:10px;font-weight:800}.step-heading strong{font-size:52px}.step-heading>span:first-child{font-size:14px}#step-title{margin:0;font-size:13px;color:#796a91}#instruction{font-size:24px;line-height:1.6;margin:0;word-break:keep-all}#hint{font-size:14px;line-height:1.7;margin:0;color:#736a80;word-break:keep-all}.finished{width:100%;height:140px;object-fit:contain;background:#ffffff75;border-radius:20px}.image-caption{font-size:11px;color:#82738e;text-align:center;margin-top:-9px}#replay{font-size:20px;background:#fffaff;box-shadow:0 3px 0 #d9cbe8}.speed{display:flex;align-items:center;justify-content:space-between;font-size:13px}.speed select{border:0;padding:7px;border-radius:10px;background:#ffffffb0;color:inherit}#animation-status,#step-count{font-size:12px;color:#786d89}.progress-track{height:6px;background:#ddd0ec;border-radius:10px;margin-top:-8px}#progress-fill{height:100%;background:#9b71dc;border-radius:10px}dialog{border:0;border-radius:25px;width:min(540px,90vw);padding:26px;line-height:1.9;color:inherit;box-shadow:0 20px 80px #30204433}dialog::backdrop{background:#30204455}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-heading h2{margin:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}@media(min-width:1500px){.playground{grid-template-columns:290px 1fr 330px;gap:24px}.finished{height:190px}}@media(max-width:1100px){header{gap:14px;padding:16px;height:90px}.brand{font-size:23px}.playground{height:calc(100dvh - 90px);grid-template-columns:210px minmax(300px,1fr) 245px;padding:0 12px 16px;gap:12px}.library{padding:18px 12px}.library h2{font-size:20px}.folder-picture{width:65px}.instructions{padding:20px 16px}#instruction{font-size:20px}.controls{gap:12px}.controls button{min-width:105px;font-size:19px}.workspace-heading .badge{display:none}.finished{height:115px}}@media(max-width:800px){header{flex-wrap:wrap;height:auto;padding:12px;gap:10px}.brand{font-size:23px}form{order:3;width:100%;max-width:none}#about-button{margin-left:auto}.playground{height:auto;min-height:0;grid-template-columns:1fr;padding:0 12px 18px}.library{padding:14px}.library h2{font-size:18px;margin-bottom:12px}.folders{grid-template-columns:repeat(4,1fr);gap:6px}.folder{font-size:12px;padding:8px 3px}.folder-picture{height:40px;width:52px;font-size:23px}.library-note{display:none}.library-heading{margin-top:8px}.work{max-width:300px}.workspace{min-height:520px}#viewer{height:360px;flex:auto}.instructions{display:grid;grid-template-columns:1fr auto;gap:10px}.step-heading{grid-column:1/-1}.step-heading strong{font-size:35px}#instruction,#hint,#step-title{grid-column:1/-1}.finished,.image-caption{display:none}#replay{font-size:16px}#step-count,.progress-track{grid-column:1/-1}.viewer-bottom{font-size:12px;left:12px;right:12px}.controls button{min-width:100px}}
@media(min-width:801px) and (max-height:800px){header{height:82px;padding:12px 24px}.playground{height:calc(100dvh - 82px);min-height:480px}.library{padding:16px 12px}.library h2{margin-bottom:12px;font-size:21px}.folder{padding:8px 4px}.folder-picture{height:45px;width:64px;font-size:25px}.library-note{margin-top:12px}.instructions{padding:18px;gap:9px}.step-heading strong{font-size:38px}.finished{height:100px}#instruction{font-size:20px}#hint{font-size:12px}.controls{padding:12px 0 10px}.controls button{min-height:48px;font-size:20px}.workspace-heading{padding-bottom:12px}#viewer{min-height:250px}}
/* Blender-rendered paper illustrations, spacious classroom layout. */
body{background:radial-gradient(ellipse at 3% 100%,#e9efce 0,transparent 25%),radial-gradient(ellipse at 98% 100%,#e2edcf 0,transparent 24%),#fffaf1}
.brand{letter-spacing:-1.4px;font-size:34px}.logo{display:inline-block;width:56px;height:56px;background:url('assets/vehicles.png') center/cover;font-size:0;vertical-align:middle;transform:rotate(-9deg)}
header{padding-left:28px;padding-right:28px}form{box-shadow:0 4px 0 #ece5ed,0 8px 20px #73608908}#about-button{border:1px solid #e5d6f6;box-shadow:0 4px 0 #ddd0ed;padding-inline:25px}
.playground{grid-template-columns:280px minmax(360px,1fr) 310px;gap:22px;padding-inline:20px}
.library{background:linear-gradient(140deg,#eff7e9,#e8f0df);box-shadow:inset 0 1px 0 #fff;padding:24px 16px;position:relative}.library h2{font-size:25px;letter-spacing:-1px}.folders{gap:12px}.folder{background:linear-gradient(#fffdf8,#fff8ee);padding:6px 5px 15px;gap:0;border-radius:23px;box-shadow:0 3px 0 #d4dec74a;font-size:19px;overflow:hidden}.folder.active{background:linear-gradient(#f7f0ff,#e6d8fa);border:3px solid #ab78f1;box-shadow:inset 0 0 0 3px #ffffff80;padding:5px 4px 14px}.folder-art{display:block;width:100%;height:118px;object-fit:contain;filter:drop-shadow(0 5px 3px #61564b16)}.library-heading h3{font-size:15px;color:#77766e}.work{border:1px solid #d9c9ea;background:#ffffffc9;font-size:16px}.library-note{font-size:16px;color:#88917c}.workspace-heading{padding:12px 12px 18px}h1{font-size:34px;letter-spacing:-1px}.eyebrow{display:none}#viewer{background:radial-gradient(ellipse at 50% 45%,#f1faff 0,#d3ebfa 60%,#c5e1f5 100%);border-radius:32px;box-shadow:inset 0 2px 0 #ffffff90}.viewer-top>.badge{background:#ffffff65;color:#557182}.viewer-bottom{bottom:22px;color:#37466d}.viewer-bottom button{background:linear-gradient(#f5fbff,#e0edfb);box-shadow:0 4px 0 #b4cfe055;border:1px solid #ffffff90;font-size:14px;padding-inline:15px}.controls{gap:28px;padding-top:22px}.controls button{min-width:165px;font-size:26px;padding:12px 25px;border:2px solid #ffffff7a;box-shadow:0 5px 0 #9884b620, inset 0 2px 0 #ffffff80}#prev{background:linear-gradient(#e7faf2,#cdece1)}#next{background:linear-gradient(#b08aef,#9165d6)}#play{min-width:74px;width:74px;height:74px;background:linear-gradient(#bb98f4,#9d72e1)}.step-item{width:24px;min-width:24px;height:24px;min-height:24px;font-size:10px}.instructions{background:linear-gradient(140deg,#f3ebff,#e9ddf9);padding:28px 24px;gap:18px;box-shadow:inset 0 2px 0 #ffffff90;position:relative}.step-heading{gap:7px}.step-heading strong{font-size:60px}#instruction{font-size:26px;font-weight:800}#step-title{display:none}.finished{background:linear-gradient(120deg,#fff9ff,#efe7fa);height:160px;border:1px solid #ffffff80}#replay{border:1px solid #ffffff;box-shadow:0 4px 0 #d6c7e9;font-size:23px;background:linear-gradient(#fffaff,#f0e8fc)}.instructions:after{content:'';position:absolute;right:-2px;bottom:-7px;width:135px;height:142px;background:url('assets/bunny.png') center/contain no-repeat;pointer-events:none}.instructions .progress-track{margin-bottom:80px}.speed,#animation-status,#step-count{position:relative;z-index:1}
@media(min-width:801px) and (max-height:800px){.folder-art{height:85px}.folder{font-size:16px;padding-bottom:9px}.folder.active{padding-bottom:8px}.library{padding:18px 14px}.library h2{font-size:22px}.instructions{padding:20px;gap:12px}.step-heading strong{font-size:44px}#instruction{font-size:22px}.finished{height:105px}.instructions:after{height:85px;width:85px}.instructions .progress-track{margin-bottom:40px}.controls{padding-top:14px;gap:20px}.controls button{font-size:22px;min-width:140px}#play{min-width:58px;width:58px;height:58px}}
@media(min-width:801px) and (max-width:1100px){.playground{grid-template-columns:220px minmax(300px,1fr) 255px;gap:14px}.folder-art{height:90px}.folder{font-size:15px}.library h2{font-size:20px}.brand{font-size:27px}h1{font-size:28px}.controls button{min-width:110px}.instructions{padding:18px}#instruction{font-size:21px}}
@media(max-width:800px){.playground{grid-template-columns:1fr;gap:14px;padding:0 12px 18px}.brand{font-size:25px}.logo{width:38px;height:38px}.library{padding:14px}.library h2{font-size:19px}.folder-art{height:66px}.folder{font-size:12px;padding-bottom:8px}.folder.active{padding-bottom:7px}.folders{gap:7px}.instructions{padding:18px;gap:12px}.instructions:after{display:none}.instructions .progress-track{margin-bottom:0}h1{font-size:28px}#instruction{font-size:22px}.controls{gap:12px}.controls button{min-width:105px;font-size:20px;padding:10px 15px}#play{min-width:58px;width:58px;height:58px}.step-heading strong{font-size:38px}.workspace{min-height:540px}.folder-art{margin-top:-4px}}
@media(min-width:801px){.instructions{overflow:hidden;gap:12px}.instructions:after{right:12px;bottom:10px;width:112px;height:120px}.instructions .progress-track{margin-bottom:45px;flex-shrink:0}.finished{height:135px;flex-shrink:1}.step-heading strong{font-size:54px}.library{overflow-x:hidden}}
@media(min-width:801px) and (max-height:800px){.instructions{gap:8px}.finished{height:90px}.step-heading strong{font-size:40px}.instructions:after{height:70px;width:70px}.instructions .progress-track{margin-bottom:25px}}
.fold-label{position:absolute;z-index:4;pointer-events:none;padding:6px 10px;background:#fff5df;border:1px solid #e7b879;border-radius:12px;font-size:12px;white-space:nowrap;color:#8b5429;transform:translate(-50%,-50%)}.fold-label.target{background:#fff0f5;border-color:#e7bacb;color:#985b77}
#works{display:grid;gap:9px}.work.active{outline:2px solid #a878e7}.work{min-width:0}.work>div{min-width:0}#step-list select{max-width:100%;border:1px solid #ded1ed;border-radius:14px;padding:9px;background:#fffafc;color:#514768;font:inherit;font-size:12px}#step-list label{font-size:12px;display:flex;align-items:center;gap:8px}#viewer .fold-label{display:none}
#viewer .fold-label:not([hidden]){display:block;background:#fff9e9;box-shadow:0 2px 6px #69451b18;font-weight:700;font-size:12px}.fold-label.target{background:#fff0f6!important}#guide-toggle[aria-pressed=true]{background:#fff0cb}.views{flex-wrap:wrap;justify-content:flex-end}#guide-toggle{color:#98612f!important;font-size:11px!important}@media(max-width:800px){.viewer-top{left:10px;right:10px;gap:5px}.viewer-top>.badge{font-size:10px;padding:6px}.views{gap:4px}.views button{padding:7px;font-size:10px;min-height:34px}#viewer .fold-label:not([hidden]){font-size:10px;padding:5px 7px}}

#library-toggle{display:none}@media(max-width:800px){#library-toggle{display:block;width:100%;text-align:left;background:#fffaf3;min-height:44px;padding:10px 14px}.library-folded>*:not(#library-toggle){display:none!important}.workspace{min-height:0}#viewer{flex:none;height:clamp(260px,39dvh,360px);min-height:260px}.workspace-heading{padding:5px 10px 10px}.controls{padding:12px 0 10px}.instructions{gap:7px;padding:14px 18px}#instruction{font-size:18px;line-height:1.5}#hint{font-size:12px}.step-heading strong{font-size:27px}.viewer-bottom{bottom:12px}.viewer-bottom small{display:none}#step-list{margin-bottom:3px}}

#paper-button{white-space:nowrap;background:#fff9e8;border:1px solid #e4cb9d;color:#79582d;min-height:40px;font-size:12px;padding:8px 12px;pointer-events:auto}#paper-dialog{width:min(590px,calc(100vw - 24px));max-height:92dvh;padding:20px;overflow:auto}.paper-preview-row{display:flex;align-items:center;gap:18px;margin:12px 0}.paper-preview-row canvas{width:80px;height:80px;border-radius:8px;box-shadow:3px 4px 0 #00000015}.paper-preview-row p{font-size:12px;margin:3px 0;line-height:1.6}.paper-tabs{display:flex;gap:8px;margin-bottom:12px}.paper-tabs button{flex:1;background:#eee7f6;padding:9px}.paper-tabs [aria-selected=true]{background:#9c75db;color:white}#paper-styles,#paper-colors{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.paper-style,.paper-color{border:2px solid transparent;min-width:0;padding:6px;background:#faf6ef;border-radius:13px;font-size:12px;display:flex;flex-direction:column;align-items:center;gap:4px}.paper-style canvas{width:100%;height:45px;border-radius:5px}.paper-color{min-height:58px;gap:2px}.color-chip{width:25px;height:25px;border:1px solid #0002;border-radius:50%}.paper-style[aria-pressed=true],.paper-color[aria-pressed=true]{border-color:#9266d2;background:#eee3fb;box-shadow:inset 0 0 0 1px white}.paper-footer{display:flex;justify-content:space-between;gap:12px;margin-top:14px}.paper-footer button{padding:8px 15px;font-size:13px}#paper-done{background:#9c75db;color:white}@media(max-width:800px){#paper-dialog{padding:15px}.viewer-top{align-items:flex-start}#paper-button{font-size:10px;padding:7px;min-height:34px}.paper-tabs button{font-size:12px}.paper-preview-row{margin:9px 0}.paper-style,.paper-color{font-size:10px}#paper-styles,#paper-colors{gap:6px}.paper-style canvas{height:36px}}

#canvas-container canvas{cursor:grab}#canvas-container canvas.dragging{cursor:grabbing}

#about-dialog{width:min(1120px,calc(100vw - 32px));height:min(760px,92dvh);padding:22px;overflow:hidden}#about-dialog[open]{display:flex;flex-direction:column;gap:14px}.help-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.help-header p{font-size:12px;color:#80728e;margin:0}.help-header h2{font-size:25px;margin:2px 0 0;line-height:1.4}.help-header button{flex-shrink:0}.help-pages{display:flex;gap:6px}.help-page{flex:1;min-width:0;padding:8px 5px;font-size:12px;min-height:40px;background:#f1ebf7}.help-page[aria-current=step]{background:#9870db;color:white}.help-body{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:22px;min-height:0;flex:1;overflow:auto;align-items:center}#help-picture{padding:0;background:#f5f2ed;border:1px solid #e3dbe9;border-radius:17px;overflow:hidden;width:100%;min-width:0;align-self:center}#help-picture img{display:block;width:100%;height:auto}#help-picture span{display:block;font-size:12px;padding:8px;color:#6a558b}.help-explanation{align-self:center}#help-intro{font-size:14px;line-height:1.65;margin:0 0 14px;color:#635a70}#help-items{list-style:none;margin:0;padding:0;display:grid;gap:13px}#help-items li{display:flex;align-items:flex-start;gap:10px}.help-number{background:#df574d;color:white;flex-shrink:0;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;font-size:14px;font-weight:800}#help-items strong{font-size:16px;line-height:1.6}#help-items p{font-size:13px;line-height:1.7;margin:3px 0 0;word-break:keep-all}.help-navigation{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #eee6f5;padding-top:12px}.help-navigation button{min-width:130px;background:#ede4fa}.help-navigation #help-next{background:#9870db;color:white}#help-count{font-size:13px;color:#85758e}#help-zoom{width:min(1400px,96vw);max-height:94dvh;padding:14px;overflow:auto}#help-zoom img{display:block;width:100%;height:auto;margin-top:12px}#help-zoom h2{font-size:18px}@media(max-width:800px){#about-dialog{width:calc(100vw - 20px);height:94dvh;padding:14px;gap:10px!important}.help-header h2{font-size:20px}.help-header p{font-size:10px}.help-header button{min-height:38px;padding:8px 12px}.help-pages{gap:4px}.help-page{font-size:9px;line-height:1.5;padding:5px 2px;min-height:36px}.help-body{display:flex;flex-direction:column;align-items:stretch;gap:12px}#help-picture{flex:none}#help-picture span{padding:4px;font-size:10px}.help-explanation{align-self:stretch}#help-intro{font-size:12px;margin-bottom:10px}#help-items{gap:10px}#help-items strong{font-size:14px}#help-items p{font-size:12px;line-height:1.6}.help-number{width:23px;height:23px;font-size:12px}.help-navigation{padding-top:8px}.help-navigation button{min-width:96px;font-size:13px;padding:8px 12px;min-height:42px}}

#help-title:focus{outline:none}

#finished-open{padding:0;background:#ffffff75;border:1px solid #ffffff;border-radius:20px;overflow:hidden;flex-shrink:1;min-height:0;width:100%;display:block}#finished-open .finished{display:block;border:0;border-radius:0;background:transparent;height:110px;width:100%}#finished-open span{display:block;font-size:11px;padding:6px;color:#6c538c}#finished-dialog{width:min(980px,calc(100vw - 24px));height:min(750px,92dvh);padding:18px;overflow:hidden}#finished-dialog[open]{display:flex;flex-direction:column;gap:12px}#finished-dialog h2{font-size:23px;margin:0}#finished-dialog .dialog-heading p{font-size:12px;margin:4px 0 0;color:#77678b}#finished-viewport{flex:1;min-height:200px;position:relative;background:radial-gradient(ellipse,#f1faff,#cde7f7);border-radius:24px;overflow:hidden}#finished-viewport canvas{cursor:grab;touch-action:none}#finished-viewport canvas.dragging{cursor:grabbing}.finished-tools{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.finished-tools button{background:#eee4fa;font-size:13px;padding:8px 14px;min-height:42px}@media(min-width:801px) and (max-height:800px){#finished-open .finished{height:75px}}@media(max-width:800px){#finished-open{grid-column:1/-1;padding:8px 12px}#finished-open .finished{display:none}#finished-open span{padding:0;font-size:12px}#finished-dialog{padding:12px}#finished-dialog h2{font-size:18px}.finished-tools{gap:5px}.finished-tools button{font-size:11px;padding:8px 10px}}

.finished-content{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);gap:12px}#finished-dialog.is-decorating .finished-content{grid-template-columns:minmax(0,1fr) 310px}#finished-editor{min-height:0;overflow:auto;border:1px solid #e3d6f2;border-radius:20px;background:#fffdf9;padding:10px}#finished-editor #paper-dialog{position:static;width:100%;max-height:none;margin:0;padding:0;border:0;box-shadow:none;overflow:visible;background:transparent}#finished-editor .dialog-heading{display:none}#finished-editor .paper-preview-row{margin:0 0 8px}#finished-editor .paper-preview-row canvas,#finished-editor .paper-preview-row p{display:none}#finished-editor #paper-selection{font-size:12px}#finished-editor .paper-tabs button{font-size:11px;padding:5px;min-height:34px}#finished-editor .paper-tabs{margin-bottom:8px}#finished-editor .paper-color{min-height:48px;font-size:10px}#finished-editor .paper-style{font-size:10px}#finished-editor .paper-style canvas{height:32px}#finished-editor .paper-footer{margin-top:10px}#finished-editor .paper-footer button{font-size:11px;padding:6px 10px;min-height:36px}#finished-decorate{background:#9c75db;color:white}@media(max-width:800px){#finished-dialog.is-decorating .finished-content{grid-template-columns:1fr;grid-template-rows:minmax(140px,1fr) auto;gap:8px}#finished-dialog.is-decorating #finished-viewport{min-height:140px}#finished-editor{max-height:310px;padding:8px}#finished-editor #paper-colors{grid-template-columns:repeat(6,minmax(0,1fr))}#finished-editor .paper-color{min-height:42px;padding:3px;font-size:9px}#finished-editor .color-chip{width:20px;height:20px}#finished-editor .paper-style canvas{height:25px}#finished-editor .paper-style{padding:4px}#finished-editor .paper-preview-row{margin-bottom:5px}#finished-editor .paper-tabs{margin-bottom:5px}.finished-tools button{min-height:36px}}
@media(max-width:800px){#finished-editor .paper-style{min-height:0;font-size:9px;line-height:1.4;gap:3px}#finished-editor .paper-style canvas{height:20px}#finished-editor .paper-footer{position:sticky;bottom:0;background:#fffdf9;padding-top:4px}#finished-editor .paper-tabs button{line-height:1.4}#finished-editor #paper-selection{line-height:1.4}}

#instruction-details{display:none}
@media(min-width:801px){#instruction-details{display:block;margin-left:auto;min-height:28px;padding:4px 8px;font-size:11px;white-space:nowrap}#instruction{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;max-height:4.8em;flex-shrink:0}#hint{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex-shrink:0}}
@media(max-width:800px){
 html,body{height:100%;overflow:hidden}body{height:100dvh;display:flex;flex-direction:column}
 header{height:56px;min-height:56px;flex:none;padding:8px 12px;flex-wrap:nowrap;gap:8px}.brand{font-size:21px}.logo{width:30px;height:30px}header #search-form{display:none}#about-button{min-height:38px;padding:8px 12px;font-size:12px}
 .playground{height:auto;flex:1;min-height:0;display:grid;grid-template-columns:1fr;grid-template-rows:44px minmax(0,1fr) auto;gap:7px;padding:0 10px max(8px,env(safe-area-inset-bottom))}
 .library{padding:0;border-radius:16px;min-height:0;overflow:hidden}#library-toggle{height:44px;min-height:44px;padding:8px 14px}
 .library:not(.library-folded){position:fixed;inset:64px 10px max(12px,env(safe-area-inset-bottom));z-index:20;overflow:auto;padding:12px;box-shadow:0 12px 80px #30204455;border:2px solid white}.library:not(.library-folded) #library-toggle{background:#e9ddfa;margin-bottom:10px}.library:not(.library-folded) .folders{margin-top:8px}.library:not(.library-folded) #works{grid-template-columns:1fr 1fr}.library:not(.library-folded) .work{flex-direction:column;text-align:center;gap:5px}.library:not(.library-folded) .work img{height:64px;width:100%;object-fit:contain}.library:not(.library-folded) .library-heading{margin-top:8px}.library:not(.library-folded) #catalog-status{font-size:11px}
 .workspace{min-height:0;gap:0}.workspace-heading{padding:2px 5px 7px;min-height:30px}h1{font-size:20px;line-height:1.2}#viewer{flex:1;height:auto;min-height:120px;border-radius:22px}.controls{flex:none;gap:10px;padding:7px 0 6px}.controls button{min-height:42px;min-width:100px;font-size:18px;padding:7px 12px}#play{width:44px;height:44px;min-width:44px}.viewer-bottom{bottom:9px;font-size:10px}.viewer-bottom button{font-size:10px;padding:6px 8px;min-height:30px}.viewer-top{top:8px}.views button,#paper-button{min-height:30px;font-size:9px;padding:5px 7px}.views{gap:3px}#guide-toggle{font-size:9px!important}
 #step-list{flex:none;gap:5px;margin:0;min-height:20px}.step-item{min-width:20px;width:20px;min-height:20px;height:20px;font-size:9px}#step-list select{padding:4px 6px;max-width:230px;font-size:10px}#step-list label{font-size:10px}
 .instructions{display:grid;grid-template-columns:1fr 1fr 1fr;padding:9px 12px;gap:6px;border-radius:20px;overflow:hidden}.step-heading{grid-column:1/-1;gap:6px;align-items:center;line-height:1}.step-heading strong{font-size:23px}.step-heading>span:first-child{font-size:11px}.step-heading>span:last-of-type{font-size:12px}#instruction-details{display:block;margin-left:auto;min-height:28px;padding:4px 8px;font-size:10px;background:#fff9fc}#instruction{font-size:16px;line-height:1.4;grid-column:1/-1;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;max-height:67px}#hint,#animation-status,#step-count,.instructions>.progress-track{display:none}#finished-open{grid-column:auto;padding:7px 5px;height:36px;min-height:36px}#finished-open span{font-size:10px;line-height:1.2}#replay{font-size:12px;padding:6px 7px;min-height:36px;box-shadow:none}.speed{font-size:10px;display:flex;gap:4px;justify-content:center}.speed select{font-size:10px;padding:6px 3px;max-width:62px}
}
@media(max-width:800px) and (max-height:600px){header{height:44px;min-height:44px;padding-block:4px}.playground{grid-template-rows:36px minmax(0,1fr) auto;gap:4px}#library-toggle{height:36px;min-height:36px}.workspace-heading{min-height:24px;padding-bottom:4px}h1{font-size:17px}.instructions{padding:6px 10px;gap:4px}#instruction{font-size:14px;line-height:1.3;max-height:55px}.viewer-bottom>span{display:none}.controls{padding:4px 0}.controls button{min-height:36px;font-size:16px}#play{height:38px;width:38px;min-width:38px}.step-item{height:18px;min-height:18px;width:18px;min-width:18px}#step-list{min-height:18px}}
@media(max-width:800px) and (orientation:landscape){header{height:40px;min-height:40px}.playground{grid-template-columns:minmax(0,1fr) 240px;grid-template-rows:36px minmax(0,1fr)}.library{grid-column:2;grid-row:1}.workspace{grid-column:1;grid-row:1/3}.instructions{grid-column:2;grid-row:2;align-content:center}.workspace-heading{padding-top:0}.library:not(.library-folded){inset:45px 10px 8px}.viewer-top{gap:4px}.viewer-bottom{display:none}}

@media(max-width:800px){.library.library-folded #search-form{display:none}.library #search-form{display:flex;width:100%;margin:8px 0;min-height:38px}.library #search-form input{min-width:0;width:100%;font-size:13px}.library:not(.library-folded) .work{flex-direction:row;text-align:left;min-height:64px;padding:6px;gap:6px}.library:not(.library-folded) .work img{height:42px;width:42px}.library:not(.library-folded) .work strong{font-size:12px}.library:not(.library-folded) .folder{min-height:48px;padding:6px}.library-note{display:none}}

.work-pages{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:12px}.work-pages button{padding:7px 12px;min-height:36px}.work-pages span{font-size:12px}@media(max-width:800px){.library:not(.library-folded) .folders{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.library:not(.library-folded) .folder-art{height:28px;width:38px}.library:not(.library-folded) .folder span{font-size:11px}.library:not(.library-folded)>h2{font-size:17px;margin:5px 0}.library:not(.library-folded) .work{font-size:12px}.library:not(.library-folded) .work span{font-size:10px}.library:not(.library-folded) .library-heading{margin:5px 0}}

@media(max-width:800px){.library:not(.library-folded)>h2{display:none}.library:not(.library-folded) #library-toggle{margin-bottom:2px}.library:not(.library-folded) #search-form{height:38px;min-height:38px;padding:2px 5px 2px 10px;margin:6px 0}.library:not(.library-folded) #search-form button{height:30px;min-height:30px;padding:4px 10px;font-size:12px}.library:not(.library-folded) .folder{height:44px;min-height:44px;flex-direction:row;gap:3px;padding:3px;border-radius:13px}.library:not(.library-folded) .folder-art{width:25px;height:25px;margin:0}.library:not(.library-folded) .folder span{font-size:10px}.library:not(.library-folded) .folders{margin-top:4px}.library:not(.library-folded) .work{height:52px;min-height:52px;padding:4px}.library:not(.library-folded) .work img{width:32px;height:32px}.library:not(.library-folded) #catalog-status{display:none}.library:not(.library-folded) .library-heading h3{font-size:13px;margin:4px 0}.library:not(.library-folded) .work-pages button{min-height:30px;padding:4px 10px}}

@media(min-width:801px){.library .folder{height:105px;min-height:105px;padding:7px 4px;gap:3px;font-size:14px}.library .folder-art{height:57px;margin:0}.library #works{grid-template-columns:repeat(2,minmax(0,1fr))}.library .work{height:70px;padding:5px;gap:4px;font-size:12px}.library .work img{width:35px;height:35px}.library .work span{font-size:10px}.library h2{font-size:20px;margin-bottom:12px}}

@media(min-width:801px){.library .folder{height:95px;min-height:95px}.library .folder-art{height:47px}.library .library-note{display:none}}

#pan-mode{background:#fffaf0}#pan-mode[aria-pressed=true]{background:#e1cef5;box-shadow:inset 0 0 0 2px #b68bda}.viewer-bottom{gap:8px}.viewer-bottom>span{margin-right:auto}@media(max-width:800px){.viewer-bottom>span{display:none}.viewer-bottom{display:flex;justify-content:space-between;left:10px;right:10px}#pan-mode{font-size:10px;padding:6px 9px;min-height:32px}}

#palette-dialog{width:min(480px,calc(100vw - 28px));border:0;border-radius:24px;padding:24px;color:#292747}#palette-dialog p{line-height:1.7}#palette-dialog::backdrop{background:#29274755}

#viewer .fold-label:not([hidden]){font-size:11px;font-weight:500;padding:3px 6px;border-radius:7px;box-shadow:none;max-width:140px;white-space:normal;line-height:1.25;text-align:center}@media(max-width:800px){#viewer .fold-label:not([hidden]){font-size:10px;padding:2px 5px;max-width:112px}}
.site-footer{display:flex;align-items:center;justify-content:center;gap:18px;flex:none;min-height:34px;padding:3px 12px max(3px,env(safe-area-inset-bottom));font-size:12px;color:#685d75;background:#faf7f0}.site-footer nav{display:flex;gap:14px}.site-footer a{display:inline-flex;align-items:center;min-height:28px;text-underline-offset:3px}@media(min-width:801px){.playground{height:calc(100dvh - 138px);min-height:0;padding-bottom:10px}}@media(max-width:800px){.site-footer{gap:10px;font-size:10px;min-height:30px}.site-footer nav{gap:10px}.site-footer a{min-height:26px}.playground{padding-bottom:3px}}@media(max-width:350px){.site-footer{gap:6px;font-size:9px}.site-footer nav{gap:7px}}

#focus-view{flex-shrink:0;background:#eee4fc;min-height:40px;padding:8px 12px;font-size:13px}
.workspace-heading>.badge{margin-left:auto}
body.folding-expanded{height:100dvh;overflow:hidden}
body.folding-expanded>header,body.folding-expanded>.site-footer,body.folding-expanded .library{display:none}
body.folding-expanded .playground{position:fixed;inset:0;height:100dvh;min-height:0;padding:8px max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;gap:6px}
body.folding-expanded .workspace{display:contents}
body.folding-expanded .workspace-heading{grid-row:1;padding:0 4px;min-height:0}
body.folding-expanded h1{font-size:20px}
body.folding-expanded #viewer{grid-column:1;grid-row:2;height:auto;min-height:0}
body.folding-expanded .controls{grid-column:1;grid-row:3;padding:0;gap:12px;align-items:center}
body.folding-expanded .controls button{display:flex;align-items:center;justify-content:center;min-width:100px;min-height:44px;height:44px;font-size:20px;line-height:1;padding:6px 16px;white-space:nowrap}
body.folding-expanded #play{flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;font-size:22px}
body.folding-expanded #step-list{display:none}
body.folding-expanded .instructions{grid-column:1;grid-row:4;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px 16px;padding:8px 14px;overflow:hidden;border-radius:18px}
body.folding-expanded .instructions:after,body.folding-expanded .instructions>:not(.step-heading):not(#instruction):not(#hint):not(#replay){display:none}
body.folding-expanded .step-heading{grid-column:1;gap:5px;white-space:nowrap}
body.folding-expanded .step-heading strong{font-size:25px}
body.folding-expanded #instruction{grid-column:2;font-size:18px;line-height:1.4;max-height:2.8em;-webkit-line-clamp:2}
body.folding-expanded #instruction-details{display:block;min-height:32px}
@media(max-width:800px){#focus-view{font-size:11px;min-height:36px;padding:6px 9px}.workspace-heading{gap:6px}body.folding-expanded .instructions{grid-template-columns:1fr;gap:4px}body.folding-expanded .step-heading,body.folding-expanded #instruction{grid-column:1}body.folding-expanded #instruction{font-size:16px}body.folding-expanded .workspace-heading>.badge{display:none}}
@media(orientation:landscape) and (max-height:600px){body.folding-expanded .instructions{grid-template-columns:auto minmax(0,1fr)}body.folding-expanded .step-heading{grid-column:1}body.folding-expanded #instruction{grid-column:2;font-size:14px}body.folding-expanded .viewer-bottom>span{display:none}body.folding-expanded .workspace-heading h1{font-size:16px}body.folding-expanded .controls button{height:44px;min-height:44px;font-size:17px}body.folding-expanded #focus-view{min-height:32px}}

/* Keep the teaching cues available while expanding the same 3D viewer. */
body.folding-expanded .instructions{grid-template-columns:auto minmax(0,1fr) auto;gap:3px 12px}
body.folding-expanded .instructions>.step-heading{grid-column:1;grid-row:1/3}
body.folding-expanded #instruction{grid-column:2;grid-row:1}
body.folding-expanded .instructions>#hint{display:block;grid-column:2;grid-row:2;font-size:12px;line-height:1.4;max-height:2.8em;overflow:auto}
body.folding-expanded .instructions>#replay{display:block;grid-column:3;grid-row:1/3;min-height:40px;font-size:13px;padding:8px 12px;box-shadow:none;align-self:center}
@media(max-width:800px) and (orientation:portrait){
 body.folding-expanded .instructions{grid-template-columns:minmax(0,1fr) auto}
 body.folding-expanded .instructions>.step-heading{grid-column:1/-1;grid-row:1}
 body.folding-expanded #instruction{grid-column:1;grid-row:2}
 body.folding-expanded .instructions>#hint{grid-column:1;grid-row:3;font-size:11px}
 body.folding-expanded .instructions>#replay{grid-column:2;grid-row:2/4;padding:7px;font-size:11px}
}

/* Keep feedback visible when a mobile search produces no cards. */
@media(max-width:800px){
 .library:not(.library-folded) #catalog-status:not(:empty){display:block;margin:8px 4px;line-height:1.5}
 .speed{white-space:nowrap}
}
@media(max-width:800px) and (orientation:landscape){
 .instructions{grid-template-columns:1fr 1fr;align-content:center}
 .speed{grid-column:1/-1;justify-content:flex-end}
 #finished-dialog{height:calc(100dvh - 16px);gap:6px;padding:10px}
 #finished-dialog .dialog-heading p{display:none}
 #finished-dialog .dialog-heading button{min-height:32px;height:32px;width:32px;padding:4px}
 #finished-dialog.is-decorating .finished-content{grid-template-columns:minmax(0,1fr) minmax(240px,.85fr);grid-template-rows:minmax(0,1fr)}
 #finished-viewport,#finished-dialog.is-decorating #finished-viewport{min-height:0}
 #finished-editor{max-height:none;min-height:0}
 #finished-editor #paper-colors{grid-template-columns:repeat(8,minmax(0,1fr));gap:3px}
 #finished-editor .paper-color{min-height:36px;padding:2px;font-size:9px;line-height:11px;gap:1px}
 #finished-editor .color-chip{height:17px;width:17px}
 #finished-editor #paper-styles{gap:3px}
 #finished-editor .paper-preview-row{margin-bottom:3px;line-height:18px}
 #finished-editor .paper-footer{margin-top:4px}
 .finished-tools{flex-wrap:nowrap;gap:4px}
 .finished-tools button{padding:5px 8px;min-height:32px;font-size:10px;white-space:nowrap}
}
/* Retain the specialist lessons and all their material/hand guidance controls. */
body.native-lesson .playground{grid-template-columns:220px minmax(0,1fr)}
body.native-lesson .workspace{display:flex;flex-direction:column;min-height:0}
body.native-lesson #viewer{flex:1;height:auto;min-height:0;border-radius:22px}
body.native-lesson #viewer>:not(#native-lesson-frame):not(#native-lesson-error){display:none!important}
#native-lesson-error{position:absolute;inset:0;display:grid;place-content:center;padding:30px;background:#fffaf1;z-index:2}
body.native-lesson .workspace>.controls,body.native-lesson #step-list,body.native-lesson .instructions{display:none}
#native-lesson-frame{position:absolute;inset:0;width:100%;height:100%;border:0}
@media(max-width:800px){body.native-lesson .playground{display:flex;flex-direction:column}body.native-lesson .workspace{flex:1;min-height:0}body.native-lesson .workspace-heading{flex-shrink:0}body.native-lesson #viewer{min-height:0}}
body.native-lesson.folding-expanded .playground{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
body.native-lesson.folding-expanded .workspace{display:contents}

#native-lesson-error,#load-status{gap:14px;text-align:center;padding:20px}
#native-lesson-error button,#load-status button{justify-self:center;min-height:44px;background:#eee4fc}
.work[aria-pressed="true"]{background:#eee3fb;border-color:#8052c2}
