#vw-tank-gallery { scroll-margin-top:calc(var(--nav-h,72px) + 16px); }
.vt-materials { margin:10px 0 0; padding:0; border:0; min-inline-size:0; width:100%; box-sizing:border-box; }
.vt-materials legend { padding:0; margin:0 0 4px; color:#395b62; font-size:.76rem; font-weight:700; text-align:start; }
.vt-material-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
.vt-material-options button { display:grid; grid-template-rows:34px 1fr; justify-items:center; align-items:center; position:relative; gap:2px; min-width:0; padding:5px 3px; border:1px solid #b6cbca; border-radius:4px; background:#fff; color:#34515a; cursor:pointer; font:inherit; font-size:.73rem; font-weight:600; line-height:1.15; text-align:center; }
.vt-material-options img { display:block; width:100%; height:34px; object-fit:contain; }
.vt-material-options button[aria-pressed=true] { border-color:#377575; box-shadow:inset 0 0 0 1px #377575; background:#eef7f6; color:#194d50; }
.vt-material-options button[aria-pressed=true]::after { content:"✓"; position:absolute; inset:3px 4px auto auto; width:12px; height:12px; line-height:12px; border-radius:50%; background:#2c696a; color:white; font-size:9px; }
.vt-material-options button:focus-visible { outline:2px solid #245e9d; outline-offset:2px; z-index:1; }
.vw-part-dialog.vt-dialog { width:min(880px,calc(100vw - 24px)); max-height:90dvh; overflow:auto; overscroll-behavior:contain; box-sizing:border-box; color:#173c54; }
.vt-dialog h3 { margin-block:14px; }
.vt-switch, .vt-variants { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.vt-switch { margin:0 0 14px; }
.vt-switch button, .vt-variants button { font:inherit; font-size:.9rem; padding:7px 12px; border:1px solid #bdcfde; color:#204b70; background:white; border-radius:4px; cursor:pointer; }
.vt-switch button[aria-pressed=true] { background:#183f65; border-color:#183f65; color:white; }
.vt-comparison { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.vt-comparison figure { min-width:0; margin:0; background:#f4f7f9; overflow:hidden; border-radius:4px; border:1px solid #d6e2e9; }
.vt-comparison figure img { display:block; width:100%; height:clamp(195px,39vh,390px); object-fit:contain; }
.vt-comparison figcaption { display:flex; justify-content:space-between; align-items:center; gap:.5rem; background:white; font-size:.9rem; font-weight:600; padding:8px 12px; }
.vt-comparison figcaption a { font-weight:500; color:#255c92; }
.vt-variants { margin-top:10px; }
.vt-variants[hidden] { display:none; }
.vt-variants button { font-size:.82rem; padding:5px 10px; }
.vt-variants button[aria-pressed=true] { background:#e7f0f7; border-color:#7e9eb9; }
.vt-dialog .vt-caption { font-size:.93rem; margin:10px 0 0; line-height:1.5; }
@media(max-width:520px) {
  .vt-comparison { grid-template-columns:1fr; gap:8px; }
  .vt-comparison figure img { height:clamp(112px,22dvh,180px); }
  .vt-switch button { padding:6px 10px; }
}
