body[data-artwork-page] { --art-ink: #344459; --art-rose: #945270; --art-line: #e9e2e9; }
body[data-artwork-page] [hidden] { display: none !important; }
.art-toolbar { padding: 12px 0; background: #fcf9fc; border-bottom: 1px solid var(--art-line); }
.art-toolbar { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.art-source-label { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.art-source-label select { font: inherit; padding: 10px; background: white; color: var(--art-ink); border: 1px solid #e0d9e3; border-radius: 8px; }
.art-x-note { display: block; margin-top: 5px; color: #387778; font-size: 11px; }
.art-usage { font-size: 11px; line-height: 1.8; color: #697987; white-space: pre-line; overflow-wrap: anywhere; margin: 0; }
html.holo-studio-ui body[data-artwork-page] .art-search { position: sticky; top: var(--art-header-height,108px); z-index: 30; width: 100%; max-width: none; margin: 0; padding: 10px 0; background: #fcf9fc; }
.art-search input { min-width: 0; width: 100%; font: inherit; }
.art-filter-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.art-filter-row > label { display: flex; align-items: center; gap: 8px; font-size: 12px; min-width: 0; }
.art-filter-row select { font: inherit; color: var(--art-ink); border: 1px solid #e0d9e3; border-radius: 8px; background: white; padding: 10px; max-width: 100%; min-width: 0; }
.art-modes { display: inline-flex; gap: 4px; padding: 4px; background: #f3edf2; border-radius: 8px; }
.art-modes button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 12px; min-height: 44px; border: 0; border-radius: 6px; font: inherit; font-size: 12px; cursor: pointer; color: #657383; background: transparent; transition: background .2s, color .2s; }
.art-modes button img { width: 18px; height: 18px; flex: 0 0 18px; opacity: .65; }
.art-modes button[aria-pressed="true"] img { opacity: 1; animation: art-nod .35s ease-out; }
.art-modes button[aria-pressed="true"] { color: #874c6a; background: white; box-shadow: 0 2px 5px #59344c0c; }
.art-results { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; min-height: 56px; font-size: 13px; color: #70808c; }
.art-results p { margin: 0; }
.art-results button { font: inherit; border: 0; background: none; color: var(--art-rose); cursor: pointer; padding: 10px 0; }
.art-result-actions,.art-view-actions { display: flex; align-items: center; gap: 8px; }
.art-result-actions { justify-content: flex-end; flex-wrap: wrap; }
.art-results #art-saved { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--art-line); border-radius: 8px; white-space: nowrap; }
#art-saved[aria-pressed="true"],html.holo-studio-ui body[data-artwork-page] #art-favorite[aria-pressed="true"] { background: #f8e2ee !important; border-color: #e6b9d0 !important; }
#art-saved-count { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.art-view-actions { flex: 0 0 auto; }
.art-save-error { flex: 0 0 auto; margin: 0; padding: 8px 22px; font-size: 12px; color: #945270; background: #fff3f7; }
.art-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px 22px; }
.art-card { min-width: 0; animation: art-arrive .38s cubic-bezier(.22,.8,.3,1) var(--art-delay,0ms) both; }
.art-card-media { width: 100%; aspect-ratio: 3/4; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb,var(--member-color) 5%,white); border: 1px solid var(--art-line); border-top: 3px solid color-mix(in srgb,var(--member-color) 60%,white); border-radius: 8px; cursor: pointer; overflow: hidden; transition: background .25s, border-color .25s; }
.art-card-media img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; transition: transform .4s cubic-bezier(.2,.8,.25,1.2); }
.art-card-media:hover { background: color-mix(in srgb,var(--member-color) 10%,white); border-color: color-mix(in srgb,var(--member-color) 38%,white); }
.art-card-media:hover img { transform: translateY(-3px); }
.art-card-media { position: relative; }
.art-fit { position: absolute; inset: 16px; container-type: size; display: grid; place-items: center; }
.art-figure { display: block; width: 100%; height: 100%; position: relative; }
.art-figure.art-measured { width: min(100cqw,calc(100cqh * var(--figure-ratio))); height: min(100cqh,calc(100cqw / var(--figure-ratio))); }
.art-figure.art-measured img { position: absolute; max-width: none; width: var(--image-width); height: var(--image-height); left: var(--image-left); top: var(--image-top); object-fit: fill; }
html.holo-studio-ui body[data-artwork-page] .art-card h2 { font-size: 16px !important; line-height: 1.6 !important; }
.art-card-media:focus-visible,.art-icon:focus-visible,.art-outfits button:focus-visible { outline: 3px solid #5b95b0; outline-offset: 3px; }
.art-card p { font-size: 11px; color: #7e8790; margin: 12px 0 5px; }
.art-card h2 { color: var(--art-ink); font-size: 16px; line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
html.holo-studio-ui .art-card h2::before { display: none !important; }
.art-card-foot { margin-top: 7px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.art-card-foot span { font-size: 12px; color: #946981; }
.art-card-foot a { display: inline-flex; align-items: center; gap: 3px; color: #497b87; text-decoration: none; font-size: 12px; min-height: 34px; }
.art-card-foot img { width: 16px; height: 16px; }
.art-media-error { padding: 20px; font-size: 12px; color: #7c6978; }
.art-more { text-align: center; padding: 32px 0; }
.art-more button { border: 1px solid #e9d3df; border-radius: 8px; padding: 13px 35px; font: inherit; color: #854f6b; background: #f9e8f1; cursor: pointer; }
.art-credit { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 11px; color: #78818d; border-top: 1px solid var(--art-line); padding: 24px 0; }
.art-credit a { color: #697987; }
.art-empty { grid-column: 1/-1; padding: 48px 0; text-align: center; color: #7b7780; }
dialog.art-viewer { width: min(1080px,calc(100% - 48px)); max-width: none; height: min(850px,calc(100dvh - 48px)); max-height: none; padding: 0; border: 1px solid #e8dce6; border-radius: 8px; background: #fff; color: #344459; overflow: hidden; }
dialog.art-viewer[open] { display: flex; flex-direction: column; animation: art-arrive .32s cubic-bezier(.2,.8,.2,1.1); }
.art-viewer::backdrop { background: #34445970; }
.art-view-head { flex: 0 0 auto; padding: 15px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--art-line); }
.art-view-head > div { min-width: 0; }
.art-view-head p { font-size: 11px; color: #7e8790; margin: 0 0 5px; }
.art-view-head h2 { font-size: 20px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.art-view-body { display: grid; grid-template-columns: minmax(0,1fr) 264px; min-height: 0; flex: 1; }
.art-stage { min-width: 0; min-height: 0; overflow: auto; background: #f1f7f6; position: relative; overscroll-behavior: contain; }
.art-canvas { width: calc(100% * var(--zoom,1)); height: calc(100% * var(--zoom,1)); padding: 18px; }
.art-canvas img { display: block; width: 100%; height: 100%; object-fit: contain; }
.art-stage[data-zoomed="false"] { touch-action: pan-y pinch-zoom; }
.art-canvas video { display:block;width:100%;height:100%;object-fit:contain;background:#f1f7f6; }
.art-stage[aria-busy="true"] .art-canvas > img { opacity: 0; }
.art-loading { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 8px; color: #7f6578; font-size: 12px; pointer-events: none; margin: 0; }
.art-loading img { animation: art-wait 1s ease-in-out infinite; }
.art-modes { max-width:100%;flex-wrap:wrap; }
.art-modes button { padding-inline:12px;min-height:44px; }
#art-image-error { position: absolute; inset: 40% 16px auto; text-align: center; font-size: 13px; }
.art-view-details { padding: 22px; overflow-y: auto; min-height: 0; border-left: 1px solid var(--art-line); }
.art-outfit-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.art-outfit-heading h3 { font-size: 14px; margin: 0 0 12px; }
.art-outfit-heading span { font-size: 11px; white-space: nowrap; color: #78818d; }
.art-outfits { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 3px; }
.art-outfits button { position: relative; width: 100%; height: 94px; min-width: 0; padding: 5px 5px 20px; font: inherit; font-size: 10px; border: 1px solid #e7dce6; border-radius: 6px; color: #7f6578; background: #faf7fa; cursor: pointer; transition: border-color .2s, background .2s; }
.art-outfits button img { display: block; width: 100%; height: 100%; object-fit: contain; }
.art-preview-error { display: grid; height: 100%; place-items: center; font-size: 10px; line-height: 1.4; color: #7f6578; }
.art-outfit-number { position: absolute; bottom: 3px; left: 0; width: 100%; text-align: center; font-variant-numeric: tabular-nums; }
.art-outfits button[aria-pressed="true"]::after { content: ""; position: absolute; inset: 2px; border: 1px solid #b56d91; border-radius: 4px; pointer-events: none; }
.art-outfits button[aria-pressed="true"] { background: #f8e2ee; color: #804668; border-color: #e6b9d0; }
.art-view-links { display: grid; gap: 14px; margin-top: 24px; }
.art-view-links a { color: #467787; font-size: 12px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; line-height: 1.6; }
.art-view-links img { width: 16px; height: 16px; }
.art-view-controls { padding: 10px 20px; display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--art-line); flex: 0 0 auto; background: #fff; }
.art-step { display: flex; gap: 4px; }
.art-icon { display: inline-grid; place-items: center; padding: 0; width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 50%; background: #f6eef4; color: #765569; cursor: pointer; }
.art-icon:disabled { opacity: .35; cursor: default; }
.art-back { transform: rotate(180deg); }
.art-zoom { display: flex; align-items: center; gap: 10px; font-size: 12px; flex: 1; min-width: 0; }
.art-zoom { white-space: nowrap; }
.art-zoom input { flex: 1; min-width: 0; width: 0; accent-color: #b56790; }
.art-zoom output { min-width: 4ch; font-variant-numeric: tabular-nums; }
body:has(.art-viewer[open]) { overflow: hidden; }
/* Scope the shared button skin so the wardrobe retains its soft member accents. */
html.holo-studio-ui body[data-artwork-page] .art-card-media {
  border-top: 3px solid color-mix(in srgb,var(--member-color) 60%,white) !important;
  background: color-mix(in srgb,var(--member-color) 5%,white) !important;
  box-shadow: none !important; transform: none !important;
}
html.holo-studio-ui body[data-artwork-page] :is(.art-modes,.art-outfits) button[aria-pressed="true"] {
  background: #f8e2ee !important; border-color: #e6b9d0 !important; color: #804668 !important;
}
html.holo-studio-ui body[data-artwork-page] .art-icon { border-radius: 50% !important; box-shadow: none !important; }
html.holo-studio-ui body[data-artwork-page] .art-outfit-heading h3 { font-size: 14px !important; line-height: 1.5 !important; }
html.holo-studio-ui body[data-artwork-page] .art-search input { min-height: 38px; padding: 8px; }
html.holo-studio-ui body[data-artwork-page] .art-zoom input { border: 0 !important; }
@keyframes art-arrive { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes art-nod { 0% { transform: rotate(-10deg) scale(.9); } 65% { transform: rotate(5deg) scale(1.05); } 100% { transform: none; } }
@keyframes art-wait { 0%,100% { transform: translateY(2px) scale(.95); } 50% { transform: translateY(-3px) scale(1.05); } }
@media (max-width: 1100px) { .art-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 760px) {
  .art-toolbar { padding: 10px 0; }
  .art-toolbar { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
  .art-filter-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
  .art-filter-row > label { display: grid; gap: 4px; font-size: 10px; line-height: 1.6; }
  .art-filter-row select { width: 100%; font-size: 12px; min-height: 44px; padding: 8px; }
  .art-filter-row .art-source-label { grid-column: 1/-1; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 12px; }
  .art-modes { display: grid; grid-template-columns: 1.3fr 1.2fr .75fr; width: 100%; }
  .art-modes button { flex-direction: column; padding: 7px 4px; gap: 5px; font-size: 11px; }
  .art-search input { font-size: 16px; }
  .art-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; }
  .art-card-media { aspect-ratio: 3/5; padding: 8px; }
  .art-fit { inset: 10px; }
  html.holo-studio-ui body[data-artwork-page] .art-card h2 { font-size: 13px !important; }
  .art-card h2 { font-size: 13px; }
  .art-card p { font-size: 10px; }
  .art-results { font-size: 11px; }
  .art-results { flex-wrap: wrap; }
  dialog.art-viewer { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .art-view-head { padding: max(10px,env(safe-area-inset-top)) 16px 10px; }
  .art-view-head h2 { font-size: 16px; }
  .art-view-head p { font-size: 10px; }
  .art-view-body { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(100px,1fr) auto; }
  .art-view-details { padding: 10px 16px; border-left: 0; border-top: 1px solid var(--art-line); max-height: 202px; }
  .art-outfit-heading h3 { font-size: 12px; margin-bottom: 8px; }
  .art-outfits { display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; padding: 3px; scroll-padding-inline: 3px; }
  .art-outfits button { width: 64px; height: 80px; flex: 0 0 64px; }
  .art-view-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
  .art-view-controls { gap: 8px; padding: 8px 12px max(8px,env(safe-area-inset-bottom)); }
  .art-zoom { gap: 6px; font-size: 10px; }
  .art-canvas { padding: 12px; }
}
@media (max-height: 520px) and (max-width: 760px) {
  .art-view-body { grid-template-columns: minmax(0,1fr) minmax(0,200px); grid-template-rows: minmax(0,1fr); }
  .art-view-details { max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  .art-card-media,.art-card-media img,.art-outfits button,.art-modes button { transition: none; }
  .art-card-media:hover img { transform: none; }
  dialog.art-viewer[open],.art-card,.art-modes button[aria-pressed="true"] img,.art-loading img { animation: none; }
}
.art-browser { display:grid; grid-template-columns:minmax(210px,242px) minmax(0,1fr); align-items:start; gap:18px; }
.art-refine { min-width:0; position:sticky; top:120px; border-block:1px solid #dec7d5; background:#fbf1f6; padding:10px; }
.art-refine > h2 { margin:0 0 6px; font-size:17px; color:#704158; }
html.holo-studio-ui body[data-artwork-page] .art-refine .art-search { position:static; margin:0; background:transparent; }
.art-refine .art-toolbar { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; border:0; padding:7px 0 0; background:none; }
.art-refine .art-modes { flex-wrap:wrap; }
.art-refine .art-modes button { justify-content:flex-start; padding-inline:6px; min-height:38px; }
.art-refine .art-filter-row { display:grid; grid-template-columns:minmax(0,1fr); gap:7px; }
.art-refine .art-filter-row > label { justify-content:space-between; }
.art-refine .art-filter-row select { width:min(68%,148px); padding:7px; }
.art-gallery { min-width:0; }
.art-gallery .art-results { border-block-start:2px solid #dfbfd0; padding:7px 0; }
.art-density { display:flex; gap:2px; background:#f2eaf0; border:1px solid #e6d8e1; border-radius:6px; }
.art-density button { display:grid; place-items:center; width:38px; height:38px; padding:0; border-radius:5px; }
.art-density button[aria-pressed="true"] { background:white; box-shadow:inset 0 -2px #965677; }
body[data-artwork-page] .art-grid[data-density="compact"] { grid-template-columns:repeat(auto-fill,minmax(min(118px,100%),1fr)); gap:8px; }
body[data-artwork-page] .art-grid[data-density="compact"] .art-card-media { aspect-ratio:1 / 1.24; }
body[data-artwork-page] .art-grid[data-density="compact"] .art-card h2 { font-size:14px; }
@media(max-width:800px) {
  .art-browser { grid-template-columns:minmax(0,1fr); gap:10px; }
  .art-refine { position:static; }
  .art-refine .art-filter-row { display:flex; gap:7px 12px; }
  .art-refine .art-filter-row select { width:auto; max-width:140px; }
}
