/* s3tz model viewer (prototype) */
.mv [hidden] { display: none !important; }
.mv { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; margin-top: 14px; }
.pathbar { border-radius: var(--radius); }
.mv-stage-wrap { min-width: 0; }
.mv-stage { position: relative; height: min(72vh, 680px); min-height: 360px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 50% 110%, color-mix(in srgb, var(--g2) 28%, transparent), transparent 60%),
    radial-gradient(90% 70% at 20% -10%, color-mix(in srgb, var(--g1) 22%, transparent), transparent 60%),
    var(--panel-2); }
.mv-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.mv-stage canvas:active { cursor: grabbing; }
.mv-overlay { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; padding: 24px; text-align: center; background: color-mix(in srgb, var(--panel-2) 70%, transparent); backdrop-filter: blur(2px); z-index: 2; }
.mv-overlay[hidden] { display: none; }
.mv-msg { max-width: 460px; color: var(--text); font: 14px/1.5 var(--mono); overflow-wrap: anywhere; }
.mv-overlay.err .mv-msg { padding: 14px 16px; border: 1px solid color-mix(in srgb, #ff5a5a 55%, var(--border)); border-radius: 10px; background: var(--panel); }
.mv-overlay.err .mv-msg::before { content: "Can't preview this model"; display: block; margin-bottom: 6px; color: #ff6b6b; font: 700 13px var(--ui); letter-spacing: .04em; text-transform: uppercase; }
.mv-progress { width: min(320px, 70vw); height: 6px; margin: 0 auto; border-radius: 99px; background: var(--border); overflow: hidden; }
.mv-progress[hidden] { display: none; }
#mv-bar { width: 0; height: 100%; background: var(--grad); transition: width .15s; }
.mv-tools { position: absolute; left: 10px; bottom: 10px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.mv-hint { position: absolute; right: 12px; top: 10px; color: var(--faint); font-size: 12px; pointer-events: none; }
.mv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: 9px; background: color-mix(in srgb, var(--panel) 88%, transparent); color: var(--text); font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.mv-btn:hover { border-color: var(--border-strong); background: var(--raise); }
.mv-btn .icon { width: 13px; height: 13px; }
#mv-play[aria-pressed="true"] .icon { opacity: .55; }
.mv-check input { accent-color: var(--accent); margin: 0; }
.mv-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mv-card { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.mv-title { margin: 0 0 10px; font: 700 16px/1.35 var(--mono); overflow-wrap: anywhere; }
.mv-stats { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 14px; font-size: 13.5px; }
.mv-stats dt { color: var(--muted); }
.mv-stats dd { margin: 0; font-family: var(--mono); text-align: right; overflow-wrap: anywhere; }
.mv-actions { display: flex; gap: 8px; }
.mv-actions .join { flex: 1; }
.mv-actions .join .icon { transform: rotate(90deg); }
.mv-field { display: grid; gap: 5px; margin-bottom: 12px; font-size: 13px; }
.mv-field > span { display: flex; justify-content: space-between; color: var(--muted); font-weight: 600; }
.mv-field output { font-family: var(--mono); font-weight: 400; color: var(--faint); }
.mv-field select { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-2); color: var(--text); font-size: 13.5px; }
.mv-field input[type=range] { width: 100%; accent-color: var(--accent); }
.mv-notes { margin: 4px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--accent-soft); font-size: 13px; }
.mv-notes[hidden] { display: none; }
@media (max-width: 860px) {
  .mv { grid-template-columns: 1fr; }
  .mv-stage { height: 58vh; min-height: 300px; }
  .mv-hint { display: none; }
}
