:root {
  color-scheme: light;
  --ink: #19262d;
  --secondary: #53636a;
  --white: #f8f9f7;
  --line: #d5dedf;
  --blue: #255767;
  --yellow: #c69239;
  font-family: "Instrument Sans", "Microsoft YaHei UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, select { font: inherit; color: inherit; }
button, select {
  cursor: pointer;
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 5px;
  padding: 8px 13px;
}
button:hover:not(:disabled), select:hover { border-color: var(--blue); }
:focus-visible { outline: 3px solid #3e869e; outline-offset: 3px; }
[hidden] { display: none !important; }
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
}
h1 { margin: 0; font-size: clamp(1.2rem,4vw,1.6rem); letter-spacing: -.04em; line-height: 1.15; }
h1 span { font-size: .82em; font-weight: 540; letter-spacing: 0; }
h1 .product-length { font-size: inherit; font-weight: inherit; letter-spacing: inherit; white-space: nowrap; }
.mast-actions { display: flex; gap: 8px; align-items: center; }
.review { display: grid; grid-template-columns: minmax(0,1fr) minmax(275px,330px); min-height: calc(100dvh - 75px); }
.viewer {
  position: relative;
  isolation: isolate;
  min-height: 450px;
  height: 100%;
  overflow: hidden;
  background: #dce5e7;
}
.viewer:focus-visible { outline-offset: -4px; }
.canvas, .canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.canvas canvas { display: block; touch-action: none; cursor: grab; }
.canvas canvas:active { cursor: grabbing; }
.view-label, .gesture {
  position: absolute;
  pointer-events: none;
  background: #f8f9f7e8;
  border: 1px solid #ffffff9c;
  border-radius: 5px;
  padding: 7px 11px;
  margin: 0;
}
.view-label { top: 18px; left: 18px; font-size: .9rem; font-weight: 650; }
.gesture { bottom: 16px; left: 18px; font-size: .76rem; color: #304650; max-width: calc(100% - 36px); }
.camera-actions { position: absolute; right: 18px; bottom: 15px; display: flex; gap: 5px; }
.walk-actions { display: flex; gap: 5px; }
.camera-actions button { background: #f8f9f7ef; font-size: .84rem; }
.service-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin:10px 0; }
.service-actions button { padding-inline:7px; font-size:.83rem; }
.service-actions button[aria-pressed="true"], .model-hotspot[aria-pressed="true"] { background:var(--blue); color:white; }
.model-hotspot { position:absolute; z-index:2; transform:translate(-50%,-110%); background:#f8f9f7f5;
  box-shadow:0 2px 8px #14252c32; border-color:#748f98; font-size:.85rem; font-weight:650; white-space:nowrap; }
#plan-dimensions { position:absolute; inset:0; pointer-events:none; }
.dimension-mark { position:absolute; height:2px; background:#1f5264; transform-origin:0 50%; color:#183e4c; }
.dimension-mark::before,.dimension-mark::after { content:""; position:absolute; width:8px; height:8px; top:-3px; background:currentColor; }
.dimension-mark::before { left:0; clip-path:polygon(0 50%,100% 0,100% 100%); }
.dimension-mark::after { right:0; clip-path:polygon(100% 50%,0 0,0 100%); }
.dimension-mark span { position:absolute; inset-inline-start:50%; top:50%; transform:translate(-50%,-50%);
  white-space:nowrap; background:#f8f9f7; border:1px solid #92aab0; padding:3px 8px; border-radius:4px;
  font-weight:730; font-size:.85rem; }
#plan-length span { top: 7px; transform: translate(-50%,0); }
#plan-width span { top: -6px; transform: translate(-50%,-100%); }
.separate-motion { width:100%; margin-top:5px; }
.notice { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--white); padding: 12px 16px; }
.details { padding: 24px 20px; border-left: 1px solid var(--line); }
.other-sizes { min-width: 0; margin-bottom: 12px; }
.other-sizes-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 5px;
  color: var(--blue); font-size: .86rem; font-weight: 650; list-style: none; cursor: pointer;
}
.other-sizes-toggle::-webkit-details-marker { display: none; }
.other-sizes-toggle:hover, .other-sizes[open] .other-sizes-toggle { border-color: #8ba8ac; background: #eaf2f2; }
.other-sizes-toggle::after {
  content: ""; flex: none; width: 7px; height: 7px; margin-inline-end: 3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg);
}
.other-sizes[open] .other-sizes-toggle::after { transform: translateY(2px) rotate(225deg); }
.length-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; direction: ltr; margin-top: 6px; }
.length-choices button { min-height: 44px; padding-inline: 5px; font-weight: 680; font-variant-numeric: tabular-nums; }
.size-note { margin: 6px 0 0; color: var(--secondary); font-size: .78rem; }
.return-primary { color: var(--blue); font-size: .85rem; font-weight: 650; margin-bottom: 9px; }
.return-primary::before { content: "←"; margin-inline-end: .5em; }
[dir="rtl"] .return-primary::before { content: "→"; }
.views, .view-tools { display: grid; gap: 5px; }
.views { grid-template-columns: repeat(3,minmax(0,1fr)); }
.view-tools { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 5px; }
.views button, .view-tools button { text-wrap: balance; padding-inline: 5px; font-size: .84rem; }
button[aria-pressed="true"] { background: var(--blue); color: white; border-color: var(--blue); }
.configuration { margin-top: 22px; }
h2 { margin: 0; font-size: 1.12rem; letter-spacing: -.015em; }
.configuration p, dialog p { color: var(--secondary); font-size: .88rem; line-height: 1.65; }
.specs { margin: 20px 0 16px; }
.specs div { border-top: 1px solid var(--line); padding: 10px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.specs dt { color: var(--secondary); font-size: .82rem; }
.specs dd { margin: 0; text-align: right; font-size: .88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.corners {
  width: 100%; min-height: 49px; margin-top: 9px; display: grid;
  grid-template-columns: 20px minmax(0,1fr) 17px; gap: 9px; align-items: center;
  border-color: #b77918; border-inline-start-width: 4px; background: #ffdf90;
  color: #392401; text-align: start; font-size: .86rem; font-weight: 720;
}
.corners:hover:not(:disabled) { background: #ffd47a; border-color: #8a5308; }
.corners[aria-pressed="true"] { background: #8a5308; border-color: #8a5308; color: white; }
.corners[aria-pressed="true"]:hover { background: #714306; }
.end-frame-icon {
  width: 18px; height: 18px; border: 2px solid currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 32%, 66% 32%, 66% 68%, 100% 68%, 100% 100%, 0 100%, 0 68%, 34% 68%, 34% 32%, 0 32%);
}
.view-arrow { font-size: 1.1rem; text-align: center; }
[dir="rtl"] .view-arrow { transform: scaleX(-1); }
.motion { margin:19px 0 12px; padding-top:12px; border-top:1px solid var(--line); }
.motion label { font-weight:650; font-size:.91rem; }
.motion-buttons,.options-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin:8px 0; }
.motion button,.options-grid button,.options-grid select { font-size:.8rem; padding-inline:7px; }
.motion input { width:100%; min-height:32px; margin:0; accent-color:var(--blue); }
.motion output,.media-status { color:var(--secondary); font-size:.77rem; }
.media-status:empty { display:none; }
.options-toggle {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:54px;
  padding:10px 12px;
  border:1px solid var(--blue);
  border-radius:5px;
  background:var(--blue);
  color:white;
  cursor:pointer;
  font-size:.91rem;
  font-weight:650;
  line-height:1.35;
  list-style:none;
}
.options-toggle::-webkit-details-marker { display:none; }
.options-toggle:hover { background:#194451; }
.options[open] .options-toggle { background:#e9f1f2; color:var(--blue); }
.options[open] .options-toggle:hover { background:#dce9eb; }
.options-toggle-action {
  display:flex;
  flex:none;
  align-items:center;
  gap:9px;
  padding:4px 8px;
  border:1px solid currentColor;
  border-radius:4px;
  font-size:.78rem;
  white-space:nowrap;
}
.options-toggle-action::after {
  content:"";
  width:7px;
  height:7px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-2px) rotate(45deg);
}
.options[open] .options-toggle-action::after { transform:translateY(2px) rotate(225deg); }
.options-collapse,.options[open] .options-expand { display:none; }
.options[open] .options-collapse { display:inline; }
.options-grid label { align-self:center; font-size:.82rem; color:var(--secondary); }
.compare-dialog { width:min(920px,94vw); }
.compare-length { display: block; margin-top: 4px; color: var(--secondary); font-size: .9rem; font-weight: 650; }
.comparison-controls { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.comparison-controls .other-sizes { width: min(230px,100%); margin: 0; }
.comparison-controls .return-primary { min-height: 44px; margin: 0; }
.comparison { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.comparison figure { margin:0; }
.comparison img { display:block; width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:4px; background:#dce5e7; }
.comparison figcaption { padding-top:6px; font-size:.9rem; font-weight:650; }
.comparison-measure { display:block; margin-top:3px; color:var(--secondary); font-size:.82rem; font-weight:450; }
.viewer:fullscreen { height:100%; }
.viewer.immersive-fullscreen { position:fixed; inset:0; width:100%; height:100dvh; z-index:5; }
@media (min-width:761px) {
  .viewer { position:sticky; top:0; height:calc(100dvh - 75px); }
}
dialog { border: 1px solid var(--line); border-radius: 9px; width: min(440px,94vw); padding: 15px; color: var(--ink); background: var(--white); }
dialog::backdrop { background: #0a171ddb; }
.dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
video { display: block; width: 100%; height: min(61dvh,600px); background: #19262d; border-radius: 5px; }
dialog p { margin: 9px 0 0; }
@media (max-width: 1080px) {
  .gesture { bottom: 64px; }
}
@media (max-width: 760px) {
  .masthead { padding: 10px 12px; }
  .mast-actions { gap: 5px; }
  .mast-actions button, .mast-actions select { padding-inline: 7px; font-size: .78rem; }
  .review { display: flex; flex-direction: column; min-height: 0; }
  .viewer { height: clamp(280px,54dvh,550px); min-height: 0; }
  .view-label { top: 11px; left: 11px; }
  .gesture { bottom: 62px; left: 11px; font-size: .74rem; }
  .camera-actions { bottom: 10px; right: 11px; }
  .camera-actions { left:11px; justify-content:flex-end; flex-wrap:wrap; }
  .camera-actions button { padding-inline: 9px; }
  .details { padding: 11px 14px 14px; border: 0; }
  .configuration { margin-top: 19px; }
  .comparison { grid-template-columns:1fr; }
}
/* Consistent compact on-model inspection controls. */
.model-hotspot { width:max-content; font-size:11px; line-height:1.25; min-height:30px; padding:6px 9px; max-width:185px; white-space:normal; border-radius:7px; }
#interior-inspection #outlet-note { grid-column:1 / -1; font-size:.8rem; line-height:1.5; }
@media(max-width:600px){.model-hotspot {font-size:10px;max-width:135px;padding:5px 7px;}}
.container-info-action { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; margin:8px 0 16px; padding:12px 14px; background:#196276; color:#fff; border:1px solid #114b5b; border-left:5px solid #e9b54b; font-weight:700; text-align:start; box-shadow:0 2px 6px #183e4c22; }
.container-info-action:hover:not(:disabled) { background:#104c5d; border-color:#d5a537; }
.container-info-action[aria-pressed="true"] { background:#104c5d; }
.info-icon { display:inline-grid; place-items:center; width:23px; height:23px; border:1.5px solid currentColor; border-radius:50%; font-family:Georgia,serif; font-style:italic; flex-shrink:0; }
.info-hotspot { background:#196276; color:#fff; border-color:#e9b54b; border-left:3px solid #e9b54b; }
.tank-label { max-width:230px; font-size:12px; line-height:1.4; background:#333021f2; color:#ffe39a; border:1px solid #eac55d; padding:7px 10px; pointer-events:none; text-align:center; box-shadow:0 2px 8px #0003; }
@media(max-width:600px){.tank-label{max-width:175px;font-size:11px;}}
#interior-inspection .inspection-note { grid-column:1 / -1; margin:4px 0; font-size:12px; line-height:1.6; color:#66552f; padding:9px 10px; background:#f4edda; border-left:3px solid #c6a753; border-radius:3px; }
#foam-toggle[aria-pressed="true"],#foam-hotspot[aria-pressed="true"]{background:#67552a;color:#fff7d8;border-color:#baa15a;}
.floor-inspection-note{grid-column:1 / -1;margin:3px 0;padding:10px;background:#eeeae1;border:1px solid #d9d0bc;border-radius:5px;font-size:12px;line-height:1.5;}
#floor-toggle{grid-column:1 / -1;}
.floor-inspection-note p{margin:7px 0 0;color:#53636a;}
.floor-layer-row{display:flex;align-items:center;gap:8px;margin:3px 0;}
.floor-swatch{display:inline-block;width:27px;height:18px;border-radius:3px;flex:none;border:1px solid #9f9581;}
.floor-swatch.washable{background:repeating-linear-gradient(6deg,#aca28e 0 2px,#c2b9a6 3px,#a29784 4px,#beb4a0 6px);}
.floor-swatch.plywood{background:#28312b;border-color:#111b15;}
.floor-layer-label{max-width:210px;pointer-events:none;background:#f6efe0f5;color:#55452e;border-color:#bd9d63;}
.floor-layer-label.substrate-label{background:#26392ff5;color:#f4f0dc;border-color:#a4bd9c;}
@media(max-width:600px){.floor-layer-label{max-width:140px;font-size:10px;}}
