:root {
  --studio-wood: #765538;
  --studio-green: #344c3e;
  --studio-line: #ddd6c9;
  --studio-cream: #f4f0e7;
}
.creator-shell { padding-bottom: 80px; background: #f8f6f0; }
.creator-breadcrumbs { display: flex; align-items: center; gap: 10px; padding-block: 22px 0; color: var(--muted, #656761); font-size: 12px; }
.creator-breadcrumbs a { text-decoration: underline; text-underline-offset: 4px; }
.layout-fieldset { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
.creator-shell [hidden], .creator-shell .is-hidden { display: none !important; }
.creator-shell button, .creator-shell input, .creator-shell select, .creator-shell textarea { font: inherit; }
.studio-intro { padding: 60px 0 34px; }
.studio-intro .eyebrow { margin: 0 0 17px; color: var(--studio-wood); }
.studio-intro h1 { max-width: 900px; margin: 0; font-size: clamp(42px, 5.4vw, 72px); line-height: 1.05; letter-spacing: -.065em; font-weight: 650; }
.studio-intro .lead { max-width: 790px; margin: 22px 0 0; font-size: 18px; }
.journey-choice { padding: 10px 0 26px; }
.journey-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr); align-items: end; gap: 22px; margin-bottom: 18px; }
.journey-heading .eyebrow { grid-column: 1 / -1; margin: 0 0 -8px; color: var(--studio-wood); }
.journey-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -.05em; }
.journey-heading p { max-width: 440px; margin: 0; color: var(--muted, #656761); font-size: 14px; line-height: 1.6; }
.journey-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.journey-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; min-height: 94px; padding: 18px 20px; border: 1px solid #d8cfbe; border-radius: 8px; background: #fffefa; color: var(--ink, #20211e); text-align: left; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.journey-card:hover { border-color: #a88758; transform: translateY(-2px); }
.journey-card.is-active { border-color: var(--studio-green); background: #edf0e7; box-shadow: inset 0 0 0 1px var(--studio-green); }
.journey-card:focus-visible { outline: 3px solid #a77f43; outline-offset: 4px; }
.journey-card > span:nth-child(2) { display: grid; gap: 5px; }
.journey-card strong { font-size: 17px; letter-spacing: -.025em; }
.journey-card small { color: var(--muted, #656761); font-size: 12px; line-height: 1.45; }
.journey-card b { color: var(--studio-green); font-size: 11px; white-space: nowrap; }
.journey-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e7decd; color: var(--studio-wood); font-size: 11px; font-weight: 700; }
.ready-brief { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px 20px; align-items: end; margin-top: 14px; padding: 16px 18px; border: 1px solid #d8cfbe; border-radius: 7px; background: #f2eee4; }
.ready-brief p { margin: 0; }
.ready-brief input[type="file"] { display: block; width: 100%; min-height: 44px; padding: 10px; border: 1px dashed #b9ab91; border-radius: 5px; background: #fffefa; color: #5a554b; font-size: 12px; }
.ready-brief [data-reference-preview] { grid-column: 1 / -1; max-height: 180px; overflow: hidden; border-radius: 5px; }
.ready-brief [data-reference-preview] img { display: block; width: 100%; max-height: 180px; object-fit: cover; }
.layout-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.layout-card { position: relative; display: block; min-width: 0; overflow: hidden; border: 1px solid var(--studio-line); border-radius: 8px; background: #fff; cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; }
.layout-card:hover { border-color: #9b876b; transform: translateY(-2px); box-shadow: 0 8px 24px #4533220d; }
.layout-card:has(input:checked) { border-color: var(--studio-green); box-shadow: 0 0 0 2px var(--studio-green); }
.layout-card:has(input:focus-visible) { outline: 3px solid #a77f43; outline-offset: 5px; }
.layout-card > input, .layout-card input[type="radio"] { position: absolute; z-index: 2; top: 13px; right: 13px; width: 24px; height: 24px; margin: 0; accent-color: var(--studio-green); cursor: pointer; }
.layout-card picture { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #d8cbb7; }
.layout-card picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.layout-card-body { display: block; padding: 19px 21px 21px; }
.layout-card-body small { display: block; margin-bottom: 8px; color: var(--studio-wood); font-size: 10px; line-height: 1.4; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.layout-card-body h2, .layout-card-title { display: block; margin: 0; font-size: 22px; line-height: 1.2; font-weight: 650; letter-spacing: -.04em; }
.layout-card-body p, .layout-card-body > span:not(.layout-card-title) { display: block; margin: 10px 0 0; color: var(--muted, #656761); font-size: 13px; line-height: 1.65; }
.layout-card-choose { display: block; margin-top: 13px; color: var(--studio-green); font-size: 11px; font-weight: 650; }
.studio-workspace { padding-top: 58px; margin-top: 50px; border-top: 1px solid var(--studio-line); scroll-margin-top: 20px; }
.workspace-heading { margin-bottom: 25px; }
.workspace-heading h2 { margin: 8px 0 10px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -.05em; font-weight: 650; }
.workspace-heading p { margin: 0; max-width: 760px; color: var(--muted, #656761); line-height: 1.65; font-size: 14px; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(360px, .85fr); gap: 28px; align-items: start; margin: 0; }
.preview-panel { min-width: 0; position: sticky; top: 20px; overflow: hidden; background: #efeadd; border: 1px solid #d8cfbe; border-radius: 10px; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 14px; padding: 18px 20px; background: #faf8f2; border-bottom: 1px solid #ded6c7; }
.preview-heading .eyebrow { margin: 0 0 5px; color: var(--studio-wood); font-size: 9px; letter-spacing: .13em; }
.preview-heading h3 { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 650; letter-spacing: -.035em; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; color: #486247; font-size: 11px; white-space: nowrap; }
.live-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #779164; box-shadow: 0 0 0 3px #77916419; }
.scene-wrap { position: relative; width: 100%; height: clamp(350px, 37vw, 520px); overflow: hidden; background: #e9e5dc; }
.scene-wrap [data-scene] { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-wrap canvas { display: block; width: 100%; height: 100%; outline-offset: -4px; }
.scene-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-fallback svg, svg.scene-fallback { display: block; width: 100%; height: 100%; }
.view-toolbar { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; padding: 10px 14px; background: #faf8f2; border-top: 1px solid #ded6c7; }
.view-toolbar button { min-height: 44px; padding: 9px 13px; border: 1px solid #cfc6b5; border-radius: 5px; background: #fffdfa; color: #575347; font-size: 12px; cursor: pointer; }
.view-toolbar button:hover { background: #eee7da; }
.view-toolbar button[aria-pressed="true"] { color: #fff; border-color: var(--studio-green); background: var(--studio-green); }
.floor-picker { padding: 12px 18px 13px; border-top: 1px solid #ded6c7; }
.floor-picker fieldset, .material-group fieldset, fieldset.floor-picker { min-width: 0; margin: 0; border: 0; }
.material-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.floor-picker fieldset, .material-group fieldset { padding: 0; }
.floor-picker legend, .material-group legend { padding: 0; margin-bottom: 8px; color: #5c5549; font-size: 12px; font-weight: 650; }
.swatch-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.swatch-label { display: flex; position: relative; min-width: 0; min-height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 9px 3px; border: 1px solid #e1dbcf; border-radius: 5px; background: #fffdfa; text-align: center; cursor: pointer; }
.swatch-label:hover { border-color: #b8a385; }
.swatch-label:has(input:checked) { border-color: var(--studio-green); box-shadow: inset 0 0 0 1px var(--studio-green); background: #edf0e7; }
.swatch-label:has(input:focus-visible) { outline: 3px solid #a77f43; outline-offset: 3px; }
.swatch-label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.swatch-dot { display: block; flex: 0 0 auto; width: 29px; height: 29px; border: 1px solid #0000001a; border-radius: 50%; background: var(--swatch, var(--color, #b68b59)); }
.swatch-label > span:not(.swatch-dot) { max-width: 100%; color: #5d584d; font-size: 10px; line-height: 1.3; overflow-wrap: anywhere; }
.floor-picker .swatch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.floor-picker .swatch-label { flex-direction: row; padding: 6px 5px; gap: 6px; }
.floor-picker .swatch-dot { width: 22px; height: 22px; }
.preview-caption { margin: 0; padding: 0 18px 13px; color: #777062; font-size: 11px; line-height: 1.55; }
.scene-status { margin: 0; padding: 9px 18px; border-top: 1px solid #ded6c7; color: #5f614f; background: #f7f3e9; font-size: 12px; line-height: 1.5; }
.scene-status:empty { display: none; }
.controls-panel { display: grid; min-width: 0; gap: 13px; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; padding-right: 3px; scrollbar-color: #b8a98f transparent; }
.control-section { min-width: 0; border: 1px solid var(--studio-line); border-radius: 8px; background: #fffefa; overflow: hidden; }
.control-section summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 18px 21px; color: #353b31; font-size: 15px; font-weight: 650; list-style: none; cursor: pointer; }
.control-section summary::-webkit-details-marker { display: none; }
.control-section summary::after { content: '+'; color: #877457; font-size: 23px; line-height: 1; font-weight: 400; }
.control-section[open] > summary::after { content: '−'; }
.control-section[open] > summary { border-bottom: 1px solid #e7e0d4; }
.control-body { padding: 20px 21px 22px; }
.brand-picker { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid #e7e0d4; }
.brand-logo img { max-width: 115px; max-height: 32px; width: auto; height: auto; object-fit: contain; }
.brand-picker > .field-label { margin-bottom: 9px; }
.brand-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.brand-tab { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; min-height: 56px; padding: 9px 10px; border: 1px solid #d7cfc1; border-radius: 6px; background: #fffefa; color: #4f5149; font-size: 11px; text-align: left; cursor: pointer; }
.brand-tab:hover { border-color: #aa8b62; }
.brand-tab.is-active { border-color: var(--studio-green); box-shadow: inset 0 0 0 1px var(--studio-green); background: #edf0e7; }
.brand-tab:focus-visible { outline: 3px solid #a77f43; outline-offset: 3px; }
.brand-logo { display: inline-grid; place-items: center; min-width: 64px; height: 27px; padding-inline: 5px; color: #fff; background: #1f332d; font-size: 12px; font-weight: 800; letter-spacing: .08em; line-height: 1; }
.brand-logo-egger { background: #155c41; border-radius: 2px; }
.brand-logo-aquafront { color: #075d91; background: #e6f3fb; border: 1px solid #8ec1dc; border-radius: 999px; font-size: 10px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 13px; }
.field-grid > label, .control-body > label { display: block; min-width: 0; }
.field-label { display: block; margin-bottom: 7px; color: #555348; font-size: 12px; font-weight: 600; line-height: 1.45; }
.creator-shell input[type="number"], .creator-shell input[type="text"], .creator-shell select, .creator-shell textarea { display: block; width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; border: 1px solid #c8c1b3; border-radius: 5px; background: #fff; color: #30352d; font-size: 15px; line-height: 1.4; }
.creator-shell select { cursor: pointer; padding-right: 25px; }
.creator-shell textarea { resize: vertical; min-height: 105px; line-height: 1.6; }
.creator-shell input[type="number"]:focus, .creator-shell select:focus, .creator-shell textarea:focus { outline: 2px solid #a2875f; outline-offset: 2px; }
.check-row { display: flex !important; align-items: center; justify-content: flex-start; gap: 11px; min-height: 44px; margin: 3px 0; color: #4b4e43; font-size: 13px; line-height: 1.45; cursor: pointer; }
.check-row input { flex-shrink: 0; width: 21px; height: 21px; margin: 0; accent-color: var(--studio-green); cursor: pointer; }
.check-row input:disabled { opacity: .45; }
.material-group + .material-group { margin-top: 20px; }
.material-group > fieldset > legend { margin-bottom: 10px; }
.field-note { margin: 10px 0 0; color: #81796a; font-size: 11px; line-height: 1.65; }
.config-warning { padding: 13px 16px; border: 1px solid #ded0ae; border-radius: 6px; background: #f6efde; color: #786039; font-size: 12px; line-height: 1.6; }
.config-warning:empty { display: none; }
.config-warning p { margin: 0; }
.config-warning ul { margin: 0; padding-left: 17px; }
.config-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 8px; }
.config-actions button, .config-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 12px 13px; border: 1px solid #b8b3a4; border-radius: 5px; background: #fffefa; color: #4c5544; font-size: 12px; font-weight: 600; line-height: 1.45; text-align: center; cursor: pointer; }
.config-actions > :first-child { grid-column: 1 / -1; background: var(--studio-green); border-color: var(--studio-green); color: #fff; }
.config-actions button:hover, .config-actions a:hover { filter: brightness(.96); }
.config-actions button:disabled { opacity: .45; cursor: wait; }
.studio-note { margin: 18px 0 0; color: #797468; font-size: 12px; line-height: 1.75; }
.studio-note p { margin: 0 0 8px; }
.creator-sr-only, .creator-shell .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.preview-panel > .field-note { margin: 0; padding: 0 18px 12px; }
.control-body > .field-note:first-child { margin-top: 0; margin-bottom: 14px; }
/* Retain the existing creator contact footer. Header styles come from styles.css. */
.studio-footer { background: var(--dark, #252a26); color: #f7f7f3; padding-top: 55px; }
.studio-contact { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding-bottom: 38px; }
.studio-contact h2 { color: white; font-size: 31px; letter-spacing: -.04em; margin: 0 0 10px; }
.studio-contact p { margin: 0; color: #c7cec2; font-size: 14px; line-height: 1.65; }
.studio-phone { display: inline-flex; align-items: center; gap: 20px; min-height: 54px; padding: 13px 20px; border: 1px solid #82907e; border-radius: 3px; color: white; white-space: nowrap; font-size: 20px; }
.studio-phone svg { width: 18px; height: 18px; }
.studio-fine { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; border-top: 1px solid #5b6757; color: #c0c9b8; font-size: 11px; }
.studio-fine a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1100px) {
  .studio-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; }
  .layout-grid { gap: 18px; }
  .layout-card-body { padding: 17px; }
  .control-body { padding: 17px; }
  .control-section summary { padding-inline: 17px; }
  .swatch-grid { gap: 5px; }
}
@media (max-width: 900px) {
  .studio-intro { padding-top: 40px; }
  .layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-workspace { padding-top: 36px; margin-top: 34px; scroll-margin-top: 0; }
  .studio-grid { grid-template-columns: 1fr; gap: 22px; }
  .controls-panel { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .preview-panel { position: sticky; top: 0; z-index: 12; box-shadow: 0 6px 18px #49382014; }
  .preview-heading { min-height: 43px; padding: 8px 12px; flex-wrap: nowrap; }
  .preview-heading .eyebrow { margin-bottom: 3px; font-size: 8px; }
  .preview-heading h3 { font-size: 16px; }
  .live-dot { font-size: 10px; }
  .scene-wrap { height: 185px; }
  .view-toolbar { flex-wrap: nowrap; gap: 6px; padding: 3px 8px; }
  .view-toolbar button { min-height: 44px; flex: 1; padding: 7px 5px; font-size: 11px; }
  .floor-picker { padding: 5px 8px 7px; }
  .floor-picker legend { margin-bottom: 3px; font-size: 10px; }
  .floor-picker .swatch-label { min-height: 44px; gap: 4px; padding: 4px; }
  .floor-picker .swatch-dot { width: 18px; height: 18px; }
  .floor-picker .swatch-label > span:not(.swatch-dot) { font-size: 9px; }
  .preview-caption, .preview-panel > .field-note { display: none; }
  .scene-status { padding: 5px 10px; font-size: 10px; }
  .controls-panel { gap: 12px; }
  .creator-shell input[type="number"], .creator-shell select, .creator-shell textarea { font-size: 16px; }
}
@media (max-width: 560px) {
  .creator-shell { padding-bottom: 50px; }
  .studio-intro { padding: 30px 0 25px; }
  .studio-intro h1 { font-size: 42px; }
  .studio-intro .lead { margin-top: 16px; font-size: 15px; line-height: 1.65; }
  .studio-intro .eyebrow { font-size: 10px; }
  .journey-heading { display: block; }
  .journey-heading p { margin-top: 10px; }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-card { min-height: 82px; padding: 14px; }
  .journey-card strong { font-size: 15px; }
  .journey-card small { font-size: 11px; }
  .ready-brief { grid-template-columns: 1fr; }
  .layout-grid { gap: 13px; }
  .layout-card { border-radius: 6px; }
  .layout-card picture { aspect-ratio: 4 / 3; }
  .layout-card-body { padding: 13px 11px 15px; }
  .layout-card-body small { font-size: 8px; letter-spacing: .07em; }
  .layout-card-body h2, .layout-card-title { font-size: 17px; line-height: 1.2; }
  .layout-card-body p, .layout-card-body > span:not(.layout-card-title) { font-size: 11px; line-height: 1.55; margin-top: 8px; }
  .layout-card-choose { margin-top: 10px; font-size: 10px; }
  .layout-card input[type="radio"] { top: 9px; right: 9px; width: 22px; height: 22px; }
  .workspace-heading { margin-bottom: 19px; }
  .workspace-heading h2 { font-size: 31px; }
  .workspace-heading p { font-size: 13px; }
  .preview-panel { border-radius: 7px; }
  .scene-wrap { height: 180px; }
  .control-section summary { min-height: 57px; font-size: 14px; }
  .control-body { padding: 17px 15px 19px; }
  .field-grid { gap: 14px 11px; }
  .swatch-label { padding: 8px 2px; }
  .swatch-dot { width: 26px; height: 26px; }
  .swatch-label > span:not(.swatch-dot) { font-size: 9px; }
  .config-actions { gap: 9px; }
  .config-actions button, .config-actions a { font-size: 11px; }
  .studio-contact { align-items: flex-start; flex-direction: column; gap: 24px; }
  .studio-contact h2 { font-size: 28px; }
  .studio-fine { flex-wrap: wrap; align-items: flex-start; gap: 14px; line-height: 1.6; }
}
@media (max-width: 360px) {
  .layout-grid { grid-template-columns: 1fr; }
  .layout-card picture { aspect-ratio: 16 / 9; }
  .layout-card-body h2, .layout-card-title { font-size: 21px; }
  .layout-card-body p, .layout-card-body > span:not(.layout-card-title) { font-size: 13px; }
  .field-grid { grid-template-columns: 1fr; }
  .floor-picker .swatch-dot { display: none; }
}
@media (max-width: 900px) and (max-height: 620px) {
  .preview-panel { position: relative; }
}
@media (prefers-reduced-motion: reduce) {
  .layout-card { transition: none; }
  .layout-card:hover { transform: none; }
}
