.drawing-actions .color-online{grid-column:1/-1;background:#e2eadb;border:1px solid #a7b99d;color:var(--green);font-weight:700}
.coloring-dialog{width:min(1160px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid #d8ddcf;border-radius:12px;background:var(--paper,#faf7ef);color:var(--ink);overflow:auto}.coloring-dialog::backdrop{background:#24322b99;backdrop-filter:blur(3px)}
.coloring-heading{position:sticky;top:0;z-index:2;background:var(--paper,#faf7ef);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;border-bottom:1px solid var(--line)}.coloring-heading .studio-eyebrow{margin:0 0 5px}.coloring-heading h2{font-size:28px;line-height:1.2}.coloring-heading #close-coloring{width:42px;height:42px;flex-shrink:0;border:1px solid var(--line);border-radius:50%;background:white;color:var(--green);font-size:25px}
.coloring-layout{display:grid;grid-template-columns:220px minmax(0,1fr)}.coloring-controls{border:0;border-right:1px solid var(--line);padding:18px;min-width:0;display:flex;flex-direction:column;gap:17px;margin:0}.coloring-controls button{min-height:40px;border:1px solid #c6cebd;border-radius:6px;background:#fff7;color:var(--green);font-size:12px;padding:6px}.coloring-controls button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.coloring-controls button:disabled{opacity:.4;cursor:default}.color-tools{display:grid;grid-template-columns:1fr 1fr;gap:7px}.color-palette{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.color-palette .color-swatch{background:var(--paint);min-height:25px;height:25px;padding:0;border:1px solid #24322b35;border-radius:50%}.color-palette .color-swatch[aria-pressed=true]{background:var(--paint);border:2px solid white;outline:2px solid var(--green);outline-offset:1px}.custom-paint{display:flex;align-items:center;justify-content:space-between;font-size:13px;gap:9px}.custom-paint input{height:35px;width:55px;padding:2px;border:1px solid #c6cebd;border-radius:5px;background:white}.paint-size{display:flex;flex-wrap:wrap;justify-content:space-between;font-size:13px;gap:9px}.paint-size input{width:100%;accent-color:var(--green)}.color-history{display:flex;gap:7px}.color-history button{flex:1}.color-zoom{display:flex;flex-wrap:wrap;gap:5px;align-items:center;justify-content:space-between}.color-zoom output{font-size:12px}.color-zoom button{min-width:31px}.color-zoom #color-fit{width:100%}
.coloring-workspace{min-width:0;background:#e9e8df;padding:14px 18px 18px}.color-instruction{font-size:12px;line-height:1.6;margin-bottom:10px;color:#4c584f}.coloring-stage{height:min(57dvh,670px);min-height:240px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;background:#deded4;border-radius:5px;position:relative;padding:12px}.coloring-stage canvas{display:block;background:white;max-width:none;touch-action:none;cursor:crosshair;box-shadow:0 2px 10px #24322b18;margin:auto}.coloring-stage canvas[data-tool=move]{cursor:grab}.coloring-stage canvas[data-tool=move]:active{cursor:grabbing}.coloring-stage[aria-busy=true]{opacity:.6}.coloring-footer{padding:14px 24px 18px;border-top:1px solid var(--line)}#coloring-status{font-size:12px;line-height:1.5;color:var(--green);min-height:18px;margin-bottom:10px}.coloring-export{display:flex;gap:10px;flex-wrap:wrap}.coloring-export .button{font-size:13px;min-height:43px;padding:10px 20px}.coloring-export button:disabled{opacity:.45;cursor:default}.coloring-dialog button:focus-visible,.coloring-dialog input:focus-visible,.coloring-stage canvas:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:760px){.coloring-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:8px}.coloring-heading{padding:12px 14px}.coloring-heading h2{font-size:23px}.coloring-heading .studio-eyebrow{font-size:10px}.coloring-layout{grid-template-columns:1fr}.coloring-controls{border-right:0;border-bottom:1px solid var(--line);padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.color-tools{grid-column:1/-1;grid-template-columns:repeat(4,1fr)}.color-palette{grid-column:1/-1;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.color-palette .color-swatch{width:100%;min-height:30px;height:30px;aspect-ratio:auto;max-height:none}.custom-paint{font-size:12px;justify-content:flex-start}.paint-size{font-size:12px;gap:3px}.color-history{align-self:start}.color-zoom{justify-content:flex-end;align-self:start;gap:7px}.color-zoom #color-fit{width:auto}#color-reset{grid-column:1/-1;justify-self:start;min-height:30px;padding:0;border:0;background:transparent}.coloring-workspace{padding:10px}.coloring-stage{height:51dvh;min-height:260px;padding:8px}.color-instruction{font-size:11px;margin-bottom:6px}.coloring-footer{padding:12px 14px}.coloring-export{gap:7px}.coloring-export .button{flex:1;padding:9px 7px;font-size:12px;white-space:nowrap}.coloring-footer .studio-hint{font-size:11px}}

.coloring-heading-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}#color-output-jump{border:1px solid #c6cebd;border-radius:6px;background:#fff8;color:var(--green);font-size:12px;padding:10px;min-height:40px}@media(max-width:380px){.coloring-heading h2{font-size:21px}.coloring-heading{gap:8px}#color-output-jump{font-size:11px;padding:8px}}

.coloring-export .color-add-book{flex-basis:100%;font-weight:600}#color-autosave-status{margin:0 0 10px}#color-retry-save{margin-bottom:10px;color:var(--green)}

#color-kid-mode{font-weight:700;min-height:44px}.stay-inside-option{display:flex;align-items:center;gap:10px;font-size:14px;min-height:44px;cursor:pointer}.stay-inside-option input{width:22px;height:22px;accent-color:var(--green);flex-shrink:0}.stay-inside-hint{font-size:11px;line-height:1.5;color:var(--muted);margin-top:-12px}.kid-brush-sizes{display:none}
.kid-mode .coloring-layout{grid-template-columns:270px minmax(0,1fr)}.kid-mode .coloring-controls{gap:12px}.kid-mode #color-kid-mode{min-height:48px;font-size:13px}.kid-mode .stay-inside-option{font-size:16px;font-weight:600;min-height:48px}.kid-mode .stay-inside-option input{width:28px;height:28px}.kid-mode .stay-inside-hint{font-size:12px;margin-top:-7px}.kid-mode .color-tools{grid-template-columns:repeat(3,minmax(0,1fr))}.kid-mode .coloring-controls button{font-size:14px;min-height:48px}.kid-mode [data-color-tool=move],.kid-mode .color-zoom,.kid-mode .custom-paint,.kid-mode .paint-size,.kid-mode #color-reset{display:none}.kid-mode .color-palette{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.kid-mode .color-swatch{width:100%;height:48px;min-height:48px;border-radius:12px}.kid-mode .color-swatch[data-paint-color="#84cc16"],.kid-mode .color-swatch[data-paint-color="#14b8a6"],.kid-mode .color-swatch[data-paint-color="#38bdf8"],.kid-mode .color-swatch[data-paint-color="#ffffff"]{display:none}.kid-mode .kid-brush-sizes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.kid-mode .coloring-export .button{min-height:50px;font-size:15px}.kid-mode #color-save-pdf{display:none}.kid-mode #coloring-status{font-size:14px}.kid-mode .color-instruction{font-size:13px}.kid-mode #color-output-jump,.kid-mode #close-coloring{min-width:48px;min-height:48px}
@media(max-width:760px){#color-kid-mode,.stay-inside-option{grid-column:auto}.stay-inside-hint{grid-column:1/-1;margin-top:-5px}.kid-mode .coloring-layout{grid-template-columns:1fr}.kid-mode .coloring-controls{padding:12px;gap:10px}.kid-mode .stay-inside-option{justify-content:center;font-size:15px}.kid-mode .stay-inside-hint{margin-top:0}.kid-mode .color-tools,.kid-mode .color-palette,.kid-mode .kid-brush-sizes,.kid-mode .color-history{grid-column:1/-1}.kid-mode .color-swatch{height:48px;max-height:none}.kid-mode .coloring-controls button{min-width:0}.kid-mode #color-kid-mode{font-size:12px;padding:8px}.kid-mode .color-instruction{font-size:12px}.kid-mode .coloring-export .button{font-size:14px}.kid-mode .coloring-heading{gap:8px}.kid-mode .coloring-heading h2{font-size:21px}}

.coloring-export .color-share{flex-basis:100%;font-weight:600}#color-share-hint{margin-top:10px}
