[hidden]{display:none!important}
.library{overflow:auto}
.creation,.head-history{margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.creation summary{cursor:pointer;list-style:none;text-align:center}
.creation .dropzone{min-height:78px;margin:12px 0;padding:12px;gap:4px}
.creation .dropzone strong,.creation .dropzone small{display:block}
.creation .permission{display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.4;margin:12px 0}
.creation #preview-image{display:block;max-height:112px;max-width:100%;object-fit:contain}
.creation #generate{width:100%;padding:8px}
.creation p,.head-history p,.work-preview>small{font-size:12px;line-height:1.45;color:var(--muted);margin:8px 0}
.library-title{justify-content:space-between}
.job-actions{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0}
.library button:not(.primary),dialog button:not(.primary),.viewer-toolbar>button,.top-right>button{border:1px solid var(--line);background:#212830;color:#e6edf3;padding:5px 9px;font-size:12px}
.library .head-history h2{font-size:15px}
.library .head-history h3{font-size:13px}
.head-history .job-row{display:block;padding:8px 0;overflow-wrap:anywhere}
#viewer-package:empty,#viewer-status:empty,.creation p:empty{display:none}
.toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:#212830;color:#fff;padding:10px 18px;border:1px solid var(--line);border-radius:6px;z-index:10}
@media(max-width:700px){.library{max-height:none}.top-right{gap:5px}}

.surface-controls{display:flex;flex-wrap:wrap;gap:8px 24px;padding:8px 14px}.surface-controls label{display:flex;align-items:center;gap:8px;font-size:12px}.surface-controls output{min-width:4ch;font-variant-numeric:tabular-nums}.surface-controls input[type=range]{width:clamp(80px,12vw,160px)}

.sample-library h2,.surface-options summary{font-size:13px;font-weight:600}
#sample-list{display:grid;gap:4px}
.library #sample-list button{display:flex;align-items:center;gap:10px;padding:5px;text-align:left;background:transparent;border:1px solid transparent;border-radius:6px}
.library #sample-list button:hover,.library #sample-list button:focus-visible{background:#292e33;border-color:#515b66}
#sample-list img{width:32px;height:36px;object-fit:cover;border-radius:4px;background:#303439}
.surface-options summary{padding:9px 14px;cursor:pointer;color:#c4cbd4}
.library .primary{background:linear-gradient(180deg,#338752,#266b41);border:1px solid #549367;color:white}
.front-page{min-height:100svh;background:linear-gradient(140deg,#181b1e,#202326);color:#eef0f1}
.front-layout{width:min(1240px,94%);margin:auto;min-height:82svh;display:grid;grid-template-columns:1fr 1.65fr;gap:5%;align-items:center}
.front-layout h1{font-size:clamp(44px,5vw,82px);line-height:1.01;letter-spacing:-.055em;margin:0}
.front-layout p{max-width:32ch;color:#bec5ca;line-height:1.6}
.open-studio{display:inline-flex;align-items:center;gap:22px;padding:10px 16px;border:1px solid #549367;border-radius:6px;background:linear-gradient(#338752,#266b41);color:white;text-decoration:none}
.front-page .stage{height:clamp(350px,64vh,700px)}.source-card{position:absolute;bottom:18px;left:18px;margin:0;width:74px;border:1px solid #636b73;border-radius:5px;overflow:hidden;background:#22272b}.source-card img{display:block;width:100%;height:90px;object-fit:cover}.source-card img[data-source-next]{position:absolute;inset:0;opacity:0}.source-card figcaption{padding:4px;text-align:center;font-size:10px}
@media(max-width:760px){.front-layout{grid-template-columns:1fr;gap:24px;padding:36px 0}.front-page .stage{height:44svh}}
.job-photo{width:38px;height:44px;object-fit:cover;border-radius:5px;float:left;margin:0 9px 5px 0}.job-actions{clear:both}
.storage-panel summary,.account-closure summary{cursor:pointer;font-size:12px;color:var(--muted);padding:7px 0}
.job-row[data-state=active] strong+p::before{content:"";display:inline-block;width:7px;height:7px;margin:0 6px 1px 0;border-radius:50%;background:#82b3fc}
#refresh-jobs::before{content:"";display:inline-block;width:15px;height:15px;margin-right:0;vertical-align:-3px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%207v5h-5%20M19.2%208a8%208%200%201%200%20.5%207%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
.surface-options summary::before{content:"";display:inline-block;width:15px;height:15px;margin-right:6px;vertical-align:-3px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207h7m4%200h7M3%2017h11m4%200h3%20M10%204v6m4%204v6%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
.workspace-lighting>span::before{content:"";display:inline-block;width:15px;height:15px;margin-right:6px;vertical-align:-3px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%201v3m0%2016v3M1%2012h3m16%200h3M4%204l2%202m12%2012%202%202M4%2020l2-2M18%206l2-2%20M16%2012a4%204%200%201%201-8%200%204%204%200%201%201%208%200%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
.canvas-download::before{content:"";display:inline-block;width:15px;height:15px;margin-right:6px;vertical-align:-3px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v12m-5-5%205%205%205-5%20M4%2016v4h16v-4%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
.dropzone strong::before{content:"";display:inline-block;width:15px;height:15px;margin-right:6px;vertical-align:-3px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2016V4m-5%205%205-5%205%205M4%2016v4h16v-4%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
[data-signup]::before{content:"";display:inline-block;width:15px;height:15px;margin-right:6px;vertical-align:-3px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2020c0-7%2016-7%2016%200%20M16%208a4%204%200%201%201-8%200%204%204%200%201%201%208%200%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}

body:not(.front-page),.library,.work-preview{background:#191c20}.topbar{background:linear-gradient(115deg,#17191b,#202429)}
.workspace .library-title{display:flex;align-items:center;padding:0 0 9px}.library #refresh-jobs{font-size:0;padding:5px 7px}
.front-layout .work-preview{display:block;height:auto;padding:0;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.front-layout .stage{height:clamp(340px,61vh,620px);border:0;border-radius:0}.front-layout .viewer-bottom{padding-inline:16px}
.surface-options summary{width:fit-content}.sample-library{order:1}.storage-panel,.account-closure{order:2}.sample-library{padding-bottom:16px}
.library #sample-list [aria-pressed=true]{background:#293038;border-color:#47525f}.library summary{outline-offset:3px}
@media(max-width:700px){.front-layout .stage{height:41svh;min-height:300px}.workspace .stage-help{display:none}.workspace .topbar{padding-inline:14px}}
.head-options summary{font-size:12px;color:var(--muted);cursor:pointer;padding:5px}.head-options[open]{width:100%}.head-options>button{margin:3px}.head-options small{display:block}.photo-terms{display:block;color:var(--muted);font-size:11px;margin-top:6px}
@media(max-width:620px){
.workspace .library{display:flex;flex-direction:column;gap:9px}
.library .creation,.library .head-history,.library .sample-library{margin:0;padding-bottom:9px}
.library #sample-list{display:flex;gap:4px;flex-wrap:wrap}.library #sample-list button{font-size:12px}
.library #sample-list img{width:27px;height:30px}.library h2{margin-bottom:4px}
}
.library .head-history .job-row{padding:8px 9px;background:#20252a;border:1px solid #383f46;border-radius:6px;margin:5px 0}.job-row .job-actions:empty{display:none}
.library .head-history .job-row[data-state=active]{border-color:#3b4e61}
