:root {
  --bg: #07070A;
  --bg2: #0C0C10;
  --panel: #111116;
  --panel2: #17171E;
  --panel3: #1E1E27;
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .12);
  --text: #F5F5F7;
  --muted: #9C9CA8;
  --dim: #6B6B78;
  --red: #E11D48;
  --red2: #FF3B5C;
  --red-deep: #7A0C25;
  --red-soft: rgba(225, 29, 72, .14);
  --gold: #F5C451;
  --silver: #C9CDD6;
  --bronze: #D08A55;
  --green: #22C55E;
  --amber: #F59E0B;
  --r: 16px;
  --r-sm: 11px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
  --display: 'Barlow Condensed', 'Oswald', Impact, sans-serif;
  --body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: var(--red2); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: var(--text); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
img { max-width: 100%; display: block; }
.ic { flex: none; }

/* utilities */
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.block { display: block; }
.center { text-align: center; }
.pre { white-space: pre-wrap; word-break: break-word; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.only-mobile { display: none !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform .12s, background .15s, box-shadow .15s, border-color .15s; border: 1px solid transparent; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary { background: linear-gradient(180deg, var(--red2), var(--red)); color: #fff; box-shadow: 0 6px 20px -8px rgba(225, 29, 72, .8), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn.primary:hover { box-shadow: 0 8px 26px -8px rgba(255, 59, 92, .95), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn.ghost { background: rgba(255, 255, 255, .04); border-color: var(--line2); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.btn.danger { color: #ff7b93; }
.btn.lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--muted); transition: background .15s, color .15s; font-size: 22px; }
.icon-btn:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 8px; }
.link { color: var(--red2); font-weight: 600; font-size: 13px; }
.link:hover { text-decoration: underline; }

/* ---------- shell ---------- */
#shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
#side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 20px 14px; background: linear-gradient(180deg, #0D0D12, #09090C); border-right: 1px solid var(--line); overflow-y: auto; z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand b { font-family: var(--display); font-size: 22px; letter-spacing: .06em; font-weight: 800; }
.brand small { display: block; color: var(--dim); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-top: -3px; }
.brand.big b { font-size: 28px; }
#side .brand { padding: 0 6px 6px; }
.team-switch { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 13px; background: var(--panel2); border: 1px solid var(--line); text-align: left; transition: border-color .15s; }
.team-switch:hover { border-color: var(--line2); }
.team-switch b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-switch small { color: var(--muted); font-size: 12px; }
.team-av { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #2A0A13, #4D0C1E); color: #ffd1da; font-family: var(--display); font-weight: 700; font-size: 16px; flex: none; overflow: hidden; border: 1px solid rgba(255, 59, 92, .25); }
.team-av img { width: 100%; height: 100%; object-fit: cover; }
#nav { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
#nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--muted); font-weight: 500; font-size: 14px; transition: background .15s, color .15s; }
#nav a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
#nav a.on { background: linear-gradient(90deg, rgba(225, 29, 72, .2), rgba(225, 29, 72, .04)); color: #fff; }
#nav a.on::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red2); box-shadow: 0 0 14px var(--red2); }
#nav a.on .ic { color: var(--red2); }
.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; }
.me b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { display: block; font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--red2), var(--red-deep)); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .02em; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.sm { width: 30px; height: 30px; font-size: 11px; }
.av.lg { width: 46px; height: 46px; font-size: 15px; }
.av.xl { width: 64px; height: 64px; font-size: 20px; font-family: var(--display); }

#content { min-width: 0; position: relative; overflow-x: clip; }
#content::before { content: ''; position: absolute; top: -240px; right: -120px; width: 640px; height: 520px; background: radial-gradient(closest-side, rgba(225, 29, 72, .16), transparent); pointer-events: none; z-index: 0; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 28px; background: rgba(7, 7, 10, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.role-pill { text-transform: uppercase; font-size: 11px; letter-spacing: .1em; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--red-soft); color: #ff9aae; border: 1px solid rgba(255, 59, 92, .25); }
#main { position: relative; z-index: 1; padding: 26px 28px 60px; max-width: 1320px; }
#main.fade { animation: rise .35s ease both; }
#bottom, #scrim { display: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--red2); font-weight: 700; }
.page-head h1 { font-family: var(--display); font-size: 44px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; font-weight: 800; margin-top: 4px; }
.page-head .sub { color: var(--muted); margin-top: 6px; }
.page-body { display: flex; flex-direction: column; gap: 18px; }

/* cards */
.card { background: linear-gradient(180deg, var(--panel), #0E0E13); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; box-shadow: var(--shadow); }
.card.pad { padding: 22px; }
.card.click { cursor: pointer; transition: border-color .15s, transform .15s; }
.card.click:hover { border-color: rgba(255, 59, 92, .35); transform: translateY(-2px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h3 { font-family: var(--display); text-transform: uppercase; font-size: 21px; letter-spacing: .03em; font-weight: 700; }
.cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cols.wide-left { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
h4.sec { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin: 8px 0 -4px; }
.card h4.sec, .m-body h4.sec { margin: 20px 0 10px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.stat small { display: block; padding-right: 40px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.stat b { display: block; font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1.05; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { font-size: 12px; color: var(--dim); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-ic { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .04); color: var(--muted); }
.stat.hot { border-color: rgba(255, 59, 92, .35); background: radial-gradient(120% 120% at 100% 0%, rgba(225, 29, 72, .28), transparent 60%), linear-gradient(180deg, var(--panel2), var(--panel)); }
.stat.hot .stat-ic { background: var(--red-soft); color: var(--red2); }

/* events */
.ev-list { display: flex; flex-direction: column; }
.ev-row { display: flex; gap: 14px; padding: 12px 6px; border-radius: 12px; cursor: pointer; transition: background .15s; align-items: center; }
.ev-row + .ev-row { border-top: 1px solid var(--line); }
.ev-row:hover { background: rgba(255, 255, 255, .03); }
.ev-row h4 { font-size: 15px; margin: 3px 0 2px; }
.ev-row .ic { vertical-align: -2px; }
.ev-date { width: 52px; height: 56px; flex: none; border-radius: 12px; background: var(--panel3); border: 1px solid var(--line2); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ev-date small { font-size: 10px; letter-spacing: .12em; color: var(--red2); font-weight: 700; }
.ev-date b { font-family: var(--display); font-size: 26px; line-height: 1; }
.kind { display: inline-block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.k-practice { background: rgba(255, 255, 255, .07); color: #d8d8e0; }
.k-meet { background: var(--red-soft); color: #ff8ea3; }
.k-fund { background: rgba(245, 196, 81, .13); color: var(--gold); }
.k-team { background: rgba(34, 197, 94, .12); color: #6ee7a0; }
.k-other { background: rgba(255, 255, 255, .05); color: var(--muted); }

/* fundraiser */
.fund-num { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.fund-num b { font-family: var(--display); font-size: 38px; font-weight: 800; line-height: 1; }
.fund-num span { color: var(--muted); font-size: 13px; }
.fund-num.big b { font-size: 60px; }
.bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-bottom: 10px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red2)); box-shadow: 0 0 16px rgba(255, 59, 92, .6); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.mini-board { display: flex; flex-direction: column; gap: 2px; margin: 8px 0; }
.mb-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; font-size: 14px; }
.mb-row + .mb-row { border-top: 1px solid var(--line); }
.rk { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); font-size: 12px; font-weight: 700; flex: none; }
.rk.r1 { background: var(--gold); color: #2a1d00; }
.rk.r2 { background: var(--silver); color: #1b1d22; }
.rk.r3 { background: var(--bronze); color: #2a1300; }
.fund-hero { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; padding: 26px; background: radial-gradient(90% 140% at 100% 0%, rgba(225, 29, 72, .22), transparent 55%), linear-gradient(180deg, var(--panel2), var(--panel)); }
.fund-hero h2 { font-family: var(--display); font-size: 36px; text-transform: uppercase; margin: 6px 0; }
.fund-hero > .grow { min-width: 260px; }
.fund-actions { display: flex; flex-direction: column; gap: 8px; }
.ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--red2) calc(var(--p) * 1%), rgba(255, 255, 255, .06) 0); position: relative; }
.ring::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: var(--panel); }
.ring b { position: relative; font-family: var(--display); font-size: 34px; font-weight: 800; }
.leader { display: flex; flex-direction: column; }
.ld-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; }
.ld-row + .ld-row { border-top: 1px solid var(--line); }
.ld-row b { font-family: var(--display); font-size: 20px; }
.ld-row.top b { color: #fff; }
.sales { display: flex; flex-direction: column; max-height: 520px; overflow: auto; }
.sale { display: flex; align-items: center; gap: 10px; padding: 10px 2px; }
.sale + .sale { border-top: 1px solid var(--line); }
.sale .amt { color: #6ee7a0; font-family: var(--display); font-size: 19px; }

/* posts */
.post-mini { padding: 10px 0; }
.post-mini + .post-mini { border-top: 1px solid var(--line); }
.post-mini p { font-size: 14px; margin-bottom: 4px; }
.post-mini small { color: var(--dim); font-size: 12px; }
.pin { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 700; }
.composer { display: flex; gap: 12px; align-items: flex-start; }
.composer textarea { flex: 1; min-height: 44px; resize: vertical; background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; padding: 11px 13px; outline: none; }
.composer textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.posts { display: flex; flex-direction: column; gap: 10px; }
.post { display: flex; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.post.pinned { border-color: rgba(245, 196, 81, .3); background: linear-gradient(180deg, rgba(245, 196, 81, .06), var(--panel)); }
.post p { margin-top: 6px; }

/* roster */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line2); color: var(--muted); min-width: 240px; }
.search input { background: none; border: 0; outline: none; flex: 1; min-width: 0; }
.search:focus-within { border-color: var(--red); }
.chips-scroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.fchip { height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; transition: all .15s; }
.fchip:hover { color: var(--text); }
.fchip.on { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 4px 16px -6px var(--red); }
.ath-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.ath { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); background: linear-gradient(180deg, var(--panel), #0E0E13); border: 1px solid var(--line); text-align: left; transition: border-color .15s, transform .15s; }
.ath:hover { border-color: rgba(255, 59, 92, .35); transform: translateY(-2px); }
.ath b { display: block; font-size: 15px; margin-bottom: 4px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 7px; background: var(--red-soft); color: #ffb3c1; }
.chip.dim { background: rgba(255, 255, 255, .06); color: var(--muted); }
.chip.me { background: var(--red); color: #fff; }
.chip .x { color: inherit; opacity: .7; font-size: 14px; line-height: 1; }
.status { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.s-active { background: rgba(34, 197, 94, .12); color: #6ee7a0; }
.s-injured { background: rgba(245, 158, 11, .14); color: #fbbf24; }
.s-inactive { background: rgba(255, 255, 255, .06); color: var(--dim); }
.pb-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pb { padding: 12px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); text-align: center; }
.pb small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pb b { display: block; font-family: var(--display); font-size: 26px; }
.pb.hot { background: linear-gradient(180deg, rgba(225, 29, 72, .25), var(--panel2)); border-color: rgba(255, 59, 92, .35); }
.kv { display: flex; flex-direction: column; gap: 3px; }

/* families */
.fam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.fam h4 { font-size: 16px; }
.fam .kids { margin: 14px 0 10px; }
.contact { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.bal { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 7px; background: rgba(34, 197, 94, .12); color: #6ee7a0; white-space: nowrap; }
.bal.due { background: var(--red-soft); color: #ff8ea3; }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.pbv { color: var(--gold); font-weight: 700; }
.scoresheet input.sc { width: 74px; height: 36px; text-align: right; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line2); padding: 0 9px; outline: none; font-variant-numeric: tabular-nums; font-weight: 600; }
.scoresheet input.sc:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.scoresheet input.sc.bad { border-color: var(--amber); }
.scoresheet .aa { font-family: var(--display); font-size: 19px; }
.sel { height: 40px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line2); padding: 0 12px; max-width: 280px; outline: none; }
.sel.sm { height: 32px; border-radius: 8px; font-size: 13px; padding: 0 8px; max-width: 150px; }
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: end; margin: 4px 0 14px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.pod b { font-size: 13px; }
.pod span { font-family: var(--display); font-size: 20px; font-weight: 700; }
.pod .step { width: 100%; border-radius: 10px 10px 4px 4px; display: grid; place-items: center; font-family: var(--display); font-size: 26px; font-weight: 800; color: rgba(0, 0, 0, .65); }
.pod.p1 .step { height: 80px; background: linear-gradient(180deg, #ffe08a, var(--gold)); }
.pod.p2 .step { height: 58px; background: linear-gradient(180deg, #eef0f4, var(--silver)); }
.pod.p3 .step { height: 44px; background: linear-gradient(180deg, #f0b083, var(--bronze)); }
.pod.p1 .av { box-shadow: 0 0 0 3px var(--gold); }
.ev-win { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ev-win > div { padding: 10px 12px; border-radius: 11px; background: var(--panel2); }
.ev-win small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ev-win b { display: block; font-size: 14px; }
.ev-win span { font-family: var(--display); color: var(--gold); font-size: 17px; }

/* calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h3 { font-family: var(--display); text-transform: uppercase; font-size: 24px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 4px 6px; font-weight: 600; }
.cal-cell { min-height: 104px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-cell.off { opacity: .35; }
.cal-cell.today { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.cal-cell.today .dn { background: var(--red); color: #fff; }
.dn { font-size: 12px; font-weight: 700; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; }
.cal-ev { text-align: left; font-size: 11px; font-weight: 600; padding: 3px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* jobs */
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.job-grid.past { opacity: .55; }
.job { display: flex; flex-direction: column; gap: 12px; }
.job h4 { font-size: 16px; }
.job-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red2); flex: none; }
.slots .bar { margin: 6px 0 0; height: 7px; }
.ok { color: #6ee7a0; font-weight: 700; }
.hotx { color: #ff8ea3; font-weight: 700; }

/* billing */
.status-btn { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding: 5px 10px; border-radius: 7px; }
.status-btn.paid { background: rgba(34, 197, 94, .12); color: #6ee7a0; }
.status-btn.open { background: rgba(255, 255, 255, .07); color: #d8d8e0; }
.status-btn.od { background: var(--red-soft); color: #ff8ea3; }
button.status-btn:hover { filter: brightness(1.25); }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line2); gap: 2px; }
.seg button { height: 34px; padding: 0 16px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--panel3); color: #fff; box-shadow: inset 0 0 0 1px var(--line2); }
.seg.sm button { height: 30px; padding: 0 12px; }

/* tvs */
.howto { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr; gap: 12px 14px; align-items: start; }
.step-n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-size: 17px; }
.tv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.tv { display: flex; flex-direction: column; gap: 12px; }
.tv-prev { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line2); }
.tv-prev iframe { position: absolute; top: 0; left: 0; width: 400%; height: 400%; transform: scale(.25); transform-origin: 0 0; border: 0; pointer-events: none; }
.live { position: absolute; left: 8px; top: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: var(--muted); }
.live.on { color: #6ee7a0; }
.tv-url { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--bg2); border: 1px dashed var(--line2); color: var(--muted); font-size: 12.5px; text-align: left; font-family: ui-monospace, Menlo, monospace; }
.tv-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-url:hover { border-color: var(--red); color: var(--text); }

/* settings */
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.code { padding: 16px; border-radius: 14px; text-align: left; background: linear-gradient(135deg, rgba(225, 29, 72, .22), rgba(225, 29, 72, .04)); border: 1px solid rgba(255, 59, 92, .3); }
.code.fam { background: linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .01)); border-color: var(--line2); }
.code small { font-size: 10.5px; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.code b { display: block; font-family: var(--display); font-size: 36px; letter-spacing: .12em; }
.code span { display: flex; gap: 5px; align-items: center; font-size: 12px; color: var(--muted); }
.members { display: flex; flex-direction: column; }
.member { display: flex; align-items: center; gap: 10px; padding: 10px 2px; flex-wrap: wrap; }
.member + .member { border-top: 1px solid var(--line); }

/* empty / loading */
.empty { text-align: center; padding: 34px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--red-soft); color: var(--red2); margin-bottom: 4px; }
.empty h4 { font-size: 17px; }
.empty p { color: var(--muted); max-width: 360px; font-size: 14px; }
.empty .btn { margin-top: 8px; }
.loading { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .08); border-top-color: var(--red2); animation: spin .8s linear infinite; }

/* forms / modal */
#modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .18s; }
#modal.in { opacity: 1; }
.modal-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: linear-gradient(180deg, #16161D, #101015); border: 1px solid var(--line2); border-radius: 20px; padding: 22px; box-shadow: 0 30px 80px -20px #000, 0 0 0 1px rgba(255, 59, 92, .06); transform: translateY(10px) scale(.98); transition: transform .2s; }
.modal-card.wide { width: min(760px, 100%); }
#modal.in .modal-card { transform: none; }
.m-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.m-head h3 { font-family: var(--display); text-transform: uppercase; font-size: 26px; font-weight: 800; letter-spacing: .02em; }
.m-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.m-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.m-err { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--red-soft); color: #ffb3c1; font-size: 14px; border: 1px solid rgba(255, 59, 92, .3); }
.m-ok { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(34, 197, 94, .1); color: #86efac; font-size: 14px; border: 1px solid rgba(34, 197, 94, .25); }
.grid-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-fields > * { grid-column: 1 / -1; }
.grid-fields > .half { grid-column: auto; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.field small { color: var(--dim); font-size: 12px; }
.field input, .field select, .field textarea { width: 100%; background: var(--bg2); border: 1px solid var(--line2); border-radius: 11px; padding: 11px 12px; outline: none; transition: border-color .15s, box-shadow .15s; min-height: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.field textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 4px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.mform { display: flex; flex-direction: column; gap: 12px; }
.mform > .m-body { margin: 0; }
.m-body.list { display: flex; flex-direction: column; gap: 6px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); text-align: left; }
.list-row:hover { background: rgba(255, 255, 255, .04); }
.list-row.on { border-color: rgba(255, 59, 92, .45); background: var(--red-soft); }
.list-row b { display: block; }
.list-row small { color: var(--muted); text-transform: capitalize; }
.auth .seg { width: 100%; margin-bottom: 16px; }
.auth .seg button { flex: 1; }
.auth .link { align-self: center; margin-top: 4px; }

/* toast */
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px; background: #1B1B23; border: 1px solid var(--line2); box-shadow: 0 16px 40px -10px #000; font-size: 14px; font-weight: 500; opacity: 0; transform: translateY(10px); transition: all .25s; }
.toast.in { opacity: 1; transform: none; }
.toast.ok .ic { color: #6ee7a0; }
.toast.err { border-color: rgba(255, 59, 92, .4); }
.toast.err .ic { color: var(--red2); }

/* ---------- landing / onboarding ---------- */
.landing, .onboard { position: relative; min-height: 100vh; overflow: hidden; }
.glow { position: absolute; width: 900px; height: 700px; top: -300px; right: -250px; background: radial-gradient(closest-side, rgba(225, 29, 72, .35), transparent); pointer-events: none; }
.glow.two { top: auto; bottom: -400px; left: -300px; right: auto; background: radial-gradient(closest-side, rgba(122, 12, 37, .45), transparent); }
.land-nav { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(16px, 5vw, 64px); }
.hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 50px clamp(16px, 5vw, 64px) 70px; max-width: 1320px; margin: 0 auto; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: #ff9aae; padding: 7px 12px; border-radius: 99px; background: var(--red-soft); border: 1px solid rgba(255, 59, 92, .3); }
.hero h1 { font-family: var(--display); font-size: clamp(52px, 7.5vw, 104px); line-height: .92; text-transform: uppercase; font-weight: 800; margin: 20px 0 18px; letter-spacing: -.005em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--red2), #ff8aa0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 18px; max-width: 520px; margin-bottom: 28px; }
.mock { border-radius: 20px; background: linear-gradient(180deg, #15151C, #0D0D12); border: 1px solid var(--line2); box-shadow: 0 40px 100px -30px rgba(225, 29, 72, .45), 0 0 0 1px rgba(255, 59, 92, .08); transform: perspective(1400px) rotateY(-9deg) rotateX(4deg); overflow: hidden; }
.mock-top { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-top span { width: 10px; height: 10px; border-radius: 50%; background: #2a2a33; }
.mock-top span:first-child { background: var(--red); }
.mock-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; }
.mock-stat { padding: 12px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.mock-stat small { font-size: 10px; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.mock-stat b { display: block; font-family: var(--display); font-size: 32px; font-weight: 800; }
.mock-stat.red { background: linear-gradient(180deg, rgba(225, 29, 72, .35), var(--panel2)); border-color: rgba(255, 59, 92, .4); }
.mock-board { grid-column: 1 / -1; padding: 14px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.mb-title { font-family: var(--display); font-size: 15px; letter-spacing: .08em; color: var(--red2); font-weight: 700; margin-bottom: 6px; }
.mock-board .mb-row b { font-family: var(--display); font-size: 18px; }
.mock-board .lv { font-size: 11px; color: var(--muted); font-weight: 700; }
.mock-board .mb-row:nth-child(2) .rk { background: var(--gold); color: #2a1d00; }
.mock-board .mb-row:nth-child(3) .rk { background: var(--silver); color: #1b1d22; }
.mock-board .mb-row:nth-child(4) .rk { background: var(--bronze); color: #2a1300; }
.feat-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0 clamp(16px, 5vw, 64px) 60px; max-width: 1320px; margin: 0 auto; }
.feat { padding: 22px; border-radius: var(--r); background: linear-gradient(180deg, var(--panel), #0D0D12); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.feat:hover { border-color: rgba(255, 59, 92, .35); transform: translateY(-3px); }
.feat .ic { color: var(--red2); }
.feat h3 { font-family: var(--display); text-transform: uppercase; font-size: 22px; margin: 12px 0 6px; letter-spacing: .02em; }
.feat p { color: var(--muted); font-size: 14px; }
.land-foot { text-align: center; color: var(--dim); font-size: 13px; padding: 24px 16px 40px; border-top: 1px solid var(--line); }
.onboard { display: grid; place-items: center; padding: 16px; }
.onboard-card { position: relative; width: min(620px, 100%); padding: 36px; border-radius: 24px; background: linear-gradient(180deg, #15151C, #0E0E13); border: 1px solid var(--line2); box-shadow: 0 40px 100px -30px rgba(225, 29, 72, .35); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.onboard-card h1 { font-family: var(--display); text-transform: uppercase; font-size: 44px; margin-top: 12px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin: 14px 0 6px; }
.choice { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 16px; border-radius: 16px; background: var(--panel2); border: 1px solid var(--line2); transition: all .15s; }
.choice .ic { color: var(--red2); }
.choice b { font-family: var(--display); text-transform: uppercase; font-size: 22px; }
.choice small { color: var(--muted); font-size: 13px; }
.choice:hover { border-color: var(--red); background: linear-gradient(180deg, rgba(225, 29, 72, .15), var(--panel2)); transform: translateY(-2px); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols, .cols.wide-left { grid-template-columns: minmax(0, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .howto { grid-template-columns: auto 1fr; }
}
@media (max-width: 860px) {
  .only-mobile { display: inline-flex !important; }
  #shell { grid-template-columns: 1fr; }
  #side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 20px 0 60px #000; }
  #shell.open #side { transform: none; }
  #scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .2s; }
  #shell.open #scrim { opacity: 1; pointer-events: auto; }
  .topbar { padding: 0 12px; }
  .topbar .brand b { font-size: 19px; }
  #main { padding: 18px 16px 100px; }
  .page-head h1 { font-size: 36px; }
  #bottom { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(10, 10, 14, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  #bottom a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--dim); font-size: 10.5px; font-weight: 600; }
  #bottom a.on { color: #fff; }
  #bottom a.on .ic { color: var(--red2); filter: drop-shadow(0 0 8px rgba(255, 59, 92, .7)); }
  .hero { grid-template-columns: 1fr; padding-top: 24px; gap: 30px; }
  .mock { transform: none; }
  .search { min-width: 0; flex: 1; }
  .pb-grid { grid-template-columns: repeat(3, 1fr); }
  .cal-cell { min-height: 64px; padding: 3px; }
  .cal-ev { font-size: 0; height: 6px; padding: 0; }
  .fund-hero .ring { display: none; }
  .fund-num.big b { font-size: 46px; }
  .composer { flex-wrap: wrap; }
  .composer .av { display: none; }
  .composer .btn { width: 100%; }
}
@media (max-width: 560px) {
  .stats, .stats.three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .stats.three .stat:last-child { grid-column: 1 / -1; }
  .stat b { font-size: 30px; }
  .feat-grid { grid-template-columns: 1fr; }
  .choice-grid, .codes { grid-template-columns: 1fr; }
  .grid-fields { grid-template-columns: 1fr; }
  .grid-fields > .half { grid-column: 1 / -1; }
  .page-head { align-items: flex-start; }
  .page-head > .row { width: 100%; }
  .page-head .sel { flex: 1; max-width: none; }
  .onboard-card { padding: 26px 18px; }
  .land-nav .btn.ghost { display: none; }
  .tv-grid { grid-template-columns: 1fr; }
  .ath-grid, .fam-grid, .job-grid { grid-template-columns: 1fr; }
  .modal-card { padding: 18px; border-radius: 18px; }
}

.import-help { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); margin-bottom: 14px; }
.import-help code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: #ffb3c1; }
#impText { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
