:root {
  --bg: #f3f5f2;
  --card: #ffffff;
  --ink: #17221c;
  --muted: #5f6d65;
  --line: #dfe5df;
  --line-strong: #c6cfc7;
  --brand: #0f3d2a;
  --brand-2: #17603f;
  --accent: #1f9d55;
  --accent-ink: #ffffff;
  --danger: #c0392b;
  --warn: #b7791f;
  --grass-1: #2f8a4a;
  --grass-2: #2a7d43;
  --closed: repeating-linear-gradient(135deg, #eef1ee 0 6px, #e4e8e4 6px 12px);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 40, 28, .06), 0 4px 16px rgba(16, 40, 28, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-2); }
code { background: #eef2ee; padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px; min-height: 56px;
  background: var(--brand); color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; white-space: nowrap; }
.logo-dot { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 18%, #9be3b5 19% 40%, var(--accent) 41%); box-shadow: 0 0 0 2px rgba(255,255,255,.25); flex: none; }
.nav { display: flex; gap: 2px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: rgba(255,255,255,.78); text-decoration: none; padding: 17px 10px 15px; white-space: nowrap; font-size: 14.5px;
  border-bottom: 3px solid transparent; font-weight: 500;
}
.nav a:hover { color: #fff; }
.nav a.active { color: #fff; border-bottom-color: #7ee2a4; }
.nav .sep { width: 1px; background: rgba(255,255,255,.2); margin: 14px 6px; }
.usermenu { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; color: var(--ink); border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--line); min-width: 180px; overflow: hidden; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 10px 14px; background: none; border: 0; text-decoration: none; color: var(--ink); cursor: pointer; }
.menu a:hover, .menu button:hover { background: #f1f5f1; }

/* ---------- Layout ---------- */
.app { padding: 18px 16px 60px; max-width: 1500px; margin: 0 auto; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 16px; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { font-size: 22px; margin: 0; flex: 1; min-width: 200px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }
.week-label { font-weight: 700; font-size: 18px; margin: 0 6px; white-space: nowrap; }
.week-label small { font-weight: 500; color: var(--muted); font-size: 14px; margin-left: 6px; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-strong);
  background: #fff; cursor: pointer; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap;
}
.btn:hover { background: #f4f7f4; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #198a4a; }
.btn.danger { color: var(--danger); border-color: #e9c3be; }
.btn.danger:hover { background: #fdf1ef; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost.light { color: #fff; }
.btn.ghost.light:hover { background: rgba(255,255,255,.1); }
.btn.icon { width: 36px; padding: 0; font-size: 18px; }
.btn.big { height: 44px; font-size: 16px; width: 100%; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 0 14px; height: 34px; cursor: pointer; font-weight: 600; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--brand-2); color: #fff; }
.seg button:disabled { opacity: .35; cursor: not-allowed; }

input[type=text], input[type=password], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=search], input:not([type]), select, textarea {
  height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; min-width: 0;
}
textarea { height: auto; padding: 8px 10px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(31,157,85,.35); border-color: var(--accent); }
input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: 13px; color: #33433a; }
.form label.check, label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; cursor: pointer; }
.form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 14px; margin: 0; display: grid; gap: 10px; }
.form legend { font-weight: 700; padding: 0 6px; font-size: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; }
@media (max-width: 640px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr 1fr; } }
.alert { padding: 10px 12px; border-radius: 9px; font-size: 14px; }
.alert.error { background: #fdecea; color: #8a1f14; border: 1px solid #f3c2bb; }
.alert.info { background: #eaf6ef; color: #0f5132; border: 1px solid #bfe3cd; }
.alert.warn { background: #fff7e6; color: #7a4b00; border: 1px solid #f2d8a7; }
.daypick { display: flex; gap: 4px; flex-wrap: wrap; }
.daypick label { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 32px; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; }
.daypick input { display: none; }
.daypick label:has(input:checked) { background: var(--brand-2); color: #fff; border-color: var(--brand-2); }

/* ---------- Chips / legend ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.chip.clickable { cursor: pointer; }
.chip.clickable:hover { border-color: var(--line-strong); }
.badge { display: inline-block; padding: 1px 7px; border-radius: 6px; background: #eef2ee; font-size: 12px; font-weight: 600; color: #3b4a41; white-space: nowrap; }
.badge.green { background: #e2f5e9; color: #146c3c; }
.badge.gray { background: #eceff1; color: #66727a; }
.badge.red { background: #fdecea; color: #a12a1d; }

/* ---------- Timeline (Wochenplan) ---------- */
.day { margin-bottom: 14px; overflow: hidden; }
.day-head { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfa; }
.day-head h3 { margin: 0; font-size: 16px; }
.day-head .muted { font-size: 13px; }
.day.today .day-head { background: #eaf6ef; }
.day.today .day-head h3::after { content: "Heute"; margin-left: 8px; font-size: 11px; background: var(--accent); color: #fff; border-radius: 5px; padding: 1px 6px; vertical-align: 2px; }
.day.closed-day { opacity: .75; }
.day.closed-day .day-head { border-bottom: 0; }
.tl-scroll { overflow-x: auto; }
.tl { --label: 168px; min-width: calc(var(--label) + var(--hours) * 62px); }
.tl-head, .tl-row { display: grid; grid-template-columns: var(--label) 1fr; }
.tl-head { height: 26px; border-bottom: 1px solid var(--line); }
.tl-corner, .tl-label { position: sticky; left: 0; z-index: 3; background: #fff; border-right: 1px solid var(--line); }
.tl-scale { position: relative; }
.tl-scale span { position: absolute; top: 5px; transform: translateX(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-scale span:first-child { transform: none; padding-left: 4px; }
.tl-row { border-bottom: 1px solid var(--line); }
.tl-row:last-child { border-bottom: 0; }
.tl-label { padding: 7px 10px; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.tl-label b { font-size: 14px; line-height: 1.15; }
.tl-label span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-track {
  position: relative; height: 64px; cursor: copy;
  background-image:
    linear-gradient(to bottom, transparent calc(50% - 1px), var(--line-strong) calc(50% - 1px), var(--line-strong) 50%, transparent 50%),
    linear-gradient(to bottom, transparent calc(25% - .5px), #edf0ed calc(25% - .5px), #edf0ed 25%, transparent 25%, transparent calc(75% - .5px), #edf0ed calc(75% - .5px), #edf0ed 75%, transparent 75%),
    linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, calc(100% / var(--hours)) 100%;
}
.tl-track.readonly { cursor: default; }
.tl-closed { position: absolute; top: 0; bottom: 0; background: var(--closed); pointer-events: none; }
.tl-now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #e53e3e; z-index: 2; pointer-events: none; }
.tl-now::before { content: ""; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: #e53e3e; }
.lanes-hint { position: absolute; left: 4px; top: 0; bottom: 0; display: grid; grid-template-rows: repeat(4, 1fr); font-size: 9px; color: #aab5ad; pointer-events: none; line-height: 1; align-items: center; }
.bk {
  position: absolute; border-radius: 6px; padding: 2px 6px; overflow: hidden; cursor: pointer; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.65); line-height: 1.1; min-width: 6px;
}
.bk:hover { filter: brightness(1.06); z-index: 2; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), 0 3px 10px rgba(0,0,0,.2); }
.bk-t { font-weight: 700; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.bk-s { font-size: 10.5px; opacity: .88; white-space: nowrap; overflow: hidden; }
.bk.short .bk-s { display: none; }
.bk-block { background: repeating-linear-gradient(135deg, #5b6770 0 7px, #4a555d 7px 14px) !important; color: #fff !important; }
.bk-auto::after { content: "A"; position: absolute; right: 3px; top: 2px; font-size: 9px; font-weight: 800; opacity: .55; }
.bk-dim { opacity: .3; }
.bk-ghost { background: rgba(31,157,85,.15) !important; border: 2px dashed var(--accent); color: var(--brand) !important; box-shadow: none; pointer-events: none; }

.empty { padding: 28px; text-align: center; color: var(--muted); }

/* ---------- Pitch view ---------- */
.pitch-controls { display: grid; gap: 10px; margin-bottom: 14px; }
.time-slider { display: flex; align-items: center; gap: 14px; }
.time-slider input[type=range] { flex: 1; accent-color: var(--accent); height: 28px; }
.time-big { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 92px; color: var(--brand); }
.pitch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.pitch-card { padding: 12px; display: grid; gap: 8px; }
.pitch-card-head { display: flex; align-items: center; gap: 8px; }
.pitch-card-head b { font-size: 15px; }
.pitch-card-head .grow { flex: 1; }
.pitch-wrap { position: relative; }
.pitch-closed { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(240,243,240,.82); border-radius: 8px; font-weight: 700; color: var(--muted); }
svg.pitch { width: 100%; height: auto; display: block; border-radius: 8px; }
svg.pitch .grass { fill: var(--grass-1); }
svg.pitch .stripe { fill: var(--grass-2); }
svg.pitch .mk { fill: none; stroke: rgba(255,255,255,.85); stroke-width: .45; pointer-events: none; }
svg.pitch .mk-dot { fill: rgba(255,255,255,.85); pointer-events: none; }
svg.pitch .reg { stroke: rgba(255,255,255,.95); stroke-width: .5; transition: opacity .15s; }
svg.pitch .reg.click { cursor: pointer; }
svg.pitch .reg.click:hover { opacity: .9; stroke-width: 1; }
svg.pitch .reg-free { fill: rgba(255,255,255,.08); }
svg.pitch .reg-free.click:hover { fill: rgba(255,255,255,.3); }
svg.pitch text { font-family: var(--font); font-weight: 700; pointer-events: none; text-anchor: middle; dominant-baseline: middle; }
svg.pitch .lbl-sub { font-weight: 500; }
.day-list { display: flex; flex-wrap: wrap; gap: 5px; }
.day-list .chip { font-size: 12px; }
.day-list .chip.active { box-shadow: 0 0 0 2px var(--accent); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfa; white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #f7faf7; }
.tbl tr.inactive td { opacity: .55; }
.color-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; vertical-align: -2px; margin-right: 8px; }
.wrap-badges { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------- Dialog ---------- */
dialog.dlg { border: 0; padding: 0; border-radius: 16px; width: min(640px, calc(100vw - 20px)); max-height: calc(100vh - 30px); box-shadow: 0 20px 60px rgba(0,0,0,.3); color: var(--ink); }
dialog.dlg.wide { width: min(860px, calc(100vw - 20px)); }
dialog.dlg::backdrop { background: rgba(10, 30, 20, .45); backdrop-filter: blur(2px); }
/* Dialoge mit Reitern oben verankern: Reiterleiste bleibt beim Durchklicken auf derselben Höhe */
dialog.dlg:has(.tabbed) { margin-top: max(16px, 6vh); margin-bottom: auto; max-height: calc(100vh - max(16px, 6vh) - 16px); }
@media (max-width: 640px) { dialog.dlg:has(.tabbed) { margin-top: 10px; max-height: calc(100dvh - 20px); } dialog.dlg.wide:has(.tabbed) { margin: 0; max-height: 100dvh; } }
.dlg-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.dlg-head h2 { margin: 0; font-size: 18px; flex: 1; }
.dlg-body { padding: 16px 18px; display: grid; gap: 14px; }
.dlg-foot { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fff; flex-wrap: wrap; }
.dlg-foot .grow { flex: 1; }
.dlg-pitch { max-width: 520px; width: 100%; justify-self: center; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.hours-table { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 6px 10px; align-items: center; }
.matrix { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(210px, 260px) 110px; gap: 6px 10px; align-items: center; }
.matrix .mh { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #14281d; color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.25); z-index: 100; max-width: calc(100vw - 30px); font-weight: 500; }
.toast.error { background: #8a1f14; }

/* ---------- Autoplan ---------- */
.ap-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 14px; align-items: start; }
@media (max-width: 960px) { .ap-grid { grid-template-columns: 1fr; } }
.team-checks { display: grid; gap: 2px; max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; padding: 6px; }
.team-checks label { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; font-weight: 500; font-size: 14px; cursor: pointer; }
.team-checks label:hover { background: #f4f7f4; }
.team-checks .muted { margin-left: auto; font-size: 12px; }
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { padding: 10px 14px; border-radius: 10px; background: #f4f7f4; min-width: 120px; }
.stat b { font-size: 22px; display: block; }
.stat span { font-size: 12px; color: var(--muted); }

/* ---------- Auth ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at top, #1d5b3d, var(--brand) 60%); }
.auth-card { background: #fff; border-radius: 18px; padding: 26px; width: min(400px, 100%); box-shadow: 0 30px 80px rgba(0,0,0,.35); display: grid; gap: 16px; }
.auth-card.wide { width: min(640px, 100%); }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--brand); }
.auth-pitch { width: 100%; border-radius: 10px; }
.auth-pitch .g { fill: var(--grass-1); }
.auth-pitch .m * { fill: none; stroke: rgba(255,255,255,.85); stroke-width: .5; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 14px; }
.checks .ok { color: #146c3c; }
.checks .bad { color: var(--danger); font-weight: 700; }
.checks .warn { color: var(--warn); font-weight: 600; }
.mysql-only { opacity: .5; }
.form:has(input[value=mysql]:checked) .mysql-only { opacity: 1; }

@media (max-width: 720px) {
  .brand-name { display: none; }
  .app { padding: 12px 10px 60px; }
  .tl { --label: 112px; }
  .tl-label b { font-size: 13px; }
  .week-label { font-size: 16px; }
  .kv { grid-template-columns: 100px 1fr; }
  .matrix { grid-template-columns: 1fr 120px 90px; }
}
@media print {
  .topbar, .toolbar, .legend .clickable { display: none !important; }
  .app { padding: 0; max-width: none; }
  .card { box-shadow: none; }
  .day { break-inside: avoid; }
}

/* ---------- Tausch ---------- */
.nav-badge { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: #f59e0b; color: #1a1a1a; font-size: 11px; font-weight: 800; text-align: center; vertical-align: 1px; }
.sec-title { font-size: 16px; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.swap-list { display: grid; gap: 12px; }
.swap-card { display: grid; gap: 10px; }
.swap-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.swap-msg { background: #f4f7f4; border-radius: 8px; padding: 8px 12px; font-style: italic; }
.swap-pair { display: grid; grid-template-columns: minmax(0, 280px) auto minmax(0, 280px); gap: 18px; align-items: center; justify-content: start; }
.swap-pair:has(> :only-child) { grid-template-columns: minmax(0, 380px); }
.swap-side { display: grid; gap: 4px; align-content: start; }
.swap-cap { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; color: var(--muted); }
.swap-mini { max-width: 220px; }
.swap-line { display: flex; align-items: center; }
.swap-arrow { font-size: 26px; color: var(--accent); font-weight: 800; }
.swap-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.swap-actions input { flex: 1; min-width: 160px; }
.swap-opts { display: grid; gap: 4px; max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; padding: 6px; }
.swap-opt { display: flex !important; align-items: flex-start; gap: 10px; padding: 7px 8px; border-radius: 7px; cursor: pointer; font-weight: 500 !important; font-size: 14px !important; color: var(--ink) !important; }
.swap-opt:hover { background: #f4f7f4; }
.swap-opt input { margin-top: 3px; }
.swap-opt.disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 640px) { .swap-pair { grid-template-columns: 1fr; } .swap-arrow { transform: rotate(90deg); justify-self: center; } }

/* ---------- Plan Drag & Drop ---------- */
.bk-drag { cursor: grab; touch-action: none; user-select: none; }
.bk-drag:active { cursor: grabbing; }
.bk-dragging { opacity: .35; }
.is-dragging, .is-dragging * { cursor: grabbing !important; user-select: none; }
.bk-resize { position: absolute; right: 0; top: 0; bottom: 0; width: 8px; cursor: ew-resize; background: linear-gradient(to right, transparent, rgba(255,255,255,.45)); }
.bk-resize:hover { background: rgba(255,255,255,.6); }
.bk-fixed { opacity: .45; filter: grayscale(.5); cursor: default; }
.bk-warn { outline: 2px solid #f59e0b; outline-offset: -2px; }
.bk-warn .bk-t::before { content: "⚠ "; }
.bk-ghost-drag { pointer-events: none; z-index: 5; border: 2px dashed; font-size: 11px; font-weight: 700; padding: 2px 6px; display: flex; align-items: center; box-shadow: none; }
.bk-ghost-drag.ok { background: rgba(31,157,85,.22); border-color: var(--accent); color: var(--brand); }
.bk-ghost-drag.warn { background: rgba(245,158,11,.25); border-color: #f59e0b; color: #7a4b00; }
.bk-ghost-drag.bad { background: rgba(192,57,43,.2); border-color: var(--danger); color: #8a1f14; }

/* ---------- Spieler / Termine / Spiele ---------- */
.bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; background: #fffbeb; border-color: #f2d8a7; }
.badge.amber { background: #fff4d6; color: #8a5a00; }
.cnt { display: inline-block; padding: 0 6px; border-radius: 6px; font-weight: 700; font-size: 12px; background: #eef2ee; margin-right: 3px; white-space: nowrap; }
.cnt.green { background: #e2f5e9; color: #146c3c; }
.cnt.amber { background: #fff4d6; color: #8a5a00; }
.cnt.red { background: #fdecea; color: #a12a1d; }
.ev-day { margin-bottom: 16px; }
.ev-date { font-size: 15px; margin: 0 0 8px; color: var(--muted); }
.ev-date.today { color: var(--accent); }
.ev-date.today::after { content: " · Heute"; }
.ev-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border-left: 5px solid var(--team); }
.ev-card.ev-past { opacity: .7; }
.ev-main { display: flex; gap: 14px; flex: 1; min-width: 260px; align-items: flex-start; }
.ev-time { font-weight: 800; font-size: 18px; color: var(--brand); font-variant-numeric: tabular-nums; min-width: 64px; }
.ev-time span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.ev-info { display: grid; gap: 3px; }
.ev-title { font-size: 15px; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.ev-staff { display: flex; gap: 6px; flex-wrap: wrap; }
.resp { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.resp-btn { height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: #fff; font-weight: 700; cursor: pointer; }
.resp-btn:disabled { cursor: not-allowed; opacity: .5; }
.resp-btn.green.on { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.resp-btn.amber.on { background: #f59e0b; border-color: #f59e0b; color: #1a1a1a; }
.resp-btn.red.on { background: #c0392b; border-color: #c0392b; color: #fff; }
.resp-btn.blue.on { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.bk-match { border: 2px solid #fff !important; box-shadow: 0 0 0 2px #111, inset 0 0 0 1px rgba(0,0,0,.2) !important; }
.bk-match .bk-t::before { content: "● "; }
dialog.dlg.xwide { width: min(1400px, calc(100vw - 20px)); max-height: calc(100vh - 16px); }
.lineup-grid { display: grid; grid-template-columns: minmax(300px, 560px) minmax(340px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .lineup-grid { grid-template-columns: 1fr; } }
.lineup-left { display: grid; gap: 6px; align-content: start; }
.lineup-view { max-width: 420px; width: 100%; margin: 0 auto; }
/* Im Editor richtet sich das Spielfeld nach der Fensterhöhe, damit nichts gescrollt werden muss */
.lineup-grid .lineup-view { width: min(460px, calc((100vh - 385px) * 0.66)); min-width: 260px; max-width: none; }
.pub-sel { display: flex; align-items: center; gap: 6px; }
.squad-list { columns: 2 200px; column-gap: 16px; }
.squad-list .squad-row { break-inside: avoid; }
.squad-row { display: flex; gap: 8px; padding: 5px 6px; border-radius: 7px; }
.squad-row.me { background: #eaf6ef; font-weight: 700; }
svg.lineup-pitch .slot circle { fill: rgba(255,255,255,.18); stroke: #fff; stroke-width: .5; }
svg.lineup-pitch .slot.filled circle { fill: var(--brand); }
svg.lineup-pitch .slot.sel circle { fill: #f59e0b; stroke-width: .9; }
svg.lineup-pitch .slot.click { cursor: pointer; }
svg.lineup-pitch .slot-num { fill: #fff; font-weight: 800; }
svg.lineup-pitch .slot-name { fill: #fff; font-weight: 700; paint-order: stroke; stroke: rgba(0,0,0,.45); stroke-width: .5px; }
.lineup-right { max-height: calc(100vh - 210px); overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.lp-head { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--muted); padding: 8px 6px 4px; cursor: pointer; }
.lp-row { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.lp-row:hover { background: #f1f6f1; }
.lp-row.used { background: #eaf6ef; }
.lp-num { width: 24px; text-align: right; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.lp-name { flex: 1; }
.bench { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 8px; }

.chip.chip-extra { background: #f6f8f6; border-style: dashed; font-weight: 500; }

.rule-sum { font-size: 12px; color: var(--muted); margin-top: 3px; width: 100%; }
.rules-box { display: grid; gap: 8px; }
.rule-row { display: grid; grid-template-columns: 140px 140px 1fr 170px 36px; gap: 8px; align-items: end; padding: 8px; border: 1px dashed var(--line-strong); border-radius: 9px; }
@media (max-width: 760px) { .rule-row { grid-template-columns: 1fr 1fr; } }
.row-elsewhere td { background: #f7f8f7; color: var(--muted); }

fieldset.card { background: #fff; }
.ro { display: grid; gap: 2px; padding: 4px 0; }

/* Statistik */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.stat-tile { padding: 12px 14px; display: grid; gap: 4px; align-content: start; }
.stat-tile > b { font-size: 24px; font-variant-numeric: tabular-nums; }
.pbar { position: relative; height: 20px; min-width: 110px; border-radius: 6px; background: #eef1ee; overflow: hidden; }
.pbar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; }
.pbar span { position: relative; display: block; text-align: center; font-size: 12px; font-weight: 700; line-height: 20px; }
.pbar.green i { background: #8fd3a9; } .pbar.amber i { background: #f6cf7a; } .pbar.red i { background: #f3a3a3; } .pbar.gray i { background: transparent; }
.txt-green { color: #146c3c; } .txt-amber { color: #a16207; } .txt-red { color: #b91c1c; } .txt-gray { color: var(--muted); }
.stat-tbl th.sortable { cursor: pointer; user-select: none; } .stat-tbl th.sortable.on { color: var(--ink); }
.stat-tbl tr.grp th { text-align: center; border-bottom: 0; padding-bottom: 0; }
.stat-tbl td.num { text-align: center; font-variant-numeric: tabular-nums; }
.stat-tbl td.pcell { width: 150px; }
.nowrap { white-space: nowrap; }

.guest-form { display: grid; gap: 8px; padding: 10px; margin: 2px 2px 6px; border: 1px dashed var(--line-strong); border-radius: 9px; background: #fffbef; }
.guest-grid { display: grid; grid-template-columns: 1fr 1.2fr 70px 1.2fr; gap: 6px; }
@media (max-width: 600px) { .guest-grid { grid-template-columns: 1fr 1fr; } }

.info-btn { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; color: var(--muted); font: italic 700 12px/1 Georgia, serif; cursor: pointer; padding: 0; }
.info-btn:hover { background: var(--brand-2); color: #fff; border-color: var(--brand-2); }

/* Aufstellung: Drag & Drop */
.lineup-grid [data-pid], svg.lineup-pitch .slot.filled { touch-action: none; }
.lineup-right .lp-row[data-pid] { touch-action: pan-y; }
.lineup-grid.dragging, .lineup-grid.dragging * { cursor: grabbing !important; user-select: none; }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; padding: 5px 10px; border-radius: 8px; background: var(--brand-2); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.25); white-space: nowrap; }
svg.lineup-pitch .slot.drop-hover circle { stroke: #fbbf24; stroke-width: 1.2; fill: rgba(251,191,36,.55); }
.bench { min-height: 38px; padding: 6px 8px; border: 1px dashed var(--line-strong); border-radius: 9px; }
.bench.drop-hover, .lineup-right.drop-hover { background: #fff7e0; border-color: #f59e0b; }
.lineup-grid .lp-row, .lineup-grid .bench .chip, svg.lineup-pitch { user-select: none; -webkit-user-select: none; }

.lp-top { position: sticky; top: -6px; z-index: 2; background: #fff; display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; padding: 2px 2px 6px; margin: -2px -2px 0; border-bottom: 1px solid var(--line); }
.lp-top .lp-search { flex: 1; min-width: 180px; height: 34px; }
.lp-top .guest-form { flex-basis: 100%; }

/* Nachrichten */
.msg-list { display: grid; gap: 8px; }
.msg { padding: 12px 14px 12px 16px; border-left: 4px solid var(--team); cursor: pointer; display: grid; gap: 4px; }
.msg:hover { background: #fbfdfb; }
.msg.unread .msg-subj { font-weight: 800; }
.msg-head { display: flex; align-items: center; gap: 8px; }
.msg .dot { width: 9px; height: 9px; border-radius: 50%; background: #dc2626; flex: none; }
.msg-preview { color: #4b5a52; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-body { white-space: pre-wrap; line-height: 1.5; margin-top: 4px; }
.pick-list { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; padding: 4px; }
.pick-row { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.pick-row:hover { background: #f1f6f1; }
.pick-row .badge { font-size: 11px; }
.squad-row .grow, .pick-row .grow { flex: 1; }

/* Abwesenheiten, Trainer, Trainingsleitung */
.abs-card { display: grid; gap: 8px; margin-bottom: 12px; }
.abs-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.abs-row { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; background: #f7f9f7; }
.abs-row.now { background: #fff4e5; }
.abs-ico { font-size: 18px; width: 24px; text-align: center; }
.abs-row .grow { flex: 1; }
.abs-team summary { cursor: pointer; padding: 4px 0; }
.abs-team .abs-row { margin-top: 6px; }
.trainer-line { margin-top: 3px; display: flex; flex-wrap: wrap; align-items: center; white-space: pre; }
.tr-ok { color: #146c3c; } .tr-abs { color: #a12a1d; text-decoration: line-through; text-decoration-thickness: 1px; }
.badge.blue { background: #e3edff; color: #1d4ed8; }
.ev-staffbox { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 8px 10px; background: #f7f9f7; border-radius: 8px; }
.lead-sel { display: flex; align-items: center; gap: 6px; } .lead-sel select { height: 32px; }
tr.row-absent td { background: #fdf5f4; }
.series-box { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9f7; }

/* Fahrgemeinschaften */
.ride-btn .ride-req { color: #a16207; } .ride-btn .ride-mine { margin-left: 6px; padding: 0 6px; border-radius: 5px; background: #fff4d6; color: #8a5a00; font-weight: 700; }
.ride-btn.on { border-color: #f59e0b; }
.meet { font-weight: 600; color: #1f3a2d; }
.ride-info { padding: 10px 12px; background: #f7f9f7; border-radius: 9px; display: grid; gap: 3px; }
.ride { padding: 10px 12px; display: grid; gap: 6px; } .ride.mine { border-color: #f59e0b; background: #fffdf5; }
.ride-head { display: flex; align-items: center; gap: 8px; } .ride-head .grow, .ride-reqrow .grow { flex: 1; }
.ride-car { font-size: 18px; }
.seats { display: inline-flex; gap: 3px; } .seats i { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid #8fbfa2; } .seats i.full { background: #2f855a; border-color: #2f855a; }
.ride-pass { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ride-pass .chip.me { background: #e2f5e9; font-weight: 700; }
.ride-pass .chip .x { border: 0; background: none; cursor: pointer; padding: 0 0 0 4px; color: #a12a1d; font-weight: 700; }
.ride-actions { display: flex; gap: 6px; flex-wrap: wrap; } .ride-actions:empty { display: none; }
.ride-reqrow { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: #fbf7ee; }
.ride-reqrow.me { outline: 1px solid #f59e0b; }
.ride-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.ride-forms .card { display: grid; gap: 8px; align-content: start; }
.ride-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .ride-form input[type=text] { flex: 1; min-width: 180px; }
.day-empty { display: flex; gap: 10px; align-items: baseline; padding: 6px 14px; margin: 0 0 8px; border: 1px dashed var(--line-strong); border-radius: 10px; background: #fafbfa; }
.day-empty.today { border-color: var(--brand-2); }

/* Wochen-Verfügbarkeit */
.av-grid { display: grid; gap: 6px; }
.av-day { display: grid; grid-template-columns: 140px 1fr; gap: 10px; align-items: start; padding: 6px 8px; border-radius: 8px; background: #f7f9f7; }
.av-day.off { background: #fbf3f2; }
.av-name { padding-top: 6px; font-weight: 600; }
.av-wins { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.av-win { display: flex; gap: 4px; align-items: center; } .av-win select { height: 32px; }
@media (max-width: 600px) { .av-day { grid-template-columns: 1fr; } }

.phase-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.phase-tab { display: grid; gap: 2px; text-align: left; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; cursor: pointer; min-width: 180px; }
.phase-tab.on { border-color: var(--brand-2); box-shadow: 0 0 0 2px var(--brand-2) inset; background: #f3faf5; }
.badge.amber { background: #fff4d6; color: #8a5a00; }
.season-box { display: grid; gap: 6px; } .season-row { display: flex; gap: 6px; align-items: center; } .season-row input { max-width: 170px; }

/* Zeit ohne Platzbedarf (Aufwärmen / Auslaufen) */
.bk-softpart { position: absolute; top: 0; bottom: 0; pointer-events: none; background: repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 4px, rgba(255,255,255,.15) 4px 8px); }
.bk-softpart.l { left: 0; border-right: 1px dashed rgba(255,255,255,.9); }
.bk-softpart.r { right: 0; border-left: 1px dashed rgba(255,255,255,.9); }
.bk-soft .bk-t, .bk-soft .bk-s { position: relative; }
.soft-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.soft-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.soft-row select { width: auto; padding: 4px 8px; }

/* Konflikt-Detailansicht */
.cf-item { cursor: pointer; border-radius: 6px; padding: 2px 4px; }
.cf-item:hover { background: rgba(255,255,255,.6); }
.cf-show { color: var(--accent); font-weight: 600; white-space: nowrap; }
.cv-grid { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .cv-grid { grid-template-columns: 1fr; } }
svg.pitch .reg-want { fill: rgba(220,38,38,.18); stroke: #dc2626; stroke-width: 1.1; stroke-dasharray: 2.2 1.4; }
svg.pitch .reg-moved { fill: rgba(31,157,85,.25); stroke: #16a34a; stroke-width: 1.1; stroke-dasharray: 2.2 1.4; }
.lg-want, .lg-moved { display: inline-block; width: 12px; height: 9px; border: 1.5px dashed #dc2626; background: rgba(220,38,38,.18); vertical-align: middle; border-radius: 2px; }
.lg-moved { border-color: #16a34a; background: rgba(31,157,85,.25); }

.sz-box { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fafbfa; }
.sz-row { display: grid; grid-template-columns: 14px minmax(90px, 140px) auto minmax(130px, 170px) 1fr; gap: 10px; align-items: center; padding: 4px 6px; border-radius: 8px; }
.sz-row.focus { background: #fff4d6; }
.sz-row .seg button { min-width: 44px; }
.sz-row select { padding: 4px 8px; }
.sz-name { display: grid; line-height: 1.2; }
.txt-green { color: #146c3c; }
@media (max-width: 700px) { .sz-row { grid-template-columns: 14px 1fr auto; } .sz-row select, .sz-row > span:last-child { grid-column: 2 / -1; } }

.focus-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; }

/* Rückmeldefrist */
.deadline { font-size: 12px; color: var(--muted); margin-top: 4px; }
.deadline b { color: var(--brand); }
.deadline.soon b, .deadline.soon { color: #a16207; }
.deadline.closed { color: #8a1f14; }
/* Anwesenheit: Abweichung vom Standard (laut Rückmeldung) */
tr.row-exception td { background: #fff7e6; }
.pres-cell { text-align: center; white-space: nowrap; }
.pres-tag { display: block; font-size: 10.5px; font-weight: 700; color: #a16207; }

/* Mitfahrgebühren */
.pay-tog { border: 0; border-radius: 6px; padding: 1px 6px; margin-left: 4px; font-size: 11px; font-weight: 700; cursor: pointer; }
.pay-tog.paid { background: #e2f5e9; color: #146c3c; } .pay-tog.open { background: #fdecea; color: #a12a1d; }
.sec-head { font-size: 16px; margin: 18px 0 8px; }
.owe-banner { margin-bottom: 12px; line-height: 1.7; }
.ride-stats { display: grid; gap: 8px; margin-bottom: 8px; } .ride-stats .stat-tiles { margin-bottom: 0; }
.ride-tbl .caret { color: var(--muted, #66727a); font-size: 11px; }
.ride-tbl tr.on td { background: #f7faf7; }
.ride-tbl .ride-detail > td { padding: 4px 8px 10px 22px; background: #fbfcfb; }
.ride-tbl .ride-detail .tbl td { padding: 4px 8px; border: 0; }
.ride-tbl .ride-detail tr.out { opacity: .6; }

/* Termine: Spiele farblich von Trainings abheben, Filter */
.ev-card.ev-match { background: linear-gradient(90deg, #bfeccd 0, #dcf5e4 180px, #ebf9ef 100%); border: 2px solid #16a34a; border-left: 6px solid var(--team); }
.ev-card.ev-match .ev-time { color: #15803d; }
.badge.ev-badge-match { background: #16a34a; color: #fff; }
.badge.ev-badge-training { background: #e8edf3; color: #3d4f63; }
.seg.ev-kind button.k-match.on { background: #16a34a; border-color: #16a34a; color: #fff; }

.paybox { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border-radius: 8px; border: 1px solid #f3c2bb; background: #fff5f3; color: #a12a1d; font-weight: 700; font-size: 13px; cursor: pointer; user-select: none; }
.paybox input { width: 18px; height: 18px; margin: 0; accent-color: #146c3c; cursor: pointer; }
.paybox.on { border-color: #bfe3cd; background: #eaf6ef; color: #146c3c; }
.ride-team-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .ride-team-head .sec-head { margin-bottom: 0; } .ride-team-head .grow { flex: 1; }

.ride-tbl .badge.plan { margin-left: 6px; }
.ride-tbl .ride-detail tr.future td { background: #f3f8fe; }
.plan-mini { color: #1d4ed8; font-size: 12px; font-weight: 700; }
.form .field { display: grid; gap: 4px; } .form .field-label { font-weight: 600; font-size: 13px; color: #33433a; }
.seg.abs-kinds { display: flex; width: 100%; } .seg.abs-kinds button { flex: 1 1 0; min-width: 0; height: auto; min-height: 42px; padding: 5px 4px; line-height: 1.2; font-size: 13px; display: grid; justify-items: center; gap: 1px; }

/* ---------- Termine: aufgeräumtere Ansicht (v. a. Handy) ---------- */
.t-sm { display: none; }
.ev-toolbar { display: grid; gap: 8px; justify-content: start; }
.ev-tb-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ev-range { height: 36px; font-weight: 600; }
.ev-kind { display: flex; gap: 6px; flex-wrap: wrap; }
.kchip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.kchip .kn { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #eef1ee; font-size: 12px; display: inline-grid; place-items: center; }
.kchip.on { background: var(--brand-2); border-color: var(--brand-2); color: #fff; } .kchip.on .kn { background: rgba(255,255,255,.22); }
.kchip.k-match.on { background: #16a34a; border-color: #16a34a; }
.abs-card { padding: 10px 14px; gap: 6px; }
.abs-head .abs-none { margin-left: -4px; }
.resp { display: grid; gap: 4px; justify-items: end; }
.resp-btns { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.resp-note { font-style: italic; }
.ev-title b { font-size: 15px; }

@media (max-width: 640px) {
  .t-lg { display: none; } .t-sm { display: inline; }
  .page-head h1 { font-size: 22px; }
  .ev-toolbar { justify-content: stretch; margin-bottom: 10px; }
  .ev-tb-row { flex-wrap: nowrap; }
  .ev-when { flex: 1; } .ev-when button { flex: 1; padding: 0 8px; }
  .ev-range { flex: 0 0 auto; max-width: 46%; }
  .ev-kind { flex: 1; flex-wrap: nowrap; } .kchip { flex: 1; justify-content: center; padding: 0 8px; }
  .ev-team { width: 100%; }
  .abs-card { padding: 8px 10px; margin-bottom: 10px; }
  .abs-head { gap: 6px; flex-wrap: nowrap; } .abs-head .btn.sm { padding: 0 8px; }
  .ev-day { margin-bottom: 12px; }
  .ev-date { font-size: 14px; margin-bottom: 6px; }
  .ev-card { display: grid; gap: 8px; padding: 10px 12px; border-left-width: 5px; }
  .ev-main { display: grid; grid-template-columns: 1fr; gap: 2px; min-width: 0; }
  .ev-time { display: flex; align-items: baseline; gap: 2px; font-size: 16px; min-width: 0; }
  .ev-time span { display: inline; font-size: 13px; }
  .ev-info { gap: 2px; }
  .ev-title b { font-size: 15px; }
  .ev-meta { font-size: 12.5px; }
  .trainer-line { font-size: 12px; white-space: normal; }
  .ev-actions { display: grid; gap: 6px; justify-content: stretch; }
  .ev-actions > .btn, .ev-actions > .ride-btn { justify-self: start; }
  .resp { justify-items: stretch; }
  .resp-btns { display: grid; gap: 4px; } .resp-btns.n4 { grid-template-columns: repeat(4, 1fr); } .resp-btns.n3 { grid-template-columns: repeat(3, 1fr); }
  .resp-btn { height: auto; min-height: 44px; padding: 4px 2px; font-size: 12.5px; line-height: 1.15; display: grid; justify-items: center; align-content: center; gap: 1px; white-space: nowrap; }
  .resp-btn .ri { font-size: 15px; }
  .deadline { margin-top: 0; }
  .ev-staff { display: flex; flex-wrap: wrap; gap: 6px; }
}
@media (max-width: 640px) { .trainer-line { display: block; } }
@media (max-width: 640px) {
  .ev-main { grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; }
  .ev-info { display: contents; }
  .ev-time { grid-column: 1; grid-row: 1; }
  .ev-title { grid-column: 2; grid-row: 1; min-width: 0; }
  .ev-info > :not(.ev-title) { grid-column: 1 / -1; }
  .abs-head .abs-none { display: none; }
  .abs-head > b { font-size: 14px; }
}

/* Spiele: Treffpunkt ist die Hauptzeit */
.ev-time .tl { display: block; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.ev-time.ev-meet span { white-space: nowrap; }
.meet b { font-size: 14px; }
@media (max-width: 640px) {
  .ev-time .tl { display: none; }
  .ev-time.ev-meet::before { content: "📍"; font-size: 13px; margin-right: 2px; }
  .ev-time.ev-meet span { display: none; }
}
.ev-meta .kick { color: var(--ink); font-weight: 600; white-space: nowrap; }
.menu-ver { padding: 6px 14px 8px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); }

/* Rückmeldungen & Anwesenheit (Trainer) */
.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--ink); }
.pd-chip b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #eef1ee; display: inline-grid; place-items: center; font-size: 12.5px; }
.pd-chip.green b { background: #e2f5e9; color: #146c3c; } .pd-chip.amber b { background: #fff4d6; color: #8a5a00; } .pd-chip.red b { background: #fdecea; color: #a12a1d; }
.pd-chip.on { background: var(--brand-2); border-color: var(--brand-2); color: #fff; } .pd-chip.on b { background: rgba(255,255,255,.25); color: #fff; }
.pd-list { display: grid; gap: 6px; }
.pd-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pd-row.absent { background: #fdf5f4; } .pd-row.exc { background: #fff7e6; border-color: #f2d8a7; } .pd-row.elsewhere { background: #f7f8f7; color: var(--muted); }
.pd-name { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.pd-ctl { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.pd-resp { display: flex; gap: 3px; } .pd-resp .resp-btn { width: 40px; padding: 0; font-size: 15px; }
.pd-pres { height: 34px; min-width: 92px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-strong); background: #fff; font-weight: 700; cursor: pointer; color: #a12a1d; white-space: nowrap; }
.pd-pres.on { background: #e2f5e9; border-color: #9fd7b5; color: #146c3c; }
.pd-pres.exc { box-shadow: 0 0 0 2px #f59e0b; }
.pd-note { grid-column: 1 / -1; height: 32px; font-size: 13px; }
.pd-sub, .pd-exc { grid-column: 1 / -1; } .pd-exc { color: #a16207; font-weight: 700; }
@media (max-width: 640px) {
  .pd-row { grid-template-columns: 1fr; }
  .pd-ctl { justify-content: space-between; }
  .pd-resp { flex: 1; } .pd-resp .resp-btn { flex: 1; width: auto; height: 38px; }
  .pd-pres { height: 38px; }
  dialog.dlg.wide { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .dlg-body { padding: 12px; gap: 10px; }
  .dlg-head { padding: 10px 12px; } .dlg-head h2 { font-size: 16px; }
  .pd-chip { height: 32px; padding: 0 9px; font-size: 12.5px; }
}

/* Handy-Navigation: Menü-Knopf statt abgeschnittener Leiste */
.nav-toggle { display: none; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; min-width: 0; }
.nav-toggle .burger { font-size: 18px; line-height: 1; }
.nav-toggle #navCur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-toggle .nav-badge { margin-left: 0; }
@media (max-width: 720px) {
  .topbar { gap: 10px; padding: 0 10px; }
  .nav-toggle { display: inline-flex; flex: 1; max-width: max-content; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--brand); padding: 6px 0 10px; box-shadow: 0 12px 24px rgba(0,0,0,.25); max-height: calc(100dvh - 60px); overflow-y: auto; }
  .nav.open a { padding: 13px 20px; border-bottom: 0; border-left: 4px solid transparent; font-size: 16px; }
  .nav.open a.active { border-left-color: #7ee2a4; background: rgba(255,255,255,.08); }
  .nav.open .sep { width: auto; height: 1px; margin: 6px 16px; }
  .usermenu { margin-left: auto; }
  #btnUser { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Umfragen */
.poll { display: grid; gap: 6px; margin-top: 6px; cursor: default; }
.poll-head { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .poll-head .grow { flex: 1; }
.poll-opt { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; text-align: left; font-size: 15px; cursor: pointer; color: var(--ink); }
.poll-opt.static { cursor: default; }
.poll-opt > * { position: relative; }
.poll-fill { position: absolute !important; left: 0; top: 0; bottom: 0; background: #e8f0fb; transition: width .25s; }
.poll-opt.mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); } .poll-opt.mine .poll-fill { background: #d6f1e0; }
.poll-check { font-size: 18px; width: 20px; text-align: center; color: var(--accent); }
.poll-label { flex: 1; font-weight: 600; }
.poll-n { font-size: 15px; white-space: nowrap; }
.poll-row { display: grid; gap: 4px; }
.poll-who { display: flex; flex-wrap: wrap; gap: 4px; padding-left: 4px; }
.poll-who .chip { font-weight: 500; font-size: 12.5px; } .chip.muted-chip { color: var(--muted); background: #f6f8f6; }
.poll-teaser { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.poll-edit { display: grid; gap: 8px; }
.poll-edit-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .poll-edit-row input[type=text] { flex: 1; } .poll-edit-row .grow { flex: 1; }
@media (max-width: 640px) { .rd-lists { grid-template-columns: 1fr; } .poll-edit-row input[type=text] { min-width: 0; } }
.poll-dl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .poll-dl .grow { flex: 1; } .poll-dl input { height: 32px; }
.poll-opt:disabled { cursor: not-allowed; opacity: .8; }
.poll-edit-row input[type=datetime-local] { height: 34px; }
tr.row-retracted td { opacity: .6; } tr.row-retracted td:first-child { opacity: 1; }
.sent-cards { display: none; }
.sent-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.msg.retracted { opacity: .65; }
@media (max-width: 640px) { .sent-cards { display: grid; } .sent-table { display: none; } }

/* Antworten */
.msg-actions { display: flex; gap: 6px; margin-top: 6px; }
.reply-ref { color: #8a5a00; }
.reply-quote { padding: 8px 10px; border-left: 3px solid var(--line-strong); background: #f7f9f7; border-radius: 6px; display: grid; gap: 2px; }
.replies { display: grid; gap: 8px; } .reply { padding: 8px 10px; background: #fffaf0; border-radius: 8px; border: 1px solid #f2e3c4; }
.pick-head { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 8px 2px; }
.pick-row.off { opacity: .5; cursor: not-allowed; }
.skip-note { margin-top: 4px; color: #6b5a2e; } .skip-note details { display: inline; margin-left: 4px; } .skip-note summary { display: inline; cursor: pointer; text-decoration: underline; }
.form label.pick-row { display: flex; font-weight: 400; font-size: 14px; color: var(--ink); }

/* Benachrichtigungen & biometrische Anmeldung */
.sec-panel { display: grid; gap: 16px; }
.sec-block { display: grid; gap: 8px; }
.sec-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.sec-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sec-prefs { display: grid; gap: 6px; padding: 10px 12px; background: #f7f9f7; border-radius: 10px; }
.sec-prefs select { height: 32px; }
.sec-devs { display: grid; gap: 4px; }
.sec-dev { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; }
.form .sec-panel label.check { font-weight: 500; }
.passkey-btn { gap: 8px; } .auth-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; } .auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-page { grid-template-columns: minmax(0, 1fr); } .auth-card { justify-self: center; }
.sec-sub { display: grid; gap: 4px; padding: 6px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }

/* Gesprächsverlauf */
.thread { display: grid; gap: 8px; margin-top: 6px; cursor: default; }
.thread:empty { display: none; }
.card.card-pad:has(> .thread:empty) { display: none; }
.thread-head { margin-bottom: 2px; }
.bubble { max-width: 88%; justify-self: start; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: #f1f4f2; border: 1px solid var(--line); display: grid; gap: 2px; }
.bubble.mine { justify-self: end; background: #e2f5e9; border-color: #bfe3cd; border-radius: 14px 14px 4px 14px; }
.bubble.current { box-shadow: 0 0 0 2px rgba(31,157,85,.35); }
.bubble-body { white-space: pre-wrap; line-height: 1.45; font-size: 14.5px; }
.bubble-reply { justify-self: start; height: 26px; padding: 0 8px; }

/* Marktplatz */
.mk-toolbar { display: grid; gap: 8px; margin-bottom: 12px; }
.mk-search { height: 44px !important; font-size: 16px; border-radius: 12px !important; }
.mk-cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .mk-cats::-webkit-scrollbar { display: none; }
.mk-cats .kchip { flex: none; white-space: nowrap; }
.mk-toolbar .seg { justify-self: start; }
.mk-hits { grid-column: 1 / -1; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.mk-card { overflow: hidden; cursor: pointer; display: grid; grid-template-rows: auto 1fr; transition: transform .1s; }
.mk-card:hover { transform: translateY(-1px); }
.mk-card.ended { opacity: .7; }
.mk-img { position: relative; aspect-ratio: 4 / 3; background: #eef2ef; display: grid; place-items: center; overflow: hidden; }
.mk-img img { width: 100%; height: 100%; object-fit: cover; }
.mk-noimg { font-size: 54px; opacity: .55; }
.mk-count { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 2px 7px; border-radius: 999px; }
.mk-status { position: absolute; left: 8px; top: 8px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.mk-status.inline { position: static; }
.mk-status.reserved { background: #f59e0b; color: #1a1a1a; } .mk-status.sold { background: #4a555d; color: #fff; }
.mk-body { padding: 10px 12px 12px; display: grid; gap: 4px; align-content: start; }
.mk-price { font-size: 19px; font-weight: 800; color: var(--brand); } .mk-price.big { font-size: 26px; }
.mk-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.mk-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mk-note { color: #4b5a52; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-gal { display: grid; gap: 6px; }
.mk-gal > img { width: 100%; max-height: 60vh; object-fit: contain; background: #0f1a14; border-radius: 10px; cursor: pointer; }
.mk-dots { display: flex; gap: 6px; } .mk-thumb { width: 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; }
.mk-thumb img { width: 100%; height: 100%; object-fit: cover; } .mk-thumb.on { border-color: var(--accent); }
.mk-dhead { display: flex; align-items: center; gap: 10px; }
.mk-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.mk-ph { position: relative; width: 86px; height: 86px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #f3f6f3; }
.mk-ph img { width: 100%; height: 100%; object-fit: cover; }
.mk-ph .x { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-weight: 800; cursor: pointer; }
.mk-ph.add { display: grid; place-items: center; align-content: center; gap: 2px; font-size: 26px; cursor: pointer; border-style: dashed; color: var(--muted); }
.mk-checks { display: grid; gap: 6px; align-content: end; }
@media (max-width: 640px) { .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .mk-price { font-size: 16px; } .mk-title { font-size: 14px; } .mk-body { padding: 8px 9px 10px; } .mk-note { display: none; } }

/* Versteigerung */
.mk-status.auction { background: #7c3aed; color: #fff; text-transform: none; }
.mk-auc { color: #5b21b6; } .mk-auc.ended { color: var(--muted); }
.mk-aucbox { display: grid; gap: 10px; border-color: #ddd6fe; background: #faf8ff; }
.mk-auc-now { display: flex; gap: 22px; flex-wrap: wrap; }
.mk-bids details { display: grid; gap: 4px; } .mk-bids summary { cursor: pointer; }
.mk-bid { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.mk-bid.mine { background: #e2f5e9; border-radius: 6px; }

/* Strafen & Gebühren */
.fine-tbl tr.done td { opacity: .55; }
.fine-tbl td { vertical-align: top; }
.kassier { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cat-list { display: grid; gap: 6px; }
.cat-row { display: grid; grid-template-columns: 1.4fr 90px 1.4fr 70px auto; gap: 6px; align-items: center; }
.cat-row.off { opacity: .5; }
@media (max-width: 640px) { .cat-row { grid-template-columns: minmax(0, 1fr) 76px 40px; }
  .cat-row > :nth-child(1) { grid-column: 1; grid-row: 1; } .cat-row > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .cat-row > :nth-child(3) { grid-column: 1; grid-row: 2; } .cat-row > :nth-child(4) { grid-column: 2; grid-row: 2; }
  .cat-row > :nth-child(5) { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .cat-row.new { grid-template-columns: minmax(0, 1fr) 76px; } .cat-row.new > :nth-child(5) { grid-column: 1 / -1; grid-row: 3; }
  .cat-list .cat-row { padding-bottom: 8px; border-bottom: 1px solid var(--line, rgba(127,127,127,.25)); } }
.cat-pick .pick-row.on { background: var(--brand-soft, rgba(34,160,80,.12)); }
.fine-tbl td.fine-what { white-space: normal; min-width: 70px; }
@media (max-width: 640px) { .fine-tbl td { padding-left: 8px; padding-right: 8px; } .fine-tbl td:first-child { width: 45%; } }

/* Erklärungen als „i“ */
.hint-i { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; min-width: 20px; padding: 0; margin: 0 0 0 6px;
  border-radius: 50%; border: 1.5px solid var(--brand-2); background: transparent; color: var(--brand-2); font: italic 700 12px/1 Georgia, 'Times New Roman', serif;
  cursor: pointer; vertical-align: middle; justify-self: start; align-self: center; flex: none; text-transform: none; letter-spacing: 0; }
.hint-i:hover, .hint-i:focus-visible { background: var(--brand-2); color: #fff; }
.hint-i.demo { cursor: default; margin-left: 2px; }
.hint-body { line-height: 1.5; }

/* ======================================================================
   Einheitliche Bedienelemente (Buttons, Felder, Auswahl) – handytauglich
   ====================================================================== */
:root { --ctl-h: 38px; --ctl-h-sm: 32px; --ctl-r: 9px; }
.btn { height: var(--ctl-h); border-radius: var(--ctl-r); }
.btn.sm { height: var(--ctl-h-sm); border-radius: 8px; }
.btn.icon { width: var(--ctl-h); }
.btn:focus-visible, .seg button:focus-visible, .hint-i:focus-visible { outline: 2px solid rgba(31,157,85,.45); outline-offset: 2px; }
.seg { border-radius: var(--ctl-r); }
.seg button { height: calc(var(--ctl-h) - 2px); }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=datetime-local],
input[type=number], input[type=search], input[type=url], input:not([type]), select {
  height: var(--ctl-h); border-radius: 8px; border: 1px solid var(--line-strong); background-color: #fff; padding: 0 10px; min-width: 0;
}
textarea { border-radius: 8px; border: 1px solid var(--line-strong); background: #fff; padding: 8px 10px; min-width: 0; }
input[type=color] { height: var(--ctl-h); }
input::placeholder, textarea::placeholder { color: #8a978f; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.form label > input:not([type=checkbox]):not([type=radio]):not([type=color]), .form label > select, .form label > textarea,
.form .field > input:not([type=checkbox]):not([type=radio]), .form .field > select, .form .field > textarea { width: 100%; }
.grid2 > *, .grid3 > *, .grid4 > * { min-width: 0; }
@media (max-width: 640px) { .grid2, .grid3, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 640px) {
  /* Fingerfreundliche Größen (mind. ~40–44 px) und 16 px in Feldern – sonst zoomt iOS beim Antippen hinein */
  :root { --ctl-h: 44px; --ctl-h-sm: 38px; --ctl-r: 10px; }
  .btn { font-size: 15px; padding: 0 14px; }
  .btn.sm { font-size: 14px; padding: 0 12px; }
  .btn.big { height: 48px; }
  input[type=text], input[type=password], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=datetime-local],
  input[type=number], input[type=search], input[type=url], input:not([type]), select, textarea { font-size: 16px; }
  input[type=color] { width: 56px; }
  input[type=checkbox], input[type=radio] { width: 20px; height: 20px; }
  .seg button { padding: 0 12px; font-size: 15px; }
  .form { gap: 14px; }
  .form label { font-size: 14px; gap: 6px; }
  .form label.check, label.check { min-height: 40px; font-size: 15px; gap: 10px; }
  .form fieldset { padding: 12px; }
  .pick-row { min-height: 44px; padding: 6px 8px; font-size: 15px; gap: 10px; }
  .daypick label { width: 44px; height: 40px; font-size: 14px; }
  .paybox { min-height: 36px; font-size: 14px; padding: 4px 10px 4px 8px; }
  .paybox input { width: 20px; height: 20px; }
  .kchip, .pd-chip { min-height: 36px; }
  .dlg-foot { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .dlg-foot .btn { flex: 1 1 auto; }
  .dlg-foot .grow { flex: 0 0 0; }
  .dlg-head .btn.icon { width: 40px; height: 40px; }
  .hint-i { width: 24px; height: 24px; min-width: 24px; font-size: 13px; position: relative; }
  .hint-i::after { content: ""; position: absolute; inset: -10px; }   /* größere Tippfläche */
  .page-head { gap: 8px; }
  .page-head .btn { flex: 0 0 auto; }
  .alert { font-size: 15px; }
  .tbl td, .tbl th { padding-top: 10px; padding-bottom: 10px; }
}

.inp-btn { display: flex; gap: 6px; min-width: 0; } .inp-btn > input { flex: 1 1 auto; width: auto !important; min-width: 0; }
.field > input[type=search] { margin-bottom: 6px; }
.pick-list { max-height: 46vh; overflow: auto; }
.pick-none { padding: 8px; }
@media (max-width: 640px) { .grid2.stack-m, .grid3.stack-m { grid-template-columns: minmax(0, 1fr); } }
.lbl-row { display: inline-flex; align-items: center; flex-wrap: wrap; }
.form legend { max-width: 100%; }
.fine-search { width: 100%; margin: 0 0 8px; }
.pub-sel { display: flex; align-items: center; gap: 8px; min-width: 0; } .pub-sel select { min-width: 0; flex: 1 1 auto; }
@media (max-width: 640px) { .dlg-foot .pub-sel { flex: 1 1 100%; } .dlg-foot .pub-sel .small { white-space: nowrap; } }
.start-pick { display: grid; gap: 8px; } .start-pick select { width: 100%; max-width: 360px; }
.brand { cursor: pointer; }

/* „+“ */
.plus-alt { color: #15803d; font-weight: 600; }
.btn.plus-btn { border-color: #9fd7b5; color: #146c3c; background: #eefaf2; }
.plus-box summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.plus-chip b { color: #15803d; margin-left: 2px; }
.plus-box .fine-tbl { margin-top: 8px; }
.cat-row > input { width: 100% !important; min-width: 0; }

/* Player of the Match */
.potm { display: grid; gap: 4px; justify-items: start; }
.potm-line { font-size: 13.5px; }
.potm.todo .potm-btn { border-color: #f59e0b; background: #fff7e6; }
.potm-res { display: grid; gap: 6px; }

/* Trainingsanfragen */
.tg-card { display: grid; gap: 8px; margin-bottom: 12px; }
.tg-card .sec-head { margin: 0; }
.tg-pending { border-left: 5px solid #f59e0b; }
.tg-head { display: flex; align-items: center; gap: 8px; }
.tg-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.tg-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pick-row.off { opacity: .55; }
@media (max-width: 640px) { .tg-pending .tg-row { flex-wrap: wrap; } .tg-pending .tg-btns { width: 100%; } .tg-pending .tg-btns .btn { flex: 1; } }

/* Teilnehmer (Spieler-Ansicht) */
.btn.ppl-btn { gap: 4px; padding: 0 8px; }
.ppl { display: grid; gap: 12px; }
.ppl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ppl-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ppl-list .chip.me { border-color: var(--accent); background: #eefaf2; }

/* Code-Safe */
.cs-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cs-card { display: grid; gap: 8px; }
.cs-head { display: flex; align-items: center; gap: 8px; } .cs-title { font-size: 16px; }
.cs-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cs-val { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.cs-code { font-size: 22px; font-weight: 800; letter-spacing: 2px; background: #eefaf2; color: #146c3c; padding: 4px 10px; border-radius: 8px; word-break: break-all; }
.cs-mask { font-size: 22px; letter-spacing: 3px; color: var(--muted); }
.cs-meta { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; } .cs-meta .chip { margin: 2px 4px 2px 0; }
.cs-team { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 0; } .cs-team .color-dot { margin-right: 6px; }
@media (max-width: 640px) { .cs-list { grid-template-columns: 1fr; } }
.cs-head .grow { flex: 1; }
@media (max-width: 640px) { .cs-team .grow { flex-basis: 100%; } .cs-team { gap: 4px 16px; border-bottom: 1px solid var(--line); padding: 6px 0; } }

.tg-range { display: flex; flex-wrap: wrap; width: 100%; } .tg-range button { flex: 1 1 auto; }
.tg-dates { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.tg-date { gap: 4px; padding-right: 4px; }
.tg-mini { border: 1px solid var(--line-strong); background: #fff; border-radius: 6px; width: 26px; height: 26px; cursor: pointer; font-weight: 800; }
.tg-mini.ok { color: #146c3c; } .tg-mini.no { color: #a12a1d; }
.pick-row.tg-all { border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .tg-range button { flex: 1 1 45%; } .tg-mini { width: 32px; height: 32px; } }
.subst-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.badge.blue { background: #e0ecff; color: #1d4ed8; }

/* ---------- Termin-Karte: einheitliche Anordnung der Buttons ---------- */
.ev-card { align-items: flex-start; }
.ev-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; min-width: 0; }
.ev-actions .resp { display: grid; gap: 4px; justify-items: end; }
.resp-btns { display: grid; gap: 6px; }
.resp-btns.n4 { grid-template-columns: repeat(4, 104px); } .resp-btns.n3 { grid-template-columns: repeat(3, 104px); }
.resp-btn { height: 36px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; font-size: 14px; }
.ev-more { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; max-width: 100%; }
.ev-more:empty { display: none; }
.ev-more .btn, .ev-more .btn.sm, .ev-staff .btn { height: 36px; font-size: 14px; }
.ev-more .ev-staff { display: flex; gap: 6px; flex-wrap: wrap; }
.ev-more .subst-line { display: flex; gap: 6px; align-items: center; }
.ev-more .potm { justify-items: end; }
@media (max-width: 640px) {
  .ev-actions { align-items: stretch; margin-left: 0; width: 100%; }
  .ev-actions .resp { justify-items: stretch; }
  .resp-btns.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .resp-btns.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .resp-btn { height: auto; min-height: 44px; display: grid; justify-items: center; align-content: center; gap: 1px; font-size: 12.5px; padding: 4px 2px; }
  .ev-more { justify-content: stretch; }
  .ev-more > .btn, .ev-more > .subst-line, .ev-more > .ev-staff, .ev-more > .potm { flex: 1 1 100%; }
  .ev-more > .btn.ppl-btn, .ev-more > .ride-btn { flex: 1 1 calc(50% - 6px); }
  .ev-more .btn, .ev-more .btn.sm, .ev-staff .btn { height: 40px; justify-content: center; }
  .ev-more .subst-line .btn, .ev-more .ev-staff .btn, .ev-more .potm .btn { flex: 1; }
  .ev-more .potm { justify-items: stretch; }
}
@media (max-width: 640px) { .ev-more > .subst-line.only-btn { flex: 1 1 calc(50% - 6px); } .ev-more .subst-line.only-btn .btn { width: 100%; } .ev-more > .badge { align-self: center; } }

/* Ersatztermine */
.tp-items { display: grid; gap: 4px; margin-top: 6px; }
.tp-item { padding: 4px 8px; background: #f7f9f7; border-radius: 6px; }
.tp-call { align-items: flex-start; } .tp-call .seg { margin-top: 6px; }
.tp-planned summary { cursor: pointer; padding: 4px 0; }
.daypick label.on { background: var(--brand-2); color: #fff; border-color: var(--brand-2); }
.daypick input { display: none; }
@media (max-width: 640px) { .tg-head { flex-wrap: wrap; } .tg-head .btn { flex: 1 1 45%; } .tp-call { flex-wrap: wrap; } .tp-call .tg-btns { width: 100%; } .tp-call .tg-btns .btn { flex: 1; } }
.form .seg { flex-wrap: wrap; } @media (max-width: 640px) { .form .field > .seg { display: flex; width: 100%; } .form .field > .seg button { flex: 1 1 auto; } }

/* ---------- Navigation in Gruppen ---------- */
.nav { overflow: visible; gap: 4px; align-items: stretch; }
.nav-grp { position: relative; display: flex; align-items: stretch; }
.nav-grp .nav-h { display: none; }
.nav-grp.m-only { display: none; }
.nav-top { background: none; border: 0; color: rgba(255,255,255,.82); font: inherit; font-size: 14.5px; font-weight: 500; padding: 0 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 3px solid transparent; white-space: nowrap; }
.nav-top:hover, .nav-grp.open .nav-top { color: #fff; background: rgba(255,255,255,.06); }
.nav-grp.active .nav-top { color: #fff; border-bottom-color: #7ee2a4; }
.nav-top .caret { font-size: 11px; opacity: .8; }
.nav-dd { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: 0 0 10px 10px; box-shadow: 0 14px 30px rgba(0,0,0,.2); padding: 6px; z-index: 50; }
.nav-grp.open .nav-dd { display: grid; }
.nav-dd a { color: var(--ink) !important; padding: 10px 12px !important; border: 0 !important; border-radius: 8px; font-size: 15px; display: flex; align-items: center; justify-content: space-between; }
.nav-dd a:hover { background: #f1f5f2; }
.nav-dd a.active { background: #e6f3ea; color: var(--brand) !important; font-weight: 700; }
@media (max-width: 720px) {
  .nav.open { gap: 0; }
  .nav.open .nav-grp { display: block; }
  .nav.open .nav-grp .nav-h { display: block; padding: 12px 20px 4px; font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: rgba(255,255,255,.55); }
  .nav.open .nav-top { display: none; }
  .nav.open .nav-dd { display: block; position: static; background: none; box-shadow: none; padding: 0; min-width: 0; }
  .nav.open .nav-dd a, .nav.open .nav-grp.single a { color: rgba(255,255,255,.9) !important; border-radius: 0; padding: 12px 20px !important; border-left: 4px solid transparent !important; display: flex; }
  .nav.open .nav-dd a.active, .nav.open .nav-grp a.active { background: rgba(255,255,255,.1); border-left-color: #7ee2a4 !important; color: #fff !important; }
}

/* Reiter */
.tabbed { display: grid; gap: 12px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; position: sticky; top: -16px; background: #fff; z-index: 1; }
.tabs button { border: 0; background: none; padding: 10px 12px; font: inherit; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--accent); }
.tab-pane { display: grid; gap: 12px; }
.tab-pane[hidden] { display: none !important; }
@media (max-width: 640px) { .tabs { top: -12px; } .tabs button { padding: 10px 10px; font-size: 14px; } }
.dropmenu { position: relative; } .dropmenu .menu { right: 0; left: auto; top: calc(100% + 4px); z-index: 20; min-width: 220px; }
.plan-bar .tg-head { flex-wrap: wrap; }
.card.msg.info { background: #f7f9fb; } .card.msg.info .msg-subj { font-weight: 600; }

/* Hilfe */
.help-list { display: grid; gap: 10px; }
.help-sec { padding: 0; } .help-sec summary { cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: 16px; }
.help-sec ul { margin: 0; padding: 0 16px 14px 34px; display: grid; gap: 8px; line-height: 1.5; }
.toolbar input[type=search] { flex: 1 1 260px; }

/* Tabellen als Karten am Handy */
@media (max-width: 640px) {
  .table-wrap:has(> table.m-cards) { overflow: visible; background: transparent; border: 0; box-shadow: none; padding: 0; }
  table.m-cards, table.m-cards tbody { display: block; width: 100%; }
  table.m-cards thead tr:not(:last-child) { display: none; }
  table.m-cards thead tr:last-child { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 8px; }
  table.m-cards thead tr:last-child th { display: none; }
  table.m-cards.stat-tbl thead tr:last-child th { display: inline-block; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; background: var(--card); }
  table.m-cards tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
  table.m-cards tbody tr.inactive { opacity: .6; }
  table.m-cards td { display: block; padding: 0; border: 0 !important; text-align: left !important; min-width: 0; }
  table.m-cards td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin-bottom: 1px; }
  table.m-cards td:empty { display: none; }
  table.m-cards td.empty { grid-column: 1 / -1; }
  table.m-cards tbody tr > td[data-label]:first-of-type, table.m-cards tbody tr > td.m-nolabel + td[data-label] { grid-column: 1 / -1; font-size: 16px; }
  table.m-cards tbody tr > td[data-label]:first-of-type::before, table.m-cards tbody tr > td.m-nolabel + td[data-label]::before { display: none; }
  table.m-cards td.m-nolabel { position: absolute; }
  table.m-cards tbody tr { position: relative; }
  table.m-cards tbody tr > td.m-nolabel { right: 12px; top: 12px; }
  table.m-cards tbody tr > td.m-nolabel input[type=checkbox] { width: 22px; height: 22px; }
}
.role-badges { margin-top: 4px; } .role-badges .badge { font-size: 11px; }
.pitch-link { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .abs-head { flex-wrap: wrap; }
  .abs-head > b { flex: 1 1 100%; }
  .abs-head > .grow { display: none; }
  .abs-head > .btn { flex: 1 1 0; }
}

/* Termine: Abwesenheiten & Planen als Knöpfe oben rechts */
.ev-head h1 { flex: 1; }
.ev-head .btn .nav-badge, .ev-head .dropmenu .nav-badge { margin-left: 6px; }
.btn.abs-now { background: #fff7e6; border-color: #f0b44c; color: #8a5300; }
.abs-dlg .abs-head > b { display: none; }
.abs-dlg .abs-head { justify-content: flex-end; }
.abs-dlg .abs-row { padding: 10px 0; border-top: 1px solid var(--line); }
.plan-list { display: grid; gap: 4px; }
@media (max-width: 640px) {
  .ev-head h1 { min-width: 0; }
  .abs-dlg .abs-head > b { display: none; }
}

.abs-dlg .abs-head { justify-content: flex-start; }
.abs-dlg .abs-head .abs-none { display: inline !important; margin: 0; flex: 1 1 100%; }
@media (min-width: 641px) { .abs-dlg .abs-head .abs-none { flex: 1 1 auto; } }

/* SpielerPlus-Import */
.sp-map { display: grid; gap: 6px; max-height: 52vh; overflow: auto; padding-right: 4px; }
.sp-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 70px; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.sp-row.warn { border-color: #f0b44c; background: #fffaf0; }
.sp-row select { width: 100%; }
.sp-pv { text-align: right; color: var(--muted); }
.sp-ev summary { cursor: pointer; padding: 6px 0; }
.sp-evrow { padding: 3px 0; border-top: 1px dashed var(--line); }
@media (max-width: 640px) { .sp-row { grid-template-columns: 1fr; } .sp-pv { text-align: left; } }

.mc-list { max-height: 55vh; overflow: auto; }
.mc-sec + .mc-sec { margin-top: 10px; }
.mc-sec-h { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 6px 4px; position: sticky; top: 0; background: var(--card, #fff); z-index: 1; }
.mc-row { align-items: flex-start; }
.mc-match { margin-top: 2px; }

/* Balkendiagramm Trainingsbeteiligung */
.stat-chart { margin: 12px 0; }
.sc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sc-bars { display: flex; align-items: flex-end; gap: 8px; height: 190px; overflow-x: auto; padding: 4px 2px 0; }
.sc-col { flex: 1 0 46px; max-width: 80px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.sc-bar { width: 70%; min-height: 4px; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 2px 2px; overflow: hidden; max-height: calc(100% - 46px); }
.sc-bar i { display: block; flex-basis: 0; }
.seg-here { background: #22a35a; } .seg-exc { background: #f0b44c; } .seg-miss { background: #dc4b3e; } .seg-open { background: #c9cfd6; }
.sc-pct { font-size: 11px; font-weight: 700; }
.sc-lbl { font-size: 11px; white-space: nowrap; }
.sc-n { font-size: 10px; }
.sc-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.sc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.sc-track { flex: 1; width: 70%; display: flex; align-items: flex-end; min-height: 0; } .sc-track .sc-bar { width: 100%; max-height: none; }

.stat-chart { min-width: 0; max-width: 100%; overflow: hidden; }
.sc-bars { max-width: 100%; padding-top: 18px; }
.sc-barwrap { position: relative; width: 100%; min-height: 4px; }
.sc-barwrap .sc-pct { position: absolute; left: 50%; transform: translateX(-50%); top: -17px; white-space: nowrap; }
.sc-barwrap .sc-bar { height: 100%; width: 100%; }

/* Tormann-Manager */
.gk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; margin-bottom: 16px; }
.gk-match { display: grid; gap: 8px; align-content: start; }
.gk-match.gk-none { border-color: #f0b44c; }
.gk-mh { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.gk-row { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: #eef8f1; border-radius: 8px; }
.gk-avail { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.gk-av { white-space: nowrap; }
.gk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.gk-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.gk-card.open { border-color: #f0b44c; }
.gk-card.free { opacity: .7; }
.gk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gk-mchip { font-size: 12px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.gk-mchip.on { background: #e3f4e9; border-color: #22a35a; font-weight: 600; }
.gk-mchip i { font-style: normal; color: var(--muted); }
@media (max-width: 640px) { .gk-grid, .gk-list { grid-template-columns: 1fr; } }

/* Spielplan-Upload & Plätze für Heimspiele */
.fx-list { max-height: 40vh; overflow: auto; }
.fx-map { max-height: 30vh; }
.hf-list { display: grid; gap: 8px; max-height: 60vh; overflow: auto; }
.hf-row { display: grid; gap: 8px; }
.hf-head { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.hf-status { margin-left: auto; }
.hf-ctl { display: grid; grid-template-columns: 2fr 1.3fr 1fr 1fr auto; gap: 8px; align-items: end; }
.hf-btns { display: flex; gap: 4px; }
@media (max-width: 640px) { .hf-ctl { grid-template-columns: 1fr 1fr; } .hf-status { margin-left: 0; flex-basis: 100%; } .hf-btns { grid-column: 1 / -1; } .hf-btns .btn { flex: 1; } }

.gk-stat tr.gk-tot td { background: #f4f7f5; border-top: 2px solid var(--line); }
.gk-stat tr.gk-sub td:first-child { padding-left: 28px; }
@media (max-width: 640px) { .gk-stat thead { display: none; } .gk-stat, .gk-stat tbody, .gk-stat tr, .gk-stat td { display: block; } .gk-stat tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 8px; padding: 8px 10px; }
  .gk-stat td { border: 0 !important; padding: 0; text-align: left !important; } .gk-stat td:first-child { grid-column: 1 / -1; padding-left: 0 !important; }
  .gk-stat td:not(:first-child)::before { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; }
  .gk-stat td:nth-child(2)::before { content: 'Spiele'; } .gk-stat td:nth-child(3)::before { content: 'zugesagt'; } .gk-stat td:nth-child(4)::before { content: 'abgesagt'; }
  .gk-stat td:nth-child(5)::before { content: 'vielleicht'; } .gk-stat td:nth-child(6)::before { content: 'ohne Antwort'; } .gk-stat td:nth-child(7)::before { content: 'eingeteilt'; }
  .gk-stat td:nth-child(8)::before { content: 'Startelf'; } .gk-stat td:nth-child(9)::before { content: 'Bank'; } .gk-stat td:nth-child(10) { grid-column: 1 / -1; } .gk-stat td:nth-child(10)::before { content: 'Zusage-Quote'; } }
.hf-ctl.tbd { grid-template-columns: 1fr 2fr 1.3fr 1fr 1fr auto; }
@media (max-width: 640px) { .hf-ctl.tbd { grid-template-columns: 1fr 1fr; } }
.gk-caret { display: inline-block; width: 14px; color: var(--muted); }
.gk-stat tr.gk-tot { cursor: pointer; }
.gk-stat tr[hidden] { display: none !important; }
.hf-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
@media (max-width: 640px) {
  table.m-cards tbody tr > td.m-nolabel:last-child:not(:first-child) { position: static; grid-column: 1 / -1; }
  table.m-cards tbody tr > td.m-nolabel:last-child:not(:first-child) .btn { width: 100%; }
}

/* Ansicht übernehmen */
.imp-bar { position: relative; z-index: 60; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; background: #fde68a; color: #5b3d00; font-size: 14px; border-bottom: 2px solid #f0b44c; }
.imp-bar .btn { background: #fff; }
.guest-box { display: grid; gap: 8px; background: #fffaf0; border-color: #f2d8a7; }

/* Drag & Drop Sortierung */
.drag-h { display: inline-block; cursor: grab; color: var(--muted); padding: 4px 8px 4px 0; margin-right: 2px; touch-action: none; user-select: none; font-weight: 700; letter-spacing: -2px; }
.drag-h:hover { color: var(--text, #111); }
tr.dragging td { background: #e3f4e9 !important; }
body.drag-active, body.drag-active * { cursor: grabbing !important; user-select: none; }
/* Stammkader-Liste */
.row-btns { display: flex; gap: 6px; justify-content: flex-end; }
.squad-btn { font-weight: 700; min-width: 54px; }
@media (max-width: 640px) {
  .squad-tbl th:nth-child(3), .squad-tbl td:nth-child(3), .squad-tbl th:nth-child(5), .squad-tbl td:nth-child(5), .squad-tbl .open-btn { display: none; }
  .squad-tbl td, .squad-tbl th { padding: 9px 6px; }
}
/* Aufstellung: frei verschieben + Spielerwahl am Handy */
svg.lineup-pitch .slot.moving { pointer-events: none; opacity: .9; }
svg.lineup-pitch .slot.moving circle { stroke: #fbbf24; stroke-width: 1; }
.sp-list { display: grid; gap: 4px; max-height: 55vh; overflow: auto; }
.sp-row { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font: inherit; font-size: 15px; cursor: pointer; }
.sp-row.used { background: #eaf6ef; }
.sp-row.cur { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(31,122,77,.2); }
/* Handy: Spielfeld komplett für das Ziehen reservieren (Safari beachtet touch-action nicht auf einzelnen SVG-Elementen) */
.lineup-grid svg.lineup-pitch { touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; }
.lp-row.tap1 { background: #fff3c4; }
.lineup-right .lp-row[data-pid] { touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
/* Wechsel */
svg.lineup-pitch .slot-sub { fill: #fde047; font-weight: 800; text-anchor: start; paint-order: stroke; stroke: rgba(0,0,0,.5); stroke-width: .4px; }
.subs-list { display: grid; gap: 4px; }
.sub-row { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.sub-min { font-weight: 800; min-width: 34px; }
.sub-in { color: var(--green, #15803d); font-weight: 600; }
.sub-out { color: #b91c1c; flex: 1; }
.sub-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #f7faf8; }
.sub-pick { font-weight: 600; }
.sub-cand { margin: 2px; font: inherit; font-size: 13px; }
.sub-cand.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.num-list { display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.num-row { display: flex; align-items: center; gap: 10px; }
.num-row input { flex: 0 0 76px; }
.sub-form .btn.primary { margin-left: auto; }
@media (max-width: 640px) { .sub-form .sub-pick { flex: 1 1 100%; } .sub-form .btn.primary { flex: 1 1 100%; } }
/* Spielverlauf */
.tl-pend { flex: 1 1 220px; font-size: 14px; }
.tl-move { color: #1d4ed8; font-weight: 600; }
.tl-form { color: #7c3aed; font-weight: 700; }
.sub-row.past { background: #f0f7f2; }
.svl-bar { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
.svl-track { position: relative; flex: 1; padding-bottom: 22px; }
.svl-range { width: 100%; accent-color: var(--brand); }
.svl-marks { position: absolute; left: 8px; right: 8px; bottom: 0; height: 20px; }
.svl-mark { position: absolute; transform: translateX(-50%); font-size: 11px; font-weight: 700; padding: 1px 4px; border-radius: 6px; border: 1px solid #fbbf24; background: #fff7d6; cursor: pointer; }
.svl-now { font-size: 16px; margin-bottom: 4px; }
/* Pfeile bei Positionswechsel */
svg.lineup-pitch .pos-arrow { fill: none; stroke: #ef4444; stroke-width: .9; stroke-linecap: round; pointer-events: none; }
svg.lineup-pitch .pos-arrow-head { fill: #ef4444; }
svg.lineup-pitch .pos-arrows { filter: drop-shadow(0 0 .6px rgba(0,0,0,.6)); pointer-events: none; }
svg.lineup-pitch .pos-arrows.fade { animation: posArrowFade 3.5s ease-in forwards; }
@keyframes posArrowFade { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
/* Spieluhr */
.clock-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: #0f2a1d; color: #fff; }
.clock-time { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 1px; line-height: 1; }
.clock-time.running { color: #86efac; }
.clock-phase { font-size: 13px; opacity: .8; margin-top: 3px; }
.clock-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.clock-btns .btn.ghost { color: #fff; }
.clock-half { display: flex; align-items: center; gap: 6px; color: #fff; }
.clock-half input { color: var(--ink, #111); }
.live-badge { background: #fee2e2; color: #b91c1c; font-weight: 700; margin-left: 6px; }
/* Tore */
.score-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; }
.score-big { font-size: 28px; font-variant-numeric: tabular-nums; }
.score-team { font-weight: 700; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-btns { display: flex; gap: 8px; margin-left: auto; }
.goal-row.click { cursor: pointer; }
.goal-for { color: #15803d; font-weight: 700; }
.goal-ag { color: #b91c1c; font-weight: 700; }
.goal-score { font-variant-numeric: tabular-nums; }
.svl-score { margin-left: 10px; font-size: 18px; }
.svl-mark.goal { border-color: #15803d; background: #dcfce7; padding: 0 3px; }
.svl-mark.goal.against { border-color: #b91c1c; background: #fee2e2; }
.svl-marks .svl-mark.goal { bottom: auto; top: -2px; }
svg.shot-map .shot-line { stroke-width: .5; stroke-dasharray: 1.2 .8; }
svg.shot-map .shot.for .shot-line { stroke: #bbf7d0; }
svg.shot-map .shot.against .shot-line { stroke: #fecaca; }
svg.shot-map .shot.for .shot-dot { fill: #16a34a; stroke: #fff; stroke-width: .5; }
svg.shot-map .shot.against .shot-dot { fill: #dc2626; stroke: #fff; stroke-width: .5; }
svg.shot-map .shot-min { fill: #fff; font-weight: 800; text-anchor: middle; }
svg.shot-pick { cursor: crosshair; }
.shot-view { max-width: 260px; }
@media (max-width: 640px) { .score-btns { margin-left: 0; width: 100%; } .score-btns .btn { flex: 1; } }
.svl-track { padding-bottom: 44px; }
.svl-marks { height: 42px; }
.svl-marks .svl-mark { top: 22px; }
.svl-marks .svl-mark.goal { top: 0; }
/* Hallenturnier */
.linkish { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline dotted; }
.games-edit { display: grid; gap: 6px; }
.game-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.game-row select { width: 92px; }
.game-row input[type=text] { flex: 1 1 140px; min-width: 0; }
.game-row .g-court { flex: 0 1 80px; }
.game-row .g-sc { width: 58px; }
.games-tbl td { padding: 6px 8px; }
.blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.block-card { border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: grid; gap: 6px; align-content: start; background: #f7faf8; }
.block-card.gk { background: #fff7d6; border-color: #fbbf24; }
.block-card.bench { background: #f3f4f6; }
.block-h { font-weight: 800; font-size: 14px; }
.block-p { font-size: 14px; }
.blk-slot { text-align: left; padding: 9px 10px; border: 1px dashed #b6c8bc; border-radius: 9px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.blk-slot.filled { border-style: solid; border-color: var(--brand); background: #eaf6ef; }
.pv { display: grid; gap: 8px; }
.pv-img { width: 100%; max-height: 75vh; object-fit: contain; background: #111; border-radius: 8px; }
.pv-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.txt-green { color: #15803d; } .txt-red { color: #b91c1c; }
@media (max-width: 640px) { .blocks { grid-template-columns: 1fr 1fr; } .block-card.gk, .block-card.bench { grid-column: span 2; } }
/* Halle: Holzboden statt Rasen */
.pitch-card.indoor svg.pitch .grass { fill: #c9955c; }
.pitch-card.indoor svg.pitch .stripe { fill: rgba(255, 255, 255, .07); }
.pitch-card.indoor svg.pitch .mk * { stroke: rgba(255, 255, 255, .85); }
/* Block-Spielweise (Mini-Hallenfeld) */
svg.hall-pitch { max-width: 220px; margin: 0 auto; }
svg.hall-pitch .grass { fill: #c9955c; }
svg.hall-pitch .mk { fill: none; stroke: rgba(255,255,255,.85); stroke-width: .35; }
svg.hall-pitch .slot circle { fill: rgba(255,255,255,.25); stroke: #fff; stroke-width: .4; }
svg.hall-pitch .slot.filled circle { fill: var(--brand); }
svg.hall-pitch .slot.click { cursor: pointer; }
svg.hall-pitch .slot-num { fill: #fff; font-weight: 800; text-anchor: middle; dominant-baseline: middle; }
svg.hall-pitch .slot-name { fill: #fff; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: rgba(0,0,0,.5); stroke-width: .4px; }
.block-h-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.block-h-row select { width: auto; padding: 4px 8px; font-size: 13px; }
svg.hall-pitch .slot.sel circle { fill: #f59e0b; stroke-width: .8; }
.blk-slot.sel { background: #fde68a; border-color: #f59e0b; }
.bench-row { display: flex; align-items: center; gap: 4px; }
.bench-row .blk-slot { flex: 1; }
/* Spielanalyse */
.ms-box { display: grid; gap: 12px; margin: 10px 0; }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.hz-wrap { display: grid; gap: 6px; }
.hz-pitch { max-width: 300px; width: 100%; margin: 0 auto; }
@media (max-width: 640px) { .hz-pitch { max-width: 240px; } }
svg.hz-map { width: 100%; height: auto; }
svg.hz-map.for .hz-cell { fill: #16a34a; }
svg.hz-map.against .hz-cell { fill: #dc2626; }
svg.hz-map .hz-n { fill: #fff; font-weight: 800; text-anchor: middle; paint-order: stroke; stroke: rgba(0,0,0,.45); stroke-width: .5px; }
svg.hz-map .hz-dot { fill: #fff; stroke: rgba(0,0,0,.6); stroke-width: .3; }
.pos-bars { display: grid; gap: 6px; margin-top: 6px; }
.pos-bar { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; }
.pos-k { font-weight: 800; }
.pos-track { height: 10px; background: #eef2ef; border-radius: 6px; overflow: hidden; }
.pos-track i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.per-chart { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; align-items: end; height: 130px; margin-top: 8px; }
.per-col { display: grid; grid-template-rows: 1fr auto; height: 100%; text-align: center; }
.per-bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.per-bars i { width: 40%; max-width: 16px; min-height: 2px; border-radius: 3px 3px 0 0; }
.per-bars i.pf, .lg.pf { background: #16a34a; }
.per-bars i.pa, .lg.pa { background: #dc2626; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; }

/* ---------- Mitgliedsbeiträge & Datenschutz ---------- */
.privacy-text { white-space: pre-wrap; max-height: 48vh; overflow: auto; background: var(--soft, #f6f8f7); border: 1px solid var(--line, #e3e7e5); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; }
.privacy-cb { align-items: flex-start; font-weight: 600; }
.privacy-dlg .dlg-foot { flex-wrap: wrap; }
.privacy-edit { font-size: 13px; line-height: 1.45; min-height: 220px; }
.privacy-ok { color: #146c3c; background: #e9f7ee; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.privacy-no { color: #8a5a00; background: #fff4d6; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.fee-runs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.fee-run { display: grid; gap: 6px; cursor: pointer; }
.fee-run:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.fee-run-h { display: flex; gap: 8px; align-items: baseline; font-size: 16px; }
.fee-prog { height: 8px; border-radius: 6px; background: #fdecea; overflow: hidden; }
.fee-prog i { display: block; height: 100%; background: #22a35a; }
.fee-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fee-bulk { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: #eef4ff; border-radius: 10px; padding: 8px 10px; }
.fee-tbl td, .fee-tbl th { white-space: nowrap; }
.fee-my { padding: 8px 0; border-bottom: 1px solid var(--line, #e3e7e5); }
.fee-my:last-of-type { border-bottom: 0; }
.fee-my.open b:first-child { color: #8a5a00; }
.fee-bank { white-space: pre-wrap; margin-top: 8px; background: var(--soft, #f6f8f7); padding: 8px 10px; border-radius: 8px; }
.fee-banner { background: #fff4d6; color: #6b4600; border: 1px solid #f3d27a; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; cursor: pointer; }
.fee-banner.over { background: #fdecea; color: #8f2318; border-color: #f2b8b0; }
.fee-banner-more { font-weight: 700; white-space: nowrap; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; }
.seg.fee-seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; } .seg.fee-seg button { white-space: nowrap; }
.mcp-key { background: #eef4ff; border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
.mcp-url { display: flex; gap: 8px; align-items: center; }
.mcp-url code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12.5px; background: #fff; border-radius: 6px; padding: 6px 8px; }
.mcp-key ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.mcp-log { font-size: 11.5px; max-height: 220px; overflow: auto; white-space: pre-wrap; background: var(--soft, #f6f8f7); padding: 8px; border-radius: 8px; }
.pitch-ball circle { fill: #fff; stroke: #111; stroke-width: 0.35; }
.pitch-ball .pb-dot { fill: #111; stroke: none; }
.pitch-ball.own circle:first-of-type { stroke: #dc2626; stroke-width: 0.55; }
.pb-more { fill: #fff; font-weight: 700; text-anchor: middle; }

/* ---------- Übungseditor & Übungsdatenbank ---------- */
.dr-svg { display: block; width: 100%; height: auto; border-radius: 10px; user-select: none; -webkit-user-select: none; }
.dr-grass { fill: #3f9a4a; }
.dr-line { stroke: rgba(255,255,255,.85); stroke-width: 0.22; }
.dr-spot { fill: rgba(255,255,255,.85); }
.dr-goalnet { fill: rgba(255,255,255,.9); stroke: #fff; stroke-width: .15; }
.dr-goal { fill: rgba(255,255,255,.35); stroke: #fff; }
.dr-plab { text-anchor: middle; font-weight: 800; font-family: system-ui, sans-serif; pointer-events: none; }
.dr-text { fill: #111827; font-weight: 700; font-family: system-ui, sans-serif; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: .25; }
.dr-edit { touch-action: none; cursor: crosshair; max-height: 68vh; background: #2f7d39; }
.dr-edit .dr-el { cursor: move; }
.dr-edit .dr-el.sel { filter: drop-shadow(0 0 .6px #fff) drop-shadow(0 0 .6px #fde047); }
.dr-handle { fill: #fde047; stroke: #111; stroke-width: .15; cursor: grab; }
.dr-handle.c { fill: #fff; }
.dr-dlg { width: min(1180px, calc(100vw - 16px)); }
.dr-editor { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 14px; align-items: start; }
.dr-main { display: grid; gap: 8px; min-width: 0; }
.dr-canvas { display: flex; justify-content: center; }
.dr-areas { flex-wrap: wrap; }
.dr-tools { display: flex; flex-wrap: wrap; gap: 4px; }
.dr-tool { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line, #dfe5e2); background: #fff; border-radius: 8px; padding: 3px 7px 3px 4px; font-size: 12px; cursor: pointer; color: inherit; }
.dr-tool.on { border-color: var(--brand, #1a7a46); background: #e8f5ee; font-weight: 700; }
.dr-ticon { width: 22px; height: 22px; background: #3f9a4a; border-radius: 5px; }
.dr-tool[title="Auswählen"] .dr-ticon { background: #eef2f0; }
.dr-selbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 34px; }
.dr-col { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #9aa; cursor: pointer; padding: 0; }
.dr-col.on { box-shadow: 0 0 0 2px #111; }
.dr-form textarea { min-height: 70px; }
@media (max-width: 820px) {
  .dr-editor { grid-template-columns: 1fr; }
  .dr-tools { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .dr-tool span { display: none; }
  .dr-tool { padding: 4px; }
  .dr-ticon { width: 30px; height: 30px; }
  .dr-edit { max-height: 60vh; }
}
.dr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.dr-grid.sm { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); max-height: 60vh; overflow: auto; }
.dr-card { display: grid; padding: 0; overflow: hidden; text-align: left; cursor: pointer; border: 1px solid var(--line, #e3e7e5); color: inherit; font: inherit; }
.dr-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.dr-card-pic { background: #3f9a4a; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dr-card-pic .dr-svg { max-height: 100%; width: auto; max-width: 100%; border-radius: 0; }
.dr-card-body { padding: 8px 10px 10px; display: grid; gap: 3px; }
.dr-card-t { font-size: 14px; }
.dr-cat { color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 6px; margin-right: 2px; }
.dr-view { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(220px, 1fr); gap: 16px; }
.dr-view-pic .dr-svg { max-height: 65vh; width: auto; max-width: 100%; margin: 0 auto; }
.dr-view-txt .pre, .pre { white-space: pre-wrap; margin: 2px 0 10px; }
@media (max-width: 720px) { .dr-view { grid-template-columns: 1fr; } }
/* Trainingsplan */
.tp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 4px; }
.tp-list { display: grid; gap: 8px; }
.tp-row { display: grid; grid-template-columns: auto 92px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; border: 1px solid var(--line, #e3e7e5); border-radius: 10px; padding: 6px; background: #fff; }
.tp-ord { display: grid; justify-items: center; }
.tp-n { font-weight: 800; font-size: 13px; }
.tp-pic { padding: 0; border: 0; background: #3f9a4a; border-radius: 6px; overflow: hidden; height: 66px; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.tp-pic .dr-svg { height: 66px; width: auto; border-radius: 0; }
.tp-txt { display: grid; gap: 4px; min-width: 0; }
.tp-txt .dr-cat { justify-self: start; }
.tp-note { font-size: 13px; padding: 4px 8px; }
.tp-min { display: flex; align-items: center; gap: 4px; }
.tp-min input { width: 64px; }
@media (max-width: 640px) { .tp-row { grid-template-columns: auto 70px minmax(0, 1fr) auto; } .tp-row .tp-min { grid-column: 3; } .tp-pic, .tp-pic .dr-svg { height: 52px; } }
.plan-on { border-color: var(--brand, #1a7a46); color: var(--brand, #1a7a46); font-weight: 700; }
.td-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line, #e3e7e5); }
.td-row:last-child { border-bottom: 0; }
.td-main { flex: 1; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.tp-vis { align-items: flex-start; background: #eef7f1; border-radius: 10px; padding: 8px 10px; }
.tpv-focus { background: #eef7f1; border-radius: 10px; padding: 8px 10px; }
.tpv-item { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px; align-items: start; }
.tpv-pic, .tpv-pic .dr-svg { height: auto; width: 130px; }
@media (max-width: 560px) { .tpv-item { grid-template-columns: 1fr; } .tpv-pic, .tpv-pic .dr-svg { width: 100%; } }
.dr-ages { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.dr-ages .chip { font-size: 12px; padding: 3px 8px; }
.dr-ages .chip.on { background: var(--brand, #1a7a46); color: #fff; border-color: var(--brand, #1a7a46); }
.lbl-t { font-size: 13px; font-weight: 600; margin-bottom: 4px; }

/* ---------- Vereine ---------- */
.brand-logo { height: 30px; width: auto; max-width: 60px; object-fit: contain; border-radius: 4px; background: #fff; padding: 2px; }
.club-logo-lg { max-height: 72px; max-width: 140px; object-fit: contain; }
.club-logo-md { height: 36px; width: 36px; object-fit: contain; }
.club-logo-prev { min-width: 90px; min-height: 60px; display: flex; align-items: center; justify-content: center; background: var(--soft, #f6f8f7); border-radius: 10px; padding: 6px; }
.club-logo-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.club-card { text-align: left; display: grid; gap: 6px; cursor: pointer; border: 1px solid var(--line, #e3e7e5); font: inherit; color: inherit; }
.club-card.off { opacity: .6; }
.club-card-h { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.club-dot { width: 28px; height: 28px; border-radius: 50%; display: inline-block; }
.menu-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #6b7a72); padding: 6px 12px 2px; }
#clubSwitch a.on { font-weight: 700; }
#clubSwitch { border-bottom: 1px solid var(--line, #e3e7e5); margin-bottom: 4px; }
#clubSwitch:empty { display: none; }

/* Listen & Zähler (Mannschaftskasse) */
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tl-card { display: flex; flex-direction: column; gap: 10px; }
.tl-card.tl-arch { opacity: .65; }
.tl-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tl-title { font-size: 1.05rem; }
.tl-progress { display: flex; align-items: center; gap: 10px; }
.tl-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--line, #e3e7e5); overflow: hidden; }
.tl-bar i { display: block; height: 100%; background: var(--green, #1f9d55); border-radius: 4px; transition: width .2s; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-chip { border: 1px solid var(--line, #d9dfdc); background: var(--card, #fff); color: inherit; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: .9rem; line-height: 1.2; }
button.tl-chip { cursor: pointer; }
.tl-chip.on { background: #e3f5ea; border-color: #8fd1a8; color: #126b39; font-weight: 600; }
.tl-chip.me { box-shadow: 0 0 0 2px #f3c74f inset; }
.tl-rows { display: flex; flex-direction: column; }
.tl-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line, #eef1ef); }
.tl-row:first-child { border-top: 0; }
.tl-row.me { background: #fff8e1; border-radius: 6px; padding-left: 6px; }
.tl-n { min-width: 2ch; text-align: center; font-size: 1.05rem; }
.tl-pm { min-width: 34px; font-weight: 700; }
.tl-next { color: #b26a00; font-size: .8rem; }
.tl-foot { display: flex; justify-content: flex-end; }
.tl-name-row { display: grid; grid-template-columns: 80px 1fr; gap: 10px; }
.tl-emoji-in { text-align: center; font-size: 1.2rem; }
.tl-emojis { display: flex; flex-wrap: wrap; gap: 2px; margin-top: -6px; }
@media (max-width: 520px) { .tl-grid { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) { .tl-chip.on { background: #12391f; color: #9fe0b6; border-color: #2b6b43; } .tl-row.me { background: #3a3215; } }
.tl-acts { display: inline-flex; gap: 2px; white-space: nowrap; margin-left: auto; }
.tl-row > .grow { flex: 1; min-width: 0; }
.tl-head > .grow { flex: 1; }
