/* SteadiParts Share — 3D-Vorschau (Spec 2026-09-30). Farben aus share.css; Rot nur fuer die Auswahl. */
/* Schmal und bei Datei-Links deckt die Vorschau die Seite. Im Raster (share.css) ist sie die rechte Spalte, wie das Detail in Docs. */
.vorschau { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: var(--card); overflow: hidden }
@media (min-width: 900px) {
  .vorschau { top: 48px }
  body.raster .vorschau { position: static; grid-column: 3; grid-row: 2 / 4; min-width: 0; min-height: 0; border-left: 1px solid var(--border) }
}
/* Neben der Vorschau ist die Liste schmal: Datum und Groesse unter den Namen, wie auf dem Handy. */
body.mit-vorschau .nurbreit { display: none }
body.mit-vorschau .nurschmal { display: block }
.v-kopf { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border) }
.v-titel { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.v-knopf { display: inline-flex; align-items: center; padding: 6px 11px; border: 1px solid var(--border); border-radius: 9px; background: none; font-size: 13px; font-weight: 600;
  color: var(--textMid); text-decoration: none; cursor: pointer }
.v-knopf:hover { background: var(--hover); color: var(--text) }
.v-knopf[aria-pressed=true] { border-color: var(--text); color: var(--text); background: var(--surface) }
.v-knopf:disabled { opacity: .45; cursor: default }
.v-knopf .v-schmal { display: none }
.v-buehne { flex: 1; min-height: 0; position: relative; background: var(--surface) }
.v-buehne canvas { display: block; width: 100%; height: 100%; touch-action: none }
.v-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 24px; text-align: center; color: var(--textMid); pointer-events: none }
.v-status:empty { display: none }
.v-leise { color: var(--textMuted) }
/* Im Bild: Werkzeuge oben links, Orientierungswuerfel oben rechts, Messwerte als Schilder am Modell, Hinweise unten links.
   Rot nur fuer das aktive Werkzeug und die Messung (Bedeutung: Auswahl). */
.v-werkzeuge { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 3px; padding: 5px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08) }
.v-werkzeug { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--textMid); cursor: pointer }
.v-werkzeug svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.v-werkzeug:hover { background: var(--hover); color: var(--text) }
.v-werkzeug[aria-pressed=true] { background: var(--red); color: #fff }
.v-werkzeug:disabled { opacity: .35; cursor: default; background: none }
.v-trenner { height: 1px; margin: 2px 4px; background: var(--border) }
/* Info-Blase beim Ueberfahren (Werkzeuge rechts daneben, Wuerfel links daneben); erste Zeile Name, zweite Zeile was es tut */
.v-werkzeug, .v-wuerfel { position: relative }
.v-werkzeug[data-tipp]:hover::after, .v-werkzeug[data-tipp]:focus-visible::after, .v-wuerfel[data-tipp]:hover::after {
  content: attr(data-tipp); position: absolute; top: 50%; z-index: 5; width: max-content; max-width: 250px; padding: 7px 10px; border-radius: 8px;
  background: var(--text); color: var(--card); font-size: 12px; font-weight: 500; line-height: 1.4; white-space: pre-line; text-align: left;
  pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .2) }
.v-werkzeug[data-tipp]:hover::after, .v-werkzeug[data-tipp]:focus-visible::after { left: calc(100% + 10px); transform: translateY(-50%) }
.v-wuerfel[data-tipp]:hover::after { right: calc(100% + 8px); transform: translateY(-50%) }
.v-wuerfel { position: absolute; top: 8px; right: 8px; z-index: 2; width: 84px; height: 84px }
.v-wuerfel canvas { display: block; width: 84px; height: 84px; cursor: grab; touch-action: none }
.v-wuerfel canvas:active { cursor: grabbing }
.v-heim { position: absolute; top: 12px; right: 98px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--textMid); cursor: pointer }
.v-heim svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.v-heim:hover { background: var(--hover); color: var(--text) }
.v-heim[data-tipp]:hover::after { content: attr(data-tipp); position: absolute; top: 50%; right: calc(100% + 8px); transform: translateY(-50%); z-index: 5; width: max-content; max-width: 250px;
  padding: 7px 10px; border-radius: 8px; background: var(--text); color: var(--card); font-size: 12px; font-weight: 500; line-height: 1.4; white-space: pre-line; text-align: left;
  pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .2) }
.v-schilder { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none }
.v-fuehrung { position: absolute; left: 0; top: 0; height: 2px; margin-top: -1px; background: var(--red); transform-origin: 0 50% }
.v-schild { position: absolute; left: 0; top: 0; padding: 3px 8px; border-radius: 7px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; box-shadow: 0 1px 4px rgba(0, 0, 0, .25) }
.v-hinweis { position: absolute; left: 10px; bottom: 10px; z-index: 2; margin: 0; padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); font-size: 12.5px; color: var(--textMid) }
.v-hinweis:empty { display: none }
/* Angaben unter dem Bild: kleine Felder nebeneinander */
.v-angaben { padding: 12px 14px 14px; border-top: 1px solid var(--border); font-size: 13px }
.v-angaben p { margin: 4px 0 0 }
.v-angaben select { max-width: 100%; padding: 5px 8px; font: inherit; color: inherit; background: var(--black); border: 1px solid var(--border); border-radius: 8px }
.v-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px }
.v-feld { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.v-feldname { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--textMuted) }
.v-feldwert { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums }
.v-feldwert select { width: 100% }
.v-fuss { margin: 8px 0 0; font-size: 12px }
.zeile.gewaehlt td { background: var(--hover) }
@media (max-width: 899px) {
  .v-knopf .v-breit { display: none }
  .v-knopf .v-schmal { display: inline }
}
