.studio-heading{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:24px}.studio-heading h2{font:700 34px/1.5 Amiri,serif;color:var(--green);margin:8px 0}.studio-heading p{font-size:13px;color:#7d8d76;margin:4px 0}.studio-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.studio-layout{display:grid;grid-template-columns:235px minmax(0,1fr);gap:20px;align-items:start}.studio-tools{background:#f7f8f0;border:1px solid #e4e8d9;border-radius:16px;padding:17px;min-width:0}.studio-label{display:block;font-size:12px;color:#58704f;margin-bottom:16px}.studio-label select{width:100%;font-size:14px;min-height:44px;margin-top:7px}.tool-heading{font-weight:700;font-size:12px;margin:12px 0}.tool-heading span{display:block;color:#8b957d;font-size:10px;font-weight:400;margin-top:4px}.drawing-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 20px}.drawing-tools button{min-height:70px;background:#fffef9;border:1px solid #e2e7d7;border-radius:12px;font-size:11px;line-height:1.6}.drawing-tools button span{display:block;font-size:28px;color:#799265}.drawing-tools .chosen{border-color:#6d9361;background:#edf4e6;box-shadow:0 0 0 1px #6d9361}.studio-tools #palette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0;padding:3px}.studio-tools .swatch{min-width:36px;min-height:44px;width:100%;height:44px;border-radius:13px;border:3px solid #fff9;position:relative}.swatch.selected:after{content:'✓';color:#fff;text-shadow:0 1px 3px #273b23;position:absolute;inset:0;display:grid;place-items:center;font-size:18px}.custom-color{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0 16px}.custom-color label{display:flex;gap:8px;align-items:center;font-size:11px}.custom-color input{width:44px;height:44px;border:0;padding:0;background:none;cursor:pointer}.custom-color>span{font-size:10px;color:#7b886e}.studio-tools input[type=range]{display:block;width:100%;height:36px;accent-color:#527a43;margin:8px 0 0}.studio-label output{float:left;color:#6c815e;font-size:11px}.brush-preview{border:1px dashed #d7dfca;border-radius:10px;background:#fffefa;overflow:hidden;margin:12px 0 18px}.brush-preview canvas{display:block;width:100%;height:48px}.studio-hint{font-size:11px;line-height:1.9;color:#7c8a71;margin-bottom:0}.studio-stage{min-width:0;border-radius:16px;background:#f1f3e9;border:1px solid #e4e8db;padding:14px}.stage-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.stage-toolbar label{display:flex;align-items:center;gap:7px;margin-right:auto;font-size:11px}.stage-toolbar select{min-height:44px;margin:0;font-size:14px}.stage-toolbar button:disabled{opacity:.4;cursor:default}.gesture-note{font-size:10px;color:#87937b;line-height:1.8;margin:12px 0}.studio-stage #paperViewport{background:#dedfcd;padding:10px;border:0;max-height:72vh;max-height:72dvh;box-shadow:inset 0 2px 7px #38422c0d}.studio-stage #paper{border-radius:3px;box-shadow:0 4px 15px #48513b20;background:white;isolation:isolate}.studio-stage #paint{cursor:crosshair}.studio-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0}.studio-bottom p{font-size:10px;line-height:1.8;color:#65865a;margin:5px 0;flex:1}.studio-bottom>span{font-size:10px;color:#919c85}.finish-actions{display:flex;gap:8px;flex-wrap:wrap}.finish-actions button{flex:1}.studio-expanded{position:fixed;inset:0;z-index:40;background:#fffefa;padding:20px max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain}.studio-expanded .studio-heading{margin-bottom:16px}.studio-expanded .studio-layout{grid-template-columns:235px minmax(0,1fr);max-width:1500px;margin:auto}.studio-expanded #paperViewport{max-height:76vh;max-height:76dvh}.studio-expanded .studio-tools{position:sticky;top:0}.studio-expanded .studio-heading{max-width:1500px;margin-inline:auto}#artCelebration{background:#e9f1df;border:1px solid #d2e2be;border-radius:12px;padding:16px;text-align:center;font-size:16px;color:#53713e;margin-top:16px;position:relative}#artCelebration .spark{display:inline-block;color:#d4aa50;margin:0 10px;animation:art-spark 1s ease-out 2}@keyframes art-spark{from{transform:translateY(10px) rotate(-15deg);opacity:.2}to{transform:translateY(-4px) rotate(15deg);opacity:1}}#artGallery{margin-top:25px;border-top:1px solid #e5eadb;padding-top:22px}.gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.gallery-heading h3{font:700 27px Amiri;color:var(--green);margin:6px 0}#galleryGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:14px;margin-top:20px}.gallery-card{display:block;background:#f5f6ed;border:1px solid #e0e7d6;border-radius:12px;padding:10px;text-align:center;overflow:hidden}.gallery-card img{display:block;width:100%;aspect-ratio:595/842;object-fit:contain;border-radius:6px;background:#fff}.gallery-card strong{display:block;font-size:12px;margin-top:9px}.gallery-card small{display:block;font-size:10px;color:#849277;margin-top:3px}.gallery-empty{grid-column:1/-1;text-align:center;padding:35px 15px;color:#879578;line-height:2;font-size:14px}
@media(max-width:1200px){.studio-layout,.studio-expanded .studio-layout{grid-template-columns:minmax(0,1fr)}.studio-tools{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;position:static!important}.studio-tools>.studio-label:first-child,.studio-tools>.tool-heading,.studio-tools>.drawing-tools,.studio-tools>#palette,.studio-tools>.custom-color,.studio-tools>#guideHint{grid-column:1/-1}.studio-tools .drawing-tools{grid-template-columns:repeat(4,1fr);margin:0}.studio-tools>.studio-label{margin:0}.studio-tools>.tool-heading{margin:0}.tool-heading span{display:inline;margin-right:8px}.studio-tools>#palette{grid-template-columns:repeat(12,minmax(0,1fr));gap:8px;margin:0}.studio-tools .swatch{min-width:28px}.studio-tools>.custom-color{padding:0}.studio-tools>.brush-preview{margin:0;align-self:center}.studio-tools>#guideHint{margin:0}.studio-heading h2{font-size:32px}.studio-expanded .studio-tools{position:static}.studio-stage #paperViewport{max-height:70vh;max-height:70dvh}}
@media(max-width:600px){.studio-heading{gap:12px}.studio-heading h2{font-size:30px}.studio-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}.studio-actions #quietMode{grid-column:1/-1}.studio-actions .soft{font-size:12px;padding-inline:8px}.studio-tools{padding:14px;gap:14px 12px}.drawing-tools button{font-size:10px;padding:5px 2px;min-height:70px}.drawing-tools button span{font-size:26px}.studio-tools>#palette{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.studio-tools .swatch{min-width:0;height:44px}.studio-tools .studio-label select,.stage-toolbar select{font-size:16px}.studio-tools input[type=range]{height:44px}.studio-tools>.studio-label:has(#guideMode),.studio-tools>.studio-label:has(#colorTheme){grid-column:1/-1}.studio-tools>.brush-preview{grid-column:1/-1}.tool-heading span{display:block;margin-right:0}.studio-stage{padding:10px}.stage-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:8px}.stage-toolbar label{margin:0;justify-content:space-between}.stage-toolbar button{font-size:12px;padding-inline:7px}.stage-toolbar select{max-width:100px}.gesture-note{font-size:11px}.studio-stage #paperViewport{padding:6px;max-height:65vh;max-height:65dvh}.studio-bottom{align-items:flex-start}.studio-bottom p{font-size:11px}.studio-bottom>span{white-space:nowrap;margin-top:5px}.finish-actions .primary,.finish-actions .soft{font-size:12px}.studio-expanded{padding:14px 10px}.studio-expanded .studio-heading .eyebrow,.studio-expanded .studio-heading p{display:none}.studio-expanded .studio-heading h2{font-size:25px}.studio-expanded .studio-heading{margin-bottom:12px}.studio-expanded .studio-actions{display:flex}.studio-expanded .studio-actions button{flex:1}.studio-expanded .studio-actions #quietMode{display:none}.studio-expanded .studio-layout{gap:12px}#galleryGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gallery-heading h3{font-size:24px}.custom-color>span{font-size:11px}.studio-tools .studio-label{font-size:13px}}
.studio-layout.tools-collapsed,.studio-expanded .studio-layout.tools-collapsed{grid-template-columns:minmax(0,1fr)}@media(max-width:600px){.studio-expanded .studio-actions{display:grid;grid-template-columns:1fr 1fr}.studio-expanded #openGallery{grid-column:1/-1}}
.workspace:has(#bookView:not([hidden])){grid-template-columns:minmax(0,1fr)}.workspace:has(#bookView:not([hidden]))>aside{display:none}
.studio-tools #palette{grid-template-columns:repeat(auto-fit,minmax(44px,1fr))}.studio-tools input[type=range]{min-height:44px}@media(max-width:600px){.stage-toolbar label{flex-direction:column;align-items:stretch;gap:4px}.stage-toolbar select{width:100%;max-width:none}}
