@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-geist-sans: "Geist";
  --font-geist-mono: "Geist Mono";
  --ink: #14243d;
  --muted: #68758a;
  --faint: #97a1b2;
  --line: #e0e6ef;
  --surface: #ffffff;
  --canvas: #f4f6fa;
  --forest: #102f63;
  --forest-2: #173f7a;
  --forest-3: #245493;
  --green: #d72f45;
  --green-soft: #fbeaec;
  --lime: #f25a6c;
  --lime-soft: #fdeff1;
  --gold: #f3bd47;
  --gold-soft: #fff5dc;
  --blue: #2f63a9;
  --blue-soft: #e9f0fb;
  --success: #1f8f62;
  --success-soft: #e6f5ed;
  --danger: #c85650;
  --danger-soft: #fcebea;
  --shadow-sm: 0 1px 2px rgba(16, 47, 99, 0.04), 0 5px 18px rgba(16, 47, 99, 0.035);
  --shadow-lg: 0 24px 70px rgba(9, 29, 61, 0.16);
}

* { box-sizing: border-box; }

html { background: var(--canvas); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-geist-sans), Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.eyebrow {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow-light { color: var(--lime); }

.portal-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--forest);
}

.portal-mark-inverted { color: #fff; }

.mark-crest {
  display: grid;
  width: 42px;
  height: 50px;
  flex: 0 0 auto;
  overflow: visible;
  place-items: center;
  border: 0;
  background: transparent;
}

.mark-crest img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 7px rgba(4, 20, 48, .18)); }
.mark-copy { display: flex; flex-direction: column; line-height: 1; }
.mark-copy strong { font-size: 13px; font-weight: 850; letter-spacing: 0.065em; }
.mark-copy small { margin-top: 5px; color: currentColor; font-size: 9.5px; font-weight: 520; letter-spacing: 0.07em; opacity: .64; }
.portal-mark-compact .mark-crest { width: 31px; height: 37px; border-radius: 7px; }

/* Login */
.login-page {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(410px, .92fr) minmax(520px, 1.08fr);
  background: var(--surface);
}

.login-story {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 48px 64px 42px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(242, 90, 108, .18), transparent 28%),
    linear-gradient(145deg, #173f7a 0%, #102f63 52%, #091d3d 100%);
}

.login-story::after {
  position: absolute;
  right: -145px;
  bottom: -215px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  content: "";
}

.pitch-lines { position: absolute; inset: 0; pointer-events: none; opacity: .12; }
.pitch-lines::before { position: absolute; right: -150px; top: 10%; width: 450px; height: 80%; border: 1px solid white; border-radius: 3px; content: ""; }
.pitch-midline { position: absolute; right: 74px; top: 10%; width: 1px; height: 80%; background: white; }
.pitch-circle { position: absolute; right: -25px; top: 50%; width: 195px; height: 195px; border: 1px solid white; border-radius: 50%; transform: translateY(-50%); }

.login-story-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.demo-pill { padding: 7px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 650; letter-spacing: .05em; }
.login-story-copy { position: relative; z-index: 1; max-width: 560px; margin-top: 70px; }
.login-story-copy h1 { max-width: 560px; margin: 0; font-size: clamp(46px, 4.3vw, 70px); font-weight: 650; letter-spacing: -.055em; line-height: .99; }
.login-story-copy > p:not(.eyebrow) { max-width: 520px; margin: 27px 0 0; color: rgba(255,255,255,.67); font-size: 17px; line-height: 1.7; }
.login-benefits { display: grid; max-width: 570px; margin-top: 66px; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.login-benefits > div { padding-top: 15px; border-top: 1px solid rgba(255,255,255,.18); }
.login-benefits p { margin: 8px 0 0; color: rgba(255,255,255,.77); font-size: 12px; font-weight: 600; }
.benefit-number { color: var(--lime); font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: .08em; }
.login-story-foot { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.42); font-size: 11px; letter-spacing: .05em; }

.login-panel { display: flex; min-height: 100svh; flex-direction: column; align-items: center; justify-content: center; padding: 48px; background: #fbfcfa; }
.login-mobile-mark { display: none; }
.login-card { width: min(100%, 450px); }
.login-heading h2 { margin: 0; font-size: 35px; font-weight: 680; letter-spacing: -.045em; }
.login-heading > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.login-form { display: flex; margin-top: 35px; flex-direction: column; gap: 20px; }
.login-form > label { display: flex; flex-direction: column; gap: 8px; color: #33413e; font-size: 12px; font-weight: 650; }
.input-wrap { display: flex; height: 52px; align-items: center; gap: 11px; padding: 0 15px; border: 1px solid #dce3df; border-radius: 10px; color: #8a9693; background: #fff; transition: border-color .2s, box-shadow .2s; }
.input-wrap:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(215,47,69,.1); }
.input-wrap input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.input-icon-button { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 6px; color: var(--faint); background: none; cursor: pointer; }
.input-icon-button:hover { color: var(--forest); background: var(--canvas); }
.login-form-row { display: flex; align-items: center; justify-content: space-between; margin-top: -4px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; cursor: pointer; }
.checkbox-label input { width: 15px; height: 15px; accent-color: var(--green); }
.text-button { padding: 0; border: 0; color: var(--green); background: transparent; font-size: 12px; font-weight: 650; cursor: pointer; }
.inline-notice { display: flex; align-items: flex-start; gap: 9px; margin-top: -4px; padding: 11px 13px; border-radius: 8px; color: #3f6158; background: var(--green-soft); font-size: 11px; line-height: 1.5; }
.inline-notice svg { flex: 0 0 auto; margin-top: 1px; }
.primary-button, .secondary-button, .small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
}
.primary-button { border: 1px solid var(--forest); color: #fff; background: var(--forest); box-shadow: 0 8px 22px rgba(16,47,99,.15); }
.primary-button:hover { transform: translateY(-1px); background: #173f7a; box-shadow: 0 12px 25px rgba(16,47,99,.2); }
.login-submit { width: 100%; min-height: 52px; margin-top: 2px; }
.secondary-button { min-height: 50px; border: 1px solid var(--line); color: var(--ink); background: #fff; }
.secondary-button:hover { border-color: #bcc8c3; background: #f8faf8; }
.demo-admin-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 7px; color: var(--green); background: var(--green-soft); }
.demo-divider { display: flex; align-items: center; gap: 14px; margin: 2px 0 -1px; color: #98a39f; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.demo-divider::before, .demo-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.login-help { margin: 38px 0 0; color: #99a39f; font-size: 10px; text-align: center; }
.demo-access-list { gap: 13px; }
.demo-access-button { min-height: 64px; justify-content: flex-start; padding: 0 16px; text-align: left; }
.demo-access-button > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.demo-access-button strong { font-size: 13px; }
.demo-access-button small { margin-top: 4px; color: rgba(255,255,255,.62); font-size: 10px; font-weight: 500; }
.demo-access-button.secondary-button small { color: var(--faint); }
.demo-access-icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #fff; background: rgba(255,255,255,.12); }
.demo-access-icon.admin { color: var(--green); background: var(--green-soft); }
.prototype-note { display: flex; align-items: flex-start; gap: 8px; margin: 7px 0 0; padding: 11px 12px; border: 1px solid #e5eaf2; border-radius: 9px; color: var(--muted); background: #f7f9fc; font-size: 10.5px; line-height: 1.5; }
.prototype-note svg { flex: 0 0 auto; margin-top: 1px; color: var(--blue); }

/* App shell */
.app-layout { min-height: 100svh; background: var(--canvas); }
.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: 258px;
  flex-direction: column;
  padding: 29px 20px 20px;
  color: #fff;
  background: var(--forest);
}
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.sidebar-close { display: none; border: 0; color: #fff; background: transparent; }
.season-card { display: grid; margin-top: 30px; padding: 14px 15px; grid-template-columns: 1fr auto; gap: 5px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.045); }
.season-card > span:first-child { color: rgba(255,255,255,.45); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.season-card strong { grid-column: 1; font-size: 13px; font-weight: 650; }
.season-status { grid-column: 2; grid-row: 1 / 3; display: flex; align-items: center; gap: 6px; color: #ff9aaa; font-size: 10px; }
.season-status i { width: 6px; height: 6px; border-radius: 50%; background: #ff9aaa; box-shadow: 0 0 0 4px rgba(242,90,108,.12); }
.main-nav { margin-top: 31px; }
.main-nav > p { margin: 0 0 9px 13px; color: rgba(255,255,255,.31); font-size: 8.5px; font-weight: 750; letter-spacing: .17em; }
.main-nav a { position: relative; display: flex; min-height: 46px; align-items: center; gap: 12px; margin: 3px 0; padding: 0 13px; border-radius: 9px; color: rgba(255,255,255,.58); font-size: 12px; font-weight: 540; transition: background .2s, color .2s; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.main-nav a.active { color: #fff; background: rgba(242,90,108,.13); }
.main-nav a.active::before { position: absolute; left: 0; width: 3px; height: 18px; border-radius: 0 2px 2px 0; background: var(--lime); content: ""; }
.main-nav a.active svg { color: var(--lime); }
.main-nav a b { display: grid; min-width: 20px; height: 20px; margin-left: auto; place-items: center; border-radius: 99px; color: var(--forest); background: var(--lime); font-size: 9px; }
.sidebar-message { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; margin-bottom: 17px; padding: 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; background: rgba(255,255,255,.035); }
.sidebar-message-icon { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 7px; color: var(--lime); background: rgba(242,90,108,.13); }
.sidebar-message p { margin: 0; color: rgba(255,255,255,.48); font-size: 9.5px; line-height: 1.5; }
.sidebar-message strong { display: block; margin-bottom: 2px; color: rgba(255,255,255,.82); font-size: 10px; }
.sidebar-profile { display: flex; align-items: center; gap: 9px; padding: 14px 4px 2px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-profile > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.sidebar-profile strong { overflow: hidden; font-size: 10.5px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile small { margin-top: 3px; color: rgba(255,255,255,.38); font-size: 8.5px; }
.sidebar-profile > a { display: grid; width: 30px; height: 30px; place-items: center; color: rgba(255,255,255,.4); }

.app-main { min-height: 100svh; margin-left: 258px; }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; height: 67px; align-items: center; justify-content: space-between; padding: 0 36px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.menu-button, .mobile-brand { display: none; }
.topbar-right { display: flex; width: 100%; align-items: center; justify-content: flex-end; gap: 12px; }
.demo-label { padding: 5px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--faint); font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.notification-wrap { position: relative; }
.icon-button { position: relative; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: #63716e; background: #fff; cursor: pointer; }
.icon-button > i { position: absolute; right: 8px; top: 7px; width: 6px; height: 6px; border: 1.5px solid #fff; border-radius: 50%; background: var(--danger); }
.notification-popover { position: absolute; right: 0; top: 47px; width: 290px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); }
.notification-popover > strong { display: block; margin-bottom: 8px; font-size: 12px; }
.notification-popover > div { display: flex; align-items: flex-start; gap: 9px; padding: 10px 2px; border-top: 1px solid #edf1ee; }
.notification-popover p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.notification-popover b { display: block; color: var(--ink); font-size: 10.5px; }
.notice-dot { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: var(--green); }
.notice-dot.muted { background: var(--gold); }
.avatar { display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #d72f45, #8e1e32); font-weight: 720; letter-spacing: .02em; }
.avatar-xs { width: 34px; height: 34px; font-size: 9px; }
.avatar-sm { width: 34px; height: 34px; font-size: 9px; }
.avatar-color { color: var(--forest); background: #e8eef8; }

.content-area { max-width: 1500px; margin: 0 auto; padding: 36px 36px 60px; }
.page-heading { display: flex; min-height: 59px; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading h1 { margin: 0; font-size: 31px; font-weight: 680; letter-spacing: -.045em; }

.dashboard-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.goal-card { position: relative; grid-column: span 6; min-height: 171px; overflow: hidden; padding: 24px 25px; border-radius: 15px; color: #fff; background: linear-gradient(115deg, var(--forest-2), var(--forest)); box-shadow: var(--shadow-sm); }
.goal-card-copy { position: relative; z-index: 2; display: flex; align-items: flex-start; gap: 13px; }
.goal-check { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--forest); background: var(--lime); }
.goal-card-copy p { margin: 1px 0 5px; color: var(--lime); font-size: 8.5px; font-weight: 780; letter-spacing: .14em; }
.goal-card-copy h2 { margin: 0; font-size: 23px; font-weight: 650; letter-spacing: -.025em; }
.goal-card-copy span:last-child { display: block; margin-top: 5px; color: rgba(255,255,255,.55); font-size: 10.5px; }
.goal-progress { position: relative; z-index: 2; height: 5px; margin-top: 27px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.11); }
.goal-progress span { display: block; height: 100%; border-radius: inherit; background: var(--lime); }
.goal-meta { position: relative; z-index: 2; display: flex; justify-content: space-between; margin-top: 7px; color: rgba(255,255,255,.48); font-size: 8.5px; }
.goal-meta strong { color: var(--lime); font-size: 9px; }
.goal-decoration { position: absolute; right: -24px; top: 22px; color: rgba(255,255,255,.04); transform: rotate(-8deg); }

.stat-card { display: flex; grid-column: span 2; min-height: 171px; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-sm); }
.stat-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 9px; }
.stat-points .stat-icon { color: var(--green); background: var(--green-soft); }
.stat-month .stat-icon { color: var(--green); background: var(--green-soft); }
.stat-rank .stat-icon { color: var(--blue); background: var(--blue-soft); }
.stat-card p { margin: 0 0 2px; color: var(--muted); font-size: 9.5px; }
.stat-card strong { display: block; font-size: 27px; font-weight: 720; letter-spacing: -.04em; }
.stat-card div > span { display: flex; align-items: center; gap: 4px; margin-top: 3px; color: var(--faint); font-size: 8.5px; white-space: nowrap; }
.stat-card div > span.positive { color: var(--green); }

.announcement-card { position: relative; display: flex; grid-column: 1 / -1; align-items: center; gap: 13px; min-height: 75px; padding: 15px 17px; border: 1px solid #f2cbd1; border-radius: 12px; background: linear-gradient(90deg, #fdeff1, #fff7f8); }
.announcement-icon { display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--forest); background: var(--lime); }
.announcement-card > div { display: grid; grid-template-columns: auto 1fr; column-gap: 11px; align-items: baseline; }
.announcement-card p { grid-column: 1 / -1; margin: 0 0 3px; color: #b52a3d; font-size: 7.5px; font-weight: 760; letter-spacing: .13em; }
.announcement-card strong { font-size: 11px; }
.announcement-card span:not(.announcement-icon) { color: #6e5260; font-size: 9.5px; }
.announcement-card > button { position: absolute; right: 12px; top: 11px; display: grid; width: 27px; height: 27px; place-items: center; border: 0; border-radius: 6px; color: #9e6c78; background: transparent; cursor: pointer; }

.panel { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-sm); }
.next-activity-panel { grid-column: span 7; padding: 21px 22px 16px; }
.latest-points-panel { grid-column: span 5; padding: 21px 22px 16px; }
.dashboard-ranking { grid-column: span 7; padding: 21px 22px 13px; }
.participation-panel { grid-column: span 5; padding: 21px 22px 15px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.panel-heading h2 { margin: 0; font-size: 15px; font-weight: 680; letter-spacing: -.02em; }
.panel-heading > a { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--green); font-size: 9px; font-weight: 650; }

.next-activity { display: grid; align-items: center; grid-template-columns: 69px 1fr auto; gap: 16px; padding: 15px; border-radius: 11px; background: var(--canvas); }
.date-tile { display: flex; width: 66px; height: 74px; flex-direction: column; align-items: center; justify-content: center; border-radius: 9px; color: #fff; background: var(--forest); }
.date-tile > span { color: var(--lime); font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.date-tile strong { margin: 0; font-size: 24px; line-height: 1.05; }
.date-tile small { color: rgba(255,255,255,.42); font-size: 6.5px; letter-spacing: .08em; }
.tag { display: inline-flex; align-items: center; width: fit-content; padding: 4px 7px; border-radius: 99px; font-size: 7px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.tag-planned { color: #3c689e; background: #e7effa; }
.tag-completed { color: var(--success); background: var(--success-soft); }
.tag-cancelled { color: #a74b47; background: var(--danger-soft); }
.activity-main h3 { margin: 7px 0 8px; font-size: 13px; font-weight: 680; }
.activity-facts { display: flex; flex-wrap: wrap; gap: 12px; }
.activity-facts span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8.5px; }
.activity-reward { display: flex; align-items: flex-end; flex-direction: column; gap: 5px; }
.activity-reward span { display: inline-flex; align-items: center; gap: 4px; color: #aa7610; font-size: 8.5px; }
.activity-reward svg { fill: currentColor; }
.activity-reward strong { color: var(--green); font-size: 10px; }
.activity-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.joined-status { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 8.5px; font-weight: 650; }
.small-button { min-height: 31px; padding: 0 12px; border: 1px solid var(--line); background: #fff; font-size: 8.5px; }
.small-button:hover { border-color: #b8c6c0; }

.latest-entry { display: grid; align-items: center; grid-template-columns: auto 1fr auto; gap: 10px; padding: 12px 0; border-top: 1px solid #edf1ee; border-bottom: 1px solid #edf1ee; }
.entry-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: #bc8517; background: var(--gold-soft); }
.entry-icon svg { fill: currentColor; }
.latest-entry > div { display: flex; min-width: 0; flex-direction: column; }
.latest-entry strong { font-size: 10px; }
.latest-entry span { margin-top: 3px; overflow: hidden; color: var(--faint); font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.latest-entry .entry-value { align-items: flex-end; }
.latest-entry .entry-value strong { color: var(--green); font-size: 15px; }
.mini-chart { display: flex; height: 43px; align-items: flex-end; gap: 7px; margin-top: 14px; }
.mini-chart span { flex: 1; min-height: 8px; border-radius: 3px 3px 1px 1px; background: #dce7e2; }
.mini-chart span:last-child { background: var(--green); }
.chart-labels { display: flex; justify-content: space-around; margin-top: 5px; color: var(--faint); font-size: 6.5px; }

.ranking-list > div { display: grid; min-height: 49px; align-items: center; grid-template-columns: 29px 34px 1fr 48px 48px; gap: 9px; padding: 5px 8px; border-top: 1px solid #edf1ee; border-radius: 7px; }
.ranking-list > div.current-player { border-top-color: transparent; background: #f2f5fb; }
.rank-number { color: var(--faint); font-family: var(--font-geist-mono), monospace; font-size: 9px; text-align: center; }
.rank-1 { color: #b98216; font-weight: 800; }
.rank-2 { color: #75817e; font-weight: 800; }
.rank-3 { color: #a06c45; font-weight: 800; }
.ranking-name { display: flex; min-width: 0; flex-direction: column; }
.ranking-name strong { overflow: hidden; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.ranking-name small { margin-top: 2px; color: var(--faint); font-size: 7px; }
.ranking-points { font-size: 9px; text-align: right; }
.timeline > div { position: relative; display: grid; min-height: 52px; align-items: center; grid-template-columns: 29px 1fr auto; gap: 9px; }
.timeline-dot { z-index: 2; display: grid; width: 25px; height: 25px; place-items: center; border: 3px solid #fff; border-radius: 50%; color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 1px #d9eae1; }
.timeline > div > i { position: absolute; z-index: 1; left: 12px; top: 35px; width: 1px; height: 34px; background: #dfe6e2; }
.timeline > div > div { display: flex; min-width: 0; flex-direction: column; }
.timeline > div > div strong { overflow: hidden; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.timeline > div > div span { margin-top: 3px; color: var(--faint); font-size: 7.5px; }
.timeline > div > strong { color: var(--green); font-size: 9px; }

.mobile-nav { display: none; }
.sidebar-scrim { display: none; }

/* Shared subpages */
.activity-summary-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.activity-summary-strip > div, .history-stat-card { display: flex; min-height: 88px; align-items: center; gap: 13px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-sm); }
.summary-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 10px; }
.summary-icon.green { color: var(--green); background: var(--green-soft); }
.summary-icon.gold { color: #b57d10; background: var(--gold-soft); }
.summary-icon.blue { color: var(--blue); background: var(--blue-soft); }
.activity-summary-strip p, .history-stat-card p { display: flex; margin: 0; flex-direction: column; }
.activity-summary-strip strong { font-size: 17px; letter-spacing: -.02em; }
.activity-summary-strip small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.filter-chips, .segmented-control { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.filter-chips button, .segmented-control button { min-height: 31px; padding: 0 13px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 620; cursor: pointer; }
.filter-chips button.active, .segmented-control button.active { color: #fff; background: var(--forest); box-shadow: 0 5px 12px rgba(16,47,99,.12); }
.toolbar-note { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: 9px; }
.activity-groups { display: flex; flex-direction: column; gap: 29px; }
.group-title { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.group-title h2 { margin: 0; font-size: 15px; font-weight: 700; }
.group-title span { padding: 4px 7px; border-radius: 99px; color: var(--muted); background: #e9edf5; font-size: 7.5px; font-weight: 650; }
.activity-card-list { display: flex; flex-direction: column; gap: 8px; }
.activity-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.activity-card.expanded { border-color: #c8d6eb; box-shadow: 0 10px 30px rgba(16,47,99,.07); }
.activity-card-main { display: grid; width: 100%; min-height: 112px; align-items: center; grid-template-columns: 65px 1fr 70px 125px 25px; gap: 15px; padding: 16px 18px; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.date-tile-light { width: 61px; height: 70px; color: var(--forest); background: #edf1f8; }
.date-tile-light > span { color: var(--green); }
.date-tile-light small { color: var(--faint); }
.activity-card-copy { display: flex; min-width: 0; flex-direction: column; }
.activity-card-tags { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.activity-card-tags i { color: var(--faint); font-size: 7.5px; font-style: normal; }
.activity-card-copy > strong { overflow: hidden; margin-bottom: 8px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.activity-card-reward { display: flex; align-items: center; flex-direction: column; gap: 6px; }
.activity-card-reward span { display: inline-flex; align-items: center; gap: 4px; color: #b07b13; font-size: 9px; }
.activity-card-reward svg { fill: currentColor; }
.activity-card-reward strong { color: var(--green); font-size: 10px; }
.participation-badge { display: inline-flex; width: fit-content; align-items: center; gap: 5px; justify-self: center; padding: 6px 9px; border-radius: 99px; color: #727f7c; background: #f0f3f1; font-size: 8px; font-weight: 650; white-space: nowrap; }
.participation-badge.positive { color: var(--success); background: var(--success-soft); }
.card-chevron { color: var(--faint); transition: transform .2s; }
.activity-card.expanded .card-chevron { transform: rotate(90deg); }
.activity-card-detail { padding: 17px 18px 18px 98px; border-top: 1px solid #edf1ee; background: #fcfdfc; }
.activity-card-detail > p { max-width: 760px; margin: 0 0 16px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 32px; margin-bottom: 17px; }
.detail-meta span { display: flex; flex-direction: column; color: #34433f; font-size: 9px; }
.detail-meta b { margin-bottom: 3px; color: var(--faint); font-size: 7px; letter-spacing: .07em; text-transform: uppercase; }
.compact-button { min-height: 36px; padding: 0 14px; font-size: 9px; }
.registered-button { color: var(--green); border-color: #bcdccc; background: var(--green-soft); }

/* Ranking */
.ranking-hero { position: relative; display: grid; min-height: 160px; align-items: center; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; overflow: hidden; margin-bottom: 16px; padding: 25px 30px; border-radius: 15px; color: #fff; background: linear-gradient(110deg, var(--forest-2), var(--forest)); }
.ranking-hero-copy { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; }
.ranking-hero-copy p { grid-column: 1 / -1; margin: 0 0 4px; color: var(--lime); font-size: 8px; font-weight: 750; letter-spacing: .13em; }
.ranking-hero-copy strong { font-size: 47px; line-height: 1; letter-spacing: -.06em; }
.ranking-hero-copy span { color: rgba(255,255,255,.48); font-size: 9px; }
.ranking-hero-stat { position: relative; z-index: 2; display: flex; align-items: center; gap: 11px; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.11); }
.ranking-hero-stat > svg { color: var(--lime); }
.ranking-hero-stat span { display: flex; flex-direction: column; color: rgba(255,255,255,.45); font-size: 8px; }
.ranking-hero-stat b { margin-bottom: 4px; color: #fff; font-size: 11px; }
.ranking-hero-art { position: absolute; right: -28px; bottom: -26px; color: rgba(255,255,255,.035); }
.ranking-table-panel, .history-panel { padding: 22px; }
.table-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.table-topline h2 { margin: 0; font-size: 16px; }
.segmented-control .month-button { display: grid; width: 32px; padding: 0; place-items: center; border-left: 1px solid var(--line); border-radius: 0; }
.ranking-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.data-table th { height: 37px; padding: 0 12px; color: var(--faint); background: #f7f9f7; font-size: 7px; font-weight: 700; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table th:first-child { border-radius: 8px 0 0 8px; }
.data-table th:last-child { border-radius: 0 8px 8px 0; text-align: right; }
.data-table td { height: 57px; padding: 6px 12px; border-bottom: 1px solid #edf1ee; color: #45534f; white-space: nowrap; }
.data-table td:last-child { text-align: right; }
.data-table tr.current-row td { border-bottom-color: transparent; background: #f2f5fb; }
.data-table tr.current-row td:first-child { border-radius: 8px 0 0 8px; }
.data-table tr.current-row td:last-child { border-radius: 0 8px 8px 0; }
.table-rank { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; background: #f0f3f1; }
.table-rank.rank-1 { color: #9a6a0d; background: var(--gold-soft); }
.player-cell { display: flex; align-items: center; gap: 9px; }
.player-cell > span:nth-child(2) { display: flex; flex-direction: column; }
.player-cell strong { color: var(--ink); font-size: 9.5px; }
.player-cell small { margin-top: 2px; color: var(--faint); font-size: 7px; }
.player-cell i { padding: 3px 5px; border-radius: 4px; color: #6e8e2d; background: var(--lime-soft); font-size: 6px; font-style: normal; font-weight: 800; }
.goal-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 99px; font-size: 7.5px; font-weight: 650; }
.goal-status.met { color: var(--success); background: var(--success-soft); }
.goal-status.open { color: #987224; background: var(--gold-soft); }
.table-footnote { margin: 13px 0 0; color: var(--faint); font-size: 7.5px; }

/* History */
.history-stats { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.history-total-card { min-height: 112px; padding: 20px 22px; border-radius: 14px; color: #fff; background: var(--forest); }
.history-total-card > p { margin: 0 0 5px; color: var(--lime); font-size: 7.5px; font-weight: 750; letter-spacing: .13em; }
.history-total-card > strong { font-size: 30px; letter-spacing: -.04em; }
.history-total-card > strong span { color: rgba(255,255,255,.55); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.history-total-card > div { display: flex; gap: 16px; margin-top: 9px; }
.history-total-card > div span { display: inline-flex; align-items: center; gap: 5px; color: rgba(255,255,255,.6); font-size: 8px; }
.history-total-card > div svg { color: var(--lime); }
.history-stat-card p { margin: 0 0 3px; color: var(--muted); font-size: 8.5px; }
.history-stat-card strong { font-size: 15px; }
.history-stat-card span:last-child { margin-top: 3px; color: var(--faint); font-size: 7.5px; }
.history-panel { margin-bottom: 16px; }
.history-activity { display: flex; align-items: center; gap: 9px; }
.history-activity .entry-icon { width: 31px; height: 31px; color: var(--green); background: var(--green-soft); }
.admin-note { display: inline-flex; max-width: 250px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; }
.positive-text { color: var(--green); }
.monthly-breakdown { padding: 21px 22px 17px; }
.month-bars { display: grid; height: 145px; align-items: end; grid-template-columns: repeat(6, 1fr); gap: 15px; padding: 0 25px; }
.month-bars > div { display: grid; align-items: end; justify-items: center; grid-template-rows: 92px 18px 16px; }
.month-bars > div > span { display: flex; width: 100%; height: 92px; align-items: flex-end; justify-content: center; }
.month-bars i { display: block; width: min(100%, 32px); border-radius: 5px 5px 2px 2px; background: #dce7e2; }
.month-bars > div:last-child i { background: var(--green); }
.month-bars strong { font-size: 8px; }
.month-bars small { color: var(--faint); font-size: 7px; }

/* Profile */
.toast { position: fixed; z-index: 50; right: 24px; top: 82px; display: flex; align-items: center; gap: 9px; padding: 12px 16px; border-radius: 10px; color: #fff; background: var(--forest); box-shadow: var(--shadow-lg); font-size: 10px; font-weight: 650; }
.toast svg { color: var(--lime); }
.profile-layout { display: grid; align-items: start; grid-template-columns: minmax(220px, .7fr) minmax(420px, 1.7fr); gap: 16px; }
.profile-card { padding: 27px 22px 22px; text-align: center; }
.profile-avatar-wrap { position: relative; width: fit-content; margin: 0 auto; }
.profile-avatar { width: 78px; height: 78px; border: 5px solid #edf1f8; font-size: 19px; }
.profile-avatar-wrap button { position: absolute; right: -1px; bottom: 1px; display: grid; width: 29px; height: 29px; place-items: center; border: 3px solid #fff; border-radius: 50%; color: var(--forest); background: var(--lime); cursor: pointer; }
.profile-card h2 { margin: 14px 0 2px; font-size: 17px; }
.profile-card > p { margin: 0; color: var(--muted); font-size: 9px; }
.active-account { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; padding: 5px 8px; border-radius: 99px; color: var(--green); background: var(--green-soft); font-size: 7px; font-weight: 700; }
.active-account i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.profile-mini-stats { display: grid; margin-top: 22px; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-mini-stats > div { display: flex; padding: 13px 2px; flex-direction: column; }
.profile-mini-stats > div + div { border-left: 1px solid var(--line); }
.profile-mini-stats strong { font-size: 14px; }
.profile-mini-stats span { margin-top: 3px; color: var(--faint); font-size: 6.5px; }
.profile-card .profile-hint { margin-top: 17px; padding: 10px; border-radius: 8px; color: var(--faint); background: var(--canvas); font-size: 7.5px; line-height: 1.55; text-align: left; }
.profile-forms { display: flex; flex-direction: column; gap: 16px; }
.settings-form { padding: 22px; }
.form-section-heading { display: flex; align-items: center; gap: 11px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.form-section-heading h2 { margin: 0; font-size: 14px; }
.form-section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 13px; margin-top: 20px; }
.form-grid label, .password-form label { display: flex; flex-direction: column; gap: 6px; color: #41504c; font-size: 8.5px; font-weight: 650; }
.form-grid input, .password-form input, .modal-form input, .modal-form select, .modal-form textarea { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #dce3df; border-radius: 8px; outline: 0; color: var(--ink); background: #fff; font-size: 10px; font-weight: 450; }
.form-grid input:focus, .password-form input:focus, .modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(215,47,69,.08); }
.form-grid input:disabled { color: var(--faint); background: #f3f5f9; }
.form-grid label > small { color: var(--faint); font-size: 6.5px; font-weight: 450; }
.form-wide { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.password-panel { overflow: hidden; }
.password-toggle { display: grid; width: 100%; align-items: center; grid-template-columns: auto 1fr auto; gap: 11px; padding: 17px 20px; border: 0; background: #fff; text-align: left; cursor: pointer; }
.password-toggle > span:nth-child(2) { display: flex; flex-direction: column; }
.password-toggle strong { font-size: 11px; }
.password-toggle small { margin-top: 3px; color: var(--faint); font-size: 7.5px; }
.password-toggle > svg { color: var(--faint); transition: transform .2s; }
.password-toggle > svg.rotated { transform: rotate(90deg); }
.password-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px 20px 20px; border-top: 1px solid var(--line); }
.password-form button { align-self: end; }
.admin-placeholder { display: flex; min-height: 300px; align-items: center; justify-content: center; flex-direction: column; padding: 30px; text-align: center; }
.admin-placeholder h2 { margin: 15px 0 5px; font-size: 18px; }
.admin-placeholder p { max-width: 440px; margin: 0; color: var(--muted); font-size: 10px; }

/* Administration */
.heading-action { min-height: 38px; padding: 0 14px; }
button.heading-action { cursor: pointer; }
.admin-welcome { position: relative; display: flex; min-height: 118px; align-items: center; justify-content: space-between; gap: 25px; overflow: hidden; margin-bottom: 15px; padding: 23px 27px; border-radius: 15px; color: #fff; background: linear-gradient(110deg, var(--forest-2), var(--forest)); }
.admin-welcome::after { position: absolute; right: 255px; width: 160px; height: 160px; border: 1px solid rgba(255,255,255,.055); border-radius: 50%; content: ""; }
.admin-welcome > div { position: relative; z-index: 2; }
.admin-welcome > div p { margin: 0 0 6px; color: var(--lime); font-size: 7.5px; font-weight: 780; letter-spacing: .14em; }
.admin-welcome > div h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.admin-welcome > div span { display: block; margin-top: 5px; color: rgba(255,255,255,.52); font-size: 9.5px; }
.admin-welcome > button { position: relative; z-index: 2; display: grid; min-width: 250px; align-items: center; grid-template-columns: auto 1fr auto; gap: 11px; padding: 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; color: #fff; background: rgba(255,255,255,.06); text-align: left; cursor: pointer; }
.admin-welcome > button > svg:first-child { color: var(--lime); }
.admin-welcome > button > span { display: flex; flex-direction: column; }
.admin-welcome > button strong { font-size: 9.5px; }
.admin-welcome > button small { margin-top: 3px; color: rgba(255,255,255,.4); font-size: 7px; }
.quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 15px; }
.quick-actions > a { display: grid; min-height: 76px; align-items: center; grid-template-columns: auto 1fr auto; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s; }
.quick-actions > a:hover { border-color: #bccbc4; transform: translateY(-1px); }
.quick-actions > a > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.quick-actions strong { overflow: hidden; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.quick-actions small { overflow: hidden; margin-top: 3px; color: var(--faint); font-size: 6.7px; text-overflow: ellipsis; white-space: nowrap; }
.quick-actions > a > svg { color: var(--faint); }
.quick-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 9px; }
.quick-icon.green { color: var(--green); background: var(--green-soft); }
.quick-icon.gold { color: #b27b0f; background: var(--gold-soft); }
.quick-icon.blue { color: var(--blue); background: var(--blue-soft); }
.quick-icon.purple { color: #795f9e; background: #f0ebf8; }
.admin-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 15px; }
.admin-kpis article { display: flex; min-height: 92px; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.admin-kpis article > span { display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--green); background: var(--green-soft); }
.admin-kpis article:nth-child(2) > span { color: var(--blue); background: var(--blue-soft); }
.admin-kpis article:nth-child(3) > span { color: #ae760c; background: var(--gold-soft); }
.admin-kpis article:nth-child(4) > span { color: #795f9e; background: #f0ebf8; }
.admin-kpis article div { display: flex; min-width: 0; flex-direction: column; }
.admin-kpis p { margin: 0 0 2px; color: var(--muted); font-size: 8px; }
.admin-kpis strong { font-size: 20px; letter-spacing: -.04em; }
.admin-kpis small { margin-top: 2px; color: var(--faint); font-size: 6.8px; }
.admin-dashboard-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 15px; }
.attention-panel { grid-column: span 7; padding: 21px 22px 13px; }
.admin-next-panel { grid-column: span 5; padding: 21px 22px 18px; }
.admin-ranking-panel { grid-column: span 7; padding: 21px 22px 13px; }
.month-health-panel { grid-column: span 5; padding: 21px 22px 17px; }
.count-badge { display: inline-flex; padding: 5px 8px; border-radius: 99px; font-size: 7px; font-weight: 700; }
.count-badge.danger { color: #a24b46; background: var(--danger-soft); }
.panel-intro { margin: -6px 0 12px; color: var(--muted); font-size: 8px; }
.attention-list > div { display: grid; min-height: 47px; align-items: center; grid-template-columns: 34px 1fr auto; gap: 9px; border-top: 1px solid #edf1ee; }
.attention-list > div > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.attention-list strong { font-size: 9px; }
.attention-list small { margin-top: 2px; color: var(--faint); font-size: 7px; }
.attention-list a { padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--green); font-size: 7px; font-weight: 650; }
.panel-footer-link { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 8px -8px -3px; padding-top: 11px; border-top: 1px solid #edf1ee; color: var(--green); font-size: 8px; font-weight: 650; }
.admin-date-block { display: grid; min-height: 72px; align-items: center; grid-template-columns: 45px 1fr; margin-bottom: 12px; padding: 10px 15px; border-radius: 10px; color: #fff; background: var(--forest); }
.admin-date-block > span { grid-row: 1; color: var(--lime); font-size: 7px; font-weight: 780; letter-spacing: .12em; }
.admin-date-block > strong { grid-column: 1; grid-row: 2; font-size: 24px; line-height: 1; }
.admin-date-block > small { grid-column: 2; grid-row: 1 / 3; color: rgba(255,255,255,.58); font-size: 9px; }
.admin-activity-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.admin-activity-facts span { display: flex; min-width: 0; align-items: center; gap: 5px; overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.registration-progress { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
.registration-progress > span { height: 5px; flex: 1; overflow: hidden; border-radius: 99px; background: #edf1ee; }
.registration-progress i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.registration-progress strong { color: var(--green); font-size: 8px; }
.admin-panel-button { width: 100%; min-height: 34px; margin-top: 15px; }
.donut-wrap { display: flex; align-items: center; justify-content: center; gap: 25px; padding: 2px 0 17px; }
.donut { display: grid; width: 100px; height: 100px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) 0 50%, var(--gold) 50% 96%, #dce4df 96% 100%); }
.donut::after { position: absolute; width: 70px; height: 70px; border-radius: 50%; background: #fff; content: ""; }
.donut > span { z-index: 2; display: flex; align-items: center; flex-direction: column; }
.donut strong { font-size: 18px; }
.donut small { color: var(--faint); font-size: 7px; }
.donut-legend { display: flex; flex-direction: column; gap: 9px; }
.donut-legend span { display: grid; align-items: center; grid-template-columns: 7px 18px 1fr; gap: 6px; color: var(--muted); font-size: 7.5px; }
.donut-legend i { width: 7px; height: 7px; border-radius: 50%; }
.met-dot { background: var(--green); }.open-dot { background: var(--gold); }.inactive-dot { background: #dce4df; }
.donut-legend b { color: var(--ink); font-size: 9px; }
.month-facts { display: grid; grid-template-columns: repeat(3,1fr); padding-top: 13px; border-top: 1px solid var(--line); }
.month-facts span { display: flex; align-items: center; flex-direction: column; color: var(--faint); font-size: 6.8px; }
.month-facts span + span { border-left: 1px solid var(--line); }
.month-facts strong { margin-bottom: 2px; color: var(--ink); font-size: 11px; }

/* Modals */
.modal-layer { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-scrim { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(5,27,23,.54); backdrop-filter: blur(4px); }
.modal-card { position: relative; z-index: 2; width: min(100%,520px); max-height: min(90svh,760px); overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 35px 90px rgba(9,29,61,.3); }
.modal-card.modal-wide { width: min(100%,650px); }
.modal-card > header { position: sticky; z-index: 3; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 17px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.modal-card > header h2 { margin: 0; font-size: 17px; letter-spacing: -.03em; }
.modal-card > header > button { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; cursor: pointer; }
.modal-form { display: flex; padding: 22px; flex-direction: column; gap: 15px; }
.modal-form-grid { display: grid; grid-template-columns: repeat(2,1fr); }
.modal-form label { display: flex; flex-direction: column; gap: 6px; color: #3f4e4a; font-size: 8.5px; font-weight: 650; }
.modal-form textarea { height: 85px; padding-top: 10px; resize: vertical; }
.modal-form footer { display: flex; justify-content: flex-end; gap: 8px; margin: 5px -22px -22px; padding: 16px 22px; border-top: 1px solid var(--line); background: #fafbfa; }
.modal-form-grid footer { margin: 5px -22px -22px; }
.modal-form footer .primary-button, .modal-form footer .secondary-button { min-height: 39px; padding: 0 13px; }

/* Points wizard */
.wizard-shell { overflow: hidden; margin-bottom: 16px; }
.wizard-steps { display: grid; grid-template-columns: repeat(5,1fr); padding: 19px 22px; border-bottom: 1px solid var(--line); background: #fafbfa; }
.wizard-steps > div { position: relative; display: flex; align-items: center; gap: 7px; }
.wizard-steps > div > span { z-index: 2; display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border: 1px solid #d6dfda; border-radius: 50%; color: var(--faint); background: #fff; font-size: 8px; font-weight: 700; }
.wizard-steps > div > strong { z-index: 2; color: var(--faint); background: #fafbfa; font-size: 8px; font-weight: 650; }
.wizard-steps > div > i { position: absolute; z-index: 1; left: 31px; right: 7px; height: 1px; background: #dfe5e1; }
.wizard-steps > div.active > span { border-color: var(--forest); color: #fff; background: var(--forest); box-shadow: 0 0 0 4px rgba(16,47,99,.07); }
.wizard-steps > div.active > strong { color: var(--ink); }
.wizard-steps > div.complete > span { border-color: var(--green); color: #fff; background: var(--green); }
.wizard-steps > div.complete > i { background: var(--green); }
.wizard-content { min-height: 410px; }
.wizard-step-content { padding: 25px 28px; }
.wizard-step-content > header { margin-bottom: 22px; text-align: center; }
.wizard-step-content > header h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.wizard-step-content > header > span { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; }
.activity-choice-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.activity-choice-list > button { display: grid; min-height: 85px; align-items: center; grid-template-columns: 52px 1fr auto 22px; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; color: inherit; background: #fff; text-align: left; cursor: pointer; }
.activity-choice-list > button.selected { border-color: var(--green); background: #fff7f8; box-shadow: 0 0 0 2px rgba(215,47,69,.07); }
.activity-choice-list .date-tile { width: 48px; height: 56px; }
.activity-choice-list .date-tile strong { font-size: 19px; }
.activity-choice-list > button > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.activity-choice-list > button > span:nth-child(2) strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.activity-choice-list > button > span:nth-child(2) small { margin-top: 4px; overflow: hidden; color: var(--faint); font-size: 6.8px; text-overflow: ellipsis; white-space: nowrap; }
.activity-choice-list > button > span:nth-child(3) { display: inline-flex; align-items: center; gap: 3px; color: #a87410; font-size: 7px; white-space: nowrap; }
.activity-choice-list > button > i { display: grid; width: 19px; height: 19px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #fff; background: #fff; }
.activity-choice-list > button.selected > i { border-color: var(--green); background: var(--green); }
.selection-toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.search-field { display: flex; height: 38px; flex: 1; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--faint); background: #fff; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 9px; }
.selection-toolbar > button { height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--green); background: #fff; font-size: 8px; font-weight: 650; cursor: pointer; }
.selection-toolbar > span { margin-left: auto; color: var(--muted); font-size: 8px; }
.player-choice-grid { display: grid; max-height: 275px; overflow-y: auto; grid-template-columns: repeat(3,1fr); gap: 7px; padding-right: 2px; }
.player-choice-grid label { display: grid; min-height: 61px; align-items: center; grid-template-columns: 34px 1fr 20px; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.player-choice-grid label.selected { border-color: #b6dbc8; background: #f4faf6; }
.player-choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.player-choice-grid label > span:nth-child(3) { display: flex; min-width: 0; flex-direction: column; }
.player-choice-grid strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.player-choice-grid small { margin-top: 2px; color: var(--faint); font-size: 6.5px; }
.player-choice-grid i { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #fff; }
.player-choice-grid label.selected i { border-color: var(--green); background: var(--green); }
.reward-fields { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.reward-fields > label { display: grid; min-height: 94px; align-items: center; grid-template-columns: auto 1fr auto; gap: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 11px; }
.reward-field-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 9px; }
.reward-field-icon.gold { color: #af7910; background: var(--gold-soft); }.reward-field-icon.green { color: var(--green); background: var(--green-soft); }
.reward-fields > label > span:nth-child(2) { display: flex; flex-direction: column; }
.reward-fields b { font-size: 9px; }.reward-fields small { margin-top: 3px; color: var(--faint); font-size: 6.8px; }
.number-stepper { display: inline-grid; height: 34px; align-items: center; grid-template-columns: 29px 36px 29px; border: 1px solid var(--line); border-radius: 8px; }
.number-stepper button { height: 100%; border: 0; color: var(--green); background: #f7f9f7; font-size: 15px; cursor: pointer; }
.number-stepper button:first-child { border-radius: 8px 0 0 8px; }.number-stepper button:last-child { border-radius: 0 8px 8px 0; }
.number-stepper strong { text-align: center; font-size: 10px; }
.wizard-note { display: flex; margin-top: 14px; flex-direction: column; gap: 6px; color: #3f4e4a; font-size: 8.5px; font-weight: 650; }
.wizard-note textarea { height: 78px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; outline: 0; resize: vertical; font-size: 9px; }
.wizard-note textarea:focus { border-color: var(--green); }
.review-card { display: grid; grid-template-columns: repeat(2,1fr); gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.review-card > div { display: flex; min-height: 94px; flex-direction: column; justify-content: center; padding: 15px 18px; }
.review-card > div:nth-child(odd) { border-right: 1px solid var(--line); }
.review-card > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.review-card span { color: var(--faint); font-size: 7px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.review-card strong { margin-top: 6px; font-size: 11px; }
.review-card small { margin-top: 4px; color: var(--muted); font-size: 7.5px; }
.avatar-stack { display: flex; margin-top: 7px; padding-left: 5px; }
.avatar-stack .avatar { margin-left: -5px; border: 2px solid #fff; }
.avatar-stack i { display: grid; width: 33px; height: 33px; margin-left: -5px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: var(--muted); background: #e8eeeb; font-size: 7px; font-style: normal; }
.review-card .review-total { display: grid; align-items: center; grid-template-columns: 1fr auto; background: var(--forest); }
.review-total span { grid-column: 1 / -1; color: var(--lime); }
.review-total strong { color: #fff; }
.review-warning { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; padding: 11px 13px; border-radius: 9px; color: #7f651e; background: var(--gold-soft); }
.review-warning svg { flex: 0 0 auto; }.review-warning span { color: #806d38; font-size: 7.5px; line-height: 1.5; }.review-warning strong { display: block; color: #634c12; }
.wizard-success { display: flex; min-height: 410px; align-items: center; justify-content: center; flex-direction: column; padding: 35px; text-align: center; }
.wizard-success > span { display: grid; width: 68px; height: 68px; margin-bottom: 18px; place-items: center; border-radius: 50%; color: var(--forest); background: var(--lime); box-shadow: 0 0 0 10px var(--lime-soft); }
.wizard-success h2 { margin: 0; font-size: 23px; }.wizard-success > p:not(.eyebrow) { max-width: 500px; margin: 10px 0 22px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.wizard-success > div { display: flex; gap: 8px; }.wizard-success .primary-button,.wizard-success .secondary-button { min-height: 39px; padding: 0 14px; }
.wizard-footer { display: grid; align-items: center; grid-template-columns: 1fr auto 1fr; padding: 15px 20px; border-top: 1px solid var(--line); background: #fafbfa; }
.wizard-footer > button { min-height: 38px; padding: 0 13px; }.wizard-footer > button:first-child { justify-self: start; }.wizard-footer > button:last-child { justify-self: end; }
.wizard-footer > span { color: var(--faint); font-size: 7.5px; }.wizard-footer button:disabled { opacity: .4; cursor: not-allowed; }
.audit-panel { padding: 20px 22px 12px; }
.audit-list > div { display: grid; min-height: 57px; align-items: center; grid-template-columns: 32px 1.4fr 1fr 1fr 62px; gap: 10px; border-top: 1px solid #edf1ee; }
.audit-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: var(--green); background: var(--green-soft); }
.audit-list > div > span:nth-child(2),.audit-list > div > span:nth-child(4) { display: flex; flex-direction: column; }
.audit-list strong { font-size: 8.5px; }.audit-list small,.audit-list b { margin-top: 2px; color: var(--faint); font-size: 6.8px; font-weight: 500; }.audit-list > div > strong { color: var(--green); }
.audit-list button { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--faint); background: #fff; cursor: pointer; }
.audit-actions { display: flex; gap: 4px; }
.audit-actions button:last-child:hover { color: var(--danger); border-color: #edc7c4; background: var(--danger-soft); }
.edit-booking-context { display: flex; flex-direction: column; padding: 12px 13px; border-radius: 9px; background: var(--canvas); }
.edit-booking-context strong { font-size: 10px; }.edit-booking-context span { margin-top: 3px; color: var(--muted); font-size: 8px; }

/* Admin tables and settings */
.admin-activity-summary,.player-admin-summary { margin-bottom: 15px; }
.admin-table-panel { padding: 18px 20px 12px; }
.compact-search { max-width: 240px; }
.admin-activity-table { min-width: 760px; }.player-admin-table { min-width: 920px; }
.admin-activity-cell { display: flex; align-items: center; gap: 9px; }
.date-mini { display: grid; width: 35px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 7px; color: var(--forest); background: #edf2ef; }
.date-mini b { align-self: end; font-size: 12px; line-height: 1; }.date-mini small { align-self: start; color: var(--green); font-size: 6px; font-weight: 750; }
.admin-activity-cell > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.admin-activity-cell strong { color: var(--ink); font-size: 9px; }.admin-activity-cell small { display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; color: var(--faint); font-size: 6.5px; }
.table-subline { display: block; margin-top: 3px; color: var(--faint); font-size: 6.7px; }
.row-actions { display: flex; justify-content: flex-end; gap: 3px; }
.row-actions button { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #fff; cursor: pointer; }
.row-actions button:disabled, .segmented-control .month-button:disabled, .profile-avatar-wrap button:disabled { cursor: not-allowed; opacity: .42; }
.account-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 99px; font-size: 7px; font-weight: 650; }
.account-status i { width: 5px; height: 5px; border-radius: 50%; }.account-status.active { color: var(--green); background: var(--green-soft); }.account-status.active i { background: var(--green); }.account-status.inactive { color: #7d8885; background: #edf1ef; }.account-status.inactive i { background: #9aa5a1; }
.settings-layout { display: flex; flex-direction: column; gap: 15px; }
.settings-block { padding: 22px; }
.setting-row { display: flex; min-height: 73px; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 2px; border-bottom: 1px solid #edf1ee; }
.setting-row > span:first-child { display: flex; flex-direction: column; }
.setting-row strong { font-size: 10px; }.setting-row small { max-width: 510px; margin-top: 4px; color: var(--faint); font-size: 7.5px; line-height: 1.4; }
.toggle { position: relative; width: 38px; height: 22px; flex: 0 0 auto; border: 0; border-radius: 99px; background: #d8dfdb; cursor: pointer; transition: background .2s; }
.toggle i { position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.14); transition: transform .2s; }.toggle.on { background: var(--green); }.toggle.on i { transform: translateX(16px); }
.setting-inline-fields { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 17px; }
.setting-inline-fields label { display: flex; flex-direction: column; gap: 6px; color: #41504c; font-size: 8px; font-weight: 650; }
.setting-inline-fields input { height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; outline: 0; font-size: 9px; }
.modal-form input[type="file"] { padding: 9px 10px; color: var(--muted); font-size: 8px; }
.settings-save { display: flex; justify-content: flex-end; }.settings-save .primary-button { min-height: 40px; padding: 0 15px; }

/* SC Rheinbach II point-only states */
.goal-card-open .goal-check { color: #fff; background: var(--green); }
.goal-card-open .goal-progress span { background: var(--green); }
.open-status { display: inline-flex; align-items: center; gap: 5px; color: #9a6d1b; font-size: 8.5px; font-weight: 650; }
.points-empty-state, .large-empty-state, .history-empty, .audit-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.points-empty-state { min-height: 108px; padding: 12px; }
.points-empty-state > span, .large-empty-state > span, .history-empty > span, .audit-empty > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: var(--green); background: var(--green-soft); }
.points-empty-state strong, .large-empty-state strong, .history-empty strong, .audit-empty strong { margin-top: 9px; font-size: 10px; }
.points-empty-state p, .large-empty-state p, .history-empty p, .audit-empty p { max-width: 390px; margin: 4px 0 0; color: var(--faint); font-size: 7.5px; line-height: 1.5; }
.two-point-progress { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 7px; }
.two-point-progress .point-slot { height: 6px; border-radius: 99px; background: #e4e9f0; }
.two-point-progress small { grid-column: 1 / -1; color: var(--faint); font-size: 7px; text-align: right; }
.ranking-status { justify-self: center; padding: 5px 7px; border-radius: 99px; color: #99701d; background: var(--gold-soft); font-size: 7px; font-weight: 650; }
.large-empty-state { min-height: 165px; padding: 18px; }
.history-empty { min-height: 245px; border-top: 1px solid #edf1ee; }
.audit-empty { min-height: 145px; border-top: 1px solid #edf1ee; }
.fixed-point-rule { display: grid; max-width: 540px; min-height: 105px; align-items: center; grid-template-columns: auto 1fr auto; gap: 14px; margin: 0 auto; padding: 18px; border: 1px solid #d6dfeb; border-radius: 12px; background: #f7f9fc; }
.fixed-point-rule > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 10px; color: #fff; background: var(--green); }
.fixed-point-rule > div { display: flex; flex-direction: column; }
.fixed-point-rule p { margin: 0; color: var(--faint); font-size: 7.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.fixed-point-rule strong { margin-top: 3px; font-size: 18px; }.fixed-point-rule small { margin-top: 3px; color: var(--muted); font-size: 7.5px; }
.fixed-point-rule > svg { color: var(--faint); }
.donut.donut-zero { background: conic-gradient(#dfe5ec 0 100%); }
.fixed-setting-value { display: inline-flex; min-width: 84px; justify-content: center; padding: 9px 12px; border-radius: 8px; color: var(--forest); background: var(--blue-soft); font-size: 9px; font-weight: 750; }
.active-account, .account-status.active { color: var(--success); background: var(--success-soft); }
.active-account i, .account-status.active i { background: var(--success); }
.registered-button { color: var(--success); border-color: #b9dfcd; background: var(--success-soft); }
.positive-text, .joined-status { color: var(--success); }
.sc-ranking-table { min-width: 690px; }
.sc-player-table { min-width: 820px; }

@media (max-width: 1180px) {
  .login-story { padding-inline: 42px; }
  .login-page { grid-template-columns: minmax(380px, .9fr) minmax(460px, 1.1fr); }
  .content-area { padding-inline: 26px; }
  .goal-card { grid-column: span 12; }
  .stat-card { grid-column: span 4; min-height: 145px; }
  .next-activity-panel, .dashboard-ranking { grid-column: span 7; }
  .latest-points-panel, .participation-panel { grid-column: span 5; }
  .quick-actions { grid-template-columns: repeat(2,1fr); }
  .admin-kpis { grid-template-columns: repeat(2,1fr); }
  .attention-panel,.admin-ranking-panel { grid-column: span 7; }.admin-next-panel,.month-health-panel { grid-column: span 5; }
}

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .login-panel { padding: 38px 28px; }
  .login-mobile-mark { display: block; width: min(100%, 450px); margin-bottom: 65px; }
  .sidebar { width: 242px; transform: translateX(-102%); transition: transform .25s ease; box-shadow: 22px 0 55px rgba(9,29,61,.22); }
  .sidebar-open { transform: translateX(0); }
  .sidebar-close { display: grid; width: 34px; height: 34px; place-items: center; cursor: pointer; }
  .sidebar-scrim { position: fixed; z-index: 25; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: rgba(4,22,19,.47); backdrop-filter: blur(2px); }
  .app-main { margin-left: 0; }
  .menu-button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; color: var(--forest); background: transparent; cursor: pointer; }
  .mobile-brand { display: block; }
  .topbar { padding: 0 24px; }
  .topbar-right { width: auto; }
  .demo-label { display: none; }
  .content-area { padding-inline: 24px; }
  .activity-card-main { grid-template-columns: 65px 1fr 65px 120px 20px; gap: 11px; padding-inline: 14px; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 16px; text-align: left; }
  .profile-avatar-wrap { grid-row: 1 / 4; margin: 0; }
  .profile-card h2 { margin: 0; }
  .profile-card > p { grid-column: 2; }
  .active-account { grid-column: 3; grid-row: 1; margin: 0; }
  .profile-mini-stats, .profile-card .profile-hint { grid-column: 1 / -1; }
  .admin-dashboard-grid > section { grid-column: 1 / -1; }
  .activity-choice-list { grid-template-columns: 1fr; }
  .player-choice-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 720px) {
  .login-mobile-mark { margin-bottom: 50px; }
  .login-panel { align-items: stretch; padding: 28px 22px 50px; }
  .login-card, .login-mobile-mark { width: 100%; }
  .login-heading h2 { font-size: 31px; }
  .topbar { height: 60px; padding: 0 16px; }
  .topbar-right { gap: 8px; }
  .content-area { padding: 24px 16px 100px; }
  .page-heading { min-height: 48px; margin-bottom: 20px; }
  .page-heading h1 { font-size: 26px; }
  .dashboard-grid { gap: 12px; }
  .goal-card { min-height: 178px; padding: 21px 19px; }
  .goal-card-copy h2 { font-size: 20px; }
  .goal-card-copy span:last-child { max-width: 250px; line-height: 1.45; }
  .stat-card { grid-column: span 4; min-height: 133px; padding: 15px 13px; }
  .stat-card strong { font-size: 23px; }
  .stat-card div > span { overflow: hidden; max-width: 100%; text-overflow: ellipsis; }
  .announcement-card { align-items: flex-start; }
  .announcement-card > div { display: block; padding-right: 21px; }
  .announcement-card strong { display: block; margin-bottom: 4px; }
  .next-activity-panel, .latest-points-panel, .dashboard-ranking, .participation-panel { grid-column: 1 / -1; padding-inline: 16px; }
  .next-activity { grid-template-columns: 62px 1fr; gap: 12px; padding: 12px; }
  .date-tile { width: 59px; height: 69px; }
  .activity-reward { display: none; }
  .mobile-nav { position: fixed; z-index: 24; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); display: grid; min-height: 62px; grid-template-columns: repeat(5, 1fr); padding: 7px 5px; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; color: rgba(255,255,255,.54); background: rgba(16,47,99,.96); box-shadow: 0 14px 35px rgba(9,29,61,.3); backdrop-filter: blur(14px); }
  .mobile-nav a { display: flex; min-width: 0; align-items: center; justify-content: center; flex-direction: column; gap: 4px; border-radius: 10px; font-size: 7px; }
  .mobile-nav a.active { color: var(--lime); background: rgba(242,90,108,.11); }
  .mobile-nav span { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
  .activity-summary-strip { grid-template-columns: 1fr; gap: 8px; }
  .activity-summary-strip > div { min-height: 72px; }
  .section-toolbar { align-items: flex-start; flex-direction: column; }
  .filter-chips { width: 100%; overflow-x: auto; }
  .filter-chips button { flex: 1 0 auto; }
  .toolbar-note { display: none; }
  .activity-card-main { min-height: 104px; grid-template-columns: 56px 1fr 21px; gap: 11px; padding: 12px; }
  .activity-card-main .date-tile { width: 54px; height: 65px; }
  .activity-card-reward, .participation-badge { display: none; }
  .activity-card-copy .activity-facts span:nth-child(2) { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .activity-card-detail { padding: 15px; }
  .detail-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
  .ranking-hero { min-height: 190px; grid-template-columns: 1fr 1fr; padding: 22px; }
  .ranking-hero-copy { grid-column: 1 / -1; }
  .ranking-hero-stat { padding-left: 0; border-left: 0; }
  .ranking-table-panel, .history-panel { padding: 17px 14px; }
  .table-topline { align-items: stretch; flex-direction: column; }
  .segmented-control { width: 100%; }
  .segmented-control button { flex: 1; }
  .ranking-table { min-width: 650px; }
  .history-stats { grid-template-columns: 1fr 1fr; }
  .history-total-card { grid-column: 1 / -1; }
  .history-table { min-width: 720px; }
  .month-bars { gap: 7px; padding-inline: 0; }
  .profile-card { display: block; text-align: center; }
  .profile-avatar-wrap { margin: 0 auto; }
  .profile-card h2 { margin-top: 14px; }
  .active-account { margin-top: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
  .password-form { grid-template-columns: 1fr; }
  .heading-action { min-height: 36px; padding: 0 11px; font-size: 8px; }
  .heading-action svg { display: none; }
  .admin-welcome { align-items: flex-start; flex-direction: column; padding: 22px; }
  .admin-welcome > button { width: 100%; min-width: 0; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .quick-actions > a { min-height: 69px; }.quick-actions small { display: none; }
  .admin-kpis { grid-template-columns: 1fr 1fr; }.admin-kpis article { min-height: 82px; padding: 12px; }.admin-kpis article > span { display: none; }
  .attention-panel,.admin-next-panel,.admin-ranking-panel,.month-health-panel { padding-inline: 16px; }
  .admin-activity-facts { grid-template-columns: 1fr; }
  .modal-layer { align-items: end; padding: 0; }.modal-card,.modal-card.modal-wide { width: 100%; max-height: 92svh; border-radius: 18px 18px 0 0; }
  .modal-form-grid { grid-template-columns: 1fr; }.modal-form-grid .form-wide { grid-column: auto; }
  .wizard-steps { padding: 15px 12px; }.wizard-steps > div { justify-content: center; }.wizard-steps > div > strong { display: none; }.wizard-steps > div > i { left: 60%; right: -40%; }
  .wizard-step-content { padding: 22px 15px; }.wizard-step-content > header h2 { font-size: 19px; }
  .activity-choice-list > button { grid-template-columns: 50px 1fr 20px; }.activity-choice-list > button > span:nth-child(3) { display: none; }
  .selection-toolbar { flex-wrap: wrap; }.selection-toolbar .search-field { flex-basis: 100%; }.selection-toolbar > span { margin-left: auto; }
  .player-choice-grid { grid-template-columns: 1fr; max-height: 330px; }
  .reward-fields { grid-template-columns: 1fr; }
  .review-card { grid-template-columns: 1fr; }.review-card > div:nth-child(odd) { border-right: 0; }.review-card > div:nth-child(n+2) { border-top: 1px solid var(--line); }
  .wizard-footer { grid-template-columns: 1fr 1fr; }.wizard-footer > span { display: none; }
  .audit-panel { padding-inline: 14px; }.audit-list > div { grid-template-columns: 32px 1fr auto 25px; }.audit-list > div > span:nth-child(4) { display: none; }.audit-list > div > strong { font-size: 7.5px; }
  .admin-table-panel { padding-inline: 12px; }.admin-table-panel .table-topline { gap: 10px; }.compact-search { max-width: none; }
  .setting-inline-fields { grid-template-columns: 1fr; }.settings-block { padding: 18px 16px; }
}

@media (max-width: 480px) {
  .login-form-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .login-help { line-height: 1.5; }
  .mark-copy strong { font-size: 14px; }
  .stat-card { min-width: 0; }
  .stat-icon { width: 30px; height: 30px; }
  .stat-icon svg { width: 17px; height: 17px; }
  .stat-card p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stat-card div > span { font-size: 7.5px; }
  .ranking-list > div { grid-template-columns: 25px 31px 1fr 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* WordPress integration */
[hidden] { display: none !important; }

.portal-alert { margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; line-height: 1.5; }
.portal-alert-success { color: var(--success); border-color: #bfe1d0; background: var(--success-soft); }
.portal-alert-error { color: var(--danger); border-color: #f1c4c1; background: var(--danger-soft); }
.portal-alert-info { color: var(--blue); border-color: #cad8ee; background: var(--blue-soft); }
.tag-geplant { color: #8a6300; background: var(--gold-soft); }
.tag-abgeschlossen { color: var(--success); background: var(--success-soft); }
.tag-abgesagt { color: var(--danger); background: var(--danger-soft); }

#sr-login-form { display: flex; margin-top: 35px; flex-direction: column; gap: 18px; }
#sr-login-form p { margin: 0; }
#sr-login-form label { display: block; margin-bottom: 8px; color: #33413e; font-size: 12px; font-weight: 650; }
#sr-login-form input[type="text"], #sr-login-form input[type="password"] { width: 100%; height: 52px; padding: 0 15px; border: 1px solid #dce3df; border-radius: 10px; outline: 0; color: var(--ink); background: #fff; }
#sr-login-form input[type="text"]:focus, #sr-login-form input[type="password"]:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(215,47,69,.1); }
#sr-login-form .login-remember label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; }
#sr-login-form input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--green); }
#sr-login-form .login-submit input { width: 100%; min-height: 52px; border: 1px solid var(--forest); border-radius: 9px; color: #fff; background: var(--forest); box-shadow: 0 8px 22px rgba(16,47,99,.15); font-weight: 700; cursor: pointer; }
#sr-login-form .login-submit input:hover { background: var(--forest-2); }
.login-reset { margin: 18px 0 0; text-align: center; font-size: 12px; }
.login-reset a { color: var(--green); font-weight: 650; }

.sidebar-scrim { display: none; }
.modal-layer[hidden] { display: none; }
.modal-card header > button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.modal-card footer { display: flex; justify-content: flex-end; gap: 10px; }

.wizard-radio { position: relative; display: grid; width: 100%; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
.wizard-radio:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 3px rgba(215,47,69,.08); }
.wizard-radio > input { position: absolute; opacity: 0; }
.wizard-radio > span:nth-of-type(2) { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.wizard-radio > span:nth-of-type(2) small { color: var(--muted); }
.wizard-radio > span:last-child { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 11px; font-weight: 700; }

.password-form-visible { display: block; padding: 25px; }
.password-form-visible .form-grid { margin-top: 24px; }
.inline-number { display: flex; align-items: center; gap: 8px; }
.inline-number input { width: 82px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; }
.inline-number span { color: var(--muted); font-size: 12px; }
.generic-page { min-height: 100svh; padding: 60px 24px; background: var(--canvas); }
.generic-content { max-width: 860px; margin: 0 auto; padding: 36px; }
.generic-content h1 { margin-top: 0; }
.activity-card-detail form { margin-top: 18px; }
.activity-card.expanded .card-chevron { transform: rotate(90deg); }
.filter-hidden { display: none !important; }
.mobile-nav { z-index: 40; }

@media (max-width: 760px) {
  .sidebar-scrim.visible { position: fixed; z-index: 29; inset: 0; display: block; border: 0; background: rgba(5,20,42,.54); }
  .wizard-radio { grid-template-columns: auto 1fr; }
  .wizard-radio > span:last-child { grid-column: 2; }
  .password-form-visible { padding: 20px; }
  .modal-card { overflow-y: auto; }
}
