/* ============================================================
   WD-Apps · Global stylesheet
   The single entry point. Imports all token layers, then defines the
   reset and the border-first component primitives (buttons, inputs,
   badges, tables, cards, nav). Design language: petrol + slate,
   dense, calm, 1px borders, minimal shadow. Built for KMU/Handwerk
   ERP — German-language business software.
   ============================================================ */
@import "./tokens/fonts.css";
@import "./tokens/colors.css";
@import "./tokens/typography.css";
@import "./tokens/spacing.css";

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1; /* IBM Plex single-storey g */
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--ring-focus); border-color: var(--ring); }

/* Tabular figures helper — money, counts, IDs */
.wd-tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- Headings / type helpers ---------- */
.wd-display { font-size: var(--text-3xl); font-weight: var(--fw-semibold); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); }
.wd-h1 { font-size: var(--text-2xl); font-weight: var(--fw-semibold); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); }
.wd-h2 { font-size: var(--text-xl); font-weight: var(--fw-semibold); line-height: var(--lh-tight); letter-spacing: var(--tracking-snug); }
.wd-h3 { font-size: var(--text-lg); font-weight: var(--fw-semibold); line-height: var(--lh-tight); }
.wd-body { font-size: var(--text-base); font-weight: var(--fw-regular); line-height: var(--lh-loose); }
.wd-eyebrow { font-size: var(--text-xs); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-muted); }
.wd-label { font-size: var(--text-xs); font-weight: var(--fw-semibold); color: var(--text-muted); }

/* ---------- Buttons ---------- */
.wd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: var(--control-h); padding: 0 var(--space-4);
  font-size: var(--text-sm); font-weight: var(--fw-semibold);
  border-radius: var(--r-md); border: 1px solid transparent;
  white-space: nowrap; user-select: none;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
}
.wd-btn svg { width: 16px; height: 16px; flex: none; }
.wd-btn--sm { height: 30px; padding: 0 var(--space-3); }
.wd-btn--lg { height: 42px; padding: 0 var(--space-5); font-size: var(--text-base); }
.wd-btn--icon { width: var(--control-h); padding: 0; }
.wd-btn--sm.wd-btn--icon { width: 30px; }

.wd-btn--primary { background: var(--brand-600); color: #fff; }
.wd-btn--primary:hover { background: var(--brand-700); }
.wd-btn--primary:active { background: var(--brand-800); }

.wd-btn--secondary { background: var(--bg-surface); color: var(--text); border-color: var(--border-strong); }
.wd-btn--secondary:hover { background: var(--surface-hover); border-color: var(--border-hover); }

.wd-btn--ghost { background: transparent; color: var(--text-muted); }
.wd-btn--ghost:hover { background: var(--bg-subtle); color: var(--text); }

.wd-btn--danger { background: var(--bg-surface); color: var(--st-red-tx); border-color: var(--st-red-bd); }
.wd-btn--danger:hover { background: var(--st-red-bg); }

.wd-btn:disabled, .wd-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------- Inputs ---------- */
.wd-field { display: flex; flex-direction: column; gap: var(--space-1); }
.wd-input, .wd-select, .wd-textarea {
  width: 100%; height: var(--control-h); padding: 0 var(--space-3);
  font-size: var(--text-sm); color: var(--text);
  background: var(--bg-surface); border: 1px solid var(--border-strong);
  border-radius: var(--r-md); transition: border-color .12s, box-shadow .12s;
}
.wd-textarea { height: auto; min-height: 76px; padding: var(--space-2) var(--space-3); line-height: var(--lh-body); }
.wd-input::placeholder, .wd-textarea::placeholder { color: var(--text-muted); }
.wd-input:hover, .wd-select:hover, .wd-textarea:hover { border-color: var(--border-hover); }
.wd-input:focus, .wd-select:focus, .wd-textarea:focus { outline: none; border-color: var(--ring); box-shadow: var(--ring-focus); }
.wd-input--invalid { border-color: var(--st-red-bd); }
.wd-input--invalid:focus { box-shadow: 0 0 0 3px rgba(185,28,28,.12); }
.wd-help { font-size: var(--text-xs); color: var(--text-muted); }
.wd-help--error { color: var(--st-red-tx); }

/* ---------- Badges (status) ---------- */
.wd-badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 var(--space-2);
  font-size: var(--text-xs); font-weight: var(--fw-semibold);
  border-radius: var(--r-full); border: 1px solid var(--st-gray-bd);
  background: var(--st-gray-bg); color: var(--st-gray-tx); white-space: nowrap;
}
.wd-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.wd-badge--nodot::before { display: none; }
/* Phase 2b: StatusBadge trägt ein Icon statt Punkt, damit der Status ohne Farbe lesbar ist */
.wd-badge svg { width: 12px; height: 12px; flex: none; }
.wd-badge--blue   { background: var(--st-blue-bg);   color: var(--st-blue-tx);   border-color: var(--st-blue-bd); }
.wd-badge--amber  { background: var(--st-amber-bg);  color: var(--st-amber-tx);  border-color: var(--st-amber-bd); }
/* veraltet (Phase 2): teal nicht mehr für Status verwenden */
.wd-badge--teal   { background: var(--st-teal-bg);   color: var(--st-teal-tx);   border-color: var(--st-teal-bd); }
.wd-badge--violet { background: var(--st-violet-bg); color: var(--st-violet-tx); border-color: var(--st-violet-bd); }
.wd-badge--green  { background: var(--st-green-bg);  color: var(--st-green-tx);  border-color: var(--st-green-bd); }
.wd-badge--red    { background: var(--st-red-bg);    color: var(--st-red-tx);    border-color: var(--st-red-bd); }

/* ---------- Card / surface ---------- */
.wd-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--space-5);
}
.wd-card--flush { padding: 0; overflow: hidden; }
.wd-card__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); }

/* ---------- Table ---------- */
.wd-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.wd-table thead th {
  text-align: left; padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: var(--tracking-wide);
  color: var(--text-muted); background: var(--bg-app);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.wd-table tbody td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); vertical-align: middle; }
.wd-table tbody tr:hover { background: var(--brand-50); }
.wd-table tbody tr:last-child td { border-bottom: none; }
.wd-table .wd-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Nav item (LIGHT sidebar) ---------- */
.wd-nav-item {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: var(--nav-h); padding: 0 var(--space-3);
  font-size: var(--text-sm); font-weight: var(--fw-medium);
  color: var(--text-muted); border-radius: var(--r-md);
  cursor: pointer; transition: background .12s, color .12s;
}
.wd-nav-item svg { width: 17px; height: 17px; flex: none; color: var(--text-muted); transition: color .12s; }
.wd-nav-item:hover { background: var(--surface-hover); color: var(--text); text-decoration: none; }
.wd-nav-item:hover svg { color: var(--text); }
.wd-nav-item > span:not(.wd-nav-item__count) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-nav-item--active { background: var(--app-accent-soft); color: var(--app-accent-text); }
.wd-nav-item--active svg { color: var(--app-accent-text); }
.wd-nav-item__count { margin-left: auto; font-size: var(--text-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ---------- App shell layout ---------- */
.wd-shell {
  display: grid; height: 100%;
  grid-template-columns: 236px 1fr;
  grid-template-rows: 54px 1fr 30px;
  grid-template-areas: "brand header" "side main" "side foot";
  background: var(--bg-app);
}
.wd-shell__brand { grid-area: brand; display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-4); background: var(--bg-surface); border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
.wd-shell__header { grid-area: header; display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-5); background: var(--bg-surface); border-bottom: 1px solid var(--border); }
.wd-shell__side { grid-area: side; display: flex; flex-direction: column; overflow: hidden; padding: var(--space-3) var(--space-3); background: var(--bg-surface); border-right: 1px solid var(--border); }
.wd-shell__main { grid-area: main; overflow: auto; padding: var(--space-6) var(--space-6); }
.wd-shell__foot { grid-area: foot; display: flex; align-items: center; gap: var(--space-4); padding: 0 var(--space-5); background: var(--bg-surface); border-top: 1px solid var(--border); font-size: var(--text-xs); color: var(--text-muted); }
.wd-nav-group { font-size: 11px; font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); padding: var(--space-3) var(--space-3) 5px; }

/* AppShell (Phase 2b): Seitenleiste mit Gruppen ≥ 1024 px, darunter Kopf + untere Leiste 4 + Mehr.
   Umschaltung nur per Haltepunkt (keine Geräteerkennung). .wd-shell--desktop / --mobile erzwingen eine Form (Vorschau). */
.wd-shell__title, .wd-shell__msave, .wd-shell__bottom { display: none; }
.wd-shell__crumb { min-width: 0; }
.wd-shell__sidefoot { border-top: 1px solid var(--border); padding-top: var(--space-2); margin-top: var(--space-2); }
/* 2.0.1-Korrektur: Fuß bleibt einzeilig; Inhalte brechen nicht um, die Version kürzt zuletzt */
.wd-shell__foot { min-width: 0; overflow: hidden; white-space: nowrap; }
.wd-shell__foot > * { flex: none; }
.wd-shell__foot > :last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wd-shell__foot .wd-btn { height: 22px; padding: 0 var(--space-2); font-size: var(--text-xs); }
.wd-shell__foot .wd-shell__sep { width: 1px; height: 14px; background: var(--border); }
.wd-shell--mobile { grid-template-columns: minmax(0,1fr); grid-template-rows: 52px minmax(0,1fr) auto; grid-template-areas: "header" "main" "bottom"; }
.wd-shell--mobile .wd-shell__brand, .wd-shell--mobile .wd-shell__side, .wd-shell--mobile .wd-shell__foot, .wd-shell--mobile .wd-shell__crumb, .wd-shell--mobile .wd-shell__search { display: none; }
.wd-shell--mobile .wd-shell__header { padding: 0 var(--space-3) 0 var(--space-4); gap: var(--space-2); }
.wd-shell--mobile .wd-shell__title { display: block; font-size: var(--text-lg); font-weight: var(--fw-semibold); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wd-shell--mobile .wd-shell__msave { display: inline-flex; }
.wd-shell--mobile .wd-shell__bottom { display: block; grid-area: bottom; }
.wd-shell--mobile .wd-shell__main { padding: var(--space-4); }
@media (max-width: 1023px) {
  .wd-shell:not(.wd-shell--desktop) { grid-template-columns: minmax(0,1fr); grid-template-rows: 52px minmax(0,1fr) auto; grid-template-areas: "header" "main" "bottom"; }
  .wd-shell:not(.wd-shell--desktop) .wd-shell__brand, .wd-shell:not(.wd-shell--desktop) .wd-shell__side, .wd-shell:not(.wd-shell--desktop) .wd-shell__foot, .wd-shell:not(.wd-shell--desktop) .wd-shell__crumb, .wd-shell:not(.wd-shell--desktop) .wd-shell__search { display: none; }
  .wd-shell:not(.wd-shell--desktop) .wd-shell__header { padding: 0 var(--space-3) 0 var(--space-4); gap: var(--space-2); }
  .wd-shell:not(.wd-shell--desktop) .wd-shell__title { display: block; font-size: var(--text-lg); font-weight: var(--fw-semibold); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .wd-shell:not(.wd-shell--desktop) .wd-shell__msave { display: inline-flex; }
  .wd-shell:not(.wd-shell--desktop) .wd-shell__bottom { display: block; grid-area: bottom; }
  .wd-shell:not(.wd-shell--desktop) .wd-shell__main { padding: var(--space-4); }
}
/* Benutzermenü: Kopf rechts, auf allen Geräten gleich */
.wd-usermenu { position: relative; }
.wd-usermenu__btn { display: flex; align-items: center; gap: var(--space-2); height: var(--control-h); padding: 0 6px 0 4px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--text); cursor: pointer; font: inherit; }
.wd-usermenu__btn:hover { background: var(--surface-hover); }
.wd-usermenu__pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 800; width: 260px; padding: 6px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.wd-usermenu__head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.wd-usermenu__item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--control-h); padding: 0 10px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--text); font: inherit; font-size: var(--text-sm); text-align: left; cursor: pointer; }
.wd-usermenu__item:hover { background: var(--surface-hover); }
.wd-usermenu__item svg { color: var(--text-muted); }

/* SideTabs (Phase 2d, G1): senkrechte Reiterliste mit Überschriften; < 1024 px Liste als Startseite */
.wd-sidetabs { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: var(--space-6); align-items: start; }
.wd-sidetabs__title { font-size: var(--text-lg); font-weight: var(--fw-semibold); color: var(--text); padding: 0 var(--space-3) var(--space-2); }
.wd-sidetabs__group + .wd-sidetabs__group { margin-top: var(--space-2); }
.wd-sidetabs__chev, .wd-sidetabs__back { display: none !important; }
.wd-sidetabs__content { min-width: 0; }
.wd-sidetabs--mobile { grid-template-columns: minmax(0,1fr); }
.wd-sidetabs--mobile .wd-sidetabs__item { min-height: 44px; border-bottom: 1px solid var(--border-subtle); border-radius: 0; }
.wd-sidetabs--mobile .wd-sidetabs__chev { display: block !important; margin-left: auto; color: var(--text-muted); }
.wd-sidetabs--mobile .wd-sidetabs__back { display: inline-flex !important; margin: 0 0 var(--space-3) calc(-1 * var(--space-2)); }
.wd-sidetabs--mobile[data-open="true"] .wd-sidetabs__list, .wd-sidetabs--mobile[data-open="false"] .wd-sidetabs__content { display: none; }
@media (max-width: 1023px) {
  .wd-sidetabs:not(.wd-sidetabs--desktop) { grid-template-columns: minmax(0,1fr); }
  .wd-sidetabs:not(.wd-sidetabs--desktop) .wd-sidetabs__item { min-height: 44px; border-bottom: 1px solid var(--border-subtle); border-radius: 0; }
  .wd-sidetabs:not(.wd-sidetabs--desktop) .wd-sidetabs__chev { display: block !important; margin-left: auto; color: var(--text-muted); }
  .wd-sidetabs:not(.wd-sidetabs--desktop) .wd-sidetabs__back { display: inline-flex !important; margin: 0 0 var(--space-3) calc(-1 * var(--space-2)); }
  .wd-sidetabs:not(.wd-sidetabs--desktop)[data-open="true"] .wd-sidetabs__list, .wd-sidetabs:not(.wd-sidetabs--desktop)[data-open="false"] .wd-sidetabs__content { display: none; }
}

/* StepBar (2.0): waagerechte Schrittleiste, nur ab 1024 px */
.wd-stepbar { display: grid; gap: 4px; }
.wd-stepbar__step { display: flex; flex-direction: column; gap: 6px; padding: 2px 0 6px; border: 0; background: transparent; font: inherit; font-size: var(--text-sm); text-align: left; cursor: pointer; min-width: 0; min-height: var(--control-h); }
.wd-stepbar__step:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--r-sm); }
.wd-stepbar__bar { height: 3px; border-radius: 2px; }
.wd-stepbar__label { display: flex; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1023px) { .wd-stepbar { display: none; } }

/* FieldInfo (Phase 2d): Info-Knopf am Label, Popover per Klick */
.wd-fieldinfo { position: relative; display: inline-flex; vertical-align: middle; margin-left: 4px; }
.wd-fieldinfo__btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: -4px 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-muted); cursor: pointer; }
.wd-fieldinfo__btn:hover, .wd-fieldinfo__btn[aria-expanded="true"] { color: var(--brand-text); background: var(--surface-hover); }
.wd-fieldinfo__btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
@media (pointer: coarse) { .wd-fieldinfo__btn { width: 44px; height: 44px; margin: -14px -10px; } }
.wd-fieldinfo__pop { position: absolute; left: -8px; top: calc(100% + 8px); z-index: 700; width: 280px; padding: 12px 14px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); font-size: var(--text-sm); font-weight: 500; color: var(--text); text-transform: none; letter-spacing: 0; }

/* breadcrumb */
.wd-breadcrumb { display: flex; align-items: center; gap: 7px; font-size: var(--text-sm); color: var(--text-muted); }
.wd-breadcrumb .cur { color: var(--text); font-weight: var(--fw-medium); }

/* avatar (round, brand tint) */
.wd-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); display: flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: var(--fw-semibold); flex: none; }

/* page header */
.wd-page-title { font-size: var(--text-2xl); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-snug); color: var(--text); }
/* Titelstufen (Phase 2): Seite 24 > Abschnitt 18 > Gruppe 14, je 600. Handy: Seite 20. */
.wd-section-title { font-size: var(--text-lg); font-weight: var(--fw-semibold); line-height: var(--lh-tight); color: var(--text); }
.wd-group-title { font-size: var(--text-sm); font-weight: var(--fw-semibold); line-height: var(--lh-tight); color: var(--text); }
@media (max-width: 599px) { .wd-page-title { font-size: var(--text-xl); } }
.wd-page-sub { font-size: var(--text-sm); color: var(--text-muted); margin-top: 2px; }

/* soft tag */
.wd-tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: var(--r-sm); background: var(--bg-subtle); color: var(--text-muted); font-size: var(--text-xs); font-weight: var(--fw-medium); }

/* ---------- Highlight · reference token · terminal (retro petrol) ----------
   A CRT-flavoured treatment for matched text, inline record/file references
   and command-line surfaces. Subtle by default in body/search context; the
   .wd-crt panel turns it into a fuller green-screen phosphor look. */

/* Soft phosphor highlight — search hits, emphasised tokens. */
.wd-mark {
  background: var(--brand-100); color: var(--brand-900);
  border-radius: 3px; padding: .5px 3px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.wd-mark--glow { box-shadow: 0 0 0 1px var(--brand-200); text-shadow: 0 0 7px rgba(29,102,99,.35); }

/* Inline reference token — monospace in Textfarbe (Phase 2). Unterstrichen nur, wenn verlinkt. */
.wd-ref {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: .9em; line-height: 1.2;
  color: var(--text); background: var(--bg-subtle);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 1px 7px; vertical-align: baseline;
  transition: background .12s, border-color .12s, color .12s;
}
.wd-ref > svg { width: 13px; height: 13px; flex: none; opacity: .75; }
a.wd-ref { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--border-strong); }
a.wd-ref:hover, .wd-ref[data-active="true"] { border-color: var(--border-strong); text-decoration-color: currentColor; }

/* Blinking block caret — "live" command-line states. */
.wd-caret {
  display: inline-block; width: .5em; height: 1.05em; margin-left: 1px;
  vertical-align: text-bottom; background: var(--brand-600); border-radius: 1px;
  animation: wd-blink 1.1s steps(1, end) infinite;
}
@keyframes wd-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wd-caret { animation: none; } }

/* Green-screen terminal panel — the fuller retro look. */
.wd-crt {
  font-family: var(--font-mono); font-size: var(--text-sm); line-height: 1.7;
  color: #5fe3cf; background: #0c2120; border: 1px solid #15403c;
  border-radius: var(--r-md); padding: var(--space-4) var(--space-5);
  text-shadow: 0 0 8px rgba(95,227,207,.45); position: relative; overflow: hidden;
}
.wd-crt::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  mix-blend-mode: multiply;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px);
}
.wd-crt .wd-prompt { color: rgba(174,246,232,.55); user-select: none; margin-right: 2px; }
.wd-crt .wd-mark { background: rgba(95,227,207,.18); color: #d6fff6; box-shadow: none; text-shadow: 0 0 8px rgba(95,227,207,.6); }
.wd-crt .wd-ref { color: #aef6e8; background: rgba(95,227,207,.08); border-color: rgba(95,227,207,.35); text-shadow: 0 0 7px rgba(95,227,207,.5); }
.wd-crt .wd-ref:hover { background: rgba(95,227,207,.16); border-color: rgba(95,227,207,.6); box-shadow: 0 0 14px -3px rgba(95,227,207,.6); }
.wd-crt .wd-caret { background: #5fe3cf; box-shadow: 0 0 8px rgba(95,227,207,.7); }

/* ---------- Phase 2: Menüeintrag, unbestimmter Fortschritt ---------- */
.wd-menu-item:hover { background: var(--bg-subtle); }
.wd-menu-item--danger:hover { background: var(--st-red-bg); }
.wd-indeterminate { position: absolute; left: 0; top: 0; animation: wd-indet 1.2s ease-in-out infinite; }
@keyframes wd-indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) { .wd-indeterminate { animation: none; width: 100% !important; opacity: .5; } }

/* ---------- Misc ---------- */
.wd-divider { height: 1px; background: var(--border); border: none; }
.wd-kbd { font-family: var(--font-mono); font-size: 11px; padding: 2px 6px; background: var(--bg-subtle); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: var(--r-sm); color: var(--text-muted); }
