:root {
  --green: #465D32;
  --green-light: #A0B08D;
  --accent: #b29146;
  --green-dark: #465D32;
  --green-soft: #edf5e0;
  --ink: #202A18;
  --ink-2: #4a5243;
  --muted: #8a9086;
  --line: #e3e7de;
  --bg: #F8F9F6;
  --card: #ffffff;
  --bronze: #b8743a;
  --bronze-soft: #f6ebe1;
  --silber: #8e98a3;
  --silber-soft: #eef0f3;
  --gold: #b29146;
  --gold-soft: #f5eedc;
  --danger: #c4513b;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 18px rgba(32,42,24,.07);
  --font: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: #e9ece4;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- App-Rahmen ---------- */
.app {
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  padding-bottom: 88px;
}
@media (min-width: 520px) {
  .app { box-shadow: 0 0 40px rgba(0,0,0,.08); }
}

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(248,249,246,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar img { height: 34px; width: auto; display: block; }
.topbar .title { font-weight: 700; font-size: 15px; line-height: 1.1; }
.topbar .title small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.topbar .back {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); display: grid; place-items: center; flex-shrink: 0;
}

main { padding: 16px; }
.section-title {
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin: 26px 4px 10px;
}

/* ---------- Karten ---------- */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px;
}
.card + .card { margin-top: 12px; }

.player-card {
  background: var(--ink); color: #fff; border-radius: 22px; padding: 20px;
  position: relative; overflow: hidden;
}
.player-card::after {
  content: ""; position: absolute; right: -56px; top: -56px; width: 120px; height: 120px;
  border-radius: 34px; border: 16px solid var(--accent); opacity: .9;
}
.player-card .hello { font-size: 14px; opacity: .7; }
.player-card .name { font-size: 24px; font-weight: 700; margin: 2px 0 14px; position: relative; z-index: 1; }
.player-card .status { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.player-card .status-text b { font-size: 20px; display: block; }
.player-card .status-text span { font-size: 13px; opacity: .75; }
.progress { height: 8px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; margin: 16px 0 6px; }
.progress > i { display: block; height: 100%; background: var(--green-light); border-radius: 99px; transition: width .4s; }
.progress.light { background: var(--line); }
.progress-label { font-size: 13px; opacity: .8; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; border: 0; border-radius: 14px; padding: 15px 18px;
  font-weight: 700; font-size: 16px; background: var(--green); color: #fff;
  transition: transform .08s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink-2); font-weight: 600; }
.btn.small { padding: 10px 14px; font-size: 14px; width: auto; }
.btn[disabled] { opacity: .4; cursor: default; }
.player-card .btn { margin-top: 16px; position: relative; z-index: 1; }

/* ---------- Medaillen ---------- */
.medal { width: 44px; height: 44px; flex-shrink: 0; }
.medal.lg { width: 72px; height: 72px; }
.medal.sm { width: 28px; height: 28px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 99px; background: var(--green-soft); color: var(--green-dark);
}
.pill.bronze { background: var(--bronze-soft); color: var(--bronze); }
.pill.silber { background: var(--silber-soft); color: #5d6670; }
.pill.gold { background: var(--gold-soft); color: #7d6430; }
.pill.locked { background: #eceee9; color: var(--muted); }

/* ---------- Golfweg-Pfad ---------- */
.path { display: flex; flex-direction: column; gap: 10px; }
.path-level {
  display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.path-level.locked { opacity: .55; }
.path-level .lvl {
  width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; font-size: 20px; flex-shrink: 0;
}
.path-level.locked .lvl { background: #c9cec4; color: #fff; }
.path-level .info { flex: 1; min-width: 0; }
.path-level .info b { display: block; font-size: 15px; }
.path-level .info span { font-size: 12px; color: var(--muted); }
.path-level .medals { display: flex; gap: 4px; }

/* ---------- Übungsliste ---------- */
.ex-list { display: flex; flex-direction: column; gap: 10px; }
.ex-item {
  display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; text-align: left; border: 0;
}
.ex-icon {
  width: 46px; height: 46px; border-radius: 14px; background: var(--green-soft); color: var(--green-dark);
  display: grid; place-items: center; flex-shrink: 0;
}
.ex-item.done .ex-icon { background: var(--green); color: #fff; }
.ex-item .info { flex: 1; min-width: 0; }
.ex-item .info b { display: block; font-size: 16px; }
.ex-item .info span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.ex-item .info span b { display: inline; font-size: inherit; color: var(--ink); }
.ex-item .state { flex-shrink: 0; }
.check {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--line); color: transparent;
}
.check.on { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Stufen-Tabs ---------- */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #eceee8; padding: 5px; border-radius: 14px; }
.tab {
  border: 0; background: transparent; border-radius: 10px; padding: 9px 4px; font-weight: 700; font-size: 14px;
  color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 6px;
}
.tab.active { background: var(--card); box-shadow: var(--shadow); color: var(--ink); }
.tab .medal { width: 18px; height: 18px; }

.level-head h1 { font-size: 26px; margin: 4px 0 6px; }
.level-head p { margin: 0; color: var(--ink-2); line-height: 1.5; font-size: 15px; }

.banner {
  border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; align-items: center;
  background: var(--green-soft); color: var(--green-dark); font-size: 14px; line-height: 1.45; font-weight: 600;
}
.banner.locked { background: #eceee9; color: var(--ink-2); }

/* ---------- Übungsdetail ---------- */
.hero {
  background: var(--ink); color: #fff; border-radius: 22px; padding: 20px; display: flex; gap: 14px; align-items: center;
}
.hero .ex-icon { background: var(--green-light); color: var(--ink); width: 56px; height: 56px; border-radius: 16px; }
.hero h1 { margin: 0; font-size: 24px; }
.hero span { font-size: 13px; opacity: .7; }

.req-box { border: 2px solid var(--green); }
.req-box.bronze { border-color: var(--bronze); }
.req-box.silber { border-color: var(--silber); }
.req-box.gold { border-color: var(--gold); }
.req-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.req-head b { font-size: 17px; display: block; }
.req-head span { font-size: 13px; color: var(--muted); }
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.req-cell { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.req-cell small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.req-cell b { font-size: 15px; }
.req-cell.wide { grid-column: span 2; }
.req-cell.goal { background: var(--ink); color: #fff; }
.req-cell.goal small { color: var(--green-light); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 12px 40px; line-height: 1.45; font-size: 15px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 9px;
  background: var(--green-soft); color: var(--green-dark); font-weight: 800; display: grid; place-items: center; font-size: 14px;
}
.focus {
  margin-top: 4px; padding: 14px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 15px; line-height: 1.45;
}
.focus small { color: var(--green-light); font-weight: 700; display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.meta { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin-top: 12px; line-height: 1.45; }
.meta svg, .banner svg { flex-shrink: 0; }

/* Ergebnis-Eingabe */
.counter { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 10px 0 6px; }
.counter button {
  width: 56px; height: 56px; border-radius: 16px; border: 0; background: var(--bg); font-size: 28px; font-weight: 700;
}
.counter .value { font-size: 52px; font-weight: 800; min-width: 110px; text-align: center; line-height: 1; }
.counter .value small { font-size: 20px; color: var(--muted); font-weight: 600; }
.balls { display: flex; justify-content: center; gap: 6px; margin: 8px 0 16px; flex-wrap: wrap; }
.balls i {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: #fff;
  transition: background .15s, border-color .15s;
}
.balls i.hit { background: var(--green); border-color: var(--green-dark); }
.balls i.need { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.hint { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 14px; }

.history { display: flex; flex-direction: column; }
.history-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.history-row:last-child { border-bottom: 0; }
.history-row .r { font-weight: 700; }
.history-row .r.ok { color: var(--green-dark); }
.empty { color: var(--muted); font-size: 14px; text-align: center; padding: 8px 0; }

.overview { width: 100%; border-collapse: collapse; font-size: 13px; }
.overview th, .overview td { padding: 9px 6px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.overview th { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.overview tr.current td { background: var(--green-soft); }
.overview td:first-child { white-space: nowrap; font-weight: 700; }

/* Platz-Challenge */
.play-card { background: linear-gradient(135deg, #202A18, #465D32); color: #fff; }
.play-card .tag { color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.play-card h3 { margin: 4px 0 10px; font-size: 19px; }
.play-card p { margin: 6px 0; font-size: 14px; line-height: 1.45; opacity: .9; }
.play-card p b { color: var(--green-light); }
.play-card .btn { margin-top: 14px; }
.play-card .btn.ghost { color: #fff; border-color: rgba(255,255,255,.25); }

/* ---------- Bottom-Navigation ---------- */
.nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 20;
  display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border-top: 1px solid var(--line);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted);
  padding: 6px 0; border-radius: 12px;
}
.nav a.active { color: var(--ink); }
.nav a.active svg { color: var(--green-dark); }

/* ---------- Modal ---------- */
.modal-bg {
  position: fixed; inset: 0; background: rgba(20,22,18,.55); z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  animation: fade .2s;
}
.modal {
  background: var(--card); width: 100%; max-width: 480px; border-radius: 26px 26px 0 0; padding: 28px 20px calc(20px + env(safe-area-inset-bottom));
  text-align: center; animation: up .25s ease-out;
}
.modal h2 { margin: 12px 0 6px; font-size: 24px; }
.modal p { margin: 0 0 20px; color: var(--ink-2); line-height: 1.5; }
.modal .btn + .btn { margin-top: 10px; }
.modal .big { font-size: 56px; font-weight: 800; line-height: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- Onboarding ---------- */
.onboard { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 32px 20px; background: var(--card); }
.onboard img { width: 180px; margin: 20px auto 28px; display: block; }
.onboard h1 { font-size: 28px; margin: 0 0 10px; }
.onboard p { color: var(--ink-2); line-height: 1.55; margin: 0 0 14px; }
.onboard .how { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 24px; }
.onboard .how div { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.onboard .how b { width: 30px; height: 30px; border-radius: 10px; background: var(--green); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.input {
  width: 100%; padding: 15px 16px; border-radius: 14px; border: 1.5px solid var(--line); font: inherit; font-size: 16px;
  margin-bottom: 12px; background: var(--bg);
}
.input:focus { outline: none; border-color: var(--green); background: #fff; }

/* Profil */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--card); border-radius: 16px; padding: 14px 10px; text-align: center; box-shadow: var(--shadow); }
.stat b { font-size: 24px; display: block; }
.stat span { font-size: 12px; color: var(--muted); }
.medal-shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.medal-shelf div { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.medal-shelf .medal { width: 52px; height: 52px; margin: 0 auto 4px; display: block; }
.contact { font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.contact b { color: var(--ink); }
.small-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 18px; line-height: 1.5; }
.history-row small { color: var(--muted); font-size: 12px; }
.medal.xs { width: 18px; height: 18px; vertical-align: -4px; }

/* ---------- Nachrichten & Impuls (Spieler) ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: 13px; background: var(--green-soft); color: var(--green-dark);
  display: grid; place-items: center; font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.avatar.dark { background: var(--ink); color: var(--accent); }
.msg-head { display: flex; gap: 12px; align-items: center; }
.msg-head b { display: block; font-size: 15px; }
.msg-head span:not(.avatar) { font-size: 12px; color: var(--muted); }
.msg-card { background: var(--green-soft); border-radius: var(--radius); padding: 16px; border: 1.5px solid #d6e2c6; }
.msg-card p, .impuls p { margin: 12px 0 0; line-height: 1.5; font-size: 15px; }
.impuls .btn { margin-top: 14px; }
.play-status { margin-top: 14px; padding: 12px; border-radius: 14px; background: rgba(160,176,141,.18); color: var(--green-light); font-weight: 700; display: flex; gap: 8px; align-items: center; justify-content: center; }
.link-trainer { display: block; text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- Trainer ---------- */
.trainer-badge {
  margin-left: auto; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  background: var(--ink); color: var(--accent); padding: 5px 9px; border-radius: 8px;
}
.nav.trainer { background: var(--ink); border-top-color: var(--ink); }
.nav.trainer a { color: var(--green-light); }
.nav.trainer a.active { color: #fff; }
.nav.trainer a.active svg { color: var(--accent); }

.trainer-card .name { margin-bottom: 18px; }
.t-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; z-index: 1; }
.t-stats div { background: #2f3b25; border-radius: 14px; padding: 12px 10px; }
.t-stats b { display: block; font-size: 24px; }
.t-stats span { font-size: 12px; opacity: .7; }

.alert-list { display: flex; flex-direction: column; gap: 8px; }
.alert-row {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: #fdf1ee; border-radius: 14px;
  border: 1px solid #f3d6cf; color: var(--ink);
}
.alert-row.info { background: var(--green-soft); border-color: #d6e2c6; }
.alert-row > div { flex: 1; min-width: 0; }
.alert-row b { display: block; font-size: 14px; }
.alert-row span { font-size: 13px; color: var(--ink-2); }
.alert-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--danger); flex-shrink: 0; }
.alert-row.info .alert-icon { color: var(--green-dark); }
.alert-row > svg { color: var(--muted); flex-shrink: 0; }

.grid9 { display: grid; grid-template-columns: 64px repeat(3, 1fr); gap: 6px; align-items: center; }
.grid9 .gh { font-size: 12px; font-weight: 700; color: var(--ink-2); text-align: center; }
.grid9 .gl { font-size: 13px; font-weight: 700; }
.grid9 .gc {
  height: 44px; border-radius: 12px; background: var(--bg); display: grid; place-items: center;
  font-weight: 800; color: var(--muted); font-size: 16px;
}
.grid9 .gc.on { background: rgba(160,176,141,var(--a)); color: var(--ink); }

.player-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.player-row .info { flex: 1; min-width: 0; }
.player-row .info b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-row .info > span { font-size: 13px; color: var(--ink-2); }
.progress.thin { height: 5px; margin: 7px 0 0; }
.player-row .side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; color: var(--muted); flex-shrink: 0; }
.dot-alert { min-width: 20px; height: 20px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }

.t-ex { padding: 4px 14px; }
.t-ex-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.t-ex-row:last-child { border-bottom: 0; }
.t-ex-row .info { flex: 1; }
.t-ex-row .info b { display: block; font-size: 15px; }
.t-ex-row .info span { font-size: 12px; color: var(--muted); }
.t-ex-row .best { font-weight: 800; font-size: 16px; text-align: right; }
.t-ex-row .best small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); }
.t-ex-row .best.ok { color: var(--green-dark); }
.t-ex-row .best.warn { color: var(--danger); }

textarea.input { resize: vertical; line-height: 1.45; min-height: 80px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.lbl { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 6px 2px; }
.link { background: none; border: 0; padding: 0; font-size: 12px; color: var(--muted); text-decoration: underline; }
.idea-list { display: flex; flex-direction: column; gap: 8px; }
.idea { text-align: left; border: 1.5px dashed var(--line); background: var(--bg); border-radius: 12px; padding: 12px; font-size: 14px; line-height: 1.45; }
.idea:hover { border-color: var(--green); }

/* ---------- Anmeldung ---------- */
.auth-msg { border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; margin-bottom: 14px; font-weight: 600; }
.auth-msg.ok { background: var(--green-soft); color: var(--green-dark); }
.auth-msg.err { background: #fdf1ee; color: var(--danger); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); line-height: 1.45; margin: 2px 0 14px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green-dark); flex-shrink: 0; }
.consent a { color: var(--green-dark); text-decoration: underline; }
.auth-switch { margin-top: auto; padding-top: 28px; text-align: center; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
button.link-trainer { background: none; border: 0; width: 100%; }

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; z-index: 70; animation: up .2s ease-out;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* ---------- Akzente (Farben je Schule aus schools.branding.colors) ---------- */
.player-card .btn { background: var(--accent); color: var(--ink); }
.progress.light > i { background: var(--green); }
.section-title { color: var(--green); }
.onboard h1, .level-head h1 { color: var(--ink); }

/* ---------- Abo & Einladungen ---------- */
.nav.trainer { grid-template-columns: repeat(4, 1fr); }
.invite-banner {
  background: var(--gold-soft); border: 1.5px solid #e6d7b0; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px;
  display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 1.45; color: var(--ink-2);
}
.invite-banner b { color: #7d6430; }
.abo-banner {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--gold-soft); border: 1.5px solid #e6d7b0; color: var(--ink);
}
.abo-banner.warn { background: #fdf1ee; border-color: #f3d6cf; }
.abo-banner > div { flex: 1; }
.abo-banner b { display: block; font-size: 14px; }
.abo-banner span { font-size: 13px; color: var(--ink-2); }
.abo-banner svg { color: var(--accent); flex-shrink: 0; }
.abo-status { display: flex; align-items: center; gap: 12px; }
.abo-status .info { flex: 1; }
.abo-status .info b { display: block; font-size: 16px; }
.abo-status .info span { font-size: 13px; color: var(--muted); }
.abo-status > svg { color: var(--muted); }
.abo-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #eceee9; color: var(--muted); flex-shrink: 0; }
.abo-icon.on { background: var(--green-soft); color: var(--green); }
.plans { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.plan { display: block; cursor: pointer; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-body {
  position: relative; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); transition: border-color .15s;
}
.plan input:checked + .plan-body { border-color: var(--green); box-shadow: 0 0 0 3px rgba(70,93,50,.12); }
.plan input:focus-visible + .plan-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan-body b { font-size: 17px; }
.plan-price { font-size: 30px; font-weight: 800; margin: 4px 0 2px; color: var(--ink); }
.plan-body span { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.plan-tag {
  position: absolute; top: 14px; right: 14px; background: var(--accent); color: #fff !important; font-weight: 800;
  font-size: 12px !important; padding: 4px 9px; border-radius: 99px;
}
.grant-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.grant-row .btn { width: auto; }
.share-card { border: 2px solid var(--accent); margin-bottom: 12px; }
.share-card > b { display: block; font-size: 16px; margin-bottom: 10px; }
.link-box {
  background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px;
  word-break: break-all; color: var(--ink-2); font-family: ui-monospace, Consolas, monospace;
}
.inv-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
