/* ============================================================
   wohlbefinden-panel.css — Akhilius' Ledger im Claw-Akh-Dashboard
   v1 (2026-05-24): Vitals & Recovery — 10 Sub-Sektionen, single-mount,
   localStorage-Persistenz, Theme-Vars exakt auf Dashboard gemapped
   (--bg-card, --ink, --border, --accent etc. + 16 explizite Dark-Mode-
   Tunings am Ende).
   ============================================================ */

.wb-panel {
  --wb-gap: 1rem;
  --wb-radius: 8px;
  color: var(--ink);
  font-family: var(--font-body);
  padding: 0 8px 80px;
}

.wb-panel * { box-sizing: border-box; }

/* ── Sub-Tab Nav für die 10 Sektionen ────────────────────────── */
.wb-tabnav {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 0 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  margin: 6px 0 22px;
  min-height: 44px;
  box-shadow: var(--shadow);
}
.wb-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.85rem;
  height: 42px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-dimmer);
  cursor: pointer;
  border: none;
  background: none;
  position: relative;
  white-space: nowrap;
  transition: color 200ms;
  text-decoration: none;
}
.wb-tab:hover { color: var(--ink-dim); }
.wb-tab.is-active { color: var(--accent); }
.wb-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14%; right: 14%;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  animation: wb-underline 320ms cubic-bezier(0.16,1,0.3,1);
}
.wb-tab-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink-dimmer);
  font-weight: 600;
}
.wb-tab.is-active .wb-tab-num { color: var(--accent); opacity: 0.7; }
@keyframes wb-underline {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}

/* ── Status-Strip (oberhalb Sub-Nav) ─────────────────────────── */
.wb-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  padding: 0.55rem 0.85rem;
  margin: 0 0 8px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
}
.wb-statusbar-left { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.wb-statusbar-stat strong { color: var(--ink); font-weight: 600; }
.wb-statusbar-right { display: flex; gap: 6px; flex-wrap: wrap; }
.wb-tiny-btn {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  transition: all 0.15s;
}
.wb-tiny-btn:hover { color: var(--accent); border-color: var(--accent); }
.wb-tiny-btn.is-danger:hover { color: var(--danger); border-color: var(--danger); }

/* ── View Shell ─────────────────────────────────────────────── */
.wb-view { width: 100%; }
.wb-section { display: none; animation: wb-reveal 360ms cubic-bezier(0.16,1,0.3,1); }
.wb-section.is-active { display: block; }
@keyframes wb-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero (pro Sektion) ────────────────────────────────────── */
.wb-hero {
  position: relative;
  padding: 1.4rem 0 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}
.wb-hero::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 14%, transparent 14%);
}
.wb-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  margin-bottom: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.wb-eyebrow .wb-prefix { color: var(--accent); font-weight: 500; }
.wb-eyebrow .wb-sep { color: var(--ink-dimmer); opacity: 0.6; }
.wb-title {
  font-family: var(--font-display);
  font-weight: 360;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  max-width: 22ch;
}
.wb-title em { font-style: italic; color: var(--accent); font-weight: 360; }
.wb-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink-dim);
  font-size: 0.96rem;
  margin-top: 0.5rem;
  max-width: 56ch;
  line-height: 1.5;
}
.wb-hero-img {
  position: absolute;
  top: 50%; right: 0;
  transform: translateY(-50%);
  width: 220px; height: 150px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  opacity: 0.32;
  pointer-events: none;
  z-index: -1;
  mask-image: linear-gradient(90deg, transparent, black 40%);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 40%);
}
@media (max-width: 920px) { .wb-hero-img { display: none; } }

/* ── Section-Marker ─────────────────────────────────────────── */
.wb-marker {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 0 0 0.85rem;
}
.wb-marker::before { content: '~ '; opacity: 0.85; }
.wb-marker-note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-dim);
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* ── Card ───────────────────────────────────────────────────── */
.wb-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--wb-radius);
  padding: 1.05rem 1.15rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.wb-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 1.5px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 240ms;
}
.wb-card:hover::before { opacity: 1; }
.wb-card-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.55rem;
  color: var(--ink);
}
.wb-card-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}

/* ── Grids ──────────────────────────────────────────────────── */
.wb-grid { display: grid; gap: var(--wb-gap); }
.wb-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.wb-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.wb-grid-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* ── Status-Strip (innerhalb Sections) ─────────────────────── */
.wb-strip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-dim);
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.wb-strip .wb-streak { color: var(--accent); font-weight: 600; }
.wb-strip strong { color: var(--ink); }

/* ── Inputs ────────────────────────────────────────────────── */
.wb-input, .wb-select, .wb-textarea {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--bg-input);
  border: 1px solid var(--border-heavy);
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  width: 100%;
}
.wb-input:focus, .wb-select:focus, .wb-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.wb-input.wb-num-lg {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 600;
  text-align: center;
  padding: 0.4rem 0.5rem;
  letter-spacing: -0.01em;
}
.wb-input.wb-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wb-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  display: block;
  margin-bottom: 0.3rem;
}
.wb-row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.wb-row > * { min-width: 0; }
.wb-field { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; min-width: 120px; }

/* ── Buttons ───────────────────────────────────────────────── */
.wb-btn {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border-heavy);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--ink);
  cursor: pointer;
  transition: all 150ms;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.wb-btn:hover { border-color: var(--accent); color: var(--accent); }
.wb-btn:active { transform: scale(0.97); }
.wb-btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.wb-btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.wb-btn-pill {
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}
.wb-btn-pill:hover { background: var(--accent-soft); }
.wb-btn-ghost { background: none; border: 1px dashed var(--border-heavy); color: var(--ink-dim); }
.wb-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.wb-btn-danger:hover { color: var(--danger); border-color: var(--danger); }

/* ── Checkbox ──────────────────────────────────────────────── */
.wb-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.wb-check input { position: absolute; opacity: 0; pointer-events: none; }
.wb-cb {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border-heavy);
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--bg-input);
  position: relative;
  transition: all 150ms;
}
.wb-check:hover .wb-cb { border-color: var(--accent); }
.wb-check input:checked + .wb-cb { background: var(--accent); border-color: var(--accent); }
.wb-check input:checked + .wb-cb::after {
  content: '';
  position: absolute;
  top: 2px; left: 5px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}
.wb-check.is-skipped .wb-cb { background: var(--bg-hover); border-style: dashed; }
.wb-check.is-skipped .wb-cb::after {
  content: '';
  position: absolute;
  top: 7px; left: 2.5px;
  width: 11px; height: 1.5px;
  background: var(--ink-dimmer);
}

/* ── Pills ─────────────────────────────────────────────────── */
.wb-pill {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-heavy);
  background: transparent;
  color: var(--ink-dim);
  white-space: nowrap;
}
.wb-pill.tone-ok    { background: var(--success-soft); color: var(--success); border-color: transparent; }
.wb-pill.tone-warn  { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.wb-pill.tone-err   { background: var(--danger-soft);  color: var(--danger);  border-color: transparent; }
.wb-pill.tone-accent{ background: var(--accent-soft);  color: var(--accent);  border-color: transparent; }
.wb-pill.tone-info  { background: var(--info-soft);    color: var(--info);    border-color: transparent; }

/* ── Tag ───────────────────────────────────────────────────── */
.wb-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-dim);
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  cursor: pointer;
}
.wb-tag:hover { color: var(--accent); border-color: var(--accent); }
.wb-tag.is-on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ── Big numbers ───────────────────────────────────────────── */
.wb-big {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.wb-big.is-accent { color: var(--accent); }
.wb-big.is-warn   { color: var(--warning); }
.wb-big.is-err    { color: var(--danger); }
.wb-big.is-ok     { color: var(--success); }
.wb-big-sm { font-size: 1.55rem; }
.wb-big-xl { font-size: 2.85rem; }
.wb-unit {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  margin-left: 0.3rem;
}
.wb-delta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
  margin-top: 0.35rem;
  letter-spacing: 0.03em;
}
.wb-delta.is-ok   { color: var(--success); }
.wb-delta.is-err  { color: var(--danger); }
.wb-delta.is-warn { color: var(--warning); }

/* ── Progress ──────────────────────────────────────────────── */
.wb-progress {
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 0.4rem 0;
}
.wb-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width 220ms;
}
.wb-progress-fill.is-ok   { background: var(--success); }
.wb-progress-fill.is-warn { background: var(--warning); }
.wb-progress-fill.is-err  { background: var(--danger); }

/* ── Stars ─────────────────────────────────────────────────── */
.wb-stars { display: inline-flex; gap: 3px; }
.wb-star {
  cursor: pointer;
  color: var(--border-heavy);
  font-size: 1.05rem;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-serif);
}
.wb-star.is-on { color: var(--accent); }
.wb-star:hover { color: var(--accent-hover); }

/* ── Slider ────────────────────────────────────────────────── */
.wb-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-pill);
  outline: none;
  margin: 0.4rem 0;
}
.wb-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg);
}
.wb-slider::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg);
}
.wb-slider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
}
.wb-slider-row strong { color: var(--ink); font-weight: 600; }

/* ── Heatmap ───────────────────────────────────────────────── */
.wb-heatmap-row { margin-bottom: 0.45rem; }
.wb-heatmap-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-dim);
  margin-bottom: 0.2rem;
  display: flex;
  justify-content: space-between;
}
.wb-heatmap {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 2px;
}
.wb-heatmap .wb-cell {
  aspect-ratio: 1;
  background: var(--border);
  border-radius: 2px;
  position: relative;
  cursor: default;
}
.wb-heatmap .wb-cell.is-full { background: var(--accent); }
.wb-heatmap .wb-cell.is-half { background: var(--accent); opacity: 0.45; }
.wb-heatmap .wb-cell.is-skip {
  background: var(--bg);
  border: 1px dashed var(--border-heavy);
  background-image: linear-gradient(45deg, transparent 45%, var(--border-heavy) 45%, var(--border-heavy) 55%, transparent 55%);
}
.wb-heatmap .wb-cell.is-today { outline: 1.5px solid var(--accent); outline-offset: 1px; }

/* ── Lab-Row ───────────────────────────────────────────────── */
.wb-lab-row {
  display: grid;
  grid-template-columns: 24px minmax(140px, 1.4fr) minmax(90px, 1fr) 96px 80px;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.wb-lab-row:last-child { border-bottom: none; }
.wb-lab-name { font-weight: 600; color: var(--ink); font-size: 0.86rem; }
.wb-lab-range {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink-dimmer);
  letter-spacing: 0.02em;
}
.wb-lab-input { display: flex; align-items: baseline; gap: 0.25rem; }
.wb-lab-input input {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  background: transparent;
  border: none;
  border-bottom: 1px dashed var(--border-heavy);
  padding: 0.15rem 0.2rem;
  width: 60px;
  font-size: 0.92rem;
  color: var(--ink);
  text-align: right;
}
.wb-lab-input input:focus { outline: none; border-color: var(--accent); }
.wb-lab-input .wb-lab-unit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-dim);
}
.wb-lab-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-dim);
}
.wb-lab-date input {
  background: transparent;
  border: none;
  color: var(--ink-dim);
  font-family: inherit;
  font-size: 0.7rem;
  padding: 0;
  width: 100%;
}
.wb-lab-date input:focus { outline: none; color: var(--accent); }
@media (max-width: 680px) {
  .wb-lab-row { grid-template-columns: 24px 1fr; row-gap: 0.3rem; }
  .wb-lab-row > *:nth-child(n+3) { grid-column: 1 / -1; padding-left: 32px; }
}

/* ── Defect-Card (Mängel) ──────────────────────────────────── */
.wb-defect {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--wb-radius);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: var(--shadow);
}
.wb-defect-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}
.wb-defect-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.wb-defect-info {
  padding: 0.5rem 0.7rem;
  background: var(--bg);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-dim);
  line-height: 1.5;
  border-left: 2px solid var(--accent);
}
.wb-defect-info strong { color: var(--ink); font-weight: 600; }
.wb-defect-why {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--ink-dim);
  line-height: 1.5;
}
.wb-defect-why::before {
  content: '∗  ';
  color: var(--accent);
  font-style: normal;
  opacity: 0.75;
}

/* ── Quote-Card ────────────────────────────────────────────── */
.wb-quote-card {
  position: relative;
  background: linear-gradient(135deg, var(--bg-card), var(--accent-soft));
  border: 1px solid var(--border);
  border-radius: var(--wb-radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.wb-quote-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink);
}
.wb-quote-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-dimmer);
  letter-spacing: 0.08em;
}
.wb-quote-card svg { width: 36px; height: 36px; color: var(--accent); opacity: 0.7; }

/* ── Timeline (Roadmap) ────────────────────────────────────── */
.wb-timeline { position: relative; padding-left: 36px; margin-top: 0.5rem; }
.wb-timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  border-left: 1px dashed var(--border-heavy);
}
.wb-tl-node { position: relative; padding: 0 0 1.4rem; }
.wb-tl-node::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 18px;
  width: 14px; height: 14px;
  background: var(--bg);
  border: 2.5px solid var(--accent);
  border-radius: 50%;
}
.wb-tl-node.is-done::before { background: var(--accent); }

/* ── Tagebuch-Entry ────────────────────────────────────────── */
.wb-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  box-shadow: var(--shadow);
}
.wb-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.wb-entry-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.wb-entry-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.wb-entry-text {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.55;
  white-space: pre-wrap;
}

/* ── Stack-Item (Editor) ──────────────────────────────────── */
.wb-stack-item {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border);
}
.wb-stack-item:last-child { border-bottom: none; }
.wb-stack-item input {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 0.2rem 0.3rem;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}
.wb-stack-item input:hover { border-bottom-color: var(--border-heavy); }
.wb-stack-item input:focus { outline: none; border-bottom-color: var(--accent); }
.wb-stack-item .wb-stack-dose {
  flex: 0 0 120px;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.wb-stack-item .wb-stack-rm {
  background: none;
  border: none;
  color: var(--ink-dimmer);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.2rem 0.4rem;
  line-height: 1;
}
.wb-stack-item .wb-stack-rm:hover { color: var(--danger); }

/* ── Booster-Grid ──────────────────────────────────────────── */
.wb-booster {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--font-ui);
  transition: all 150ms;
}
.wb-booster:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.wb-booster-name { font-weight: 600; font-size: 0.85rem; color: var(--ink); }
.wb-booster-vals {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}

/* ── Sparkline ─────────────────────────────────────────────── */
.wb-spark { width: 100%; height: 30px; display: block; }

/* ── Empty-State ───────────────────────────────────────────── */
.wb-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
}
.wb-empty::before {
  display: block;
  content: '∗';
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-style: normal;
  opacity: 0.7;
}

/* ── Print ─────────────────────────────────────────────────── */
@media print {
  .wb-tabnav, .wb-statusbar, .wb-hero-img { display: none !important; }
  .wb-section { display: none !important; }
  .wb-section.print-active { display: block !important; }
  .wb-card, .wb-defect { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* ============================================================
   Dark-Mode-Tunings — 16 explizite Overrides damit der Tab im
   Dark-Mode genauso elegant wirkt wie im Light-Mode. CSS-Vars
   schalten automatisch via [data-theme="dark"] in index.html.
   ============================================================ */
[data-theme="dark"] .wb-panel .wb-tabnav {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.35), 0 6px 22px rgba(0,0,0,0.30);
}
[data-theme="dark"] .wb-panel .wb-card {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.35), 0 6px 22px rgba(0,0,0,0.35);
}
[data-theme="dark"] .wb-panel .wb-card:hover::before {
  box-shadow: 0 0 8px var(--accent-glow);
}
[data-theme="dark"] .wb-panel .wb-defect,
[data-theme="dark"] .wb-panel .wb-entry,
[data-theme="dark"] .wb-panel .wb-strip {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.35), 0 6px 22px rgba(0,0,0,0.30);
}
[data-theme="dark"] .wb-panel .wb-quote-card {
  background: linear-gradient(135deg, var(--bg-card), var(--accent-soft));
  border-color: var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.35), 0 8px 24px rgba(0,0,0,0.35);
}
[data-theme="dark"] .wb-panel .wb-booster {
  background: var(--bg-card);
  border-color: var(--border);
}
[data-theme="dark"] .wb-panel .wb-booster:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
[data-theme="dark"] .wb-panel .wb-input,
[data-theme="dark"] .wb-panel .wb-select,
[data-theme="dark"] .wb-panel .wb-textarea {
  background: var(--bg-input);
  border-color: var(--border-heavy);
  color: var(--ink);
}
[data-theme="dark"] .wb-panel .wb-cb {
  background: var(--bg-input);
  border-color: var(--border-heavy);
}
[data-theme="dark"] .wb-panel .wb-check.is-skipped .wb-cb {
  background: var(--bg-hover);
}
[data-theme="dark"] .wb-panel .wb-btn {
  background: var(--bg-card);
  border-color: var(--border-heavy);
  color: var(--ink);
}
[data-theme="dark"] .wb-panel .wb-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
[data-theme="dark"] .wb-panel .wb-btn-ghost {
  border-color: var(--border-heavy);
  color: var(--ink-dim);
}
[data-theme="dark"] .wb-panel .wb-tab.is-active {
  color: var(--accent);
}
[data-theme="dark"] .wb-panel .wb-tab.is-active::after {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}
[data-theme="dark"] .wb-panel .wb-pill {
  border-color: var(--border-heavy);
}
[data-theme="dark"] .wb-panel .wb-tag {
  background: var(--bg-card);
  border-color: var(--border);
}
[data-theme="dark"] .wb-panel .wb-tag.is-on {
  background: var(--accent-soft);
  border-color: var(--accent);
}
[data-theme="dark"] .wb-panel .wb-tl-node::before {
  background: var(--bg);
  box-shadow: 0 0 6px var(--accent-glow);
}
[data-theme="dark"] .wb-panel .wb-tl-node.is-done::before {
  background: var(--accent);
}
[data-theme="dark"] .wb-panel .wb-heatmap .wb-cell {
  background: var(--bg-hover);
}
[data-theme="dark"] .wb-panel .wb-heatmap .wb-cell.is-full {
  background: var(--accent);
}
[data-theme="dark"] .wb-panel .wb-heatmap .wb-cell.is-skip {
  background: var(--bg);
  border-color: var(--border-heavy);
}
[data-theme="dark"] .wb-panel .wb-lab-input input {
  border-bottom-color: var(--border-heavy);
}
[data-theme="dark"] .wb-panel .wb-tiny-btn {
  border-color: var(--border);
  color: var(--ink-dim);
}
