/* TRAINR V21 – Basis, Komponenten und Ansichten. Mobile first. */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(16px * var(--font-scale)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); background-image: var(--bg-grad); background-attachment: fixed;
  color: var(--ink); font: 1rem/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent; font-feature-settings: "tnum" 0;
}
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
/* Überschriften wie im Spielbericht: schmal, fett, Versalien. */
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
h1, h2 { font-stretch: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 9vw, 3.2rem); line-height: .92; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.05rem; font-weight: 700; font-stretch: var(--semi); letter-spacing: -.005em; }
p { margin: .4rem 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- App-Rahmen ---------- */
.app { min-height: 100dvh; display: flex; flex-direction: column; }
.appbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--s-2);
  min-height: calc(var(--appbar-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) var(--s-4) 0;
  background: var(--bg); border-bottom: 1px solid transparent; transition: border-color var(--dur-2);
}
.appbar.scrolled { border-bottom-color: var(--rule); }
/* Wortmarke: Gelbe Karte + schmales TRAINR */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; font-stretch: var(--cond); font-weight: 900; font-size: 1.45rem; letter-spacing: .01em; line-height: 1; }
.brand-mark { position: relative; width: 18px; height: 25px; border-radius: 2px; background: var(--signal); transform: rotate(-8deg); box-shadow: 2px 2px 0 var(--ink); flex: none; }
.brand-word { padding-top: 2px; }
.appbar-title { flex: 1; min-width: 0; font-stretch: var(--cond); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity var(--dur-2), transform var(--dur-2); }
.appbar.scrolled .appbar-title { opacity: 1; transform: none; }
.appbar-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.team-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 46vw; min-height: 36px; padding: 4px 12px 4px 4px; border-radius: var(--r-sm);
  border: 1.5px solid var(--rule); background: transparent; font-stretch: var(--semi); font-weight: 800; font-size: .85rem; letter-spacing: .02em; text-transform: uppercase; cursor: pointer;
}
.team-chip .dot { width: 22px; height: 22px; margin-left: 0; border-radius: 2px; background: var(--team-color, var(--ink)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); flex: none; }
.team-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: var(--s-2) var(--s-4) calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 32px); }
.view { animation: view-in var(--dur-3) var(--ease-out); }
.view[data-dir="back"] { animation-name: view-in-back; }
@keyframes view-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes view-in-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
:root[data-motion="reduced"] .view { animation: fade-in 120ms linear; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Tab-Leiste: schwarzes Band, aktiver Tab mit gelber Kante */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 0 4px env(safe-area-inset-bottom, 0px); background: #14130e; color: #f6f3ea; border-top: 1px solid #14130e;
}
:root[data-theme="dark"] .tabbar { background: #0a0a08; border-top-color: var(--line); }
.tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: var(--tabbar-h);
  border: 0; background: none; border-radius: 0; color: #9c988a; font-stretch: var(--semi); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; z-index: 1;
}
.tab svg { width: 23px; height: 23px; transition: transform var(--dur-2) var(--ease-spring); }
.tab[aria-current="page"] { color: #fff; }
.tab[aria-current="page"] svg { color: var(--signal); }
.tab .tab-badge { position: absolute; top: 10px; right: calc(50% - 20px); min-width: 8px; height: 8px; border-radius: 0; background: var(--red-card); }
.tab-indicator {
  position: absolute; z-index: 0; top: 0; height: 4px; background: var(--signal);
  width: calc((100% - 8px) / 5); left: 4px; transform: translateX(calc(var(--tab, 0) * 100%)); transition: transform var(--dur-3) var(--ease-out);
}
.tab-live-dot { position: absolute; top: 10px; right: calc(50% - 18px); width: 9px; height: 9px; border-radius: 50%; background: var(--red-card); box-shadow: 0 0 0 3px #14130e; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.35); opacity: .7; } }

@media (min-width: 1024px) {
  .app { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .appbar { grid-column: 2; }
  main { grid-column: 2; padding: var(--s-4) var(--s-8) var(--s-10); }
  .tabbar { position: sticky; top: 0; grid-row: 1 / span 2; grid-column: 1; height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 2px; border-top: 0; padding: 12px 0; }
  .tab { min-height: 72px; }
  .tab-indicator { display: none; }
  .tab[aria-current="page"] { box-shadow: inset 4px 0 0 var(--signal); background: rgba(255, 255, 255, .05); }
}

/* ---------- Typo-Bausteine ---------- */
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 800; font-stretch: var(--semi); color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.tiny { font-size: .75rem; color: var(--ink-3); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); margin: var(--s-3) 0 var(--s-5); padding-bottom: var(--s-3); border-bottom: 3px solid var(--rule); flex-wrap: wrap; }
.page-head h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); }
/* Abschnittskopf: dicke Linie oben wie eine Tabellenzeile im Spielbericht */
.section { margin: var(--s-8) 0 var(--s-3); padding-top: 8px; border-top: 3px solid var(--rule); display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.section h2 { font-size: 1.4rem; }
.stack { display: grid; gap: var(--s-3); }
.row { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--s-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--touch); padding: 10px 18px;
  border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 750; font-stretch: var(--semi); letter-spacing: .01em; cursor: pointer;
  text-decoration: none; transition: transform var(--dur-1), background var(--dur-2), border-color var(--dur-2), box-shadow var(--dur-2); user-select: none; touch-action: manipulation;
}
.btn:hover { border-color: var(--rule); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: default; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primary { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary, .btn.accent { text-transform: uppercase; letter-spacing: .04em; font-weight: 800; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-3); border-color: transparent; }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.block { width: 100%; }
.btn.lg { min-height: 58px; font-size: 1.1rem; border-radius: var(--r-md); }
.btn.sm { min-height: 38px; padding: 6px 12px; font-size: .88rem; border-radius: var(--r-sm); }
.icon-btn { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: var(--r-sm); border: 0; background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn svg { width: 22px; height: 22px; }
.fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 16px); z-index: 35;
  height: 56px; padding: 0 20px 0 16px; border-radius: var(--r-md); border: 2px solid var(--ink); background: var(--accent); color: var(--on-accent); font-weight: 800; font-stretch: var(--semi); text-transform: uppercase; letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 8px; box-shadow: 4px 4px 0 var(--ink); cursor: pointer;
}
.fab svg { width: 22px; height: 22px; }
@media (min-width: 1024px) { .fab { bottom: 24px; } }

/* ---------- Formulare ---------- */
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: var(--s-3) 0; }
.field > span, .label { font-size: .72rem; font-weight: 800; font-stretch: var(--semi); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; min-height: var(--touch); padding: 10px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2);
  background: var(--surface); color: var(--ink); transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--rule); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 70%, transparent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.error { color: var(--danger); font-size: .88rem; font-weight: 650; min-height: 1.2em; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.search .input { padding-left: 44px; border-color: var(--rule); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch-row:last-child { border-bottom: 0; }
.switch-row > span { display: grid; gap: 2px; }
.switch-row small { color: var(--ink-3); font-size: .8rem; font-weight: 500; }
.switch { appearance: none; -webkit-appearance: none; position: relative; width: 50px; height: 28px; border-radius: var(--r-sm); background: var(--line-2); flex: none; cursor: pointer; transition: background var(--dur-2); margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 2px; background: #fff; transition: transform var(--dur-2) var(--ease-spring); }
.switch:checked { background: var(--fill); }
.switch:checked::after { transform: translateX(22px); background: var(--signal); }
:root[data-theme="dark"] .switch:checked::after { background: #14130e; }
.seg { display: inline-flex; padding: 0; gap: 0; border-radius: var(--r-sm); border: 1.5px solid var(--rule); background: transparent; flex-wrap: wrap; overflow: hidden; }
.seg button { min-height: 40px; padding: 6px 14px; border: 0; border-left: 1.5px solid var(--line-2); border-radius: 0; background: transparent; font-weight: 750; font-stretch: var(--semi); color: var(--ink-2); cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"], .seg button[aria-checked="true"] { background: var(--fill); color: var(--on-fill); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 0; font-size: 1.3rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--surface-3); }
.stepper button:disabled { opacity: .3; }
.stepper output, .stepper input { min-width: 64px; text-align: center; font-weight: 800; font-stretch: var(--cond); font-size: 1.25rem; font-variant-numeric: tabular-nums; border: 0; background: transparent; width: 72px; }
.stepper input::-webkit-inner-spin-button { display: none; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: var(--s-2); }
.choice {
  position: relative; display: grid; gap: 4px; padding: 16px; border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--surface);
  cursor: pointer; min-height: 72px; transition: border-color var(--dur-1), transform var(--dur-1);
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--rule); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--rule), inset 6px 0 0 var(--signal); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice strong { font-size: 1rem; }
.choice small { color: var(--ink-3); }
.choice .choice-icon { font-size: 1.4rem; }

/* ---------- Chips, Tags, Badges ---------- */
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2);
  background: transparent; font-weight: 750; font-stretch: var(--semi); font-size: .86rem; white-space: nowrap; cursor: pointer; scroll-snap-align: start; color: var(--ink-2);
}
.chip:hover { border-color: var(--rule); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--fill); color: var(--on-fill); border-color: var(--fill); }
.chip .count { font-size: .75rem; opacity: .7; font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: var(--r-xs); background: var(--surface-3); color: var(--ink-2); font-size: .68rem; font-weight: 800; font-stretch: var(--semi); letter-spacing: .08em; text-transform: uppercase; }
.tag.keeper { background: var(--keeper); color: var(--keeper-ink); }
.tag.both { background: linear-gradient(90deg, var(--surface-3) 50%, var(--keeper) 50%); color: var(--ink); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.custom { background: var(--accent); color: var(--on-accent); }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-xs); background: var(--fill); color: var(--on-fill); font-size: .75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.keeper-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--keeper); vertical-align: middle; }
.stars { display: inline-flex; gap: 2px; }
.stars button { width: 40px; height: 40px; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--line-2); cursor: pointer; padding: 0; }
.stars button[aria-pressed="true"] { color: #e7a614; }
.stars-inline { color: #e7a614; font-size: .8rem; letter-spacing: 1px; }

/* ---------- Karten, Listen ---------- */
.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: var(--s-4); }
.card.flat { box-shadow: none; }
.card.tint { background: var(--surface-2); }
.list { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line-2); border-top: 2px solid var(--rule); border-radius: 0 0 var(--r-md) var(--r-md); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: var(--s-3); min-height: 60px; padding: 10px var(--s-4); border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; width: 100%; cursor: pointer; color: inherit; }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: var(--surface-2); }
.list-item .grow strong { display: block; font-weight: 750; }
.list-item .grow small { color: var(--ink-3); }
.list-item svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.list-item[aria-current="true"] { background: var(--surface-2); box-shadow: inset 4px 0 0 var(--signal); }
.empty { padding: var(--s-8) var(--s-4); text-align: center; color: var(--ink-2); border: 1.5px dashed var(--line-2); border-radius: var(--r-md); }
.empty h3 { margin-bottom: 6px; color: var(--ink); font-stretch: var(--cond); font-size: 1.4rem; font-weight: 800; text-transform: uppercase; }
.notice { padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line-2); border-left: 4px solid var(--rule); font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; }
.notice.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; border-left-color: var(--warn); }
.notice.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; border-left-color: var(--ok); }
.notice.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; border-left-color: var(--danger); }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
details.disclosure { border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); }
details.disclosure > summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px var(--s-4); font-weight: 800; font-stretch: var(--semi); }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::after { content: "+"; font-size: 1.5rem; font-weight: 500; line-height: 1; width: 20px; text-align: center; transition: transform var(--dur-2); }
details.disclosure[open] > summary::after { transform: rotate(45deg); }
details.disclosure > .body { padding: 0 var(--s-4) var(--s-4); }

/* ---------- Hero / Heute: Spielbericht-Kopf ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-md); padding: var(--s-5); background: var(--hero); color: var(--hero-ink);
  isolation: isolate; border-top: 6px solid var(--signal);
}
/* Mittelkreis-Anschnitt als stilles Wasserzeichen */
.hero::before { content: ""; position: absolute; right: -110px; top: -110px; width: 220px; height: 220px; border-radius: 50%; border: 2px solid var(--hero-line); z-index: -1; }
.hero::after { content: ""; position: absolute; right: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--hero-line); z-index: -1; }
.hero .eyebrow { color: var(--signal); }
.hero h2 { font-size: clamp(2rem, 9vw, 3rem); line-height: .92; margin: 8px 0 6px; color: var(--hero-ink); max-width: 18ch; }
.hero .muted { color: var(--hero-muted); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: var(--s-5) 0 var(--s-4); border-top: 1px solid var(--hero-line); border-bottom: 1px solid var(--hero-line); }
.hero-stats div { padding: 10px 12px 8px; border-left: 1px solid var(--hero-line); }
.hero-stats div:first-child { border-left: 0; padding-left: 0; }
.hero-stats strong { display: block; font-size: 2.6rem; line-height: 1; font-weight: 800; font-stretch: var(--cond); font-variant-numeric: tabular-nums; color: var(--hero-ink); }
.hero-stats small { color: var(--hero-muted); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero .btn { border-color: var(--hero-line); background: transparent; color: var(--hero-ink); }
.hero .btn:hover { border-color: var(--hero-ink); }
.hero .btn.accent { background: var(--signal); color: var(--on-signal); border-color: var(--signal); white-space: nowrap; }
.hero-bar { height: 10px; background: rgba(255, 255, 255, .08); overflow: hidden; display: flex; gap: 3px; margin-top: 4px; }
.hero-bar i { display: block; height: 100%; background: var(--signal); }
.hero-bar i:nth-child(2n) { background: var(--hero-ink); }
.hero-warn { margin-top: 10px; color: var(--signal); }
/* Ablauf als Spielbericht-Tabelle: Zeit | Übung | Minuten */
.timeline { display: grid; gap: 0; border-bottom: 1px solid var(--line-2); counter-reset: tl; }
.tl-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-radius: 0; background: transparent; border: 0; border-top: 1px solid var(--line-2); cursor: pointer; text-align: left; width: 100%; color: inherit; }
.tl-item:first-child { border-top: 0; }
.tl-item:hover { background: var(--surface-2); }
.tl-item .tl-time { font-variant-numeric: tabular-nums; font-weight: 800; font-stretch: var(--semi); font-size: .8rem; line-height: 1.2; color: var(--ink-2); }
.tl-item strong { display: block; font-weight: 750; }
.tl-item small { color: var(--ink-3); }
.tl-item .min { font-weight: 800; font-stretch: var(--cond); font-size: 1.35rem; font-variant-numeric: tabular-nums; }

/* ---------- Bibliothek ---------- */
.lib-tools { position: sticky; top: calc(var(--appbar-h) + env(safe-area-inset-top, 0px)); z-index: 20; padding: 8px 0 4px; margin: 0 -4px; padding-inline: 4px; background: var(--bg); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: var(--s-4); }
.drill {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md);
  overflow: hidden; cursor: pointer; transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2), box-shadow var(--dur-2); content-visibility: auto; contain-intrinsic-size: 330px;
}
.drill:hover { border-color: var(--rule); box-shadow: 4px 4px 0 var(--rule); transform: translate(-2px, -2px); }
.drill:active { transform: none; box-shadow: none; }
.drill .pitch-scene { border-radius: 0; margin: 0; }
.drill-body { padding: 12px 14px 6px; display: grid; gap: 6px; align-content: start; }
.drill-body h3 { font-size: 1.15rem; font-stretch: var(--cond); font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.drill-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .76rem; color: var(--ink-2); font-weight: 700; font-stretch: var(--semi); font-variant-numeric: tabular-nums; }
.drill-meta span { display: inline-flex; align-items: center; gap: 4px; }
.drill-meta svg { width: 14px; height: 14px; }
.drill-why { font-size: .78rem; color: var(--ok); font-weight: 700; }
.drill-why.bad { color: var(--warn); }
.drill-foot { display: flex; align-items: center; gap: 8px; padding: 6px 10px 10px 14px; }
.drill-foot .btn { margin-left: auto; }
.fav { position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; border-radius: var(--r-sm); border: 0; display: grid; place-items: center; background: rgba(20, 19, 14, .55); color: #fff; cursor: pointer; }
.fav svg { width: 22px; height: 22px; }
.fav[aria-pressed="true"] { color: var(--signal); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.drill.archived { opacity: .7; }
.drill[draggable="true"] { cursor: grab; }

/* ---------- Platzskizzen ---------- */
.pitch-scene { position: relative; overflow: hidden; border-radius: var(--r-sm); background: var(--pitch-2); aspect-ratio: 320 / 190; }
.drill .pitch-scene { aspect-ratio: 320 / 168; }
.pitch-scene svg { display: block; width: 100%; height: 100%; }
.pitch-turf { fill: var(--pitch); }
.pitch-stripes rect { fill: rgba(255, 255, 255, .04); }
.setup-boundary { fill: none; stroke: var(--pitch-line); stroke-width: 1.2; }
.pitch-route { fill: none; stroke: #fff; stroke-width: 1.6; stroke-dasharray: 5 4; opacity: .6; }
.pitch-player circle { fill: var(--player); stroke: #14130e; stroke-width: 2; }
.pitch-player text { font: 800 9px var(--font); fill: var(--player-ink); text-anchor: middle; }
.pitch-player.opponent circle { fill: var(--opponent); stroke: #14130e; }
.pitch-player.opponent text { fill: var(--opponent-ink); }
.pitch-player.goalkeeper circle { fill: var(--keeper) !important; stroke: #faf4ff !important; stroke-width: 2; }
.pitch-player.coach circle { fill: #14130e; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 3 2; }
.pitch-player.coach text { fill: var(--accent); }
.pitch-player.goalkeeper text { fill: #fff !important; }
.pitch-ball-static, .actor-ball, .sketch-ball { fill: #fff; stroke: #14130e; stroke-width: 2; }
.actor-ball { display: none; }
.motion-on .actor-ball { display: block; }
.motion-on .pitch-ball-static { display: none; }
.actor-ball { transform-box: fill-box; transform-origin: center; }
.motion-on .pitch-route { display: none; }
.mv-trail { fill: none; stroke-linecap: round; pointer-events: none; opacity: 0; }
.mv-trail.pass { stroke: var(--signal); stroke-width: 2.2; }
.mv-trail.dribble { stroke: #fff; stroke-width: 2.2; }
.mv-trail.run { stroke: #fff; stroke-width: 1.6; }
.setup-box { fill: rgba(255, 255, 255, .035); stroke: rgba(255, 255, 255, .7); stroke-width: 1.4; stroke-dasharray: 6 4; }
.setup-cone { fill: var(--cone); stroke: #6b2e05; stroke-width: 1; }
.setup-goal { fill: none; stroke: #fff; stroke-width: 2.2; }
.setup-zone rect { fill: rgba(255, 212, 0, .12); stroke: var(--signal); stroke-dasharray: 4 3; }
.sk-draft { fill: rgba(255, 212, 0, .12); stroke: var(--signal); stroke-dasharray: 4 3; pointer-events: none; }
.setup-zone text { font: 800 8px var(--font); fill: #fff; text-anchor: middle; }
.setup-line { stroke: #fff; stroke-width: 2.5; fill: none; }
.scene-step-label { font: 800 8px var(--font); fill: #fff; letter-spacing: 1px; }
.scene-active-player circle { stroke: #fff; stroke-width: 3; }
.is-moving circle { stroke: #fff; stroke-width: 3; }
.scene-label { position: absolute; left: 0; bottom: 0; max-width: 100%; padding: 3px 10px; border-radius: 0 var(--r-sm) 0 0; background: #14130e; color: #f6f3ea; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pitch-large { border-radius: var(--r-md); }

/* ---------- Sheets (Bottom-Sheets auf Basis von <dialog>) ---------- */
dialog.sheet {
  position: fixed; inset: auto 0 0 0; margin: 0 auto; width: 100%; max-width: 720px; max-height: min(92dvh, 900px); padding: 0;
  border: 0; border-top: 6px solid var(--rule); border-radius: var(--r-md) var(--r-md) 0 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3);
  overflow: hidden; display: flex; flex-direction: column;
}
dialog.sheet:not([open]) { display: none; }
dialog.sheet::backdrop { background: var(--scrim); }
dialog.sheet[open] { animation: sheet-in var(--dur-3) var(--ease-out); }
dialog.sheet[open]::backdrop { animation: fade-in var(--dur-2) linear; }
dialog.sheet.closing { animation: sheet-out var(--dur-2) ease-in forwards; }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-out { to { transform: translateY(100%); } }
dialog.sheet.dragging { animation: none; transition: none; }
.sheet-grab { flex: none; display: grid; place-items: center; height: 22px; cursor: grab; touch-action: none; }
.sheet-grab::before { content: ""; width: 40px; height: 4px; border-radius: 0; background: var(--line-2); }
.sheet-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 var(--s-3) var(--s-3) var(--s-5); }
.sheet-head h2 { flex: 1; min-width: 0; font-size: 1.6rem; line-height: 1; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--s-5) var(--s-5); -webkit-overflow-scrolling: touch; }
.sheet-foot { flex: none; display: flex; gap: var(--s-2); padding: var(--s-3) var(--s-5) calc(var(--s-3) + env(safe-area-inset-bottom, 0px)); border-top: 1.5px solid var(--rule); background: var(--surface); flex-wrap: wrap; }
.sheet-foot .btn { flex: 1; min-width: 120px; }
@media (min-width: 760px) {
  dialog.sheet { inset: 0; margin: auto; border-radius: var(--r-md); max-height: min(88dvh, 920px); }
  dialog.sheet.wide { max-width: 1040px; }
  dialog.sheet[open] { animation-name: pop-in; }
  dialog.sheet.closing { animation-name: pop-out; }
  .sheet-grab { display: none; }
  .sheet-head { padding-top: var(--s-4); }
}
@keyframes pop-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop-out { to { opacity: 0; transform: translateY(12px); } }

/* ---------- Toasts / Update-Leiste ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px); transform: translateX(-50%); z-index: 1000; display: grid; gap: 8px; width: min(94vw, 520px); pointer-events: none; }
@media (min-width: 1024px) { .toasts { bottom: 24px; } }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; min-height: 52px; border-radius: var(--r-sm);
  background: #14130e; color: #f6f3ea; border-left: 6px solid var(--signal); box-shadow: var(--shadow-3); font-weight: 650; font-size: .92rem; animation: toast-in var(--dur-3) var(--ease-spring);
}
:root[data-theme="dark"] .toast { background: #f6f3ea; color: #14130e; }
.toast .grow { flex: 1; }
.toast button { min-height: 40px; padding: 6px 12px; border-radius: var(--r-sm); border: 0; background: var(--signal); color: var(--on-signal); font-weight: 800; font-stretch: var(--semi); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.toast.out { animation: toast-out var(--dur-2) ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }
.update-bar { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 8px); left: 50%; transform: translateX(-50%); z-index: 1001; width: min(94vw, 560px); display: flex; gap: 10px; align-items: center; padding: 12px 12px 12px 16px; border-radius: var(--r-sm); background: var(--surface); border: 1.5px solid var(--rule); border-left: 6px solid var(--signal); box-shadow: var(--shadow-3); animation: toast-in var(--dur-3) var(--ease-out); }
.update-bar .grow strong { display: block; }
.update-bar .grow small { color: var(--ink-3); }

/* ---------- Planer ---------- */
.plan-layout { display: grid; gap: var(--s-4); }
@media (min-width: 1100px) { .plan-layout.with-lib { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); align-items: start; } .plan-side { position: sticky; top: 76px; max-height: calc(100dvh - 96px); overflow: auto; } }
.plan-header { display: grid; gap: 10px; }
.plan-title { width: 100%; border: 0; background: transparent; font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 800; font-stretch: var(--cond); text-transform: uppercase; line-height: 1; padding: 4px 0; text-overflow: ellipsis; border-bottom: 3px solid var(--rule); color: var(--ink); min-width: 0; }
.plan-title:focus { outline: none; border-bottom-color: var(--signal); }
.plan-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.fact { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: var(--r-sm); background: transparent; border: 1.5px solid var(--line-2); font-weight: 750; font-stretch: var(--semi); font-size: .86rem; cursor: pointer; color: inherit; }
.fact:hover { border-color: var(--rule); }
.fact svg { width: 16px; height: 16px; color: var(--ink-2); }
.budget { display: grid; gap: 6px; }
.budget-bar { position: relative; height: 14px; border-radius: 0; background: var(--surface-3); overflow: hidden; display: flex; gap: 2px; }
.budget-bar i { height: 100%; transition: width var(--dur-3) var(--ease-out); }
.budget-bar i:nth-child(2n+1) { background: var(--ink); } .budget-bar i:nth-child(2n) { background: var(--ink-2); }
:root[data-theme="dark"] .budget-bar i:nth-child(2n+1) { background: var(--signal); } :root[data-theme="dark"] .budget-bar i:nth-child(2n) { background: #c9aa00; }
.budget-bar .over { background: repeating-linear-gradient(45deg, var(--danger) 0 6px, transparent 6px 12px) !important; }
.budget-label { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 800; font-stretch: var(--semi); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.block {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 10px 12px 10px 10px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-md); touch-action: pan-y; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2);
}
.block.keeper-block { box-shadow: inset 5px 0 0 var(--keeper); }
.phase-tag { grid-column: 1 / -1; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 2px 2px 0; }
.block:has(> .phase-tag) { margin-top: 10px; }
.phase-tag.phase-einstieg { color: var(--ink-3); }
.phase-tag.phase-intensiv { color: var(--ink); }
.phase-tag.phase-schluss { color: var(--keeper); }
.block.lifted { z-index: 10; box-shadow: 6px 6px 0 var(--rule); border-color: var(--rule); transform: translate(-3px, -3px); transition: none; }
.block.placeholder { opacity: .35; }
.block.current { outline: 2px solid var(--rule); box-shadow: inset 5px 0 0 var(--signal); }
.block-handle { grid-row: span 2; display: grid; place-items: center; align-content: center; gap: 2px; width: 40px; min-height: 56px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--ink-3); cursor: grab; touch-action: none; }
.block-handle svg { width: 18px; height: 18px; }
.block-handle .num { font-weight: 800; font-stretch: var(--cond); font-size: 1.7rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.block-main { min-width: 0; display: grid; gap: 2px; }
.block-main button.title { all: unset; cursor: pointer; font-weight: 800; font-stretch: var(--semi); font-size: 1.02rem; overflow-wrap: anywhere; }
.block-main button.title:focus-visible { outline: 3px solid var(--focus); border-radius: 2px; }
.block-sub { font-size: .8rem; color: var(--ink-3); display: flex; gap: 4px 10px; flex-wrap: wrap; }
.block-warn { color: var(--warn); font-weight: 700; }
.block-actions { grid-column: 2; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.block-actions .stepper button { width: 40px; height: 40px; }
.block-actions .stepper output { min-width: 60px; }
.drop-zone { border: 1.5px dashed var(--line-2); border-radius: var(--r-md); padding: var(--s-5); text-align: center; color: var(--ink-3); transition: background var(--dur-2), border-color var(--dur-2); }
.drop-zone.active, .blocks.drop-active { background: color-mix(in srgb, var(--signal) 22%, transparent); border-color: var(--rule); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.check-list li { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; }
.check-list li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 1px; margin-top: 6px; background: var(--ink-3); }
.check-list li.ok::before { background: var(--ok); }
.check-list li.warn::before { background: var(--warn); }
.pack { display: grid; gap: 0; }
.pack label { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 8px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pack label:hover { background: var(--surface-2); }
.pack input { width: 22px; height: 22px; accent-color: var(--ink); }
.pack input:checked + span { text-decoration: line-through; color: var(--ink-3); }
.plan-tabs { position: sticky; top: calc(var(--appbar-h) + env(safe-area-inset-top, 0px)); z-index: 15; padding: 6px 0; background: var(--bg); }
.proposal { display: grid; gap: 10px; }
.proposal-item { padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-2); display: grid; gap: 6px; }
.proposal-item .why { font-size: .82rem; color: var(--ink-2); }
.alt-row { display: flex; gap: 6px; flex-wrap: wrap; }
.plan-card { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); text-align: left; cursor: pointer; color: inherit; width: 100%; }
.plan-card:hover { border-color: var(--rule); }
.plan-card[aria-current="true"] { border-color: var(--rule); box-shadow: inset 0 0 0 1px var(--rule), inset 6px 0 0 var(--signal); }
.plan-card .hero-bar { background: var(--surface-3); }
.plan-card .hero-bar i { background: var(--ink); }
.plan-card .hero-bar i:nth-child(2n) { background: var(--ink-3); }

/* ---------- Detail ---------- */
.detail-grid { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .detail-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } .detail-visual { position: sticky; top: 0; } }
.facts { display: flex; flex-wrap: wrap; gap: 4px; }
.facts span { padding: 6px 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xs); font-size: .8rem; font-weight: 750; font-stretch: var(--semi); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 10px 8px 10px 0; border-top: 1px solid var(--line); transition: background var(--dur-2); cursor: pointer; }
.steps li::before { content: counter(s, decimal-leading-zero); font-weight: 800; font-stretch: var(--cond); font-size: 1.3rem; line-height: 1; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.steps li.current { background: color-mix(in srgb, var(--signal) 28%, transparent); }
.steps li.current::before { color: var(--ink); }
.player-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.player-bar input[type="range"] { flex: 1; min-width: 120px; accent-color: var(--ink); height: 32px; }
:root[data-theme="dark"] .player-bar input[type="range"] { accent-color: var(--signal); }
.points { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.source { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line-2); text-decoration: none; }
.source:hover { border-color: var(--rule); }
.source strong { font-size: .9rem; }
.source small { color: var(--ink-3); overflow-wrap: anywhere; }
.variant-box { padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-2); border-left: 4px solid var(--rule); }
.mini-drill { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; padding: 6px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); text-align: left; cursor: pointer; color: inherit; width: 100%; }
.mini-drill:hover { border-color: var(--rule); }
.mini-drill .pitch-scene { border-radius: 2px; }
.mini-drill .scene-label { display: none; }
.mini-drill small { color: var(--ink-3); }

/* ---------- Training: Stadionuhr ---------- */
.live { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .live { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.clock-card { position: relative; overflow: hidden; border-radius: var(--r-md); background: #14130e; color: #f6f3ea; padding: var(--s-5); border-top: 6px solid var(--signal); }
:root[data-theme="dark"] .clock-card { background: #050504; box-shadow: inset 0 0 0 1px var(--line); }
.clock-card .eyebrow { color: var(--signal); }
.clock-ring { position: relative; width: min(74vw, 300px); aspect-ratio: 1; margin: var(--s-3) auto; }
.clock-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.clock-ring circle { fill: none; stroke-width: 3.5; }
.clock-ring .track { stroke: rgba(255, 255, 255, .22); stroke-dasharray: .6 3; stroke-width: 7; }
.clock-ring .prog { stroke: var(--signal); stroke-linecap: butt; transition: stroke-dashoffset .25s linear, stroke .3s; }
.clock-ring.warn .prog { stroke: #ff9a3d; }
.clock-ring.done .prog { stroke: var(--red-card); }
.clock-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.clock { font-size: clamp(4.6rem, 25vw, 7rem); font-weight: 800; font-stretch: 62%; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: .9; }
.clock-sub { color: #a8a495; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; }
.clock-title { font-size: 1.7rem; font-weight: 800; text-align: center; color: #f6f3ea; }
.live-controls { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; margin-top: var(--s-3); }
.live-controls .btn { min-height: 64px; border-radius: var(--r-sm); background: transparent; border-color: rgba(255, 255, 255, .2); color: #fff; }
.live-controls .btn:hover { border-color: #fff; }
.live-controls .btn.accent { background: var(--signal); color: var(--on-signal); border-color: var(--signal); font-size: 1.1rem; }
.live-controls .btn svg { width: 26px; height: 26px; }
.seg-progress { display: flex; gap: 3px; margin: var(--s-3) 0 0; }
.seg-progress button { flex: 1; height: 10px; min-height: 10px; padding: 0; border: 0; border-radius: 0; background: rgba(255, 255, 255, .16); cursor: pointer; position: relative; }
.seg-progress button::after { content: ""; position: absolute; inset: -12px 0; }
.seg-progress button.done { background: #f6f3ea; opacity: .5; }
.seg-progress button.current { background: var(--signal); }
.next-up { display: flex; align-items: center; gap: 10px; padding: 10px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); margin-top: var(--s-3); font-size: .9rem; }
.next-up small { color: #a8a495; display: block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.live.keeper .clock-card { border-top-color: var(--keeper); box-shadow: inset 0 0 0 3px var(--keeper); }
.totals { display: flex; justify-content: space-between; color: #a8a495; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
body.live-focus .appbar, body.live-focus .tabbar { display: none; }
body.live-focus main { padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: 24px; }

/* ---------- Taktikboard ---------- */
.board-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--pitch); box-shadow: var(--shadow-2); touch-action: none; user-select: none; }
.board-wrap svg { display: block; width: 100%; height: auto; }
.board-token { cursor: grab; }
.board-token.dragging { cursor: grabbing; }
.board-token.selected circle, .board-token.selected path { stroke: #fff; stroke-width: 1.2; }
.board-token text { font: 800 3.2px var(--font); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.board-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.tool { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 56px; min-height: 56px; padding: 6px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-size: .7rem; font-weight: 750; cursor: pointer; color: var(--ink-2); }
.tool[aria-pressed="true"] { border-color: var(--fill); background: var(--fill); color: var(--on-fill); }
.tool svg { width: 22px; height: 22px; }
.tool i { width: 22px; height: 22px; border-radius: 50%; display: block; border: 2px solid rgba(0, 0, 0, .25); }

/* ---------- Editor ---------- */
.editor-pitch { width: 100%; border-radius: var(--r-md); background: var(--pitch); touch-action: none; cursor: crosshair; display: block; }
.editor-pitch text { font: 800 11px var(--font); fill: #fff; text-anchor: middle; pointer-events: none; }
.editor-pitch.previewing { pointer-events: none; }
.ed-section { margin-top: var(--s-5); }
.ed-h { margin: 0 0 8px; font-size: 1rem; }
.ed-tools { grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: 8px; }
.ed-tools .tool { min-width: 0; font-size: .66rem; }
.sk-token { cursor: grab; outline: none; }
.sk-token:active { cursor: grabbing; }
.sk-hit { fill: transparent; }
.sk-sel, .sk-token:focus-visible .sk-hit { fill: #ffffff22; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 4 3; }
.sk-resize { fill: var(--signal); stroke: #14130e; stroke-width: 2; cursor: nwse-resize; pointer-events: none; }
.sk-resize-hit { fill: transparent; cursor: nwse-resize; }
.sk-ghost { fill: none; stroke: #ffffff70; stroke-width: 1.5; stroke-dasharray: 3 3; pointer-events: none; }
.sk-empty { font: 700 11px var(--font); fill: #ffffffb0; text-anchor: middle; pointer-events: none; }
.sketch-trail { fill: none; stroke: #ffffffd0; stroke-width: 2; stroke-dasharray: 6 4; stroke-linecap: round; pointer-events: none; }
.sketch-trail.ball { stroke: #ffe58a; stroke-dasharray: 2 3; }
.sketch-trail.free { stroke-width: 2.5; pointer-events: stroke; }
.sketch-trail.free.pass { stroke: #ffe58a; stroke-dasharray: 2 3; }
.sketch-trail.free.dribble { stroke: #ffd400; stroke-dasharray: 1 4; }
.motion-on .sketch-trails { display: none; }
.ed-selbar { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: .86rem; color: var(--ink-2); }
.ed-steps { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.ed-stepbtn { flex: none; min-height: 40px; padding: 6px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 750; font-size: .86rem; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.ed-stepbtn[aria-selected="true"] { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.ed-stepbtn.add { border-style: dashed; color: var(--ink); }
.ed-stepbtn:disabled { opacity: .4; cursor: default; }
.ed-stepbtn svg { width: 16px; height: 16px; }
.ed-people { gap: var(--s-4); }
.mat-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.mat { flex: 1 1 auto; display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); min-height: 48px; }
.mat.on { border-color: var(--rule); background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule), inset 5px 0 0 var(--signal); }
.mat-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 10px; border: 0; background: transparent; font-weight: 700; font-size: .86rem; color: var(--ink); cursor: pointer; text-align: left; }
.mat-toggle .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat-toggle b { font-variant-numeric: tabular-nums; }
.mat-count { display: flex; flex: none; }
.mat-count button { width: 36px; height: 46px; border: 0; background: transparent; font-size: 1.2rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.tpl { display: grid; gap: 4px; padding: 6px 6px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; text-align: left; color: var(--ink); }
.tpl svg { width: 100%; border-radius: var(--r-sm); display: block; }
.tpl svg .pitch-stripes rect { fill: rgba(255, 255, 255, .025); }

/* ---------- Mehr / Einstellungen ---------- */
.settings-group { margin: var(--s-5) 0; }
.settings-group > h2 { font-size: 1.3rem; color: var(--ink); margin: 0; padding: 8px 0 6px; border-top: 3px solid var(--rule); }
.settings-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 4px var(--s-4); }
.settings-card > .field { margin: 12px 0; }
.color-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 0 12px; }
.swatch { width: 44px; height: 44px; border-radius: var(--r-sm); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--rule); }
.team-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px var(--s-4); border-bottom: 1px solid var(--line); }
.team-card:last-child { border-bottom: 0; }
.team-card .dot { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--team-color, var(--ink)); color: #fff; display: grid; place-items: center; font-weight: 900; }

/* ---------- Onboarding / Tour ---------- */
.onboarding { max-width: 640px; margin: 0 auto; padding-top: var(--s-4); }
.ob-progress { display: flex; gap: 6px; margin: var(--s-3) 0 var(--s-5); }
.ob-progress i { flex: 1; height: 6px; border-radius: 0; background: var(--line); transition: background var(--dur-3); }
.ob-progress i.on { background: var(--fill); }
.day-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day-grid label { position: relative; display: grid; place-items: center; min-height: 54px; border-radius: var(--r-sm); border: 2px solid var(--line); background: var(--surface); font-weight: 800; cursor: pointer; }
.day-grid input { position: absolute; opacity: 0; }
.day-grid label:has(input:checked) { background: var(--fill); color: var(--on-fill); border-color: var(--on-signal); }
.day-grid label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.slot-row { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 8px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--line); }
.slot-row .field { margin: 0; }
@media (max-width: 400px) { .slot-row { grid-template-columns: 1fr 1fr; } .slot-row strong { grid-column: span 2; } }
.tour-slide { text-align: center; padding: var(--s-4) var(--s-2); }
.tour-slide .art { width: 120px; height: 120px; margin: 0 auto var(--s-4); border-radius: var(--r-md); display: grid; place-items: center; background: var(--signal); box-shadow: 5px 5px 0 var(--rule); transform: rotate(-4deg); }
.tour-slide .art svg { width: 64px; height: 64px; color: var(--ink); }
.tour-dots { display: flex; gap: 6px; justify-content: center; margin-top: var(--s-3); }
.tour-dots i { width: 8px; height: 8px; border-radius: var(--r-xs); background: var(--line-2); transition: width var(--dur-2); }
.tour-dots i.on { width: 22px; background: var(--fill); }

/* ---------- Druckbereich (nur für Druck sichtbar) ---------- */
#print-root { display: none; }
.export-preview { display: grid; gap: 10px; justify-items: center; background: var(--surface-3); border-radius: var(--r-md); padding: 12px; max-height: 52dvh; overflow: auto; }
.export-preview canvas, .export-preview img { width: 100%; max-width: 380px; height: auto; box-shadow: var(--shadow-2); background: #fff; border-radius: var(--r-xs); }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 380px) {
  main { padding-left: 12px; padding-right: 12px; }
  .hero { padding: 16px; }
  .hero-stats strong { font-size: 2.1rem; }
  .hero .btn.lg { padding-inline: 12px; letter-spacing: .02em; }
  .live-controls { gap: 6px; }
  .appbar { padding-left: 12px; padding-right: 8px; }
}
@media (min-width: 760px) { .hero { padding: var(--s-8); } }

/* ---------- Handy: kompakte Übungskarten (Skizze links, Text rechts) ---------- */
@media (max-width: 599px) {
  .lib-grid { gap: 10px; }
  .drill { grid-template-columns: 116px 1fr; grid-template-rows: auto auto; contain-intrinsic-size: 150px; border-radius: var(--r-md); }
  .drill .pitch-scene { grid-row: 1 / span 2; aspect-ratio: auto; height: 100%; min-height: 120px; display: flex; align-items: center; }
  .drill .pitch-scene svg { width: 100%; height: auto; }
  .drill .scene-label { display: none; }
  .drill-body { padding: 10px 10px 2px 12px; gap: 4px; }
  .drill-body h3 { font-size: .95rem; padding-right: 30px; }
  .drill-body > p.small { display: none; }
  .drill-why { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .drill-foot { padding: 0 8px 8px 12px; }
  .drill-foot .btn.ghost { display: none; }
  .fav { width: 40px; height: 40px; top: 4px; right: 4px; left: auto; background: transparent; color: var(--ink-3); backdrop-filter: none; }
  .drill-meta span:nth-child(4) { display: none; }
}
label:has(input[name="color"]:checked) .swatch { box-shadow: 0 0 0 3px var(--ink); }
.board-token text { font: 800 2.6px var(--font); }
.tl-item > button { min-width: 0; text-align: left; }
.plan-facts .stepper input { width: 52px; min-width: 52px; }
.detail-sheet .sheet-body { padding-top: 4px; }
.facts .warn { color: var(--warn); background: var(--warn-soft); }
.facts span { display: inline-flex; align-items: center; gap: 4px; }
.facts svg, .tiny svg, .small svg, p svg, .notice svg { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
@media (max-width: 459px) { .appbar.scrolled .brand-word { display: none; } }
details.disclosure > summary > svg { width: 20px; height: 20px; flex: none; }
.plan-tabs .seg { display: flex; flex-wrap: nowrap; width: 100%; }
.plan-tabs .seg button { flex: 1; padding: 6px 4px; min-width: 0; }
/* Editor 21.27: Tabs auf dem Handy, Kamera-Fenster, Vorschau */
.ed-tabbar { position: sticky; top: -1px; z-index: 3; margin: 6px calc(-1 * var(--s-5, 20px)) 0; padding: 8px var(--s-5, 20px) 8px; background: var(--surface); }
.ed-tabs { display: flex; flex-wrap: nowrap; width: 100%; }
.ed-tabs button { flex: 1; min-width: 0; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ed-tabs button svg { width: 18px; height: 18px; }
#ed[data-tab="sketch"] .ed-side { display: none; }
#ed[data-tab="details"] .ed-sketch { display: none; }
#ed .ed-layout > .ed-section:first-child { margin-top: var(--s-3); }
.ed-camera { margin-top: var(--s-3); }
.ed-camera .seg { display: flex; flex-wrap: nowrap; width: 100%; }
.ed-camera .seg button { flex: 1; min-width: 0; padding-inline: 6px; }
.ed-tabs button[aria-selected="true"] { background: var(--fill); color: var(--on-fill); }
.editor-pitch { scroll-margin-top: 76px; }
.sk-cam-dim { fill: rgba(0, 0, 0, .5); pointer-events: none; }
.sk-cam { fill: none; stroke: var(--signal); stroke-width: 2; stroke-dasharray: 6 3; pointer-events: none; }
.editor-pitch .sk-cam-label { font: 800 8px var(--font); fill: var(--signal); letter-spacing: .08em; text-transform: uppercase; }
.scene-custom [data-actor] { transform-box: fill-box; transform-origin: center; }
.ed-prev-steps { margin-top: var(--s-4); }
.ed-selbar .btn { flex: none; }
.ed-stepbtn { min-height: 44px; }
@media (min-width: 900px) {
  .ed-tabbar { display: none; }
  #ed[data-tab] .ed-side, #ed[data-tab] .ed-sketch { display: block; }
  .ed-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: var(--s-6); align-items: start; }
  .ed-sketch { position: sticky; top: 0; }
  .ed-layout .ed-section:first-child, .ed-side > .ed-section:first-child { margin-top: var(--s-4); }
}

/* ---------- Kalender ---------- */
.grid-3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-2); }
@media (max-width: 400px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-3 > :first-child { grid-column: span 2; } }
.grid-3 .field { margin: var(--s-2) 0; }
.cal-card { padding: var(--s-3); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: 6px; }
.cal-head h2 { font-size: 1.15rem; }
.cal-grid { display: grid; gap: 2px; touch-action: pan-y; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-wd { text-align: center; font-size: .7rem; font-weight: 800; color: var(--ink-3); padding: 4px 0; text-transform: uppercase; letter-spacing: .06em; }
.cal-day { position: relative; display: grid; grid-template-rows: auto 1fr; justify-items: center; gap: 2px; min-height: 52px; padding: 6px 0 4px; border: 0; border-radius: var(--r-sm); background: transparent; color: inherit; cursor: pointer; font-variant-numeric: tabular-nums; }
.cal-day:hover { background: var(--surface-2); }
.cal-day .n { display: grid; place-items: center; width: 32px; height: 30px; border-radius: var(--r-xs); font-weight: 750; font-size: .92rem; }
.cal-day.out { color: var(--ink-3); opacity: .55; }
.cal-day.today .n { box-shadow: inset 0 -3px 0 var(--signal), inset 0 0 0 1.5px var(--rule); }
.cal-day[aria-selected="true"] .n { background: var(--fill); color: var(--on-fill); box-shadow: none; }
.cal-day:focus-visible { outline: 3px solid var(--focus); outline-offset: -2px; }
.cal-day .dots { display: flex; gap: 3px; height: 7px; }
.cal-day .dots i, .cal-legend i.lg { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.cal-day .dots i.k-spiel, .cal-day .dots i.k-turnier, .cal-legend i.k-spiel { background: #e08a1e; }
.cal-day .dots i.k-termin { background: var(--ink-3); }
.cal-day .dots i.noplan, .cal-legend i.noplan { background: transparent; box-shadow: inset 0 0 0 1.5px var(--warn); }
.cal-day .dots i.s-ausgefallen { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); opacity: .6; }
.cal-day .dots i.s-erledigt { opacity: .45; }
.cal-legend { margin-top: 6px; }
.cal-legend i.lg { margin: 0 4px 0 8px; vertical-align: 0; }
.cal-legend i.lg:first-child { margin-left: 0; }
.ev-card { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line); border-left: 5px solid var(--fill); background: var(--surface); color: inherit; text-align: left; cursor: pointer;  }
.ev-card.k-spiel, .ev-card.k-turnier { border-left-color: #e08a1e; }
.ev-card.k-termin { border-left-color: var(--ink-3); }
.ev-card.s-ausgefallen { opacity: .7; }
.ev-card.s-ausgefallen .grow strong { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.ev-card:hover { border-color: var(--line-2); }
.ev-card .ev-time { display: grid; font-variant-numeric: tabular-nums; line-height: 1.2; }
.ev-card .ev-time strong { font-size: 1.35rem; font-weight: 800; font-stretch: var(--cond); line-height: 1; }
.ev-card .ev-time small { font-size: .72rem; color: var(--ink-3); font-weight: 700; }
.ev-card .grow { min-width: 0; display: grid; gap: 2px; }
.ev-card .grow strong { font-weight: 780; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-card .grow small { color: var(--ink-3); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-card .grow small.block-warn { color: var(--warn); }
.ev-meta { display: inline-flex; align-items: center; gap: 4px; }
.ev-bell svg { width: 16px; height: 16px; color: var(--ink-3); display: block; }
.ev-note { margin: -6px 0 0 18px; padding: 6px 12px; border-left: 2px solid var(--line); }
.tag.ev-tag.k-spiel, .tag.ev-tag.k-turnier { background: #fdebd3; color: #8a4b05; }
:root[data-theme="dark"] .tag.ev-tag.k-spiel, :root[data-theme="dark"] .tag.ev-tag.k-turnier { background: #3a2a14; color: #f3bf6b; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
@media (max-width: 380px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);  min-width: 0; }
.stat strong { display: block; font-size: 2rem; line-height: 1; font-weight: 800; font-stretch: var(--cond); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat small { color: var(--ink-2); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.card-h { font-size: 1.25rem; margin-bottom: 10px; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: .88rem; font-weight: 700; }
.bar-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 10px; border-radius: var(--r-xs); background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand-2); border-radius: var(--r-xs); }
.page-head .btn svg { width: 18px; height: 18px; }
.cal-modes button { padding: 6px 11px; }

/* ---------- Schwerpunkte (21.2) ---------- */
.a-technik { --ac: var(--f-technik); --acs: var(--f-technik-soft); }
.a-taktik { --ac: var(--f-taktik); --acs: var(--f-taktik-soft); }
.a-athletik { --ac: var(--f-athletik); --acs: var(--f-athletik-soft); }
.a-torwart { --ac: var(--f-torwart); --acs: var(--f-torwart-soft); }
.a-none { --ac: var(--f-none); --acs: var(--f-none-soft); }
.fchips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.fchip { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 2px 9px 2px 8px; border-radius: var(--r-sm); border: 0; background: var(--acs, var(--surface-3)); color: var(--ink); font: inherit; font-size: .74rem; font-weight: 750; line-height: 1.2; box-shadow: inset 3px 0 0 var(--ac, var(--line-2)); max-width: 100%; }
.fchip small { font-weight: 600; color: var(--ink-3); font-size: .7rem; }
.fchip.more { background: transparent; box-shadow: none; color: var(--ink-3); }
.fchip.mark { outline: 2px solid var(--ac); outline-offset: 1px; }
button.fchip { cursor: pointer; transition: transform var(--dur-1) var(--ease-out), filter var(--dur-1); }
button.fchip:hover { filter: brightness(.96); }
button.fchip:active { transform: scale(.96); }
.drill .fchips { margin: 2px 0 2px; }
.proposal-item .fchips { margin: 4px 0; }
.abar { display: flex; gap: 2px; height: 10px; border-radius: var(--r-xs); overflow: hidden; background: var(--surface-3); }
.abar i { display: block; height: 100%; background: var(--ac); min-width: 4px; }
.alegend { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 6px; font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.alegend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ac); flex: none; }
button.bar-row.fbar { width: 100%; background: none; border: 0; padding: 4px 6px; margin: 0 -6px; border-radius: var(--r-xs); color: inherit; font: inherit; font-size: .88rem; font-weight: 700; text-align: left; cursor: pointer; box-sizing: content-box; }
button.bar-row.fbar:hover { background: var(--surface-2); }
.fbar .bar i, :root[data-theme="dark"] .fbar .bar i { background: var(--ac); }
.focus-strip { padding: 10px 12px; margin-bottom: 10px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 6px; }
.focus-strip[hidden] { display: none; }
.focus-strip .row.between { margin-bottom: 2px; }
.hero-foci { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.hero-foci > .tiny { color: var(--hero-muted); }
.hero .fchip, .clock-card .fchip { background: rgba(255, 255, 255, .12); color: #fff; }
.hero .fchip small, .clock-card .fchip small { color: rgba(255, 255, 255, .7); }
.hero .fchip.mark, .clock-card .fchip.mark { outline-color: var(--signal); }
.clock-foci .fchips { justify-content: center; margin: 2px 0 6px; }
.fpick-group { margin-bottom: 8px; }
.fpick-group > .tiny { display: block; margin-bottom: 4px; }
.chip.fchip-pick { box-shadow: inset 3px 0 0 var(--ac); }
.fpick-h { display: flex; align-items: center; gap: 6px; margin: 16px 0 6px; }
.ev-foci { display: flex !important; align-items: center; gap: 4px; margin-top: 2px; font-size: .74rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-foci svg { width: 13px; height: 13px; flex: none; }
.rv-nav { margin-bottom: 10px; flex-wrap: nowrap; }
.rv-label { flex: 1; text-align: center; font-size: .95rem; min-width: 0; }
.foci-explain { margin: 8px 0 0; padding-left: 18px; font-size: .88rem; display: grid; gap: 4px; }
.sm-chip { min-height: 28px; padding: 2px 10px; font-size: .78rem; }
.focus-recap .fchips { margin-top: 2px; }
.detail-foci .fchips { margin-top: 4px; }

/* ---------- Pausen (21.3) ---------- */
.budget-bar i.pause { background: repeating-linear-gradient(-45deg, var(--surface-3) 0 3px, var(--line-2) 3px 6px) !important; }
.pause-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 4px 12px; padding: 4px 12px; margin: -2px 0; border: 1px dashed var(--line-2); border-radius: var(--r-md); background: color-mix(in srgb, var(--surface-2) 70%, transparent); color: var(--ink-2); }
.pause-ico { display: grid; place-items: center; width: 36px; height: 32px; color: var(--ink-3); }
.pause-ico svg { width: 18px; height: 18px; }
.pause-main { all: unset; cursor: pointer; min-width: 0; display: grid; }
.pause-main:focus-visible { outline: 3px solid var(--focus); border-radius: var(--r-xs); }
.pause-main strong { font-size: .9rem; }
.pause-main small { font-size: .78rem; color: var(--ink-3); overflow-wrap: anywhere; }
.pause-actions { display: flex; gap: 2px; }
.pause-actions .icon-btn { width: 36px; height: 36px; }
.tl-item.pause-item { background: transparent; border-style: dashed; padding-block: 6px; }
.tl-item.pause-item strong { font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.tl-item.pause-item small { display: block; }
.tl-item.pause-item svg { width: 14px; height: 14px; }
.seg-progress button.pause { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .14) 0 3px, transparent 3px 6px); }
.seg-progress button.pause.done, .seg-progress button.pause.current { background: repeating-linear-gradient(-45deg, #8ecae6 0 3px, transparent 3px 6px); opacity: 1; }
.clock-card.is-pause { border-top-color: #8ecae6; }
.clock-card.is-pause .clock-ring:not(.warn):not(.done) .prog { stroke: #8ecae6; }
.next-up.pause-next svg { color: #8ecae6; }

/* ---------- Bibliothek V21.5: Ansichten, Kategorie-Köpfe, Neu ---------- */
.tag.new { background: var(--hero); color: var(--signal); }
.chip.empty-chip { opacity: .45; }
.lib-view { flex: none; flex-wrap: nowrap; }
.lib-view button { min-height: 44px; padding: 6px 10px; display: grid; place-items: center; }
.lib-view svg { width: 20px; height: 20px; }
.lib-group { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; margin: var(--s-4) 0 calc(var(--s-1) * -1); padding-bottom: 4px; border-bottom: 3px solid var(--rule); font-size: 1.5rem; font-weight: 900; font-stretch: var(--cond); text-transform: uppercase; line-height: 1; }
.lib-group:first-child { margin-top: 0; }
.lib-group b { font-size: 1rem; font-weight: 800; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lib-grid.compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 0 var(--s-4); }
.lib-grid.compact .lib-group { margin-bottom: 0; }
.drill.drill-row { grid-template-columns: 96px 1fr auto; grid-template-rows: auto; align-items: center; gap: 12px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; contain-intrinsic-size: 74px; }
.drill.drill-row:hover { transform: none; box-shadow: none; background: var(--surface); }
.drill-row .pitch-scene { grid-row: auto; aspect-ratio: 320 / 190; height: auto; min-height: 0; border-radius: 2px; }
.drill-row .scene-label, .drill-row .scene-step-label { display: none; }
.drill-row .drill-body { padding: 0; gap: 3px; }
.drill-row .drill-body h3 { font-size: 1rem; padding: 0; }
.drill-row .drill-meta { gap: 2px 10px; font-size: .74rem; }
.drill-row .drill-meta .row-tag { color: var(--ink); text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; }
.drill-row .drill-meta .warn { color: var(--warn); }
.drill-row .drill-meta span:nth-child(4) { display: inline-flex; }
.drill-row .row-fav { color: var(--ink-3); font-size: .85em; }
.drill-row .row-add { margin-right: 4px; min-width: 44px; min-height: 44px; padding: 0; justify-content: center; }
@media (max-width: 599px) {
  .drill:not(.drill-row) { grid-template-columns: 128px 1fr; }
  .drill:not(.drill-row) .pitch-scene { aspect-ratio: 320 / 190; height: auto; min-height: 0; align-self: start; margin: 10px 0 0 10px; border-radius: 3px; display: block; }
  .drill.drill-row { grid-template-columns: 84px 1fr auto; gap: 10px; }
  .lib-group { font-size: 1.25rem; }
}
.lib-grid.grouped .drill-row .row-tag { display: none; }

/* ---------- V21.8 Handy-Aufräumpass: lesbare Schrift, 44-px-Touchflächen, ruhigere Struktur ---------- */
/* Mindestgrößen für kleine Texte (vorher teils 10,9 px) */
.eyebrow { font-size: .78rem; }
.tiny { font-size: .82rem; }
.small { font-size: .9rem; }
.hero-stats small, .next-up small { font-size: .76rem; }
.chip .count, .fchip small { font-size: .8rem; }
.drill-meta { font-size: .84rem; }
.drill-why { font-size: .84rem; }
.cal-wd { font-size: .78rem; }
.alegend { font-size: .84rem; }
.fchip { font-size: .82rem; min-height: 30px; }
.tab { font-size: .76rem; letter-spacing: .03em; }
.switch-row small { font-size: .86rem; }

@media (max-width: 599px) {
  /* Touchflächen mindestens 44 px */
  .team-chip { min-height: 44px; max-width: 42vw; }
  .btn.sm, .fact, .chip, .seg button, .toast button, .stepper input { min-height: 44px; }
  .block-actions .stepper button { width: 44px; height: 44px; }
  .chip { padding-inline: 14px; }
  .hero .chip, .sm-chip { min-height: 44px; display: inline-flex; align-items: center; }
  button.fchip { min-height: 36px; }
  .cal-day { min-height: 56px; }
  /* Heute: Kopf und Hero ruhiger */
  .page-head { margin: var(--s-2) 0 var(--s-4); }
  .hero { padding: 18px 16px; }
  .hero .chip { border-color: var(--hero-muted); color: var(--hero-ink); background: transparent; }
  .hero-foci > .tiny { flex-basis: 100%; }
  details.disclosure .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  details.disclosure .seg button { border-left: 0; border-top: 1.5px solid var(--line-2); }
  details.disclosure .seg button:nth-child(-n+2) { border-top: 0; }
  details.disclosure .seg button:nth-child(2n) { border-left: 1.5px solid var(--line-2); }
  .section { margin: var(--s-6) 0 var(--s-3); }
  .tl-item { grid-template-columns: 54px 1fr auto; padding: 8px 0; }
  .tl-item small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  /* Einstellungen: Auswahlzeilen gleichmäßig verteilen statt schief umbrechen */
  .card .seg, .setting-row .seg { display: flex; flex-wrap: wrap; }
  .seg { max-width: 100%; }
  .seg button { flex: 1 1 auto; padding-inline: 12px; }
  /* Planen: Kopf als sauberes 2-Spalten-Raster, Titel in voller Länge */
  .plan-title { font-size: clamp(1.4rem, 6.4vw, 1.9rem); line-height: 1.1; }
  .plan-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .plan-facts .fact { width: 100%; justify-content: flex-start; min-width: 0; }
  .plan-facts .fact { white-space: normal; line-height: 1.15; text-align: left; }
  .plan-facts .fact:first-child { grid-column: span 2; }
  .field > span:first-child { font-size: .8rem; }
  .plan-facts .stepper input { width: 40px; min-width: 40px; }
  .budget-label { font-size: .84rem; }
  /* Bibliothek: Karte ohne gequetschte Labels */
  .drill { grid-template-columns: 104px 1fr; }
  .drill-body h3 { font-size: 1rem; }
  .drill .fchips { gap: 4px; }
  .drill .fchips .fchip:nth-child(n+3) { display: none; }
  .drill .fchip { padding: 2px 7px; }
  .drill-body .tag { font-size: .72rem; }
  .fav { width: 44px; height: 44px; top: 2px; right: 2px; }
  .drill-meta { gap: 2px 10px; }
  /* Hinweise (Toasts): schmal, kurz, verdecken weniger */
  .toasts { width: min(92vw, 520px); bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 8px); }
  .toast { min-height: 44px; padding: 6px 6px 6px 12px; gap: 8px; font-size: .88rem; line-height: 1.3; }
  .toast .grow { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  /* Training: Lauf-Buttons und Fokus-Zeile */
  .live-controls .btn { min-height: 64px; }
  .clock-card .fchip { min-height: 32px; font-size: .84rem; }
}

/* Planassistent V22: Punkt für „lange nicht trainiert“, Radiogroup-Chips (Altersklasse, Dauer) */
.dot-gap { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); vertical-align: 1px; margin-left: 3px; }
.chip[role="radio"][aria-checked="true"] { background: var(--fill); color: var(--on-fill); border-color: var(--fill); }

/* Ruhiger Bibliothekskopf: Suche zuerst, weitere Werkzeuge nur auf Wunsch. */
.lib-head { align-items: center; }
.lib-head .row { gap: 6px; }
.lib-search-row { display: flex; gap: 8px; align-items: center; }
.lib-search-row .search { min-width: 0; }
.lib-search-row #lib-filter { flex: none; gap: 6px; padding-inline: 12px; }
.lib-selection:not([hidden]) { margin-top: 8px; }
.lib-tools { padding-bottom: 12px; }
.lib-filter-chips { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
.lib-actions { display: grid; gap: 24px; }
.lib-actions .lib-view { flex-wrap: wrap; }
.lib-actions .lib-view button { display: flex; gap: 8px; }
@media (max-width: 430px) {
  .lib-head { flex-wrap: nowrap; gap: 8px; }
  .lib-head h1 { font-size: 2.2rem; }
  .lib-head .btn { padding-inline: 10px; }
  .lib-head .eyebrow { font-size: .68rem; }
}

.lib-filter-summary { margin: 0 0 4px; color: var(--ink-3); }

/* Bewertung + Notiz im laufenden Training */
.live-rate { display: grid; gap: var(--s-2); }
.live-rate .stars { justify-content: space-between; max-width: 320px; }
.live-rate .stars button { width: 52px; height: 52px; font-size: 2rem; transition: transform .15s; }
.live-rate .stars button[aria-pressed="true"] { transform: scale(1.08); }
.live-rate textarea { min-height: 72px; }
.live-saved { color: var(--ink-2); opacity: 0; }
.live-saved.on { animation: saved-pop 1.8s ease-out; }
@keyframes saved-pop { 0% { opacity: 0; transform: translateY(4px); } 12%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
:root[data-motion="reduced"] .live-rate .stars button { transition: none; }
:root[data-motion="reduced"] .live-saved.on { animation: none; opacity: 1; }
body.live-focus .live-rate .tiny:last-child { display: none; }

/* Wochenfokus: ein roter Faden, keine vorab erfundene Besetzung. */
.week-entry { margin: 12px 0 16px; min-height: 52px; text-align: left; }
.week-hero { padding: 24px; border-radius: var(--r-md); background: var(--hero); color: var(--hero-ink); border-top: 6px solid var(--signal); }
.week-hero .eyebrow { color: var(--signal); }
.week-hero h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); line-height: 1; margin: 12px 0; }
.week-hero p:not(.eyebrow) { max-width: 48ch; font-size: .95rem; opacity: .85; }
.week-progress { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--hero-line); padding-top: 16px; margin-top: 16px; }
.week-progress strong { font-size: 1.6rem; color: var(--signal); white-space: nowrap; }
.week-progress span { font-size: .85rem; }
.week-nav { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 8px; gap: 8px; }
.week-nav > div { display: grid; text-align: center; gap: 4px; }
.week-date { max-width: 260px; margin-bottom: 18px; }
.week-days { display: grid; gap: 14px; }
.week-day { min-width: 0; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r-md); padding: 16px; }
.week-day.is-today { box-shadow: inset 5px 0 0 var(--signal); }
.week-day-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.week-day-head h3 { margin: 0; font-size: 1.15rem; flex: 1; }
.week-event { padding: 12px 0; border-top: 1px solid var(--line); }
.week-event-title { display: grid; gap: 6px; width: 100%; background: none; border: 0; text-align: left; color: inherit; padding: 4px 0 12px; min-height: 52px; cursor: pointer; }
.week-event-title strong { overflow-wrap: anywhere; }
.week-event-title span { color: var(--ink-3); font-size: .9rem; }
.week-foci { margin-bottom: 14px; }
.week-foci .chip { cursor: default; white-space: normal; }
.week-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.week-actions .btn { flex: 1 1 150px; min-height: 48px; white-space: normal; }
.week-rest { margin: 6px 0; }
.week-event.is-cancelled { opacity: .65; }
.week-event.is-cancelled .week-event-title strong { text-decoration: line-through; }
.week-intro, .assistant-context { background: var(--surface-2); padding: 16px; border-radius: var(--r-md); border-left: 5px solid var(--signal); margin-bottom: 20px; }
.week-intro h3 { font-size: 1.6rem; margin: 8px 0 12px; }
.week-count { font-size: .9rem; font-weight: 750; }
.week-focus-sheet .fpick-group { margin-bottom: 20px; }
.week-focus-sheet .fchip-pick, .assistant-sheet .fchip-pick { min-height: 46px; padding: 10px 14px; font-size: .9rem; transition: background .18s, color .18s, transform .18s; }
.week-focus-sheet .fchip-pick[aria-pressed=true], .assistant-sheet .fchip-pick[aria-pressed=true] { box-shadow: inset 0 0 0 2px var(--ink); transform: translateY(-2px); }
.week-today { margin-bottom: 16px; }
.week-today .chips { margin: 12px 0 16px; }
@media (min-width: 760px) { .week-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } .week-day:last-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .week-days { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .week-focus-sheet .fchip-pick, .assistant-sheet .fchip-pick { transition: none; transform: none; } }
:root[data-motion=off] .week-focus-sheet .fchip-pick, :root[data-motion=off] .assistant-sheet .fchip-pick { transition: none; transform: none; }
.week-focus-sheet .fpick-group .chips, .assistant-sheet .fpick-group .chips, .week-foci, .week-today .chips { flex-wrap: wrap; overflow: visible; scroll-snap-type: none; }
.week-focus-sheet .fchip-pick, .assistant-sheet .fchip-pick { white-space: normal; }
:root[data-motion=reduced] .week-focus-sheet .fchip-pick, :root[data-motion=reduced] .assistant-sheet .fchip-pick { transform: none; transition-property: background, color; }
/* 21.13 Ruhiger: weniger Informationsdichte, nichts entfernt */
.tl-item.pause-item { padding-block: 2px; opacity: .8; }
.tl-item.pause-item .tl-time { opacity: .7; }
#today .hero-stats small { font-size: .7rem; }
/* 21.13 Saison-Autopilot */
.season-card { margin: 16px 0 8px; border-left: 5px solid var(--signal); }
.season-card h3 { margin: 6px 0 4px; font-size: 1.35rem; }
.season-card .chips { margin-top: 12px; }
.season-card .btn { min-height: 48px; }
.season-line { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; }
.season-suggest { margin: 0 0 12px; }
.season-suggest p { margin: 0 0 8px; }
.chip-suggest { border-style: dashed; background: transparent; cursor: default; white-space: normal; }
.season-card .chips { flex-wrap: wrap; overflow: visible; }

/* 21.15: settings on demand, the schedule stays first. */
.plan-options { margin: 10px 0; }
.plan-options > summary { min-height: 48px; font-size: .9rem; }
.plan-options .plan-facts { margin-bottom: 0; }
details.focus-strip { padding: 0; }
details.focus-strip > summary { min-height: 48px; font-size: .9rem; }
@media (max-width: 759px) { .block-sub { font-size: .78rem; line-height: 1.3; } .block-actions { gap: 2px; } }

/* 21.16: a short proposal first; reasons, sources and alternatives on demand. */
.proposal-details { margin-top: 4px; }
.proposal-details > summary { min-height: 46px; padding: 8px 10px; font-size: .8rem; color: var(--ink-2); }
.proposal-details .why { display: block; margin: 8px 0; }
.assistant-options { margin: 8px 0 16px; }

/* 21.17: tools and backup first; settings in named groups. */
.more-disclosure > summary { min-height: 56px; font-size: 1.1rem; }
.more-disclosure > .body { padding-top: 8px; }
.more-disclosure .settings-card { border: 0; padding-inline: 0; }

/* A separate keeper session, not a parallel field block. */
.keeper-entry { margin: 12px 0; border-color: var(--line); gap: 8px; text-align:left; }
.keeper-entry .tiny { color: var(--ink-2); white-space: normal; }
.keeper-entry { display: flex; flex-wrap: nowrap; align-items: center; }
.keeper-entry .tiny { font-size: .75rem; }

/* Coach support is a role, never an extra child. Reuse theme tokens in both modes. */
.coach-toggle{display:flex;align-items:center;gap:12px;min-height:56px;padding:12px;border:1px solid var(--line);border-radius:var(--r-md);cursor:pointer;background:var(--surface)}
.coach-toggle input{width:22px;height:22px;flex:none;accent-color:var(--accent)}
.coach-toggle span{font-weight:650;font-size:.95rem}
.coach-toggle small{display:block;font-weight:400;color:var(--ink-3);margin-top:4px}
.coach-toggle:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}
.coach-toggle:active{transform:scale(.99)}

/* 21.26: exercise cards and detail. Core instructions first, extras on demand. */
.drill-title { display: block; width: 100%; border: 0; padding: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; text-transform: none; line-height: 1.2; overflow-wrap: anywhere; }
.drill-title:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.lib-grid:not(.compact) .drill-body { gap: 9px; padding: 16px 16px 8px; }
.lib-grid:not(.compact) .drill-body h3 { font-size: 1.22rem; }
.lib-grid:not(.compact) .drill-meta { font-size: .88rem; }
.lib-grid:not(.compact) .drill-why { font-weight: 600; color: var(--ink-2); }
.lib-grid:not(.compact) .drill-why.bad { color: var(--warn); }
.lib-grid:not(.compact) .drill-foot { padding: 4px 16px 14px; }
.detail-sheet .sheet-head h2 { text-transform: none; line-height: 1.15; font-size: clamp(1.35rem, 4.8vw, 1.7rem); }
.detail-sheet .detail-tags { gap: 6px; margin-bottom: 12px; }
.detail-content { gap: 16px; min-width: 0; }
.detail-content > section > h3 { margin-bottom: 8px; font-size: 1.1rem; }
.detail-content > section > p { line-height: 1.55; }
.detail-content .facts { gap: 6px; }
.detail-content .facts span { border: 0; background: var(--surface-3); font-size: .86rem; }
.detail-content .facts span:last-child { flex-basis: 100%; border-left: 3px solid var(--ok); border-radius: 0; }
.detail-content .facts span.warn { border-color: var(--warn); }
.detail-section { padding-top: 16px; border-top: 1px solid var(--line-2); }
.detail-steps .steps li { line-height: 1.5; padding: 12px 10px 12px 6px; border-radius: var(--r-xs); }
.detail-context { margin-top: 8px; }
.detail-context > summary { cursor: pointer; font-size: .86rem; color: var(--ink-2); min-height: 44px; display: flex; align-items: center; gap: 8px; }
.detail-context > summary::before { content: '+'; font-size: 1.2rem; }
.detail-context[open] > summary::before { content: '-'; }
.detail-context > p { margin-top: 8px; }
.detail-content .disclosure > summary { font-size: 1rem; }
.detail-content .disclosure > .body { padding-top: 8px; display: grid; gap: 10px; }
.detail-content .source { min-width: 0; }
.detail-sheet .player-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.detail-sheet #d-play { justify-self: start; }
.detail-sheet #d-scrub { width: 100%; min-width: 0; }
.detail-sheet #d-time { text-align: right; font-variant-numeric: tabular-nums; }
.detail-sheet #d-disclaimer { font-size: .78rem; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 599px) {
  .lib-grid:not(.compact) .drill { grid-template-columns: 108px minmax(0, 1fr); }
  .lib-grid:not(.compact) .drill-body { grid-column: 2; grid-row: 1; min-width: 0; padding: 14px 12px 8px; gap: 8px; }
  .lib-grid:not(.compact) .drill-body h3 { font-size: 1.12rem; padding-right: 28px; }
  .lib-grid:not(.compact) .drill .pitch-scene { grid-column: 1; width: calc(100% - 10px); min-width: 0; aspect-ratio: auto; height: auto; min-height: 0; align-self: start; margin: 12px 0 0 10px; padding: 0; background: var(--pitch-2); display: flex; box-sizing: border-box; }
  .lib-grid:not(.compact) .drill .fchip { font-size: .78rem; }
  .lib-grid:not(.compact) .drill-foot { grid-column: 2; grid-row: 2; padding: 0 12px 12px; }
  .lib-grid:not(.compact) .drill-why { display: block; overflow: visible; line-height: 1.4; }
}
@media (max-width: 759px) {
  dialog.detail-sheet { height: 94dvh; max-height: 94dvh; }
  .detail-sheet .sheet-head { padding-bottom: 12px; }
  .detail-sheet .sheet-body { padding-inline: 16px; }
  .detail-sheet .sheet-foot { padding-inline: 16px; }
  .detail-sheet .detail-grid { gap: 16px; }
  }

/* Super-Übungen (21.28) */
.tag.super { background: var(--signal); color: var(--hero); }
.super-section .chips { margin-top: 4px; }
.super-section .chip { min-height: 44px; white-space: nowrap; }
.super-section .seg { max-width: 100%; }
.super-section .seg button { min-height: 44px; text-align: left; }
.super-section .disclosure { margin-top: 2px; }
.detail-content, .super-section, .super-section .chips, .super-section .field { min-width: 0; max-width: 100%; }
.super-section .seg { display: flex; }
.super-section .seg button { flex: 1 1 auto; }

/* ---------- 21.38 User-First: eine Hauptaktion je Ansicht, Nebensachen eine Ebene tiefer ---------- */
/* Heute */
.today-notice { margin-bottom: var(--s-3); }
.hero-stats > button { all: unset; box-sizing: border-box; padding: 10px 12px 8px; border-left: 1px solid var(--hero-line); cursor: pointer; transition: background var(--dur-1); }
.hero-stats > button:hover { background: rgba(255, 255, 255, .06); }
.hero-stats > button:focus-visible { outline: 3px solid var(--signal); outline-offset: -3px; }
.hero-stats > button small svg { width: 12px; height: 12px; vertical-align: -1px; opacity: .8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.hero-actions .grow { flex: 1 1 210px; }
.hero-actions .btn:not(.grow) { flex: 0 1 auto; }
.hero-empty h2 { max-width: 14ch; }
.hero-lead { max-width: 44ch; margin: 8px 0 0; font-size: .98rem; line-height: 1.45; }
.today-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-2); margin-top: var(--s-3); }
.today-links { gap: 4px; margin-top: 6px; }
.tl-main { all: unset; box-sizing: border-box; display: block; min-width: 0; cursor: pointer; }
.tl-main:focus-visible { outline: 3px solid var(--focus); border-radius: var(--r-xs); }
@media (max-width: 459px) { .hide-xs { display: none; } }

/* Planen: Kopf mit vier Fakten, Blöcke mit drei Bedienelementen */
.plan-header { gap: 12px; }
.fact-squad { gap: 0; padding: 0; cursor: default; }
.fact-squad .stepper { border: 0; background: transparent; }
.fact-squad .stepper button { width: 40px; height: 40px; }
.fact-squad > button { align-self: stretch; display: inline-flex; align-items: center; padding: 0 12px; border: 0; border-left: 1.5px solid var(--line-2); background: none; color: inherit; font: inherit; font-weight: 750; cursor: pointer; white-space: nowrap; }
.fact-squad > button:hover { background: var(--surface-3); }
.drop-zone { margin-top: 10px; }
.plan-cta { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-2); margin-top: var(--s-3); }
.block { padding: 12px 8px 8px 6px; gap: 2px 10px; }
.block:hover { border-color: var(--ink-3); }
.block-main button.title { font-size: 1.05rem; line-height: 1.2; }
.block-actions { flex-wrap: nowrap; gap: 2px; margin-top: 8px; }
.block-actions .grow { flex: 1; }
.block-actions .stepper output { min-width: 64px; }
.pause-row { grid-template-columns: 28px 1fr auto; min-height: 44px; padding: 0 4px 0 10px; gap: 8px; }
.pause-ico { width: 28px; }
.pause-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.pause-main strong { font-weight: 700; }
.pause-actions .icon-btn { width: 36px; height: 36px; min-height: 36px; color: var(--ink-3); }
@media (max-width: 599px) {
  .plan-facts .fact-squad { grid-column: span 2; }
  .fact-squad > button { flex: 1; white-space: normal; text-align: left; line-height: 1.15; }
  .fact-squad .stepper button { width: 44px; height: 44px; }
  .plan-cta { grid-template-columns: 1fr; }
  .block-actions .stepper button { width: 44px; height: 44px; }
}
@media (min-width: 1100px) {
  #today { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0 var(--s-8); align-items: start; }
  .today-main { position: sticky; top: calc(var(--appbar-h) + 8px); }
  .today-side > .section:first-child { margin-top: var(--s-3); }
  #today .hero h2 { font-size: 2.6rem; }
}
