.model-entry {
  display: flex; width: 100%; align-items: center; gap: 10px;
  min-height: 54px; margin: 8px 0 12px; padding: 0 12px 0 0;
  background: #e8edf1; color: #10273b; text-decoration: none;
  border: 1px solid #b8c6d1; font: 650 13px/1.15 var(--body,sans-serif);
}
.model-entry img { display: block; object-fit: contain; width: 76px; height: 53px; padding: 1px; background: #f4f3ef; }
.model-entry svg, .model-tour svg { box-sizing: content-box; width: 18px; height: 18px; flex: none; }
.model-entry span { display: flex; gap: 7px; align-items: center; }
.model-entry > svg { margin-left: auto; width: 15px; }
.model-entry:hover, .model-entry:focus-visible { background: #dae5ed; color: #0d2440; }
.model-entry-feature { display: flex; width: min(100%, 675px); margin: 0 0 clamp(28px,4vw,62px); padding-right: 20px; font-size: clamp(17px,2vw,25px); }
.model-entry-feature img { width: clamp(100px,24vw,180px); height: clamp(72px,15vw,112px); }
.model-entry-feature span { gap: 11px; }
.model-tour {
  box-sizing: border-box; position: fixed; inset: 0; margin: auto; padding: 0; border: 0;
  width: min(1120px,94vw); max-width: none; max-height: calc(100dvh - 32px); height: fit-content;
  overscroll-behavior: contain; overflow: auto; background: #102232; color: #f2f6fa;
  box-shadow: 0 22px 80px #06122178; font-family: var(--body,sans-serif);
}
.model-tour:not([open]), .model-tour [hidden] { display: none!important; }
.model-tour::backdrop { background: #07111ce8; }
html:has(.model-tour[open]) { overflow: hidden; }
.model-tour :focus-visible { outline: 2px solid #6d9ff4; outline-offset: 3px; }
.model-body { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(260px, 1fr); }
.model-close {
  display: grid; place-items: center; position: absolute; z-index: 3; top: 12px; right: 12px;
  width: 44px; height: 44px; color: #edf4fa; border: 1px solid #6a7b88; background: #132433;
  border-radius: 50%; cursor: pointer;
}
.model-close:hover { background: #293e50; }
.model-stage {
  isolation: isolate; position: relative; min-height: clamp(422px,45vw,610px); overflow: hidden;
  color: #1c3040; background: radial-gradient(ellipse at 48% 39%, #f7f6f1 0%, #edece6 76%, #e6e6e0 100%);
}
.model-poster,.model-surface { position: absolute; display: block; top: 43px; left: 0; width: 100%; height: calc(100% - 111px); }
.model-poster { object-fit: contain; }
.model-surface { z-index: 1; }
.model-surface canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.model-surface canvas:active { cursor: grabbing; }
.model-surface canvas:focus-visible { outline-offset: -3px; }
.model-modes { display: inline-flex; position: absolute; z-index: 2; left: 14px; top: 10px; background: #f6f6f1; border: 1px solid #a5b3ba; }
.model-modes button { display: inline-flex; align-items: center; gap: 6px; min-height: 35px; padding: 0 9px; background: transparent; border: 0; color: #1b3448; font: 630 12px/1 var(--body,sans-serif); cursor: pointer; }
.model-modes button + button { border-left: 1px solid #bac5c9; }
.model-modes button[aria-pressed=true] { background: #163047; color: #f2f6fa; }
.model-modes button:hover:not([aria-pressed=true]) { background: #dce6eb; }
.model-modes svg { width: 15px; height: 15px; }
.model-reference { margin: 0; position: absolute; inset: 52px 0 0; display: grid; grid-template-rows: minmax(0,1fr) auto; background: #102232; }
.model-reference img { display: block; width: 100%; height: 100%; object-fit: contain; }
.model-reference figcaption { padding: 9px 12px 11px; background: #102232; color: #ecf1f4; font: 500 12px/1.35 var(--body,sans-serif); text-align: center; }
.model-reference .match-frame { position: relative; min-width: 0; min-height: 0; }
.match-frame img { position: absolute; inset: 0; }
.match-render { clip-path: inset(0 0 0 var(--match,50%)); }
.match-label { display: none; position: absolute; top: 8px; padding: 4px 7px; background: #102232e8; color: white; font: 600 11px/1.2 var(--body,sans-serif); }
.match-frame:has(.match-render:not([hidden])) .match-label { display: block; }
.match-left { left: 8px; }
.match-right { right: 8px; }
.match-divider { position: absolute; inset-block: 0; left: var(--match,50%); border-left: 2px solid white; pointer-events: none; }
.match-divider span { position: absolute; top: 53%; left: 0; transform: translate(-50%,-50%); border: 1px solid white; border-radius: 50%; display: grid; place-items: center; width: 34px; height: 34px; background: #102232; color: white; font: 600 18px/1 var(--body,sans-serif); }
.match-slider { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; direction: ltr; }
.match-frame:has(.match-slider:focus-visible) { outline: 2px solid #80b3ff; outline-offset: -3px; }
.model-reference figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px 16px; padding-block: 5px; }
.match-button { color: #e6f1ff; border: 1px solid #6b869f; background: #172f48; font: inherit; padding: 6px 11px; cursor: pointer; }
.model-switch { position: absolute; z-index: 2; right: 14px; top: 10px; display: flex; border: 1px solid #a5b3ba; background: #f6f6f1e8; }
.model-switch button { width: 39px; min-height: 35px; padding: 0; border: 0; color: #243947; background: transparent; cursor: pointer; font: 650 13px/1 var(--mono,monospace); }
.model-switch button + button { border-left: 1px solid #bac5c9; }
.model-switch button[aria-pressed=true] { color: #f1f4f6; background: #163047; }
.model-switch button:hover:not([aria-pressed=true]) { background: #dce6eb; }
.model-state { position: absolute; left: 13px; right: 13px; bottom: 12px; text-align: center; font: 500 11px/1.35 var(--body,sans-serif); color: #40525d; }
.model-controlbar {
  position: absolute; z-index: 2; bottom: 35px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0; background: #fafaf6ed; border: 1px solid #a2b0b7; box-shadow: 0 2px 10px #233c400b;
}
.model-controlbar button { display: grid; place-items: center; width: 40px; height: 38px; border: 0; padding: 0; background: transparent; color: #1b3448; cursor: pointer; }
.model-controlbar button:hover { background: #dce5eb; }
.model-controlbar button + button { border-left: 1px solid #c5cfd0; }
.model-copy { display: flex; flex-direction: column; align-items: start; padding: clamp(60px,6.3vw,90px) clamp(21px,3.1vw,44px) clamp(22px,3vw,42px); }
.model-copy .model-meta { margin: 0; color: #c9dae7; font: 500 10px/1.5 var(--mono,monospace); text-transform: uppercase; letter-spacing: .09em; }
.model-copy h2 { display: flex; flex-direction: column; margin: 15px 0 24px; color: #f4f7f7; font: 750 clamp(56px,6.2vw,94px)/.84 var(--display,sans-serif); letter-spacing: -.068em; }
.model-copy h2 small { margin-bottom: 8px; color: #e4ecf2; font: 480 19px/1.15 var(--body,sans-serif); letter-spacing: -.025em; }
.model-features { width: 100%; list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid #607481; }
.model-features li { margin: 0; padding: 0; border-bottom: 1px solid #435765; }
.model-features button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 1px; background: none; border: 0; text-align: left; color: #eaf0f4; font: 520 14px/1.4 var(--body,sans-serif); cursor: pointer; }
.model-features button:disabled { color: #eaf0f4; cursor: default; opacity: 1; }
.model-features svg { width: 15px; height: 15px; color: #a5bad4; }
.model-features button:enabled:hover span,.model-features button[aria-pressed=true] span { text-decoration: underline; text-underline-offset: 4px; }
.model-features button[aria-pressed=true] svg { color: #e9f3ff; }
.model-copy .model-note { color: #c3d0d8; font: 430 12px/1.52 var(--body,sans-serif); margin: 0 0 20px; max-width: 36ch; }
.model-book { display: inline-flex; gap: 14px; align-items: center; min-height: 44px; color: #fff; text-decoration: none; background: #214ec5; border: 1px solid #6587de; padding: 0 13px; margin-top: auto; font: 640 14px/1.15 var(--body,sans-serif); }
.model-book:hover { background: #2649a8; }
.visit-title { display:none; }
.model-modes .mode-abbrev { display:none; }
.model-id { display:block; }
.model-id small { display:block; }
.model-provenance { width:100%; margin:16px 0 0; color:var(--stay-secondary); }
.model-provenance summary { display:flex; align-items:center; min-height:36px; gap:8px; color:inherit; cursor:pointer; font:500 13px/1.3 var(--body,sans-serif); }
.model-provenance summary::after { margin-left:auto; color:inherit; }
.model-provenance .model-note { margin:6px 0 0; }
@media(max-width:740px) {
  .model-tour { width: min(100%, 560px); max-height: 100dvh; }
  .model-body { display: block; }
  .model-stage { min-height: 0; height: clamp(282px,46dvh,490px); }
  .model-modes { left: 8px; }
  .model-modes button { padding: 0 6px; gap: 3px; font-size: 11px; }
  .model-modes svg { width: 12px; height: 12px; }
  .model-switch { top: 10px; right: 59px; }
  .model-switch button { width: 32px; }
  .model-close { top: 8px; right: 9px; width: 40px; height: 40px; }
  .model-copy { padding: 20px; }
  .model-copy h2 { display: block; font-size: 43px; margin: 8px 0 15px; }
  .model-copy h2 small { font-size: 24px; }
  .model-features { margin-bottom: 12px; }
  .model-features button { padding-block: 8px; }
  .model-copy .model-note { max-width: none; margin-bottom: 12px; }
}
@media(max-width:359px) {
  .model-switch { right: 54px; }
  .model-switch button { width: 27px; }
  .model-modes button { padding: 0 5px; }
  .model-modes svg { display: none; }
}
@media(max-height:480px) and (orientation:landscape) {
  .model-tour { width: 100%; max-height: 100dvh; }
  .model-body { display: grid; grid-template-columns: 1.45fr 1fr; }
  .model-stage { min-height: 300px; height: auto; }
  .model-copy { padding: 30px 17px 15px; }
  .model-copy h2 { display: block; margin: 4px 0 9px; font-size: 39px; }
  .model-copy h2 small { font-size: 18px; }
  .model-features { margin-bottom: 7px; }
  .model-features button { padding-block: 5px; }
  .model-copy .model-note { margin-bottom: 8px; }
}
