#creativeStudio{--studio-bg:#f5f2eb;--studio-panel:#fffdf8;--studio-ink:#272a29;--studio-muted:#656760;--studio-line:#d8d6ce;--studio-accent:#286256;background:var(--studio-bg);color:var(--studio-ink);border:1px solid var(--studio-line);border-radius:20px;padding:0;width:min(1440px,96vw);max-width:96vw;height:91dvh;max-height:94dvh;box-shadow:0 24px 90px #0005;overflow:hidden}
#creativeStudio::backdrop{background:#12231d90;backdrop-filter:blur(4px)}
html[data-theme=dark] #creativeStudio,body.dark #creativeStudio,[data-theme=dark] #creativeStudio{--studio-bg:#18211e;--studio-panel:#222e29;--studio-ink:#f1f3eb;--studio-muted:#b9c5bd;--studio-line:#45534b;--studio-accent:#b5dbc6}
#creativeStudio *{box-sizing:border-box}#creativeStudio [hidden]{display:none!important}
#creativeStudio h3,#creativeStudio p,#creativeStudio strong,#creativeStudio label,#creativeStudio summary{color:var(--studio-ink)}#creativeStudio small{color:var(--studio-muted)}
.studio-header{display:flex;align-items:center;gap:16px;padding:14px 20px;border-bottom:1px solid var(--studio-line)}.studio-header strong{font-size:19px}.studio-header button{margin-left:auto}
.studio-header,.studio-sidebar,.studio-preview>p{font-family:Arial,sans-serif}#creativeStudio textarea::placeholder{color:var(--studio-muted);opacity:1}
.studio-confirmation{font-family:Arial,sans-serif!important;background:#fffdf8!important;color:#27332d!important;border:1px solid #bac4bb!important;border-radius:16px!important;max-width:min(480px,92vw)}.studio-confirmation h3,.studio-confirmation p{color:inherit!important}.studio-confirmation::backdrop{background:#13231eb9}html[data-theme=dark] .studio-confirmation{background:#222e29!important;color:#f1f3eb!important}
.studio-preview{justify-content:flex-start!important}.studio-preview .spread{margin-block:auto}
.studio-body{display:grid;grid-template-columns:minmax(0,1fr) 340px;height:calc(100% - 70px)}.studio-preview{overflow:auto;padding:24px;min-width:0;display:flex;flex-direction:column;justify-content:center;background-image:radial-gradient(var(--studio-line) .7px,transparent .7px);background-size:16px 16px}.studio-preview>p{font-size:12px}.studio-preview .spread{width:100%;flex-shrink:0;box-shadow:0 8px 32px #0002}.studio-sidebar{border-left:1px solid var(--studio-line);background:var(--studio-panel);overflow:auto;padding:12px;min-width:0}
#creativeStudio button{border:1px solid var(--studio-line);border-radius:9px;padding:9px 11px;font-size:13px;line-height:1.3;background:var(--studio-panel);color:var(--studio-ink);box-shadow:none;transform:none;min-height:36px;cursor:pointer}#creativeStudio button:disabled{opacity:.5;cursor:not-allowed}#creativeStudio button:focus-visible,#creativeStudio select:focus-visible,#creativeStudio textarea:focus-visible{outline:2px solid var(--studio-accent);outline-offset:2px}
#creativeStudio nav{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;padding-bottom:14px}#creativeStudio nav button{font-size:11px;padding:8px 3px}#creativeStudio button[aria-pressed=true]{background:var(--studio-ink);color:var(--studio-panel);border-color:var(--studio-ink)}
#creativeStudio label{display:block;font-size:12px;margin:12px 0 6px}#creativeStudio select,#creativeStudio textarea,#creativeStudio input:not([type=color]):not([type=checkbox]):not([type=range]){display:block;width:100%;padding:9px;border:1px solid var(--studio-line);border-radius:9px;background:var(--studio-bg);color:var(--studio-ink);font:inherit;margin-top:6px}#creativeStudio input[type=color]{width:44px;height:34px;border:1px solid var(--studio-line);padding:2px;border-radius:7px}#creativeStudio input[type=checkbox]{width:auto}
.studio-settings h3{font-size:17px;margin:8px 0}.studio-settings p,.studio-tools p{font-size:12px;line-height:1.6}.studio-settings details{padding:10px 0;border-bottom:1px solid var(--studio-line)}.studio-chips{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.studio-colors{display:flex;gap:8px}.studio-quota{padding:9px;background:var(--studio-bg);border-radius:8px}#creativeStudio .studio-generate{width:100%;background:var(--studio-ink);color:var(--studio-panel);font-weight:bold;margin:7px 0}.studio-job{display:flex;flex-direction:column;gap:5px;padding:10px 0;border-bottom:1px solid var(--studio-line)}
.studio-templates,.studio-assets{display:grid;grid-template-columns:1fr 1fr;gap:8px}.studio-assets img{width:100%;height:85px;object-fit:contain}.studio-assets small{display:block;overflow-wrap:anywhere}.template-art{height:90px;position:relative;background:#f4f0e6;color:#222;padding:8px;text-align:left;overflow:hidden;margin-bottom:7px;border-radius:5px}.template-art span{font-family:Georgia,serif;font-size:32px}.template-art i{display:inline-block;background:#b6c2ba;width:29px;height:40px;margin:3px;vertical-align:bottom}.style-diary .template-art i{border:4px solid white;border-bottom-width:10px;transform:rotate(-8deg)}.style-marker .template-art span{font-style:italic;font-weight:900}.style-music .template-art{background:#d3ed6e}.style-minimal .template-art{background:#fff}.studio-template strong{font-size:12px}
.studio-template-card{display:flex;flex-direction:column;gap:5px;min-width:0}.studio-template-card .studio-template{flex:1;padding:6px!important}.studio-template-thumb{display:block;width:100%;height:auto;border-radius:5px;margin-bottom:7px}.studio-template small{display:block;line-height:1.4;margin-top:5px;font-size:11px}.studio-template-card>button:last-child:not(.studio-template){font-size:11px!important;padding:6px!important}.studio-references{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.studio-references>div{display:flex;flex-direction:column;gap:4px;min-width:0}.studio-references button{width:100%}.studio-reference-preview{padding:5px!important}.studio-reference-preview img{display:block;width:100%;height:85px;object-fit:contain;background:var(--studio-bg);border-radius:5px}.studio-reference-preview small{display:block;font-size:10px;line-height:1.4;margin-top:4px}.studio-chosen-reference{display:grid;grid-template-columns:60px 1fr;align-items:center;gap:8px;padding:8px 0}.studio-chosen-reference img{width:60px;height:70px;object-fit:contain}.studio-chosen-reference button{grid-column:2}#studioReferenceViewer{border:1px solid #a8b6ad;border-radius:14px;background:#f5f2eb;color:#262b28;width:min(960px,94vw);max-width:94vw;max-height:92dvh;padding:12px;box-sizing:border-box}#studioReferenceViewer::backdrop{background:#10211dc9}#studioReferenceViewer>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}#studioReferenceViewer strong{color:#262b28;font:600 15px Arial,sans-serif}#studioReferenceViewer button{background:#fff;color:#262b28;border:1px solid #aaa;border-radius:8px;padding:8px}#studioReferenceViewer img{display:block;max-width:100%;width:100%;height:calc(85dvh - 65px);object-fit:contain}
#studioAlbumPreview{width:min(1280px,96vw);max-width:96vw;max-height:94dvh;overflow:auto;background:#f4f2eb;color:#27332d;border:1px solid #aeb8b0;border-radius:16px;padding:18px;font-family:Arial,sans-serif}#studioAlbumPreview::backdrop{background:#13231ecd}#studioAlbumPreview>p,#studioAlbumPreview>div>label{font-size:13px;color:#27332d}#studioAlbumPreview strong{color:#27332d}.studio-album-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}.studio-album-controls{padding:10px 0;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.studio-album-controls label{display:flex;gap:8px;align-items:center}.studio-album-controls input{width:auto;margin:0}#studioAlbumPreview button{background:#263e34;color:#fff;border-radius:8px;padding:10px;border:0}.studio-album-sheets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.studio-album-sheets article{padding:10px;background:#e4e7df;border-radius:10px;min-width:0}.studio-album-sheets article>strong{display:block;font-size:13px;margin-bottom:8px}.studio-album-sheets .spread{width:100%;min-height:0;pointer-events:none}.studio-album-sheets .photo-caption{font-size:10px!important}.studio-album-sheets .slot>span:first-child{font-size:11px;color:#61736b}.kind-shape svg{display:block;width:100%;height:100%}@media(max-width:650px){.studio-album-sheets{grid-template-columns:1fr}#studioAlbumPreview{padding:10px}}
#creativeStudio .design-tools{padding:0;margin:0;border:0;background:transparent;box-shadow:none;transform:none}#creativeStudio .design-tools>summary{display:none}#creativeStudio .design-palette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}#creativeStudio .doodle-button{min-width:0;padding:5px}#creativeStudio .doodle-button svg,#creativeStudio .doodle-button img{width:32px;height:32px}#creativeStudio .design-layer-fields{position:static!important;display:block;padding:10px;border:1px solid var(--studio-line);background:var(--studio-bg);box-shadow:none;max-height:none}#creativeStudio .design-layer-fields label{display:block}#creativeStudio .design-layer-fields input{max-width:100%}.studio-launch{margin:10px 0}
@media(max-width:760px){#creativeStudio{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.studio-header{padding:10px;gap:8px}.studio-header small{display:none}.studio-header strong{font-size:16px}.studio-body{height:calc(100% - 58px);grid-template-columns:1fr;grid-template-rows:minmax(170px,40%) minmax(0,1fr)}.studio-preview{padding:10px;justify-content:flex-start}.studio-preview>p{margin:3px 0}.studio-sidebar{border-left:0;border-top:1px solid var(--studio-line)}#creativeStudio nav{position:sticky;top:-12px;background:var(--studio-panel);z-index:3;padding:8px 0}.studio-preview .spread{max-height:100%;}.studio-settings{max-width:520px;margin:auto}}
