.mlab {
  --mlab-ink: #f8f8fa;
  --mlab-muted: #aeb8c8;
  --mlab-line: rgba(186, 201, 221, .21);
  --mlab-accent: #ff9b61;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--mlab-ink);
  background: radial-gradient(ellipse at 53% 41%, #243652 0, #17253d 21%, #101c2e 47%, #0d1726 78%);
}
.mlab[data-finish="rose"] { --mlab-accent: #e8b29c; }
.mlab[data-finish="steel"] { --mlab-accent: #a8d1e9; }
.mlab::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .38;
  background: linear-gradient(111deg, transparent 14%, rgba(161, 182, 211, .06) 31%, transparent 45%);
}
.mlab-shell { max-width: 1530px; min-height: 465px; padding: clamp(36px, 5.1vw, 84px) clamp(24px, 5.2vw, 91px); margin: auto; display: grid; grid-template-columns: minmax(175px, .92fr) minmax(260px, 1.85fr) minmax(185px, .93fr); align-items: center; gap: clamp(10px, 2vw, 30px); }
.mlab-intro, .mlab-config { position: relative; z-index: 1; }
.mlab-intro h2 { margin: 0; color: var(--mlab-ink); font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif; font-weight: 540; font-size: clamp(3.1rem, 5.8vw, 6.35rem); line-height: .94; letter-spacing: -.079em; }
.mlab-intro h2 i { font-family: 'Iowan Old Style', 'Palatino Linotype', 'Palatino', 'Times New Roman', serif; font-weight: 400; font-style: italic; letter-spacing: -.07em; }
.mlab-intro h2 span { color: var(--mlab-accent); }
.mlab-intro p { margin: clamp(14px, 2vw, 28px) 0 0; color: #c1cbd8; font-size: clamp(.94rem, 1.1vw, 1.1rem); line-height: 1.7; }
.mlab-display { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.mlab-theatre { position: relative; align-self: stretch; min-width: 0; height: clamp(300px, 31vw, 530px); }
.mlab-orbit { position: absolute; inset: 8% -1% 8%; pointer-events: none; border-radius: 50%; background: radial-gradient(ellipse, #304e76 0%, #28436566 35%, transparent 70%); }
.mlab-orbit::before, .mlab-orbit::after { content: ''; pointer-events: none; position: absolute; border-radius: 50%; }
.mlab-orbit::before { inset: 16% 1% 16%; transform: rotate(-24deg) scaleY(.54); border: 1px solid rgba(192, 206, 229, .17); }
.mlab-orbit::after { inset: 5% 9%; transform: rotate(28deg) scaleX(.52); border: 1px solid rgba(170, 195, 226, .09); }
.mlab-model { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; display: block; border-radius: 12px; }
.mlab-rotate { display: inline-flex; position: absolute; right: 8px; bottom: 7px; gap: 5px; align-items: center; pointer-events: none; color: #a9b5c8; font-size: .78rem; }
.mlab-rotate svg { width: 17px; height: 17px; }
.mlab-views { margin-top: 15px; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--mlab-line); border-radius: 28px; background: rgba(6,15,27,.38); }
.mlab button { cursor: pointer; font-family: inherit; }
.mlab .mlab-views button { min-height: 34px; padding: 3px clamp(9px, 1.22vw, 18px); font-size: .88rem; font-weight: 450; border-radius: 22px; border: 0; color: #c0cad6; background: transparent; white-space: nowrap; }
.mlab .mlab-views button:hover { color: white; }
.mlab .mlab-views button[aria-pressed="true"] { color: #1b2432; background: #e6e9ec; }
.mlab-config { min-width: 0; }
.mlab-finishes { padding: 0; margin: 0; min-width: 0; border: 0; }
.mlab-finishes legend, .mlab-range-label label { padding: 0; color: var(--mlab-ink); font-size: .97rem; font-weight: 550; }
.mlab-choices { margin-top: 8px; }
.mlab .mlab-choices button { display: flex; align-items: center; gap: 10px; min-height: 55px; width: 100%; padding: 9px 0; border: 0; border-bottom: 1px solid var(--mlab-line); background: transparent; color: var(--mlab-ink); text-align: left; }
.mlab .mlab-choices button:hover .mlab-pair b { color: var(--mlab-accent); }
.mlab .mlab-choices button[aria-pressed="true"] .mlab-check { background: var(--mlab-accent); border-color: var(--mlab-accent); }
.mlab .mlab-choices button[aria-pressed="true"] .mlab-check::before { content: ''; position: absolute; left: 4px; top: 2px; width: 4px; height: 7px; border-right: 1.8px solid #182337; border-bottom: 1.8px solid #182337; transform: rotate(42deg); }
.mlab-sample { width: 31px; height: 34px; flex: none; border-radius: 7px; border: 1px solid rgba(255,255,255,.19); box-shadow: inset 0 0 5px rgba(255,255,255,.12); }
.mlab-sample-carbon { background: linear-gradient(153deg, transparent 48%, #414345 49% 51%, #f6793c 51% 100%), repeating-linear-gradient(145deg,#252a31 0 3px,#444851 3px 5px,#35353b 6px 10px); }
.mlab-sample-steel { background: linear-gradient(153deg, transparent 48%, #e2e4e2 49% 51%, #8faabe 51% 100%), repeating-linear-gradient(-35deg,#8c9a9f 0 1px,#cad1d2 1px 1.7px,#b1bbbd 2px 3px); }
.mlab-sample-rose { background: linear-gradient(153deg, transparent 48%, #f5c5ab 49% 51%, #1c304d 51% 100%), linear-gradient(117deg,#a66c53,#ebbaa3 45%,#b07864 69%,#e8ac93); }
.mlab-pair { display: flex; min-width: 0; flex-direction: column; line-height: 1.2; }
.mlab-pair b { font: 550 1rem/1.2 -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif; letter-spacing: -.026em; }
.mlab-pair small { color: #aeb9c9; font-size: .79rem; line-height: 1.4; margin-top: 1px; }
.mlab-check { position: relative; width: 14px; height: 14px; margin-left: auto; flex: none; border: 1px solid #788494; border-radius: 50%; }
.mlab-slider { margin: 20px 0 18px; }
.mlab-range-label { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.mlab-range-label output { color: #c7d1df; font-size: .8rem; font-variant-numeric: tabular-nums; }
.mlab-slider input { --mlab-spread: 0%; appearance: none; -webkit-appearance: none; cursor: pointer; display: block; width: 100%; height: 28px; margin: 1px 0 0; padding: 0; background: transparent; }
.mlab-slider input::-webkit-slider-runnable-track { height: 3px; border-radius: 4px; background: linear-gradient(to right,var(--mlab-accent) 0 var(--mlab-spread), #546074 var(--mlab-spread) 100%); }
.mlab-slider input::-moz-range-track { height: 3px; border-radius: 4px; background: #546074; }
.mlab-slider input::-moz-range-progress { height: 3px; border-radius: 4px; background: var(--mlab-accent); }
.mlab-slider input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 15px; height: 15px; margin-top: -6px; border: 0; border-radius: 50%; background: var(--mlab-accent); }
.mlab-slider input::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: var(--mlab-accent); }
.mlab .mlab-custom { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 43px; padding: 8px 12px; border: 0; border-radius: 30px; font-size: .94rem; font-weight: 550; color: #131e30; background: #eff1f4; }
.mlab .mlab-custom:hover { background: var(--mlab-accent); }
.mlab :focus-visible { outline: 2px solid var(--mlab-accent); outline-offset: 3px; }
@media (max-width: 920px) and (min-width: 701px) {
  .mlab-shell { grid-template-columns: minmax(150px, .8fr) minmax(230px, 1.6fr) minmax(172px, .9fr); padding-inline: 4.6vw; gap: 8px; }
  .mlab-intro h2 { font-size: 3.3rem; }
  .mlab-intro p { font-size: .9rem; }
  .mlab-sample { width: 25px; height: 30px; }
  .mlab .mlab-choices button { gap: 7px; }
  .mlab-pair small { font-size: .76rem; }
}
@media (max-width: 700px) {
  .mlab { background: radial-gradient(ellipse at 54% 38%, #243652, #142239 46%, #0d1726 83%); }
  .mlab-shell { display: grid; grid-template-columns: minmax(0, 1fr); padding: 30px clamp(16px, 6vw, 35px) 32px; gap: 15px; }
  .mlab-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }
  .mlab-intro h2 { font-size: clamp(2.6rem, 9vw, 3.75rem); }
  .mlab-intro p { margin: 0 0 2px; color: #c1cbd8; font-size: .9rem; line-height: 1.55; }
  .mlab-theatre { height: clamp(240px, 68vw, 360px); max-width: 475px; margin: 0 auto; width: 100%; }
  .mlab-rotate { right: 3%; bottom: 0; }
  .mlab-views { margin-top: 12px; }
  .mlab .mlab-views button { min-height: 35px; padding-inline: 16px; }
  .mlab-config { margin-top: 8px; }
  .mlab-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .mlab .mlab-choices button { display: grid; grid-template-columns: 22px 1fr; align-content: start; align-items: center; gap: 6px; padding: 8px; min-height: 82px; border: 1px solid var(--mlab-line); border-radius: 9px; }
  .mlab .mlab-choices button[aria-pressed="true"] { border-color: var(--mlab-accent); background: rgba(211,224,243,.055); }
  .mlab-sample { grid-column: 1; grid-row: 1; width: 22px; height: 19px; border-radius: 4px; }
  .mlab-check { width: 12px; height: 12px; grid-column: 2; grid-row: 1; }
  .mlab .mlab-choices button[aria-pressed="true"] .mlab-check::before { top: 1px; left: 3px; }
  .mlab-pair { grid-column: 1/-1; }
  .mlab-pair b { font-size: clamp(.8rem, 3.7vw, .95rem); }
  .mlab-pair small { font-size: .75rem; }
  .mlab-slider { margin: 17px 0 12px; }
}
@media (max-width: 360px) {
  .mlab-intro { align-items: flex-start; flex-direction: column; gap: 9px; }
  .mlab-intro h2 br, .mlab-intro p br { display: none; }
  .mlab-intro h2 i { margin-left: .14em; }
  .mlab-pair small { font-size: .73rem; }
}
