/* Phoenix-Farben: Schwarz, Rot (#e30613), Orange (#f39200) */
:root {
  --brand-red: #e30613;
  --brand-orange: #f39200;
  --brand-grad: linear-gradient(90deg, #e30613, #f39200);
  --bg: #f3f1ef;
  --surface: #ffffff;
  --surface-2: #f7f4f1;
  --text: #161412;
  --muted: #645c55;
  --line: #e5dfd9;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --bar: #000000;
  --bar-ink: #ffffff;
  --yes: #15803d;
  --yes-bg: #dcfce7;
  --maybe: #b45309;
  --maybe-bg: #fef3c7;
  --no: #b91c1c;
  --no-bg: #fee2e2;
  --open: #6b6560;
  --pos-G: #7c3aed;
  --pos-D: #0a5bd8;
  --pos-F: #0f766e;
  --warn-bg: #fff7ed;
  --warn-ink: #9a3412;
  --skill: #e8590c;
  --skill-fill: rgba(232, 89, 12, .18);
  --track: #e2dcd6;
  --radar-grid: #e6ddd4;
  --shadow: 0 1px 2px rgba(20, 16, 12, .06), 0 1px 8px rgba(20, 16, 12, .04);
  --radius: 14px;
  --tabbar-h: 66px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a;
    --surface: #151515;
    --surface-2: #1f1f1f;
    --text: #f2efec;
    --muted: #a39b94;
    --line: #2e2b29;
    --accent: #ff7a1a;
    --accent-ink: #140800;
    --bar: #000000;
    --yes: #4ade80;
    --yes-bg: #12341f;
    --maybe: #fbbf24;
    --maybe-bg: #3a2a0c;
    --no: #ff6b6b;
    --no-bg: #3d1515;
    --open: #9a928b;
    --pos-G: #a78bfa;
    --pos-D: #60a5fa;
    --pos-F: #2dd4bf;
    --warn-bg: #3a210c;
    --warn-ink: #fdba74;
    --skill: #f39200;
    --skill-fill: rgba(243, 146, 0, .22);
    --track: #34302d;
    --radar-grid: #3a3430;
    --shadow: none;
    color-scheme: dark;
  }
}

/* Manuell gewählter dunkler Modus (Einstellungen → Darstellung) */
:root[data-theme="dark"] {
    --bg: #0a0a0a;
    --surface: #151515;
    --surface-2: #1f1f1f;
    --text: #f2efec;
    --muted: #a39b94;
    --line: #2e2b29;
    --accent: #ff7a1a;
    --accent-ink: #140800;
    --bar: #000000;
    --yes: #4ade80;
    --yes-bg: #12341f;
    --maybe: #fbbf24;
    --maybe-bg: #3a2a0c;
    --no: #ff6b6b;
    --no-bg: #3d1515;
    --open: #9a928b;
    --pos-G: #a78bfa;
    --pos-D: #60a5fa;
    --pos-F: #2dd4bf;
    --warn-bg: #3a210c;
    --warn-ink: #fdba74;
    --skill: #f39200;
    --skill-fill: rgba(243, 146, 0, .22);
    --track: #34302d;
    --radar-grid: #3a3430;
    --shadow: none;
    color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  min-height: 52px;
  padding: env(safe-area-inset-top) 12px 0;
  padding-top: calc(env(safe-area-inset-top) + 6px);
  padding-bottom: 6px;
  background: var(--bar); color: var(--bar-ink);
}
.topbar h1 {
  flex: 1; margin: 0; font-size: 1.125rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#action { display: flex; align-items: center; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: transparent; color: var(--bar-ink); font-size: 1.625rem; line-height: 1; cursor: pointer;
}
.icon-btn.back { font-size: 2.125rem; padding-bottom: 4px; margin-left: -6px; }
.text-btn { color: #ffa057; font-weight: 600; padding: 8px 4px; background: none; border: 0; font-size: 1rem; cursor: pointer; }

/* ---------- Tabbar: schwebende Glasleiste (iOS-Stil) ---------- */
.tabbar {
  --glass: rgba(255, 255, 255, .62);
  --glass-edge: rgba(255, 255, 255, .75);
  --glass-line: rgba(20, 16, 12, .08);
  --glass-shadow: 0 10px 30px rgba(20, 16, 12, .16), 0 2px 6px rgba(20, 16, 12, .08);
  position: fixed; z-index: 20;
  left: 50%; transform: translateX(-50%);
  width: calc(100% - 24px); max-width: 440px;
  bottom: max(8px, calc(env(safe-area-inset-bottom) - 8px));
  height: calc(var(--tabbar-h) - 8px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 4px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-edge), var(--glass-shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tabbar { --glass: var(--surface); }
}
.tabbar a {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border-radius: 999px;
  color: var(--muted); font-size: 0.6875rem; font-weight: 600;
  transition: color .25s ease;
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.active { color: var(--accent); }
/* Farbe „fliegt“ durch die Reiter: überflogene Reiter leuchten kurz auf */
.tabbar a.pass { color: var(--accent); transition: color .08s ease; }
.tabbar a.active.pop svg { animation: tab-pop .38s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tab-pop { 0% { transform: scale(.82); } 100% { transform: scale(1); } }
/* gleitende Glas-Blase hinter dem aktiven Reiter */
.tab-ind {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0;
  border-radius: 999px; pointer-events: none;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* ---------- Layout ---------- */
main { max-width: 640px; margin: 0 auto; padding: 12px 16px; }
.section {
  display: flex; align-items: baseline; gap: 6px;
  margin: 20px 4px 8px; font-size: 0.8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.section:first-child { margin-top: 6px; }
.card {
  display: block; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; margin-bottom: 12px;
}
.card.list { padding: 0; overflow: hidden; }
.card.list.dim { opacity: .6; }
.card.empty { text-align: center; color: var(--muted); padding: 24px 16px; }
.card.empty p { margin: 0 0 12px; }
.card.notice { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; font-weight: 600; }
.card.hero { text-align: center; padding: 24px 18px; }
.card.hero h2 { margin: 4px 0 6px; }
.card.hero p { color: var(--muted); margin: 0 0 16px; }
.hero-icon { font-size: 2.5rem; }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.center { text-align: center; }
.empty-text { text-align: center; color: var(--muted); padding: 24px 0; }

/* ---------- Listenzeilen ---------- */
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; min-height: 56px; color: var(--text);
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.grow { flex: 1; min-width: 0; }
.row-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--muted); font-size: 1.375rem; }
.num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  font-weight: 800; font-size: 0.9375rem; color: #fff; background: var(--open);
}
.num.pos-G { background: var(--pos-G); }
.num.pos-D { background: var(--pos-D); }
.num.pos-F { background: var(--pos-F); }
.badge { flex: none; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.badge.st-guest { background: var(--surface-2); color: var(--pos-G); border: 1px solid var(--line); }
.badge.st-reserve { background: var(--maybe-bg); color: var(--maybe); }

/* ---------- Termine ---------- */
.datebox {
  flex: none; width: 46px; text-align: center; line-height: 1.1;
  border-radius: 10px; padding: 6px 0; background: var(--surface-2);
}
.datebox b { display: block; font-size: 1.1875rem; }
.datebox span { font-size: 0.6875rem; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.mini { flex: none; font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mini .yes { color: var(--yes); font-weight: 800; font-size: 0.9375rem; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tag.t-game { background: var(--no-bg); color: var(--no); }
.tag.t-training { background: var(--yes-bg); color: var(--yes); }
.tag.t-tournament { background: var(--maybe-bg); color: var(--maybe); }
.ev-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.ev-title { font-size: 1.1875rem; font-weight: 800; margin-bottom: 2px; }
.ev-title.big { font-size: 1.375rem; margin-bottom: 8px; }
.ev-info > div { margin-bottom: 4px; }
.ev-info .note { margin-top: 8px; padding: 10px; background: var(--surface-2); border-radius: 10px; white-space: pre-wrap; }

.counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.cnt { text-align: center; border-radius: 10px; padding: 8px 2px; background: var(--surface-2); }
.cnt b { display: block; font-size: 1.375rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cnt span { font-size: 0.6875rem; font-weight: 700; color: var(--muted); }
.cnt.yes { background: var(--yes-bg); } .cnt.yes b { color: var(--yes); }
.cnt.maybe { background: var(--maybe-bg); } .cnt.maybe b { color: var(--maybe); }
.cnt.no { background: var(--no-bg); } .cnt.no b { color: var(--no); }
.pos-line { margin-top: 8px; text-align: center; font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
.warn { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); font-size: 0.875rem; font-weight: 600; }

/* Zusagen-Zeile */
.rsvp-row { gap: 10px; padding: 8px 10px 8px 14px; }
.name-btn { border: 0; background: none; padding: 4px 0; text-align: left; cursor: pointer; }
.rsvp-btns { flex: none; display: flex; gap: 6px; }
.rb {
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--muted);
  font-size: 1.125rem; font-weight: 800;
}
.rb.yes.on { background: var(--yes); border-color: var(--yes); color: #fff; }
.rb.maybe.on { background: var(--maybe); border-color: var(--maybe); color: #fff; }
.rb.no.on { background: var(--no); border-color: var(--no); color: #fff; }
.row.is-yes .num { box-shadow: 0 0 0 3px var(--yes-bg); }

/* ---------- Statistik-Kacheln ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat b { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.75rem; color: var(--muted); font-weight: 600; }

/* ---------- Werkzeugleiste / Chips ---------- */
.toolbar { margin-bottom: 4px; }
.toolbar.sticky {
  position: sticky; top: calc(52px + env(safe-area-inset-top)); z-index: 10;
  margin: 0 -16px 4px; padding: 8px 16px; background: var(--bg);
}
.search {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); font-size: 1rem;
}
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 0.875rem; font-weight: 600;
}
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 0 18px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-weight: 700; font-size: 1rem;
}
.btn.block { display: flex; width: 100%; margin-top: 10px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--no); border-color: var(--no-bg); background: var(--surface); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 0.875rem; }
.fab {
  position: fixed; z-index: 15; right: 18px;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-size: 1.875rem; font-weight: 400;
  box-shadow: 0 6px 18px rgba(227, 6, 19, .35);
}
@media (min-width: 700px) { .fab { right: calc(50% - 320px + 18px); } }

/* ---------- Formulare ---------- */
.form { display: block; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.field input:not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); font-size: 1rem;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 42px; padding: 4px 6px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); font-size: 0.875rem; font-weight: 600;
}
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact { display: flex; gap: 8px; margin: -6px 0 14px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-row .btn { margin-top: 10px; }

/* ---------- Bewertung (Netzdiagramm + Regler) ---------- */
.rating-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.rating-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.rating-head b { font-size: 0.8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.skills-grid { display: grid; gap: 8px; }
@media (min-width: 560px) { .skills-grid { grid-template-columns: 280px 1fr; align-items: center; gap: 20px; } }
.radar-col { text-align: center; }
.radar { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto; }
.r-grid { fill: none; stroke: var(--radar-grid); stroke-width: 1; }
.r-area { fill: var(--skill-fill); stroke: var(--skill); stroke-width: 2; stroke-linejoin: round; transition: all .15s; }
.r-dot { fill: var(--skill); }
.r-label { font-size: 0.6875rem; fill: var(--muted); font-family: inherit; }
.avg { font-weight: 800; font-size: 1.25rem; margin-top: 2px; font-variant-numeric: tabular-nums; }
.skill { padding: 8px 0; }
.skill-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.skill-name { font-weight: 600; }
.skill-val { font-size: 1rem; font-weight: 800; min-width: 2.2em; text-align: right; font-variant-numeric: tabular-nums; }
.skill .muted.small { margin-top: 2px; }
.slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 4px 0 0;
  background: transparent; cursor: pointer;
}
.slider::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(to right, var(--skill) var(--val), var(--track) var(--val));
}
.slider::-moz-range-track { height: 8px; border-radius: 999px; background: var(--track); }
.slider::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--skill); }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%;
  background: var(--skill); border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--skill); border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.slider.unset::-webkit-slider-thumb { background: var(--open); }
.slider.unset::-moz-range-thumb { background: var(--open); }
.slider:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.rating-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.link-btn { border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 0.875rem; padding: 6px 0; cursor: pointer; }
.avg-badge {
  flex: none; font-size: 0.8125rem; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--skill); background: var(--skill-fill); padding: 3px 8px; border-radius: 999px;
}

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; z-index: 50;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 20px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #000; color: #fff; padding: 10px 16px; border-radius: 999px; border: 1px solid #f39200;
  font-weight: 600; font-size: 0.875rem; transition: .2s ease; max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Partner ---------- */
.partner-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.partner-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 4px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 600;
}
.partner-chip .num { width: 28px; height: 28px; font-size: 0.8125rem; border-radius: 8px; }
.partner-x {
  width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--surface-2);
  color: var(--muted); font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.partner-add {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px;
  border: 1px dashed var(--line); background: var(--surface); color: var(--accent); font-weight: 600; font-size: 1rem;
}

/* ---------- Kalender ---------- */
.cal { padding: 12px 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font-size: 1.0625rem; }
.cal-nav {
  width: 40px; height: 40px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--surface-2); color: var(--text); font-size: 1.5rem; line-height: 1;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-wd span { text-align: center; font-size: 0.75rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-day {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px;
  height: 50px; padding: 6px 0 0; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--text);
}
.cal-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; font-size: 0.9375rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.cal-day.other { color: var(--muted); opacity: .45; }
.cal-day.has .cal-num { font-weight: 800; }
.cal-day.today .cal-num { color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.cal-day.sel .cal-num { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.cal-dots { display: flex; gap: 3px; height: 6px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--open); }
.dot.t-game { background: var(--no); }
.dot.t-training { background: var(--yes); }
.dot.t-tournament { background: var(--maybe); }
.cal-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding: 8px 4px 0; border-top: 1px solid var(--line); }
.legend { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.cal-foot .link-btn { margin-left: auto; }

/* ---------- Dialoge ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center;
  padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom));
  background: rgba(5, 12, 22, .55); animation: fade .15s ease;
}
@media (min-width: 560px) { .modal-backdrop { align-items: center; } }
.modal {
  width: 100%; max-width: 420px; background: var(--surface); color: var(--text);
  border-radius: 18px; padding: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.modal-msg { margin: 0 0 14px; white-space: pre-line; font-size: 1rem; }
.modal-input {
  width: 100%; margin-bottom: 14px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: 1rem; resize: vertical;
}
.modal-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-btns .btn { flex: 1 1 130px; }
.btn.danger-fill { background: var(--no); border-color: var(--no); color: #fff; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Abgesagte Termine & Serien ---------- */
.cancel-banner {
  margin-bottom: 12px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--no-bg); color: var(--no); font-weight: 800;
}
.cancel-banner .small { font-weight: 600; margin-top: 2px; }
.ev-info.is-cancelled .ev-title { text-decoration: line-through; opacity: .7; }
.ev-row.cancelled .row-title { text-decoration: line-through; color: var(--muted); }
.badge.st-cancelled { background: var(--no-bg); color: var(--no); }
.link-btn.danger-text { color: var(--no); }
.series-note { background: var(--surface-2); font-weight: 600; font-size: 0.875rem; }

/* ---------- Termin-Reiter (Zusagen | Aufstellung) ---------- */
.ev-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 12px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
}
.ev-tab {
  height: 40px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--muted); font-weight: 700; font-size: 0.9375rem;
}
.ev-tab.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* ---------- Aufstellung ---------- */
.lineup-tools { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.lineup-tools .btn { min-height: 42px; padding: 0 12px; font-size: 0.9375rem; }
.lineup-hint { margin: 8px 2px 10px; min-height: 18px; }
.teams { display: grid; gap: 0; }
.team { padding: 12px; }
.team-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.team-head b { font-size: 0.9375rem; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }
.team-W .team-head b { background: #f4f6f8; color: #0d1b2a; border: 1px solid #d5dde7; }
.team-S .team-head b { background: #0d1117; color: #fff; border: 1px solid #0d1117; }
.team-A .team-head b { background: var(--accent); color: var(--accent-ink); }
.line { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 4px; margin-top: 5px; }
.line-label { font-size: 0.75rem; font-weight: 800; color: var(--muted); }
.line-slots { display: grid; gap: 5px; }
.line-slots.f { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.line-slots.d { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Torhüter mittig – gleiche Breite wie ein Sturm-Platz */
.line-slots.g1, .line-slots.g2 { display: flex; justify-content: center; }
.line-slots.g1 .slot, .line-slots.g2 .slot { flex: 0 0 calc((100% - 10px) / 3); }
.slot { display: flex; min-height: 46px; min-width: 0; border-radius: 10px; }
.slot.empty {
  align-items: center; justify-content: center; cursor: pointer;
  border: 1.5px dashed var(--line); color: var(--muted); font-size: 0.75rem; font-weight: 700;
}
.slot.drop-hover, .bench.drop-hover { outline: 2px solid var(--accent); outline-offset: 1px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.pchip {
  position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center;
  min-height: 46px; padding: 4px 6px 4px 7px; border-radius: 10px; cursor: grab;
  background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--open);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
.pchip.pos-G { border-left-color: var(--pos-G); }
.pchip.pos-D { border-left-color: var(--pos-D); }
.pchip.pos-F { border-left-color: var(--pos-F); }
.pc-top { display: flex; align-items: baseline; gap: 4px; font-size: 0.6875rem; line-height: 1.2; }
.pc-num { font-weight: 800; color: var(--muted); }
.pc-first { color: var(--muted); font-weight: 600; }
.pc-avg { margin-left: auto; font-size: 0.625rem; font-weight: 800; color: var(--skill); }
.pc-name {
  font-size: 0.8125rem; font-weight: 700; line-height: 1.15; overflow: hidden; overflow-wrap: anywhere; hyphens: auto;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pchip.offpos { background: var(--warn-bg); }
.pchip.offpos .pc-num::after { content: ' ⚠'; color: var(--warn-ink); }
.pchip.selected { outline: 2.5px solid var(--accent); outline-offset: 1px; }
.pchip.dragging { opacity: .3; }
.drag-ghost {
  position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; opacity: .95;
  box-shadow: 0 10px 28px rgba(0,0,0,.35); background: var(--surface);
}
body.is-dragging, body.is-dragging * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }
.bench { padding: 12px; }
.bench-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; margin-top: 8px; }

/* ---------- Teamlogo ---------- */
.team-logo {
  width: 40px; height: 40px; object-fit: contain; border-radius: 10px;
  background: #000; padding: 2px; flex: none;
}
.team-logo-lg { width: 96px; height: 64px; object-fit: contain; border-radius: 12px; background: #000; padding: 4px; flex: none; }
.team-logo-xs { width: 26px; height: 18px; object-fit: contain; border-radius: 4px; background: #000; vertical-align: -4px; }
.team-banner { display: flex; align-items: center; gap: 14px; background: #000; color: #fff; border-color: #000; }
.team-banner .team-logo-lg { width: 110px; height: 72px; padding: 0; }
.team-banner .tb-name { font-size: 1.125rem; font-weight: 800; }
.team-banner .muted { color: #b9c2cc; }
.logo-edit { display: flex; align-items: center; gap: 14px; }
.logo-btns { display: flex; flex-direction: column; gap: 8px; }
.logo-btns .btn { cursor: pointer; }

/* ---------- Phoenix-Akzente ---------- */
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand-grad); }
.fab { background: var(--brand-grad); color: #fff; }
.tabbar a.active svg { stroke: var(--accent); }
.team-banner { position: relative; overflow: hidden; }
.team-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand-grad); }
.team-A .team-head b { background: #000; color: #fff; border: 1px solid var(--brand-orange); }

/* ---------- Teilen ---------- */
.btn.share-tg { background: #229ed9; border-color: #229ed9; color: #fff; }
.btn.share-wa { background: #1fa855; border-color: #1fa855; color: #fff; }

/* ---------- Mehrfachauswahl Termine ---------- */
.chip-select { margin-left: auto; }
button.row.sel-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.sel-row:last-child { border-bottom: 0; }
.sel-row.checked { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.check {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line);
  font-size: 0.9375rem; font-weight: 900; color: var(--accent-ink);
}
.sel-row.checked .check { background: var(--accent); border-color: var(--accent); }
.select-bar {
  position: fixed; left: 0; right: 0; z-index: 15;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.15);
}
.select-bar .sel-count { flex: 1; font-weight: 700; font-size: 0.875rem; }
.select-bar .btn[disabled] { opacity: .45; pointer-events: none; }
main:has(.select-bar) { padding-bottom: 70px; }

/* ---------- Ergebnis & Tore ---------- */
.ev-tabs { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.ev-tab { font-size: 0.875rem; line-height: 1.15; height: auto; min-height: 42px; padding: 4px 6px; }
.score-card { padding: 16px; }
.score-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-weight: 700; font-size: 0.875rem; margin-bottom: 8px; }
.score-teams .st-us { display: flex; align-items: center; gap: 6px; }
.score-teams .st-them { text-align: right; }
.score-row { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.score-colon { font-size: 2.5rem; font-weight: 900; color: var(--muted); line-height: 1.1; }
.stepper { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.stepper b { text-align: center; font-size: 3rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.stepper-btns { display: flex; gap: 10px; }
.stepper button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  background: var(--surface-2); color: var(--text); font-size: 1.5rem; font-weight: 700; line-height: 1;
}
.score-final { margin-top: 12px; text-align: center; font-weight: 700; display: flex; justify-content: center; align-items: center; gap: 8px; }
.score-badge { flex: none; display: inline-flex; align-items: baseline; gap: 3px; padding: 4px 9px; border-radius: 8px; font-weight: 900; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.score-badge small { font-size: 0.625rem; font-weight: 700; }
.score-badge.win { background: var(--yes-bg); color: var(--yes); }
.score-badge.loss { background: var(--no-bg); color: var(--no); }
.score-badge.draw { background: var(--maybe-bg); color: var(--maybe); }
button.row.goal-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.row.goal-row:last-child { border-bottom: 0; }
.goal-no { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 0.875rem; }
.goal-form { margin-top: 12px; border-color: var(--accent); }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; }
.stat-strip b { display: block; font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.stat-strip span { font-size: 0.75rem; color: var(--muted); font-weight: 600; }

/* ---------- Statistik & Topscorer ---------- */
.pts-badge { flex: none; font-size: 0.75rem; font-weight: 800; padding: 3px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.stats-table { padding: 0; overflow: hidden; }
.st-row {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) 30px 30px 30px 36px; align-items: center; gap: 4px;
  padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--text); font-variant-numeric: tabular-nums;
}
.st-row:last-child { border-bottom: 0; }
.st-row > span:not(.st-name), .st-row > b { text-align: center; }
.st-row > b { font-size: 1rem; color: var(--accent); }
.st-head { font-size: 0.75rem; font-weight: 800; color: var(--muted); background: var(--surface-2); padding-top: 10px; padding-bottom: 10px; }
.st-head > span:nth-child(2) { text-align: left !important; }
.st-rank { font-weight: 800; color: var(--muted); }
.st-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.st-name > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-name .num { width: 28px; height: 28px; font-size: 0.75rem; border-radius: 8px; }
.st-row.zero { opacity: .5; }
.top-medal { flex: none; width: 26px; text-align: center; font-size: 1.25rem; font-weight: 800; color: var(--muted); }
.top-pts { flex: none; font-size: 1.375rem; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; }
.top-pts small { font-size: 0.75rem; margin-left: 2px; color: var(--muted); }
.more-row { justify-content: center; color: var(--accent); font-weight: 700; min-height: 46px; }


/* =====================================================================
   Design-Review (Apple HIG) – Umsetzung
   ===================================================================== */

/* K1: Kontrast der Rückennummern und Lösch-Knöpfe in beiden Modi ≥ 4,5:1 */
:root { --num-ink: #ffffff; --danger: #b91c1c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --num-ink: #0a0a0a; --danger: #dc2626; }
}
:root[data-theme="dark"] { --num-ink: #0a0a0a; --danger: #dc2626; }
.num, .num.pos-G, .num.pos-D, .num.pos-F { color: var(--num-ink); }
.btn.danger-fill { background: var(--danger); border-color: var(--danger); color: #fff; }

/* V3: nichts unter 11 px; Erklärtexte gut lesbar */
.pc-avg, .score-badge small { font-size: 0.6875rem; }
.skill .muted.small { font-size: 0.8125rem; }

/* V2: Trefferflächen nach Apple-Empfehlung (44 pt), mehr Abstand zwischen Zusage-Knöpfen */
.chip { height: 40px; padding: 0 16px; }
.rb { width: 44px; height: 44px; }
.rsvp-btns { gap: 8px; }
.icon-btn { min-width: 44px; height: 44px; }
.text-btn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; }
.link-btn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; }
.partner-x { width: 40px; height: 40px; }
.btn.small { min-height: 40px; }
.name-btn { min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
.cal-nav { width: 44px; height: 44px; }
.stepper button { width: 44px; height: 44px; }
.ev-tab { min-height: 44px; }
.slider { height: 44px; }

/* Glasleiste im Dunkelmodus */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tabbar {
    --glass: rgba(30, 30, 32, .58); --glass-edge: rgba(255, 255, 255, .10);
    --glass-line: rgba(255, 255, 255, .08); --glass-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  }
}
:root[data-theme="dark"] .tabbar {
  --glass: rgba(30, 30, 32, .58); --glass-edge: rgba(255, 255, 255, .10);
  --glass-line: rgba(255, 255, 255, .08); --glass-shadow: 0 10px 30px rgba(0, 0, 0, .55);
}

/* V6: „Bewegung reduzieren“ respektieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* V5: Termin-Arten im Kalender über Form statt nur Farbe */
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text); }
.dot.t-game { border-radius: 50%; background: var(--text); }          /* ● Spiel */
.dot.t-training { border-radius: 1.5px; background: var(--muted); }    /* ■ Training */
.dot.t-tournament { border-radius: 1px; transform: rotate(45deg) scale(.85); background: var(--text); } /* ◆ Turnier */
.dot.t-other { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); } /* ○ Sonstiges */
.dot.off { opacity: .3; }
.cal-dots { height: 8px; align-items: center; gap: 4px; }

/* G2: einheitliche Linien-Symbole */
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn .ico, .ev-tab .ico, .chip .ico { margin-right: 2px; }
.info-line { display: flex; align-items: center; gap: 8px; }
.info-line .ico { color: var(--muted); }
.warn { display: flex; align-items: center; gap: 8px; }
.cancel-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cancel-banner .small { flex-basis: 100%; }
.series-note { display: flex; align-items: center; gap: 8px; }
.chip-select { display: inline-flex; align-items: center; gap: 4px; }
.lineup-tools { grid-template-columns: 1fr 1fr; }
.lineup-tools .btn.primary { grid-column: 1 / -1; }

/* V4: Rot nur für Absage/Löschen, Orange nur für Antippbares; Werte neutral */
.tag.t-game { background: var(--text); color: var(--bg); }
.tag.t-training, .tag.t-tournament, .tag { background: var(--surface-2); color: var(--text); }
.tag.t-game { background: var(--text); color: var(--bg); }
.pc-avg { color: var(--muted); }
.top-pts, .st-row > b { color: var(--text); }

/* V10: aktiver Tab mit gefülltem Symbol */
.tabbar a.active svg { fill: currentColor; stroke: currentColor; }
.tabbar a.active svg .cut { stroke: var(--bg); }
.tabbar a span { font-size: 0.6875rem; }

/* V8: Fehler direkt am Formular */
.form-error { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--no-bg); color: var(--no); font-weight: 600; font-size: 0.875rem; }
select[aria-invalid="true"] { border-color: var(--no) !important; outline: 2px solid var(--no); outline-offset: -1px; }

/* V1: Schrift folgt der Systemgröße.
   iPhone/iPad: Dynamic Type über -apple-system-body (nur iOS, nicht Mac-Safari).
   Alle Schriftgrößen sind rem; Elemente mit fester Box werden nach oben begrenzt. */
html { font-size: 100%; }
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html { font: -apple-system-body; }
}
.num { font-size: min(0.9375rem, 18px); }
.partner-chip .num, .st-name .num { font-size: min(0.8125rem, 15px); }
.cal-num { font-size: min(0.9375rem, 19px); }
.goal-no, .check { font-size: min(0.875rem, 16px); }
.rb { font-size: min(1.125rem, 22px); }
.datebox b { font-size: min(1.1875rem, 24px); }
.datebox span { font-size: min(0.6875rem, 14px); }
.tabbar a span { font-size: min(0.6875rem, 14px); }
.stepper b { font-size: min(3rem, 64px); }
/* Größere Schrift: Zeilen dürfen wachsen, Texte umbrechen statt abgeschnitten */
.row { min-height: 56px; height: auto; }
.cal-day { height: auto; min-height: 50px; padding-bottom: 4px; }

/* ================= G3: Aufstellung als Eisfläche ================= */
:root { --ice: #f1f7fb; --boards: #c9d6e0; --rink-red: #e30613; --rink-blue: #2563eb; --ice-slot: rgba(255,255,255,.55); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ice: #0e1820; --boards: #2a3946; --rink-red: #f0414b; --rink-blue: #3b82f6; --ice-slot: rgba(255,255,255,.03); }
}
:root[data-theme="dark"] { --ice: #0e1820; --boards: #2a3946; --rink-red: #f0414b; --rink-blue: #3b82f6; --ice-slot: rgba(255,255,255,.03); }

.team { padding: 12px; }
.rink {
  position: relative; overflow: hidden; margin-top: 8px;
  background: var(--ice); border: 3px solid var(--boards); border-radius: 32px;
  padding: 20px 10px 12px;
}
/* rote Mittellinie oben mit halbem Anstoßkreis */
.rink-center { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--rink-red); }
.rink-center::after {
  content: ""; position: absolute; left: 50%; top: -40px; width: 80px; height: 80px; margin-left: -40px;
  border: 2px solid var(--rink-blue); border-radius: 50%; opacity: .45;
}
.zone { position: relative; }
.zone .line { position: relative; z-index: 1; }
.blue-line { height: 6px; margin: 12px -10px; background: var(--rink-blue); opacity: .85; }
/* Bullykreise in der Verteidigungszone */
.faceoff {
  position: absolute; top: 50%; z-index: 0; width: 92px; height: 92px; margin-top: -46px;
  border: 2px solid var(--rink-red); border-radius: 50%; opacity: .22;
}
.faceoff::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--rink-red); }
.faceoff-l { left: 4%; } .faceoff-r { right: 4%; }
/* Torraum, Torlinie, Tor – mittig über der Spalte der Spieler */
.zone-g { margin-top: 14px; padding-top: 6px; }
.crease {
  position: absolute; bottom: -6px; z-index: 0; left: calc(26px + (100% - 26px) / 2);
  width: calc((100% - 26px) / 3 + 28px); height: calc(100% + 4px); transform: translateX(-50%);
  border: 2px solid var(--rink-red); border-bottom: 0; border-radius: 999px 999px 0 0;
  background: color-mix(in srgb, var(--rink-blue) 16%, transparent);
}
.zone-g.g2 .crease { width: calc((100% - 26px) * 2 / 3 + 28px); }
.goal-line { height: 2px; margin: 6px -10px 0; background: var(--rink-red); opacity: .8; }
.net {
  width: 64px; height: 14px; margin: 0 0 0 calc(26px + (100% - 26px) / 2 - 32px);
  border: 2px solid var(--rink-red); border-top: 0; border-radius: 0 0 8px 8px;
  background: repeating-linear-gradient(90deg, transparent 0 5px, color-mix(in srgb, var(--rink-red) 35%, transparent) 5px 6px);
}
/* Spieler auf dem Eis */
.rink .line-label { color: var(--muted); }
.rink .pchip { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.rink .slot.empty { border-color: var(--boards); background: var(--ice-slot); }
/* Trikotfarbe statt Emoji */
.jersey { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; }
.jersey-W { background: #ffffff; border: 2px solid #9aa7b3; }
.jersey-S { background: #0d1117; border: 2px solid #6b7680; }

/* Feinschliff: Reiter und Team-Kopf sauber umbrechen */
.ev-tab { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.team-head { flex-wrap: wrap; row-gap: 4px; }
.team-head b { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-head > span { white-space: nowrap; }

/* ================= Team-App (gemeinsame Daten) ================= */
body.gate .tabbar, body.gate #back { display: none !important; }
.gate-card h2 { margin: 0 0 8px; font-size: 1.25rem; }
.gate-card p { margin: 0 0 12px; }
.steps { margin: 0 0 16px; padding-left: 1.3em; line-height: 1.5; }
.steps li { margin-bottom: 8px; }
.my-rsvp { display: flex; flex-direction: column; gap: 10px; margin-top: -4px; }
.my-rsvp-q { font-weight: 700; }
.my-rsvp-q b.yes { color: var(--yes); } .my-rsvp-q b.maybe { color: var(--maybe); } .my-rsvp-q b.no { color: var(--no); }
.my-rsvp-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rb-big { min-height: 48px; font-weight: 700; padding: 8px 4px; font-size: 0.9375rem; }
.rb-big.yes.on { background: var(--yes); border-color: var(--yes); color: #fff; }
.rb-big.maybe.on { background: var(--maybe); border-color: var(--maybe); color: #fff; }
.rb-big.no.on { background: var(--no); border-color: var(--no); color: #fff; }
.rsvp-state { flex: none; font-size: 0.8125rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.rsvp-state.yes { background: var(--yes-bg); color: var(--yes); }
.rsvp-state.maybe { background: var(--maybe-bg); color: var(--maybe); }
.rsvp-state.no { background: var(--no-bg); color: var(--no); }
.me-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 0.6875rem; font-weight: 800; background: var(--accent); color: var(--accent-ink); vertical-align: 2px; }
.row.is-me, .rsvp-row.is-me { box-shadow: inset 3px 0 0 var(--accent); }
.pchip.is-me { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn.pub-on { border-color: var(--yes); color: var(--yes); }
.acc { font-weight: 700; font-size: 0.75rem; }
.acc.ok { color: var(--yes); } .acc.open { color: var(--maybe); } .acc.none { color: var(--muted); }
.acc-row { gap: 8px; }
.acc-row .btn.small { padding: 6px 10px; white-space: nowrap; }
.sync { font-size: 0.8125rem; font-weight: 600; }
.sync.ok { color: var(--yes); } .sync.offline { color: var(--maybe); } .sync.error { color: var(--no); }
.role-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 0.6875rem; font-weight: 800; vertical-align: 2px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.role-tag.admin { background: var(--brand-grad); color: #fff; border-color: transparent; }
.role-tag.manager { background: var(--text); color: var(--bg); border-color: transparent; }
.my-rsvp.locked { gap: 6px; }
.acc-row .link-btn.small { font-size: 0.8125rem; padding: 4px 0; min-height: 0; }
