@font-face{font-family:StudioRound;src:url('assets/fonts/fredoka-latin-500-normal.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap}
/* A viewport-sized drawing desk. Only libraries and dialogs scroll. */
html:has(.studio-body){height:100%;overflow:hidden}
.studio-body{--ink:#34354d;--accent:#6752b7;--line:#ddddea;background:#eef0f7;color:var(--ink);height:100dvh;overflow:hidden;overscroll-behavior:none;font-family:var(--body);font-weight:600}
.studio-body [hidden]{display:none!important}
.studio-shell{height:100%;width:100%;padding:0 20px 10px;display:flex;flex-direction:column;gap:4px}
.studio-header{height:68px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:16px}
.studio-back{font-size:14px;display:flex;align-items:center;gap:7px;min-height:44px}
.studio-brand{display:flex;align-items:center;gap:7px}.studio-brand>img{width:50px;height:50px;object-fit:contain;rotate:-8deg}.studio-brand h1{font:500 25px/1.1 StudioRound,sans-serif;margin:0;letter-spacing:-.4px}
.header-tools{display:flex;gap:8px;align-items:center}.studio-shell>main{display:flex;flex:1;flex-direction:column;min-height:0;gap:8px}
.studio-welcome{display:flex;justify-content:center;flex-shrink:0}.studio-modes{display:flex;gap:5px;padding:4px;border-radius:15px;background:#e1e3ef}
.studio-modes button{display:flex;align-items:center;justify-content:center;gap:7px;background:none;border:0;border-radius:11px;min-height:38px;padding:7px 20px;font-size:14px;font-weight:800;color:#6b6c80}.studio-modes button>span{font-size:21px;line-height:1}.studio-modes button[aria-pressed=true]{background:#fff;color:#5c46a6;box-shadow:0 2px 5px #31315413}.studio-modes button:hover{background:#f9f8ff}
.round-button{display:inline-grid;place-items:center;flex-shrink:0;border:1px solid var(--line);background:#fff;color:#57546d;width:38px;height:38px;border-radius:12px;font:600 23px/1 var(--body);padding:8px;cursor:pointer}.round-button:hover,.small-button:hover{background:#ede9fb;border-color:#c6b9ed}.round-button:disabled{opacity:.35;cursor:default}.round-button svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#redoArt svg{transform:scaleX(-1)}
.save-button,.small-button{border:1px solid var(--line);border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font:800 14px/1.2 var(--body);min-height:38px;padding:8px 14px;background:#fff;color:#57546d;text-decoration:none;cursor:pointer}.save-button{background:#6951b8;border-color:#6951b8;color:#fff;box-shadow:0 3px 0 #4c3791}.save-button:hover{background:#58409f}.save-button:disabled{opacity:.5;cursor:wait}
.studio-easel{position:relative;flex:1;min-height:0;min-width:0;display:grid;grid-template-columns:94px minmax(0,1fr);grid-template-rows:44px minmax(0,1fr) 58px 22px;gap:8px 14px}
.paper-toolbar{grid-column:1/-1;grid-row:1;display:flex;align-items:center;justify-content:space-between;gap:12px}.paper-title{display:flex;align-items:center;gap:12px;min-width:0;flex:1}.paper-dot{width:8px;height:8px;border-radius:50%;background:#efaa65;flex-shrink:0}.paper-title input{font:700 15px/1.3 var(--body);border:0;border-bottom:1px dashed #b6b3c7;background:transparent;color:#55546b;padding:5px 0;width:235px;min-width:0;max-width:100%}.paper-title>span:last-child{font-size:12px;color:#727084;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.paper-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.toolbar-divider{width:1px;height:22px;background:var(--line);margin:0 4px}
.paint-tray{display:contents}.tray-top{grid-column:1;grid-row:2/4;min-height:0;background:#fff;border:1px solid var(--line);border-radius:20px;padding:7px;box-shadow:0 4px 14px #38305808;overflow:auto;scrollbar-width:thin}.brush-tools{display:grid;grid-template-rows:repeat(8,minmax(42px,1fr));height:100%;gap:3px}.brush-tool{min-width:0;border:1px solid transparent;background:transparent;border-radius:13px;color:#727084;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px 2px;font:700 12px/1.2 var(--body)}.brush-tool svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.brush-tool:hover{background:#f2f0f8}.brush-tool[aria-pressed=true]{background:#eee8ff;color:#6544b1;border-color:#c9b8ef;box-shadow:inset 0 0 0 1px #fff}
.paper-frame{grid-column:2;grid-row:2;min-width:0;min-height:0;position:relative;display:grid;place-items:center;background:#e4e6ef;border-radius:16px;overflow:hidden;isolation:isolate}
.paper-sheet{position:relative;flex-shrink:0;box-shadow:0 3px 18px #30304812;background:#fff;max-width:100%;max-height:100%}.paper-sheet canvas{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair;outline-offset:-4px}.paper-sheet canvas[data-tool=fill]{cursor:cell}.paper-sheet canvas[data-tool=sticker]{cursor:copy}.paper-loading{position:absolute;inset:0;display:grid;place-items:center;background:#ffffffee;color:#66558a;font-size:18px;z-index:4}
.tray-bottom{grid-column:2;grid-row:3;display:flex;align-items:center;justify-content:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:6px 12px;min-width:0}.swatches{display:flex;align-items:center;gap:3px;min-width:0}.swatch{width:33px;height:36px;border:0;background:transparent;padding:4px;position:relative;border-radius:50%;flex-shrink:0}.swatch>span{display:block;width:100%;height:100%;border-radius:50%;background:var(--paint);border:1px solid #00000012;box-shadow:inset 0 2px 2px #fff5,0 1px 2px #35344815}.swatch[aria-pressed=true]{outline:2px solid #6752b7;outline-offset:-1px}.swatch[aria-pressed=true]:after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;font-size:14px;color:white;text-shadow:0 1px 3px #000;font-weight:900}.custom-color{display:flex;align-items:center;gap:5px;font-size:12px;cursor:pointer}.custom-color input{width:30px;height:32px;border:0;padding:0;background:none;cursor:pointer}.brush-size{width:130px;min-width:65px;border-left:1px solid var(--line);padding-left:12px}.brush-size label{display:flex;gap:5px;font-size:12px;line-height:1.2;white-space:nowrap}.brush-size output{margin-left:auto}#brushSize{width:100%;height:18px;margin:3px 0 0;accent-color:#7259b8;cursor:pointer}.mirror-button{display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--line);background:#f7f6fb;color:#68627e;border-radius:10px;min-height:36px;padding:6px 9px;font:700 12px/1 var(--body);white-space:nowrap}.mirror-button>span{font-size:19px}.mirror-button>b{font-size:11px}.mirror-button[aria-pressed=true]{background:#e9e0ff;color:#593d9a;border-color:#c9b8ef}
.paper-status{grid-column:2;grid-row:4;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;line-height:1.3;color:#6d6d81;min-width:0}.paper-status>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sticker-picker{position:absolute;left:108px;bottom:94px;display:flex;gap:8px;padding:10px;background:#fff;border:1px solid #cfc8e5;border-radius:17px;box-shadow:0 7px 25px #39305224;z-index:6}.sticker-picker button{width:58px;height:58px;border:1px solid var(--line);border-radius:12px;padding:4px;background:#f8f7fc}.sticker-picker img{width:100%;height:100%;object-fit:contain}.sticker-picker button[aria-pressed=true]{background:#ede5ff;border-color:#aa95d8}
.lesson-ribbon{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:15px;background:#e5dff4;border:1px solid #d3c7e9;border-radius:15px;padding:10px 16px}.lesson-copy{min-width:0}.lesson-copy>span{font-size:11px;color:#706283}.lesson-copy h2{font:500 19px/1.1 StudioRound,sans-serif;margin:3px 0}.lesson-copy p{font-size:14px;line-height:1.3;margin:0;color:#625776}.lesson-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.step-navigation{display:flex;align-items:center;gap:8px;font-size:14px;white-space:nowrap}.guide-toggle{display:flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap}.guide-toggle input{accent-color:#7459b7;width:16px;height:16px}#drawingGuide{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}#drawingGuide path{stroke:#468377;stroke-width:5;opacity:.25}#drawingGuide .previous-mark{stroke:#516953;opacity:.13;stroke-width:3}#drawingGuide.is-demonstrating .current-mark{opacity:.9;stroke:#488d79;stroke-width:6}
.studio-dialog{background:#fcfbff;color:var(--ink);border:1px solid #d6d0e7;border-radius:24px;padding:26px;width:min(540px,calc(100% - 24px));max-height:90dvh;overflow:auto;overscroll-behavior:contain;box-shadow:0 25px 90px #24213855}.studio-dialog::backdrop{background:#24213980;backdrop-filter:blur(5px)}.studio-dialog h2{font:500 28px/1.15 StudioRound,sans-serif;margin:4px 0 12px}.studio-dialog p{font-size:16px;line-height:1.6;color:#716a81}.studio-kicker{font-size:11px!important;letter-spacing:1px;font-weight:800;margin:0 0 8px!important;color:#85779b!important}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:20px}.dialog-heading p{margin:5px 0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.library-dialog{width:min(1060px,calc(100% - 24px))}.page-grid,.lesson-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.page-choice,.lesson-choice{padding:0;overflow:hidden;text-align:left;background:#fff;border:1px solid #ded9e8;border-radius:16px;color:#524567;transition:transform .2s}.page-choice:hover,.lesson-choice:hover{transform:translateY(-3px);border-color:#a796ce}.page-choice>img,.blank-preview{width:100%;aspect-ratio:16/9;object-fit:contain;display:block;background:#fff;border-bottom:1px solid #ece8f3}.blank-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:16px;color:#978da5}.blank-preview i{font-size:32px}.page-choice-copy,.lesson-choice>span{display:flex;flex-direction:column;gap:7px;padding:15px}.page-choice-copy small,.lesson-choice small{font-size:11px;color:#887c97}.page-choice-copy strong,.lesson-choice strong{font:500 22px/1.1 StudioRound,sans-serif}.page-choice-copy>span,.lesson-choice span>span{font-size:14px;line-height:1.4;color:#82738f}.lesson-choice svg{display:block;width:100%;height:150px;background:#fff}.lesson-choice svg path{fill:none;stroke:var(--lesson-color);stroke-width:7;stroke-linecap:round;stroke-linejoin:round}.library-footnote{font-size:13px!important}.export-dialog{width:min(900px,calc(100% - 24px))}.export-dialog>img{max-width:100%;max-height:60dvh;display:block;margin:auto;object-fit:contain;border:1px solid var(--line);border-radius:8px}.export-dialog>p{text-align:center}.help-dialog h3{font:500 22px StudioRound,sans-serif}.source-links{display:grid;gap:8px}.source-links a{font-size:14px;color:#6d4ba6;text-decoration:underline}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.studio-focus .studio-header,.studio-focus .studio-welcome{display:none}.studio-focus .studio-shell{padding-top:8px}
@media(max-width:1100px){.studio-shell{padding-left:12px;padding-right:12px}.studio-easel{grid-template-columns:80px minmax(0,1fr);gap:6px 10px}.swatch{width:28px;height:32px;padding:3px}.tray-bottom{gap:8px;padding:5px 8px}.brush-size{width:110px;padding-left:8px}.custom-color>span{display:none}.paper-title>span:last-child{display:none}.sticker-picker{left:90px}.lesson-controls{gap:5px}.lesson-controls .small-button{font-size:12px;padding:7px 9px}}
@media(max-width:700px) and (orientation:portrait){.studio-shell{padding:0 8px 6px;gap:2px}.studio-header{height:54px;gap:7px}.studio-brand h1{font-size:18px;max-width:150px}.studio-brand>img{width:36px;height:42px}.studio-back{font-size:22px}.studio-back>span{display:none}.header-tools{gap:5px}.header-tools .round-button{display:none}.header-tools .save-button{font-size:12px;padding:8px 10px;min-height:34px}.studio-shell>main{gap:5px}.studio-modes{width:100%;gap:2px}.studio-modes button{flex:1;padding:6px 4px;font-size:12px;gap:4px;min-height:34px}.studio-modes button>span{display:none}.studio-easel{grid-template-columns:minmax(0,1fr);grid-template-rows:38px minmax(0,1fr) 78px 90px 18px;gap:6px}.paper-toolbar{grid-column:1;gap:5px}.paper-title{gap:0}.paper-dot{display:none}.paper-title input{width:100%;font-size:12px}.paper-actions{gap:4px}.paper-actions .round-button{width:32px;height:32px;padding:6px;border-radius:9px}.paper-actions .small-button{font-size:11px;padding:6px 7px;min-height:32px}.toolbar-divider{display:none}.paper-frame{grid-column:1;grid-row:2;border-radius:12px}.tray-top{grid-column:1;grid-row:4;overflow:visible;padding:4px;border-radius:15px}.brush-tools{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:2px}.brush-tool{flex-direction:row;font-size:11px;gap:4px;padding:4px 1px;border-radius:10px}.brush-tool svg{width:21px;height:21px}.tray-bottom{grid-column:1;grid-row:3;display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:3px 12px;padding:4px 8px;border-radius:14px}.swatches{grid-column:1/-1;justify-content:space-between;gap:1px}.swatch{width:25px;height:29px;flex-shrink:1;padding:3px}.custom-color{grid-column:1}.custom-color input{height:28px;width:30px}.mirror-button{grid-column:2;min-height:30px;padding:4px 7px;font-size:11px}.brush-size{grid-column:3;width:100%;border:0;padding:0}.brush-size label{font-size:11px}#brushSize{height:15px;margin:1px 0 0}.paper-status{grid-column:1;grid-row:5;font-size:10px}.paper-status>span:first-child{max-width:52%}.sticker-picker{left:5px;right:5px;bottom:202px;justify-content:center;gap:5px;padding:7px}.sticker-picker button{width:48px;height:48px}.lesson-ribbon{padding:7px 10px;gap:6px;flex-wrap:wrap}.lesson-copy{width:100%}.lesson-copy>span{display:none}.lesson-copy h2{font-size:16px;margin:0 0 3px}.lesson-copy p{font-size:12px}.lesson-controls{width:100%;justify-content:flex-start;gap:5px}.lesson-controls .round-button{width:28px;height:28px;padding:4px}.lesson-controls .small-button{min-height:28px;font-size:11px;padding:4px 7px}.step-navigation{font-size:12px;gap:4px}.guide-toggle{font-size:11px;gap:2px}.guide-toggle input{width:13px;height:13px}.studio-dialog{padding:18px}.studio-dialog h2{font-size:24px}.page-grid,.lesson-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.page-choice-copy,.lesson-choice>span{padding:11px}.page-choice-copy strong,.lesson-choice strong{font-size:18px}.page-choice-copy>span{font-size:12px}.lesson-choice svg{height:120px}}
@media(max-height:650px) and (orientation:landscape){.studio-shell{padding:0 10px 4px;gap:2px}.studio-header{height:44px}.studio-brand>img{width:35px;height:38px}.studio-brand h1{font-size:20px}.studio-welcome{position:absolute;top:5px;left:50%;transform:translateX(-50%);z-index:1}.studio-brand{margin-right:auto}.studio-brand h1{display:none}.studio-back{font-size:12px}.studio-modes{padding:3px}.studio-modes button{min-height:30px;font-size:12px;padding:4px 12px}.studio-modes button>span{display:none}.studio-shell>main{gap:3px}.studio-easel{grid-template-columns:134px minmax(0,1fr);grid-template-rows:34px minmax(0,1fr) 45px 16px;gap:4px 8px}.brush-tools{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr))}.brush-tool{font-size:10px;gap:1px;padding:2px}.brush-tool svg{width:21px;height:21px}.tray-top{padding:4px;border-radius:14px}.paper-actions .round-button,.header-tools .round-button{width:30px;height:30px;padding:5px}.save-button,.small-button{min-height:30px;padding:6px 10px;font-size:12px}.tray-bottom{gap:5px;padding:4px 6px}.swatches{gap:1px}.swatch{width:24px;height:29px}.mirror-button{font-size:10px;padding:4px;min-height:28px}.mirror-button>span{display:none}.brush-size{width:90px;padding-left:5px}.brush-size label{font-size:10px}.custom-color input{width:25px;height:27px}.paper-status{font-size:10px}.sticker-picker{left:142px;bottom:71px}.sticker-picker button{width:44px;height:44px}.lesson-ribbon{padding:5px 10px;gap:8px}.lesson-copy>span{display:none}.lesson-copy h2{font-size:16px;margin:0 0 2px}.lesson-copy p{font-size:12px}.lesson-controls{flex-wrap:nowrap}.lesson-controls .round-button{width:28px;height:28px;padding:4px}.guide-toggle{font-size:11px}.studio-focus .studio-welcome{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
@media(max-width:360px) and (orientation:portrait){.brush-tool{flex-direction:column;gap:1px;padding:2px;font-size:11px}.brush-tool svg{width:18px;height:18px;flex-shrink:0}.studio-brand h1{font-size:16px}.studio-brand>img{width:30px}.header-tools .save-button{white-space:nowrap;font-size:11px;padding:8px}.studio-modes button{font-size:11px;white-space:nowrap}}


/* One useful desk header; the canvas no longer pays for two title rows. */
.studio-header{height:70px;gap:12px;flex-wrap:nowrap}.studio-back{flex-shrink:0;gap:4px;font-size:12px}.studio-back img{object-fit:contain}.studio-modes{margin-right:auto}.studio-modes button{padding:8px 12px;min-height:44px}.studio-utilities,.paper-actions{display:flex;gap:7px;align-items:center}.studio-utilities .round-button{width:44px;height:44px}.studio-utilities .save-button{height:44px}.save-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8}.fresh-button{background:#ffe3d9;color:#b65445;border-color:#ecb8a5;box-shadow:0 3px 0 #dca18a}.studio-easel{grid-template-rows:minmax(0,1fr) 58px 22px}.paper-frame{grid-row:1}.tray-top{grid-row:1/3}.tray-bottom{grid-row:2}.paper-status{grid-row:3}.export-dialog .paper-title{margin:0 0 12px}.studio-focus .studio-header{display:flex}.studio-focus .studio-shell{padding-top:0}
@media(max-width:1000px){.studio-back>span{display:none}.studio-modes button{font-size:12px;padding:6px 8px}.studio-header{gap:7px}.studio-utilities,.paper-actions{gap:5px}.toolbar-divider{display:none}.studio-utilities .save-button{padding:6px 9px}.studio-utilities .save-button>span{display:none}}
@media(max-width:700px) and (orientation:portrait){.studio-header{height:auto;min-height:106px;display:grid;grid-template-columns:40px minmax(0,1fr);gap:4px;padding:4px 0}.studio-back img{width:38px;height:42px}.studio-modes{margin:0;width:100%}.studio-modes button{padding:5px 3px;font-size:11px;gap:2px;flex-direction:column;min-height:46px}.studio-modes button>span{display:block;font-size:18px}.studio-utilities{grid-column:1/-1;justify-content:space-between}.paper-actions{gap:8px;flex:1}.studio-utilities .round-button{width:44px;height:44px;padding:9px}.studio-utilities .save-button{height:44px;min-width:44px}.studio-easel{grid-template-rows:minmax(0,1fr) 78px 90px 18px}.paper-frame{grid-row:1}.tray-bottom{grid-row:2}.tray-top{grid-row:3}.paper-status{grid-row:4}.studio-header .feedback-launcher{display:none}}
@media(max-height:650px) and (orientation:landscape){.studio-header{height:54px}.studio-modes button{min-height:40px;padding:4px 6px;font-size:11px}.studio-back img{width:32px;height:34px}.studio-utilities .round-button{width:40px;height:40px}.studio-easel{grid-template-rows:minmax(0,1fr) 45px 16px}.paper-frame{grid-row:1}.tray-top{grid-row:1/3}.tray-bottom{grid-row:2}.paper-status{grid-row:3}.studio-header .feedback-launcher{display:none}}
