/* AcustiRoom · studio interface. Presentation only; the room and acoustic model are unchanged. */
:root {
  color-scheme:dark;
  --studio-bg:#11191f; --studio-panel:#172128; --studio-raised:#1e2a32;
  --studio-line:#ffffff12; --studio-text:#f1f0eb; --studio-muted:#a4afb5;
  --studio-accent:#efa876; --ink:var(--studio-text); --muted:var(--studio-muted);
  --line:#35424a; --paper:var(--studio-panel); --accent:var(--studio-accent); --accent-dark:#f6c29d;
}
body[data-theme=d03] {background:var(--studio-bg);color:var(--studio-text);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}
[data-theme=d03] .topbar {min-height:76px;margin:0;padding:16px 28px;background:var(--studio-bg);border:0;border-bottom:1px solid var(--studio-line);border-radius:0;box-shadow:none}
[data-theme=d03] .brand {font-size:23px;font-weight:650;letter-spacing:-.9px}
[data-theme=d03] .brand span {color:inherit}
[data-theme=d03] .brand svg {stroke:var(--studio-accent);stroke-width:1.5;width:29px;margin-right:13px}
[data-theme=d03] .editor-shell {padding:24px 28px 28px}
[data-theme=d03] .guidance {padding:4px 0 24px;background:none;border:0;margin:0;gap:20px}
[data-theme=d03] .guidance h1 {font-size:30px;line-height:1.2;font-weight:550;letter-spacing:-1px}
[data-theme=d03] .guidance p:not(.eyebrow) {font-size:14px;margin-top:9px;color:var(--studio-muted)}
[data-theme=d03] .eyebrow {font-size:10px;letter-spacing:.17em;color:var(--studio-accent);font-weight:600}
[data-theme=d03] :is(.help-card,.edit-card,.thickness-card,.height-card,.shape-actions,.opening-library-card,.opening-form-card,.room-setup-card,.measurement-setup-card) {background:var(--studio-panel);border:1px solid var(--studio-line);border-radius:12px;box-shadow:none;padding:24px}
[data-theme=d03] :is(.primary-button,.customer-workspace .primary-button) {background:var(--studio-accent);border:1px solid var(--studio-accent);color:#202226;border-radius:7px;box-shadow:none;font-weight:650;transition:background .18s,border-color .18s}
[data-theme=d03] :is(.primary-button,.customer-workspace .primary-button):hover:not(:disabled) {background:#f8bc92;border-color:#f8bc92}
[data-theme=d03] :is(.secondary-button,.customer-workspace .secondary-button) {background:#ffffff04;color:#d9dfe1;border:1px solid #ffffff26;border-radius:7px;box-shadow:none;transition:background .18s,border-color .18s}
[data-theme=d03] :is(.secondary-button,.customer-workspace .secondary-button):hover:not(:disabled) {background:#ffffff09;border-color:#ffffff55}
[data-theme=d03] :is(.measure-field,.imperial-grid input,.imperial-grid select,.opening-form-card select,.room-material-field select,.room-object-tray>input,.room-object-tray>select) {background:#101a21;border-color:#445159;color:var(--studio-text);border-radius:7px}
[data-theme=d03] :is(.room-object-option,.room-object-category) {background:#ffffff04;border:1px solid #ffffff16;border-radius:8px}
[data-theme=d03] :is(.room-object-option,.room-object-category):hover {background:#ffffff09;border-color:var(--studio-accent)}
[data-theme=d03] :is(.canvas-card,.elevation-card,.viewer-card) {border:1px solid var(--studio-line);border-radius:12px;background:#131e25;box-shadow:none}
[data-theme=d03] #room-canvas {background-color:#131d24;background-image:radial-gradient(#c7d4dc15 .8px,transparent .8px);background-size:24px 24px}
[data-theme=d03] .canvas-toolbar {background:#172128;border-color:var(--studio-line)}
[data-theme=d03] .side-panel {scrollbar-color:#43515a transparent}
[data-theme=d03] .room-step-progress {margin:0 0 18px;gap:13px;color:#b3bec5;font-size:13px}
[data-theme=d03] .room-step-progress span {background:#ffffff04;border-color:#ffffff1f;color:var(--studio-accent);font-size:11px;padding:7px 12px}
[data-theme=d03] .room-step-progress strong {font-weight:450}
[data-theme=d03] .measurement-setup-card {padding:42px;max-width:660px}
[data-theme=d03] .measurement-setup-card h1 {font-weight:550;letter-spacing:-1.2px;line-height:1.17}
[data-theme=d03] :is(.measurement-system-options button,.setup-metric-options button) {background:#ffffff03;border-color:#ffffff20;border-radius:9px}
[data-theme=d03] :is(.measurement-system-options button,.setup-metric-options button).is-active {background:#efa8760d;border-color:#efa876a6}

/* Quiet shell and a clear, persistent three-step navigation. */
.customer-workspace {font:13px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--studio-bg);color:var(--studio-text);scrollbar-width:thin;scrollbar-color:#46545d transparent}
.customer-workspace :is(button,input,select) {font-family:inherit}
.customer-workspace button {min-height:40px}
.customer-workspace h1,.customer-workspace h2 {color:var(--studio-text);font-weight:550}
.customer-workspace p {color:var(--studio-muted)}
.customer-header {min-height:76px;padding:16px 28px;gap:44px;background:#11191ff5;border-bottom:1px solid var(--studio-line);backdrop-filter:blur(14px)}
.customer-brand {font-size:23px;font-weight:650;letter-spacing:-.95px;display:flex;align-items:center}
.customer-brand::before {content:'';width:28px;height:28px;margin-right:13px;background:var(--studio-accent);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 28'%3E%3Cpath d='M2 10v8M6 5v18M10 1v26M14 6v16M18 3v22M22 7v14M26 11v6' stroke='black' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") center/contain no-repeat}
.customer-steps {gap:8px;flex-wrap:nowrap}
.customer-steps button {min-height:40px;padding:8px 15px;border:1px solid transparent;border-radius:7px;background:none;font-size:12px;font-weight:450;color:#97a5af;white-space:nowrap}
.customer-steps button:hover {color:#f3f2ec;background:#ffffff05}
.customer-steps [aria-current=step] {background:#efa8760b;border-color:#efa8763a;color:#f1bb92;font-weight:550}
.customer-actions {gap:13px;flex-wrap:nowrap}
.customer-language>span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.customer-language select {min-height:38px!important;font-size:12px!important;background:transparent!important;border-color:transparent!important;color:#c0cad0!important;padding:6px 4px!important}
.customer-header .secondary-button {min-height:40px;font-size:12px;padding:8px 14px}
.customer-layout {display:grid;grid-template-columns:232px minmax(0,1fr) minmax(330px,27%);align-items:start;min-height:calc(100dvh - 76px);gap:0;background:var(--studio-bg)}
.customer-catalog,.customer-main,.customer-results {min-width:0;background:transparent}
.customer-catalog,.customer-results {height:auto;min-height:calc(100dvh - 76px);scrollbar-width:thin;scrollbar-color:#43525b transparent}
.customer-catalog {padding:29px 20px 22px;border-right:1px solid var(--studio-line)}
.customer-catalog>h2 {font-size:22px;letter-spacing:-.65px;margin:0 0 5px;font-weight:550}
.customer-catalog>p {font-size:11px;line-height:1.6;margin-bottom:21px;color:#99a6ae}
.customer-catalog>.customer-fabric-field {display:block;margin:0;color:#c5cdd1;font-size:11px;font-weight:500;line-height:1.5}
.customer-workspace select,.customer-workspace input {font:inherit;background:#1a252d;color:#e6e8e7;border:1px solid #42505a;border-radius:6px;min-height:40px;padding:8px}
.customer-catalog select {width:100%;font-size:11px;min-height:40px;margin-top:9px;background:#1a242c;border-color:#ffffff20;text-overflow:ellipsis}
.customer-products {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 5px}
.customer-depth-label {padding:0 0 4px;font-size:11px;color:#c3cbd0;font-weight:500;letter-spacing:.02em}
.customer-workspace .customer-product {display:flex;flex-direction:column;align-items:stretch;gap:0;padding:7px 3px 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:#d7dde0;text-align:center;--product-depth:2px;transition:background .18s,border-color .18s}
.customer-product[data-depth="100"] {--product-depth:3px}
.customer-product[data-depth="170"] {--product-depth:5px}
.customer-workspace .customer-product:hover,.customer-workspace .customer-product:focus-visible {background:#ffffff05;border-color:#efa87666}
.customer-product>strong,.customer-product>small {display:none}
.customer-format-label {grid-column:1/-1;display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:12px 2px 0;margin-top:2px;border-top:1px solid #ffffff08;color:#bdc7ce}
.customer-format-label strong {font-size:11px;font-weight:550;letter-spacing:.04em}
.customer-format-label span {font-size:10px;color:#92a1aa;font-variant-numeric:tabular-nums}
.customer-product strong {font-size:11px;font-weight:550;letter-spacing:.035em}
.customer-product small {font-size:9px;font-weight:400;color:#8fa0aa;white-space:nowrap}
.customer-product-visual {height:68px;display:flex;align-items:center;justify-content:center;padding:0 5px 0 0;perspective:350px}
.customer-product-shape {display:block;max-width:95%;background-color:#c5bfb4;background-image:repeating-linear-gradient(0deg,#fff2 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,#0001 0 1px,transparent 1px 3px);border:1px solid #e7e2d82b;box-shadow:var(--product-depth) 1px 0 #827b6f,calc(var(--product-depth) + 1px) 2px 0 #554f45,7px 8px 14px #0006;transform:rotateY(-17deg) rotateX(2deg);transition:transform .2s}
.customer-product:hover .customer-product-shape {transform:translateY(-3px) rotateY(-22deg) rotateX(2deg)}
.customer-catalog>.customer-hint {margin:18px 0 0!important;padding-top:16px;border-top:1px solid var(--studio-line);font-size:10px;line-height:1.65;color:#92a2ab}

/* The room stays centre stage. Surfaces are warm, with restrained architectural dimensions. */
.customer-main {padding:29px 28px 24px;display:flex;flex-direction:column;gap:20px}
.customer-main-heading {position:relative;display:flex;flex-wrap:wrap;gap:0;align-items:flex-start;padding-bottom:4px}
.customer-eyebrow {flex-basis:100%;font-size:9px;font-weight:550;letter-spacing:.18em;color:#c89874;margin-bottom:9px}
.customer-workspace h1 {flex-basis:100%;font-size:30px;font-weight:500;letter-spacing:-1.05px;line-height:1.2;margin:0 0 10px}
.customer-main-heading p {flex-basis:100%;margin:0;font-size:12px;color:#a0adb5;line-height:1.6;padding-right:130px}
[data-theme=d03] .customer-main-heading>.secondary-button {position:absolute;bottom:1px;right:0;padding:7px 10px;min-height:32px;font-size:10px;border:1px solid #ffffff1c;color:#b5c1c8;background:transparent;box-shadow:none}
.customer-status {padding:12px 14px!important;border:1px solid #efa8763b;background:#efa87609;border-radius:7px;font-size:12px;line-height:1.6;color:#efbf9c!important}
.customer-status:empty {display:none}
.customer-wall-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 18px}
.customer-wall-card {position:relative;border:1px solid #ffffff15;border-radius:10px;background:#e9e6dd;box-shadow:0 8px 24px #00000014;overflow:hidden;transition:border-color .2s}
.customer-wall-card:focus-within {border-color:#efaa79}
.customer-wall-card header {display:flex;justify-content:space-between;align-items:center;padding:14px 16px 0;border:0;background:none;color:#4f514b}
.customer-wall-card h2 {margin:0;color:#454a44;font-size:12px;font-weight:550;letter-spacing:-.1px}
.customer-wall-card header span {font-size:10px;color:#777c72;font-variant-numeric:tabular-nums}
.customer-wall-svg {display:block;width:100%;height:clamp(170px,22vh,270px);background:linear-gradient(135deg,#eae8df,#dedacf);touch-action:none}
.customer-wall-surface {stroke:#bab5a8;stroke-width:.75}
.customer-wall-svg [data-module-id] {filter:drop-shadow(8px 12px 9px #0003);cursor:grab}
.customer-wall-svg [data-module-id]:active {cursor:grabbing}
.customer-wall-card .customer-wall-legend {margin:0;background:#ded7c5;border:0;font-size:10px;color:#6a5635;padding:6px 12px}
.customer-inspector {border:1px solid #ffffff16;border-radius:10px;background:#172129;padding:18px 20px;margin:0}
.customer-inspector h2 {font-size:12px;font-weight:500;color:#a6b4bd;letter-spacing:0;margin:0 0 16px;padding-right:110px}
.customer-module-count {position:absolute;top:18px;right:20px;font-size:10px;color:#acbac2}
.customer-inspector[data-selection=none] {padding:18px 20px;display:flex;align-items:center;gap:14px;background:#ffffff02}
.customer-inspector[data-selection=none] h2 {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
.customer-inspector[data-selection=none] .customer-module-count {position:static;order:2;flex-shrink:0;padding:5px 9px;background:#ffffff06;border-radius:5px;font-size:10px;margin-left:auto}
.customer-inspector[data-selection=none] p {margin:0;color:#a7b4bc;font-size:11px;line-height:1.6;max-width:42ch}
.customer-module-controls {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.customer-module-controls strong {font-size:15px;font-weight:500;color:var(--studio-text);margin-right:auto}
.customer-module-controls :is(button,select,input) {min-height:38px;font-size:11px}
.customer-module-controls input {width:62px;text-align:center}
.customer-delete {padding:8px 11px;border:1px solid #c57b783b;color:#dca39f;background:transparent;font-size:11px}
.customer-delete:hover {background:#c57b7810;border-color:#c57b7888}
.customer-palette {margin-top:17px;padding-top:15px;gap:12px;border-color:var(--studio-line)}
.customer-palette>strong {flex-basis:auto;font-size:11px;font-weight:450;color:#acb8c0;margin-right:4px}
.customer-palette>span {font-size:11px;color:#c2cbd0}
.customer-palette>.secondary-button {font-size:10px;min-height:34px;padding:6px 9px}
.customer-footer {display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:2px;min-width:0}
.customer-footer .customer-room-elements {flex:1;min-width:0;border:0;background:none;padding:0;margin:0;border-radius:0}
.customer-footer .customer-room-elements summary {font-size:11px;color:#a7b6be;min-height:40px;display:flex;align-items:center;gap:10px;padding:0}
.customer-footer .customer-room-elements summary::before {content:'+';font-size:18px;font-weight:300;color:#d1d7d9}
.customer-footer .customer-room-elements[open] summary::before {content:'−'}
.customer-footer .customer-room-elements[open] {align-self:flex-start}
#customer-next-sound {min-height:44px;margin:0 0 0 auto;flex-shrink:0;align-self:flex-start;padding:10px 20px;font-size:12px}

/* A live preview and a concise reading of the real acoustic result. */
.customer-workspace[data-customer-step=panels] .customer-results {display:flex;flex-direction:column}
.customer-results {border-left:1px solid var(--studio-line)}
.customer-results>.customer-render {display:block}
.customer-render {position:relative;padding:26px 23px 16px;background:#1b252d;border-bottom:1px solid var(--studio-line)}
.customer-render header {display:flex;align-items:center;gap:6px;margin-bottom:0}
.customer-render header h2 {flex:1;font-size:14px;line-height:1.4;font-weight:500;letter-spacing:-.2px;margin:0}
.customer-render header button {min-width:32px;min-height:32px;padding:4px 7px;border:1px solid #ffffff19;border-radius:6px;background:transparent;color:#bdc8ce;font-size:15px}
.customer-render header button:hover {background:#ffffff08;border-color:#ffffff40}
.customer-render canvas {display:block;width:100%;height:clamp(220px,29vh,330px);background:#1b252d;border-radius:0;touch-action:none}
.customer-render-note {color:#91a2ae!important;text-align:center;font-size:9px;line-height:1.6;padding-top:4px;margin:0!important}
.customer-workspace[data-customer-step=panels] .customer-purpose {order:2}
.customer-purpose {padding:18px 23px!important;margin:0!important;background:transparent!important;border-top:1px solid var(--studio-line)!important;gap:7px!important}
.customer-purpose>span {font-size:10px!important;font-weight:500!important;color:#acbac3!important}
.customer-purpose select {font-size:12px!important;min-height:39px!important;border-color:#ffffff21!important;background:#ffffff04!important}
.customer-purpose small {font-size:10px!important;color:#95a5af!important;line-height:1.6}
.customer-assessment {padding:22px 23px 20px;display:block}
.customer-assessment-heading {display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:16px}
.customer-assessment-heading h2 {font-size:15px;line-height:1.4;font-weight:500;letter-spacing:-.2px;margin:0}
.customer-live {display:flex;align-items:center;gap:5px;font-size:8px;letter-spacing:.12em;color:#a5b4bd;font-weight:500}
.customer-live::before {content:'';width:4px;height:4px;border-radius:50%;background:#d0b39b;box-shadow:0 0 0 3px #d0b39b09}
.customer-assessment .customer-result-status {font-size:12px;font-weight:450;line-height:1.6;margin:0;padding:10px 12px;border:1px solid #9aadb31a;background:#9aadb306;border-radius:7px;display:flex;align-items:baseline;gap:8px;color:#b6c4c9}
.customer-result-status::before {content:'';width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:currentColor;align-self:center}
.customer-assessment[data-colour=YELLOW] .customer-result-status {color:#e4c383;border-color:#e4c38321;background:#e4c38308}
.customer-assessment[data-colour=GREEN] .customer-result-status {color:#a1cebb;border-color:#a1cebb21;background:#a1cebb08}
.customer-assessment[data-colour=RED] .customer-result-status {color:#e6a5a1;border-color:#e6a5a121;background:#e6a5a108}
.customer-decay-summary {display:flex;flex-direction:column;padding:19px 0 9px;gap:6px;margin:0}
.customer-metrics {display:grid;grid-template-columns:1fr 1fr;gap:24px}
.customer-metric {display:flex;flex-direction:column;gap:3px}
.customer-metric>span {font-size:10px;color:#9caeb8}
.customer-metric strong {display:flex;align-items:baseline;gap:5px;font-size:34px;line-height:1.1;font-weight:450;letter-spacing:-1.5px;color:#e9e9e4;font-variant-numeric:tabular-nums}
.customer-metric strong small {font-size:13px;letter-spacing:0;color:#aebbc2;font-weight:400}
.customer-metric[data-metric=before] strong {color:#8f9ea7}
.customer-decay-summary>.customer-metric-caption {font-size:9px;color:#8d9fa9;margin-top:6px;line-height:1.5}
.customer-decay-summary>.customer-improvement {align-self:flex-start;margin-top:2px;font-size:10px;color:#d6b69c;line-height:1.4}
.customer-decay-chart {display:block;width:100%;height:auto;margin:8px 0 0;overflow:visible}
.customer-estimate-note {display:block;font-size:9px!important;color:#95a6af!important;line-height:1.5;text-align:center;margin:0 0 16px}
.customer-assessment .customer-result-details {border:0;border-top:1px solid var(--studio-line);padding-top:0;margin:0;font-size:11px;line-height:1.6}
.customer-result-details>summary {cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;min-height:42px;color:#bec9cf;font-size:11px}
.customer-result-details>summary::after {content:'+';font-size:18px;line-height:1;font-weight:300;color:#91a1ac}
.customer-result-details[open]>summary::after {content:'−'}
.customer-result-details p {font-size:11px;line-height:1.7;color:#aebcc4;margin:9px 0 14px}
.customer-result-details .customer-calculation-receipt {border:0;border-radius:0;padding:9px 0;background:transparent;font-size:10px!important;color:#91afa6!important}
.customer-result-details .customer-reference-label {color:#d2d8da}
.customer-band-table {font-size:10px;font-variant-numeric:tabular-nums}
.customer-band-table :is(th,td) {border-color:#ffffff12;padding:8px 3px}
.customer-result-details small {font-size:10px;line-height:1.6;color:#a6b5bf}
.customer-result-explanation h4 {font-size:12px;font-weight:550;margin:18px 0 8px;color:#d2dbdf}
.customer-result-explanation a {color:#e7b28a;text-underline-offset:3px}
.customer-calculating {padding:18px 14px;background:#ffffff04;border:1px solid var(--studio-line);border-radius:7px}
.customer-assessment>p,.customer-assessment>ul {font-size:12px;line-height:1.65}
.customer-material-dialog,.customer-quote-dialog {background:var(--studio-panel);border:1px solid #485861;border-radius:12px;box-shadow:0 24px 90px #0005}
.customer-preview-dialog {background:#1b252d;border:1px solid #485861;border-radius:12px}
.customer-preview-dialog>.customer-render {background:#1b252d}
.customer-preview-dialog>.customer-render canvas {height:100%!important}
.customer-preview-dialog>.customer-render .customer-render-note {font-size:11px}
.customer-workspace[data-customer-step=sound] .customer-layout {display:block;background:var(--studio-bg);padding:36px 28px}
.customer-workspace[data-customer-step=sound] .customer-results {display:grid;grid-template-columns:1.1fr 1fr;align-items:start;position:static;max-height:none;min-height:0;max-width:1120px;margin:auto;border:1px solid var(--studio-line);border-radius:14px;overflow:visible;background:var(--studio-panel)}
.customer-workspace[data-customer-step=sound] .customer-render {grid-column:1;grid-row:1/3;border:0;border-radius:14px 0 0 14px;position:sticky;top:96px}
.customer-workspace[data-customer-step=sound] .customer-render canvas {height:clamp(340px,49vh,560px)}
.customer-workspace[data-customer-step=sound] .customer-purpose {grid-column:2;grid-row:1;border-top:0!important;border-left:1px solid var(--studio-line)}
.customer-workspace[data-customer-step=sound] .customer-assessment {grid-column:2;grid-row:1;border-left:1px solid var(--studio-line);padding-top:12px}
.customer-workspace[data-customer-step=sound] .customer-metric strong {font-size:42px}

@media(min-width:1101px) {
  .customer-catalog,.customer-results {position:sticky;top:76px;max-height:calc(100dvh - 76px);overflow-y:auto;overscroll-behavior:contain}
}
@media(min-width:1600px) {
  .customer-layout {grid-template-columns:250px minmax(0,1fr) minmax(380px,27%)}
  .customer-main {padding:32px 34px 28px;gap:22px}
  .customer-catalog {padding:32px 23px 24px}
  .customer-product-visual {height:80px}
  .customer-wall-svg {height:clamp(210px,24vh,310px)}
  .customer-workspace h1 {font-size:34px}
  .customer-render {padding:28px 26px 20px}
  .customer-render canvas {height:clamp(250px,31vh,365px)}
  .customer-assessment {padding:24px 26px 18px}
}
@media(max-width:1279px) {
  .customer-header {gap:20px;padding:15px 20px}
  .customer-brand {font-size:21px}
  .customer-steps {gap:3px}
  .customer-steps button {padding:8px 10px}
  .customer-layout {grid-template-columns:200px minmax(0,1fr) 310px}
  .customer-catalog {padding:24px 13px 20px}
  .customer-main {padding:24px 20px;gap:17px}
  .customer-wall-grid {gap:16px 12px}
  .customer-workspace h1 {font-size:27px}
  .customer-main-heading p {padding-right:0}
  [data-theme=d03] .customer-main-heading>.secondary-button {position:static;margin-top:11px}
  .customer-render,.customer-assessment {padding-left:18px;padding-right:18px}
  .customer-wall-card header {padding:12px 10px 0}
  .customer-wall-card header span {font-size:9px}
  .customer-module-controls strong {flex-basis:100%}
}
@media(max-width:1100px) {
  .customer-header {position:relative;flex-wrap:wrap;gap:14px}
  .customer-steps {order:3;flex-basis:100%}
  .customer-actions {margin-left:auto}
  .customer-layout {grid-template-columns:210px minmax(0,1fr)}
  .customer-catalog,.customer-results {position:static;max-height:none;min-height:0}
  .customer-catalog {height:100%}
  .customer-wall-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .customer-wall-svg {height:220px}
  .customer-workspace[data-customer-step=panels] .customer-results {grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;border-left:0;border-top:1px solid var(--studio-line)}
  .customer-results>.customer-render {grid-column:1;grid-row:1;align-self:start;border:0}
  .customer-workspace[data-customer-step=panels] .customer-purpose {grid-column:1;grid-row:2;align-self:start}
  .customer-workspace[data-customer-step=panels] .customer-assessment {grid-column:2;grid-row:1/3;border-left:1px solid var(--studio-line)}
  .customer-workspace[data-customer-step=sound] .customer-render {position:static}
}
@media(max-width:700px) {
  [data-theme=d03] .topbar {padding:14px 16px}
  [data-theme=d03] .editor-shell {padding:20px 16px}
  [data-theme=d03] .guidance h1 {font-size:25px}
  [data-theme=d03] :is(.room-setup-card,.measurement-setup-card) {padding:22px 18px}
  .customer-header {padding:15px 16px;gap:12px}
  .customer-brand {font-size:20px}
  .customer-brand::before {width:24px;margin-right:10px}
  .customer-actions {gap:6px;flex-wrap:wrap}
  .customer-header .customer-actions button {font-size:10px!important;padding:8px 10px!important}
  .customer-header .customer-actions select {font-size:11px!important}
  .customer-steps {gap:5px}
  .customer-steps button {flex:1;min-height:44px;font-size:12px!important}
  .customer-layout {display:flex;flex-direction:column}
  .customer-catalog {width:100%;height:auto;padding:24px 18px 20px;border:0;border-bottom:1px solid var(--studio-line);order:1}
  .customer-catalog>h2 {font-size:23px}
  .customer-catalog>p {display:block;margin-bottom:18px;font-size:12px}
  .customer-catalog>.customer-fabric-field {font-size:12px}
  .customer-catalog select {font-size:12px}
  .customer-products {gap:4px}
  .customer-depth-label {padding-bottom:8px;font-size:11px}
  .customer-workspace .customer-product {display:flex;align-items:center;justify-content:center;padding:8px 5px;text-align:center;background:#ffffff02;border-color:#ffffff08}
  .customer-product-visual {height:44px;padding:0 3px 0 0}
  .customer-product-shape {height:36px!important;max-width:26px}
  .customer-product strong {font-size:11px}
  .customer-product small {font-size:9px}
  .customer-catalog>.customer-hint {display:none}
  .customer-main {width:100%;order:2;padding:28px 18px 24px;gap:20px}
  .customer-workspace h1 {font-size:29px}
  .customer-main-heading p {font-size:12px}
  [data-theme=d03] .customer-main-heading>.secondary-button {min-height:40px;padding:8px 12px;font-size:11px}
  .customer-wall-grid {grid-template-columns:1fr;gap:18px}
  .customer-wall-card header {display:flex;padding:15px 16px 0}
  .customer-wall-card header span {font-size:10px}
  .customer-wall-svg {height:clamp(200px,55vw,310px)}
  .customer-inspector {padding:18px 15px}
  .customer-inspector[data-selection=none] {display:block;padding:16px}
  .customer-inspector[data-selection=none] .customer-module-count {display:inline-block;margin:0 0 10px}
  .customer-inspector h2 {padding-right:110px}
  .customer-module-count {right:15px}
  .customer-module-controls {gap:7px}
  .customer-module-controls :is(button,select,input) {min-height:42px}
  .customer-palette>strong {flex-basis:100%}
  .customer-palette {gap:12px}
  .customer-footer {align-items:flex-start;flex-wrap:wrap;gap:12px}
  .customer-footer .customer-room-elements {flex-basis:100%}
  #customer-next-sound {margin-left:auto;min-height:46px}
  .customer-workspace[data-customer-step=panels] .customer-results {width:100%;display:flex;order:3;border-left:0}
  .customer-results>.customer-render {width:100%;border-bottom:1px solid var(--studio-line)}
  .customer-render {padding:24px 20px 18px}
  .customer-render canvas {height:300px}
  .customer-workspace[data-customer-step=panels] .customer-assessment {border-left:0}
  .customer-assessment {padding:24px 20px 18px}
  .customer-workspace[data-customer-step=sound] .customer-layout {padding:18px 12px}
  .customer-workspace[data-customer-step=sound] .customer-results {display:flex;flex-direction:column}
  .customer-workspace[data-customer-step=sound] .customer-render {border-radius:14px 14px 0 0}
  .customer-workspace[data-customer-step=sound] .customer-purpose,.customer-workspace[data-customer-step=sound] .customer-assessment {width:100%;border-left:0}
  .customer-workspace[data-customer-step=sound] .customer-render canvas {height:300px}
  .customer-result-details>summary {min-height:46px}
}
@media(prefers-reduced-motion:reduce) {
  .customer-workspace * {transition:none!important;animation:none!important}
}

/* Room finishes: visual state is independent of acoustic materials. */
.room-wall-color-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;padding:5px 10px;font:inherit;font-size:11px;border:1px solid #b7b1a7;border-radius:7px;background:transparent;color:inherit;cursor:pointer;white-space:nowrap}
.room-wall-color-button::before{content:'';display:block;flex:none;width:14px;height:14px;border-radius:50%;background:var(--wall-color,#e9e5da);box-shadow:0 0 0 1px #81786e66}
.customer-wall-card>header{gap:10px}.customer-wall-card>header>span{margin-left:auto}.customer-wall-card>header .room-wall-color-button{flex:none}
.room-floor-sample{display:block;width:100%;max-height:170px;object-fit:cover;margin-top:12px;border-radius:10px;border:1px solid #a69a8555}
.room-floor-sample[hidden]{display:none}
.room-color-dialog{box-sizing:border-box;width:min(630px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:30px;border:1px solid #405058;border-radius:18px;background:#19232b;color:#edece7;box-shadow:0 35px 100px #0009}
.room-color-dialog::backdrop{background:#091117bd;backdrop-filter:blur(5px)}
.room-color-dialog h2{font-size:26px;font-weight:550;letter-spacing:-.7px;margin:12px 0 8px}.room-color-dialog p{font-size:13px;color:#b5c0c5;line-height:1.5}
.room-color-layout{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:26px 0 22px;align-items:center}
.room-color-wheel{width:100%;aspect-ratio:1;position:relative;border-radius:50%;touch-action:none;cursor:crosshair;background:#000}
.room-color-wheel::before{content:'';position:absolute;inset:0;border-radius:inherit;background:radial-gradient(circle,#fff,transparent 70.7%),conic-gradient(red,#ff0,#0f0,#0ff,#00f,#f0f,red);opacity:var(--brightness,1)}
.room-color-marker{position:absolute;width:15px;height:15px;transform:translate(-50%,-50%);border:2px solid white;box-shadow:0 1px 5px #000b;border-radius:50%;pointer-events:none}
.room-color-picker>label{display:grid;gap:6px;margin-top:20px;font-size:12px}.room-color-picker input{width:100%;accent-color:#efa876}
.room-color-preview{height:108px;position:relative;overflow:hidden;background:linear-gradient(125deg,#fff2,transparent 45%,#0002),var(--paint);border-radius:9px;box-shadow:inset 0 -14px 0 #d9d0b9,inset 0 -17px 0 #ece7da}
.room-color-preview span{position:absolute;left:37%;top:18%;width:27%;height:64%;background:repeating-linear-gradient(0deg,#dad5c7 0 1px,#c9c2b5 1px 2px);box-shadow:4px 4px 12px #0003;border:1px solid #bdb5a7}
.room-paint-swatches{display:flex;gap:7px;margin:14px 0 20px;justify-content:space-between}.room-paint-swatches button{width:23px;height:23px;padding:0;min-height:0;border:1px solid #ffffff55;border-radius:50%;cursor:pointer}.room-paint-swatches button:hover{outline:2px solid #efa876;outline-offset:3px}
.room-cmyk-values{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:12px}.room-color-details label{display:grid;gap:6px;font-size:11px;color:#c4cecf}
.room-color-dialog input[type=number],.room-color-dialog input[type=text]{box-sizing:border-box;min-width:0;width:100%;background:#11191f;border:1px solid #41525c;color:#fff;padding:9px 5px;border-radius:6px;font:inherit;font-size:13px}
.room-color-all{display:flex;gap:9px;align-items:center;font-size:13px}.room-color-all input{accent-color:#efa876;width:17px;height:17px}.room-color-dialog .room-color-note{font-size:11px;margin:12px 0 24px}.room-color-dialog .customer-actions{justify-content:flex-end;gap:10px}
.room-color-dialog button:focus-visible,.room-color-dialog input:focus-visible,.room-wall-color-button:focus-visible{outline:2px solid #efa876;outline-offset:3px}
@media(max-width:520px){.room-color-dialog{padding:22px}.room-color-layout{gap:18px;grid-template-columns:1fr}.room-color-picker{width:200px;margin:auto}.room-color-preview{height:75px}.room-color-layout{margin:20px 0}.room-color-dialog h2{font-size:23px}.customer-wall-card>header{flex-wrap:wrap}.customer-wall-card>header .room-wall-color-button{font-size:10px}}

/* Object positioning stays in the customer room, with plan and elevations together. */
.room-position-dialog{box-sizing:border-box;width:min(1240px,calc(100vw - 32px));max-width:1240px;max-height:calc(100dvh - 32px);padding:26px;border:1px solid #41525a;border-radius:18px;background:#17232b;color:#eeeae3;box-shadow:0 30px 100px #0009;overflow:auto}
.room-position-dialog::backdrop{background:#091117c9;backdrop-filter:blur(4px)}
.room-position-dialog h2{margin:9px 0 5px;font-size:27px;font-weight:550;letter-spacing:-.7px}.room-position-dialog h3{font-size:14px;margin:12px 0}.room-position-dialog header>p{color:#b5c1c6;margin:0 0 22px}
.room-position-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:26px;align-items:start}
.room-position-views{min-width:0}.room-position-plan{display:block;width:100%;height:290px;background:#102029;border:1px solid #354d57;border-radius:12px;touch-action:none}
.room-position-elevations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.room-position-elevations section{min-width:0;border:1px solid #46535a;border-radius:10px;overflow:hidden;background:#e8e4d9}.room-position-elevations h3{color:#354b53;margin:10px 12px;font-size:12px}.room-position-elevations svg{display:block;width:100%;height:190px;touch-action:none}
.room-position-target{cursor:grab;touch-action:none;outline:none}.room-position-target:focus{stroke:#f07331;stroke-width:30}.room-position-target:active{cursor:grabbing}
.room-position-controls{position:sticky;top:0;background:#17232b;padding:4px 0 12px}.room-position-controls>label{display:block;font-size:12px;color:#d5dce0;margin:14px 0}.room-position-controls input,.room-position-controls select{box-sizing:border-box;display:block;width:100%;min-width:0;margin-top:7px;padding:11px;border-radius:7px;background:#0e1a22;color:#fff;border:1px solid #415661;font:inherit;font-size:15px}.room-position-controls input:disabled{opacity:.5}.room-position-controls>label:first-of-type input{border-color:#ce956b;font-size:21px;font-weight:600}
.room-position-hint{font-size:12px;color:#a9bbc3;line-height:1.6;margin:10px 0 15px}.room-position-warning{font-size:12px;line-height:1.5;color:#eec299}.room-position-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px}.room-position-actions button{min-height:42px}.room-position-actions .primary-button{flex:1}.room-position-dialog input:focus-visible,.room-position-dialog select:focus-visible,.room-position-dialog button:focus-visible{outline:2px solid #efa876;outline-offset:3px}
@media(max-width:760px){.room-position-dialog{padding:18px;width:calc(100vw - 18px);max-height:calc(100dvh - 18px)}.room-position-layout{grid-template-columns:1fr;gap:18px}.room-position-controls{position:static;grid-row:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.room-position-controls h3,.room-position-controls p,.room-position-actions{grid-column:1/-1}.room-position-controls>label{margin:9px 0}.room-position-plan{height:260px}.room-position-elevations{grid-template-columns:1fr}.room-position-elevations svg{height:210px}}

.customer-panel-picker{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0;color:#bfccd2;font-size:12px}.customer-panel-picker select{max-width:100%;padding:9px 12px;background:#10212b;color:#e9ece7;border:1px solid #415461;border-radius:7px}.customer-undo-panel{margin:8px 12px 8px 0}.customer-wall-svg [data-placement-issue=true]{filter:drop-shadow(0 0 2px #e9696780)}

.customer-inspector[data-selection=none]{flex-wrap:wrap}

/* The enlarged 3D shares the same live inspector as the wall editor. */
.customer-preview-dialog[open]{display:grid;grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:minmax(0,1fr)}
.customer-preview-dialog>.customer-render{grid-column:1!important;grid-row:1!important;position:relative!important;top:auto!important;min-width:0}
.customer-preview-dialog .customer-inspector{display:block;height:100%;min-width:0;min-height:0;overflow:auto;box-sizing:border-box;border:0;border-left:1px solid #ffffff18;border-radius:0;padding:26px 20px;background:#152028}
.customer-preview-dialog .customer-inspector h2{position:static;width:auto;height:auto;clip-path:none;overflow:visible;padding:0;margin:20px 0 12px;font-size:15px}
.customer-preview-dialog .customer-module-count{position:static;display:block;margin-bottom:18px}
.customer-preview-dialog .customer-module-controls strong{flex-basis:100%;margin-bottom:8px}
.customer-preview-dialog .customer-panel-picker{display:block;margin-top:18px}
.customer-preview-dialog .customer-panel-picker select{display:block;width:100%;margin-top:8px}
.customer-preview-dialog .customer-undo-panel{font-size:11px;line-height:1.5}
.customer-preview-dialog [data-selection=object]>strong{display:block;margin-bottom:20px}
.customer-preview-dialog [data-reposition-room-element]{display:block;width:100%;margin-bottom:12px}
@media(max-width:760px){
 .customer-preview-dialog[open]{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(220px,55%) minmax(0,1fr)}
 .customer-preview-dialog .customer-inspector{grid-column:1;grid-row:2;border-left:0;border-top:1px solid #ffffff18;padding:16px}
}

/* Keep the wall in the same place when a drag enters/leaves an overlap. */
.customer-status:empty{display:block;visibility:hidden;pointer-events:none}
.customer-main,.customer-wall-grid{overflow-anchor:none}
.customer-workspace[data-panel-dragging=true]{overscroll-behavior:none;user-select:none;-webkit-user-select:none;cursor:grabbing}
.customer-workspace[data-panel-dragging=true] .customer-wall-svg [data-module-id]{cursor:grabbing}

/* Live result: render, traffic light and curve first; explanations on demand. */
.customer-results>.customer-render{padding:18px 20px 12px}
.customer-results>.customer-render canvas{height:clamp(180px,24vh,260px)}
.customer-assessment{padding:18px 20px 14px}
.customer-assessment-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.customer-assessment-heading h2{margin:0;font-size:15px}
.customer-assessment-heading .customer-live{position:static;margin:0;font-size:8px;letter-spacing:1.4px;white-space:nowrap}
.customer-live-status{display:flex;align-items:center;gap:12px;min-height:34px;margin-bottom:10px}
.customer-live-status .customer-result-status{padding:0;margin:0;border:0;background:none;font-size:13px;line-height:1.45;font-weight:500}
.customer-live-status .customer-result-status::before{display:none}
.customer-traffic-lights{display:flex;flex:none;gap:5px;padding:8px;border:1px solid #ffffff18;border-radius:30px;background:#091318}
.customer-traffic-lights i{display:block;width:10px;height:10px;background:#34424a;border-radius:50%}
.customer-traffic-lights [data-active=true][data-light=RED]{background:#e6847e;box-shadow:0 0 9px #e6847e66}
.customer-traffic-lights [data-active=true][data-light=YELLOW]{background:#e9bd69;box-shadow:0 0 9px #e9bd6966}
.customer-traffic-lights [data-active=true][data-light=GREEN]{background:#91bdac;box-shadow:0 0 9px #91bdac66}
.customer-assessment .customer-decay-summary{margin:14px 0 5px;padding:0;border:0}
.customer-assessment .customer-metrics{gap:18px;margin:0 0 6px}
.customer-assessment .customer-metric strong{font-size:27px;line-height:1.2}
.customer-assessment .customer-metric span{font-size:10px;margin-bottom:4px}
.customer-assessment .customer-metric-caption,.customer-assessment .customer-improvement{font-size:10px;line-height:1.5}
.customer-assessment .customer-improvement{margin:3px 0 0}
.customer-decay-chart{display:block;width:100%;height:auto;max-height:185px;margin:8px 0 2px}
.customer-decay-chart[data-chart-state=previous]{opacity:.5}
.customer-assessment .customer-chart-state{font-size:11px;line-height:1.5;color:#d5b894;margin:6px 0 10px}
.customer-assessment .customer-estimate-note{display:block;text-align:center;font-size:9px;letter-spacing:.2px;color:#899ca5;margin:4px 0 15px}
.customer-assessment .customer-result-details{margin-top:0}
.customer-result-details .customer-purpose{border:0!important;padding:12px 0 4px;margin:0;font-size:11px}
.customer-result-details ul{padding-left:18px;font-size:11px;line-height:1.6;color:#b8c7ce}
.customer-preview-dialog[open]{grid-template-columns:minmax(0,1fr) 360px}
.customer-preview-sidebar{grid-column:2;grid-row:1;overflow:auto;min-width:0;min-height:0;border-left:1px solid #ffffff18;background:#111c23}
.customer-preview-sidebar .customer-assessment{border:0!important;padding:25px 20px 15px}
.customer-preview-sidebar .customer-inspector{height:auto;overflow:visible;border:0;border-top:1px solid #ffffff18;padding:16px 20px;background:transparent}
.customer-preview-sidebar .customer-inspector[data-selection=none]:not(:has(.customer-undo-element,.customer-undo-panel)){display:none}
.customer-preview-sidebar .customer-inspector h2{margin-top:0}
@media(max-width:760px){
 .customer-preview-dialog[open]{grid-template-columns:minmax(0,1fr)}
 .customer-preview-sidebar{grid-column:1;grid-row:2;border-left:0;border-top:1px solid #ffffff18}
 .customer-results>.customer-render canvas{height:260px}
}
/* Selection controls scroll independently, keeping the live result in view. */
.customer-preview-sidebar{display:flex;flex-direction:column;overflow:hidden}
.customer-preview-sidebar .customer-assessment{flex:none;box-sizing:border-box;max-height:70%;overflow:auto;overscroll-behavior:contain}
.customer-preview-sidebar .customer-inspector{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.customer-preview-sidebar .customer-inspector[data-selection=none] :is(h2,p,.customer-panel-picker,.customer-module-count){display:none}
.customer-preview-sidebar .customer-inspector[data-selection=none]{flex:0 0 auto}
@media(max-width:760px){.customer-preview-sidebar{overflow:auto;display:block}.customer-preview-sidebar .customer-assessment{max-height:none;overflow:visible}.customer-preview-sidebar .customer-inspector{overflow:visible}}

/* Room → panels → LED placement → per-wall summary. */
.customer-workspace [hidden]{display:none!important}
.customer-header{flex-wrap:wrap;gap:14px 24px}
.customer-header>.customer-actions{flex-wrap:wrap}
.customer-steps{flex-wrap:wrap;gap:6px}
.customer-steps button{min-height:44px;white-space:normal}
.customer-workspace[data-customer-step] .customer-results{display:flex;flex-direction:column;min-width:0}
.customer-results>.customer-render{flex:none}
.customer-results>.customer-inspector{display:block;position:static;min-width:0;padding:22px 20px;border:0;border-top:1px solid #ffffff18;border-radius:0;background:transparent}
.customer-results>.customer-inspector h2{position:static;width:auto;height:auto;clip-path:none;overflow:visible;margin:0 0 14px;padding:0;font-size:15px}
.customer-results>.customer-inspector .customer-module-count{position:static;display:block;margin:10px 0}
.customer-results>.customer-inspector .customer-module-controls{flex-wrap:wrap}
.customer-results>.customer-inspector .customer-module-controls strong{flex-basis:100%}
.customer-results>.customer-inspector .customer-panel-picker{display:block}
.customer-results>.customer-inspector .customer-panel-picker select{display:block;width:100%;margin-top:8px}
.customer-main>.customer-assessment{border:1px solid #ffffff18;border-radius:12px;margin:24px 0 0;padding:22px;min-width:0;grid-column:auto}
.customer-main>.customer-assessment .customer-decay-chart{max-height:250px}
.customer-footer{flex-wrap:wrap;gap:12px}
.customer-footer>.customer-room-elements{flex-basis:100%}
.customer-workspace:is([data-customer-step=leds],[data-customer-step=summary]) .customer-catalog{display:none}
.customer-workspace:is([data-customer-step=leds],[data-customer-step=summary]) .customer-layout{grid-template-columns:minmax(0,1fr) minmax(300px,370px)}
.customer-workspace[data-customer-step=leds] .customer-wall-grid{grid-template-columns:1fr}
.customer-workspace[data-customer-step=leds] .customer-wall-svg{height:clamp(230px,36vh,390px)}
.customer-workspace[data-customer-step=leds] .customer-wall-svg [data-module-id]{cursor:pointer}
.customer-panel-summary{display:grid;gap:16px}
.customer-summary-total{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;background:#182b34;border:1px solid #efa87666;border-radius:12px;font-size:17px}
.customer-summary-total strong{font-size:44px;color:#efa876;line-height:1}
.customer-summary-wall{padding:18px 22px;border:1px solid #ffffff20;border-radius:12px;background:#15232c}
.customer-summary-wall header{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.customer-summary-wall h2{margin:0;font-size:17px}.customer-summary-wall header>strong{font-size:13px;color:#efa876}
.customer-summary-wall ul{list-style:none;padding:0;margin:14px 0 0}
.customer-summary-wall li{display:flex;justify-content:space-between;gap:14px;padding:7px 0;color:#bfcbd0;font-size:13px;line-height:1.5}
.customer-summary-wall li>span{min-width:0;overflow-wrap:anywhere}.customer-summary-wall li>strong{flex:none;color:#edeae4}
.customer-panel-summary>p{font-size:14px;color:#bfcbd0;margin:4px 0;line-height:1.6}
.customer-panel-summary>.customer-summary-warning{color:#f4b589}
.customer-panel-summary>[data-summary-submit]{justify-self:start;min-height:48px;margin-top:8px}
@media(max-width:1440px){.customer-header>.customer-actions{width:100%;margin-left:0;justify-content:flex-end}.customer-header>.customer-steps{margin-left:auto}}
@media(max-width:1100px){
 .customer-workspace:is([data-customer-step=leds],[data-customer-step=summary]) .customer-layout{grid-template-columns:minmax(0,1fr)}
 .customer-workspace .customer-results{grid-column:1/-1;position:static}
 .customer-results>.customer-render canvas{height:320px}
}
@media(max-width:600px){
 .customer-header>.customer-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;margin:0}
 .customer-steps button{width:100%;font-size:11px;padding:8px}
 .customer-header>.customer-actions{justify-content:flex-start;gap:8px}
 .customer-header>.customer-actions>*{max-width:100%}
 .customer-main>.customer-assessment{padding:16px}
 .customer-summary-wall{padding:16px}.customer-summary-total{padding:18px}
 .customer-footer>button,.customer-panel-summary>[data-summary-submit]{width:100%}
 .customer-results>.customer-render canvas{height:250px}
}

/* Sticky side controls follow the actual header height when its actions wrap. */
@media(min-width:1101px){
 .customer-workspace .customer-layout{min-height:calc(100dvh - var(--customer-header-height,76px))}
 .customer-workspace .customer-catalog,.customer-workspace .customer-results{top:var(--customer-header-height,76px);min-height:calc(100dvh - var(--customer-header-height,76px));max-height:calc(100dvh - var(--customer-header-height,76px))}
}

/* One continuous project path, shared by setup and panel configuration. */
.room-project-steps,.customer-header>.customer-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));width:100%;flex-basis:100%;gap:8px;margin:0}
.room-project-steps button,.customer-header>.customer-steps button{min-width:0;min-height:48px;padding:10px 8px;white-space:normal;line-height:1.3;font:inherit;font-size:12px;border:1px solid #ffffff26;border-radius:8px;color:#c8d1d6;background:#172128;text-align:center}
.room-project-steps button[aria-current=step],.customer-header>.customer-steps button[aria-current=step]{background:#efa87618;border-color:#efa876;color:#ffd0ad;font-weight:650}
.room-project-steps button:disabled{opacity:.45;cursor:not-allowed}
.room-project-steps button:focus-visible,.customer-steps button:focus-visible{outline:2px solid #ffc99f;outline-offset:3px}
.room-stage-actions,.customer-stage-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0}
.room-stage-actions>button,.customer-stage-actions>button{min-height:48px;white-space:normal}
.room-stage-actions .primary-button,.customer-stage-actions .primary-button{margin-left:auto}
.customer-stage-actions{margin-top:16px}
.customer-header{gap:14px}
body[data-room-project-step=openings] .guidance-actions,body[data-room-project-step=objects] .guidance-actions{display:none!important}
@media(max-width:1000px){.room-project-steps,.customer-header>.customer-steps{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.room-project-steps,.customer-header>.customer-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.room-stage-actions,.customer-stage-actions{align-items:stretch;gap:8px}.room-stage-actions>button,.customer-stage-actions>button{flex:1;min-width:0;padding:9px;font-size:12px}}

.room-navigation-notice{flex-basis:100%;margin:0;color:#ffd0ad;background:#493125;padding:12px;border-radius:8px;line-height:1.5}
.room-navigation-notice:empty{display:none}
body[data-room-project-step] .topbar [data-open-library],body[data-room-project-step=openings] #opening-library-panel :is([data-start-furniture],[data-start-video]){display:none!important}
[data-theme=d03] .customer-main-heading>.secondary-button{position:static;margin-top:12px;min-height:44px}
.customer-main-heading p{padding-right:0}

.customer-header>.customer-stage-actions{order:4;flex-basis:100%;margin:0}
body[data-room-project-step=openings] #free-object-tools{display:none!important}

.customer-header>.customer-steps{align-items:stretch}

/* Written introduction before the first Acustimod, also available as help. */
dialog.acustimod-introduction{box-sizing:border-box;width:min(860px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid #61727b;border-radius:16px;background:#111e26;color:#edeae4;box-shadow:0 24px 100px #0009;overflow:auto;overscroll-behavior:contain}
.acustimod-introduction::backdrop{background:#071017e6}
.acustimod-intro-body{padding:28px 32px}
.acustimod-introduction .customer-eyebrow{margin:0 0 10px;color:#efa876;font-size:12px;letter-spacing:2px}
.acustimod-introduction h2{margin:0;font-size:clamp(23px,3vw,30px);line-height:1.25;overflow-wrap:break-word}
.acustimod-introduction h2:focus{outline:none}
.acustimod-intro-lead{font-size:16px;line-height:1.6;color:#c4cfd5;margin:12px 0 24px}
.acustimod-written-guide{display:grid;gap:24px;font-size:16px;line-height:1.65;color:#c4cfd5}
.acustimod-guide-section{min-width:0;border-top:1px solid #ffffff26;padding-top:20px;overflow-wrap:break-word}
.acustimod-guide-section>header{display:flex;align-items:baseline;gap:12px;margin-bottom:10px}
.acustimod-guide-number{flex:none;font-size:12px;font-weight:700;letter-spacing:1px;color:#efa876}
.acustimod-guide-section h3{margin:0;font-size:18px;line-height:1.4;color:#edeae4}
.acustimod-guide-section p{margin:0 0 12px}
.acustimod-guide-section>:last-child{margin-bottom:0}
.acustimod-guide-keypoint{padding:14px 16px;border-left:3px solid #efa876;border-radius:0 8px 8px 0;background:#efa8760d;color:#f0e7df}
.acustimod-guide-depths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;list-style:none;padding:0;margin:16px 0}
.acustimod-guide-depths li{padding:12px;border:1px solid #53616a;border-radius:8px;background:#192933}
.acustimod-guide-depths span{display:block;font-size:13px;color:#c4cfd5}
.acustimod-guide-depths strong{display:block;font-size:22px;line-height:1.4;color:#ffd0ad}
.acustimod-guide-measurements{margin-top:16px;border:1px solid #53616a;border-radius:8px;padding:0 14px;font-size:14px;line-height:1.6}
.acustimod-guide-measurements summary{padding:12px 0;min-height:48px;box-sizing:border-box;color:#f1dccb;cursor:pointer}
.acustimod-guide-measurements ul{padding-left:22px;margin:0 0 14px}
.acustimod-guide-measurements li+li{margin-top:8px}
.acustimod-intro-actions{position:sticky;bottom:0;display:flex;gap:12px;align-items:stretch;justify-content:space-between;padding:16px 32px;background:#111e26;border-top:1px solid #ffffff26;z-index:1}
.acustimod-intro-actions button{min-height:48px;max-width:100%;white-space:normal;line-height:1.4}
.acustimod-intro-actions .primary-button{background:#efa876;color:#1f2528;border:1px solid #efa876;font-weight:650}
.acustimod-intro-actions .secondary-button{background:#1c2c36;color:#edeae4;border:1px solid #778892}
.acustimod-introduction :is(button,summary):focus-visible{outline:2px solid #ffd0ad;outline-offset:3px}
@media(max-width:640px){
 dialog.acustimod-introduction{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}
 .acustimod-intro-body{padding:22px 18px}
 .acustimod-written-guide{font-size:15px;gap:20px}
 .acustimod-guide-section h3{font-size:17px}
 .acustimod-guide-depths{grid-template-columns:1fr;gap:8px}
 .acustimod-guide-depths li{display:flex;align-items:center;justify-content:space-between;gap:12px}
 .acustimod-intro-actions{flex-direction:column-reverse;padding:12px 18px;gap:8px}
 .acustimod-intro-actions button{width:100%;font-size:13px;padding:10px 12px}
}

/* Room reset stays reachable in both the drawing and configuration headers. */
[data-theme=d03] .room-clear-button{min-height:44px!important;min-width:44px;white-space:normal;max-width:100%}
[data-theme=d03] .topbar-actions{flex-wrap:wrap;min-width:0}
