* {
  box-sizing: border-box;
}
:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #23313b;
  background: #fff;
  font-synthesis: none;
  font-size: 16px;
  --accent: #b6492d;
  --muted: #64717b;
}
body {
  margin: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
#viewport:focus-visible {
  outline: 3px solid #327db8;
  outline-offset: 4px;
}
button:disabled {
  cursor: wait;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-bottom: 1px solid #e5e8eb;
  gap: 20px;
}
.wordmark {
  font-size: 20px;
  letter-spacing: 0.13em;
  font-weight: 700;
  display: flex;
  gap: 11px;
  align-items: center;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border: 2px solid #263c50;
  border-radius: 50%;
  font-size: 0;
  border-right-color: #ce6040;
  transform: rotate(-30deg);
}
.nav-label {
  font-size: 12px;
  letter-spacing: 0.13em;
  font-weight: 600;
  color: #5d6a73;
}
.nav-label span {
  margin-left: 20px;
  color: #a3acb3;
}
.demo-badge {
  font-size: 12px;
  border: 1px solid #d8dde0;
  padding: 9px 12px;
  border-radius: 30px;
  white-space: nowrap;
}
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  min-height: 650px;
  height: calc(100vh - 126px);
  max-height: 1100px;
}
.stage {
  position: relative;
  overflow: hidden;
  background: #e9eef1;
  isolation: isolate;
}
.stage-title {
  position: absolute;
  z-index: 1;
  top: 35px;
  left: 38px;
  pointer-events: none;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: #64717b;
}
.stage-title h1 {
  font-size: clamp(28px, 3.25vw, 50px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 17px 0 12px;
}
.stage-title p {
  font-size: 14px;
  color: #64717b;
  margin: 0;
}
#viewport {
  width: 100%;
  height: 100%;
  position: relative;
  touch-action: none;
}
#viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.stage-meta {
  position: absolute;
  left: 38px;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.stage-meta span:first-child {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.13em;
}
.stage-meta span:last-child {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #7b858e;
}
.viewer-bar {
  position: absolute;
  bottom: 20px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gesture-hint {
  font-size: 12px;
  color: #53616e;
  background: #eef2f3e8;
  border-radius: 25px;
  padding: 12px 14px;
}
.gesture-hint b {
  padding: 0 5px;
  font-weight: 400;
}
.view-buttons {
  display: flex;
  gap: 6px;
}
.view-buttons button {
  height: 40px;
  min-width: 40px;
  border: 1px solid #d6dee3;
  background: #ffffffed;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}
.view-buttons #toggle-details {
  border-radius: 24px;
  padding: 0 14px;
  font-size: 12px;
}
.view-buttons #toggle-details[aria-pressed='true'] {
  background: #223747;
  color: white;
  border-color: #223747;
}
.view-buttons button:hover {
  border-color: #5e737e;
  background: #fff;
}
.config-panel {
  padding: 33px 29px 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  background: #fff;
  border-left: 1px solid #e0e6e9;
}
.product-heading h2 {
  font-size: 38px;
  letter-spacing: -0.06em;
  font-weight: 500;
  margin: 8px 0 14px;
}
.product-heading p {
  font-size: 14px;
  line-height: 1.5;
  color: #64717b;
  margin: 0 0 27px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 27px;
  min-width: 0;
}
legend {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
}
legend > span {
  font-size: 11px;
  color: #8a969d;
  font-weight: 400;
}
legend strong {
  font-size: 12px;
  font-weight: 400;
  color: #6e7a84;
  margin-left: auto;
}
.swatches {
  display: flex;
  gap: 13px;
}
.swatches button {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  background: none;
  border: 1.5px solid transparent;
  border-radius: 50%;
  padding: 5px;
}
.swatches button i {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px #00000014;
}
.swatches button[aria-pressed='true'] {
  border-color: #263c48;
}
.swatches button:hover {
  border-color: #9aa9b4;
}
.material-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.material-options button {
  padding: 6px 6px 11px;
  border: 1px solid #dce2e5;
  background: white;
  border-radius: 9px;
  min-height: 85px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.material-options button[aria-pressed='true'] {
  border: 1.5px solid #2f4859;
  background: #f5f7f8;
  padding: 5.5px 5.5px 10.5px;
}
.fabric-sample {
  display: block;
  width: 100%;
  height: 38px;
  border-radius: 5px;
  background-color: #b5b5ae;
}
.woven {
  background:
    repeating-linear-gradient(0deg, #a8a9a240 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, #c9cac460 0 1px, #a6a7a3 1px 3px);
}
.boucle {
  background:
    radial-gradient(ellipse at 40% 40%, #e2e0d7 20%, transparent 45%) 0 0/7px
      6px,
    radial-gradient(ellipse at 60% 60%, #8d8c82 15%, #bfbeb1 48%) 1px 3px/8px
      7px;
}
.leather {
  background: radial-gradient(ellipse at 20% 5%, #b7b2a6, #77766e);
  box-shadow: inset 0 2px 12px #ffffff40;
}
.finish-options {
  display: grid;
  gap: 8px;
}
.finish-options button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 49px;
  border: 1px solid #e0e5e7;
  background: #fff;
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 14px;
}
.finish-options i {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 4px;
}
.walnut-chip {
  background: repeating-linear-gradient(
    93deg,
    #69442b 0 2px,
    #825f41 2px 4px,
    #715137 4px 7px
  );
}
.graphite-chip {
  background: linear-gradient(140deg, #59606a, #262b32);
}
.finish-options button b {
  font-weight: 400;
  margin-left: auto;
  visibility: hidden;
}
.finish-options button[aria-pressed='true'] {
  border: 1.5px solid #344b5a;
  background: #f6f8f9;
  padding: 7.5px 11.5px;
}
.finish-options button[aria-pressed='true'] b {
  visibility: visible;
}
.selection-summary {
  border-top: 1px solid #e5e8eb;
  padding-top: 19px;
  display: grid;
  gap: 10px;
}
.selection-summary > span {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #6f7b82;
}
.selection-summary strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.selection-summary small {
  font-size: 12px;
  color: #78838a;
  line-height: 1.4;
}
.reset-all {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #dce2e5;
  background: none;
  padding: 15px 0;
  font-size: 12px;
  text-align: left;
}
.reset-all span {
  font-size: 19px;
}
.concept-note {
  font-size: 11px;
  line-height: 1.5;
  color: #8c959c;
  margin-top: 18px;
}
footer {
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 38px;
  font-size: 10px;
  letter-spacing: 0.1em;
  border-top: 1px solid #e5e8eb;
  color: #748089;
}
footer span:last-child {
  letter-spacing: 0;
}
#hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hotspot {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  border: 1px solid #ffffffcc;
  background: #243949;
  color: #fff;
  box-shadow:
    0 0 0 5px #ffffff50,
    0 3px 9px #20343e20;
  font-size: 11px;
  transform: translate(-50%, -50%);
  transition: background 0.15s;
}
.hotspot:hover,
.hotspot[aria-expanded='true'] {
  background: #b6492d;
}
#detail-card {
  position: absolute;
  left: 27px;
  bottom: 145px;
  max-width: 285px;
  width: calc(100% - 54px);
  z-index: 4;
  background: #fffffff2;
  backdrop-filter: blur(12px);
  border: 1px solid #d9e1e6;
  padding: 20px 24px 21px;
  box-shadow: 0 8px 40px #1b304c10;
  border-radius: 10px;
}
#detail-card h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 11px 0;
}
#detail-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #5c6c76;
  margin: 0;
}
#close-detail {
  position: absolute;
  right: 10px;
  top: 7px;
  border: 0;
  background: none;
  font-size: 24px;
  color: #64717b;
  padding: 5px;
}
.load-card {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #e9eef1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
}
.load-card strong {
  font-weight: 500;
}
.load-card span:last-of-type {
  font-size: 13px;
  color: #697883;
}
.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid #ccd5dc;
  border-top-color: #b6492d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#retry {
  background: #263d4e;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
}
.load-card.error .spinner {
  display: none;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  main {
    grid-template-columns: minmax(0, 1fr) 400px;
  }
  .config-panel {
    padding: 45px 40px;
  }
  .stage-title {
    top: 50px;
    left: 50px;
  }
  .product-heading h2 {
    font-size: 44px;
  }
  .product-heading p {
    margin-bottom: 36px;
  }
  fieldset {
    margin-bottom: 34px;
  }
}
@media (max-width: 1000px) {
  .topbar {
    padding: 0 24px;
  }
  .stage-title {
    left: 25px;
  }
  .stage-title h1 {
    font-size: 34px;
  }
  .stage-title p {
    display: none;
  }
  .gesture-hint {
    font-size: 11px;
    padding: 9px;
  }
  .viewer-bar {
    left: 16px;
    right: 16px;
    flex-wrap: wrap;
  }
  .stage-meta {
    left: 25px;
    bottom: 110px;
  }
  main {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .config-panel {
    padding: 28px 22px;
  }
  .nav-label {
    display: none;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 65px;
    padding: 0 20px;
  }
  .wordmark {
    font-size: 16px;
    gap: 8px;
  }
  .brand-mark {
    width: 25px;
    height: 25px;
  }
  .demo-badge {
    font-size: 11px;
    padding: 7px 10px;
  }
  main {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
    min-height: 0;
  }
  .stage {
    height: 510px;
    min-height: 440px;
  }
  .stage-title {
    top: 24px;
    left: 22px;
  }
  .stage-title h1 {
    font-size: 29px;
    margin: 12px 0;
  }
  .stage-title .eyebrow {
    font-size: 10px;
  }
  .stage-meta {
    left: 22px;
    bottom: 111px;
  }
  .stage-meta span:first-child {
    font-size: 12px;
  }
  .stage-meta span:last-child {
    font-size: 10px;
  }
  .viewer-bar {
    bottom: 16px;
    gap: 11px;
    justify-content: center;
    flex-direction: column;
  }
  .gesture-hint {
    background: none;
    padding: 0;
    font-size: 12px;
  }
  .view-buttons {
    gap: 9px;
  }
  .view-buttons button {
    min-width: 44px;
    height: 44px;
  }
  .view-buttons #toggle-details {
    font-size: 13px;
  }
  .config-panel {
    overflow: visible;
    border-left: 0;
    padding: 27px 24px 20px;
  }
  .product-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin-bottom: 25px;
  }
  .product-heading .eyebrow {
    grid-column: 1;
  }
  .product-heading h2 {
    grid-column: 1;
    margin: 8px 0 0;
    font-size: 34px;
  }
  .product-heading p {
    grid-column: 2;
    grid-row: 1 / 3;
    font-size: 13px;
    margin: 0;
    justify-self: end;
  }
  .swatches {
    gap: 17px;
  }
  .material-options button {
    font-size: 14px;
    min-height: 90px;
  }
  .fabric-sample {
    height: 40px;
  }
  .selection-summary strong {
    font-size: 16px;
  }
  .concept-note {
    font-size: 12px;
  }
  legend {
    font-size: 15px;
  }
  #detail-card {
    bottom: 160px;
    left: 20px;
    width: 250px;
    padding: 17px 20px;
  }
  footer {
    padding: 15px 20px;
    height: auto;
    gap: 15px;
    font-size: 10px;
  }
  footer span:last-child {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}

/* Customer-review refinement: keep the working surface dominant. */
.stage-title h1 {
  font-size: clamp(25px, 2.6vw, 38px);
  line-height: 1.12;
  max-width: 570px;
  margin: 12px 0;
}
.stage-title .eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
}
.stage-title p {
  font-size: 14px;
}
.fabric-sample {
  background-size: 100% 100%;
  background-blend-mode: multiply;
}
#close-detail {
  width: 44px;
  height: 44px;
  right: 2px;
  top: 2px;
  padding: 0;
  border-radius: 7px;
}
#close-detail:hover {
  background: #eaf0f3;
}
#detail-card h3 {
  padding-right: 18px;
}
@media (max-width: 1000px) and (min-width: 701px) {
  .stage-title h1 {
    font-size: 26px;
  }
  .stage-title {
    top: 25px;
  }
  .stage-title .eyebrow {
    display: none;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 54px;
    padding: 0 16px;
  }
  .demo-badge {
    font-size: 12px;
  }
  main {
    display: block;
  }
  .stage {
    height: 420px;
    min-height: 0;
    position: sticky;
    top: 0;
    z-index: 3;
    overflow: visible;
    border-bottom: 1px solid #d3dce2;
  }
  .stage-title {
    top: 14px;
    left: 18px;
    right: 14px;
  }
  .stage-title .eyebrow,
  .stage-title p {
    display: none;
  }
  .stage-title h1 {
    font-size: 22px;
    line-height: 1.12;
    margin: 0;
    letter-spacing: -0.035em;
  }
  #viewport {
    height: 100%;
    overflow: hidden;
  }
  .stage-meta {
    left: 18px;
    bottom: 72px;
    gap: 4px;
  }
  .stage-meta span:last-child {
    font-size: 10px;
  }
  .viewer-bar {
    left: 14px;
    right: 14px;
    bottom: 10px;
    gap: 6px;
    flex-direction: row;
    justify-content: space-between;
  }
  .gesture-hint {
    max-width: 96px;
    font-size: 11px;
    line-height: 1.5;
  }
  .gesture-hint b {
    display: none;
  }
  .view-buttons {
    gap: 5px;
  }
  .view-buttons button {
    width: 44px;
    height: 44px;
  }
  .view-buttons #toggle-details {
    width: auto;
    padding: 0 12px;
    font-size: 13px;
  }
  .config-panel {
    padding: 16px 18px 20px;
    overflow: visible;
  }
  .product-heading {
    display: flex;
    justify-content: space-between;
    margin: 0 0 12px;
    gap: 8px;
  }
  .product-heading .eyebrow {
    font-size: 11px;
  }
  .product-heading h2 {
    font-size: 18px;
    margin: 0;
    letter-spacing: -0.035em;
  }
  .product-heading p {
    display: none;
  }
  fieldset {
    margin: 0 0 13px;
  }
  legend {
    font-size: 14px;
    margin-bottom: 6px;
  }
  legend strong {
    font-size: 12px;
  }
  .swatches {
    gap: 15px;
  }
  .swatches button {
    width: 44px;
    height: 44px;
    padding: 4px;
  }
  .swatches button i {
    width: 34px;
    height: 34px;
  }
  .material-options {
    gap: 8px;
  }
  .material-options button,
  .material-options button[aria-pressed='true'] {
    min-height: 44px;
    padding: 5px 7px;
    flex-direction: row;
    gap: 7px;
    justify-content: center;
    font-size: 13px;
  }
  .fabric-sample {
    width: 26px;
    height: 28px;
    flex-shrink: 0;
  }
  .finish-options {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .finish-options button,
  .finish-options button[aria-pressed='true'] {
    height: 44px;
    padding: 6px 9px;
    gap: 8px;
    font-size: 14px;
  }
  .finish-options i {
    width: 24px;
    height: 26px;
  }
  .selection-summary {
    padding-top: 10px;
    gap: 5px;
  }
  .selection-summary > span,
  .selection-summary small {
    display: none;
  }
  .selection-summary strong {
    font-size: 13px;
  }
  .reset-all {
    font-size: 13px;
    padding: 10px 0;
  }
  .concept-note {
    font-size: 12px;
    margin: 12px 0 0;
    color: #64717b;
  }
  #detail-card {
    position: absolute;
    top: auto;
    bottom: 66px;
    left: 12px;
    width: calc(100% - 24px);
    max-width: none;
    padding: 10px 42px 10px 13px;
    box-shadow: 0 4px 20px #1b304c15;
  }
  #detail-card .eyebrow {
    display: none;
  }
  #detail-card h3 {
    font-size: 16px;
    margin: 0 0 4px;
    line-height: 1.2;
    padding: 0;
  }
  #detail-card p {
    font-size: 12px;
    line-height: 1.4;
  }
  footer {
    font-size: 10px;
  }
}
@media (max-width: 700px) and (min-height: 650px) {
  .stage {
    height: clamp(310px, 43svh, 385px);
  }
}
@media (max-width: 700px) and (max-height: 649px) {
  .stage {
    position: relative;
    height: 380px;
  }
}
@media (max-width: 700px) {
  .stage:has(#detail-card:not([hidden])) {
    height: calc(420px + 100px);
    padding-bottom: 100px;
  }
  .stage:has(#detail-card:not([hidden])) .viewer-bar {
    bottom: 110px;
  }
  .stage:has(#detail-card:not([hidden])) .stage-meta {
    bottom: 172px;
  }
  #detail-card {
    bottom: 8px;
    min-height: 82px;
  }
  .config-panel button {
    scroll-margin-top: calc(43svh + 16px);
    scroll-margin-bottom: 14px;
  }
}
@media (max-width: 700px) and (min-height: 650px) {
  .stage:has(#detail-card:not([hidden])) {
    height: calc(clamp(310px, 43svh, 385px) + 100px);
  }
}
@media (max-width: 700px) and (max-height: 649px) {
  .stage:has(#detail-card:not([hidden])) {
    height: 480px;
  }
}

/* Same-origin website embed: the parent supplies ORBYTEON navigation. */
/* Keep the original interface, with readable small labels in the public embed. */
legend > span,
legend strong,
.stage-meta span:last-child,
.selection-summary > span,
.selection-summary small,
footer {
  color: #5d6a73;
}
main {
  height: calc(100svh - 44px);
  min-height: 650px;
}
footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.concept-note {
  color: #64717b;
}
@media (max-width: 700px) {
  main {
    height: auto;
    min-height: 0;
  }
  footer {
    flex-wrap: wrap;
    gap: 4px;
  }
}
