/*
 * Design system base styles. Imports tokens, sets the base typography and
 * provides the .t-* class set used by primitive components.
 */

@import url("./tokens.css");

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-surface-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}

* { box-sizing: border-box; }

/* Base typography ------------------------------------------------- */
h1, .h1 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  margin: 0;
}

h2, .h2 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  margin: 0;
}

h3, .h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  margin: 0;
}

p, .p {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  margin: 0;
}

.small {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.fine {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

code, kbd, samp, pre, .mono {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

.numeric {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Icons ----------------------------------------------------------- */
.t-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: currentcolor;
  fill: none;
}

/* Scrollbars ------------------------------------------------------ */

/* Dezent, theme-bewusst, überall konsistent.
   Standard-CSS (Firefox, Chromium 121+) via scrollbar-color/-width;
   WebKit zusätzlich über Pseudo-Elemente. Thumb wird beim Hover zur
   Brand-Farbe — folgt damit automatisch dem aktiven data-accent. */
:root {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-border-strong);
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background-color var(--duration-fast) var(--easing-standard);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-primary);
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Buttons --------------------------------------------------------- */
.t-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;          /* touch target */
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--easing-standard),
              border-color var(--duration-fast) var(--easing-standard),
              color var(--duration-fast) var(--easing-standard);
  user-select: none;

  /* Touch-Unterstuetzung in WebView2 (MAUI Blazor Hybrid):
     manipulation eliminiert den 300ms-Touch-Delay UND stellt sicher,
     dass Tap sauber zu Click konvertiert wird. Unbedenklich auf
     Mouse-only-Geraeten (kein Side-Effect). Eingefuehrt 2026-05-26
     nach Verifikations-Befund in Tablet-App Phase 2 PR 1. */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.t-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.t-btn:disabled,
.t-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
}

.t-btn--primary {
  background: var(--color-primary);
  color: var(--color-primary-fg);
  border-color: var(--color-primary);
}
.t-btn--primary:hover:not(:disabled) { filter: brightness(0.95); }

.t-btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.t-btn--secondary:hover:not(:disabled) { background: var(--color-surface-3); }

.t-btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: transparent;
}

.t-btn--ghost:hover:not(:disabled) {
  background: var(--color-surface-3);
}

.t-btn--danger {
  background: var(--color-danger);
  color: var(--color-danger-fg);
  border-color: var(--color-danger);
}
.t-btn--danger:hover:not(:disabled) { filter: brightness(0.95); }

.t-btn--success {
  background: var(--color-success);
  color: var(--color-success-fg);
  border-color: var(--color-success);
}
.t-btn--success:hover:not(:disabled) { filter: brightness(0.95); }

.t-btn--warning {
  background: var(--color-warning);
  color: var(--color-warning-fg);
  border-color: var(--color-warning);
}
.t-btn--warning:hover:not(:disabled) { filter: brightness(0.95); }

.t-btn--info {
  background: var(--color-info);
  color: var(--color-info-fg);
  border-color: var(--color-info);
}
.t-btn--info:hover:not(:disabled) { filter: brightness(0.95); }

.t-btn--sm {
  min-height: 32px;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}

.t-btn--icon {
  padding: 0;
  width: 32px;
  min-width: 32px;
  border-radius: var(--radius-sm);
}

.t-btn--icon.t-btn--sm {
  width: 28px;
  min-width: 28px;
}

/* Touch-Variante fuer Tablet-/Mobile-Footer-Nav (ADR-0041, Phase 2).
   Garantiert 44x44 Touch-Zone gemaess design-system.md Mobile-Regeln.
   Kombinierbar mit den semantischen Varianten (Primary, Ghost etc.). */
.t-btn--touch {
  min-height: 44px;
  min-width: 44px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
}

.t-btn--touch.t-btn--icon {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

/* Loading-State (ADR-0022) ---------------------------------------- */
.t-btn--loading {
  cursor: progress;
  opacity: 1;                /* nicht zusätzlich abdunkeln — Spinner ist Signal genug */
  position: relative;
}

.t-btn--loading:disabled,
.t-btn--loading[aria-disabled="true"] {
  opacity: 1;                /* Disabled-Optik überschreiben, sonst doppelt blass */
}

.t-btn__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* Während Loading: Label leicht verblassen, damit der Spinner führt.
   Inhalt bleibt für Screenreader und Layout sichtbar. */
.t-btn__label--busy {
  opacity: 0.65;
}

.t-btn__spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  margin-right: calc(-1 * var(--space-1)); /* nimmt den eigenen Gap-Anteil zurück */
}

/* Spinner ausblenden, ohne dass display: inline-flex die User-Agent-
   Regel [hidden] { display: none } ueberschreibt. Beide Selektoren
   sind so spezifisch wie noetig, um statisches HTML mit [hidden] und
   den Klassen-Toggle aus JS abzudecken (siehe AnmeldenPage.razor). */
.t-btn__spinner[hidden],
.t-btn__spinner--off {
  display: none;
}

.t-btn__spinner-ring {
  width: 1em;
  height: 1em;
  border: 2px solid currentcolor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: t-btn-spin 0.7s linear infinite;
}
.t-btn--sm .t-btn__spinner-ring { border-width: 1.5px; }

@keyframes t-btn-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .t-btn__spinner-ring {
    animation-duration: 1.8s;
  }
}

/* Spinner (TSpinner) — Lade-Indikator für Card-/Listen-Bereiche ----- */
.t-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.t-spinner__ring {
  width: var(--t-spinner-size, 24px);
  height: var(--t-spinner-size, 24px);
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: t-btn-spin 0.7s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .t-spinner__ring {
    animation-duration: 1.8s;
  }
}

/* Cards ----------------------------------------------------------- */
.t-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: var(--space-5);
}

.t-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.t-card__title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}
.t-card__body  { color: var(--color-text); }

.t-card__footer{
  margin-top: var(--space-4);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

/* Page header ----------------------------------------------------- */
.t-page-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-5) 0 var(--space-4) 0;
}

@media (width >= 768px) {
  .t-page-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
  }
}

.t-page-header__titles {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.t-page-header__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  margin: 0;
}

.t-page-header__subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

.t-page-header__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Inputs ---------------------------------------------------------- */
.t-input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.t-input-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
}

.t-input-required {
  color: var(--color-danger);
  margin-left: 2px;
}

.t-input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-sans);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--easing-standard);
}

.t-input:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.t-input[aria-invalid="true"],
.t-input--invalid {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px var(--color-danger-soft);
}

.t-input-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.t-input-error {
  font-size: var(--text-xs);
  color: var(--color-danger);
}

/* Checkbox -------------------------------------------------------- */
.t-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
}

.t-checkbox__input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.t-checkbox__input:disabled {
  cursor: not-allowed;
}

.t-checkbox__input:focus-visible {
  outline: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.t-checkbox__label {
  font-size: var(--text-base);
  color: var(--color-text);
  cursor: pointer;
  line-height: var(--leading-normal);
}

.t-checkbox__input:disabled + .t-checkbox__label {
  color: var(--color-text-disabled);
  cursor: not-allowed;
}

/* Form section ---------------------------------------------------- */
.t-form-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.t-form-section__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.t-form-section__title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}

.t-form-section__description {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.t-form-section__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Toasts ---------------------------------------------------------- */
.t-toast-host {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: var(--z-toast);
  max-width: min(380px, calc(100vw - 2 * var(--space-4)));
}

.t-toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-info);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  animation: t-toast-in var(--duration-normal) var(--easing-standard);
}

.t-toast__icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  line-height: 1;
  background: var(--color-info);
  color: var(--color-info-fg);
}

.t-toast__body-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.t-toast__title {
  font-weight: var(--weight-bold);
}

.t-toast__body {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.t-toast--success {
  background: var(--color-success-soft);
  border-color: var(--color-success);
  border-left-color: var(--color-success-strong);
}

.t-toast--success .t-toast__icon {
  background: var(--color-success);
  color: var(--color-success-fg);
}

.t-toast--success .t-toast__body {
  color: var(--color-success-strong);
}

.t-toast--warning {
  background: var(--color-warning-soft);
  border-color: var(--color-warning);
  border-left-color: var(--color-warning-strong);
}

.t-toast--warning .t-toast__icon {
  background: var(--color-warning);
  color: var(--color-warning-fg);
}

.t-toast--warning .t-toast__body {
  color: var(--color-warning-strong);
}

.t-toast--danger {
  background: var(--color-danger-soft);
  border-color: var(--color-danger);
  border-left-color: var(--color-danger-strong);
}

.t-toast--danger .t-toast__icon {
  background: var(--color-danger);
  color: var(--color-danger-fg);
}

.t-toast--danger .t-toast__body {
  color: var(--color-danger-strong);
}

.t-toast--info {
  background: var(--color-info-soft);
  border-color: var(--color-info);
  border-left-color: var(--color-info-strong);
}

.t-toast--info .t-toast__icon {
  background: var(--color-info);
  color: var(--color-info-fg);
}

@keyframes t-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Showcase layout helpers ---------------------------------------- */
.t-showcase {
  max-width: var(--layout-max-content);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.t-showcase section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.t-showcase h2 {
  margin: 0;
  font-size: var(--text-xl);
}

.t-showcase__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.t-showcase__grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Badges ---------------------------------------------------------- */
.t-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  line-height: 1.4;
  border: 1px solid transparent;
  white-space: nowrap;
}

.t-badge--neutral {
  background: var(--color-surface-3);
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.t-badge--brand {
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
  border-color: var(--color-primary-soft);
}

.t-badge--success {
  background: var(--color-success-soft);
  color: var(--color-success-strong);
  border-color: var(--color-success-soft);
}

.t-badge--warning {
  background: var(--color-warning-soft);
  color: var(--color-warning-strong);
  border-color: var(--color-warning-soft);
}

.t-badge--danger {
  background: var(--color-danger-soft);
  color: var(--color-danger-strong);
  border-color: var(--color-danger-soft);
}

.t-badge--info {
  background: var(--color-info-soft);
  color: var(--color-info-strong);
  border-color: var(--color-info-soft);
}

/* Stat / KPI ------------------------------------------------------ */
.t-stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.t-stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.t-stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
}

.t-stat__delta {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.t-stat__delta--up   { color: var(--color-success-strong); }
.t-stat__delta--down { color: var(--color-danger-strong); }
.t-stat__delta--flat { color: var(--color-text-muted); }
.t-stat__delta--placeholder { visibility: hidden; }

.t-stat__value-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  min-width: 0;

  /* margin-block: auto verteilt überschüssigen Platz oberhalb und
     unterhalb der Value-Row — Label klebt oben, Delta (falls da) unten,
     Value-Row schwebt mittig. So wirkt eine gestretchte Karte ohne
     Delta nicht oben-bündig mit Loch unten. */
  margin-block: auto;
}

.t-stat__visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Sparkline ------------------------------------------------------ */
.t-sparkline {
  display: inline-block;
  width: 80px;
  height: 28px;
  vertical-align: middle;
  color: var(--color-primary);
}

.t-sparkline--empty {
  background: var(--color-surface-3);
  border-radius: var(--radius-sm);
}

.t-sparkline__line {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.t-sparkline__area {
  fill: var(--color-primary-soft);
  stroke: none;
  opacity: 0.7;
}

/* Tables ---------------------------------------------------------- */
.t-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
}

.t-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  background: var(--color-surface);
}

.t-table th,
.t-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.t-table thead th {
  background: var(--color-surface-2);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  font-weight: var(--weight-bold);
}
.t-table tbody tr:hover { background: var(--color-surface-2); }
.t-table tbody tr:last-child td { border-bottom: 0; }

.t-table .t-table__cell--numeric {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.t-table thead th.t-table__cell--numeric { text-align: right; }

/* Action-Spalten: rechtsbündig, kein Wrap, kleiner Gap für mehrere
   Buttons. StopRowClick=true setzt diese Klasse zusätzlich. */
.t-table .t-table__cell--actions {
  text-align: right;
  white-space: nowrap;
}
.t-table thead th.t-table__cell--actions { text-align: right; }

.t-table tbody td.t-table__cell--actions {
  display: table-cell;
}

/* Dichte-Variante: weniger Padding, ideal für Übersichts-Tabellen
   mit vielen Spalten (z.B. Urlaubsanspruch). */
.t-table--compact th,
.t-table--compact td {
  padding: var(--space-2) var(--space-3);
}

/* Clickable Rows: Cursor + sichtbarer Hover/Focus. Tabindex wird
   per Row gesetzt, sodass die Zeile auch per Tastatur ansteuerbar
   ist (Enter/Space lösen den OnRowClick aus). */
.t-table--clickable tbody tr {
  cursor: pointer;
}

.t-table--clickable tbody tr:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

/* Optionale Row-Modifier — Module setzen sie über RowCssClass. */
.t-table__row--muted td {
  color: var(--color-text-muted);
}

.t-table__row--danger td {
  background: var(--color-danger-soft);
}

.t-table__row--warning td {
  background: var(--color-warning-soft);
}

/* Empty state ----------------------------------------------------- */
.t-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-7) var(--space-4);
  color: var(--color-text-muted);
}

.t-empty__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-3);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.t-empty__title {
  color: var(--color-text);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin: 0;
}

.t-empty__body {
  max-width: 42ch;
  font-size: var(--text-sm);
  margin: 0;
  line-height: var(--leading-normal);
}

.t-empty__actions {
  margin-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

/* Theme switcher --------------------------------------------------- */
.t-theme-switcher {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.t-theme-switcher__row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.t-theme-switcher__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  min-width: 64px;
}

.t-theme-switcher__modes {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.t-theme-switcher__mode {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: inherit;
  line-height: inherit;
  font-weight: var(--weight-medium);
  transition: background-color var(--duration-fast) var(--easing-standard),
              border-color var(--duration-fast) var(--easing-standard),
              color var(--duration-fast) var(--easing-standard);
}
.t-theme-switcher__mode:hover { background: var(--color-surface-3); }

.t-theme-switcher__mode:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.t-theme-switcher__mode.is-active {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  color: var(--color-primary-strong);
}

.t-theme-switcher__swatches {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Jeder Swatch zeigt seine eigene Brand-Farbe — über das eigene
   data-accent-Attribut, das die Brand-Token *für dieses Element*
   überschreibt. So bleibt 100 % Token-getrieben. */
.t-theme-switcher__swatch {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-border);
  background: var(--color-brand);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform var(--duration-fast) var(--easing-standard),
              border-color var(--duration-fast) var(--easing-standard);
}
.t-theme-switcher__swatch:hover { transform: scale(1.08); }

.t-theme-switcher__swatch:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.t-theme-switcher__swatch.is-active {
  border-color: var(--color-text);
  border-width: 3px;
}

.t-theme-switcher__swatch.is-active::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 2px solid var(--color-surface);
  pointer-events: none;
}

/* Modal ----------------------------------------------------------- */
.t-modal-host {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-6) var(--space-4);
  overflow-y: auto;
}

.t-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgb(15 23 42 / 50%);
  animation: t-modal-fade var(--duration-normal) var(--easing-standard);
}

.t-modal {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  width: 100%;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--space-8) * 2);
  animation: t-modal-in var(--duration-slow) var(--easing-standard);
  outline: none;
}

.t-modal--sm {
  max-width: 360px;
}

.t-modal--md {
  max-width: 480px;
}

.t-modal--lg {
  max-width: 720px;
}

.t-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.t-modal__title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
}

.t-modal__close {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--duration-fast) var(--easing-standard),
              color var(--duration-fast) var(--easing-standard);
}

.t-modal__close:hover {
  background: var(--color-surface-3);
  color: var(--color-text);
}

.t-modal__close:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.t-modal__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow-y: auto;
  min-height: 0;
}

.t-modal__footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  flex-wrap: wrap;
  flex-shrink: 0;
}

@keyframes t-modal-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes t-modal-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .t-modal-backdrop, .t-modal { animation: none; }
}

/* === TDocumentList ====================================================
   Generische Dokument-Liste als Tile-Grid + Upload-Bereich. Jedes Tile
   zeigt ein Datei-Typ-Icon (PDF, Bild, Tabelle, Doc, generic) mit eigenem
   Farbakzent, daneben die Metadaten, rechts die Aktionen. Reine Tokens. */
.t-doc-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.t-doc-list__loading,
.t-doc-list__empty {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-5);
  background: var(--color-surface-2);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
}

.t-doc-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-3);
}

.t-doc-list__tile {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--easing-standard),
              box-shadow var(--duration-fast) var(--easing-standard),
              transform var(--duration-fast) var(--easing-standard);
}

.t-doc-list__tile:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-2);
}

.t-doc-list__tile-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-surface-3);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* Farb-Coding nach Datei-Typ — Tokens, theme-aware. */
.t-doc-list__tile-icon--pdf {
  background: var(--color-danger-soft);
  color: var(--color-danger-strong);
}

.t-doc-list__tile-icon--image {
  background: var(--color-info-soft);
  color: var(--color-info-strong);
}

.t-doc-list__tile-icon--spreadsheet {
  background: var(--color-success-soft);
  color: var(--color-success-strong);
}

.t-doc-list__tile-icon--doc {
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
}

.t-doc-list__tile-icon--generic {
  background: var(--color-surface-3);
  color: var(--color-text-muted);
}

.t-doc-list__tile-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.t-doc-list__tile-kind {
  display: inline-flex;
  align-self: flex-start;
  padding: 1px var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--color-surface-3);
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.t-doc-list__tile-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-doc-list__tile-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.t-doc-list__tile-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.t-doc-list__upload {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.t-doc-list__upload-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
}

.t-doc-list__upload-title {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text);
}

.t-doc-list__upload-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(200px, 2fr);
  gap: var(--space-3);
  align-items: end;
}

@media (width <= 599px) {
  .t-doc-list__upload-grid { grid-template-columns: 1fr; }
}

.t-doc-list__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  display: block;
  margin-bottom: var(--space-1);
}

.t-doc-list__select {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-family: var(--font-sans);
  font-weight: inherit;
  line-height: inherit;
  font-size: var(--text-sm);
  color: var(--color-text);
  min-height: 40px;
}

.t-doc-list__select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.t-doc-list__error {
  color: var(--color-danger-strong);
  font-size: var(--text-sm);
  margin: 0;
}

.t-doc-list__progress {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

/* ── TTabs ─────────────────────────────────────────────────────────── */
.t-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding: var(--space-1);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.t-tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  min-height: 40px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  line-height: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.t-tabs__tab:hover {
  background: var(--color-surface-3);
  color: var(--color-text);
}

.t-tabs__tab:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.t-tabs__tab--active {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}

.t-tabs__label {
  white-space: nowrap;
}

.t-tabs__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-pill);
  background: var(--color-surface-3);
  color: var(--color-text-muted);
}

.t-tabs__tab--active .t-tabs__badge {
  background: var(--color-primary);
  color: var(--color-primary-fg);
}

@media (width <= 599px) {
  .t-tabs {
    width: 100%;
  }

  .t-tabs__tab {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ── TStub ─────────────────────────────────────────────────────────── */
.t-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-4);
  gap: var(--space-3);
  text-align: center;
  color: var(--color-text-muted);
}

.t-stub__icon {
  color: var(--color-text-muted);
  opacity: 0.4;
}

.t-stub__heading {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text);
}

.t-stub__phase {
  margin: 0;
  font-size: var(--text-sm);
}

.t-stub__body {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  max-width: 480px;
}

/* ── TStatusAmpel ──────────────────────────────────────────────────── */
.t-status-ampel {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.t-status-ampel__datum {
  font-size: var(--text-xs);
  opacity: 0.85;
}

.t-status-ampel--ok {
  background: var(--color-success-soft);
  color: var(--color-success-strong);
}

.t-status-ampel--warning {
  background: var(--color-warning-soft);
  color: var(--color-warning-strong);
}

.t-status-ampel--danger {
  background: var(--color-danger-soft);
  color: var(--color-danger-strong);
}

.t-status-ampel--neutral {
  background: var(--color-surface-3);
  color: var(--color-text-muted);
}

/* ── TFileUpload ───────────────────────────────────────────────────── */
.t-file-upload {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.t-file-upload__zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4);
  border: 2px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  text-align: center;
  cursor: pointer;
  min-height: 120px;
  position: relative;
  transition: border-color var(--duration-fast) var(--easing-standard),
              background-color var(--duration-fast) var(--easing-standard);
}

.t-file-upload__zone:hover,
.t-file-upload--dragover .t-file-upload__zone {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.t-file-upload__icon {
  color: var(--color-text-muted);
}

.t-file-upload__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
}

.t-file-upload__hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.t-file-upload__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.t-file-upload__preview {
  max-height: 180px;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.t-file-upload__error {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-danger-strong);
  margin: 0;
}

.t-file-upload--disabled .t-file-upload__zone {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── TFileDropzone ─────────────────────────────────────────────────── */
.t-file-dropzone {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.t-file-dropzone__zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4);
  border: 2px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  text-align: center;
  cursor: pointer;
  min-height: 120px;
  position: relative;
  transition: border-color var(--duration-fast) var(--easing-standard),
              background-color var(--duration-fast) var(--easing-standard);
}

.t-file-dropzone__zone:hover,
.t-file-dropzone--dragover .t-file-dropzone__zone {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.t-file-dropzone--error .t-file-dropzone__zone {
  border-color: var(--color-danger);
  background: var(--color-danger-soft);
}

.t-file-dropzone__icon {
  color: var(--color-text-muted);
}

.t-file-dropzone__icon--loaded {
  color: var(--color-success-strong);
}

.t-file-dropzone__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
}

.t-file-dropzone__hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.t-file-dropzone__filename {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  font-family: var(--font-mono);
}

.t-file-dropzone__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.t-file-dropzone__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.t-file-dropzone__status {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.t-file-dropzone__error {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-danger-strong);
  margin: 0;
}

/* ── TTextarea ─────────────────────────────────────────────────────── */
.t-textarea {
  width: 100%;
  resize: vertical;
  min-height: 80px;
}

.t-textarea__counter {
  display: block;
  text-align: right;
  margin-top: var(--space-1);
}

/* ── TFahrzeugPicker — Kacheln ─────────────────────────────────────── */
.t-fzg-kacheln {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.t-fzg-kachel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  min-height: 72px;
  min-width: 100px;
  font-family: var(--font-sans);
  font-weight: inherit;
  line-height: inherit;
  font-size: var(--text-sm);
  transition: border-color var(--duration-fast) var(--easing-standard),
              background-color var(--duration-fast) var(--easing-standard);
}
.t-fzg-kachel:hover { border-color: var(--color-primary); }

.t-fzg-kachel:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.t-fzg-kachel--selected {
  border-color: var(--color-primary-strong);
  background: var(--color-primary-soft);
}

.t-fzg-kachel__kennzeichen {
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  color: var(--color-text);
}

.t-fzg-kachel__funkkenner {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ── Avatar-Dropdown im Topbar-Chip ────────────────────────────────── */
.itn-topbar__user-wrapper {
  position: relative;
}

.itn-topbar__user-chip--button {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.itn-topbar__user-chip--button:hover {
  background: var(--color-surface-2);
}

.itn-topbar__user-chip--button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.itn-user-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  padding: var(--space-1);
  z-index: var(--z-popover);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.itn-user-menu__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: inherit;
  line-height: inherit;
  font-size: var(--text-sm);
  color: var(--color-text);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.itn-user-menu__item:hover {
  background: var(--color-surface-2);
}

.itn-user-menu__item--danger {
  color: var(--color-danger);
}

.itn-user-menu__item--danger:hover {
  background: var(--color-danger-soft);
}

.itn-user-menu__form {
  margin: 0;
}

/* ── Akzent-Swatches: jeder Kreis zeigt seine eigene Farbe ───────────
   Hartcodiert weil die Swatches statisch sein müssen — unabhängig vom
   gerade gewählten Akzent. Werte spiegeln tokens.css 1:1.            */
/* stylelint-disable color-no-hex -- Swatches zeigen die Akzentfarben an, müssen unabhängig vom aktiven Theme statisch bleiben */
.t-theme-switcher__swatch[data-accent=""]        { background: #3B82F6; }
.t-theme-switcher__swatch[data-accent="indigo"]  { background: #4F46E5; }
.t-theme-switcher__swatch[data-accent="emerald"] { background: #10B981; }
.t-theme-switcher__swatch[data-accent="teal"]    { background: #14B8A6; }
.t-theme-switcher__swatch[data-accent="violet"]  { background: #8B5CF6; }
.t-theme-switcher__swatch[data-accent="fuchsia"] { background: #D946EF; }
.t-theme-switcher__swatch[data-accent="rose"]    { background: #F43F5E; }
.t-theme-switcher__swatch[data-accent="red"]     { background: #DC2626; }
.t-theme-switcher__swatch[data-accent="amber"]   { background: #F59E0B; }
.t-theme-switcher__swatch[data-accent="slate"]   { background: #64748B; }
/* stylelint-enable color-no-hex */

/* ── TDateRangePicker ─────────────────────────────────────────────────
   Booking.com-Style: ein Monat, zwei Klicks. Von und Bis werden im
   selben Kalender gewählt; das gesamte Range wird farblich hinterlegt.
   Mobile-first: Cells sind quadratisch, mindestens 40 px Touch-Ziel. */
.t-drp {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  user-select: none;
}

.t-drp__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.t-drp__nav-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
}

.t-drp__nav-btn:hover:not(:disabled) {
  background: var(--color-surface-2);
}

.t-drp__nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.t-drp__nav-label {
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  text-align: center;
  flex: 1;
}

.t-drp__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.t-drp__weekday {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--space-2) 0;
}

.t-drp__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.t-drp__cell {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 40px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--color-text);
  padding: 0;
}

.t-drp__cell--empty {
  pointer-events: none;
}

.t-drp__cell:hover:not(:disabled, .t-drp__cell--from, .t-drp__cell--to) {
  background: var(--color-surface-2);
}

.t-drp__cell:disabled {
  color: var(--color-text-disabled);
  cursor: not-allowed;
  background: transparent;
}

.t-drp__cell--outside {
  color: var(--color-text-disabled);
}

.t-drp__cell--today {
  border-color: var(--color-border-strong);
}

.t-drp__cell--non-working .t-drp__day-num {
  color: var(--color-text-muted);
  font-weight: var(--weight-regular);
}

.t-drp__cell--in-range,
.t-drp__cell--preview {
  background: var(--color-primary-soft);
  border-radius: 0;
}

.t-drp__cell--preview {
  opacity: 0.7;
}

.t-drp__cell--from,
.t-drp__cell--to {
  background: var(--color-primary);
  color: var(--color-primary-fg);
  font-weight: var(--weight-semibold);
}

.t-drp__cell--from {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.t-drp__cell--to {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Wenn von == bis (Single-Day-Range): runde Ecken auf allen Seiten. */
.t-drp__cell--from.t-drp__cell--to {
  border-radius: var(--radius-sm);
}

.t-drp__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.t-drp__summary {
  font-size: var(--text-sm);
  color: var(--color-text);
}

.t-drp__clear {
  background: transparent;
  border: none;
  color: var(--color-link);
  cursor: pointer;
  font-size: var(--text-sm);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.t-drp__clear:hover {
  background: var(--color-surface-2);
}

@media (width <= 480px) {
  .t-drp__cell {
    min-height: 36px;
    font-size: var(--text-xs);
  }

  .t-drp__weekday {
    font-size: 0.625rem;
  }
}

/* ── Pre-Login-Shell ──────────────────────────────────────────────
   Split-Layout für alle Pre-Login-Pages (Anmelde-Karte, Passwort
   vergessen, Bestätigung). Spiegelt 1:1 das Keycloak-Theme `itn`
   unter infra/keycloak/themes/itn/login. Wenn das Theme dort
   verändert wird, müssen Tokens (Brand/DRK-Rot/Spacings) hier
   nachgezogen werden — dieselben Werte, damit der Übergang
   App ↔ Keycloak nahtlos bleibt.

   Desktop: zwei Spalten 1:1. Links die Form-Karte, rechts eine
   Brand-Bühne. Mobile (<960 px): rechte Spalte ausgeblendet,
   Form full-width.                                                 */
.itn-shell--login {
  /* Pre-Login-Pages sind Marken-Bühne und ignorieren bewusst die
     persönliche Akzentfarbe (data-accent auf <html>). Dafür hart auf
     Brand-Blau zurückbiegen — gleiche Werte wie das Keycloak-Theme
     `itn` (infra/keycloak/themes/itn/login). */
  /* stylelint-disable-next-line color-no-hex -- Pre-Login brand identity hard override */
  --color-primary: #3B82F6;
  /* stylelint-disable-next-line color-no-hex */
  --color-primary-strong: #1D4ED8;
  /* stylelint-disable-next-line color-no-hex */
  --color-primary-soft: #DBEAFE;
  /* stylelint-disable-next-line color-no-hex */
  --color-primary-fg: #FFF;
  /* stylelint-disable-next-line color-no-hex */
  --color-link: #3B82F6;
  /* stylelint-disable-next-line color-no-hex -- DRK corporate red, not in general token set */
  --itn-drk-red: #E30613;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-sans);
}

/* Desktop-Logo links oben in der Page-Ecke. */
.itn-shell--login .itn-page-logo {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  z-index: 20;
}

.itn-shell--login .itn-page-logo img {
  height: 56px;
  width: auto;
  display: block;
}

.itn-shell--login__form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-7) var(--space-6);
  background: var(--color-surface);
}

.itn-form-wrap {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
}

.itn-form-wrap__logo {
  height: 56px;
  width: auto;
  display: none;
  margin: 0 auto var(--space-4);
}
.itn-form-wrap__brand-mobile { display: none; }

.itn-form-wrap__title {
  margin: 0 0 var(--space-6);
  font-size: 1.75rem;
  font-weight: var(--weight-bold);
  text-align: center;
  color: var(--color-text);
}

.itn-form-wrap__hint {
  margin: 0 0 var(--space-5);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.itn-shell--login__art {
  position: relative;
  background: var(--color-surface);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh var(--space-7) var(--space-7);
}

.itn-shell--login__art-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 560px;
}

.itn-shell--login__tagline {
  font-size: 3rem;
  font-weight: var(--weight-extrabold);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.itn-shell--login__tagline-1 { color: var(--color-primary); }
.itn-shell--login__tagline-2 { color: var(--color-text); }

.itn-shell--login__subtitle {
  margin: var(--space-5) auto 0;
  max-width: 460px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* Form-Steuerung — identische Optik zur Keycloak-Form.
   `itn-form` ist die Container-Klasse, `itn-form__field` die Feld-
   Gruppe (Label + Input). Submit-Button mit Brand-Gradient. */
.itn-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.itn-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: 0;
}

.itn-form__field > label {
  font-weight: var(--weight-semibold);
  font-size: 0.875rem;
  color: var(--color-text);
}

.itn-form__field > input {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem var(--space-3);
  font-size: 0.95rem;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: var(--font-sans);
}

.itn-form__field > input:focus-visible {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgb(59 130 246 / 18%);
}

/* CTA-Modifier auf .t-btn — sorgt für volle Breite und Top-Spacing
   im Login-Form-Kontext. Funktional, kein neuer Visual-Stil. */
.itn-form__cta {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2);
}

.itn-form__back {
  text-align: center;
  margin-top: var(--space-3);
  font-size: 0.875rem;
}

.itn-form__back a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--weight-semibold);
}

.itn-form__back a:hover {
  text-decoration: underline;
}

@media (width <= 960px) {
  .itn-shell--login { grid-template-columns: 1fr; }
  .itn-shell--login__art { display: none; }
  .itn-shell--login .itn-page-logo { display: none; }

  .itn-shell--login__form {
    padding: var(--space-4) var(--space-4) var(--space-6);
    align-items: flex-start;
  }

  .itn-form-wrap__logo {
    display: block;
    margin-top: 0;
  }

  .itn-form-wrap__brand-mobile {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin: 0 0 var(--space-6) 0;
    line-height: 1.15;
    font-weight: var(--weight-bold);
    letter-spacing: -0.01em;
  }

  .itn-form-wrap__brand-mobile-1 {
    color: var(--color-primary);
    font-size: 1.5rem;
  }

  .itn-form-wrap__brand-mobile-2 {
    color: var(--color-text);
    font-size: 1.5rem;
  }
}

@media (width <= 480px) {
  .itn-form-wrap__title {
    font-size: 1.5rem;
  }

  .itn-form-wrap__logo {
    height: 48px;
  }

  .itn-form-wrap__brand-mobile-1,
  .itn-form-wrap__brand-mobile-2 {
    font-size: 1.25rem;
  }
}

/* === TNavIndicatorDot =============================================
   Kleiner runder Indikator-Punkt für Nav-Links und ähnliche Stellen.
   Keine Zahl, kein Text — nur „da gibt's was". Sanftes Pulsieren,
   damit das Auge ihn nach dem Login findet. Tone steuert die Farbe;
   margin-left:auto sorgt für rechtsbündige Lage im Flex-Container. */
.t-indicator-dot {
  --t-dot-color: var(--color-primary);
  --t-dot-pulse: rgb(59 130 246 / 50%);
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--t-dot-color);
  box-shadow: 0 0 0 0 var(--t-dot-color);
  animation: t-indicator-dot-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

.t-indicator-dot--brand {
  --t-dot-color: var(--color-primary);
  --t-dot-pulse: rgb(59 130 246 / 50%);
}

.t-indicator-dot--danger {
  --t-dot-color: var(--color-danger);
  --t-dot-pulse: rgb(220 38 38 / 50%);
}

.t-indicator-dot--warning {
  --t-dot-color: var(--color-warning);
  --t-dot-pulse: rgb(245 158 11 / 50%);
}

.t-indicator-dot--info {
  --t-dot-color: var(--color-info);
  --t-dot-pulse: rgb(14 165 233 / 50%);
}

.t-indicator-dot--success {
  --t-dot-color: var(--color-success);
  --t-dot-pulse: rgb(22 163 74 / 50%);
}

@keyframes t-indicator-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--t-dot-pulse); }
  50%      { box-shadow: 0 0 0 5px transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .t-indicator-dot { animation: none; }
}

/* ── TConfirmDialog ─────────────────────────────────────────────────
   Nutzt TModal als Basis. Eigene Klasse nur für den Body-Text-Stil.
   Kein eigenes Overlay — TModal liefert das. Reine Token-Nutzung.   */
.t-confirm-dialog__message {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
}

/* ── TPageLoader / Skeleton ─────────────────────────────────────────
   Stufe-2-Ladeindikator (ADR-0022). Kein globaler Spinner, kein
   Fullscreen-Overlay — nur der Inhaltsbereich wird ersetzt.
   Pulse-Animation respektiert prefers-reduced-motion.               */
.t-page-loader {
  width: 100%;
}

/* Gemeinsamer Basis-Stil für Skeleton-Balken */
.t-skeleton__bar {
  height: var(--space-4);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  animation: t-skeleton-pulse 1.6s ease-in-out infinite;
  flex: 1 1 auto;
  min-width: 0;
}

.t-skeleton__bar--header {
  height: var(--space-3);
  flex: 0 0 15%;
}

.t-skeleton__bar--title {
  height: var(--space-5);
}

.t-skeleton__bar--medium {
  flex: 0 0 55%;
}

.t-skeleton__bar--short {
  flex: 0 0 25%;
}

.t-skeleton__bar--weekday {
  height: var(--space-3);
  flex: 1 1 0;
}

/* Verzögerungen (nth-child) — leichtes Stagger-Effekt ohne JS */
.t-skeleton__bar:nth-child(2) { animation-delay: 0.1s; }
.t-skeleton__bar:nth-child(3) { animation-delay: 0.2s; }
.t-skeleton__bar:nth-child(4) { animation-delay: 0.3s; }

/* ─ Table-Skeleton ─────────────────────────────────── */
.t-skeleton--table {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}

.t-skeleton__table-header,
.t-skeleton__table-row {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-2) 0;
}

.t-skeleton__table-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-1);
}

.t-skeleton__table-row + .t-skeleton__table-row {
  border-top: 1px solid var(--color-border);
}

/* ─ Calendar-Skeleton ──────────────────────────────── */
.t-skeleton--calendar {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}

.t-skeleton__calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.t-skeleton__calendar-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-2);
}

.t-skeleton__cell {
  aspect-ratio: 1 / 1;
  min-height: var(--space-7);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  animation: t-skeleton-pulse 1.6s ease-in-out infinite;
}
.t-skeleton__calendar-row:nth-child(2) .t-skeleton__cell { animation-delay: 0.05s; }
.t-skeleton__calendar-row:nth-child(3) .t-skeleton__cell { animation-delay: 0.10s; }
.t-skeleton__calendar-row:nth-child(4) .t-skeleton__cell { animation-delay: 0.15s; }
.t-skeleton__calendar-row:nth-child(5) .t-skeleton__cell { animation-delay: 0.20s; }
.t-skeleton__calendar-row:nth-child(6) .t-skeleton__cell { animation-delay: 0.25s; }

/* ─ Card-Grid-Skeleton ─────────────────────────────── */
.t-skeleton--card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.t-skeleton__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.t-skeleton__card:nth-child(2) .t-skeleton__bar {
  animation-delay: 0.15s;
}

.t-skeleton__card:nth-child(3) .t-skeleton__bar {
  animation-delay: 0.30s;
}

/* Pulse-Animation */
@keyframes t-skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .t-skeleton__bar,
  .t-skeleton__cell {
    animation: none;
  }
}

/* Screenreader-only (kein Platz belegen, sichtbar für AT) */
.t-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── TMap (Leaflet) ───────────────────────────────────────────────────
   Custom-Marker fuer das Tracking-Modul (ADR-0030). Tropfen-Pin in
   ITN-Rot mit eingebettetem Ambulanz-Icon, darunter ein pulsierender
   Ring, damit die Live-Position auch im stehenden Zustand sichtbar
   bleibt. divIcon-Klasse muss !important nicht setzen, weil Leaflet
   selbst keine Hintergrund-Farben auf .leaflet-marker-icon erzwingt. */

.itn-map-marker {
  background: transparent;
  border: none;
}

.itn-map-marker__pin {
  position: absolute;
  left: 50%;
  top: 0;
  width: 36px;
  height: 36px;
  margin-left: -18px;
  background: var(--color-danger);
  /* stylelint-disable-next-line color-no-hex -- white icon + border for leaflet map marker, theme-independent */
  color: #fff;
  /* stylelint-disable-next-line color-no-hex */
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgb(0 0 0 / 25%);
}

.itn-map-marker__pin svg {
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
}

.itn-map-marker__pulse {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-radius: 50%;

  /* Pulse-Ring: gleicher Farbton wie der Pin (Danger), aber mit Alpha. */
  background: color-mix(in srgb, var(--color-danger) 45%, transparent);
  animation: itn-map-marker-pulse 1.8s ease-out infinite;
  pointer-events: none;
}

@keyframes itn-map-marker-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.7;
  }

  80% {
    transform: scale(2.2);
    opacity: 0;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ─── TMap-Tooltip ─────────────────────────────────────────────────────
   Custom-Tooltip auf dem Ambulanz-Marker (ADR-0030). Leaflet stylt seine
   .leaflet-tooltip-Klasse standardmaessig mit grauem Hintergrund — wir
   override das ueber unsere Wrap-Klasse, damit die App eine konsistent
   weisse, klare Optik bekommt. */

/* Border + Rounding auf den Leaflet-Container, damit der TMap-Wrapper
   selbst overflow: visible bleibt (Tooltips duerfen rausragen, ohne
   abgeschnitten zu werden). */
.itn-tmap > .leaflet-container {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: visible !important;
}

/* Tooltip-Pane braucht hoeheren z-index, damit es auch ueber den
   Karten-Border drueber sichtbar bleibt. */
.itn-tmap .leaflet-tooltip-pane {
  z-index: 700;
}

/* ─── TSignaturePad ────────────────────────────────────────────────────
   Unterschrift-Canvas. touch-action: none ist Pflicht, damit das
   Finger-Zeichnen die Seite nicht scrollt. */
.t-sigpad {
  display: block;
  width: 100%;
  background: var(--color-surface);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  touch-action: none;
  cursor: crosshair;
}

.leaflet-tooltip.itn-map-tooltip-wrap {
  /* stylelint-disable-next-line color-no-hex -- leaflet tooltip background, matches library default */
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgb(0 0 0 / 12%), 0 2px 6px rgb(0 0 0 / 8%);
  padding: 0;
  white-space: normal;

  /* Auf grossen Screens 440px, auf Mobile dynamisch auf Viewport-Breite
     minus etwas Rand begrenzt — verhindert horizontales Scrollen. */
  max-width: min(440px, calc(100vw - 2 * var(--space-4)));
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
}

.leaflet-tooltip.itn-map-tooltip-wrap::before {
  /* stylelint-disable-next-line color-no-hex -- leaflet tooltip arrow, matches background */
  border-top-color: #fff;
}

.itn-map-tooltip {
  padding: 10px 14px;
}

.itn-map-tooltip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 8px;
}

.itn-map-tooltip__head strong {
  font-size: var(--text-base);
  letter-spacing: 0.01em;
}

.itn-map-tooltip__chip {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.itn-map-tooltip__chip--live {
  background: var(--color-success-soft);
  color: var(--color-success);
  border-color: color-mix(in srgb, var(--color-success) 35%, transparent);
}

.itn-map-tooltip__list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
  margin: 0;
}

.itn-map-tooltip__list dt {
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  align-self: center;
}

.itn-map-tooltip__list dd {
  margin: 0;
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}

/* Akkustand-Faerbung: unter 20 % rot, sonst gruen.
   Warn-Icon bei niedrig — nicht nur ueber Farbe, sondern auch ueber ein
   Symbol, fuer Farbenblinde (WCAG 2.1 SC 1.4.1). */
.itn-map-tooltip__val--low {
  color: var(--color-danger);
}

.itn-map-tooltip__val--low::before {
  content: "⚠ ";
  margin-right: 2px;
}
.itn-map-tooltip__val--ok  { color: var(--color-success); }

/* Segmented control --------------------------------------------- */

/* Touch-Single-Select (ja/nein, voll/leer, Sauerstoffschrank/Fahrzeug).
   Segmente >= 48 px; kein aktives Segment, solange Value keinem Wert
   entspricht (Default-/Unausgefüllt-Zustand). */
.t-segmented {
  display: inline-flex;
  align-self: flex-start;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.t-segmented__opt {
  min-height: 48px;
  padding: var(--space-2) var(--space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 0;
  border-right: 1px solid var(--color-border);
  cursor: pointer;
}

.t-segmented__opt:last-child {
  border-right: 0;
}

/* Hover NICHT auf aktive Segmente anwenden — sonst gewinnt der graue Hover-
   Hintergrund (hoehere Spezifitaet) ueber den Primary-Aktiv-Zustand. Auf
   Touch-Geraeten bleibt der zuletzt getippte Button im :hover und saehe sonst
   grau statt primary aus. */
.t-segmented__opt:hover:not(:disabled, .t-segmented__opt--active) {
  background: var(--color-surface-2);
}

.t-segmented__opt--active {
  background: var(--color-primary);
  color: var(--color-primary-fg);
  font-weight: var(--weight-semibold);
}

.t-segmented__opt:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--color-primary-soft);
}

.t-segmented__opt:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Number stepper ------------------------------------------------- */

/* −/Wert/+ für Anzahl-Felder. Buttons 48×48 px, deaktivieren an
   Min/Max-Grenze automatisch. */
.t-stepper {
  display: inline-flex;
  flex-direction: column;
  gap: var(--space-1);
}

.t-stepper__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.t-stepper__control {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.t-stepper__btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
  color: var(--color-text);
  border: 0;
  font-size: var(--text-lg);
  cursor: pointer;
}

.t-stepper__btn:hover:not(:disabled) {
  background: var(--color-border);
}

.t-stepper__btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.t-stepper__btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--color-primary-soft);
}

.t-stepper__val {
  min-width: 48px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-md);
  color: var(--color-text);
}
