/* MedLink · Visite-Tour-Modus
 * Fullscreen focus mode für Ärzt:innen / Pflege während der Visite.
 * Editorial-klinisch. Großzügiger Raum. Pulsierender Mic-Ring.
 * Erweitert die bestehenden OKLCH-Tokens.
 */

/* ========================================================
 * Start-Screen v2: Editorial Command Center
 * ======================================================== */

/* Atmosphärischer Hintergrund nur im Start-Screen */
.vt-shell[data-mainphase="start"] {
  background:
    radial-gradient(72% 52% at 85% 0%, color-mix(in oklch, var(--accent) 14%, transparent) 0%, transparent 55%),
    radial-gradient(60% 40% at 0% 95%, color-mix(in oklch, var(--accent) 8%, transparent) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-sunken) 100%);
}
[data-theme="dark"] .vt-shell[data-mainphase="start"] {
  background:
    radial-gradient(72% 52% at 85% 0%, color-mix(in oklch, var(--accent) 22%, transparent) 0%, transparent 55%),
    radial-gradient(60% 40% at 0% 95%, color-mix(in oklch, var(--accent) 12%, transparent) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-sunken) 100%);
}

/* Dezente Grain-Textur über dem ganzen Start-Screen */
.vt-shell[data-mainphase="start"]::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(1px 1px at 10% 20%, oklch(20% 0 0) 50%, transparent 50%),
    radial-gradient(1px 1px at 30% 60%, oklch(20% 0 0) 50%, transparent 50%),
    radial-gradient(1px 1px at 60% 30%, oklch(20% 0 0) 50%, transparent 50%),
    radial-gradient(1px 1px at 80% 70%, oklch(20% 0 0) 50%, transparent 50%);
  background-size: 64px 64px, 48px 48px, 56px 56px, 72px 72px;
  z-index: 0;
}

/* 2-Spalten-Layout */
.vt-start-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 4px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  position: relative;
  z-index: 1;
}
@media (min-width: 960px) {
  .vt-start-shell {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px 32px;
    padding: 28px 16px 20px;
    align-items: start;
  }
}

/* Hero-Spalte — oben ausgerichtet, kompakter */
.vt-hero-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.vt-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px 4px 7px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--accent-tint) 70%, var(--bg-raised));
  border: 1px solid var(--accent-border);
}
.vt-hero-eyebrow-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: vt-pulse-dot 1.8s ease-in-out infinite;
}
.vt-hero-title-v2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin: 0;
}
.vt-hero-title-v2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.vt-hero-lead {
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.5;
  max-width: 520px;
}
.vt-hero-date {
  font-size: 12.5px;
  color: var(--fg-subtle);
  font-weight: 500;
  letter-spacing: -0.003em;
}
.vt-hero-date strong {
  color: var(--fg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Stats-Panel (rechts auf Desktop) — kompakter */
.vt-stats-panel {
  padding: 16px 18px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 2px oklch(0% 0 0 / 0.02), 0 8px 24px oklch(0% 0 0 / 0.04);
  position: relative;
  overflow: hidden;
}
.vt-stats-panel::after {
  content: "";
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.07;
  pointer-events: none;
}
.vt-stats-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 10px;
}
.vt-stats-hero-num {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.vt-stats-hero-unit {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg-subtle);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-variant-numeric: normal;
}

/* Zeit-Budget-Bar */
.vt-budget {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.vt-budget-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 8px;
}
.vt-budget-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.vt-budget-bar {
  display: flex;
  gap: 2px;
  height: 8px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
}
.vt-budget-seg {
  background: color-mix(in oklch, var(--accent) 65%, var(--bg-sunken));
  transition: all .3s ease;
}
.vt-budget-seg[data-tone="prio"] { background: color-mix(in oklch, var(--warning) 70%, var(--bg-sunken)); }
.vt-budget-seg:hover { filter: brightness(1.08); }
.vt-budget-end {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11.5px;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}
.vt-budget-end strong {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.vt-budget-priocount {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--warning);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.vt-budget-priocount span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--warning);
}

/* ---------- Patient-Cards v2 ---------- */
.vt-queue-v2 {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.vt-queue-title-v2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 4px 6px;
}
.vt-queue-title-v2 em {
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--fg-faint);
  font-size: 11px;
}

.vt-pcard {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px 16px 20px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform .18s cubic-bezier(.2,.9,.3,1), box-shadow .22s ease, border-color .22s ease;
  cursor: grab;
}
.vt-pcard:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px oklch(0% 0 0 / 0.03), 0 14px 32px oklch(0% 0 0 / 0.06);
  border-color: var(--border-strong);
}
.vt-pcard:active { cursor: grabbing; transform: scale(0.995); }
.vt-pcard.dragging { opacity: 0.5; transform: rotate(1deg); }

/* NÄCHSTE-Badge (nur erstes Element) */
.vt-pcard[data-next="true"] {
  border-color: var(--accent-border);
  background:
    radial-gradient(60% 80% at 100% 0%, color-mix(in oklch, var(--accent) 10%, transparent) 0%, transparent 60%),
    var(--bg-raised);
  box-shadow: 0 2px 4px oklch(0% 0 0 / 0.02), 0 10px 28px color-mix(in oklch, var(--accent) 10%, transparent);
}
.vt-pcard-next-badge {
  position: absolute;
  top: -9px;
  right: 14px;
  padding: 3px 9px 3px 7px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px color-mix(in oklch, var(--accent) 30%, transparent);
}
.vt-pcard-next-badge::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: #fff;
}

/* Prio-Streifen links */
.vt-pcard[data-prio="true"]::before {
  content: "";
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--warning);
}

/* Nummer */
.vt-pcard-num {
  font-family: var(--font-serif);
  font-size: 34px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: color-mix(in oklch, var(--accent) 80%, var(--fg-muted));
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1;
}
.vt-pcard[data-next="true"] .vt-pcard-num {
  color: var(--accent);
}

/* Info-Bereich */
.vt-pcard-info { min-width: 0; }
.vt-pcard-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.vt-pcard-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.vt-pcard-age {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-subtle);
  letter-spacing: -0.005em;
}
.vt-pcard-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.003em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.vt-pcard-meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--fg-faint);
  flex: 0 0 3px;
}
.vt-pcard-flags {
  margin-top: 8px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.vt-pcard-prio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warning);
  background: var(--warning-tint);
  border: 1px solid var(--warning-border);
  padding: 2px 7px;
  border-radius: 4px;
}
.vt-pcard-prio::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--warning);
  animation: vt-pulse-dot 1.6s ease-in-out infinite;
}

/* Rechter Bereich: Zeit-Chip + Remove */
.vt-pcard-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vt-pcard-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  min-width: 60px;
}
.vt-pcard-time-v {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.vt-pcard-time-l {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-top: 3px;
}

/* Journey-Bar am unteren Rand */
.vt-journey {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--fg-muted);
  position: relative;
  z-index: 1;
}
.vt-journey-ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  display: grid; place-items: center;
  flex: 0 0 36px;
}
.vt-journey-body { flex: 1; min-width: 0; }
.vt-journey-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 2px;
}
.vt-journey-text {
  font-size: 13px;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.vt-journey-text strong {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
  font-size: 15px;
}

/* CTA */
.vt-start-cta-v2 {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  justify-content: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 960px) {
  .vt-start-cta-v2 { justify-content: flex-end; }
}
.vt-start-cta-v2 .vt-btn-primary {
  padding: 0 28px;
  min-height: 52px;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  box-shadow: 0 4px 14px color-mix(in oklch, var(--accent) 30%, transparent), 0 10px 24px oklch(0% 0 0 / 0.05);
}
.vt-start-cta-v2 .vt-btn-kbd {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 5px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* Staggered reveal für Start-Items */
.vt-start-reveal > * {
  animation: vt-reveal .5s cubic-bezier(.2,.8,.3,1) both;
}
.vt-start-reveal > *:nth-child(1) { animation-delay: 40ms; }
.vt-start-reveal > *:nth-child(2) { animation-delay: 100ms; }
.vt-start-reveal > *:nth-child(3) { animation-delay: 160ms; }
.vt-start-reveal > *:nth-child(4) { animation-delay: 220ms; }
.vt-start-reveal > *:nth-child(5) { animation-delay: 280ms; }
.vt-start-reveal > *:nth-child(6) { animation-delay: 340ms; }
@keyframes vt-reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================
 * MOBILE: useful info + function FIRST, hero kompakt, CTA sticky
 * ======================================================== */
@media (max-width: 700px) {
  .vt-start-shell {
    padding: 14px 14px calc(env(safe-area-inset-bottom, 0px) + 84px);
    gap: 12px;
    grid-template-columns: 1fr;
  }

  /* Hero: minimal — 1 Zeile Titel + Meta-Strip darunter */
  .vt-hero-col {
    gap: 6px;
    order: 1;
  }
  .vt-hero-eyebrow {
    font-size: 9.5px;
    padding: 3px 9px 3px 6px;
    letter-spacing: 0.14em;
  }
  .vt-hero-title-v2 {
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.025em;
  }
  .vt-hero-date {
    font-size: 12px;
  }
  /* Lead-Paragraph ausblenden — zu viel Text auf kleinem Screen */
  .vt-hero-lead { display: none; }

  /* Stats-Panel: kompakt — zwischen Hero und Liste */
  .vt-stats-panel {
    order: 2;
    padding: 12px 14px 12px;
    border-radius: 12px;
  }
  .vt-stats-title { display: none; }
  .vt-stats-hero-num {
    font-size: 30px;
    letter-spacing: -0.025em;
    margin-bottom: 2px;
    align-items: baseline;
  }
  .vt-stats-hero-unit {
    font-size: 10.5px;
  }
  .vt-budget {
    margin-top: 10px;
    padding-top: 10px;
  }
  .vt-budget-label {
    font-size: 9.5px;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
  }
  .vt-budget-end {
    margin-top: 6px;
    font-size: 11px;
  }
  .vt-budget-end strong {
    font-size: 14px;
  }
  .vt-stats-panel::after { display: none; }

  /* Patientenliste — Haupt-Content, direkt nach Stats */
  .vt-queue-v2 {
    order: 3;
  }
  .vt-queue-title-v2 {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .vt-queue-title-v2 em { display: none; }

  .vt-pcard {
    grid-template-columns: 34px 1fr auto;
    padding: 12px 12px 12px 14px;
    gap: 10px;
    border-radius: 14px;
  }
  .vt-pcard-num { font-size: 22px; }
  .vt-pcard-name { font-size: 14.5px; }
  .vt-pcard-age { font-size: 12px; }
  .vt-pcard-meta { font-size: 11px; margin-top: 3px; gap: 7px; }
  .vt-pcard-flags { margin-top: 6px; }
  .vt-pcard-time-v { font-size: 17px; }
  .vt-pcard-time-l { font-size: 9px; margin-top: 2px; }
  .vt-pcard-time { min-width: 38px; }
  .vt-pcard-next-badge {
    top: -8px;
    right: 10px;
    padding: 3px 8px 3px 6px;
    font-size: 9px;
  }

  /* Journey-Bar weniger prominent auf Phone */
  .vt-journey {
    order: 4;
    padding: 10px 12px;
    margin-top: 2px;
    gap: 10px;
    border-radius: 12px;
  }
  .vt-journey-ico {
    width: 28px; height: 28px;
    flex: 0 0 28px;
  }
  .vt-journey-title { font-size: 9.5px; margin-bottom: 1px; }
  .vt-journey-text { font-size: 12px; }
  .vt-journey-text strong { font-size: 13px; }

  /* CTA: sticky unten */
  .vt-start-cta-v2 {
    order: 5;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    padding: 10px 14px calc(env(safe-area-inset-bottom, 0px) + 10px);
    margin: 0;
    background: color-mix(in oklch, var(--bg-raised) 92%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--border);
    z-index: 2;
    justify-content: stretch;
    gap: 8px;
  }
  .vt-start-cta-v2 .vt-btn-secondary {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 18px;
  }
  .vt-start-cta-v2 .vt-btn-primary {
    flex: 1;
    min-height: 48px;
    padding: 0 18px;
    font-size: 14px;
  }
  .vt-start-cta-v2 .vt-btn-kbd { display: none; }
}

/* ========================================================
 * MOBILE: Visite-Phasen (patient screen) — Fullscreen-Fixes
 * ======================================================== */
@media (max-width: 700px) {
  /* Timeline + lange Stepper ausblenden — zu viel horizontaler Noise auf Phone */
  .vt-shell[data-mainphase="patient"] .vt-timeline {
    display: none;
  }

  /* Header kompakter */
  .vt-head {
    padding: 10px 14px 8px;
    padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
  }
  .vt-head-title { font-size: 15px; }
  .vt-head-sub { font-size: 10.5px; letter-spacing: 0.06em; }
  .vt-timer { font-size: 11px; padding: 4px 8px; }
  .vt-close-btn { width: 32px; height: 32px; }

  /* Stage padding reduzieren */
  .vt-stage {
    padding: 14px 14px 24px;
  }

  /* Patient-Header: auf Mobile NICHT sticky, einfach inline & kompakt */
  .vt-patient-head.compact {
    position: static;
    max-width: none;
    margin: 0 0 10px;
    padding: 8px 12px;
    box-shadow: none;
    background: var(--bg-raised);
    justify-content: flex-start;
  }
  /* Volle Version auf Mobile: kompaktere Typo */
  .vt-patient-head:not(.compact) {
    gap: 12px;
    padding: 4px 0 8px;
  }
  .vt-patient-head:not(.compact) .vt-patient-avatar {
    width: 48px; height: 48px;
    font-size: 18px;
    flex: 0 0 48px;
  }
  .vt-patient-head:not(.compact) .vt-patient-name {
    font-size: 22px;
    letter-spacing: -0.02em;
  }
  .vt-patient-head:not(.compact) .vt-patient-meta {
    font-size: 11.5px;
    margin-top: 2px;
  }
  /* Chips: wrappen, nicht clippen */
  .vt-patient-chips {
    margin-top: 6px;
    overflow: visible;
  }
  .vt-patient-chips .vt-flag {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
  }

  /* Phasen-Stepper: auf Mobile nur kleine Pills (Nummer + Kurz-Label), scrollbar */
  .vt-stepper-compact .vt-step {
    padding: 6px 10px 6px 5px;
  }
  .vt-stepper-compact .vt-step-num {
    width: 18px; height: 18px;
    font-size: 10.5px;
  }
  .vt-stepper-compact .vt-step-lbl {
    font-size: 11px;
  }

  /* Patient-Container: verhindert horizontalen Überlauf */
  .vt-patient {
    grid-template-columns: 1fr;
    max-width: 100%;
    overflow: visible;
  }
  .vt-patient > * { min-width: 0; }

  /* Cards: weniger aggressives overflow, weiches Padding */
  .vt-card {
    overflow: visible;
  }
  .vt-card-head {
    padding: 12px 14px 8px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .vt-card-body {
    padding: 10px 14px 14px;
  }

  /* SBAR-Zeilen: Text bricht sauber um, Icon kleiner */
  .vt-sbar-row {
    padding: 10px 12px;
    gap: 10px;
  }
  .vt-sbar-letter {
    width: 28px; height: 28px;
    font-size: 14px;
    flex: 0 0 28px;
  }
  .vt-sbar-name { font-size: 10px; }
  .vt-sbar-text {
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Checkliste: label wrappt sauber */
  .vt-check-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 12px;
    gap: 10px;
  }
  .vt-check-main { min-width: 0; }
  .vt-check-label {
    font-size: 13px;
    word-break: break-word;
  }
  .vt-check-hint {
    font-size: 11px;
    word-break: break-word;
  }
  .vt-check-seg { padding: 2px; }
  .vt-check-btn {
    width: 30px; height: 30px;
    font-size: 12px;
  }

  /* SOAP: 1-Spalte auf Phone (sonst wird A+P abgeschnitten) */
  .vt-soap {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .vt-soap-box {
    padding: 10px 12px;
    min-height: 52px;
  }

  /* Dictation-Zone: etwas kompakter */
  .vt-dict {
    padding: 14px;
  }
  .vt-mic {
    width: 84px; height: 84px;
    margin: 10px auto 14px;
  }
  .vt-transcript {
    font-size: 13px;
    padding: 10px 12px;
    min-height: 56px;
  }

  /* Decision-Rows: Medikamentenname bricht um, Buttons eigene Zeile */
  .vt-decision-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 0;
  }
  .vt-decision-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }
  .vt-decision-btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  /* Follow-up: segment wrappt */
  .vt-followup {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .vt-followup-seg {
    width: 100%;
    justify-content: stretch;
  }
  .vt-followup-btn {
    flex: 1;
    text-align: center;
  }

  /* Vitalwerte: 2x2 statt 4x1 */
  .vt-vitals {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  /* Protokoll: Signaturen immer 1-spaltig */
  .vt-signatures {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .vt-protokoll-name { font-size: 18px; }
  .vt-protokoll-vitals {
    gap: 10px 16px;
    font-size: 12px;
  }
  .vt-protokoll-block { margin-bottom: 12px; padding-bottom: 12px; }
  .vt-protokoll-block-title { font-size: 10.5px; }
  .vt-protokoll-list li { font-size: 12.5px; word-break: break-word; }

  /* Footer: Hotkey-Hint ausblenden, Buttons kompakt */
  .vt-foot {
    padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 10px);
    gap: 6px;
  }
  .vt-foot-hint { display: none; }
  .vt-nav {
    flex: 1;
    gap: 6px;
  }
  .vt-nav .vt-btn-secondary,
  .vt-nav .vt-btn-ghost,
  .vt-nav .vt-btn-primary {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12.5px;
  }
  .vt-nav .vt-btn-primary { flex: 1; }

  /* Floating-Mic: Platz neben Footer-Buttons */
  .vt-floating-mic {
    width: 44px; height: 44px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 72px);
    right: 14px;
  }
  .vt-floating-hint {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 80px);
    right: 62px;
  }

  /* Start-CTA auf Phone: kompakte Buttons im gleichen Footer-Stil */
  .vt-start-cta {
    flex-direction: column-reverse;
  }
  .vt-start-cta > * {
    width: 100%;
  }
}

/* Noch kleiner (iPhone SE 375, iPhone 12 mini) */
@media (max-width: 400px) {
  .vt-stepper-compact .vt-step-lbl {
    font-size: 10px;
  }
  .vt-mic { width: 72px; height: 72px; }
  .vt-patient-head:not(.compact) .vt-patient-name {
    font-size: 20px;
  }
}

/* ========================================================
 * UX-Polish: Progress Ribbon, Ambient Mic, Transitions
 * ======================================================== */

/* ---------- Progress Ribbon (3px sticky oben, continuous fill) ---------- */
.vt-progress {
  position: absolute;
  top: env(safe-area-inset-top, 0px);
  left: 0; right: 0;
  height: 3px;
  background: color-mix(in oklch, var(--border) 65%, transparent);
  z-index: 12;
  overflow: hidden;
}
.vt-progress-fill {
  height: 100%;
  background: linear-gradient(90deg,
    color-mix(in oklch, var(--accent) 85%, transparent) 0%,
    var(--accent) 45%,
    color-mix(in oklch, var(--accent) 70%, white 18%) 75%,
    var(--accent) 100%);
  transform-origin: left center;
  transition: width .75s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 0 8px color-mix(in oklch, var(--accent) 60%, transparent),
    0 0 2px color-mix(in oklch, var(--accent) 90%, transparent);
  position: relative;
  will-change: width;
}
.vt-progress-fill::before {
  /* Continuous stripe — gibt das Gefühl, dass sich immer etwas bewegt */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in oklch, white 40%, transparent) 50%,
    transparent 100%);
  background-size: 48px 100%;
  animation: vt-progress-stripe 2.4s linear infinite;
}
.vt-progress-fill::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, transparent, currentColor);
  color: color-mix(in oklch, var(--accent) 90%, white 15%);
  animation: vt-progress-shimmer 2s ease-in-out infinite;
}
@keyframes vt-progress-stripe {
  from { background-position: -48px 0; }
  to   { background-position: calc(100% + 48px) 0; }
}
@keyframes vt-progress-shimmer {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.85; }
}

/* ---------- Floating Mic (FAB) — in allen Phasen erreichbar, sanftes Atmen idle ---------- */
.vt-floating-mic {
  position: absolute;
  right: 18px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 82px);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--fg);
  color: var(--bg);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow:
    0 4px 12px oklch(0% 0 0 / 0.18),
    0 12px 28px oklch(0% 0 0 / 0.12);
  z-index: 5;
  transition: transform .2s cubic-bezier(0.22, 1, 0.36, 1), background .25s ease, box-shadow .25s ease;
  animation: vt-mic-breathe 4.2s ease-in-out infinite;
}
.vt-floating-mic[data-phase="start"],
.vt-floating-mic[data-phase="end"] {
  /* Weniger prominent in Start/End — da dort weniger Kontext für Diktat */
  bottom: calc(env(safe-area-inset-bottom, 0px) + 26px);
  opacity: 0.82;
}
.vt-floating-mic:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    0 6px 16px oklch(0% 0 0 / 0.22),
    0 16px 36px oklch(0% 0 0 / 0.16);
}
.vt-floating-mic:active { transform: scale(0.92); }
.vt-floating-mic[data-live="true"] {
  background: var(--danger);
  color: #fff;
  animation: none;
}
.vt-floating-mic[data-live="true"]::before,
.vt-floating-mic[data-live="true"]::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: vt-mic-ring 1.8s ease-out infinite;
}
.vt-floating-mic[data-live="true"]::after { animation-delay: 0.9s; }
.vt-floating-mic[data-live="true"] + .vt-floating-hint {
  opacity: 1;
  transform: translateY(0);
}
@keyframes vt-mic-breathe {
  0%, 100% {
    box-shadow:
      0 4px 12px oklch(0% 0 0 / 0.18),
      0 12px 28px oklch(0% 0 0 / 0.12),
      0 0 0 0 color-mix(in oklch, var(--accent) 0%, transparent);
  }
  50% {
    box-shadow:
      0 4px 12px oklch(0% 0 0 / 0.18),
      0 12px 28px oklch(0% 0 0 / 0.12),
      0 0 0 6px color-mix(in oklch, var(--accent) 14%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .vt-floating-mic { animation: none; }
}
.vt-floating-hint {
  position: absolute;
  right: 72px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 90px);
  padding: 5px 9px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 5;
  white-space: nowrap;
}
.vt-floating-hint::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: var(--fg);
}

/* ---------- Patient-Intro (nur Briefing-Phase, sonst Top-Bar) ---------- */
.vt-patient-head {
  position: relative;
  transition: padding .28s cubic-bezier(0.22, 1, 0.36, 1), opacity .28s ease;
}
.vt-patient-intro {
  animation: vt-intro-in .42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes vt-intro-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Sticky Stepper — bleibt sichtbar, auch wenn User den Phase-Content scrollt */
.vt-stepper-sticky {
  position: sticky;
  top: 0;
  z-index: 6;
  padding: 8px 2px;
  margin: -12px -20px 4px;
  padding-left: 20px;
  padding-right: 20px;
  background: color-mix(in oklch, var(--bg-sunken) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
}
.vt-stepper-sticky::after {
  /* Soft fade unten für weichen Übergang zum Content */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 8px;
  background: linear-gradient(to bottom, color-mix(in oklch, var(--bg-sunken) 50%, transparent), transparent);
  pointer-events: none;
}

@keyframes vt-pill-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Sliding Phase Transitions ---------- */
.vt-phase-swap {
  position: relative;
}
.vt-phase-swap > * {
  animation: vt-slide-fwd .36s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.vt-phase-swap[data-direction="back"] > * {
  animation-name: vt-slide-back;
}
@keyframes vt-slide-fwd {
  from { opacity: 0; transform: translate3d(22px, 0, 0); filter: blur(1px); }
  to   { opacity: 1; transform: translate3d(0, 0, 0);    filter: blur(0); }
}
@keyframes vt-slide-back {
  from { opacity: 0; transform: translate3d(-22px, 0, 0); filter: blur(1px); }
  to   { opacity: 1; transform: translate3d(0, 0, 0);      filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .vt-phase-swap > * {
    animation: vt-slide-reduced .2s ease both;
  }
  @keyframes vt-slide-reduced {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

/* ---------- Stepper kompakter (40px) ---------- */
.vt-stepper-compact .vt-step {
  padding: 7px 12px 7px 7px;
  font-size: 12px;
}
.vt-stepper-compact .vt-step-num {
  width: 20px; height: 20px;
  font-size: 11px;
}
.vt-stepper-compact .vt-step-min { display: none; }
.vt-stepper-compact .vt-step-lbl {
  font-size: 11.5px;
}

/* ---------- Success Micro-Moments ---------- */
.vt-step-num {
  transition: transform .35s cubic-bezier(.2,.9,.3,1), background .25s ease, color .25s ease;
  position: relative;
}
.vt-step[data-done="true"]:not([data-current="true"]) .vt-step-num {
  animation: vt-check-pop .5s cubic-bezier(0.22, 1.5, 0.36, 1) both;
}
.vt-step[data-done="true"]:not([data-current="true"]) .vt-step-num::after {
  /* Kurzer Ring-Pulse nach Completion */
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--success);
  opacity: 0;
  animation: vt-step-ring .7s cubic-bezier(0.22, 1, 0.36, 1) .15s both;
}
@keyframes vt-check-pop {
  0%   { transform: scale(0.7) rotate(-90deg); }
  55%  { transform: scale(1.18) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes vt-step-ring {
  0%   { opacity: 0.7; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.55); }
}

/* Current step dot breathes subtly */
.vt-step[data-current="true"] .vt-step-num {
  animation: vt-step-breathe 2.6s ease-in-out infinite;
}
@keyframes vt-step-breathe {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 0%, transparent); }
  50%      { box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 20%, transparent); }
}

/* Success glow sweep across a card when fully signed */
.vt-protokoll[data-complete="true"] {
  position: relative;
  animation: vt-glow-sweep 1.6s cubic-bezier(.3,.8,.3,1) both;
}
@keyframes vt-glow-sweep {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklch, var(--success) 40%, transparent); }
  35%  { box-shadow: 0 0 0 10px color-mix(in oklch, var(--success) 24%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--success) 0%,  transparent); }
}
.vt-sig[data-signed="true"] {
  animation: vt-sig-flash .55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.vt-sig[data-signed="true"] .vt-sig-name {
  animation: vt-sig-in .5s cubic-bezier(0.22, 1.1, 0.36, 1) both;
}
.vt-sig[data-signed="true"] .vt-sig-mark {
  animation: vt-sig-mark-in .55s cubic-bezier(0.22, 1.3, 0.36, 1) .1s both;
}
@keyframes vt-sig-flash {
  0%   { background: var(--bg-sunken); }
  25%  { background: color-mix(in oklch, var(--success) 18%, var(--bg-sunken)); }
  100% { background: var(--success-tint); }
}
@keyframes vt-sig-in {
  from { opacity: 0.5; transform: translateY(3px); letter-spacing: 0; }
  to   { opacity: 1; transform: translateY(0); letter-spacing: -0.01em; }
}
@keyframes vt-sig-mark-in {
  from { opacity: 0; transform: translateY(4px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Medikations-Row-Freigabe flash */
.vt-med-stat {
  transition: transform .3s cubic-bezier(0.22, 1.3, 0.36, 1), background .25s ease;
}

/* ---------- Backdrop + Shell ---------- */
.vt-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  z-index: 300;
  animation: vt-fade .3s ease both;
}

.vt-shell {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(60% 80% at 10% 0%, color-mix(in oklch, var(--accent) 9%, transparent) 0%, transparent 60%),
    radial-gradient(60% 80% at 100% 100%, color-mix(in oklch, var(--accent) 6%, transparent) 0%, transparent 60%),
    var(--bg-sunken);
  z-index: 301;
  color: var(--fg);
  overflow: hidden;
  animation: vt-slide .35s cubic-bezier(.2,.8,.3,1) both;
}
[data-theme="dark"] .vt-shell {
  background:
    radial-gradient(60% 80% at 10% 0%, color-mix(in oklch, var(--accent) 12%, transparent) 0%, transparent 60%),
    radial-gradient(60% 80% at 100% 100%, color-mix(in oklch, var(--accent) 8%, transparent) 0%, transparent 60%),
    var(--bg);
}

/* ---------- Kopfzeile (Progress + Close) ---------- */
.vt-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 10px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 14px);
  border-bottom: 1px solid var(--border);
}
/* Compact head during patient phase — patient context lives here */
.vt-head[data-compact="true"] {
  padding: 10px 18px 10px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  gap: 10px;
}
.vt-head-patient {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1 1 auto;
  animation: vt-head-patient-in .32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes vt-head-patient-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.vt-head-avatar {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--accent-fg);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.01em;
  box-shadow: 0 3px 8px color-mix(in oklch, var(--accent) 24%, transparent);
}
.vt-head-info { min-width: 0; flex: 1 1 auto; }
.vt-head-pname {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.022em;
  color: var(--fg);
  line-height: 1.1;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  max-width: 100%;
}
.vt-head-pname-txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.vt-head-pmeta {
  font-size: 11px;
  color: var(--fg-subtle);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  display: flex;
  gap: 6px;
  align-items: baseline;
  min-width: 0;
}
.vt-head-counter {
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0;
}
.vt-head-sep { opacity: 0.5; }
.vt-head-heim {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vt-head-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.vt-head-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-top: 1px;
}
.vt-head-spacer { flex: 1; }

.vt-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fg-muted);
}
.vt-timer-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: vt-pulse-dot 1.6s ease-in-out infinite;
}

.vt-close-btn {
  width: 36px; height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  display: grid; place-items: center;
  color: var(--fg);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.vt-close-btn:active { transform: scale(0.95); background: var(--bg-hover); }

/* ---------- Timeline (Patient progress strip) ---------- */
.vt-timeline {
  display: flex;
  gap: 6px;
  padding: 8px 20px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--bg) 60%, var(--bg-sunken));
}
.vt-timeline::-webkit-scrollbar { display: none; }

.vt-timeline-node {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  background: transparent;
  color: var(--fg-subtle);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  min-width: 0;
  max-width: 180px;
}
.vt-timeline-node-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex: 0 0 10px;
  background: var(--border-strong);
  transition: background .2s ease;
}
.vt-timeline-node[data-status="done"] .vt-timeline-node-dot {
  background: var(--success);
}
.vt-timeline-node[data-status="skip"] .vt-timeline-node-dot {
  background: var(--warning);
}
.vt-timeline-node[data-status="current"] {
  background: var(--accent-tint);
  color: var(--accent);
  border-color: var(--accent-border);
}
.vt-timeline-node[data-status="current"] .vt-timeline-node-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 30%, transparent);
  animation: vt-pulse-dot 1.8s ease-in-out infinite;
}
.vt-timeline-node-lbl {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Screen-Content ---------- */
.vt-stage {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 20px 32px;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Start Screen ---------- */
.vt-start {
  max-width: 720px;
  margin: 0 auto;
}
.vt-start-hero {
  text-align: center;
  padding: 40px 20px 32px;
}
.vt-start-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.vt-start-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.028em;
  color: var(--fg);
}
.vt-start-sub {
  margin-top: 14px;
  font-size: 14px;
  color: var(--fg-muted);
  max-width: 420px;
  margin-left: auto; margin-right: auto;
  line-height: 1.5;
}

.vt-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 28px;
  margin: 22px 0 4px;
}
.vt-meta-item {
  text-align: center;
}
.vt-meta-v {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  font-style: italic;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.vt-meta-l {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-top: 6px;
}

.vt-queue {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vt-queue-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.005em;
  margin: 0 2px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vt-queue-title em {
  font-style: normal;
  font-weight: 500;
  color: var(--fg-subtle);
}

.vt-queue-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform .14s ease, background .2s ease;
  cursor: grab;
}
.vt-queue-row:active { transform: scale(0.995); background: var(--bg-hover); cursor: grabbing; }
.vt-queue-row[data-skipped="true"] { opacity: 0.55; }

.vt-queue-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
  min-width: 34px;
  font-variant-numeric: tabular-nums;
}
.vt-queue-info { flex: 1; min-width: 0; }
.vt-queue-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.vt-queue-meta {
  font-size: 12px;
  color: var(--fg-subtle);
  margin-top: 2px;
}
.vt-queue-flags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.vt-flag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid;
}
.vt-flag[data-t="alert"] { color: var(--warning); background: var(--warning-tint); border-color: var(--warning-border); }
.vt-flag[data-t="med"]   { color: var(--accent); background: var(--accent-tint); border-color: var(--accent-border); }
.vt-flag[data-t="allergy"] { color: var(--danger); background: var(--danger-tint); border-color: var(--danger-border); }

.vt-queue-actions {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}
.vt-icon-btn {
  width: 32px; height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-sunken);
  color: var(--fg-muted);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform .15s ease;
}
.vt-icon-btn:active { transform: scale(0.94); }

/* ---------- Start: CTA ---------- */
.vt-start-cta {
  margin-top: 32px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.vt-btn-primary, .vt-btn-secondary, .vt-btn-ghost {
  min-height: 48px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: transform .14s ease, background .2s ease;
}
.vt-btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 4px 12px color-mix(in oklch, var(--accent) 28%, transparent);
}
.vt-btn-primary:active { transform: scale(0.97); }
.vt-btn-secondary {
  background: var(--bg-raised);
  color: var(--fg);
  border: 1px solid var(--border);
}
.vt-btn-secondary:active { transform: scale(0.97); background: var(--bg-hover); }
.vt-btn-ghost {
  background: transparent;
  color: var(--fg-muted);
}

/* ---------- Patient Screen (Tour active) ---------- */
.vt-patient {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.vt-patient-head {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 4px 2px;
}
.vt-patient-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--accent-fg);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 14px color-mix(in oklch, var(--accent) 28%, transparent);
  flex: 0 0 64px;
}
.vt-patient-id { flex: 1; min-width: 0; }
.vt-patient-name {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--fg);
  line-height: 1.1;
}
.vt-patient-meta {
  font-size: 12.5px;
  color: var(--fg-subtle);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.vt-patient-chips {
  display: flex;
  gap: 5px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* ---------- Info-Karten (Medikation, Vitalwerte, etc.) ---------- */
.vt-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.vt-card-head {
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.vt-card-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.vt-card-body {
  padding: 10px 16px 14px;
}

.vt-med-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.vt-med-row:last-child { border-bottom: 0; }
.vt-med-name {
  flex: 1; min-width: 0;
  font-weight: 500;
  letter-spacing: -0.003em;
  color: var(--fg);
}
.vt-med-dose {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: -0.005em;
}
.vt-med-stat {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  border: 1px solid;
}
.vt-med-stat[data-s="ok"]      { color: var(--success); background: var(--success-tint); border-color: var(--success-border); }
.vt-med-stat[data-s="pending"] { color: var(--warning); background: var(--warning-tint); border-color: var(--warning-border); }
.vt-med-stat[data-s="new"]     { color: var(--info); background: var(--info-tint); border-color: var(--info-border); }

.vt-vitals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}
.vt-vital {
  padding: 10px 12px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: left;
}
.vt-vital-v {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.vt-vital-u {
  font-size: 11px;
  color: var(--fg-subtle);
  margin-left: 2px;
  font-weight: 500;
}
.vt-vital-l {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-top: 6px;
}
.vt-vital[data-new="true"] {
  background: var(--accent-tint);
  border-color: var(--accent-border);
}
.vt-vital[data-new="true"] .vt-vital-v { color: var(--accent); }

/* ---------- Dictation ---------- */
.vt-dict {
  background:
    radial-gradient(80% 60% at 50% 100%, color-mix(in oklch, var(--accent) 10%, transparent) 0%, transparent 70%),
    var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.vt-dict-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.vt-dict-status-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  flex: 1;
}
.vt-dict-status[data-live="true"] .vt-dict-status-label {
  color: var(--accent);
}
.vt-dict-lang {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-sunken);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

/* Big mic button (tap to start/stop) */
.vt-mic {
  display: grid;
  place-items: center;
  margin: 12px auto 16px;
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: var(--accent-fg);
  cursor: pointer;
  position: relative;
  box-shadow: 0 6px 16px color-mix(in oklch, var(--accent) 32%, transparent);
  transition: transform .18s ease;
}
.vt-mic:active { transform: scale(0.95); }
.vt-mic[data-live="true"] {
  background: var(--danger);
  box-shadow: 0 6px 18px color-mix(in oklch, var(--danger) 35%, transparent);
}
.vt-mic[data-live="true"]::before,
.vt-mic[data-live="true"]::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: vt-mic-ring 1.8s ease-out infinite;
}
.vt-mic[data-live="true"]::after {
  animation-delay: 0.9s;
}

/* Waveform */
.vt-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 42px;
  margin-bottom: 12px;
}
.vt-wave span {
  width: 4px;
  background: color-mix(in oklch, var(--accent) 70%, var(--fg-faint));
  border-radius: 2px;
  height: 8px;
  transition: height .12s ease, background .2s ease;
}
.vt-dict-status[data-live="true"] .vt-wave span {
  background: var(--accent);
  animation: vt-wave-bounce 1.2s ease-in-out infinite;
}
.vt-wave span:nth-child(1) { animation-delay: 0.0s; }
.vt-wave span:nth-child(2) { animation-delay: 0.1s; }
.vt-wave span:nth-child(3) { animation-delay: 0.2s; }
.vt-wave span:nth-child(4) { animation-delay: 0.3s; }
.vt-wave span:nth-child(5) { animation-delay: 0.4s; }
.vt-wave span:nth-child(6) { animation-delay: 0.3s; }
.vt-wave span:nth-child(7) { animation-delay: 0.2s; }
.vt-wave span:nth-child(8) { animation-delay: 0.1s; }
.vt-wave span:nth-child(9) { animation-delay: 0.0s; }
.vt-wave span:nth-child(10){ animation-delay: 0.1s; }
.vt-wave span:nth-child(11){ animation-delay: 0.2s; }

/* Transcript */
.vt-transcript {
  font-size: 14px;
  line-height: 1.55;
  min-height: 72px;
  max-height: 260px;
  overflow-y: auto;
  padding: 14px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--fg);
}
.vt-transcript-hint {
  color: var(--fg-subtle);
  font-style: italic;
  font-size: 13px;
}
.vt-transcript .interim {
  color: var(--fg-subtle);
  opacity: 0.85;
}

/* SOAP Sections */
.vt-soap {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.vt-soap-box {
  padding: 12px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 70px;
}
.vt-soap-box[data-active="true"] {
  background: var(--accent-tint);
  border-color: var(--accent-border);
}
.vt-soap-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.vt-soap-letter {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.vt-soap-name {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.vt-soap-content {
  font-size: 12.5px;
  color: var(--fg);
  line-height: 1.45;
  word-wrap: break-word;
  min-height: 30px;
}
.vt-soap-content:empty::before {
  content: "—";
  color: var(--fg-faint);
}

/* ---------- Quick Actions ---------- */
.vt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.vt-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  color: var(--fg);
  transition: transform .14s ease, background .2s ease;
  font-family: var(--font-sans);
}
.vt-action-btn:active { transform: scale(0.98); background: var(--bg-hover); }
.vt-action-ico {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  display: grid; place-items: center;
  border: 1px solid var(--accent-border);
  flex: 0 0 32px;
}
.vt-action-lbl {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.vt-action-sub {
  font-size: 11px;
  color: var(--fg-subtle);
  margin-top: 1px;
}

/* ---------- Footer / Navigation ---------- */
.vt-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  background: color-mix(in oklch, var(--bg-raised) 92%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.vt-foot-hint {
  font-size: 11.5px;
  color: var(--fg-subtle);
  flex: 1;
}
.vt-foot-hint kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-sunken);
  color: var(--fg-muted);
  margin: 0 2px;
}

.vt-nav {
  display: flex;
  gap: 6px;
}

/* ---------- End Screen ---------- */
.vt-end {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding-top: 24px;
}
.vt-end-check {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--success-tint);
  color: var(--success);
  display: grid; place-items: center;
  border: 2px solid var(--success-border);
  animation: vt-pop .6s cubic-bezier(.2,1.3,.4,1) both;
}
.vt-end-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--fg);
  line-height: 1.1;
}
.vt-end-sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--fg-muted);
}
.vt-end-summary {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vt-end-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: left;
}
.vt-end-row-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-sunken);
  color: var(--fg);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  flex: 0 0 36px;
}
.vt-end-row-info { flex: 1; min-width: 0; }
.vt-end-row-name { font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.vt-end-row-meta { font-size: 11.5px; color: var(--fg-subtle); margin-top: 2px; }
.vt-end-row-note {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.4;
  padding: 6px 8px;
  background: var(--bg-sunken);
  border-radius: 8px;
  white-space: pre-wrap;
}

/* ---------- Animations ---------- */
@keyframes vt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vt-slide {
  from { opacity: 0; transform: translateY(16px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes vt-pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
}
@keyframes vt-mic-ring {
  0% { opacity: 0.6; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.6); }
}
@keyframes vt-wave-bounce {
  0%, 100% { height: 8px; }
  50% { height: 30px; }
}
@keyframes vt-pop {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes vt-patient-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

.vt-patient-view {
  animation: vt-patient-in .28s cubic-bezier(.2,.8,.3,1) both;
}

/* Stagger within patient view */
.vt-patient > * {
  animation: vt-patient-in .32s cubic-bezier(.2,.8,.3,1) both;
}
.vt-patient > *:nth-child(1) { animation-delay: 0ms; }
.vt-patient > *:nth-child(2) { animation-delay: 50ms; }
.vt-patient > *:nth-child(3) { animation-delay: 100ms; }
.vt-patient > *:nth-child(4) { animation-delay: 150ms; }
.vt-patient > *:nth-child(5) { animation-delay: 200ms; }

/* ---------- Tablet (min-width: 768px) ---------- */
@media (min-width: 768px) {
  .vt-patient {
    grid-template-columns: 320px 1fr;
    gap: 20px;
  }
  .vt-patient-head { grid-column: 1 / -1; }
  .vt-actions { grid-template-columns: 1fr 1fr 1fr; }
  .vt-stage { padding: 28px 28px 40px; }
  .vt-start-title { font-size: 52px; }
  .vt-patient-name { font-size: 36px; }
}

/* ---------- Desktop (min-width: 1100px) ---------- */
@media (min-width: 1100px) {
  .vt-patient {
    grid-template-columns: 340px 1fr 280px;
  }
}

/* ---------- Voice command chip ---------- */
.vt-cmd-chip {
  position: absolute;
  top: 14px; right: 14px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 4px 12px color-mix(in oklch, var(--accent) 30%, transparent);
}
.vt-cmd-chip[data-show="true"] {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================
 * 5-Phasen Workflow Styles
 * ======================================================== */

/* ---------- Phase-Stepper ---------- */
.vt-stepper {
  display: flex;
  gap: 4px;
  margin: 16px 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.vt-stepper::-webkit-scrollbar { display: none; }
.vt-step {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--fg-muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all .18s ease;
}
.vt-step:active { transform: scale(0.98); }
.vt-step[data-current="true"] {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
  box-shadow: 0 4px 14px color-mix(in oklch, var(--accent) 25%, transparent);
}
.vt-step[data-done="true"]:not([data-current="true"]) {
  background: var(--success-tint);
  color: var(--success);
  border-color: var(--success-border);
}
.vt-step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-sunken);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 12px;
  font-style: italic;
  font-weight: 500;
  border: 1px solid var(--border);
  flex: 0 0 22px;
}
.vt-step[data-current="true"] .vt-step-num {
  background: #fff;
  color: var(--accent);
  border-color: transparent;
}
.vt-step[data-done="true"]:not([data-current="true"]) .vt-step-num {
  background: var(--success);
  color: #fff;
  border-color: transparent;
}
.vt-step-min {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.75;
  letter-spacing: -0.005em;
}
.vt-phase-content { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .vt-stepper { grid-column: 1 / -1; }
}

/* ---------- Phase 1: SBAR-Briefing ---------- */
.vt-briefing { grid-column: 1 / -1; }
.vt-sbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vt-sbar-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.vt-sbar-row[data-accent="true"] {
  background: var(--accent-tint);
  border-color: var(--accent-border);
}
.vt-sbar-letter {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-raised);
  color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  font-style: italic;
  border: 1px solid var(--accent-border);
  flex: 0 0 36px;
}
.vt-sbar-row[data-accent="true"] .vt-sbar-letter {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: transparent;
}
.vt-sbar-body { flex: 1; min-width: 0; }
.vt-sbar-name {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 4px;
}
.vt-sbar-row[data-accent="true"] .vt-sbar-name { color: var(--accent); }
.vt-sbar-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg);
  letter-spacing: -0.003em;
}

/* ---------- Phase 2: Sichtung-Checkliste ---------- */
.vt-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vt-check-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 10px;
  padding: 12px 14px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 12px;
  align-items: center;
  transition: background .2s ease, border-color .2s ease;
}
.vt-check-row[data-status="ok"] {
  background: color-mix(in oklch, var(--success-tint) 60%, var(--bg-raised));
  border-color: var(--success-border);
}
.vt-check-row[data-status="flag"] {
  background: color-mix(in oklch, var(--warning-tint) 60%, var(--bg-raised));
  border-color: var(--warning-border);
}
.vt-check-main { min-width: 0; }
.vt-check-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.vt-check-hint {
  font-size: 11.5px;
  color: var(--fg-subtle);
  margin-top: 2px;
}
.vt-check-seg {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.vt-check-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--fg-muted);
  display: grid; place-items: center;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  transition: background .18s ease, color .18s ease;
}
.vt-check-btn:active { transform: scale(0.94); }
.vt-check-btn[data-active="true"] {
  animation: vt-check-spring .36s cubic-bezier(0.22, 1.4, 0.36, 1) both;
}
.vt-check-btn[data-active="true"][data-tone="ok"]   { background: var(--success); color: #fff; }
.vt-check-btn[data-active="true"][data-tone="flag"] { background: var(--warning); color: #fff; }
.vt-check-btn[data-active="true"][data-tone="na"]   { background: var(--fg-muted); color: #fff; }
@keyframes vt-check-spring {
  0%   { transform: scale(0.92); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.vt-check-note {
  grid-column: 1 / -1;
  margin-top: 4px;
}
.vt-check-note input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--warning-border);
  border-radius: 10px;
  background: var(--bg-raised);
  color: var(--fg);
  font-size: 12.5px;
  font-family: var(--font-sans);
  outline: none;
}
.vt-check-note input:focus {
  border-color: var(--warning);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--warning) 18%, transparent);
}

/* ---------- Phase 4: Decision rows ---------- */
.vt-decision-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.vt-decision-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.vt-decision-actions {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}
.vt-decision-btn {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--fg-muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.003em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  transition: all .15s ease;
}
.vt-decision-btn:active { transform: scale(0.95); }
.vt-decision-btn[data-active="true"] {
  animation: vt-decision-pop .38s cubic-bezier(0.22, 1.5, 0.36, 1) both;
  box-shadow: 0 2px 6px color-mix(in oklch, currentColor 20%, transparent);
}
.vt-decision-btn[data-active="true"][data-tone="approve"] {
  background: var(--success); color: #fff; border-color: var(--success);
}
.vt-decision-btn[data-active="true"][data-tone="reject"] {
  background: var(--danger); color: #fff; border-color: var(--danger);
}
.vt-decision-btn[data-active="true"][data-tone="modify"] {
  background: var(--warning); color: #fff; border-color: var(--warning);
}
@keyframes vt-decision-pop {
  0%   { transform: scale(0.9); opacity: 0.7; }
  55%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Follow-up segmented */
.vt-followup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.vt-followup-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}
.vt-followup-seg {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.vt-followup-btn {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  font-family: var(--font-sans);
}
.vt-followup-btn[data-active="true"] {
  background: var(--accent);
  color: var(--accent-fg);
}

/* Check-line (Lab / Nurse) */
.vt-checkline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.vt-checkline:last-child { border-bottom: 0; }
.vt-mini-check {
  width: 22px; height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-raised);
  display: grid; place-items: center;
  color: transparent;
  transition: all .2s ease;
  flex: 0 0 22px;
}
.vt-mini-check.checked {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Phase 5: Protokoll ---------- */
.vt-protokoll { grid-column: 1 / -1; }
.vt-protokoll-head {
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.vt-protokoll-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.1;
}
.vt-protokoll-meta {
  font-size: 12px;
  color: var(--fg-subtle);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.vt-protokoll-block {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.vt-protokoll-block:last-child { border-bottom: 0; padding-bottom: 0; }
.vt-protokoll-block-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 8px;
}
.vt-protokoll-block-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg);
}
.vt-protokoll-vitals {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}
.vt-protokoll-vitals strong {
  font-weight: 600;
  color: var(--fg-subtle);
  margin-right: 4px;
}
.vt-protokoll-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.vt-protokoll-list li {
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.5;
}

/* Pending-Action-Banner oben im Protokoll (summary-first) */
.vt-protokoll-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 4px 0 16px;
  border-radius: 14px;
  border: 1px solid var(--warning-border);
  background: linear-gradient(
    135deg,
    color-mix(in oklch, var(--warning) 10%, var(--bg-raised)) 0%,
    var(--bg-raised) 60%
  );
  animation: vt-cta-slide .4s cubic-bezier(0.22, 1, 0.36, 1) both;
  position: relative;
  overflow: hidden;
}
.vt-protokoll-cta[data-state="done"] {
  border-color: var(--success-border);
  background: linear-gradient(
    135deg,
    color-mix(in oklch, var(--success) 14%, var(--bg-raised)) 0%,
    var(--bg-raised) 60%
  );
}
.vt-protokoll-cta-icon {
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: var(--warning);
  color: #fff;
  display: grid; place-items: center;
}
.vt-protokoll-cta[data-state="done"] .vt-protokoll-cta-icon {
  background: var(--success);
  animation: vt-cta-icon-pop .5s cubic-bezier(0.22, 1.5, 0.36, 1) both;
}
.vt-protokoll-cta-text { flex: 1; min-width: 0; }
.vt-protokoll-cta-title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--fg);
  line-height: 1.25;
}
.vt-protokoll-cta-sub {
  font-size: 11.5px;
  color: var(--fg-muted);
  margin-top: 2px;
}
.vt-protokoll-cta-dots {
  display: flex;
  gap: 5px;
  flex: 0 0 auto;
}
.vt-protokoll-cta-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border-strong);
  transition: background .3s ease, transform .3s cubic-bezier(0.22, 1.3, 0.36, 1);
}
.vt-protokoll-cta-dots span[data-ok="true"] {
  background: var(--success);
  transform: scale(1.15);
}
@keyframes vt-cta-slide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes vt-cta-icon-pop {
  0%   { transform: scale(0.7) rotate(-20deg); }
  55%  { transform: scale(1.15) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Signaturen */
.vt-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 600px) {
  .vt-signatures { grid-template-columns: 1fr; }
}
.vt-sig {
  padding: 14px;
  background: var(--bg-sunken);
  border: 1.5px dashed var(--border-strong);
  border-radius: 12px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all .2s ease;
}
.vt-sig[data-signed="true"] {
  background: var(--success-tint);
  border: 1.5px solid var(--success-border);
  border-style: solid;
}
.vt-sig-role {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.vt-sig-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.vt-sig-mark {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--success);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Drag feedback */
.vt-queue-row.dragging { opacity: 0.5; }

/* ---------- Error/Unsupported banner ---------- */
.vt-warn {
  padding: 12px 14px;
  background: var(--warning-tint);
  border: 1px solid var(--warning-border);
  border-radius: 12px;
  color: var(--warning);
  font-size: 12.5px;
  line-height: 1.45;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.vt-warn strong { font-weight: 700; }

/* ========================================================
 * MOBILE FINAL OVERRIDES — am Ende der Datei, damit sie
 * alle vorhergehenden Desktop-Regeln überschreiben.
 * Gilt für iPhone 15 Pro (393px) und ähnliche Smartphones.
 * ======================================================== */
@media (max-width: 700px) {
  /* Patient-Timeline ausblenden auf Phone (spart ~50px Chrome) */
  .vt-shell[data-mainphase="patient"] .vt-timeline { display: none; }

  /* Merged Head — noch kompakter auf Mobile */
  .vt-head[data-compact="true"] {
    padding: 8px 14px;
    padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
    gap: 8px;
  }
  .vt-head-avatar {
    width: 34px; height: 34px;
    flex: 0 0 34px;
    font-size: 13.5px;
  }
  .vt-head-pname { font-size: 16px; }
  .vt-head-pmeta { font-size: 10.5px; gap: 5px; }
  .vt-head-heim { max-width: 12ch; }

  /* Patient-Intro (nur Briefing): kompakte Typo */
  .vt-patient-intro {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    padding: 8px 0 10px;
    margin-bottom: 4px;
  }
  .vt-patient-intro .vt-patient-avatar {
    width: 44px; height: 44px;
    flex: 0 0 44px;
    font-size: 17px;
  }
  .vt-patient-intro .vt-patient-name {
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  .vt-patient-intro .vt-patient-meta {
    font-size: 11.5px;
    margin-top: 2px;
  }
  .vt-patient-intro .vt-patient-chips {
    margin-top: 6px;
    gap: 4px;
  }
  .vt-patient-intro .vt-patient-chips .vt-flag {
    font-size: 10px;
    padding: 2px 6px;
    white-space: normal;
    word-break: break-word;
  }

  /* Stepper-Pills auf Mobile etwas kleiner */
  .vt-stepper {
    margin: 6px -14px 14px;
    padding: 0 14px 6px;
    gap: 5px;
  }
  .vt-stepper-compact .vt-step {
    padding: 5px 10px 5px 5px;
  }
  .vt-stepper-compact .vt-step-num {
    width: 18px; height: 18px;
    font-size: 10.5px;
  }
  .vt-stepper-compact .vt-step-lbl { font-size: 11px; }

  /* Patient-Container: keine vertikale Lücken */
  .vt-patient {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .vt-patient > * { min-width: 0; }

  /* Stage-Padding kompakter */
  .vt-stage {
    padding: 12px 14px 20px;
  }

  /* Header */
  .vt-head {
    padding: 10px 14px 8px;
    padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
  }
  .vt-head-title { font-size: 15px; }
  .vt-head-sub { font-size: 10.5px; letter-spacing: 0.06em; }
  .vt-timer { font-size: 11px; padding: 4px 8px; }
  .vt-close-btn { width: 32px; height: 32px; }

  /* Cards: kein overflow:hidden, damit nichts geclippt wird */
  .vt-card { overflow: visible; }
  .vt-card-head {
    padding: 12px 14px 8px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .vt-card-body { padding: 10px 14px 14px; }

  /* SBAR */
  .vt-sbar-row {
    padding: 10px 12px;
    gap: 10px;
  }
  .vt-sbar-letter {
    width: 28px; height: 28px;
    font-size: 14px;
    flex: 0 0 28px;
  }
  .vt-sbar-name { font-size: 10px; }
  .vt-sbar-text {
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Sichtung */
  .vt-check-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding: 10px 12px;
    gap: 10px;
  }
  .vt-check-main { min-width: 0; }
  .vt-check-label { font-size: 13px; word-break: break-word; }
  .vt-check-hint { font-size: 11px; word-break: break-word; }
  .vt-check-seg { padding: 2px; }
  .vt-check-btn {
    width: 30px; height: 30px;
    font-size: 12px;
  }

  /* Vitalwerte 2x2 */
  .vt-vitals {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
  }

  /* Dictation */
  .vt-dict { padding: 14px; }
  .vt-mic {
    width: 84px; height: 84px;
    margin: 10px auto 14px;
  }
  .vt-transcript {
    font-size: 13px;
    padding: 10px 12px;
    min-height: 56px;
  }

  /* SOAP: 1-spaltig */
  .vt-soap {
    grid-template-columns: 1fr !important;
    gap: 6px;
  }
  .vt-soap-box {
    padding: 10px 12px;
    min-height: 52px;
  }

  /* Decision-Row: Name oben, Buttons darunter */
  .vt-decision-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .vt-decision-actions {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }
  .vt-decision-btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
    flex: 1 1 auto;
  }

  /* Follow-up: segment wrappt */
  .vt-followup {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px;
  }
  .vt-followup-seg {
    width: 100%;
    display: flex;
    justify-content: stretch;
  }
  .vt-followup-btn {
    flex: 1;
    text-align: center;
  }

  /* Protokoll-Signaturen: 1-spaltig, mehr Atem, prominenter */
  .vt-signatures {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .vt-sig {
    padding: 16px;
    min-height: 96px;
  }
  .vt-sig-name { font-size: 18px; }
  .vt-protokoll-name { font-size: 18px; }
  .vt-protokoll-vitals {
    gap: 10px 16px;
    font-size: 12px;
  }
  .vt-protokoll-block { margin-bottom: 14px; padding-bottom: 14px; }
  .vt-protokoll-block-title { font-size: 10.5px; }
  .vt-protokoll-list li { font-size: 12.5px; word-break: break-word; }

  /* CTA-Banner: kompakter auf Mobile */
  .vt-protokoll-cta {
    padding: 10px 12px;
    margin: 2px 0 14px;
    gap: 10px;
  }
  .vt-protokoll-cta-icon {
    width: 30px; height: 30px;
    flex: 0 0 30px;
  }
  .vt-protokoll-cta-title { font-size: 12.5px; }
  .vt-protokoll-cta-sub { font-size: 11px; }

  /* Sticky Stepper auf Mobile: weniger padding */
  .vt-stepper-sticky {
    margin: -12px -14px 2px;
    padding: 6px 14px;
  }

  /* Footer: Hotkey-Hint aus, Buttons kompakt */
  .vt-foot {
    padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 10px);
    gap: 6px;
  }
  .vt-foot-hint { display: none; }
  .vt-nav {
    flex: 1;
    gap: 6px;
    display: flex;
  }
  .vt-nav .vt-btn-secondary,
  .vt-nav .vt-btn-ghost,
  .vt-nav .vt-btn-primary {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12.5px;
  }
  .vt-nav .vt-btn-primary { flex: 1; }
  .vt-nav .vt-btn-secondary {
    padding: 0 10px;
  }

  /* Floating-Mic: Platz neben Footer-Buttons, kleiner */
  .vt-floating-mic {
    width: 42px; height: 42px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 66px);
    right: 14px;
    box-shadow: 0 2px 8px oklch(0% 0 0 / 0.2);
  }
  .vt-floating-hint {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 72px);
    right: 60px;
  }
}

/* iPhone SE 375 & kleiner */
@media (max-width: 400px) {
  .vt-stepper-compact .vt-step-lbl { font-size: 10px; }
  .vt-mic { width: 72px; height: 72px; }
  .vt-patient-head:not(.compact) .vt-patient-name {
    font-size: 18px;
  }
}

/* ========================================================================
 * Specialty / Role-specific styling
 * ======================================================================== */

/* Tone palette per specialty */
.vt-role-teal   { --role: oklch(58% 0.09 200); --role-tint: oklch(95% 0.028 200); --role-border: oklch(82% 0.048 200); }
.vt-role-violet { --role: oklch(50% 0.18 295); --role-tint: oklch(96% 0.04 295);  --role-border: oklch(82% 0.08 295); }
.vt-role-amber  { --role: oklch(62% 0.15 65);  --role-tint: oklch(96% 0.05 65);   --role-border: oklch(82% 0.09 65); }
.vt-role-rose   { --role: oklch(56% 0.18 15);  --role-tint: oklch(96% 0.04 15);   --role-border: oklch(82% 0.08 15); }
.vt-role-indigo { --role: oklch(52% 0.17 265); --role-tint: oklch(96% 0.04 265);  --role-border: oklch(82% 0.08 265); }

/* Role-Fokus card at top of Briefing (only for Konsil doctors) */
.vt-role-focus {
  border: 1px solid var(--role-border, var(--border));
  background:
    linear-gradient(135deg, var(--role-tint, var(--bg-sunken)) 0%, transparent 140%),
    var(--bg-raised);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.vt-role-focus::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--role, var(--accent));
}
.vt-role-focus-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vt-role-focus-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1.15;
}
.vt-role-focus-sub {
  font-size: 11.5px;
  color: var(--fg-subtle);
  margin-top: 1px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-weight: 600;
}
.vt-role-focus-list {
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vt-role-focus-list li {
  font-size: 13px;
  color: var(--fg-muted);
  position: relative;
  line-height: 1.45;
}
.vt-role-focus-list li::before {
  content: "";
  position: absolute;
  left: -14px; top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--role, var(--accent));
}

/* Role-Badge (letter in colored square) */
.vt-role-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex: 0 0 30px;
}
.vt-role-badge[data-tone="teal"]   { background: oklch(58% 0.09 200); }
.vt-role-badge[data-tone="violet"] { background: oklch(50% 0.18 295); }
.vt-role-badge[data-tone="amber"]  { background: oklch(62% 0.15 65); }
.vt-role-badge[data-tone="rose"]   { background: oklch(56% 0.18 15); }
.vt-role-badge[data-tone="indigo"] { background: oklch(52% 0.17 265); }

/* Specialty pill next to patient name */
.vt-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 3px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-left: 10px;
  vertical-align: 2px;
  font-family: var(--font-sans);
}
.vt-spec-pill-mark {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #fff;
  font-weight: 700;
}
.vt-spec-pill-label { letter-spacing: 0.02em; text-transform: uppercase; font-size: 10.5px; }
.vt-spec-pill[data-tone="teal"]   { color: oklch(42% 0.09 200); border-color: oklch(82% 0.048 200); background: oklch(96% 0.028 200); }
.vt-spec-pill[data-tone="teal"] .vt-spec-pill-mark   { background: oklch(58% 0.09 200); }
.vt-spec-pill[data-tone="violet"] { color: oklch(42% 0.15 295); border-color: oklch(82% 0.08 295); background: oklch(96% 0.04 295); }
.vt-spec-pill[data-tone="violet"] .vt-spec-pill-mark { background: oklch(50% 0.18 295); }
.vt-spec-pill[data-tone="amber"]  { color: oklch(48% 0.14 65);  border-color: oklch(82% 0.09 65);  background: oklch(96% 0.05 65); }
.vt-spec-pill[data-tone="amber"] .vt-spec-pill-mark  { background: oklch(62% 0.15 65); }
.vt-spec-pill[data-tone="rose"]   { color: oklch(42% 0.15 15);  border-color: oklch(82% 0.08 15);  background: oklch(96% 0.04 15); }
.vt-spec-pill[data-tone="rose"] .vt-spec-pill-mark   { background: oklch(56% 0.18 15); }
.vt-spec-pill[data-tone="indigo"] { color: oklch(42% 0.15 265); border-color: oklch(82% 0.08 265); background: oklch(96% 0.04 265); }
.vt-spec-pill[data-tone="indigo"] .vt-spec-pill-mark { background: oklch(52% 0.17 265); }

/* Role-highlighted card accent (top stripe with tone color) */
.vt-card-accent {
  border-left: 3px solid var(--role, var(--accent));
}
.vt-card-accent[data-tone="teal"]   { --role: oklch(58% 0.09 200); }
.vt-card-accent[data-tone="violet"] { --role: oklch(50% 0.18 295); }
.vt-card-accent[data-tone="amber"]  { --role: oklch(62% 0.15 65); }
.vt-card-accent[data-tone="rose"]   { --role: oklch(56% 0.18 15); }
.vt-card-accent[data-tone="indigo"] { --role: oklch(52% 0.17 265); }

/* Small role-dot in front of flagged medication rows */
.vt-role-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex: 0 0 6px;
  box-shadow: 0 0 0 2px var(--bg-raised);
}
.vt-role-dot[data-tone="teal"]   { background: oklch(58% 0.09 200); }
.vt-role-dot[data-tone="violet"] { background: oklch(50% 0.18 295); }
.vt-role-dot[data-tone="amber"]  { background: oklch(62% 0.15 65); }
.vt-role-dot[data-tone="rose"]   { background: oklch(56% 0.18 15); }
.vt-role-dot[data-tone="indigo"] { background: oklch(52% 0.17 265); }

/* Vital tile hint line */
.vt-vital-h {
  font-size: 10.5px;
  color: var(--fg-subtle);
  margin-top: 2px;
  font-style: italic;
  line-height: 1.3;
}

/* Assessment grid */
.vt-assess-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.vt-assess-tile {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  font-family: inherit;
  color: var(--fg);
}
.vt-assess-tile[data-type="scale"],
.vt-assess-tile[data-type="select"],
.vt-assess-tile[data-type="number"] {
  cursor: default;
}
.vt-assess-tile[data-on="true"] {
  background: var(--accent-tint);
  border-color: var(--accent-border);
}
.vt-assess-l {
  font-size: 11px;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.vt-assess-v {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
}
.vt-assess-tile[data-on="true"] .vt-assess-v { color: var(--accent); }
.vt-assess-scale {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}
.vt-assess-dot {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .1s ease, border-color .1s ease, color .1s ease;
}
.vt-assess-dot:hover { border-color: var(--accent-border); }
.vt-assess-dot[data-active="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}
.vt-assess-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.vt-assess-pill {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--fg-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all .12s ease;
}
.vt-assess-pill:hover { border-color: var(--accent-border); color: var(--fg); }
.vt-assess-pill[data-active="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}
.vt-assess-input {
  width: 100%;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--fg);
  outline: none;
}
.vt-assess-input:focus { border-color: var(--accent); }
.vt-assess-suffix {
  font-size: 11px;
  color: var(--fg-subtle);
  margin-left: 4px;
}

/* Role-flagged decision row (subtle tint) */
.vt-decision-row[data-flag="role"] {
  background: var(--role-tint, var(--bg-sunken));
  border-radius: 8px;
  padding: 6px 8px;
  margin: 0 -4px 4px;
}

/* Protokoll-Pflichtpunkte (checkbox list) */
.vt-protokoll-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vt-protokoll-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background .12s ease;
}
.vt-protokoll-check:hover { background: var(--bg-sunken); }
.vt-protokoll-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Mobile adjustments */
@media (max-width: 720px) {
  .vt-role-focus { padding: 12px 14px; }
  .vt-role-focus-title { font-size: 14.5px; }
  .vt-role-focus-list li { font-size: 12.5px; }
  .vt-spec-pill {
    display: inline-flex;
    margin-left: 8px;
    padding: 2px 7px 2px 2px;
  }
  .vt-spec-pill-label { display: none; }
  .vt-assess-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .vt-assess-tile { padding: 9px 10px; }
  .vt-assess-v { font-size: 16px; }
  .vt-assess-dot { width: 20px; height: 20px; font-size: 10px; }
}

/* Shared SpecChip — used in Visiten-List, Detail, anywhere a doctor is shown */
.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px 2px 2px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: var(--font-sans);
  white-space: nowrap;
  vertical-align: 1px;
}
.spec-chip-mark {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #fff;
  font-weight: 700;
  line-height: 1;
}
.spec-chip-label { letter-spacing: 0.02em; text-transform: uppercase; font-size: 10px; }
.spec-chip[data-tone="teal"]   { color: oklch(42% 0.09 200); border-color: oklch(82% 0.048 200); background: oklch(96% 0.028 200); }
.spec-chip[data-tone="teal"] .spec-chip-mark   { background: oklch(58% 0.09 200); }
.spec-chip[data-tone="violet"] { color: oklch(42% 0.15 295); border-color: oklch(82% 0.08 295); background: oklch(96% 0.04 295); }
.spec-chip[data-tone="violet"] .spec-chip-mark { background: oklch(50% 0.18 295); }
.spec-chip[data-tone="amber"]  { color: oklch(48% 0.14 65);  border-color: oklch(82% 0.09 65);  background: oklch(96% 0.05 65); }
.spec-chip[data-tone="amber"] .spec-chip-mark  { background: oklch(62% 0.15 65); }
.spec-chip[data-tone="rose"]   { color: oklch(42% 0.15 15);  border-color: oklch(82% 0.08 15);  background: oklch(96% 0.04 15); }
.spec-chip[data-tone="rose"] .spec-chip-mark   { background: oklch(56% 0.18 15); }
.spec-chip[data-tone="indigo"] { color: oklch(42% 0.15 265); border-color: oklch(82% 0.08 265); background: oklch(96% 0.04 265); }
.spec-chip[data-tone="indigo"] .spec-chip-mark { background: oklch(52% 0.17 265); }

.spec-chip-big {
  padding: 4px 12px 4px 4px;
  font-size: 12px;
}
.spec-chip-big .spec-chip-mark { width: 22px; height: 22px; font-size: 11.5px; }
.spec-chip-big .spec-chip-label { font-size: 12px; }
