@font-face {
  font-family: Sora;
  src: url("./fonts/sora.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --page: #101315;
  --panel: #181d20;
  --raised: #21272a;
  --hover: #2c3335;
  --line: #384044;
  --border-soft: #2d3437;
  --ink: #f4f3ee;
  --minor: #b9c3c6;
  --muted: #a7b1b5;
  --orange: #ff894e;
  --highlight: #ffa571;
  --round: 14px;
  font: 16px/1.45 "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--page);
  scrollbar-color: #4e585a var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, select, input { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
button, select, input, a { touch-action: manipulation; }
button:disabled, select:disabled { opacity: .48; cursor: default; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, canvas:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
}
button svg, i svg { width: 19px; height: 19px; display: block; }
i[data-icon] { display: inline-flex; align-items: center; justify-content: center; font-style: normal; flex: none; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: Sora, sans-serif; }
[hidden], .mobile-edit { display: none !important; }
::selection { color: #141616; background: #ffac7f; }

.mast { background: #111517; border-bottom: 1px solid var(--border-soft); }
.mast-inner, main { max-width: 1552px; margin: auto; padding-inline: clamp(20px, 4.45vw, 78px); }
.mast-inner { min-height: 68px; display: flex; align-items: center; gap: 24px; }
.wordmark {
  display: flex; align-items: center; text-decoration: none; white-space: nowrap;
  color: var(--ink); font: italic 870 24px/1 Sora, sans-serif; letter-spacing: -.045em;
}
.wordmark img { width: 35px; height: 35px; margin-right: 7px; }
.wordmark span { color: var(--orange); }
.nav-divider { height: 23px; width: 1px; background: var(--line); }
.product-link, .nav-active, .reference-link, .share { font-size: 14px; font-weight: 640; }
.product-link { color: var(--minor); text-decoration: none; padding-block: 12px; }
.product-link:hover { color: white; }
.nav-active { display: flex; align-self: stretch; align-items: center; position: relative; }
.nav-active::after { content: ""; position: absolute; height: 2px; inset: auto 0 -1px; background: var(--orange); }
.mast nav, .reference-link, .share, .edition-switch, .edition-switch button, .view-control,
.viewport-tools, .gesture, .download, .section-heading, .text-button, .dialog-actions,
.close, .share-url { display: flex; align-items: center; }
.mast nav { margin-left: auto; gap: 21px; }
.reference-link, .share { gap: 8px; min-height: 40px; }
.reference-link { color: var(--minor); padding: 0 4px; }
.reference-link:hover { color: white; }
.share { color: var(--ink); background: var(--raised); border: 1px solid #485153; border-radius: 8px; padding-inline: 14px; }
.share:hover { background: var(--hover); border-color: #657074; }
.mast button svg { width: 16px; height: 16px; }

main { padding-bottom: clamp(28px, 4vw, 70px); }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: clamp(25px, 3.7vh, 46px) 0 24px; }
h1 { font-size: clamp(39px, 4.15vw, 66px); font-weight: 660; line-height: 1.08; letter-spacing: -.04em; }
.heading-accent { color: var(--orange); }
.intro p { color: var(--minor); margin-top: 6px; font-size: clamp(15px, 1.17vw, 18px); }
.edition-switch { gap: 4px; padding: 4px; border: 1px solid var(--line); background: #181c1e; border-radius: 10px; }
.edition-switch button { border: 1px solid transparent; padding: 10px 16px; border-radius: 6px; color: var(--minor); gap: 9px; line-height: 1.35; white-space: nowrap; font-size: 14px; font-weight: 700; }
.edition-switch button:hover { background: #242b2d; color: var(--ink); }
.edition-switch button[aria-pressed=true] { background: #353b3d; border-color: #576165; color: white; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.swatch.infantil { background: #ffb52c; }
.swatch.pro { border: 1px solid #9ca6a9; background: #4c5357; }

.workbench { display: grid; grid-template-columns: minmax(0, 2.14fr) minmax(304px, .92fr); gap: 18px; align-items: stretch; }
.model-card, .inspector { min-width: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--round); }
.model-card, .inspector { display: flex; flex-direction: column; }
.stage {
  position: relative; isolation: isolate; overflow: hidden; flex: 1;
  min-height: clamp(390px, 54vh, 660px); background: #343e41;
}
.backdrop { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 49% 50%, #596365 0%, #474f51 31%, #343c3f 65%, #282f32 100%); }
.stage[data-edition=pro] .backdrop { background: radial-gradient(ellipse at 48% 50%, #707b7d 0%, #596568 36%, #3a4448 71%, #2d3539 100%); }
.poster, #surface { position: absolute; width: 100%; height: 100%; inset: 0; }
.poster { object-fit: contain; padding: 8% 9%; }
#surface { display: block; touch-action: none; outline-offset: -5px; cursor: grab; }
#surface:active { cursor: grabbing; }
.stage-top, .stage-bottom { position: absolute; left: 17px; right: 17px; display: flex; justify-content: space-between; align-items: center; gap: 7px; pointer-events: none; }
.stage-top { top: 16px; }
.stage-bottom { bottom: 15px; }
.stage-top > *, .stage-bottom > * { pointer-events: auto; }
.view-control, .stage-square, .viewport-tools { color: #eef1ee; border: 1px solid #5c686b; background: #20282b; }
.view-control { height: 37px; position: relative; gap: 7px; border-radius: 7px; padding-inline: 11px; }
.view-control i:first-child svg { color: #bec9ca; width: 15px; height: 15px; }
.view-control i:last-child { position: absolute; right: 9px; pointer-events: none; }
.view-control i:last-child svg { width: 13px; height: 13px; }
.view-control select { appearance: none; border: none; background: transparent; cursor: pointer; padding: 5px 18px 5px 0; font-size: 13px; font-weight: 620; }
.view-control option { color: var(--ink); background: var(--panel); }
.stage-square { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 7px; }
.viewport-tools { padding: 3px; gap: 1px; border-radius: 8px; }
.viewport-tools button { display: grid; place-items: center; border-radius: 4px; width: 36px; height: 32px; }
.viewport-tools button[aria-pressed=true] { background: var(--orange); color: #24190f; }
.stage-square:hover, .viewport-tools button:hover { background: #404a4e; }
.viewport-tools > span { height: 15px; width: 1px; background: #4d595c; margin-inline: 2px; }
.viewport-tools svg { width: 16px; height: 16px; }
.gesture { gap: 7px; font-size: 13px; font-weight: 570; color: #e4e9e9; }
.gesture svg { width: 18px; height: 18px; }
.render-status { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 90%; border-radius: 5px; background: #1b2225; color: var(--ink); padding: 6px 10px; text-align: center; font-size: 13px; }
.render-status:empty { display: none; }
.stage:fullscreen, .stage.immersive { flex: none; width: 100%; height: 100%; max-height: none; min-height: 0; }
.stage.immersive { position: fixed; inset: 0; z-index: 20; }

.model-caption { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 21px 24px 23px; border-top: 1px solid var(--line); }
.caption-text { min-width: 0; }
.caption-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 13px; }
.caption-heading h2 { font-size: clamp(22px, 2.05vw, 32px); font-weight: 620; line-height: 1.17; letter-spacing: -.035em; }
.edition-line { padding-left: 12px; border-left: 1px solid #6b7375; color: #c7cfd0; font-size: 12px; font-weight: 570; white-space: nowrap; }
.caption-text p { color: var(--minor); margin-top: 6px; font-size: 14px; }
.download, .primary { border-radius: 7px; color: #221911; background: var(--orange); font-weight: 730; }
.download { flex-shrink: 0; padding: 11px 14px; gap: 8px; white-space: nowrap; font-size: 14px; }
.download:hover, .primary:hover { background: var(--highlight); }
.download svg { width: 17px; height: 17px; }
.download small { margin-left: 5px; padding-left: 7px; border-left: 1px solid #ad5b33; font-size: 11px; font-weight: 670; }

.inventory { flex: 1; padding: 20px 17px 14px; }
.section-heading { justify-content: space-between; gap: 8px; min-height: 32px; }
.inventory .section-heading { margin: 0 3px 13px; }
.section-heading h2 { display: flex; align-items: center; gap: 7px; font-size: clamp(19px, 1.46vw, 23px); letter-spacing: -.035em; font-weight: 620; }
.text-button { gap: 6px; padding: 5px 6px; min-height: 33px; font-size: 13px; border-radius: 5px; color: var(--highlight); font-weight: 670; }
.text-button svg { width: 15px; height: 15px; }
.text-button:hover { color: #ffb98f; background: #332a25; }
#whole { padding: 6px 9px; background: #272e30; border: 1px solid #414b4d; color: #edf0ec; }
#whole:hover, #whole[aria-pressed=true] { color: var(--highlight); border-color: #865b41; background: #352c27; }
.component-list { display: grid; gap: 5px; }
.part { display: flex; align-items: center; width: 100%; gap: 13px; padding: 6px 10px 6px 6px; min-height: 61px; text-align: left; border-radius: 8px; border: 1px solid transparent; }
.part:hover { background: #242b2d; }
.part[aria-pressed=true] { background: #302922; border-color: #8f684c; }
.part-thumb { display: grid; place-items: center; width: 60px; height: 45px; flex: 0 0 60px; border-radius: 5px; overflow: hidden; background: #485053; }
.part[aria-pressed=true] .part-thumb { background: #584a3a; }
.part-thumb img { width: 100%; height: 100%; object-fit: contain; }
.part-copy { flex: 1; min-width: 0; }
.part strong, .part small { display: block; }
.part strong { font-size: 16px; font-weight: 680; line-height: 1.36; }
.part small { font-size: 13px; line-height: 1.36; margin-top: 2px; color: var(--minor); }
.choice { display: grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #687376; }
.part[aria-pressed=true] .choice { border-color: var(--orange); background: var(--orange); }
.part[aria-pressed=true] .choice::after { content: ""; width: 6px; height: 3px; border: solid #201811; border-width: 0 0 1.8px 1.8px; transform: translateY(-1px) rotate(-45deg); }
.measurements { padding: 14px 20px 18px; background: #1c2225; border-top: 1px solid var(--line); }
.measurements .section-heading h2 { font-size: 17px; }
.measurements h2 svg { width: 17px; height: 17px; color: #c9d0d0; }
.dimension-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 12px; }
.dimension-values > div + div { border-left: 1px solid #3a4245; padding-left: 11px; }
.dimension-values span, .dimension-values strong { display: block; }
.dimension-values span { color: var(--minor); font-size: 12px; line-height: 1.4; }
.dimension-values strong { color: var(--ink); margin-top: 3px; font-size: clamp(17px, 1.44vw, 22px); line-height: 1.2; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.025em; overflow-wrap: anywhere; }
.dimension-values small { color: var(--muted); font-size: 12px; font-weight: 540; }
.dimension-note { margin-top: 12px; color: var(--muted); font-size: 12px; }

dialog { width: min(470px, calc(100% - 28px)); max-height: 90dvh; overflow: auto; padding: 25px; border: 1px solid #50595c; border-radius: var(--round); color: var(--ink); background: var(--panel); }
dialog::backdrop { background: #06090bd9; }
.dialog-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.dialog-title h2 { font-size: 23px; font-weight: 640; letter-spacing: -.035em; }
.close { flex-shrink: 0; width: 38px; height: 38px; justify-content: center; color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 6px; }
.close:hover { background: var(--hover); }
dialog p { font-size: 15px; color: var(--minor); }
.measure-fields { display: grid; gap: 12px; margin: 20px 0 15px; }
.measure-fields label { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; align-items: center; font-size: 15px; font-weight: 640; }
.measure-fields label span, .share-url input { border: 1px solid #535e62; background: #111719; border-radius: 6px; }
.measure-fields label span { display: flex; align-items: center; padding: 9px 11px; }
.measure-fields label span:focus-within { border-color: var(--highlight); }
.measure-fields input { width: 100%; min-width: 0; background: none; border: 0; outline-offset: 1px; font-variant-numeric: tabular-nums; }
.measure-fields em { font-style: normal; color: var(--minor); font-size: 13px; font-weight: 500; }
.dialog-actions { justify-content: space-between; gap: 12px; margin-top: 22px; }
.primary { padding: 11px 14px; font-size: 14px; }
.plain { padding: 8px 0; color: var(--minor); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.form-status { font-size: 13px; color: var(--highlight); overflow-wrap: anywhere; }
.form-status:not(:empty) { margin-top: 12px; }
.muted { color: var(--muted); font-size: 13px; }
.image-dialog { width: min(1050px,95vw); padding: 18px; }
.image-dialog img { display: block; width: 100%; height: auto; border-radius: 5px; }
.share-url { gap: 8px; margin-top: 15px; }
.share-url input { padding: 10px; min-width: 0; width: 100%; font-size: 14px; }
#toast { position: fixed; z-index: 21; left: 50%; bottom: 20px; width: max-content; max-width: 94vw; transform: translateX(-50%); border-radius: 7px; padding: 10px 15px; font-size: 14px; text-align: center; background: #f4f1e8; color: #171b1c; }
#toast:empty { display: none; }

@media (min-width: 1500px) {
  .stage { min-height: clamp(520px, 54vh, 670px); }
  .part { min-height: 68px; }
  .part-thumb { width: 67px; height: 50px; flex-basis: 67px; }
}
@media (max-width: 1040px) {
  .mast-inner, main { padding-inline: 23px; }
  .workbench { grid-template-columns: minmax(0,1.7fr) minmax(285px,1fr); gap: 13px; }
  .inventory { padding: 15px 10px 11px; }
  .measurements { padding: 12px 14px 15px; }
  .model-caption { padding: 17px; gap: 12px; }
  .download { padding: 10px; }
  .part { gap: 9px; }
  .part-thumb { width: 50px; flex-basis: 50px; }
  .caption-heading { column-gap: 8px; }
  .edition-line { padding-left: 8px; }
}
@media (max-width: 760px) {
  .mast-inner, main { padding-inline: 15px; }
  .mast-inner { min-height: 59px; gap: 12px; }
  .wordmark { font-size: 21px; }
  .wordmark img { width: 30px; height: 30px; margin-right: 4px; }
  .nav-divider, .nav-active, .product-link, .reference-link span { display: none; }
  .mast nav { gap: 6px; }
  .reference-link { justify-content: center; width: 42px; min-height: 44px; }
  .share { padding-inline: 10px; font-size: 13px; }
  .intro { display: block; padding: 23px 0 15px; }
  h1 { font-size: clamp(39px,8vw,50px); }
  .intro p { font-size: 15px; margin-top: 4px; }
  .edition-switch { display: inline-flex; margin-top: 15px; }
  .edition-switch button { font-size: 14px; padding: 8px 15px; }
  .workbench { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .stage { min-height: 0; flex: none; height: clamp(318px,83vw,460px); scroll-margin-top: 8px; }
  .stage-top, .stage-bottom { left: 10px; right: 10px; gap: 3px; }
  .stage-top { top: 10px; }
  .stage-bottom { bottom: 10px; }
  .stage-square, .view-control { height: 42px; }
  .stage-square { width: 42px; }
  .stage:fullscreen, .stage.immersive { height: 100dvh; }
  .viewport-tools button { width: 41px; height: 41px; }
  .gesture { gap: 5px; font-size: 11px; }
  .model-caption { align-items: start; padding: 15px; gap: 6px; }
  .caption-heading { display: block; }
  .caption-heading h2 { font-size: 22px; }
  .edition-line { display: none; }
  .caption-text p { font-size: 13px; margin-top: 4px; }
  .download { padding: 9px; font-size: 13px; gap: 5px; }
  .download small { display: none; }
  .mobile-edit:not([hidden]) { display: inline-flex !important; margin-top: 3px; padding-inline: 0; }
  .inventory { padding: 14px 11px 12px; }
  .inventory .section-heading { margin: 0 4px 10px; }
  .part { gap: 12px; min-height: 58px; }
  .part-thumb { width: 60px; flex-basis: 60px; }
  .measurements { padding: 13px 16px 16px; }
  .dimension-values { max-width: 460px; }
  .dimension-values strong { font-size: 19px; }
}
@media (max-width: 365px) {
  .mast-inner, main { padding-inline: 10px; }
  .model-caption { padding: 13px; }
  .gesture span { display: none; }
  .wordmark { font-size: 19px; }
  .download { padding: 8px; }
  dialog { padding: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  button, a, .part-thumb { transition: color .15s, border-color .15s, background-color .15s; }
}
