#decorations {
  --studio-line:#49313f;
  --studio-muted:#c7b6be;
  color:#f8eff3;
  background:#161119;
  border:1px solid #713047;
  border-radius:18px;
  margin:0 0 1.5rem;
  padding:0;
  container-type:inline-size;
}
#decorations [hidden] { display:none }
#decor-controls > p { padding:1rem }
.art-studio { padding:clamp(1rem,3cqi,2rem); min-width:0 }
.art-heading,.art-identity,.art-stage-head,.art-caption,.art-footer,.art-sizes { display:flex; align-items:center }
.art-heading,.art-stage-head { justify-content:space-between; gap:.8rem }
.art-heading { margin-bottom:1.15rem }
.art-identity { min-width:0; gap:.85rem }
.art-stamp { position:relative; display:grid; place-items:center; width:48px; height:48px; flex:none; overflow:hidden; border-radius:14px; border:1px solid #a45b73; background:#492134; color:#ffdfe8; font-size:1.3rem; font-weight:750 }
.art-stamp img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover }
.art-names { min-width:0 }
.art-names h2 { margin:0; font:inherit; font-size:clamp(1.25rem,3.2cqi,1.9rem); font-weight:750; letter-spacing:-.035em; line-height:1.15 }
.art-server { min-width:0; margin-top:.25rem; font-size:.87rem; color:var(--studio-muted) }
#decorations .art-server summary { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; cursor:pointer; font-weight:500 }
.art-server summary::-webkit-details-marker { display:none }
.art-server[open] summary { white-space:normal; overflow-wrap:anywhere }
.art-server:focus-within summary { white-space:normal; overflow-wrap:anywhere }
.art-studio button,.art-studio input,.art-studio select { font:inherit }
.art-studio button { cursor:pointer; color:inherit; border:1px solid var(--studio-line); background:#261b25; border-radius:8px; padding:.5rem .8rem; font-weight:650 }
.art-studio button:hover:enabled { border-color:#c66a89 }
.art-studio :is(button,summary,input,select):focus-visible { outline:2px solid #ffc1d1; outline-offset:3px }
.art-studio .art-edit { background:#ad254e; color:white; border-color:#c3486b; flex:none }
.art-studio button:disabled { opacity:.5; cursor:default }
.art-nav { display:flex; gap:.3rem; overflow-x:auto; padding:.25rem .15rem .65rem; margin-bottom:.9rem; border-bottom:1px solid var(--studio-line) }
.art-nav button { white-space:nowrap; border:0; color:var(--studio-muted); background:transparent }
.art-nav button[aria-pressed=true],.art-sizes button[aria-pressed=true] { color:#fff; background:#502336 }
.art-work { min-width:0 }
.art-studio.is-editing .art-work { display:grid; grid-template-columns:minmax(0, .9fr) minmax(0,1.1fr); gap:clamp(1rem,2.5cqi,1.75rem); align-items:start }
.art-controls { display:grid; gap:.9rem; min-width:0 }
.art-field { display:grid; gap:.4rem; font-size:.9rem; color:#f4e4ea }
.art-field:has(input[type=checkbox]) { display:flex; align-items:center; justify-content:space-between; gap:.8rem }
.art-field :is(select,input:not([type=checkbox])) { width:100%; box-sizing:border-box; min-width:0; padding:.6rem; border:1px solid #654354; border-radius:7px; background:#211921; color:inherit }
.art-field input[type=color] { height:42px; cursor:pointer }
.art-choices { border:0; min-width:0; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,5.5rem),1fr)); gap:.5rem }
.art-choices legend { font-weight:700; margin-bottom:.55rem }
.art-choice { position:relative; min-width:0; display:flex; flex-direction:column; gap:.3rem; align-items:flex-start; cursor:pointer; font-size:.82rem }
.art-choice > input { position:absolute; opacity:0; width:1px; height:1px }
.art-choice small,.art-controls small,.art-caption { color:var(--studio-muted) }
.art-choice:has(:disabled) { cursor:default; opacity:.68 }
.art-mini { --art-a:#3b223c; --art-b:#9e5681; position:relative; box-sizing:border-box; width:100%; height:44px; border:1px solid #735364; border-radius:7px; background:linear-gradient(125deg,var(--art-a),var(--art-b)); overflow:hidden }
.art-mini i { position:absolute; inset:5px; border:1px solid #ffffff70; border-radius:2px }
.art-mini i::before { content:""; position:absolute; width:13px; height:13px; left:6px; top:7px; border-radius:50%; background:#ffffffa8 }
.art-mini i::after { content:""; position:absolute; left:25px; right:8px; height:3px; top:11px; background:#ffffff8f }
.art-choice:is([data-style=midnight],[data-style=aurora],[data-style=constellation]) .art-mini { --art-a:#101b38; --art-b:#3d737d; background:radial-gradient(circle at 70% 25%,#fff 1px,transparent 2px),radial-gradient(circle at 85% 70%,#dfc69d 1px,transparent 2px),linear-gradient(125deg,var(--art-a),var(--art-b)) }
.art-choice[data-style=blossom] .art-mini { --art-a:#4d2441; --art-b:#cf91a3 }
.art-choice[data-style=vintage] .art-mini { --art-a:#5c412d; --art-b:#d5ae7a }
.art-choice[data-style=classic] .art-mini { --art-a:#301423; --art-b:#a33550 }
.art-choice[data-style=polaroid] .art-mini i { border:3px solid #fff4de; border-bottom-width:7px; transform:rotate(-4deg) }
.art-choice[data-style=glass] .art-mini { background:conic-gradient(from 40deg at 40% 60%,#82416f,#4e5f9b,#bc755c,#82416f) }
.art-choice input:checked + .art-mini { border:2px solid #ff9bb5 }
.art-choice input:focus-visible + .art-mini { outline:2px solid white; outline-offset:2px }
.art-tick { display:none; position:absolute; right:3px; bottom:3px; width:18px; height:18px; border-radius:5px; background:#ffc0d1; color:#301323; place-items:center; font-weight:800; line-height:1 }
.art-choice input:checked + .art-mini .art-tick { display:grid }
.art-stage { min-width:0; padding:.8rem; border:1px solid var(--studio-line); border-radius:12px; background:#100f14 }
.art-stage-head { flex-wrap:wrap; margin-bottom:.65rem }
.art-stage h3 { margin:0; font-size:.95rem }
.art-sizes { gap:2px }
.art-sizes button { padding:.35rem .55rem; background:transparent; border:0; font-size:.8rem }
.art-surface { position:relative; max-width:680px; margin:auto; overflow:hidden; border-radius:8px; border:1px solid #81384e; background:#201620 }
.art-stage.is-compact .art-surface { max-width:320px }
.art-surface img,.art-placeholder { display:block; width:100%; aspect-ratio:2; object-fit:contain }
.art-placeholder { display:grid; place-content:center; gap:.65rem; text-align:center; padding:.8rem; box-sizing:border-box; overflow-wrap:anywhere }
.art-placeholder.is-palette { background:linear-gradient(115deg,var(--bg-card,#30121e),var(--decor-wash,#501d31)); border-left:5px solid var(--decor-accent); font-size:1.2rem; font-weight:700 }
.art-palette-chips { display:flex; flex-wrap:wrap; justify-content:center; gap:.35rem }
.art-palette-chips span { padding:.35rem .55rem; border:1px solid var(--studio-line); border-radius:5px; background:#1a141e; font-size:.72rem }
.art-palette-chips span:first-child { border-color:var(--decor-accent) }
@media(prefers-reduced-motion:no-preference) {
  #dashboard:not(.decor-still) .art-surface:has(img:not([hidden]))::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(110deg,transparent 38%,#ffffff20 50%,transparent 62%); animation:decor-foil 1.2s ease-out both }
}
.art-caption { font-size:.8rem; margin:.6rem 0 0; gap:.4rem }
.art-caption::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--decor-accent,#ff657d) }
.art-footer { position:sticky; bottom:10px; z-index:2; gap:.5rem; margin-top:1rem; padding:.6rem; border:1px solid var(--studio-line); border-radius:10px; background:#211821; box-shadow:0 6px 18px #0004 }
.art-footer span { flex:1; min-width:0; font-size:.86rem; overflow-wrap:anywhere }
@container (max-width:670px) {
  .art-studio.is-editing .art-work { display:flex; flex-direction:column }
  .art-stage { order:-1 }
  .art-stage,.art-controls { width:100%; box-sizing:border-box }
  .art-heading { flex-wrap:wrap }
  .art-footer { bottom:max(6px,env(safe-area-inset-bottom)) }
  .art-nav { flex-wrap:wrap }
}
@media (forced-colors:active) {
  .art-choice input:checked + .art-mini,.art-nav button[aria-pressed=true],.art-sizes button[aria-pressed=true] { outline:2px solid Highlight }
}
