/* System font fallbacks keep the workshop independent of external font requests. */
:root{--ink:#17435b;--cream:#fffaf0;--line:#dce6e4;--gold:#c7a453;--teal:#147a78}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--cream);color:var(--ink);font-family:'DM Sans',Arial,sans-serif}button,a,input,select{-webkit-tap-highlight-color:transparent}button,select,input{font:inherit}button{cursor:pointer;color:inherit}button,a,select,input{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid #185fc6}button{min-height:44px;border:1px solid var(--line);border-radius:15px;background:white;padding:10px 16px}button:disabled{opacity:.4;cursor:default}header{max-width:1300px;margin:auto;padding:22px 34px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;font-family:Fraunces,Georgia,serif;font-weight:600;font-size:22px}.brand img{width:56px;height:56px;object-fit:contain}.brand small{display:block;font-family:'DM Sans',Arial,sans-serif;font-size:9px;letter-spacing:2px;margin-top:4px}.preview{font-size:12px;background:#e9eee5;padding:8px 13px;border-radius:30px}main{max-width:1230px;margin:auto;padding:36px 30px}.eyebrow{font-size:11px;letter-spacing:2.5px;font-weight:700;color:#6a857d}h1,h2{font-family:Fraunces,Georgia,serif}#home{display:grid;grid-template-columns:1.1fr .9fr;column-gap:60px;align-items:center}.intro h1{font-size:clamp(38px,5vw,68px);font-weight:500;line-height:1.08;letter-spacing:-2px;margin:20px 0}.intro>p:not(.eyebrow){font-size:17px;line-height:1.8;max-width:450px;color:#526d76}.primary{background:var(--ink);color:#fff;border-color:var(--ink);box-shadow:0 5px 0 #dce5df;font-weight:700}.intro .primary{margin:16px 0 20px;font-size:16px;padding:17px 23px}.intro .primary span{margin-left:30px}.intro>small{display:block;font-size:12px;line-height:1.7;color:#6a817e}.hero{height:410px;position:relative;padding:12px;background:#e8c99a;border-radius:160px 160px 30px 30px;transform:rotate(2deg)}.hero img{width:100%;height:100%;object-fit:cover;object-position:center 32%;border-radius:150px 150px 23px 23px}.hero-note{position:absolute;bottom:30px;left:-25px;padding:14px 22px;background:white;border:1px solid var(--gold);border-radius:50px;transform:rotate(-6deg);font-family:Fraunces,Georgia,serif;font-size:21px;box-shadow:0 4px 15px #173e5815}.worlds{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:45px}.worlds>a,.worlds>button{text-decoration:none;text-align:left;color:inherit;background:#edf3e8;border:1px solid #d7e3d5;border-radius:22px;padding:25px;display:grid;grid-template-columns:64px 1fr;gap:7px 18px}.worlds>a{background:#e7f0f5;border-color:#d4e2ea}.worlds span{grid-row:1/4;font-size:42px}.worlds strong{font-family:Fraunces,Georgia,serif;font-size:24px}.worlds small{font-size:13px;color:#526d76}.worlds b{font-size:12px;margin-top:7px}.coming{grid-column:1/-1;text-align:center;color:#71837d;font-size:12px;margin-top:25px}.studio-heading{display:flex;gap:18px;align-items:center;justify-content:space-between;margin-bottom:25px}.studio-heading h1{font-size:34px;margin:5px 0}.studio-heading .eyebrow{margin:0}.quiet{background:transparent;box-shadow:none}.workspace{display:grid;grid-template-columns:230px 1fr;gap:24px}.tools{background:#f0f3e9;border:1px solid #dce4d5;border-radius:24px;padding:20px;height:fit-content}.tools h2{font-size:17px;margin:22px 0 12px}.tools h2:first-child{margin-top:0}.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tool-grid button{display:flex;flex-direction:column;align-items:center;font-size:26px;padding:9px 4px}.tool-grid span{font-size:11px;margin-top:3px}button[aria-pressed=true]{outline:2px solid var(--teal);outline-offset:2px;background:#e2f0e7}.colors{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.colors button{padding:0;min-height:34px;height:34px;border:3px solid white;border-radius:50%;box-shadow:0 0 0 1px #cbd6cf}.colors button[aria-pressed=true]{outline:3px solid var(--ink);outline-offset:2px}.custom{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-top:13px}input[type=color]{width:45px;height:32px;border:0;background:transparent}.sizes{display:flex;gap:9px}.sizes button{width:52px;padding:6px;display:grid;place-items:center}.sizes i{display:block;background:var(--ink);border-radius:50%}.stickers{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.stickers button{font-size:25px;padding:4px}.hint,.privacy{font-size:11px;line-height:1.6;color:#6a817e}.drawing-area{min-width:0}.paper-options{display:flex;align-items:center;gap:8px;margin-bottom:12px}.paper-options label{font-size:12px;margin-right:auto}select{border:1px solid var(--line);background:white;color:var(--ink);padding:10px;border-radius:12px;max-width:210px}.paper{max-width:630px;margin:auto;background:white;border:1px solid #d7dfdc;box-shadow:0 12px 30px #173e5810;border-radius:15px;overflow:hidden}canvas{display:block;width:100%;height:auto;touch-action:none;cursor:crosshair;user-select:none}.under-paper{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px}.under-paper label{font-size:12px}input[type=text],input:not([type]){max-width:190px;padding:10px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink)}#status{font-size:13px;line-height:1.5}footer{max-width:1230px;margin:15px auto;padding:20px 30px;border-top:1px solid var(--line);display:flex;align-items:center;gap:10px;font-family:Fraunces,Georgia,serif;font-size:16px}footer img{width:38px;height:38px;object-fit:contain}footer span{margin-left:auto;font-family:'DM Sans',Arial,sans-serif;font-size:12px;color:#71837d}dialog{max-width:90vw;width:420px;border:1px solid var(--gold);border-radius:24px;padding:25px;color:var(--ink);background:var(--cream)}dialog::backdrop{background:#173e5877}dialog p{line-height:1.6}dialog button{margin:4px}
@media(max-width:760px){header{padding:14px 18px}.brand{font-size:19px}.brand img{width:43px;height:43px}.preview{font-size:10px;padding:7px}main{padding:23px 16px}#home{gap:25px;grid-template-columns:1fr}.intro h1{font-size:45px}.intro p{font-size:15px!important}.hero{height:300px;max-width:380px;width:85%;margin:auto}.worlds{margin-top:8px;gap:12px}.worlds>a,.worlds>button{padding:18px;grid-template-columns:1fr;gap:7px}.worlds span{grid-row:auto;font-size:32px}.worlds strong{font-size:21px}.coming{line-height:1.8}.studio-heading{flex-wrap:wrap;gap:12px}.studio-heading>div{order:-1;flex-basis:100%}.studio-heading h1{font-size:28px}.workspace{display:flex;flex-direction:column-reverse;gap:15px}.tools{padding:16px}.tool-grid{grid-template-columns:repeat(4,1fr)}.colors{grid-template-columns:repeat(8,1fr)}.colors button{height:30px;min-height:30px}.stickers{grid-template-columns:repeat(6,1fr)}.paper-options{flex-wrap:wrap}.paper-options label{flex-basis:100%}.paper-options button{font-size:12px;min-height:38px}.under-paper{flex-wrap:wrap}.under-paper input{max-width:170px}footer{padding:15px 18px}footer span{max-width:120px;text-align:right;font-size:10px}}
/* Drawing workspace: tools always beside the paper, including narrow phones. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.workspace{position:relative;display:grid;grid-template-columns:84px minmax(0,1fr);gap:16px;align-items:start}.tool-rail{display:flex;flex-direction:column;gap:9px;background:#edf2e8;border:1px solid #d4dfd2;border-radius:22px;padding:9px;max-height:78dvh;overflow-y:auto}.tool-rail button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 2px;border-radius:14px;min-height:67px;font-size:10px;flex-shrink:0}.tool-icon{display:block;width:33px;height:33px}.tool-icon svg{display:block;width:100%;height:100%}.tool-panel{position:absolute;z-index:15;left:95px;top:0;width:255px;max-width:calc(100% - 100px);max-height:76dvh;overflow:auto;background:#fffdf6;border:1px solid #b9cfca;box-shadow:0 10px 30px #173e5833;border-radius:20px;padding:17px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:17px}.panel-heading h2{font-size:19px;margin:0}.panel-heading button{border:0;background:transparent;font-size:26px;min-width:44px;padding:2px}.tool-panel h3{font-size:13px;margin:20px 0 12px}.tool-panel .colors{grid-template-columns:repeat(4,1fr);gap:13px}.tool-panel .colors button{height:37px;min-height:37px}.tool-panel .sizes{justify-content:space-between}.tool-panel .stickers{grid-template-columns:repeat(2,1fr);gap:9px}.stickers button{padding:5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:#f5f4ed;min-width:0}.stickers img{width:100%;height:87px;object-fit:contain;pointer-events:none}.stickers small{font-size:10px;line-height:1.3}.sticker-tabs{display:flex;gap:6px;margin-bottom:12px}.sticker-tabs button{font-size:12px;padding:8px}.drawing-area{min-width:0}.art-viewport{position:relative;height:min(72dvh,840px);min-height:280px;background:repeating-conic-gradient(#e4ebe6 0% 25%,#eaf0eb 0% 50%) 50%/24px 24px;overflow:hidden;border:1px solid #d1dfd6;border-radius:19px;touch-action:none;overscroll-behavior:contain;user-select:none;-webkit-user-select:none}.art-viewport .paper{position:absolute;left:0;top:0;max-width:none;margin:0;border:0;border-radius:0;overflow:hidden;transform-origin:0 0;box-shadow:0 4px 22px #163d5830;will-change:transform}.art-viewport canvas{width:100%;height:100%;touch-action:none;display:block}#gesture-note{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);pointer-events:none;background:#17435be8;color:white;border-radius:25px;padding:10px 17px;font-size:12px;white-space:nowrap}.paper-options{gap:7px;flex-wrap:wrap}.paper-options label{flex-basis:auto}.paper-options button{min-width:40px;padding:6px;font-size:20px}.paper-options select{max-width:215px}.zoom-controls{display:flex;align-items:center;gap:4px;background:#fff;border:1px solid #dce6e4;border-radius:13px;margin-left:auto;padding:2px}.zoom-controls button{border:0;min-width:34px;min-height:36px;padding:5px;font-size:21px}.zoom-controls #zoom-reset{font-size:12px;padding:7px}#zoom-label{font-size:11px;min-width:38px;text-align:center}#sticker-selection{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);z-index:6;display:flex;align-items:center;gap:4px;padding:5px;background:#fffaf0f5;border:1px solid #c7a453;border-radius:17px;box-shadow:0 3px 12px #173e5830;max-width:95%;white-space:nowrap}#selected-label{font-size:10px;max-width:105px;overflow:hidden;text-overflow:ellipsis}#sticker-selection button{min-width:36px;min-height:36px;font-size:15px;padding:6px}#sticker-remove{font-size:11px!important}.studio-heading{margin-bottom:18px}#studio .privacy{margin-bottom:0}#studio #status{min-height:24px;font-size:12px;margin:10px 0 4px}
@media(max-width:760px){#studio .workspace{display:grid;grid-template-columns:62px minmax(0,1fr);gap:8px}.tool-rail{padding:5px;gap:6px;border-radius:17px;max-height:calc(100dvh - 200px)}.tool-rail button{min-height:59px;font-size:9px;border-radius:11px}.tool-icon{width:29px;height:29px}.tool-panel{left:70px;max-width:calc(100% - 73px);width:252px;max-height:calc(100dvh - 220px);padding:13px}.tool-panel .colors{grid-template-columns:repeat(4,1fr);gap:10px}.tool-panel .colors button{height:32px;min-height:32px}.tool-panel .stickers{grid-template-columns:repeat(2,1fr)}.art-viewport{height:calc(100dvh - 310px);min-height:285px;border-radius:12px}.paper-options{gap:4px;margin-bottom:8px}.paper-options label{flex-basis:100%;margin:0}.paper-options select{width:100%;max-width:none;font-size:11px;min-height:37px;padding:5px}.paper-options button{min-height:34px;min-width:30px;padding:4px}.zoom-controls{gap:0;flex:1;justify-content:space-between}.zoom-controls button{min-width:25px;min-height:28px;font-size:18px}.zoom-controls #zoom-reset{font-size:10px;padding:4px}#zoom-label{min-width:30px;font-size:9px}.studio-heading{margin-bottom:12px}.studio-heading h1{font-size:25px}.studio-heading>button{min-height:38px;padding:8px 13px;font-size:12px}.under-paper{gap:7px}.under-paper label{font-size:10px}.under-paper input{width:100%;max-width:160px;padding:8px;font-size:12px}.under-paper button{font-size:10px;min-height:34px;padding:6px}#selected-label{display:none}#sticker-selection{gap:2px}#sticker-selection button{min-width:30px;padding:4px}#studio #status{font-size:10px;line-height:1.5}.privacy{font-size:9px}}
@media(max-height:520px) and (orientation:landscape){header{padding:7px 20px}.brand img{width:32px;height:32px}main{padding:10px 16px}.studio-heading{margin-bottom:7px}.studio-heading h1{font-size:20px}.studio-heading>div{order:0;flex-basis:auto}.art-viewport{height:60dvh;min-height:170px}.tool-rail{max-height:66dvh}.tool-rail button{min-height:48px}.tool-icon{width:22px;height:22px}.tool-panel{max-height:65dvh}.studio-heading .eyebrow{display:none}.under-paper{margin-top:6px}}
.sticker-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.sticker-tabs button{font-size:10px;padding:6px 2px;min-height:36px}.stickers img{border-radius:8px}.tool-panel .stickers button{background:repeating-conic-gradient(#f1f4ef 0% 25%,#fafbf8 0% 50%) 50%/12px 12px}.tool-panel .stickers small{background:#fffdf6;border-radius:5px;padding:2px 3px}
.export-actions{display:flex;gap:8px}.gallery-button{font-size:13px!important;font-weight:700;background:#edf2e8}.paper-options select{max-width:210px}#gallery-dialog{width:min(1000px,96vw);max-width:96vw;max-height:91dvh;padding:24px;border-color:#c4d5ce}.gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.gallery-heading h2{font-size:29px;margin:6px 0 15px}.gallery-heading .eyebrow{margin:0}.gallery-heading>button{font-size:25px;padding:5px;border:0;background:none}.gallery-levels{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:8px 0 18px}.gallery-levels button{text-align:left;padding:15px;background:#f0f5e9;display:flex;flex-direction:column;gap:5px}.gallery-levels strong{font-family:Georgia,serif;font-size:17px}.gallery-levels small{font-size:11px;line-height:1.5}.gallery-levels span{font-size:10px;color:#5e7970}#gallery-description{font-size:13px;line-height:1.6}.gallery-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.gallery-grid button{padding:6px;background:#fff;display:flex;flex-direction:column;gap:8px;text-align:center;min-width:0}.gallery-grid img{width:100%;aspect-ratio:8/9;object-fit:contain;border-radius:9px;background:white;pointer-events:none}.gallery-grid strong{font-size:11px;line-height:1.4;font-weight:500}.gallery-grid .drawing-saved{font-size:10px;color:#267052}.gallery-note{font-size:12px!important;color:#6a817e}.paper-options .gallery-button{min-width:130px}.export-actions button{font-size:13px}.gallery-levels button[aria-pressed=true]{background:#dceee1}
@media(max-width:760px){.studio-heading .export-actions{margin-left:auto}.export-actions button{font-size:11px;padding:8px;min-height:38px}.paper-options .gallery-button{flex-basis:100%;font-size:12px!important;min-height:36px}.paper-options label{flex-basis:100%}.art-viewport{height:calc(100dvh - 350px);min-height:280px}#gallery-dialog{padding:15px;max-height:94dvh}.gallery-heading h2{font-size:22px}.gallery-levels{gap:6px}.gallery-levels button{padding:9px 6px}.gallery-levels strong{font-size:13px}.gallery-levels small{font-size:9px}.gallery-levels span{font-size:8px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gallery-grid strong{font-size:11px}.gallery-grid img{min-height:140px}#gallery-description{font-size:11px}}
@media(min-width:600px) and (max-width:760px){.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
