:root {--studio-line:#d9d9cb;--studio-paper:#fffdf7;--studio-ink:#243229;--studio-tint:#e7ece2;--studio-green:#2d5443;--studio-muted:#545d53}
body {color:var(--studio-ink)}
.topbar {background:var(--paper)}
.page-panel {padding:clamp(24px,5vw,66px) 0 54px;max-width:1180px;margin-inline:auto}
.page-heading {margin-bottom:24px}
.page-heading .eyebrow,.card-heading .eyebrow,.balance-card .eyebrow {color:var(--studio-green);margin-bottom:9px}
.page-heading h1 {font-size:clamp(40px,6vw,78px);line-height:.99;letter-spacing:-.065em;text-wrap:balance}
.page-heading>p:last-child {font-size:1rem;color:var(--studio-muted);margin-top:13px;max-width:53ch}
.builder-hero {display:flex;gap:14px;justify-content:space-between;align-items:end;padding:clamp(17px,3.6vw,40px) clamp(16px,3.7vw,45px);border:1px solid #d3dacd;border-radius:20px;background:linear-gradient(#e9eee4b8,#e9eee4b8),#e9eee4 url('./grain.svg');margin-bottom:18px}
.builder-hero .page-heading {margin-bottom:0}
.studio-link {display:inline-flex;align-items:center;gap:8px;min-height:44px;flex:none;padding:0 13px;border:1px solid #bac6b8;background:var(--studio-paper);border-radius:10px;color:var(--studio-green);font-size:.91rem;font-weight:700}
.category-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:18px}
.category-grid button,.switcher button {border:1px solid var(--studio-line);background:var(--studio-paper);color:var(--studio-ink);min-height:44px;border-radius:10px;font-size:.91rem;font-weight:650;line-height:1.2;padding:8px;overflow-wrap:break-word}
.category-grid button[aria-pressed=true],.switcher button[aria-pressed=true],.surface-grid button[aria-pressed=true],.room-colors button[aria-pressed=true] {border-color:var(--studio-green);background:var(--studio-tint);color:var(--studio-green)}
.category-grid button:hover,.switcher button:hover,.surface-grid button:hover,.look-card:hover,.studio-link:hover {box-shadow:inset 0 0 0 1px #7d9284}
.studio-grid {display:grid;grid-template-columns:minmax(0,1.11fr) minmax(0,.89fr);gap:16px;align-items:start}
.studio-card {min-width:0;background:var(--studio-paper);border:1px solid var(--studio-line);border-radius:17px}
.builder-controls,.room-controls,.balance-card {padding:17px}
.card-heading {display:flex;gap:9px;align-items:center;justify-content:space-between;margin-bottom:8px}
.studio-card h2,.collection-section h2 {font-size:clamp(28px,3.5vw,46px);line-height:1.03;letter-spacing:-.05em}
.studio-card h3 {font:700 .88rem/1.3 var(--sans);margin-bottom:7px}
.studio-muted {color:var(--studio-muted);font-size:.92rem}
.quiet-button {display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 10px;min-height:44px;border:1px solid #c6d3c7;border-radius:9px;background:var(--studio-tint);color:var(--studio-green);font-size:.85rem;font-weight:700}
.working-swatches {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:13px 0 14px}
.working-swatch {min-width:0;display:flex;align-items:center;flex-direction:column;border:1px solid var(--studio-line);border-radius:9px;background:var(--paper)}
.change-swatch {display:grid;grid-template-rows:clamp(75px,11vw,129px) minmax(38px,auto);width:100%;flex:1;text-align:center;background:none;border:0;padding:0;font-weight:650;font-size:.79rem;line-height:1.16;overflow-wrap:anywhere}
.change-swatch i {display:block;background:var(--paint);border-radius:8px 8px 0 0;border-bottom:1px solid #282a2220}
.change-swatch span {display:grid;align-content:center;padding:5px 2px}
.lock-swatch {width:100%;min-height:44px;padding:0 2px;border:0;border-top:1px solid var(--studio-line);background:none;border-radius:0 0 8px 8px;color:var(--studio-muted)}
.lock-swatch[aria-pressed=true] {color:var(--studio-green);background:var(--studio-tint)}
.lock-swatch[aria-pressed=true] svg {fill:#bad1bc}
.builder-tuning {display:grid;gap:11px;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);margin-bottom:15px}
.switcher {display:flex;gap:5px;flex-wrap:wrap}
.switcher button {padding:7px 9px;font-size:.82rem}
.save-primary {width:100%;background:var(--studio-green);border-color:var(--studio-green)}
.save-primary:hover,.room-actions .solid:hover {background:#3d6956;border-color:#3d6956}
.life-preview {height:clamp(193px,24vw,325px);position:relative;border-radius:16px 16px 0 0;overflow:hidden;background:var(--p0,#e5ebdf)}
.life-preview .room-scene {width:100%;height:100%;object-fit:cover}
.life-preview .room-scene [data-preview-surface] {pointer-events:none}
.life-preview>i {display:block;position:absolute;border:1px solid #29272425}
.preview-wardrobe i:nth-child(1) {inset:12% 53% 16% 13%;background:var(--p1);clip-path:polygon(28% 3%,42% 0%,50% 9%,58% 0%,72% 3%,100% 22%,82% 46%,74% 40%,76% 100%,24% 100%,26% 40%,18% 46%,0 22%)}
.preview-wardrobe i:nth-child(2) {inset:24% 23% 10% 50%;background:var(--p3);clip-path:polygon(10% 0,90% 0,100% 100%,63% 100%,50% 38%,37% 100%,0 100%)}
.preview-wardrobe i:nth-child(3) {width:11%;height:28%;top:16%;right:12%;border-radius:8px;background:var(--p2);transform:rotate(13deg)}
.preview-wardrobe i:nth-child(4) {width:14%;height:23%;bottom:15%;right:6%;border-radius:5px 5px 12px 12px;background:var(--p4)}
.preview-wardrobe i:nth-child(5) {width:7%;height:11%;bottom:34%;right:9.5%;border:4px solid var(--p4);border-radius:50%}
.preview-events i:nth-child(1) {width:75%;aspect-ratio:1;top:4%;left:12.5%;background:var(--p1);border-radius:50%}
.preview-events i:nth-child(2) {width:51%;aspect-ratio:1;top:13%;left:24.5%;background:var(--p2);border-radius:50%;box-shadow:inset 0 0 0 10px #ffffff38}
.preview-events i:nth-child(3) {width:28%;height:57%;top:19%;left:36%;background:var(--p3);border-radius:4px;transform:rotate(-16deg)}
.preview-events i:nth-child(4) {width:11%;aspect-ratio:1;top:36%;left:45%;background:var(--p4);border-radius:50%}
.preview-events i:nth-child(5) {width:8%;height:64%;top:17%;right:11%;background:var(--p4);border-radius:12px;transform:rotate(14deg)}
.preview-creative i:nth-child(1) {width:52%;height:73%;top:13%;left:14%;background:var(--p1);border-radius:3px;transform:rotate(-12deg)}
.preview-creative i:nth-child(2) {width:38%;height:58%;top:24%;left:31%;background:var(--p2);border-radius:3px;transform:rotate(10deg)}
.preview-creative i:nth-child(3) {width:24%;height:40%;bottom:12%;right:12%;background:var(--p3);border-radius:3px;transform:rotate(-9deg)}
.preview-creative i:nth-child(4) {width:15%;aspect-ratio:1;top:33%;left:42%;background:var(--p4);border-radius:50%}
.preview-creative i:nth-child(5) {width:17%;height:5%;top:59%;left:42%;background:var(--p3);border-radius:8px;transform:rotate(10deg)}
.preview-text {padding:15px 17px 11px}
.contrast-sample {display:flex;align-items:center;gap:6px;margin-top:11px;color:var(--studio-muted);font-size:.85rem}
.contrast-sample i {display:grid;place-items:center;width:34px;height:34px;flex:none;background:var(--paint);border-radius:5px;border:1px solid #29272425}
.contrast-sample b {width:13px;height:13px;border-radius:50%;background:currentColor}
.contrast-sample small {display:block;color:var(--studio-muted)}
.preview-text .text-button {color:var(--studio-green)}
.collection-section {margin-top:28px}
.look-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.look-card {display:block;min-width:0;width:100%;padding:0;border:1px solid var(--studio-line);border-radius:12px;background:var(--studio-paper);text-align:left;color:var(--studio-ink)}
.look-copy {padding:9px 11px 10px;display:grid;overflow-wrap:anywhere}
.look-copy strong {font-size:1rem}
.look-copy small {color:var(--studio-muted);font-size:.84rem}
.palette-strip {display:flex;height:73px;overflow:hidden;border-radius:11px 11px 0 0}
.palette-strip i {background:var(--paint);flex:1}
.saved-card>.text-button {padding-inline:8px}
.page-panel>.empty {border-radius:13px}
.room-selector {margin-bottom:14px}
.room-grid {grid-template-columns:minmax(0,1.33fr) minmax(0,1fr)}
.scene-card {overflow:hidden}
.scene-heading {padding:13px 14px;margin-bottom:0}
.scene-selection {text-align:right;color:var(--studio-muted);font-size:.8rem;line-height:1.25}
.scene-selection strong {display:block;color:var(--studio-green)}
.scene-art,.room-scene {display:block;width:100%}
.room-scene [data-scene-surface] {cursor:pointer}
.scene-footer {padding:9px 13px 12px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:7px}
.scene-footer p {color:var(--studio-muted);font-size:.85rem}
.surface-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:12px 0}
.surface-grid button,.room-colors button,.picker-grid button {display:flex;align-items:center;gap:6px;text-align:left;min-height:44px;min-width:0;border:1px solid var(--studio-line);border-radius:8px;background:var(--studio-paper);font-size:.84rem;font-weight:650;line-height:1.14;padding:5px 7px;overflow-wrap:anywhere}
.color-dot {display:inline-block;width:22px;aspect-ratio:1;border:1px solid #22282240;border-radius:50%;background:var(--paint);flex:none}
.room-controls .switcher {margin-bottom:7px}
.room-colors {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;max-height:188px;overflow:auto;padding:2px;overscroll-behavior:contain}
.room-colors button {flex-wrap:wrap;justify-content:center;text-align:center;min-height:56px;align-content:center}
.room-colors button span {width:100%}
.room-actions {display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}
.room-actions button {flex:1;padding-inline:8px}
.room-actions .solid {background:var(--studio-green);border-color:var(--studio-green)}
.balance-card {margin-top:16px}
.balance-bar {display:grid;grid-template-columns:60fr 30fr 10fr;height:25px;border:1px solid #282c2330;border-radius:8px;overflow:hidden;margin:13px 0 7px}
.balance-bar>div {display:flex}
.balance-bar i {display:block;flex:1;background:var(--paint)}
.balance-legend {display:grid;grid-template-columns:repeat(3,1fr);gap:4px;line-height:1.18}
.balance-legend span {display:block;color:var(--studio-muted);font-size:.82rem;margin-top:4px}
.balance-legend strong {font-size:.88rem}
.balance-tips {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:15px;font-size:.91rem;color:var(--studio-muted)}
.balance-tips p {padding:10px;border-radius:9px;background:var(--studio-tint)}
.balance-tips strong {display:block;color:var(--studio-green)}
#dialog-content>h2 {padding-right:48px;margin-bottom:15px}
.picker-search {width:100%;margin-bottom:11px}
.picker-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.picker-grid button[aria-pressed=true] {background:var(--studio-tint);border-color:var(--studio-green)}
.name-form {display:grid;gap:8px}
.name-form input {width:100%;min-height:45px;padding:0 10px;border:1px solid var(--studio-line);border-radius:8px;background:var(--studio-paper)}
.form-message {color:var(--accent);font-size:.85rem}
.name-form button {justify-self:start}
.ward-color-trigger {display:flex;justify-content:flex-end;align-items:center;gap:7px;min-height:44px;border:0;background:none;color:var(--studio-green);font:inherit;text-align:right}
.ward-color-trigger .ward-dot {width:20px;height:20px}
:focus-visible {scroll-margin-block:80px}
@media (max-width:850px) {
  .studio-grid {grid-template-columns:minmax(0,1fr)}
  .life-preview {height:clamp(200px,51vw,360px)}
  .room-colors {grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:570px) {
  .page-panel {padding:21px 0 34px}
  .page-heading {margin-bottom:19px}
  .builder-hero {align-items:start;flex-direction:column;border-radius:15px}
  .builder-hero .page-heading p:last-child {margin-top:8px}
  .category-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .look-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .builder-controls,.room-controls,.balance-card {padding:12px}
  .builder-tuning {grid-template-columns:minmax(0,1fr)}
  .working-swatches {gap:4px}
  .change-swatch {font-size:.74rem}
  .room-colors {grid-template-columns:repeat(3,minmax(0,1fr))}
  .balance-tips {grid-template-columns:minmax(0,1fr)}
  .picker-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
