:root {
  --ink: #1d252c;
  --muted: #66727d;
  --soft: #f4f6f7;
  --panel: #ffffff;
  --line: #d8dde1;
  --line-strong: #aeb6bc;
  --accent: #b21722;
  --accent-dark: #87131b;
  --teal: #1d7279;
  --gold: #bf8840;
  --shadow: 0 18px 44px rgba(21, 30, 37, 0.16);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #edf1f3;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.4;
}

button,
input,
select,
textarea {
  font: inherit;
  min-width: 0;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(29, 114, 121, 0.32);
  outline-offset: 2px;
}

.masthead {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 14px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  min-width: 0;
}

.brand > div {
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 34% 24%, #ffffff, transparent 22%),
    conic-gradient(from 210deg, #88939a, #f7f9fa, #717a80, #dfe4e6, #88939a);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12);
  color: #151b20;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark img {
  max-width: 34px;
  max-height: 34px;
  display: block;
  object-fit: contain;
}

.brand-mark.has-image {
  width: auto;
  min-width: 46px;
  max-width: 180px;
  height: 54px;
  padding: 2px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark.has-image img {
  width: auto;
  max-width: 180px;
  max-height: 50px;
}

.brand h1,
.brand p,
.model-heading h2,
.sidebar h2,
.stage-topline h2 {
  margin: 0;
}

.brand h1 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
  color: var(--accent);
}

.brand p {
  color: var(--muted);
  font-size: 14px;
}

.brand h1,
.brand p {
  overflow-wrap: anywhere;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: min(100%, 280px);
}

.company-website-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  color: var(--accent);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.company-website-link:hover {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.company-website-link-arrow {
  font-size: 15px;
  line-height: 1;
}

.ghost-button,
.solid-button,
.back-button,
.category-tab,
.view-button,
.option-row,
.model-card {
  border: 0;
}

.ghost-button,
.solid-button,
.back-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 4px;
  font-weight: 700;
}

.management-link {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.ghost-button {
  color: var(--ink);
  background: #f7f9fa;
  border: 1px solid var(--line);
}

.ghost-button:hover {
  background: #eef2f4;
}

.ghost-button.is-confirmed {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

.solid-button {
  color: #ffffff;
  background: linear-gradient(#d21d28, var(--accent));
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.solid-button:hover {
  background: linear-gradient(#c01924, var(--accent-dark));
}

.app {
  min-height: calc(100vh - 78px);
  min-height: calc(100svh - 78px);
}

.cso-footer {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 36px;
  color: #788692;
  background: #f8fafb;
  border-top: 1px solid #e1e6e9;
  font-size: 16px;
  line-height: 1.35;
}

.cso-footer p {
  margin: 0;
}

.cso-footer p:last-child {
  text-align: right;
}

body[data-auth="signed-out"] .header-actions {
  display: none;
}

[hidden] {
  display: none !important;
}

.user-badge {
  max-width: 220px;
  padding: 8px 11px;
  overflow: hidden;
  color: #39444c;
  background: #eef2f4;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-view {
  min-height: calc(100vh - 78px);
  min-height: calc(100svh - 78px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 58px 20px;
}

.auth-card {
  width: min(100%, 520px);
  min-width: 0;
  max-width: 100%;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.locked-view .auth-card {
  text-align: center;
}

.locked-view .auth-intro {
  margin-bottom: 0;
}

.auth-intro {
  margin-bottom: 22px;
}

.auth-intro h2 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.15;
}

.auth-intro p:not(.eyebrow),
.auth-help {
  margin: 0;
  color: var(--muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.auth-tab {
  min-width: 0;
  min-height: 44px;
  color: var(--ink);
  background: #f7f9fa;
  border: 0;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-tab + .auth-tab {
  border-left: 1px solid var(--line);
}

.auth-tab.is-active {
  color: #ffffff;
  background: var(--accent);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: #303940;
  font-weight: 800;
}

.auth-form label em {
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

.auth-form input {
  min-height: 42px;
  width: 100%;
  padding: 9px 11px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.link-button {
  min-height: 34px;
  padding: 0;
  color: var(--teal);
  background: transparent;
  border: 0;
  font-weight: 800;
  text-align: left;
}

.link-button:hover,
.auth-reset-link a:hover {
  text-decoration: underline;
}

.auth-status {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--accent);
  font-weight: 800;
}

.auth-status.is-success {
  color: var(--teal);
}

.auth-reset-link {
  margin: 0;
}

.auth-reset-link a {
  color: var(--teal);
  font-weight: 800;
}

.design-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.design-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 29, 0.42);
}

.design-modal-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.design-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.design-modal-header h2 {
  margin: 0;
  font-size: 24px;
}

.saved-design-list {
  display: grid;
  gap: 10px;
  padding: 16px;
  overflow: auto;
}

.saved-design-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.saved-design-row strong,
.saved-design-row small {
  display: block;
}

.saved-design-row strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.saved-design-row small,
.saved-design-empty,
.saved-design-help {
  color: var(--muted);
}

.saved-design-empty {
  margin: 0;
  padding: 18px;
  background: #f8fafb;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
}

.saved-design-help {
  margin: 0;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.model-view {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 38px;
}

.step-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 62px;
  margin-bottom: 26px;
  background: #d9dde0;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 50%, calc(100% - 34px) 100%, 0 100%);
}

.step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  background: #626a70;
  font-size: 20px;
}

.step::after {
  content: "";
  position: absolute;
  top: 0;
  right: -34px;
  z-index: 2;
  width: 68px;
  height: 100%;
  background: inherit;
  clip-path: polygon(0 0, 50% 50%, 0 100%, 9px 100%, 59px 50%, 9px 0);
}

.step:last-child::after {
  display: none;
}

.step span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #30373d;
  background: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 800;
}

.step:not(.is-active) {
  color: rgba(255, 255, 255, 0.78);
  background: #bfc5c9;
}

.model-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.model-heading h2 {
  font-size: 26px;
  font-weight: 600;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 320px));
  justify-content: start;
  gap: 18px;
}

.model-card {
  min-height: 444px;
  padding: 0;
  text-align: left;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(34, 43, 50, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.model-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 28px rgba(34, 43, 50, 0.14);
}

.model-card.empty-model-card {
  min-height: 180px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px;
  cursor: default;
}

.model-card.empty-model-card:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: 0 6px 16px rgba(34, 43, 50, 0.08);
}

.layout-thumb {
  --thumb-wall-a: #f5f3ed;
  --thumb-wall-b: #e0ddd5;
  --thumb-side-a: #7d8487;
  --thumb-side-b: #565d60;
  --thumb-trim-a: #7d8589;
  --thumb-trim-b: #3d4448;
  --thumb-rail-a: #4d5559;
  --thumb-rail-b: #22282b;
  position: relative;
  height: 224px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.86), transparent 38%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 15%, transparent 85%, rgba(0, 0, 0, 0.2)),
    linear-gradient(180deg, #eef2f3, #c7ced2);
}

.layout-thumb::before,
.layout-thumb::after {
  content: "";
  position: absolute;
  display: block;
  pointer-events: none;
}

.layout-thumb::before {
  left: 6.2%;
  top: 2.2%;
  z-index: 1;
  width: 87.6%;
  height: 94.8%;
  background: linear-gradient(180deg, #15191b, #050606);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 93.5% 100%, 93.5% 8%, 6.5% 8%, 6.5% 100%, 0 100%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.layout-thumb::after {
  left: 7.6%;
  bottom: 0;
  z-index: 10;
  width: 84.8%;
  height: 20px;
  background: linear-gradient(180deg, #0b0c0d, #000);
  clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.26);
}

.layout-thumb span {
  position: absolute;
  display: block;
}

.layout-thumb.has-image {
  display: block;
  background: #111;
}

.layout-thumb.has-image::before,
.layout-thumb.has-image::after {
  display: none;
}

.layout-icon-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.thumb-back {
  left: 23%;
  top: 24%;
  z-index: 2;
  width: 54%;
  height: 58%;
  background:
    radial-gradient(ellipse at 30% 32%, rgba(255, 255, 255, 0.68), transparent 28%),
    radial-gradient(ellipse at 70% 32%, rgba(255, 255, 255, 0.46), transparent 30%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.08)),
    linear-gradient(90deg, var(--thumb-wall-a), var(--thumb-wall-b));
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.14);
}

.thumb-back-panels {
  left: 23.8%;
  top: 24%;
  z-index: 2;
  width: 52.4%;
  height: 58%;
  background:
    radial-gradient(ellipse at 25% 30%, rgba(255, 255, 255, 0.55), transparent 28%),
    radial-gradient(ellipse at 72% 32%, rgba(255, 255, 255, 0.42), transparent 30%),
    linear-gradient(
      90deg,
      transparent 0 calc(33.333% - 3px),
      var(--thumb-trim-b) calc(33.333% - 3px) calc(33.333% + 3px),
      transparent calc(33.333% + 3px) calc(66.666% - 3px),
      var(--thumb-trim-b) calc(66.666% - 3px) calc(66.666% + 3px),
      transparent calc(66.666% + 3px)
    ),
    linear-gradient(
      90deg,
      var(--thumb-wall-a) 0 33.333%,
      #ebe8df 33.333% 66.666%,
      var(--thumb-wall-b) 66.666%
    );
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  box-shadow:
    inset 0 -12px 18px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.38);
}

.thumb-left,
.thumb-right {
  top: 11.3%;
  z-index: 3;
  width: 24.8%;
  height: 84%;
  background:
    radial-gradient(ellipse at 54% 34%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13), rgba(0, 0, 0, 0.2)),
    linear-gradient(90deg, var(--thumb-side-b), var(--thumb-side-a));
  filter: saturate(0.82) brightness(0.95);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.28);
}

.thumb-left::before,
.thumb-left::after,
.thumb-right::before,
.thumb-right::after {
  content: "";
  position: absolute;
  width: 5px;
  background: linear-gradient(90deg, #22282a, #9da5a9 48%, #343a3d);
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.3);
}

.thumb-left::before,
.thumb-right::before {
  top: 9%;
  bottom: 9.5%;
}

.thumb-left::after,
.thumb-right::after {
  top: 0;
  bottom: 0;
  opacity: 0.92;
}

.thumb-left {
  left: 7.8%;
  clip-path: polygon(0 0, 100% 17.4%, 100% 84.8%, 19% 100%, 0 100%);
}

.thumb-left::before {
  right: 0;
}

.thumb-left::after {
  left: 0;
}

.thumb-right {
  right: 7.8%;
  clip-path: polygon(0 17.4%, 100% 0, 100% 100%, 81% 100%, 0 84.8%);
}

.thumb-right::before {
  left: 0;
}

.thumb-right::after {
  right: 0;
}

.thumb-ceiling {
  left: 7.8%;
  top: 7.4%;
  z-index: 4;
  width: 84.4%;
  height: 22.2%;
  clip-path: polygon(0 0, 100% 0, 81.8% 100%, 18.2% 100%);
  background:
    radial-gradient(circle at 31% 32%, #fff 0 5px, rgba(255, 255, 255, 0.22) 6px 8px, transparent 9px),
    radial-gradient(circle at 50% 32%, #fff 0 5px, rgba(255, 255, 255, 0.22) 6px 8px, transparent 9px),
    radial-gradient(circle at 69% 32%, #fff 0 5px, rgba(255, 255, 255, 0.22) 6px 8px, transparent 9px),
    radial-gradient(circle at 31% 72%, #fff 0 5px, rgba(255, 255, 255, 0.22) 6px 8px, transparent 9px),
    radial-gradient(circle at 50% 72%, #fff 0 5px, rgba(255, 255, 255, 0.22) 6px 8px, transparent 9px),
    radial-gradient(circle at 69% 72%, #fff 0 5px, rgba(255, 255, 255, 0.22) 6px 8px, transparent 9px),
    linear-gradient(90deg, transparent 31%, rgba(33, 38, 41, 0.78) 31.4% 32.2%, transparent 32.6% 67.6%, rgba(33, 38, 41, 0.72) 68% 68.8%, transparent 69.2%),
    linear-gradient(0deg, transparent 49%, rgba(33, 38, 41, 0.64) 49.4% 50.6%, transparent 51%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(0, 0, 0, 0.08) 55%, rgba(0, 0, 0, 0.18)),
    linear-gradient(135deg, #f2f1eb, #cfd2d2);
  box-shadow: inset 0 -10px 16px rgba(0, 0, 0, 0.22), 0 6px 13px rgba(0, 0, 0, 0.18);
}

.thumb-floor {
  left: 7.8%;
  top: 80.5%;
  z-index: 5;
  width: 84.4%;
  height: 16.2%;
  clip-path: polygon(19% 0, 81% 0, 96.5% 100%, 3.5% 100%);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.13)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, #9aa2a5, #6f777a);
  background-size: 100% 100%, 8px 100%, 100% 8px, 100% 100%;
  box-shadow: inset 0 10px 18px rgba(255, 255, 255, 0.18), inset 0 -10px 18px rgba(0, 0, 0, 0.18);
}

.thumb-sill {
  z-index: 4;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--thumb-trim-a), var(--thumb-trim-b));
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
}

.thumb-sill-back {
  left: 23%;
  top: 81.6%;
  z-index: 2;
  width: 54%;
  height: 3px;
}

.thumb-sill-left,
.thumb-sill-right {
  top: 90.2%;
  width: 18%;
  height: 2px;
  opacity: 0.58;
}

.thumb-sill-left {
  left: 11.2%;
  transform-origin: right center;
  transform: rotate(-38deg);
}

.thumb-sill-right {
  right: 11.2%;
  transform-origin: left center;
  transform: rotate(38deg);
}

.thumb-rail {
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(180deg, #777f83, var(--thumb-rail-a) 45%, var(--thumb-rail-b) 100%);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.34), inset 0 1px 1px rgba(255, 255, 255, 0.34);
}

.thumb-rail::before,
.thumb-rail::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 7px;
  height: 11px;
  border-radius: 2px;
  background: inherit;
}

.thumb-rail::before {
  left: -2px;
}

.thumb-rail::after {
  right: -2px;
}

.thumb-rail-back {
  left: 28%;
  top: 63.8%;
  z-index: 2;
  width: 44%;
}

.thumb-rail-left,
.thumb-rail-right {
  top: 65.2%;
  z-index: 9;
  width: 17.8%;
}

.thumb-rail-left {
  left: 12.2%;
  transform-origin: right center;
  transform: rotate(-11deg);
}

.thumb-rail-right {
  right: 12.2%;
  transform-origin: left center;
  transform: rotate(11deg);
}

.layout-thumb.linear-bands .thumb-back-panels,
.layout-thumb.linear-bands .thumb-left,
.layout-thumb.linear-bands .thumb-right {
  background:
    linear-gradient(0deg, transparent 23%, rgba(255, 255, 255, 0.78) 24% 26%, transparent 27% 49%, rgba(255, 255, 255, 0.78) 50% 52%, transparent 53% 75%, rgba(255, 255, 255, 0.78) 76% 78%, transparent 79%),
    linear-gradient(90deg, #d8cabc, #b9a991);
}

.layout-thumb.horizontal-panels .thumb-back-panels,
.layout-thumb.horizontal-panels .thumb-left,
.layout-thumb.horizontal-panels .thumb-right {
  background:
    radial-gradient(ellipse at 32% 28%, rgba(255, 255, 255, 0.52), transparent 28%),
    radial-gradient(ellipse at 70% 33%, rgba(255, 255, 255, 0.38), transparent 30%),
    linear-gradient(
      0deg,
      transparent 0 calc(25% - 2px),
      var(--thumb-trim-b) calc(25% - 2px) calc(25% + 2px),
      transparent calc(25% + 2px) calc(50% - 2px),
      var(--thumb-trim-b) calc(50% - 2px) calc(50% + 2px),
      transparent calc(50% + 2px) calc(75% - 2px),
      var(--thumb-trim-b) calc(75% - 2px) calc(75% + 2px),
      transparent calc(75% + 2px)
    ),
    linear-gradient(90deg, var(--thumb-wall-a), var(--thumb-wall-b));
}

.layout-thumb.mirror-center .thumb-back-panels {
  background:
    linear-gradient(90deg, transparent 38%, rgba(255, 255, 255, 0.76) 38% 62%, transparent 62%),
    linear-gradient(90deg, #d8b88a, #c79d6d);
}

.layout-thumb.offset-column .thumb-back-panels {
  background:
    linear-gradient(90deg, transparent 20%, rgba(55, 63, 68, 0.55) 20% 31%, transparent 31%),
    linear-gradient(90deg, #d7b88a, #c49b6c);
}

.layout-thumb.center-opening .thumb-back-panels {
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.5) 48% 52%, transparent 52%),
    linear-gradient(90deg, #c5ced2, #eff3f5 49%, #b5c0c6 50%, #dce3e6);
}

.model-card-title,
.model-card-range,
.model-card-specs,
.model-card-action {
  display: block;
}

.model-card-title {
  padding: 18px 18px 4px;
  font-size: 22px;
  font-weight: 700;
}

.model-card-range {
  padding: 0 18px 14px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.model-card-specs {
  min-height: 82px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: #3d474e;
  font-size: 14px;
}

.model-card-action {
  margin: 0 18px 18px;
  min-height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(#d21d28, var(--accent));
  border-radius: 4px;
  font-weight: 800;
}

.designer-view {
  height: auto;
  min-height: calc(100vh - 78px);
  min-height: calc(100svh - 78px);
  display: grid;
  grid-template-columns: minmax(310px, 360px) minmax(0, 1fr) 84px;
  background: #d2d6d9;
}

.sidebar {
  display: flex;
  height: 100%;
  min-height: calc(100vh - 78px);
  min-height: calc(100svh - 78px);
  flex-direction: column;
  background: var(--panel);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.sidebar-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.back-button {
  color: var(--ink);
  background: #eef2f4;
}

.back-button::before {
  content: "< ";
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar h2,
.stage-topline h2 {
  font-size: 22px;
  font-weight: 600;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.category-tab {
  min-height: 48px;
  color: #3e4850;
  background: #f7f9fa;
  border-right: 1px solid var(--line);
  border-bottom: 3px solid transparent;
  font-size: 14px;
  font-weight: 700;
}

.category-tab:nth-child(3n) {
  border-right: 0;
}

.category-tab.is-active {
  color: var(--accent);
  background: #ffffff;
  border-bottom-color: var(--accent);
}

.category-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.check-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-right: 1px solid var(--line);
  font-weight: 700;
}

.check-row:last-child {
  border-right: 0;
}

.check-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--teal);
}

.option-list {
  flex: 1;
  height: 0;
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  overflow: auto;
  background: #fbfcfc;
}

.category-note {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 13px 16px 8px;
  color: var(--accent);
  background: rgba(251, 252, 252, 0.96);
  border-bottom: 1px solid #edf0f2;
  font-size: 16px;
  font-weight: 500;
}

.option-group {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 13px 16px 8px;
  color: var(--accent);
  background: rgba(251, 252, 252, 0.96);
  border-bottom: 1px solid #edf0f2;
  font-size: 16px;
  font-weight: 500;
}

.wall-panel-accordion {
  border-bottom: 1px solid var(--line);
  background: #fbfcfc;
}

.wall-panel-accordion-toggle {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border: 0;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.wall-panel-accordion-toggle:hover,
.wall-panel-accordion-toggle:focus-visible {
  background: #f5f7f8;
}

.wall-panel-accordion-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.wall-panel-accordion-copy strong {
  font-size: 15px;
}

.wall-panel-accordion-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wall-panel-accordion-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 19px;
  line-height: 1;
}

.wall-panel-accordion-body {
  border-top: 1px solid var(--line);
}

.option-row {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  color: var(--ink);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.option-row:hover {
  background: #f6f8f9;
}

.option-row.is-active {
  box-shadow: inset 3px 0 0 var(--accent);
  background: #fffafb;
}

.option-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.option-copy strong,
.option-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option-copy strong {
  font-size: 15px;
}

.option-copy small {
  color: var(--muted);
  font-size: 12px;
}

.swatch,
.option-thumb {
  width: 78px;
  height: 68px;
  display: block;
  border: 1px solid var(--line-strong);
  background-color: #cccccc;
  background-position: center;
  border-radius: 2px;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.08);
}

.layout-option .option-thumb {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 33%, rgba(255, 255, 255, 0.75) 33% 36%, transparent 36% 66%, rgba(0, 0, 0, 0.16) 66% 69%, transparent 69%),
    linear-gradient(135deg, #d7b88a, #b98e64);
}

.layout-option .layout-option-image {
  display: block;
  background: #111;
}

.layout-option .layout-option-image::before {
  display: none;
}

.layout-option .layout-option-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.layout-option .option-thumb::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 22px;
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
  background: #343230;
}

.layout-option .option-thumb.linear-bands {
  background:
    linear-gradient(0deg, transparent 27%, rgba(255, 255, 255, 0.9) 28% 31%, transparent 32% 58%, rgba(255, 255, 255, 0.9) 59% 62%, transparent 63%),
    linear-gradient(135deg, #ddd1bf, #b8a895);
}

.layout-option .option-thumb.horizontal-panels {
  background:
    linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, 0.78) 25% 28%, transparent 29% 49%, rgba(255, 255, 255, 0.78) 50% 53%, transparent 54% 74%, rgba(255, 255, 255, 0.78) 75% 78%, transparent 79%),
    linear-gradient(135deg, #d8cabc, #b8a895);
}

.layout-option .option-thumb.center-opening {
  background:
    linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.75) 48% 52%, transparent 53%),
    linear-gradient(135deg, #d7dee2, #aeb8be);
}

.layout-option .option-thumb.mirror-center {
  background:
    linear-gradient(90deg, transparent 36%, rgba(255, 255, 255, 0.72) 37% 63%, transparent 64%),
    linear-gradient(135deg, #cda77a, #b88c63);
}

.layout-option .option-thumb.offset-column {
  background:
    linear-gradient(90deg, transparent 18%, #596166 18% 31%, transparent 31%),
    linear-gradient(135deg, #d6b487, #b98e64);
}

.stage-area {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(420px, 1fr) auto;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 14%, rgba(255, 255, 255, 0) 86%, rgba(255, 255, 255, 0.62)),
    linear-gradient(180deg, #f0f2f3, #a5a9ab 72%, #969b9e);
}

.stage-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  padding: 16px 26px;
  background: rgba(255, 255, 255, 0.58);
  border-bottom: 1px solid rgba(142, 151, 157, 0.45);
}

.quick-specs {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.quick-specs div {
  min-width: 0;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(167, 176, 182, 0.5);
  border-radius: 6px;
}

.quick-specs dt {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-specs dd {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.cab-stage {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 10px min(3vw, 28px);
  overflow: hidden;
}

.cab-stage.has-wall-panel-map {
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 24px);
}

.wall-panel-map {
  width: 100%;
  max-width: 260px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(142, 151, 157, 0.55);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(43, 52, 57, 0.12);
}

.wall-panel-map-title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wall-panel-map-diagram {
  position: relative;
  aspect-ratio: 1.15;
  padding: 16% 19%;
  background: linear-gradient(180deg, #eef2f3, #d8dfe1);
  border: 1px solid #b9c2c6;
  border-radius: 5px;
}

.wall-panel-map-rear,
.wall-panel-map-side {
  position: absolute;
  display: grid;
  gap: 3px;
}

.wall-panel-map-rear {
  inset: 16% 19%;
  grid-template-columns: repeat(var(--wall-map-rear-count, 3), minmax(0, 1fr));
}

.wall-panel-map-rear.is-horizontal,
.wall-panel-map-diagram.is-horizontal .wall-panel-map-rear {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(var(--wall-map-rear-count, 4), minmax(0, 1fr));
}

.wall-panel-map-side {
  top: 16%;
  bottom: 16%;
  width: 16%;
  grid-template-rows: repeat(var(--wall-map-side-count, 2), minmax(0, 1fr));
}

.wall-panel-map-side-left {
  left: 2%;
}

.wall-panel-map-side-right {
  right: 2%;
}

.wall-panel-map-diagram span {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #68757b, #3d484d);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
}

.wall-panel-map-key {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.cab-visual {
  --cab-side-face: 17.8%;
  --cab-back-left: 22%;
  --cab-back-width: 56%;
  --cab-back-top: 19.5%;
  --cab-back-height: 61.5%;
  --cab-floor-top: 81%;
  --cab-post-width: clamp(8px, 1vw, 13px);
  --wall-finish: none;
  --wall-color: #f7f5ee;
  --wall-size: cover;
  --floor-finish: none;
  --floor-color: #050505;
  --floor-size: cover;
  --ceiling-finish: none;
  --ceiling-color: #f7f5ee;
  --ceiling-size: cover;
  --trim-finish: none;
  --trim-color: #f7f5ee;
  --trim-size: cover;
  --rail-finish: none;
  --rail-color: #f7f5ee;
  --standoff-finish: none;
  --standoff-color: #f8f8f3;
  --shell-finish: none;
  --shell-color: #f8f8f4;
  position: relative;
  width: min(860px, 96%);
  aspect-ratio: 1;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.54), transparent 27%),
    linear-gradient(90deg, transparent 0 7%, rgba(8, 10, 11, 0.84) 7.4% 8.7%, transparent 9% 91%, rgba(8, 10, 11, 0.84) 91.3% 92.6%, transparent 93%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 14%, transparent 87%, rgba(0, 0, 0, 0.24));
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  filter: drop-shadow(0 24px 34px rgba(31, 38, 42, 0.18));
}

.cab-visual::before,
.cab-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.cab-visual::before {
  inset: 0 5.2% 0;
  z-index: 20;
  border-left: var(--cab-post-width) solid rgba(9, 11, 12, 0.9);
  border-right: var(--cab-post-width) solid rgba(9, 11, 12, 0.9);
  border-top: clamp(9px, 1.4vw, 18px) solid rgba(8, 9, 10, 0.86);
  border-bottom: clamp(9px, 1.2vw, 16px) solid rgba(24, 27, 29, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 18px 0 20px rgba(255, 255, 255, 0.08),
    inset -18px 0 20px rgba(255, 255, 255, 0.08);
}

.cab-visual::after {
  left: 9.5%;
  right: 9.5%;
  bottom: 1.4%;
  z-index: 22;
  height: clamp(9px, 1.15vw, 14px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(120, 126, 128, 0.82) 52%, rgba(235, 239, 240, 0.78)),
    var(--trim-finish);
  background-size: 100% 100%, var(--trim-size);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.22);
}

.cab-model-canvas {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: none;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.cab-model-canvas.is-dragging {
  cursor: grabbing;
}

.cab-model-controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: #1d252c;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(130, 139, 145, 0.36);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(18, 24, 28, 0.18);
  backdrop-filter: blur(8px);
}

.cab-model-controls span {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.cab-model-controls .ghost-button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.cab-visual.is-webgl {
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.95), rgba(235, 240, 242, 0.38) 26%, transparent 42%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.16)),
    linear-gradient(180deg, #f1f5f6, #aeb7bb);
}

.cab-visual.is-webgl .cab-model-canvas,
.cab-visual.is-webgl .cab-model-controls {
  display: flex;
}

.cab-visual.is-webgl .cab-model-canvas {
  display: block;
}

.cab-visual.is-webgl .ambient-glow,
.cab-visual.is-webgl .cab-ceiling,
.cab-visual.is-webgl .cab-wall,
.cab-visual.is-webgl .cab-floor,
.cab-visual.is-webgl .sill,
.cab-visual.is-webgl .handrail,
.cab-visual.is-webgl .entrance-frame {
  display: none !important;
}

.ambient-glow {
  position: absolute;
  inset: 5% 8% 9%;
  z-index: 19;
  background:
    radial-gradient(circle at 31% 27%, rgba(255, 255, 255, 0.26), transparent 13%),
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.22), transparent 14%),
    radial-gradient(circle at 69% 27%, rgba(255, 255, 255, 0.26), transparent 13%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 14%, transparent 86%, rgba(0, 0, 0, 0.38));
  mix-blend-mode: screen;
  opacity: 0.78;
  pointer-events: none;
}

.cab-wall,
.cab-ceiling,
.cab-floor,
.sill,
.handrail,
.front-doors,
.control-panel,
.entrance-frame {
  position: absolute;
}

.cab-wall {
  background-color: var(--panel-wall-color, var(--wall-color));
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 32%, rgba(0, 0, 0, 0.1)),
    radial-gradient(ellipse at 50% 18%, rgba(255, 232, 195, 0.22), transparent 34%),
    var(--panel-wall-finish, var(--wall-finish));
  background-size: 100% 100%, 100% 100%, var(--panel-wall-size, var(--wall-size));
  box-shadow:
    inset 0 0 42px rgba(0, 0, 0, 0.24),
    inset 0 12px 20px rgba(255, 255, 255, 0.08);
}

.cab-wall-back {
  left: var(--cab-back-left);
  top: var(--cab-back-top);
  width: var(--cab-back-width);
  height: var(--cab-back-height);
  z-index: 4;
  background-color: var(--trim-color);
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.26), rgba(255, 255, 255, 0.28) 9%, rgba(0, 0, 0, 0.12) 50%, rgba(255, 255, 255, 0.28) 91%, rgba(0, 0, 0, 0.26)),
    var(--trim-finish);
  background-size: 100% 100%, var(--trim-size);
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.24),
    0 -4px 16px rgba(0, 0, 0, 0.22);
}

.cab-wall-left,
.cab-wall-right {
  --panel-wall-color: var(--side-wall-color, var(--wall-color));
  --panel-wall-finish: var(--side-wall-finish, var(--wall-finish));
  --panel-wall-size: var(--side-wall-size, var(--wall-size));
  top: 4.2%;
  width: 24%;
  height: 91.4%;
  z-index: 6;
  filter: saturate(0.98) brightness(0.86);
}

.cab-wall-left::before,
.cab-wall-left::after,
.cab-wall-right::before,
.cab-wall-right::after {
  content: "";
  position: absolute;
  width: 9px;
  background-color: var(--trim-color);
  background-image: var(--trim-finish);
  background-size: var(--trim-size);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.24);
}

.cab-wall-left::before,
.cab-wall-right::before {
  top: 9%;
  bottom: 9.5%;
}

.cab-wall-left::after,
.cab-wall-right::after {
  top: 0;
  bottom: 0;
  opacity: 0.98;
}

.cab-wall-left {
  left: 5.9%;
  clip-path: polygon(0 0, 100% 16.8%, 100% 84%, 24% 100%, 0 100%);
}

.cab-wall-left::before {
  right: 0;
  box-shadow:
    -7px 0 15px rgba(0, 0, 0, 0.22),
    2px 0 7px rgba(255, 255, 255, 0.2);
}

.cab-wall-left::after {
  left: 0;
  width: var(--cab-post-width);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.48)),
    var(--trim-finish);
}

.cab-wall-right {
  right: 5.9%;
  clip-path: polygon(0 16.8%, 100% 0, 100% 100%, 76% 100%, 0 84%);
}

.cab-wall-right::before {
  left: 0;
  box-shadow:
    7px 0 15px rgba(0, 0, 0, 0.22),
    -2px 0 7px rgba(255, 255, 255, 0.2);
}

.cab-wall-right::after {
  right: 0;
  width: var(--cab-post-width);
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.48), rgba(255, 255, 255, 0.22)),
    var(--trim-finish);
}

.cab-ceiling {
  left: 5.9%;
  top: 1.8%;
  width: 88.2%;
  height: 22.5%;
  z-index: 10;
  clip-path: polygon(0 0, 100% 0, 81.8% 100%, 18.2% 100%);
  background-color: var(--ceiling-color);
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.74) 0 15%, rgba(255, 255, 255, 0.18) 39%, rgba(0, 0, 0, 0.42) 100%),
    radial-gradient(ellipse at 50% 24%, rgba(255, 240, 220, 0.26), transparent 34%),
    var(--ceiling-finish);
  background-size: 100% 100%, 100% 100%, var(--ceiling-size);
  box-shadow:
    inset 0 -22px 34px rgba(0, 0, 0, 0.44),
    inset 0 12px 24px rgba(255, 255, 255, 0.08),
    0 9px 20px rgba(0, 0, 0, 0.28);
}

.cab-ceiling::before,
.cab-ceiling::after {
  content: "";
  position: absolute;
  z-index: 3;
  background-color: var(--trim-color);
  background-image: var(--trim-finish);
  background-size: var(--trim-size);
}

.cab-ceiling::before {
  left: 17.5%;
  right: 17.5%;
  bottom: 0;
  height: clamp(8px, 1.2vw, 13px);
  background-image:
    linear-gradient(180deg, rgba(12, 13, 14, 0.88), rgba(50, 52, 53, 0.86)),
    var(--trim-finish);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.34);
}

.cab-ceiling::after {
  left: 0;
  right: 0;
  top: 0;
  height: clamp(9px, 1.3vw, 16px);
  background-image:
    linear-gradient(180deg, rgba(4, 5, 5, 0.94), rgba(28, 30, 31, 0.88)),
    var(--trim-finish);
  opacity: 1;
}

.ceiling-line {
  position: absolute;
  top: 12%;
  z-index: 2;
  width: 2px;
  height: 88%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(255, 255, 255, 0.24), rgba(0, 0, 0, 0.28));
  transform-origin: top center;
}

.ceiling-line-a {
  left: 35.5%;
  transform: rotate(8deg);
}

.ceiling-line-b {
  right: 35.5%;
  transform: rotate(-8deg);
}

.ceiling-light {
  position: absolute;
  z-index: 4;
  width: 3.8%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0 31%, #e9eef0 33% 52%, rgba(23, 26, 28, 0.42) 54% 69%, transparent 71%);
  box-shadow:
    0 0 22px rgba(255, 255, 255, 0.62),
    0 2px 6px rgba(0, 0, 0, 0.34);
}

.light-a,
.light-b,
.light-c {
  top: 39%;
}

.light-d,
.light-e,
.light-f {
  top: 70%;
}

.light-a,
.light-d {
  left: 26.5%;
}

.light-b,
.light-e {
  left: 48.1%;
}

.light-c,
.light-f {
  left: 69.5%;
}

.cab-floor {
  left: 5.9%;
  top: var(--cab-floor-top);
  width: 88.2%;
  height: 16.4%;
  z-index: 12;
  clip-path: polygon(19% 0, 81% 0, 96.5% 100%, 3.5% 100%);
  background-color: var(--floor-color);
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(255, 255, 255, 0.13) 48%, rgba(0, 0, 0, 0.28)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.09) 0 1px, transparent 1px 11px),
    var(--floor-finish);
  background-size: 100% 100%, 100% 100%, 100% 100%, var(--floor-size);
  box-shadow:
    inset 0 16px 26px rgba(255, 255, 255, 0.09),
    inset 0 -20px 34px rgba(0, 0, 0, 0.2),
    0 -6px 14px rgba(0, 0, 0, 0.2);
}

.sill {
  z-index: 13;
  height: clamp(7px, 1vw, 11px);
  border-radius: 2px;
  background-color: var(--trim-color);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0.2)),
    var(--trim-finish);
  background-size: 100% 100%, var(--trim-size);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
}

.sill-back {
  left: 22%;
  top: 80.45%;
  width: 56%;
  z-index: 13;
  height: clamp(7px, 1vw, 11px);
}

.sill-left,
.sill-right {
  top: 88.9%;
  width: 18.7%;
  height: 5px;
  opacity: 0.58;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(64, 70, 72, 0.62)),
    var(--trim-finish);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.16);
}

.sill-left {
  left: 9.4%;
  transform-origin: right center;
  transform: rotate(-38deg);
}

.sill-right {
  right: 9.4%;
  transform-origin: left center;
  transform: rotate(38deg);
}

.back-panel-lines,
.back-panel-surfaces,
.side-lines {
  position: absolute;
  inset: 0;
}

.back-panel-lines {
  z-index: 1;
}

.back-panel-surfaces {
  --back-panel-count: 2;
  z-index: 2;
  inset: 0 10px;
  display: grid;
  grid-template-columns: repeat(var(--back-panel-count), minmax(0, 1fr));
  gap: clamp(7px, 1vw, 10px);
  pointer-events: none;
}

.back-panel-surfaces span {
  min-width: 0;
  display: block;
  background-color: var(--panel-wall-color, var(--wall-color));
  background-image:
    radial-gradient(ellipse at 52% 13%, rgba(255, 224, 186, 0.22), transparent 24%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.14), rgba(255, 255, 255, 0.14) 32%, transparent 58%, rgba(0, 0, 0, 0.12)),
    var(--panel-wall-finish, var(--wall-finish));
  background-size: 100% 100%, 100% 100%, var(--panel-wall-size, var(--wall-size));
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.16),
    inset 0 18px 34px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.back-panel-lines span,
.side-lines span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(5px, 0.7vw, 8px);
  transform: translateX(-50%);
  background-color: var(--trim-color);
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(255, 255, 255, 0.42) 44%, rgba(0, 0, 0, 0.18)),
    var(--trim-finish);
  background-size: 100% 100%, var(--trim-size);
  box-shadow:
    0 0 8px rgba(0, 0, 0, 0.24),
    0 0 1px rgba(255, 255, 255, 0.52);
}

.back-panel-lines span {
  z-index: 1;
  opacity: 0.96;
}

.side-lines span {
  width: 6px;
  opacity: 0.82;
}

.cab-wall-left .side-lines span {
  transform: translateX(-50%) skewY(9deg);
}

.cab-wall-right .side-lines span {
  transform: translateX(-50%) skewY(-9deg);
}

.layout-band,
.mirror-panel,
.offset-column {
  display: none;
  position: absolute;
  z-index: 6;
}

.layout-band {
  left: -11px;
  right: -11px;
  height: 8px;
  background: linear-gradient(180deg, #ffffff, #d8e5e8 48%, #ffffff);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.band-upper {
  top: 24%;
}

.band-middle {
  top: 50%;
}

.band-lower {
  top: 76%;
}

.mirror-panel {
  inset: 0 36%;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.1) 40%, rgba(60, 80, 90, 0.18)),
    linear-gradient(180deg, rgba(225, 237, 242, 0.6), rgba(142, 163, 170, 0.55));
  border-left: 8px solid rgba(255, 255, 255, 0.65);
  border-right: 8px solid rgba(80, 92, 98, 0.22);
}

.offset-column {
  top: 0;
  bottom: 0;
  left: 21%;
  width: 13%;
  background-color: var(--trim-color);
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(255, 255, 255, 0.18)),
    var(--trim-finish);
  background-size: 100% 100%, var(--trim-size);
}

.cab-visual[data-layout="linear-bands"] .layout-band,
.cab-visual[data-layout="mirror-center"] .mirror-panel,
.cab-visual[data-layout="offset-column"] .offset-column {
  display: block;
}

.cab-visual[data-layout="center-opening"] .cab-wall-back {
  background-color: var(--trim-color);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0.12)),
    var(--trim-finish);
}

.cab-visual[data-layout="center-opening"] .back-panel-surfaces {
  display: none;
}

.cab-visual[data-layout="center-opening"] .back-panel-lines span {
  width: 3px;
  background: rgba(48, 56, 62, 0.5);
}

.handrail {
  z-index: 16;
  display: none;
  height: clamp(14px, 1.7vw, 20px);
  border-radius: 3px;
  background-color: var(--rail-color);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(0, 0, 0, 0.18) 52%, rgba(255, 255, 255, 0.18)),
    var(--rail-finish);
  background-size: 100% 100%, var(--rail-size, cover);
  box-shadow:
    0 8px 13px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.85),
    inset 0 -2px 3px rgba(0, 0, 0, 0.2);
}

.handrail::before,
.handrail::after {
  content: "";
  position: absolute;
  top: -3px;
  width: clamp(10px, 1.2vw, 15px);
  height: calc(100% + 6px);
  border-radius: 2px;
  background-color: var(--standoff-color, var(--rail-color));
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), rgba(255, 255, 255, 0.34), rgba(0, 0, 0, 0.2)),
    var(--standoff-finish, var(--rail-finish));
  box-shadow:
    inset -1px -1px 2px rgba(0, 0, 0, 0.18),
    0 3px 8px rgba(0, 0, 0, 0.22);
}

.handrail::before {
  left: -9px;
}

.handrail::after {
  right: -9px;
}

.handrail-back {
  left: 27.1%;
  top: 62.9%;
  width: 45.8%;
  z-index: 17;
}

.handrail-left,
.handrail-right {
  top: 65.2%;
  width: 19.2%;
  z-index: 18;
}

.handrail-left {
  left: 10.2%;
  transform-origin: right center;
  transform: rotate(-11deg);
}

.handrail-right {
  right: 10.2%;
  transform-origin: left center;
  transform: rotate(11deg);
}

.show-back-rail .handrail-back,
.show-side-rails .handrail-left,
.show-side-rails .handrail-right {
  display: block;
}

.front-doors {
  display: none;
  inset: 0;
  z-index: 7;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 0 12%;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.12)),
    rgba(230, 235, 237, 0.82);
}

.front-doors span {
  min-width: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.52), rgba(0, 0, 0, 0.1)),
    var(--trim-finish);
  background-size: 100% 100%, var(--trim-size);
}

.control-panel {
  display: none;
  right: 5%;
  top: 18%;
  width: 30px;
  height: 112px;
  z-index: 8;
  border-radius: 3px;
  background: linear-gradient(180deg, #2a3034, #0f1214);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.control-panel span {
  display: block;
  width: 10px;
  height: 10px;
  margin: 12px auto 0;
  border-radius: 50%;
  background: #dfe8ea;
}

.cab-visual[data-view="front"] .front-doors,
.cab-visual[data-view="front"] .control-panel {
  display: grid;
}

.cab-visual[data-view="front"] .handrail,
.cab-visual[data-view="entrance"] .handrail {
  opacity: 0.32;
}

.entrance-frame {
  display: none;
  z-index: 21;
  left: 21.4%;
  top: 6.2%;
  width: 57.2%;
  height: 80.5%;
  border: clamp(18px, 3vw, 26px) solid var(--trim-color);
  border-bottom-width: clamp(22px, 3.5vw, 32px);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.28),
    inset 0 0 0 2px rgba(0, 0, 0, 0.16);
}

.entrance-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.entrance-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 49%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.65), rgba(0, 0, 0, 0.14)),
    var(--trim-finish);
  background-size: 100% 100%, var(--trim-size);
}

.entrance-door-left {
  left: 0;
  transform: translateX(-24%);
}

.entrance-door-right {
  right: 0;
  transform: translateX(24%);
}

.entrance-header {
  position: absolute;
  left: -26px;
  right: -26px;
  top: -26px;
  height: 26px;
  background: rgba(0, 0, 0, 0.14);
}

.cab-visual[data-view="entrance"] .entrance-frame {
  display: block;
}

.cab-visual[data-view="entrance"] .cab-wall-left,
.cab-visual[data-view="entrance"] .cab-wall-right,
.cab-visual[data-view="entrance"] .cab-wall-back,
.cab-visual[data-view="entrance"] .cab-ceiling,
.cab-visual[data-view="entrance"] .cab-floor {
  filter: saturate(0.88) brightness(0.94);
}

.selection-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 1px;
  background: rgba(130, 139, 145, 0.4);
  border-top: 1px solid rgba(142, 151, 157, 0.5);
}

.selection-summary span {
  min-width: 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-summary strong {
  margin-right: 7px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.view-rail {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 14px 8px;
  background: linear-gradient(180deg, #eef1f2, #c8ced2);
  border-left: 1px solid rgba(110, 119, 125, 0.4);
}

@media (pointer: coarse) {
  .ghost-button,
  .solid-button,
  .back-button,
  .auth-tab,
  .category-tab,
  .view-button,
  .option-row,
  .model-card {
    touch-action: manipulation;
  }

  .ghost-button,
  .solid-button,
  .back-button {
    min-height: 44px;
  }

  .cab-model-controls {
    left: 12px;
    right: 12px;
    justify-content: space-between;
    border-radius: 16px;
  }
}

.view-button {
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px 3px;
  color: #6d767d;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(153, 162, 168, 0.55);
  border-radius: 5px;
}

.view-button svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.view-button span {
  max-width: 70px;
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
}

.view-button.is-active {
  color: #11161a;
  background: #ffffff;
  border-color: #11161a;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.14);
}

@media (max-width: 1120px) {
  .designer-view {
    grid-template-columns: 310px minmax(0, 1fr) 76px;
  }

  .quick-specs {
    grid-template-columns: 1fr;
  }

  .selection-summary {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
  }
}

@media (max-width: 860px) {
  .masthead {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 12px 14px;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .step-strip {
    grid-template-columns: 1fr;
    clip-path: none;
  }

  .step {
    min-height: 48px;
  }

  .step::after {
    display: none;
  }

  .model-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .model-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  }

  .designer-view {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: min(54svh, 560px);
    min-height: auto;
    max-height: 54svh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stage-area {
    grid-template-rows: auto minmax(360px, auto) auto;
  }

  .stage-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .cab-stage.has-wall-panel-map {
    grid-template-columns: 1fr;
  }

  .wall-panel-map {
    max-width: min(360px, 92vw);
  }

  .cab-visual {
    width: min(96vw, 640px, max(280px, calc(100svh - 250px)));
    min-height: 330px;
  }

  .view-rail {
    grid-template-columns: repeat(3, 1fr);
    align-content: stretch;
    position: sticky;
    bottom: 0;
    z-index: 50;
    border-left: 0;
    border-top: 1px solid rgba(110, 119, 125, 0.4);
  }

  .view-button {
    min-height: 64px;
  }

  .selection-summary {
    grid-template-columns: 1fr 1fr;
  }

  .saved-design-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cso-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 18px 20px;
    font-size: 14px;
  }

  .cso-footer p:last-child {
    text-align: left;
  }

  .model-view {
    width: min(100% - 20px, 1480px);
  }

  .auth-view {
    padding: 24px 10px;
  }

  .auth-card {
    width: calc(100vw - 20px);
    padding: 22px;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .brand h1 {
    font-size: 25px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .header-actions > * {
    width: 100%;
  }

  .header-actions .solid-button {
    grid-column: 1 / -1;
  }

  .model-card {
    min-height: auto;
  }

  .layout-thumb {
    height: clamp(180px, 62vw, 240px);
  }

  .stage-topline {
    padding: 12px 14px;
  }

  .quick-specs {
    width: 100%;
  }

  .category-tabs {
    grid-template-columns: repeat(3, minmax(96px, 1fr));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .category-tab:nth-child(3n) {
    border-right: 0;
  }

  .category-tab:nth-child(2n) {
    border-right: 1px solid var(--line);
  }

  .option-row {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .swatch,
  .option-thumb {
    width: 66px;
    height: 58px;
  }

  .cab-stage {
    padding: 10px;
    min-height: 300px;
  }

  .cab-visual {
    width: min(96vw, max(280px, calc(100svh - 260px)));
    min-height: 280px;
  }

  .cab-model-controls {
    bottom: 10px;
    align-items: stretch;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .cab-model-controls span {
    white-space: normal;
  }

  .view-rail {
    gap: 8px;
    padding: 8px;
  }

  .view-button {
    min-height: 56px;
  }

  .view-button svg {
    width: 30px;
    height: 30px;
  }

  .selection-summary {
    grid-template-columns: 1fr;
  }

  .design-modal {
    padding: 10px;
  }

  .design-modal-card {
    max-height: calc(100svh - 20px);
  }

  .design-modal-header {
    padding: 16px;
  }
}

@media (max-width: 420px) {
  .header-actions {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 18px;
  }

  .auth-intro h2 {
    font-size: 25px;
  }

  .sidebar-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .back-button {
    justify-self: start;
  }

  .category-tabs {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
  }

  .cab-visual {
    min-height: 250px;
  }
}

@media print {
  .masthead,
  .sidebar,
  .view-rail,
  .model-view {
    display: none !important;
  }

  .designer-view {
    display: block;
  }

  .stage-area {
    min-height: auto;
    background: #ffffff;
  }

  .cab-stage {
    min-height: 620px;
  }
}

/* Common browser-level screenshot deterrence for every page. */
.capture-blocker {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
  background: #101820;
  color: #ffffff;
  text-align: center;
  font: 600 18px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.capture-blocker p {
  max-width: 420px;
  margin: 0;
}

html.capture-blocked .capture-blocker {
  display: grid;
}

@media print {
  body > * {
    display: none !important;
  }

  body::before {
    display: block;
    padding: 48px 24px;
    color: #101820;
    content: "Printing and screenshot capture are disabled on this page.";
    font: 600 18px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
    text-align: center;
  }
}
