:root {
  --paper: #f7f7f7; --surface: #fff; --ink: #181818; --muted: #565656; --line: #dbdbdb;
  --accent: #651c34; --on-accent: #fff;
  font-family: var(--studio-font, Inter, system-ui, -apple-system, sans-serif);
  color: var(--ink); background: var(--paper); line-height: 1.55;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: inherit; text-underline-offset: .18em; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip { position: fixed; left: 1rem; top: .75rem; transform: translateY(-200%); background: var(--surface); padding: .75rem; z-index: 15; }
.skip:focus { transform: none; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner, .shell, .foot { width: min(calc(100% - 3rem), 72rem); margin-inline: auto; }
.top-inner { display: flex; justify-content: space-between; align-items: center; min-height: 4.5rem; gap: 1rem; }
.top nav { display: flex; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; min-width: 0; gap: .8rem; font-size: .875rem; font-weight: 750; letter-spacing: .06em; text-decoration: none; }
.brand img { width: 2.3rem; height: 2.3rem; object-fit: contain; }
.brand-mark { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; background: var(--accent); color: var(--on-accent); font: 1rem var(--studio-font, Georgia, serif); flex: none; }
.nav-link { white-space: nowrap; font-size: .875rem; text-decoration: none; }
.nav-link:hover { text-decoration: underline; }
.shell { padding-block: clamp(2rem, 5vw, 4.5rem); flex: 1; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem; padding-block: 1.75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.vi-footer-credit { display: inline-flex; align-items: center; gap: .2rem; }
.vi-footer-credit svg { pointer-events: none; }
.vi-footer-credit a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; }
h1, h2, h3, p { margin: 0; }
h1 { font: normal clamp(3rem, 7vw, 6.1rem)/.98 var(--studio-font, Georgia, serif); letter-spacing: -.065em; text-wrap: balance; overflow-wrap: anywhere; }
h2 { font: normal clamp(1.55rem, 3vw, 2.45rem)/1.1 var(--studio-font, Georgia, serif); letter-spacing: -.035em; overflow-wrap: anywhere; }
h3 { font-size: 1.13rem; line-height: 1.3; overflow-wrap: anywhere; }
.eyebrow { font-size: .8125rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.lede { max-width: 44rem; margin-block: 1.2rem; color: var(--muted); font-size: clamp(1rem, 1.9vw, 1.22rem); }
.intro { margin-bottom: 2rem; }
.intro .state { margin-top: .85rem; }
.button { display: inline-flex; gap: .4rem; align-items: center; justify-content: center; min-height: 2.85rem; padding: .62rem .95rem; font-size: .9375rem; font-weight: 650; border: 1px solid transparent; border-radius: .38rem; background: var(--accent); color: var(--on-accent); cursor: pointer; text-decoration: none; }
.button:hover { box-shadow: inset 0 0 0 2px currentColor; }
.button:disabled { opacity: .65; cursor: wait; }
.button.secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button.quiet { background: transparent; color: var(--ink); min-height: 2.4rem; padding-inline: .3rem; font-size: .875rem; }
.welcome-page {
  -webkit-user-select: none;
  user-select: none;
}
.welcome { display: grid; align-items: center; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); min-height: 60vh; }
.welcome h1 { font-size: clamp(2.65rem, 5.7vw, 4.7rem); }
.welcome-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; max-width: 28rem; }
:is(.welcome-actions .button, .welcome-page :is(.top nav, .foot) .button) { box-shadow: 0 2px 0 #18181826; }
:is(.welcome-actions .button, .welcome-page :is(.top nav, .foot) .button):hover { box-shadow: 0 2px 0 #18181826, inset 0 0 0 1px currentColor; }
:is(.welcome-actions .button, .welcome-page :is(.top nav, .foot) .button, .vi-footer-credit a) {
  transition: transform 120ms ease, box-shadow 120ms ease;
}
:is(.welcome-actions .button, .welcome-page :is(.top nav, .foot) .button):active { transform: translateY(2px); box-shadow: none; }
.vi-footer-credit a:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) {
  :is(.welcome-actions .button, .welcome-page :is(.top nav, .foot) .button, .vi-footer-credit a) { transition: none; }
}
.welcome-primary { grid-column: 1 / -1; min-height: 3.5rem; font-size: 1.05rem; }
.welcome-page :is(.top nav, .foot) .button { min-height: 44px; padding-inline: .7rem; white-space: nowrap; }
.welcome-image {
  width: 100%;
  aspect-ratio: 1;
  background: center / cover no-repeat;
  border: 1px solid var(--line);
  border-radius: .65rem;
  -webkit-touch-callout: none;
}
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: .7rem; padding: clamp(1rem, 3.5vw, 1.8rem); min-width: 0; }
.panel > h2 { margin-bottom: 1.15rem; }
.branding, .stack, .publish { display: grid; gap: 1rem; }
.studio-font-field { display: grid; gap: .4rem; }
.studio-font-sample { margin: 0; color: var(--muted); font-size: 1.25rem; overflow-wrap: anywhere; }
.branding > h2, .publish > h2 { margin-bottom: 0; }
.field { display: grid; gap: .4rem; font-size: .9375rem; font-weight: 620; min-width: 0; }
.field span { overflow-wrap: anywhere; }
.field input:not([type='file']), .field textarea, .field select { background: var(--paper); border: 1px solid var(--line); border-radius: .38rem; padding: .67rem .72rem; width: 100%; font-weight: 400; }
.field select { font: inherit; font-weight: 400; color: var(--ink); }
.field textarea { resize: vertical; min-height: 5rem; }
.field + .field { margin-top: .75rem; }
.field input[type='color'] { padding: .28rem; height: 3rem; cursor: pointer; }
.field input[type='file'] { width: 100%; font-size: .875rem; }
input::file-selector-button { font: inherit; margin-right: .5rem; padding: .45rem .5rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: .25rem; cursor: pointer; }
.colors, .uploads { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; }
.colors .field { margin: 0; }
.new-project { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: .65rem; margin-top: 1rem; }
.new-project .message { grid-column: 1 / -1; }
.message { font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.message:empty { display: none; }
.empty { display: grid; gap: .7rem; padding: clamp(1.4rem, 4vw, 3rem); background: var(--paper); border: 1px dashed var(--line); text-align: center; border-radius: .5rem; }
.empty p, .fine, .upload small { color: var(--muted); font-size: .875rem; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%, 13rem),1fr)); gap: .85rem; padding: 0; margin: 0; list-style: none; }
.project-card { display: grid; grid-template-rows: auto 1fr; min-width: 0; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); overflow: hidden; }
.project-thumb { display: grid; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-thumb-empty { display: grid; place-items: center; color: var(--muted); }
.project-thumb-empty svg { width: 1.6rem; height: 1.6rem; }
.project-card-body { display: grid; justify-items: start; align-content: start; grid-template-rows: 1fr auto auto; gap: .55rem; min-width: 0; padding: .75rem; }
.project-card-body h2 { font: 650 1rem/1.3 var(--studio-font, Inter, system-ui, sans-serif); letter-spacing: normal; }
.project-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; width: 100%; }
.project-card-body .button { width: 100%; min-height: 2.5rem; padding: .35rem .25rem; font-size: .875rem; }
.project-search { width: min(100%, 23rem); padding: .65rem .75rem; border: 1px solid var(--line); border-radius: .38rem; background: var(--surface); }
.studio-screen-title { font-size: clamp(2.5rem, 6vw, 4.2rem); }
.studio-setup { max-width: 42rem; }
.studio-workspace { --studio-nav-height: calc(4.1rem + env(safe-area-inset-bottom)); padding-bottom: var(--studio-nav-height); }
.studio-bottom-nav { position: fixed; z-index: 5; inset: auto 0 0; display: flex; justify-content: center; gap: .35rem; padding: .3rem .65rem calc(.3rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.studio-destination { display: grid; justify-items: center; align-content: center; gap: .15rem; flex: 1; max-width: 10rem; min-height: 3.4rem; color: var(--muted); font-size: .8rem; font-weight: 650; text-decoration: none; border-radius: .4rem; }
.studio-destination[aria-current] { color: var(--ink); background: var(--paper); box-shadow: inset 0 -2px var(--accent); }
.studio-destination svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 540px) {
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
  .project-card-body { padding: .55rem; }
}
@media (max-width: 420px) {
  .project-card-actions { grid-template-columns: 1fr; }
}
.state { display: inline-flex; padding: .27rem .55rem; border: 1px solid var(--line); border-radius: 3px; font-size: .78rem; color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 1rem; font-size: .95rem; }
.upload { display: grid; gap: .45rem; justify-items: start; border: 1px dashed var(--line); padding: .85rem; border-radius: .45rem; min-width: 0; }
.upload > .field { width: 100%; }
.upload-thumb { width: min(100%, 10rem); aspect-ratio: 1.6; object-fit: contain; background: var(--paper); }
.uploads + .upload { margin-top: .85rem; }
.list-entry { border: 1px solid var(--line); padding: .9rem; border-radius: .4rem; }
.list-entry .upload { margin-top: .75rem; }
.list-entry:last-child { margin-bottom: .85rem; }
.publish .fine { margin-top: .15rem; }
.client-project .shell { padding-block: 1rem 3rem; }
.client-project-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .35rem 1rem; margin-bottom: 1rem; }
.client-project-bar > div { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .85rem; }
.client-project-label { color: var(--muted); }
.client-project-label::before { content: ''; display: inline-block; width: .48rem; height: .48rem; margin-right: .45rem; vertical-align: .1em; background: var(--accent); border-radius: 50%; }
.preview-projects-link { color: var(--muted); font-size: .8125rem; text-underline-offset: .18em; }
.studio-section-preview .top { position: sticky; top: 0; z-index: 6; }
.studio-section-preview [id^="preview-"] { scroll-margin-top: 5.5rem; }
.client-project-bar .message { width: 100%; }
.client-share.button { width: 2.75rem; min-height: 2.75rem; padding: 0; color: var(--accent); }
.client-share svg { width: 1.4rem; height: 1.4rem; }
.product-group > h3 { margin: 0 0 .65rem; }
.product-group h4 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.project-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .2rem; padding: .35rem; margin-bottom: 1rem; border-block: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.project-nav a { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .2rem; min-width: 0; min-height: 3.35rem; padding: .3rem .1rem; border-radius: .25rem; text-decoration: none; text-align: center; line-height: 1.15; font-size: .84rem; font-weight: 700; }
.project-nav a[aria-current="page"] { background: var(--paper); color: var(--ink); box-shadow: inset 0 -2px var(--accent); }
.project-nav svg, .client-tour svg { width: 1.3rem; height: 1.3rem; flex: none; }
.client-view > h2 { margin: 0 0 1rem; }
.room-detail { border-top: 1px solid var(--line); padding-top: 1rem; }
.room-detail > h3 { display: flex; align-items: center; gap: .65rem; margin: 0 0 .75rem; font: 400 clamp(1.55rem, 5vw, 2.2rem)/1.15 var(--studio-font, Georgia, serif); }
.room-detail .item-copy h4 { margin: 0; overflow-wrap: anywhere; }
.room-detail > p { color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; margin: 0; }
.room-detail-icon { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; flex: none; border: 1px solid var(--line); background: var(--surface); }
.room-detail-icon svg { width: 1.3rem; height: 1.3rem; }
.paint-samples { display: flex; flex-wrap: wrap; gap: 13px; margin: 18px 0 0; padding: 0; list-style: none; }
.paint-sample { display: grid; justify-items: center; gap: 7px; }
.paint-tin {
  position: relative;
  width: clamp(48px, 13vw, 64px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #8e8378;
  background: linear-gradient(135deg, #fff 8%, #d8d8d8 33%, #8d8d8d 52%, #f5f5f5 70%, #acacac 91%);
  box-shadow: inset 0 0 0 1px #fff9edbb, 0 3px 5px #30232826;
}
.paint-tin::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: radial-gradient(ellipse at 28% 22%, #ffffff45, #ffffff00 54%), var(--paint);
  box-shadow: inset 0 0 0 1px #30232840, inset 1px 2px 3px #3023284a;
}
.paint-code { color: var(--muted); font: 11px/1.25 ui-monospace, monospace; letter-spacing: .02em; white-space: nowrap; }

.client-hero { position: relative; display: grid; align-content: end; isolation: isolate; min-height: clamp(24rem, 68vw, 40rem); background: var(--surface); }
.client-hero.has-cover { color: #fff; background: #242020; }
.client-hero-image, .client-hero.has-cover::before { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.client-hero-image { object-fit: cover; }
.client-hero.has-cover::before { content: ''; z-index: 0; background: linear-gradient(180deg, #17121530, #17121500 26%, #171215b5 67%, #171215f0); }
.client-hero-copy { position: relative; z-index: 1; padding: clamp(1rem, 5vw, 3rem); }
.client-hero h1 { text-wrap: pretty; }
.client-hero.has-cover :is(.lede, .eyebrow) { color: #fff; }
.client-hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.client-hero-actions svg { width: 1.15rem; height: 1.15rem; flex: none; }
#documents { scroll-margin-top: 1rem; }
.client-tour { display: inline-flex; align-items: center; gap: .45rem; position: absolute; z-index: 1; inset: 1rem 1rem auto auto; padding: .55rem .8rem; border: 1px solid #ffffff80; border-radius: .25rem; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 650; }
@media (max-width: 780px) {
  .client-project { padding-bottom: calc(4.15rem + env(safe-area-inset-bottom)); }
  .project-nav { position: fixed; z-index: 5; inset: auto 0 0; margin: 0; padding: .25rem .25rem calc(.25rem + env(safe-area-inset-bottom)); }
  .project-nav a { font-size: clamp(.63rem, 2.65vw, .84rem); }
}
.presentation-intro, .presentation-section { padding-top: clamp(1.5rem, 5vw, 3.5rem); scroll-margin-top: 3.25rem; }
.presentation-section h2 { margin-bottom: .85rem; }
.brief, .item-copy p { white-space: pre-wrap; overflow-wrap: anywhere; }
.file-folder { border: 1px solid var(--line); border-radius: .45rem; background: var(--surface); }
.file-folder summary { padding: 1rem; cursor: pointer; font-weight: 650; }
.studio-heading-actions, .studio-action-buttons, .editor-title { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.studio-heading-actions { justify-content: space-between; }
.studio-help-dialog { width: min(calc(100% - 2rem), 29rem); max-height: 85dvh; padding: 1.2rem; border: 1px solid var(--line); border-radius: .7rem; color: var(--ink); background: var(--surface); }
.studio-help-dialog::backdrop { background: #141414aa; }
.studio-help-dialog ol { display: grid; gap: .75rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.studio-help-dialog li { display: grid; grid-template-columns: 1.2rem minmax(0,1fr); gap: .65rem; }
.studio-help-dialog svg { width: 1.2rem; height: 1.2rem; margin-top: .15rem; }
.studio-help-support { margin-top: 1rem; }
.studio-help-dialog p { color: var(--muted); font-size: .875rem; }
.editor-intro { display: grid; gap: .85rem; margin-bottom: 1rem; }
.editor-intro h1 { font-size: clamp(2.15rem, 6vw, 4rem); text-align: start; }
.editor-intro .state { margin-top: 0; }
.editor-section-set, .editor-section { min-width: 0; }
.editor-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem; }
.editor-tabs .button { flex-direction: column; min-height: 3.7rem; min-width: 0; padding: .45rem .2rem; text-align: center; line-height: 1.2; font-size: .83rem; }
.editor-tabs svg { width: 1.2rem; height: 1.2rem; }
.editor-subtabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.editor-subtabs .button { min-height: 2.45rem; padding: .35rem .65rem; font-size: .85rem; }
:is(.editor-tabs,.editor-subtabs) .button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.editor-save-bar { position: sticky; bottom: var(--studio-nav-height); z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: .55rem; padding: .55rem .65rem; margin-top: .85rem; }
.studio-workspace .top nav { flex: none; gap: .65rem; }
.studio-workspace .top nav .button { min-height: 44px; padding-inline: .65rem; white-space: nowrap; }
.studio-account-dialog { box-sizing: border-box; overflow: auto; }
.studio-account-dialog dl { margin: 1rem 0; }
.studio-account-dialog dt { font-size: .875rem; color: var(--muted); }
.studio-account-dialog dd { margin: 0 0 .6rem; font-weight: 600; overflow-wrap: anywhere; }
.studio-account-dialog dd:last-child { margin-bottom: 0; }
.studio-account-actions { display: flex; align-items: center; gap: .65rem; }
.studio-account-actions .button { min-height: 44px; white-space: nowrap; }
.studio-account-actions .studio-library-action { flex: 1; min-height: 48px; }
.top nav .studio-account-dialog .button.quiet { box-shadow: none; }


.studio-workspace :is(.field input,.field textarea,.field select) { min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  .studio-editor-page .shell { padding-top: 1rem; }
  .editor-tabs { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
.file-folder .board-grid { padding: 0 1rem 1rem; }
.file-card { display: grid; justify-content: stretch; gap: 0; width: 100%; padding: 0; text-align: start; }
.file-card-name { padding: .7rem; overflow-wrap: anywhere; }
.file-thumbnail { display: grid; place-items: center; height: 7.5rem; overflow: hidden; background: var(--paper); color: var(--muted); font-size: .875rem; }
.file-thumbnail :is(img, canvas) { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.file-dialog { width: min(calc(100% - 1rem), 60rem); padding: .85rem; }
.file-dialog h2 { overflow-wrap: anywhere; margin: 0 0 .65rem; }
.file-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-block: .45rem; }
.file-toolbar .button { min-height: 2.75rem; padding: .4rem .65rem; }
.file-viewport { display: block; height: min(62dvh, 48rem); overflow: auto; background: var(--paper); border: 1px solid var(--line); }
.image-file-dialog .file-viewport { height: auto; max-height: min(56dvh, 740px); background: var(--surface); }
.file-viewport :is(img, canvas) { display: block; max-width: none; margin-inline: auto; height: auto; }
.file-viewport p { padding: 1rem; }
.project-cover { margin-top: 1.35rem; width: 100%; height: auto; max-height: 76vh; object-fit: contain; background: var(--surface); }
.compare, .panorama { position: relative; overflow: hidden; background: #242424; touch-action: pan-y; }
.compare { height: clamp(330px, 42vw, 560px); }
.panorama { height: clamp(24rem, 63svh, 43rem); }
.compare > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.compare-reveal { clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0); }
.compare-divider { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; background: #fff; }
.compare-divider::after { content: '‹ ›'; color: #111; background: #fff; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); border-radius: 3rem; white-space: nowrap; padding: .4rem .65rem; }
.compare-control { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; touch-action: pan-y; }
.compare:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.compare-label { position: absolute; top: 1rem; background: #181818; color: #fff; padding: .25rem .6rem; border-radius: .2rem; }
.compare-label.left { left: 1rem; }
.compare-label.right { right: 1rem; }
.panorama canvas:not([hidden]) { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.panorama canvas.pan-free { touch-action: none; }
.panorama canvas:active { cursor: grabbing; }
.panorama-status, .panorama-controls { position: absolute; color: #fff; }
.panorama-status { left: 1rem; top: 1rem; }
.panorama-controls { display: flex; flex-wrap: wrap; gap: .35rem; bottom: .65rem; right: .65rem; left: .65rem; justify-content: end; }
.panorama-controls button { min-height: 2.75rem; padding: .4rem .62rem; color: #fff; background: #1b1b1b; border: 1px solid #b9b9b9; border-radius: .25rem; cursor: pointer; font-size: .875rem; }
.panorama.is-full { position: fixed; inset: 0; z-index: 20; height: auto; }
.panorama:fullscreen { width: 100%; height: 100%; }
.lock-scroll { overflow: hidden; }
.furnishing-grid, .board-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.furnishing-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.item { min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: .45rem; overflow: hidden; }
.furnishing-grid .image-open img { width: 100%; aspect-ratio: 1.25; object-fit: contain; background: var(--paper); }
.item-copy { padding: .95rem; }
.item-copy p { margin-top: .4rem; color: var(--muted); }
.actions { margin-top: .7rem; display:flex; gap: .5rem; flex-wrap: wrap; }
.image-open { border-radius: 0; width: 100%; padding: 0; background: var(--paper); }
.image-open img { max-height: 28rem; width: 100%; object-fit: contain; }
.master-moodboard .image-open { display: block; max-width: 36rem; margin-inline: auto; }
.master-moodboard .image-open img { max-height: none; aspect-ratio: 4 / 5; }
.image-dialog { max-width: min(95vw, 70rem); max-height: 92dvh; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); color: var(--ink); }
.image-dialog::backdrop { background: #141414bb; }
@media (max-width: 780px) {
  .welcome { grid-template-columns: 1fr; }
  .welcome { align-content: center; }
  .welcome-image { max-width: 34rem; }
  .furnishing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 470px) {
  .top-inner, .shell, .foot { width: calc(100% - 2rem); }
  .top nav { gap: .7rem; }
  .brand span { overflow-wrap: anywhere; }
  .new-project, .uploads, .board-grid { grid-template-columns: 1fr; }
}

.review-intro { max-width: 42rem; margin-bottom: clamp(1rem, 4vw, 2.25rem); }
.review-intro .eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--ink); }
.review-intro .eyebrow::before { content: ''; width: 1rem; height: 1px; background: var(--accent); }
.review-intro h2 { font-size: clamp(2.45rem, 6vw, 4.8rem); line-height: 1.02; text-wrap: balance; }
.review-intro .lede { margin-bottom: 0; }
.client-review-grid { display: grid; grid-template-columns: 1.12fr 1fr; align-items: start; gap: 1rem; }
.client-review-card, .client-feedback { border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.review-cover { width: 100%; height: auto; max-height: 28rem; object-fit: contain; background: var(--surface); }
.client-review-copy, .client-feedback { padding: clamp(1rem, 3vw, 1.875rem); }
.client-review-copy h3, .client-feedback h3 { font: 400 clamp(1.65rem, 4vw, 2.5rem)/1.08 var(--studio-font, Georgia, serif); letter-spacing: -.025em; margin-bottom: .4rem; }
.client-review-actions { display: flex; flex-wrap: wrap; gap: .65rem; padding-top: 1rem; margin-top: 1.2rem; border-top: 1px solid var(--line); }
.client-review-actions svg { width: 1.15rem; height: 1.15rem; flex: none; }
.client-feedback fieldset { margin: 1.1rem 0; padding: 0; border: 0; min-width: 0; }
.client-feedback legend { font-weight: 650; margin-bottom: .4rem; }
.client-feedback fieldset label { display: flex; align-items: center; gap: .5rem; min-height: 2.5rem; cursor: pointer; }
.client-feedback input[type=radio] { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; margin: 0; flex: none; }
.client-feedback .field { margin-bottom: .9rem; }
.client-feedback .message:empty, .client-review-copy .message:empty { display: none; }
.project-files-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.project-files-heading h2 { margin: 0; }
.project-files-dialog .file-folder { border: 0; }
.project-files-dialog .file-folder summary { display: none; }
.project-files-dialog .file-folder .board-grid { padding: 0; }
#design > .nav-link { display: inline-block; margin-bottom: .75rem; }
@media (max-width: 700px) {
  .client-review-grid { grid-template-columns: 1fr; }
  .client-review-actions { align-items: flex-start; flex-direction: column; }
}

/* Client-facing layout from the eDesign demo. Studio has its own editor styling. */
.client-project {
  --nav-active: color-mix(in srgb, var(--accent) 13%, var(--surface));
  background: var(--paper);
  color: var(--ink);
  font-family: var(--studio-font, "Helvetica Neue", Arial, sans-serif);
  font-size: 15px;
  line-height: 1.5;
}
.client-project :is(.top-inner, .shell, .foot) { width: min(1220px, calc(100% - 100px)); }
.client-project .top-inner { display: grid; min-height: 77px; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.client-project .top nav { justify-content: flex-end; }
.client-project .brand { gap: 12px; font-size: .69rem; text-transform: uppercase; letter-spacing: .15em; }
.client-project .brand-mark { width: 39px; height: 37px; font-size: 1.25rem; letter-spacing: -.04em; }
.client-header-title { text-align: center; color: var(--muted); font-size: .69rem; letter-spacing: .17em; text-transform: uppercase; white-space: nowrap; }
.client-project .shell { padding: 0; }
.client-project .foot { margin-top: 45px; }
.client-project .client-project-bar { padding: 17px 0 7px; min-height: 56px; margin: 0; }
.client-project .client-project-bar > div { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.client-project-label { border-right: 1px solid var(--line); padding-right: .65rem; }
.client-project .client-share.button { width: auto; gap: .4rem; padding-inline: .2rem; color: var(--ink); }
.client-project .project-nav { display: flex; gap: 30px; padding: 0; margin-bottom: 25px; background: transparent; border-width: 0 0 1px; color: var(--muted); }
.client-project .project-nav a { flex-direction: row; gap: 8px; min-height: 45px; padding-inline: 1px; border-radius: 0; margin-bottom: -1px; font-size: .8125rem; }
.client-project .project-nav a[aria-current] { background: transparent; color: var(--accent); }
.client-project .button { border-radius: 2px; min-height: 46px; padding-inline: 16px; }
.client-project .button.secondary { color: var(--accent); }
.client-project .client-hero { min-height: clamp(440px, 40vw, 540px); }
.client-project .client-hero-image { object-position: 50% 53%; }
.client-project .client-hero.has-cover::before { background: linear-gradient(23deg,#111e,#1119 29%,#1112 58%,transparent 76%); }
.client-project .client-hero-copy { max-width: 43rem; padding: 0 50px 44px; }
.client-project .client-hero h1 { font-size: clamp(60px, 7.2vw, 102px); letter-spacing: -.052em; }
.client-project .client-hero .brief { max-width: 26rem; font-size: .9375rem; margin-bottom: 0; }
.client-project .client-tour { inset: auto 24px 24px auto; }
.client-overview-content { display: grid; grid-template-columns: 1.5fr 1fr; gap: 9%; margin-top: 40px; }
.client-brief > h2 { margin-bottom: .65rem; }
.client-metadata { display: flex; flex-wrap: wrap; gap: .75rem 1.65rem; margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.client-metadata:empty { display: none; }
.client-metadata dt { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.client-metadata dd { margin: .2rem 0 0; font-weight: 650; }
.client-explore a { display: flex; min-height: 69px; align-items: center; gap: .75rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.client-explore strong, .client-explore small { display: block; }
.client-explore small { color: var(--muted); }
.client-feature-icon { display: grid; place-items: center; width: 36px; height: 36px; background: var(--nav-active); color: var(--accent); flex: none; }
.client-feature-icon svg { width: 1.2rem; height: 1.2rem; }
.client-project .review-intro h2 { font-size: clamp(43px, 6vw, 80px); line-height: .99; letter-spacing: -.05em; margin: 8px 0 13px; }
.client-project .review-intro .lede { max-width: 35.5rem; font-size: .9375rem; margin: 0; }
.client-design-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.client-design-details:empty { display: none; }
.client-project .compare-label.button { background: var(--accent); color: var(--on-accent); min-height: 2.25rem; padding: .3rem .65rem; }
.client-project .panorama { height: auto; background: var(--surface); }
.panorama-stage { position: relative; height: clamp(390px, 47vw, 590px); background: var(--paper); }
.panorama-tag { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: .375rem; border-radius: 2px; background: var(--accent); color: var(--on-accent); padding: 6px 11px; font-size: .75rem; font-weight: 650; pointer-events: none; }
.panorama-poster { width: 100%; height: 100%; object-fit: cover; }
.panorama-tag svg { width: .875rem; height: .875rem; }
.panorama-hint { margin: 0; padding: .7rem .5rem 0; color: var(--muted); text-align: center; font-size: .875rem; }
.client-project .panorama-controls { position: static; justify-content: center; padding: .7rem .4rem .85rem; }
.client-project .panorama-controls button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .65rem; border-color: var(--line); border-radius: 24px; background: var(--surface); color: var(--ink); }
.panorama-controls svg { width: 1.2rem; height: 1.2rem; flex: none; }
.client-project .panorama:is(.is-full, :fullscreen) { height: 100%; }
.panorama:is(.is-full, :fullscreen) .panorama-stage { height: 100%; }
.panorama:is(.is-full, :fullscreen) .panorama-hint { display: none; }
.client-project .panorama:is(.is-full, :fullscreen) .panorama-controls { position: absolute; inset: auto 0 0; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
.client-project .panorama:is(.is-full, :fullscreen) .panorama-controls button {
  border-color: #ffffff65;
  border-radius: 2px;
  background: var(--accent);
  color: var(--on-accent);
}
.tour-caption { margin-top: .65rem; color: var(--muted); font-size: .875rem; }
.client-next { margin-top: 1.5rem; justify-self: start; }
.client-furnishings-meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 1rem 0 .65rem; color: var(--muted); }
.button.client-text-button { background: transparent; color: var(--accent); min-height: 38px; padding: 0 .2rem; }
.client-text-button svg, .client-favorite svg { width: 1.05rem; height: 1.05rem; }
.client-product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.client-product-card, .client-product-dialog {
  --surface: #fff; --paper: #fff; --ink: #181818; --muted: #565656; --line: #dbdbdb;
  --accent: var(--product-accent, #651c34); --on-accent: #fff;
}
.client-product-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); }
.button.client-product-open { display: block; background: transparent; color: var(--ink); width: 100%; padding: 0; border: 0; text-align: start; }
.client-product-open img, .client-product-placeholder { width: 100%; aspect-ratio: 1.12; object-fit: cover; background: #fff; }
.client-product-cutout img { object-fit: contain; padding: .8rem; }
.client-product-placeholder { display: grid; place-items: center; }
.client-product-placeholder svg { width: 2rem; height: 2rem; color: var(--accent); }
.client-product-name { padding: .75rem; display: grid; gap: .2rem; overflow-wrap: anywhere; }
.client-product-name small { color: var(--muted); }
.button.client-favorite { position: absolute; inset: .45rem .45rem auto auto; width: 41px; height: 41px; min-height: 0; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--accent); }
.client-favorite[aria-pressed="true"] svg, .client-furnishings-meta [aria-pressed="true"] svg { fill: var(--accent); }
.client-product-actions { display: grid; gap: .25rem; margin: auto .6rem .6rem; padding-top: .25rem; border-top: 1px solid var(--line); }
.client-product-actions .client-text-button { justify-content: start; }
.client-product-decisions { display: grid; gap: .3rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.button.client-product-decision { min-height: 35px; width: 100%; padding: .1rem; border: 1px solid currentColor; font-size: .75rem; }
.client-product-decision[data-decision="approved"] { color: #216041; background: #edf8f0; }
.client-product-decision[data-decision="denied"] { color: #a22e39; background: #fff5f6; }
.client-product-decision[aria-pressed="true"] { box-shadow: inset 0 0 0 2px currentColor; }
.client-product-dialog img { width: 100%; max-height: 48dvh; object-fit: contain; }
.client-product-dialog :is(p, .button) { margin-top: .6rem; }
.client-review-back { display: inline-block; margin-bottom: 1rem; }
@media (max-width: 900px) {
  .client-project :is(.top-inner, .shell, .foot) { width: calc(100% - 48px); }
  .client-project .project-nav { gap: 20px; }
  .client-overview-content { gap: 6%; }
  .client-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 780px) {
  .client-project .project-nav { display: grid; gap: 0; padding: 4px 5px calc(4px + env(safe-area-inset-bottom)); margin: 0; border-width: 1px 0 0; background: var(--surface); }
  .client-project .project-nav a { flex-direction: column; gap: 4px; min-height: 48px; border-radius: 4px; margin: 0; font-size: clamp(.625rem, 2.65vw, .75rem); }
  .client-project .project-nav a[aria-current] { background: var(--nav-active); color: var(--ink); box-shadow: inset 0 -2px var(--accent); }
}
@media (max-width: 620px) {
  .client-project :is(.top-inner, .shell, .foot) { width: calc(100% - 30px); }
  .client-project .top-inner { min-height: 62px; grid-template-columns: 1fr auto; gap: 8px; }
  .client-project .brand { gap: 7px; }
  .client-project .brand-mark { width: 33px; height: 33px; }
  .client-header-title { display: none; }
  .client-project .client-project-bar { min-height: 46px; padding: 6px 0 2px; }
  .client-project .client-project-bar > div { font-size: .8125rem; gap: .45rem; }
  .client-project .client-hero { min-height: clamp(430px,116vw,570px); }
  .client-project .client-hero.has-cover::before { background: linear-gradient(0deg,#111e,#1116 52%,transparent 77%); }
  .client-project .client-hero-copy { padding: 0 17px 21px; }
  .client-project .client-hero h1 { font-size: clamp(46px,12vw,68px); }
  .client-project .client-tour { inset: 12px 12px auto auto; }
  .client-overview-content, .client-design-details { grid-template-columns: 1fr; }
  .client-overview-content { gap: 22px; margin-top: 26px; }
  .client-project .panorama:not(.is-full, :fullscreen) { margin-inline: -15px; }
  .panorama-stage { height: clamp(360px, 95vw, 520px); }
  .client-project .panorama:not(.is-full, :fullscreen) .panorama-fullscreen { margin-inline: max(0px, calc((100% - 17rem) / 2)); }
  .client-product-grid { gap: 9px; }
  .button.client-favorite { width: 37px; height: 37px; }
  .client-project .foot { margin-top: 29px; }
}


.product-pricing > summary { cursor: pointer; }
.product-pricing .field { margin-top: .6rem; }
.client-product-group + .client-product-group { margin-top: 1.5rem; }
.client-product-specs { display: grid; gap: .6rem 1rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.client-product-specs dt { font-size: .8rem; color: var(--muted); }
.client-product-specs dd { margin: .15rem 0 0; overflow-wrap: anywhere; }

.product-row-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .6rem .2rem; }
.furniture-import { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.furnishing-generation-row { display: grid; gap: .25rem; }
.furnishing-generation-choice { display: flex; align-items: center; gap: .6rem; min-height: 44px; width: fit-content; cursor: pointer; }
.furnishing-generation-choice input { width: 1.2rem; height: 1.2rem; }
.furnishing-reference-board { display: block; max-height: 28rem; width: auto; margin-block: .5rem; object-fit: contain; }
.furniture-import-review { border: 0; margin: 0; min-width: 0; padding: 0; }
.furniture-import-board { display: block; width: auto; max-width: 100%; max-height: 24rem; margin-block: .5rem 1rem; }
.furniture-add-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: .85rem; }
.furniture-item { border: 1px solid var(--line); border-radius: .4rem; }
.furniture-item-summary { display: flex; align-items: center; gap: .7rem; padding: .45rem .65rem; cursor: pointer; list-style: none; }
.furniture-item-summary::-webkit-details-marker { display: none; }
.furniture-item-summary::after { content: ''; border: solid currentColor; border-width: 0 1.5px 1.5px 0; width: .4rem; height: .4rem; flex: none; margin-inline-start: auto; transform: rotate(45deg); }
.furniture-item[open] > .furniture-item-summary::after { transform: rotate(225deg); }
.furniture-item-thumbnail { width: 2.75rem; height: 2.75rem; flex: none; object-fit: contain; border-radius: .25rem; background: #fff; }
.furniture-item-placeholder { display: grid; place-items: center; }
.furniture-item-placeholder svg { width: 1.25rem; height: 1.25rem; color: var(--muted); }
.furniture-item-name { font-weight: 650; overflow-wrap: anywhere; }
.furniture-item-editor { border-top: 1px solid var(--line); padding: .85rem; }
.furniture-item-editor .upload { margin-top: .75rem; }
.furniture-retailer-search { margin: .6rem 0; }
.furniture-search-results { display: grid; gap: .25rem; padding-inline-start: 1.15rem; }
.furniture-search-results:empty { display: none; }
.furniture-search-results a { overflow-wrap: anywhere; }

.studio-inbox { max-width: 45rem; }
.studio-message-card { display: grid; justify-items: start; gap: .65rem; }
.studio-message-card .studio-heading-actions { width: 100%; }
.studio-message-card h2 { font-size: 1.3rem; margin: 0; }
.studio-message-text { white-space: pre-wrap; overflow-wrap: anywhere; }

#boards .image-open,
.room-thumbnail-grid .image-open { display: block; padding: 0; border: 0; background: var(--surface); }
#boards .image-open img,
.room-thumbnail-grid .image-open img { width: 100%; height: auto; max-height: none; object-fit: contain; }
#boards .board-grid { grid-template-columns: minmax(0, 1fr); }
.room-thumbnail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.room-thumbnail-grid > .item:only-child { grid-column: 1 / -1; }
.room-thumbnail-grid .image-open { color: var(--ink); text-align: start; }
.board-thumbnail-caption { display: grid; grid-template-columns: minmax(0,1fr) auto; width: 100%; align-items: center; gap: .5rem; padding: .75rem .85rem; overflow-wrap: anywhere; }
.board-thumbnail-caption svg { width: 1rem; height: 1rem; color: var(--muted); }
.room-thumbnail-grid .item-copy { padding: 0 .85rem .85rem; }
.room-thumbnail-grid .item-copy p { margin: 0; }
@media (max-width: 620px) {
  .client-project .compare { height: auto; aspect-ratio: 3 / 4; }
  .client-project .room-thumbnail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .room-thumbnail-grid > .item:not(:only-child) .image-open img { aspect-ratio: 1.55; background: var(--paper); }
  #boards .board-grid { gap: .9rem; }
}

#boards .compare { height: auto; aspect-ratio: 16 / 10; }
#boards .compare-label.button { background: #fffffff0; color: #181818; text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; }
@media (max-width: 620px) {
  #boards .compare { aspect-ratio: 3 / 4; }
}

.welcome-page .top nav { flex: none; }
.studio-login input { user-select: text; -webkit-user-select: text; }
.studio-login .message:empty { display: none; }

.product-image-gallery { width: 100%; margin-block: .65rem; }
.product-gallery-main { width: 100%; height: min(48dvh, 29rem); object-fit: contain; background: #fff; }
.product-gallery-thumbnails { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; }
.button.product-gallery-thumbnail { padding: .15rem; margin: 0; min-height: 48px; width: 56px; background: #fff; border: 1px solid var(--line); }
.button.product-gallery-thumbnail[aria-pressed="true"] { border-color: var(--accent); outline: 1px solid var(--accent); }
.product-gallery-thumbnail img { width: 100%; height: 44px; object-fit: contain; }
.furniture-image-tools { margin-block: .75rem 1rem; }
.furniture-image-tools h4 { margin: 0; }
.furniture-image-tools .product-gallery-main { height: min(35dvh, 20rem); }
.button.furniture-remove-item { color: #8e2030; }
.bulk-image-dialog { width: min(40rem, calc(100vw - 1rem)); overflow-y: auto; }
.bulk-image-rows { display: grid; gap: .75rem; margin-block: .7rem; }
.bulk-image-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .65rem; align-items: start; }
.bulk-image-row > img { width: 64px; height: 64px; object-fit: contain; background: #fff; }
.bulk-image-row .field { overflow-wrap: anywhere; }

.import-filename { margin-block: .4rem; overflow-wrap: anywhere; }
