/* Standalone atelier shell; the in-game editor is preserved. */
@font-face{font-family:Spectral;src:url('/assets/fonts/Spectral-Regular.ttf')}@font-face{font-family:'Spectral SC';src:url('/assets/fonts/SpectralSC-Regular.ttf')}
.atelier-topbar{height:auto;min-height:102px;position:relative;padding:20px clamp(18px,4vw,64px);gap:24px}
.atelier-topbar .brand{white-space:normal;min-width:0;gap:18px}.atelier-topbar .brand img{width:64px;height:64px;object-fit:contain;filter:none;flex:none}
.atelier-topbar .brand span{font:26px var(--heading);letter-spacing:.02em;line-height:1.2}.atelier-topbar .brand b{font-weight:400;color:#e0c085}
.atelier-topbar .brand small{font:14px var(--body);letter-spacing:0;line-height:1.5;margin-top:7px;color:#c1b4a1}
.atelier-nav{display:flex;align-items:center;gap:26px;padding:12px clamp(18px,4vw,64px);border-bottom:1px solid #b5986230;background:#211b1d90;font-size:14px;color:#bca989}
.atelier-nav span{margin-left:auto;color:#928774;font-size:12px;letter-spacing:.08em}.atelier-nav a:hover{color:#efd298}
body[data-view=styles] main{max-width:1440px;margin:0 auto;padding:32px clamp(18px,4vw,64px)}
body[data-view=styles] .style-empty{display:flex;flex-direction:column;align-items:center;gap:10px;min-height:300px}.style-empty p{max-width:52ch}
body[data-view=styles] .style-gallery-tools label{font-size:14px}.style-gallery-tools input,.style-gallery-tools select{font-size:15px}
.atelier-topbar .top-actions{flex:none}.atelier-topbar .username{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.atelier-save-status{min-height:22px;margin:-16px 0 20px;font:13px var(--body);color:#bca989}.atelier-save-status[data-state=error]{color:#edb192}
body[data-view=styles] .style-empty{background:radial-gradient(ellipse at top,#89704822,transparent 70%),#211d19;border:1px solid #91734b70;padding:38px 24px;color:#e0d1b6;text-align:center}
body[data-view=styles] .style-empty>img{width:72px;height:72px;object-fit:contain;margin-bottom:8px}body[data-view=styles] .style-empty.panel h2{color:#e5c381}body[data-view=styles] .style-empty p{color:#b9ac94;line-height:1.7}
body[data-view=styles] .style-empty.atelier-welcome{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,240px);gap:clamp(24px,5vw,72px);min-height:320px;padding:32px clamp(24px,5vw,64px);text-align:left;background:radial-gradient(ellipse at 80% 50%,#a7864224,transparent 60%),linear-gradient(115deg,#211c1b,#28251b)}
/* User-provided portrait is already cropped; display the complete image. */
.atelier-welcome-art{grid-column:2;grid-row:1;justify-self:center;width:100%;max-width:240px;filter:drop-shadow(0 8px 12px #0004)}.atelier-welcome-art .atelier-welcome-emblem{display:block;width:100%;height:auto}
.atelier-welcome-copy{grid-column:1;grid-row:1;max-width:52ch}.atelier-welcome-copy h2{font-size:clamp(26px,2.5vw,36px);line-height:1.25;margin:0 0 18px}.atelier-welcome-copy p{margin:0 0 26px}
@media(max-width:760px){body[data-view=styles] .style-empty.atelier-welcome{grid-template-columns:minmax(0,1fr);gap:20px;padding:24px 22px;text-align:center}.atelier-welcome-art{grid-column:1;grid-row:1;max-width:180px}.atelier-welcome-copy{grid-column:1;grid-row:2;justify-self:center}.atelier-welcome-copy h2{font-size:25px}.atelier-welcome-copy p{margin-bottom:22px}}
.atelier-drafts-heading p{font-size:13px;color:#aa9b82;margin:7px 0 0}.atelier-drafts-heading h2 span{display:inline-block;margin-left:8px;color:#bca989;font:14px var(--body)}
.atelier-gallery-error{border:1px solid #a47d4766;background:#292119;padding:24px;margin:20px 0}.atelier-gallery-error h2{color:#e5c381}.atelier-gallery-error p{color:#b9ac94;margin:10px 0 16px}
.atelier-personal-collection{margin-top:28px}.atelier-personal-collection .section-heading{margin-top:0}.atelier-personal-empty{padding:20px;border:1px solid var(--line);background:#211b2499}.atelier-personal-empty p{margin:0 0 14px;font-size:14px;color:var(--muted)}
.style-photo-panel .style-photo{position:relative;aspect-ratio:auto;width:100%;min-width:0;height:clamp(220px,50vh,440px)}.style-photo-panel .style-photo.is-wide{aspect-ratio:auto}.style-photo-expand{position:absolute;right:12px;bottom:12px;padding:8px 12px;border:1px solid #b6996970;background:#171416de;color:#e4d0ab;font-size:13px;min-height:40px}
body[data-view=styles] .style-workspace{grid-template-columns:minmax(0,420px) minmax(0,1fr)}
body[data-view=styles] .style-workspace.is-finalize{display:block}
.is-finalize>.style-photo-panel{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr)}
.is-finalize>.style-photo-panel>.style-photo,.is-finalize>.style-photo-panel>.style-photo-tools,.is-finalize>.style-photo-panel>.style-photo-upload-status{grid-column:1}
.is-finalize>.style-photo-panel>.style-story{grid-column:2;grid-row:1 / span 5;border-left:1px solid var(--line);align-content:start}
@media(max-width:760px){.is-finalize>.style-photo-panel{grid-template-columns:minmax(0,1fr)}.is-finalize>.style-photo-panel>.style-story{grid-column:1;grid-row:auto;border-left:0;border-top:1px solid var(--line)}}
.style-photo-panel{min-width:0;width:100%}.style-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.style-story label{min-width:0}.style-story :is(input,textarea,select){width:100%;min-width:0}.style-file-tools>span{overflow-wrap:anywhere}
.style-mini-gallery{grid-column:1;min-width:0;padding:14px 18px;border-top:1px solid var(--line);display:grid;gap:12px}.style-mini-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.style-mini-gallery-heading>span{color:var(--muted);font-variant-numeric:tabular-nums}.style-mini-gallery-thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.style-mini-gallery-thumb{position:relative;min-width:0;width:100%;height:86px;padding:0;overflow:hidden;border:1px solid var(--line);background:#1c1820;color:var(--text)}.style-mini-gallery-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.style-mini-gallery-thumb>span{position:absolute;bottom:0;left:0;right:0;padding:4px;background:#171416db;font-size:11px}.style-mini-gallery-thumb[aria-pressed=true]{border-color:var(--gold);outline:2px solid var(--gold);outline-offset:2px}.style-mini-gallery>.button{justify-self:start}.style-mini-gallery [aria-disabled=true]{pointer-events:none;opacity:.5}.style-mini-gallery-thumb:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.style-card .style-photo{aspect-ratio:auto;height:clamp(160px,24vw,280px)}
body[data-view=styles] .style-card .style-photo img{object-fit:cover}
.style-card-open[data-local=false]{height:100%;display:flex;flex-direction:column}.style-card-open[data-local=false] .style-photo{width:100%;flex:none}.style-card-open[data-local=false] .style-card-caption{width:100%;flex:1;display:flex;flex-direction:column}
.style-card-meta{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:auto}.style-card-meta>span:first-child{min-width:0;overflow-wrap:anywhere}.style-card-ratings{display:flex;align-items:center;gap:12px;flex:none;margin-left:auto}.style-card-rating{display:inline-flex;align-items:center;gap:5px;line-height:1.2;font-variant-numeric:tabular-nums}.style-card-rating svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.style-card-rating.is-dislike svg{transform:rotate(180deg)}
 .style-photo-tools [aria-disabled=true]{pointer-events:none;opacity:.5}.style-photo-upload-status{font-size:13px;margin:0 18px 14px}
dialog:has(.style-photo-viewer){width:min(900px,calc(100vw - 32px));max-height:90vh}.style-photo-viewer{display:grid;place-items:center;background:#171416;min-height:120px}.style-photo-viewer img{width:auto;height:auto;max-width:100%;max-height:min(520px,65vh);object-fit:contain}
@media(max-width:760px){body[data-view=styles] .style-workspace{grid-template-columns:minmax(0,1fr)}.style-photo-panel .style-photo{aspect-ratio:auto;height:min(360px,48vh)}.style-card .style-photo{aspect-ratio:auto;height:clamp(140px,45vw,220px)}}
@media(max-width:760px){.atelier-topbar{padding:18px;gap:12px;align-items:flex-start}.atelier-topbar .brand{gap:10px}.atelier-topbar .brand img{width:44px;height:44px}.atelier-topbar .brand span{font-size:20px}.atelier-topbar .brand small{font-size:12px;max-width:30ch}.atelier-topbar .top-actions{gap:4px;flex-wrap:wrap;max-width:90px}.atelier-topbar .discord-btn{font-size:12px!important;padding:7px}.atelier-nav{padding:10px 18px;font-size:12px;gap:12px}.atelier-nav span{display:none}.atelier-nav a:last-child{margin-left:auto}body[data-view=styles] main{padding:24px 14px}.style-empty h2{font-size:23px}.style-gallery-tools{gap:12px}}
