/* RideRoster — app styles */
:root {
  --bg: #f3f5fa; --card: #fff; --ink: #0d1530; --ink2: #44506a; --muted: #8a94ab; --line: #e5e9f2; --line2: #eef1f7;
  --brand: #2f5bff; --brand-d: #1d3fd6; --brand-l: #eaf0ff; --teal: #14c9a4; --accent: #ffb020;
  --danger: #ef4444; --danger-l: #fff1f1; --ok: #12a464; --ok-l: #e8f8f0; --warn: #f59e0b; --warn-l: #fff7e6;
  --side: #0b1533; --side2: #13204a;
  --r: 14px; --r-sm: 10px; --sh: 0 1px 2px rgba(13, 21, 48, .05), 0 4px 16px rgba(13, 21, 48, .06); --sh-lg: 0 12px 40px rgba(13, 21, 48, .18);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tb-h: 64px; --tab-h: 0px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; }
button, input, select, textarea { font: inherit; color: inherit; }
small { font-size: 12px; }
.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }
.muted { color: var(--muted); }
.sm-txt { font-size: 12.5px; }
.txt-danger { color: var(--danger); }
.spacer { flex: 1; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
#app { display: grid; grid-template-columns: 256px minmax(0, 1fr); height: 100vh; height: 100dvh; }
#sidebar { background: radial-gradient(120% 60% at 0% 0%, #1b2e6e 0%, transparent 60%), linear-gradient(180deg, var(--side) 0%, #0a1129 100%); color: #c9d3ee; display: flex; flex-direction: column; padding: 18px 14px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 22px; color: #fff; }
.brand-text b { display: block; font-size: 20px; letter-spacing: -0.03em; font-weight: 800; }
.brand-text b span, .lc-brand b span { color: var(--teal); }
.brand-text small { color: #8d9cc6; font-size: 11.5px; }
.logo-mark { display: block; filter: drop-shadow(0 4px 10px rgba(47, 91, 255, .35)); }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #6f7fae; padding: 6px 12px 8px; font-weight: 700; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; color: #c3cdea; font-weight: 600; margin-bottom: 2px; position: relative; transition: background .15s, color .15s; min-height: 44px; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(47, 91, 255, .9), rgba(47, 91, 255, .55)); color: #fff; box-shadow: 0 6px 18px rgba(47, 91, 255, .35); }
.nav-item .ico { width: 20px; height: 20px; opacity: .9; }
.nav-item.hot:not(.active) { color: #fff; }
.live-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(20, 201, 164, .7); animation: livep 2s infinite; }
@keyframes livep { 0% { box-shadow: 0 0 0 0 rgba(20, 201, 164, .6); } 70% { box-shadow: 0 0 0 8px rgba(20, 201, 164, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 201, 164, 0); } }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.org-card { display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; padding: 10px; }
.org-card b { display: block; color: #fff; font-size: 12.5px; line-height: 1.25; }
.org-card small { color: #8d9cc6; font-size: 11px; }
.org-badge { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #c8102e, #8f0b20); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 13px; flex: none; }
.side-reset { display: flex; align-items: center; gap: 8px; justify-content: center; background: transparent; border: 1px dashed rgba(255, 255, 255, .18); color: #a9b5d8; border-radius: 10px; padding: 9px; cursor: pointer; min-height: 40px; }
.side-reset:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }

#main { display: flex; flex-direction: column; min-width: 0; height: 100vh; height: 100dvh; }
#topbar { height: var(--tb-h); flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 28px; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); z-index: 500; }
.tb-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tb-logo { display: none; }
.tb-title { min-width: 0; }
.tb-title small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-title h1 { font-size: 19px; font-weight: 780; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-right { display: flex; align-items: center; gap: 12px; flex: none; }
.role-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: #eef1f8; border-radius: 999px; padding: 4px; border: 1px solid var(--line); }
.role-switch button { position: relative; z-index: 1; border: 0; background: transparent; padding: 7px 16px; font-weight: 700; font-size: 13px; color: var(--ink2); cursor: pointer; border-radius: 999px; min-height: 34px; transition: color .2s; }
.role-switch button.on { color: #fff; }
.role-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: linear-gradient(135deg, var(--brand), #4f7bff); box-shadow: 0 4px 12px rgba(47, 91, 255, .35); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), background .3s; }
.role-switch.parent .role-pill { transform: translateX(100%); background: linear-gradient(135deg, #0fb891, var(--teal)); box-shadow: 0 4px 12px rgba(20, 201, 164, .35); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #1d3a8a, var(--brand)); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 13px; cursor: pointer; flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.avatar.lg { width: 52px; height: 52px; font-size: 17px; }
#view { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; outline: none; position: relative; }
#view.map-view { overflow: hidden; }
.page { padding: 26px 28px 48px; max-width: 1480px; margin: 0 auto; }
#tabbar { display: none; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 11px; padding: 0 16px; min-height: 42px; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: transform .08s, box-shadow .15s, background .15s; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #3d67ff, var(--brand)); color: #fff; box-shadow: 0 4px 14px rgba(47, 91, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn.primary:hover { background: var(--brand-d); }
.btn.primary:disabled { background: #b8c3df; box-shadow: none; cursor: not-allowed; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: #cdd5e6; background: #fafbff; }
.btn.glass { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; backdrop-filter: blur(6px); }
.btn.glass:hover { background: rgba(255, 255, 255, .26); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger-ghost { background: transparent; color: var(--danger); border-color: #fbd0d0; }
.btn.sms { background: #0f9d6c; color: #fff; box-shadow: 0 4px 12px rgba(15, 157, 108, .25); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.btn.xs { min-height: 32px; padding: 0 10px; font-size: 12px; border-radius: 9px; gap: 5px; }
.btn.xs .ico, .btn.sm .ico { width: 15px; height: 15px; }
.btn.lg { min-height: 50px; padding: 0 22px; font-size: 15px; border-radius: 13px; }
.btn.full { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink2); flex: none; }
.icon-btn:hover { color: var(--brand); border-color: #c9d3ee; }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 8px; }
.icon-btn.sm .ico { width: 15px; height: 15px; }
.link { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 13px; }
.link .ico { width: 15px; height: 15px; }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; min-height: 44px; border: 1px solid #d9deea; border-radius: 11px; padding: 10px 12px; background: #fff; outline: none; transition: border .15s, box-shadow .15s; font-size: 14px; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2344506a'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 20px; cursor: pointer; text-overflow: ellipsis; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47, 91, 255, .12); }
textarea { resize: vertical; }
.lbl { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink2); margin-bottom: 6px; }
.help { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; gap: 5px; align-items: center; }
.help .ico { width: 14px; height: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px 14px; }
.field { grid-column: span 12; min-width: 0; }
.field.half { grid-column: span 6; }
.field.third { grid-column: span 3; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .slider { width: 44px; height: 26px; background: #d5dbe8; border-radius: 999px; position: relative; transition: background .2s; flex: none; }
.switch .slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .22s cubic-bezier(.3, 1.4, .5, 1); }
.switch input:checked + .slider { background: var(--ok); }
.switch.red input:checked + .slider { background: var(--danger); }
.switch input:checked + .slider::after { transform: translateX(18px); }
.switch input:disabled + .slider { opacity: .45; }
.switch input:focus-visible + .slider { box-shadow: 0 0 0 4px rgba(47, 91, 255, .2); }
.switch-label { font-weight: 600; font-size: 13px; color: var(--ink2); }
.switch.sm .slider { width: 40px; height: 24px; } .switch.sm .slider::after { width: 18px; height: 18px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 36px; height: 36px; border-radius: 11px; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); transition: transform .15s; }
.swatch input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); transform: scale(1.05); }
.check-inline { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.check-inline input { width: 18px; height: 18px; accent-color: var(--brand); }

/* ---------- toolbar / segs ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar select { width: auto; min-width: 180px; max-width: 100%; }
.tb-search { position: relative; flex: 1 1 280px; max-width: 420px; min-width: 0; }
.tb-search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.tb-search input { padding-left: 38px; }
.seg { display: inline-flex; background: #e9edf5; border-radius: 11px; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: transparent; border-radius: 9px; padding: 0 13px; min-height: 38px; font-weight: 700; color: var(--ink2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; }
.seg button .ico { width: 16px; height: 16px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(13, 21, 48, .12); }
.seg.sm button { min-height: 32px; font-size: 12px; padding: 0 10px; }
.result-meta { color: var(--ink2); font-size: 13px; margin: -4px 0 10px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 12px 14px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; min-height: 44px; }
.tabs button.on { color: var(--ink); border-color: var(--brand); }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); border: 1px solid rgba(13, 21, 48, .04); padding: 18px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head.pad { padding: 16px 18px 4px; }
.card-head h3 { font-size: 16px; font-weight: 760; display: flex; align-items: center; gap: 8px; }
.count-pill { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 8px; border-radius: 999px; background: #eef1f8; color: var(--ink2); font-size: 12px; font-weight: 800; }
.count-pill.danger { background: var(--danger-l); color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.grid-2.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 750; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge .ico { width: 13px; height: 13px; }
.badge.app { background: var(--brand-l); color: var(--brand-d); }
.badge.sms { background: #e6f7ef; color: #0b7d55; }
.badge.ok { background: var(--ok-l); color: #0b7d55; }
.badge.muted { background: #f0f2f7; color: var(--muted); }
.badge.xs { font-size: 10.5px; padding: 1px 6px; }
.tag { display: inline-flex; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .2); color: inherit; }
.team-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; color: var(--ink); background: color-mix(in srgb, var(--tc) 11%, #fff); border: 1px solid color-mix(in srgb, var(--tc) 22%, #fff); padding: 3px 10px 3px 8px; border-radius: 999px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.team-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--tc); flex: none; }
.team-chip.sm { font-size: 11.5px; padding: 2px 8px 2px 6px; }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--ac); color: #fff; display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 800; flex: none; box-shadow: 0 0 0 2px #fff, 0 2px 6px color-mix(in srgb, var(--ac) 40%, transparent); position: relative; letter-spacing: .02em; }
.av.xs { width: 26px; height: 26px; font-size: 10px; }
.av.lg { width: 46px; height: 46px; font-size: 15px; }
.av.pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ac); animation: ring 1.8s infinite; }
@keyframes ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
.status { display: inline-flex; font-size: 11.5px; font-weight: 750; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st-needs { background: var(--danger-l); color: #c62828; }
.st-claimed { background: var(--warn-l); color: #b45309; }
.st-confirmed { background: var(--brand-l); color: var(--brand-d); }
.st-picked { background: #f1eaff; color: #6d28d9; }
.st-dropped { background: var(--ok-l); color: #0b7d55; }
.pulse-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: pdot 1.6s infinite; flex: none; }
@keyframes pdot { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); } 70% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.note-tag { display: inline-block; font-size: 11.5px; font-weight: 650; color: #92400e; background: #fff6e0; border-radius: 7px; padding: 2px 8px; }
.note-tag.xs { font-size: 10.5px; margin-top: 3px; }
.empty { text-align: center; padding: 34px 16px; color: var(--ink2); }
.empty h3 { font-size: 16px; margin-bottom: 4px; }
.empty p { margin: 0 0 12px; color: var(--muted); }
.empty.sm { padding: 18px 10px; }
.empty-art { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-l); color: var(--brand); margin: 0 auto 12px; }
.empty-art .ico { width: 26px; height: 26px; }
.info-banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: linear-gradient(90deg, #e9f9f2, #f3fbff); border: 1px solid #cdeedf; border-radius: 12px; margin-bottom: 14px; color: #165c45; font-size: 13px; }
.info-banner .ico { color: #0f9d6c; margin-top: 1px; }
.info-banner.sm { padding: 9px 11px; font-size: 12.5px; background: var(--warn-l); border-color: #fde3b0; color: #7a4b04; }
.info-banner.sm .ico { color: var(--warn); }

/* coverage bar */
.cov { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cov-bar { flex: 1; height: 8px; background: #eef1f7; border-radius: 99px; overflow: hidden; min-width: 50px; }
.cov-bar span { display: block; height: 100%; border-radius: 99px; background: var(--ok); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.cov.mid .cov-bar span { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.cov.low .cov-bar span { background: linear-gradient(90deg, #ef4444, #f97316); }
.cov-txt { font-size: 12px; color: var(--ink2); white-space: nowrap; }
.cov-txt b { color: var(--ink); font-size: 13px; }
.cov.lg .cov-bar { height: 10px; }

/* ---------- dashboard ---------- */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: center; padding: 30px 32px; border-radius: 20px; margin-bottom: 18px; color: #fff;
  background: radial-gradient(90% 140% at 100% 0%, rgba(20, 201, 164, .55) 0%, transparent 55%), radial-gradient(80% 120% at 0% 100%, rgba(255, 176, 32, .25) 0%, transparent 50%), linear-gradient(120deg, #13235c 0%, #2346d8 60%, #2f5bff 100%); box-shadow: 0 18px 50px rgba(35, 70, 216, .25); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='240' viewBox='0 0 520 240'%3E%3Cpath d='M-10 200 C 80 120, 150 210, 240 130 S 400 60, 540 110' stroke='white' stroke-opacity='.13' stroke-width='3' fill='none' stroke-dasharray='2 10' stroke-linecap='round'/%3E%3Cpath d='M-10 60 C 120 20, 200 120, 330 70 S 470 10, 540 40' stroke='white' stroke-opacity='.09' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-size: cover; pointer-events: none; }
.hero > * { position: relative; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .78; margin-bottom: 10px; }
.hero h2 { font-size: 30px; line-height: 1.15; font-weight: 800; max-width: 640px; }
.hero h2 span { display: block; font-size: 20px; font-weight: 600; opacity: .88; margin-top: 8px; letter-spacing: -0.01em; }
.hero-cta { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero-cta .btn.primary { background: #fff; color: var(--brand-d); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.hero-next { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; padding: 16px 18px; color: #fff; backdrop-filter: blur(10px); display: block; transition: transform .15s, background .15s; }
.hero-next:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .18); }
.hn-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hn-top .team-chip { background: rgba(255, 255, 255, .92); border: 0; }
.hn-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; opacity: .8; }
.hn-title { font-size: 19px; font-weight: 800; margin: 8px 0 6px; letter-spacing: -0.02em; }
.hn-meta { display: flex; gap: 6px; align-items: center; font-size: 13px; opacity: .9; margin-top: 2px; }
.hn-meta .ico { width: 15px; height: 15px; }
.hn-ring { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18); }
.hn-ring b { display: block; font-size: 17px; } .hn-ring small { opacity: .8; }
.ring { width: 60px; height: 60px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-width: 7; }
.ring-bg { stroke: rgba(255, 255, 255, .22); }
.ring-fg { stroke: #fff; stroke-linecap: round; transition: stroke-dashoffset 1s; }
.ring text { transform: rotate(90deg); transform-origin: 32px 32px; fill: #fff; font-size: 14px; font-weight: 800; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh); position: relative; overflow: hidden; border: 1px solid rgba(13, 21, 48, .04); }
.kpi-ic { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; }
.kpi-ic .ico { width: 19px; height: 19px; }
.tone-good .kpi-ic { background: var(--ok-l); color: var(--ok); }
.tone-warn .kpi-ic { background: var(--warn-l); color: var(--warn); }
.tone-danger .kpi-ic { background: var(--danger-l); color: var(--danger); }
.tone-brand .kpi-ic { background: var(--brand-l); color: var(--brand); }
.kpi-label { font-size: 12.5px; font-weight: 700; color: var(--ink2); padding-right: 44px; }
.kpi-val { font-size: 32px; font-weight: 820; letter-spacing: -0.03em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12px; color: var(--muted); }
.ev-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ev-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 190px auto; gap: 14px; align-items: center; padding: 10px 12px 10px 10px; border-radius: 13px; border: 1px solid var(--line2); background: #fff; cursor: pointer; position: relative; transition: border .15s, box-shadow .15s; }
.ev-row::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--tc); }
.ev-row:hover { border-color: #d6ddee; box-shadow: 0 4px 14px rgba(13, 21, 48, .06); }
.ev-row.urgent { background: linear-gradient(90deg, #fff7f7, #fff 40%); border-color: #fde0e0; }
.dblock { width: 52px; text-align: center; border-radius: 11px; background: color-mix(in srgb, var(--tc, var(--brand)) 9%, #fff); padding: 5px 0; flex: none; }
.dblock small { display: block; font-size: 10.5px; text-transform: uppercase; font-weight: 800; color: var(--ink2); letter-spacing: .05em; }
.dblock b { display: block; font-size: 20px; line-height: 1.1; font-weight: 820; color: var(--ink); }
.ev-main { min-width: 0; }
.ev-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ev-type { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; color: var(--muted); }
.ev-type.t-game { color: #b45309; } .ev-type.t-tournament { color: #7c3aed; }
.urgent-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: var(--danger); }
.urgent-tag .ico { width: 13px; height: 13px; }
.ev-title { font-weight: 760; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink2); margin-top: 3px; flex-wrap: wrap; min-width: 0; }
.ev-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ev-meta .ico { width: 14px; height: 14px; color: var(--muted); }
.ev-actions { display: flex; gap: 6px; }
.urgent-card .card-head h3 .pulse-dot { margin-right: 2px; }
.urgent-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.u-row { display: flex; align-items: center; gap: 11px; padding: 9px 4px; border-bottom: 1px solid var(--line2); }
.u-row:last-child { border: 0; }
.u-main { flex: 1; min-width: 0; }
.u-main b { display: block; font-size: 13.5px; }
.u-main small { display: block; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-main small.muted { color: var(--muted); }
.more-note { display: block; text-align: center; font-size: 12.5px; color: var(--muted); padding: 8px; }
.leader { grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.leader li { display: grid; grid-template-columns: 26px 36px minmax(0, 1fr) minmax(40px, 120px) 74px; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line2); }
.leader li:last-child { border: 0; }
.rank { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #f0f2f7; color: var(--ink2); }
.rank.r1 { background: linear-gradient(135deg, #ffd34d, #f5a700); color: #5a3a00; }
.rank.r2 { background: linear-gradient(135deg, #e5e9f2, #b9c2d3); color: #374151; }
.rank.r3 { background: linear-gradient(135deg, #f3c5a0, #cd8a5a); color: #5a2f10; }
.l-main { min-width: 0; } .l-main b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .l-main small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-bar { height: 8px; background: #eef1f7; border-radius: 99px; overflow: hidden; }
.l-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--teal)); border-radius: 99px; }
.l-num { text-align: right; } .l-num b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; } .l-num small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.team-cov { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.tc-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(60px, 1fr) 44px; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 10px; color: var(--ink); }
.tc-row:hover { background: #f7f9fd; }
.tc-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tc-name b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tc-name small { color: var(--muted); }
.tc-name > span:last-child { min-width: 0; }
.sport-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tc); color: #fff; flex: none; }
.sport-ic .ico { width: 20px; height: 20px; }
.tc-bar { height: 10px; background: #eef1f7; border-radius: 99px; overflow: hidden; }
.tc-bar span { display: block; height: 100%; background: var(--tc); border-radius: 99px; }
.tc-pct { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- teams ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.team-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--sh); color: var(--ink); transition: transform .15s, box-shadow .15s; border: 1px solid rgba(13, 21, 48, .04); }
.team-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(13, 21, 48, .12); }
.tcard-head { position: relative; padding: 18px; min-height: 108px; display: flex; align-items: flex-end; color: #fff; background: radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, .28), transparent 50%), linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 70%, #0b1533)); }
.tcard-sport { position: absolute; right: -10px; top: -10px; opacity: .22; }
.tcard-sport .ico { width: 110px; height: 110px; }
.feat { position: absolute; left: 16px; top: 14px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: rgba(255, 255, 255, .25); padding: 3px 8px; border-radius: 6px; }
.tcard-name small { display: block; font-weight: 700; opacity: .85; }
.tcard-name b { font-size: 19px; letter-spacing: -0.02em; }
.tcard-body { padding: 14px 18px 18px; display: grid; gap: 9px; }
.tcard-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; background: #f7f9fd; border-radius: 12px; padding: 9px 0; }
.tcard-stats b { display: block; font-size: 19px; } .tcard-stats small { color: var(--muted); font-size: 11px; }
.tcard-line { display: flex; gap: 7px; align-items: center; font-size: 12.5px; color: var(--ink2); min-width: 0; }
.tcard-line span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard-line .ico { width: 15px; height: 15px; color: var(--muted); }
.team-hero, .board-hero { position: relative; border-radius: 18px; padding: 18px 24px 22px; color: #fff; margin-bottom: 18px; overflow: hidden;
  background: radial-gradient(90% 160% at 100% 0%, rgba(255, 255, 255, .25), transparent 55%), linear-gradient(120deg, color-mix(in srgb, var(--tc) 80%, #0b1533), var(--tc)); box-shadow: 0 14px 40px color-mix(in srgb, var(--tc) 30%, transparent); }
.back { display: inline-flex; align-items: center; gap: 2px; color: rgba(255, 255, 255, .85); font-weight: 700; font-size: 13px; margin-bottom: 8px; min-height: 32px; }
.back .ico { width: 17px; height: 17px; }
.th-row { display: flex; gap: 16px; align-items: center; }
.th-sport { width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; flex: none; }
.th-sport .ico { width: 38px; height: 38px; }
.th-row small { font-weight: 700; opacity: .85; }
.th-row h2 { font-size: 26px; font-weight: 820; }
.th-meta, .bh-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; opacity: .92; }
.th-meta span, .bh-meta span { display: inline-flex; align-items: center; gap: 5px; }
.th-meta .ico, .bh-meta .ico { width: 15px; height: 15px; }
.th-actions, .bh-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.bh-actions .btn.primary { background: #fff; color: var(--ink); }
.who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.who > span:not(.av) { min-width: 0; display: flex; flex-direction: column; }
.who b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: var(--muted); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfe; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; font-size: 13.5px; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr[data-id]:hover { background: #f8faff; cursor: pointer; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.act { text-align: right; width: 56px; }
.tbl .empty-row td { padding: 0; }
.addr { display: flex; flex-direction: column; font-size: 13px; } .addr small { color: var(--muted); font-variant-numeric: tabular-nums; }
.g-line { white-space: nowrap; }
.contact { display: flex; flex-direction: column; } .contact a { font-weight: 600; } .contact small { color: var(--ink2); }
.kid-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.kid-chip { display: inline-flex; font-size: 11.5px; font-weight: 750; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--tc) 13%, #fff); color: color-mix(in srgb, var(--tc) 75%, #000); border: 1px solid color-mix(in srgb, var(--tc) 25%, #fff); }
.kid-chip.lg { font-size: 12.5px; padding: 4px 11px; }
.veh { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.seats { display: inline-flex; gap: 6px; align-items: center; } .seats small { color: var(--muted); }
.dots { display: inline-flex; gap: 3px; } .dots i { width: 8px; height: 8px; border-radius: 3px; background: var(--brand); opacity: .75; }

/* ---------- events ---------- */
.day-group { margin-bottom: 18px; }
.day-head { display: flex; gap: 10px; align-items: baseline; margin: 0 0 8px 4px; }
.day-head b { font-size: 15px; } .day-head span { color: var(--ink2); font-size: 13px; } .day-head em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.week-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.week-nav b { font-size: 15px; min-width: 150px; text-align: center; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wday { background: #fff; border-radius: 13px; box-shadow: var(--sh); min-height: 320px; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.wday.today { box-shadow: 0 0 0 2px var(--brand), var(--sh); }
.wd-head { padding: 9px 10px; border-bottom: 1px solid var(--line2); display: flex; align-items: baseline; gap: 6px; }
.wd-head small { font-weight: 800; color: var(--muted); text-transform: uppercase; font-size: 11px; } .wd-head b { font-size: 18px; }
.wday.today .wd-head { background: var(--brand-l); } .wday.today .wd-head b { color: var(--brand); }
.wd-body { padding: 8px; display: grid; gap: 6px; align-content: start; }
.wd-empty { color: #c5ccdc; text-align: center; padding: 12px 0; }
.wchip { display: block; border-radius: 9px; padding: 7px 8px 7px 10px; background: color-mix(in srgb, var(--tc) 9%, #fff); border-left: 4px solid var(--tc); color: var(--ink); min-width: 0; }
.wchip:hover { background: color-mix(in srgb, var(--tc) 16%, #fff); }
.wchip small { display: block; font-size: 10.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wchip b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-cov { display: block; font-size: 10.5px; font-weight: 750; color: var(--ok); } .wc-cov.open { color: var(--danger); }

/* ---------- ride board ---------- */
.bh-row { display: flex; gap: 18px; align-items: center; }
.bh-row .dblock { background: rgba(255, 255, 255, .95); width: 62px; padding: 7px 0; }
.bh-row .dblock b { font-size: 24px; }
.bh-main { flex: 1; min-width: 0; }
.bh-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bh-tags .ev-type { color: rgba(255, 255, 255, .85); }
.bh-tags .team-chip { background: rgba(255, 255, 255, .92); border: 0; }
.bh-main h2 { font-size: 26px; font-weight: 820; margin: 4px 0 2px; }
.bh-cov { flex: none; width: 250px; }
.big-cov { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px; padding: 12px 14px; }
.bc-num { display: flex; align-items: baseline; gap: 6px; } .bc-num b { font-size: 32px; font-weight: 850; } .bc-num span { opacity: .85; font-weight: 700; }
.bc-lbl { font-size: 12px; opacity: .8; margin: -2px 0 8px; font-weight: 600; }
.big-cov .cov-bar { background: rgba(255, 255, 255, .25); }
.big-cov .cov-txt { display: none; }
.board-grid { min-width: 0; }
.board-tbl tr.needs { background: linear-gradient(90deg, #fff6f6, transparent 50%); }
.drv-sel { min-width: 200px; border-left: 4px solid var(--dc); }
.status-sel { min-width: 140px; font-weight: 700; font-size: 13px; }
.status-sel.s-needs { color: #c62828; } .status-sel.s-claimed { color: #b45309; } .status-sel.s-confirmed { color: var(--brand-d); } .status-sel.s-picked { color: #6d28d9; } .status-sel.s-dropped { color: #0b7d55; }
.drv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.drv-card { background: #fff; border-radius: 15px; box-shadow: var(--sh); padding: 16px; border-top: 4px solid var(--dc); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dc-head { display: flex; gap: 11px; align-items: center; } .dc-head > div { flex: 1; min-width: 0; } .dc-head b { display: block; } .dc-head small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat-meter { display: flex; align-items: center; gap: 5px; }
.seat-meter i { width: 22px; height: 10px; border-radius: 4px; background: #e8ecf4; }
.seat-meter i.on { background: var(--dc); box-shadow: 0 2px 6px color-mix(in srgb, var(--dc) 40%, transparent); }
.seat-meter span { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--ink2); }
.seat-meter.big i { height: 14px; flex: 1; max-width: 46px; }
.stops { grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 2px; position: relative; }
.stops::before { content: ''; position: absolute; left: 16px; top: 14px; bottom: 14px; width: 3px; background: color-mix(in srgb, var(--dc) 35%, #fff); border-radius: 3px; }
.stops li { display: flex; align-items: center; gap: 10px; position: relative; padding: 4px 0; font-size: 13px; }
.stops li > span:not(.av) { flex: 1; min-width: 0; display: flex; flex-direction: column; } .stops li small { color: var(--muted); }
.stops li.home .ico, .stops li.fac .ico { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--dc); color: #fff; box-shadow: 0 0 0 3px #fff; }
.stops li.fac .ico { background: var(--ink); }
.dc-foot { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line2); padding-top: 12px; }
.dc-foot .rt { flex-basis: 100%; margin-bottom: 2px; }
.dc-foot .rt + .spacer { display: none; }
.rt { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink2); } .rt .ico { width: 15px; height: 15px; color: var(--dc); }
.enroll-list { display: grid; }
.en-row { display: flex; align-items: center; gap: 14px; padding: 8px 18px; border-top: 1px solid var(--line2); flex-wrap: wrap; }
.en-row.off { opacity: .55; }
.en-main { flex: 1; min-width: 160px; } .en-main b { display: block; } .en-main small { color: var(--muted); }
.pick-list { display: grid; gap: 6px; margin-top: 12px; max-height: 52vh; overflow-y: auto; }
.pick-row { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border: 1px solid var(--line2); border-radius: 12px; background: #fff; cursor: pointer; text-align: left; min-height: 52px; }
.pick-row:hover { border-color: var(--brand); background: #f8faff; }
.pick-row > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pick-row small { color: var(--muted); }
.pick-row .tag { background: var(--brand-l); color: var(--brand-d); }

/* ---------- modals ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(9, 15, 38, .5); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 2000; opacity: 0; transition: opacity .2s; padding: 20px; }
.modal-bg.in { opacity: 1; }
.modal-card { background: #fff; border-radius: 18px; width: 560px; max-width: 100%; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; box-shadow: var(--sh-lg); transform: translateY(12px) scale(.98); transition: transform .25s cubic-bezier(.2, .9, .3, 1.2); overflow: hidden; }
.modal-bg.in .modal-card { transform: none; }
.modal-card.sm { width: 420px; } .modal-card.md { width: 520px; } .modal-card.lg { width: 680px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line2); }
.modal-head h3 { font-size: 17px; font-weight: 780; }
.modal-head .icon-btn { border: 0; }
.modal-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.modal-body p { margin: 0; }
.modal-foot { display: flex; gap: 8px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line2); background: #fafbfe; }
.pick-map { height: 220px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.more-list { display: grid; gap: 8px; }
.more-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 13px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; width: 100%; min-height: 56px; }
.more-item > .ico:first-child { width: 22px; height: 22px; color: var(--brand); }
.more-item span { flex: 1; display: flex; flex-direction: column; } .more-item small { color: var(--muted); }
.more-item > .ico:last-child { color: var(--muted); }
.more-item.danger > .ico:first-child { color: var(--danger); }
.acct { display: flex; gap: 12px; align-items: center; padding: 6px 4px 12px; } .acct span:last-child { display: flex; flex-direction: column; } .acct small { color: var(--muted); }

/* ---------- toasts ---------- */
#toasts { position: fixed; right: 22px; bottom: 22px; z-index: 3000; display: grid; gap: 8px; pointer-events: none; max-width: min(420px, calc(100vw - 24px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; background: #0d1530; color: #fff; border-radius: 13px; padding: 12px 14px; box-shadow: 0 14px 34px rgba(9, 15, 38, .3); transform: translateY(14px); opacity: 0; transition: transform .3s cubic-bezier(.2, .9, .3, 1.3), opacity .25s; font-size: 13.5px; pointer-events: auto; }
.toast.in { transform: none; opacity: 1; }
.toast-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--ok); flex: none; }
.toast-ic .ico { width: 16px; height: 16px; }
.toast.err .toast-ic { background: var(--danger); }
.toast.sms .toast-ic { background: #0f9d6c; }
.toast-body small { display: block; opacity: .75; margin-top: 3px; font-size: 12px; }

/* ---------- parent ---------- */
body.is-login #sidebar { display: none; }
body.is-login #app { grid-template-columns: minmax(0, 1fr); }
.login-wrap { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-art { position: relative; color: #fff; padding: 56px; display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(70% 70% at 90% 10%, rgba(20, 201, 164, .6), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(255, 176, 32, .35), transparent 60%), linear-gradient(140deg, #0b1533, #1d3fd6); }
.login-art::after { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cpath d='M-20 520 C 120 380, 220 500, 330 360 S 520 200, 640 260' stroke='white' stroke-opacity='.18' stroke-width='4' fill='none' stroke-dasharray='2 14' stroke-linecap='round'/%3E%3Ccircle cx='330' cy='360' r='9' fill='white' fill-opacity='.35'/%3E%3Ccircle cx='520' cy='228' r='7' fill='%2314c9a4'/%3E%3C/svg%3E"); background-size: cover; pointer-events: none; }
.la-inner { position: relative; z-index: 1; max-width: 460px; }
.la-inner h2 { font-size: 40px; line-height: 1.08; font-weight: 850; margin: 24px 0 14px; }
.la-inner p { font-size: 16px; opacity: .88; margin: 0 0 24px; }
.la-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.la-points li { display: flex; gap: 12px; align-items: center; font-weight: 650; }
.la-points .ico { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .15); }
.login-card { align-self: center; justify-self: center; width: 100%; max-width: 440px; padding: 40px 28px; }
.lc-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; } .lc-brand b { font-size: 22px; font-weight: 850; letter-spacing: -0.03em; }
.login-card h1 { font-size: 30px; font-weight: 850; margin-bottom: 6px; }
.login-card > p { margin: 0 0 20px; }
.lc-form { display: grid; gap: 4px; } .lc-form .btn { margin-top: 10px; }
.lc-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 24px 0 12px; }
.lc-or::before, .lc-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.demo-list { display: grid; gap: 7px; }
.demo-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; text-align: left; min-height: 56px; transition: border .15s, transform .1s; }
.demo-row:hover { border-color: var(--brand); transform: translateX(2px); }
.demo-row > span:not(.av) { flex: 1; min-width: 0; display: flex; flex-direction: column; } .demo-row small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-row > .ico { color: var(--muted); }
.rec { font-style: normal; font-size: 10.5px; font-weight: 800; background: var(--ok-l); color: #0b7d55; padding: 1px 7px; border-radius: 6px; margin-left: 4px; vertical-align: 1px; }
.lc-admin { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 22px; font-weight: 700; font-size: 13px; min-height: 44px; }
.sent { text-align: center; }
.sent-art { display: grid; place-items: center; margin-bottom: 22px; }
.phone { width: 180px; height: 220px; border-radius: 28px; background: linear-gradient(180deg, #0d1530, #1b2b62); padding: 30px 14px; box-shadow: 0 20px 50px rgba(13, 21, 48, .3); position: relative; }
.phone::before { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 50px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .2); }
.bubble { background: #fff; border-radius: 14px; padding: 10px 12px; text-align: left; font-size: 12px; transform: translateY(20px) scale(.9); opacity: 0; transition: all .5s cubic-bezier(.2, .9, .3, 1.3) .2s; display: grid; gap: 2px; }
.bubble i { font-style: normal; color: var(--brand); font-weight: 700; }
.sent.go .bubble { transform: none; opacity: 1; }
.progress { height: 6px; background: #eef1f7; border-radius: 99px; overflow: hidden; margin: 22px auto 10px; max-width: 260px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--teal)); border-radius: 99px; transition: width 1.8s linear; }
.sent.go .progress span { width: 100%; }
.p-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px 28px; border-radius: 20px; color: #fff; margin-bottom: 18px;
  background: radial-gradient(80% 140% at 100% 0%, rgba(255, 255, 255, .25), transparent 55%), linear-gradient(120deg, #0b8f73, var(--teal) 70%, #4fd8bd); box-shadow: 0 14px 40px rgba(20, 201, 164, .28); }
.p-hero h2 { font-size: 30px; font-weight: 850; } .p-hero p { margin: 4px 0 0; font-size: 15px; opacity: .95; }
.p-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.p-stats div { background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28); border-radius: 13px; padding: 10px 16px; min-width: 96px; }
.p-stats b { display: block; font-size: 24px; font-weight: 850; } .p-stats small { opacity: .9; }
.kid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 14px; }
.kid-card { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; min-width: 0; }
.kc-head { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 12%, #fff), #fff); border-bottom: 1px solid var(--line2); }
.kc-head b { display: block; font-size: 15px; } .kc-head small { color: var(--ink2); }
.kc-evs { display: grid; grid-template-columns: minmax(0, 1fr); }
.kc-ev { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 4px 14px; border-bottom: 1px solid var(--line2); }
.kc-ev:last-child { border: 0; }
.kc-when b { display: block; font-size: 13px; } .kc-when small { color: var(--muted); font-size: 11.5px; }
.kc-st { font-size: 12.5px; min-width: 0; }
.kc-ev .switch-label { font-size: 12px; }
.with { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--ink2); font-size: 12.5px; }
.with i { width: 8px; height: 8px; border-radius: 50%; background: var(--dc); flex: none; }
.wait { display: inline-flex; align-items: center; gap: 7px; color: var(--danger); font-weight: 700; font-size: 12.5px; }
.give-card { border: 1px solid var(--line); border-left: 4px solid var(--dc); border-radius: 13px; padding: 12px 14px; margin-bottom: 10px; display: grid; gap: 10px; }
.gc-top { display: flex; gap: 12px; align-items: center; } .gc-main { min-width: 0; } .gc-main b { display: block; } .gc-main small { color: var(--muted); }
.gc-route { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--ink2); }
.gc-route > .ico { width: 18px; height: 18px; color: var(--dc); }
.gc-stop { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; background: #f5f7fc; padding: 3px 9px 3px 3px; border-radius: 999px; }
.gc-stop i { font-style: normal; width: 19px; height: 19px; border-radius: 50%; background: var(--dc); color: #fff; display: grid; place-items: center; font-size: 10.5px; }
.gc-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink2); }
.gc-foot > span:first-child { display: inline-flex; align-items: center; gap: 5px; } .gc-foot .ico { width: 15px; height: 15px; }
.req-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.req-ev { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.re-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 10%, #fff), #fff); border-bottom: 1px solid var(--line2); border-left: 4px solid var(--tc); }
.re-head span { min-width: 0; } .re-head b { display: block; font-size: 13.5px; } .re-head small { color: var(--muted); }
.req-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.req-row:last-child { border: 0; }
.rq-main { flex: 1; min-width: 120px; display: flex; flex-direction: column; } .rq-main b { font-size: 13px; } .rq-main small { color: var(--muted); }
.otw { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; color: #0b7d55; background: var(--ok-l); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.otw .ico { width: 13px; height: 13px; }
.det-far { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.ride-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ride-row { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line2); border-radius: 12px; }
.ride-row .rr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .ride-row small { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1360px) {
  .ev-row { grid-template-columns: auto minmax(0, 1fr) 120px auto; }
  .ev-meta { flex-wrap: nowrap; overflow: hidden; }
  .ev-meta .hide-sm { display: none; }
  .ev-actions .btn span { display: none; }
  .ev-actions .btn { padding: 0 10px; }
}
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-actions .btn span { display: none; }
  .ev-actions .btn { padding: 0 10px; }
}
@media (max-width: 1100px) {
  .grid-2, .grid-2.even { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  :root { --tb-h: 56px; --tab-h: 64px; }
  #app { grid-template-columns: minmax(0, 1fr); }
  #sidebar { display: none; }
  #topbar { padding: 0 12px; gap: 8px; }
  .tb-logo { display: block; } .tb-logo .logo-mark { width: 30px; height: 30px; }
  .tb-title small { display: none; } .tb-title h1 { font-size: 17px; }
  .tb-reset { display: none; }
  .avatar { width: 34px; height: 34px; font-size: 12px; }
  .role-switch button { padding: 6px 11px; font-size: 12.5px; min-height: 34px; }
  #view { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  #view.map-view { padding-bottom: 0; }
  body.is-login #view { padding-bottom: 0; }
  #tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--line); z-index: 900; }
  body.is-login #tabbar { display: none; }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 700; min-height: 44px; }
  .tab .ico { width: 23px; height: 23px; }
  .tab.active { color: var(--brand); }
  .tab.hot .ico { width: 46px; height: 46px; padding: 11px; border-radius: 16px; background: linear-gradient(135deg, var(--brand), var(--teal)); color: #fff; margin-top: -22px; box-shadow: 0 8px 20px rgba(47, 91, 255, .4); }
  .tab.hot.active { color: var(--brand); }
  .page { padding: 14px 14px 30px; }
  .hero { padding: 22px 18px; border-radius: 18px; gap: 16px; }
  .hero h2 { font-size: 23px; } .hero h2 span { font-size: 16px; }
  .hero-cta .btn { flex: 1; }
  .hero-cta .btn.lg { padding: 0 12px; font-size: 14px; }
  .kpis { gap: 10px; }
  .kpi { padding: 13px 14px; } .kpi-val { font-size: 25px; } .kpi-ic { width: 30px; height: 30px; right: 10px; top: 10px; } .kpi-label { font-size: 12px; padding-right: 32px; } .kpi-sub { font-size: 11.5px; }
  .card { padding: 14px; }
  .ev-row { grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; }
  .ev-cov { grid-column: 1 / -1; }
  .ev-actions { grid-column: 1 / -1; }
  .ev-actions .btn { flex: 1; min-height: 40px; }
  .ev-actions .btn span { display: inline; }
  .hide-sm { display: none !important; }
  .leader li { grid-template-columns: 24px 36px minmax(0, 1fr) 66px; }
  .l-bar { display: none; }
  .tc-row { grid-template-columns: minmax(0, 1fr) 70px 40px; }
  .toolbar { gap: 8px; }
  .toolbar > .tb-search { flex: 1 1 100%; max-width: none; }
  .toolbar select { flex: 1 1 auto; min-width: 0; width: auto; }
  .toolbar .seg { flex: 1 1 100%; }
  .toolbar .seg button { flex: 1; }
  .toolbar > .btn.primary { flex: 1 1 100%; }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  /* stacked tables */
  .tbl.stack thead { display: none; }
  .tbl.stack, .tbl.stack tbody, .tbl.stack tr, .tbl.stack td { display: block; width: 100%; }
  .tbl.stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line); position: relative; }
  .tbl.stack td { border: 0; padding: 4px 0; display: flex; gap: 12px; align-items: center; justify-content: space-between; min-width: 0; }
  .tbl.stack td::before { content: attr(data-label); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; flex: none; }
  .tbl.stack td:first-child::before { display: none; }
  .tbl.stack td:first-child { padding-right: 48px; padding-bottom: 8px; }
  .tbl.stack td > * { min-width: 0; text-align: right; }
  .tbl.stack td:first-child > * { text-align: left; }
  .tbl.stack td.act { position: absolute; right: 12px; top: 12px; width: auto; padding: 0; }
  .tbl.stack td.act::before { display: none; }
  .tbl.stack .who > span:not(.av) { align-items: flex-start; }
  .tbl.stack .addr { align-items: flex-end; }
  .tbl.stack .kid-chips { justify-content: flex-end; }
  .tbl.stack .veh { align-items: flex-end; }
  .tbl.stack .contact { align-items: flex-end; }
  .tbl.stack .empty-row td::before { display: none; }
  .tbl.stack .empty-row td { display: block; }
  .drv-sel { min-width: 0; width: 100%; max-width: 230px; }
  .status-sel { min-width: 0; max-width: 170px; }
  .tbl.stack td select { flex: 1; }
  .week { grid-template-columns: minmax(0, 1fr); }
  .wday { min-height: 0; flex-direction: row; }
  .wd-head { flex-direction: column; align-items: center; justify-content: center; border-bottom: 0; border-right: 1px solid var(--line2); width: 58px; flex: none; gap: 0; }
  .wd-body { flex: 1; min-width: 0; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .wd-empty { text-align: left; padding: 6px; }
  .week-nav b { flex: 1; min-width: 0; }
  .team-hero, .board-hero { padding: 14px 16px 18px; }
  .th-row h2, .bh-main h2 { font-size: 21px; }
  .th-sport { width: 50px; height: 50px; } .th-sport .ico { width: 30px; height: 30px; }
  .bh-row { flex-wrap: wrap; gap: 12px; }
  .bh-row .dblock { width: 54px; }
  .bh-main { flex: 1 1 200px; }
  .bh-cov { width: 100%; }
  .bh-actions .btn { flex: 1 1 calc(50% - 8px); }
  .drv-grid { grid-template-columns: minmax(0, 1fr); }
  .en-row { padding: 8px 14px; gap: 4px 12px; }
  .en-main { flex: 1 1 100%; }
  /* modals become full-screen */
  .modal-bg { padding: 0; place-items: stretch; }
  .modal-card, .modal-card.sm, .modal-card.md, .modal-card.lg { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; transform: translateY(30px); }
  .modal-card.sheet, .modal-card.sm { height: auto; align-self: end; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); max-height: 88%; }
  .modal-foot { flex-wrap: wrap; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; }
  .modal-foot .spacer { display: none; }
  .modal-foot .btn.danger-ghost { flex: 0 0 auto; }
  .form-grid { gap: 12px 10px; }
  #toasts { left: 12px; right: 12px; bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); max-width: none; }
  body.is-map #toasts { bottom: auto; top: calc(var(--tb-h) + 10px); }
  /* parent */
  .login-wrap { grid-template-columns: minmax(0, 1fr); }
  .login-art { display: none; }
  .login-card { padding: 28px 20px 40px; }
  .p-hero { padding: 20px 18px; }
  .p-hero h2 { font-size: 25px; }
  .p-stats { width: 100%; } .p-stats div { flex: 1; min-width: 0; padding: 8px 10px; } .p-stats b { font-size: 20px; } .p-stats small { font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .kid-cards { grid-template-columns: minmax(0, 1fr); }
  .kc-ev { grid-template-columns: minmax(0, 1fr) auto; padding: 6px 12px; gap: 2px 8px; }
  .kc-st { grid-column: 1; grid-row: 2; }
  .kc-ev .switch { grid-row: 1 / span 2; grid-column: 2; }
  .kc-ev .switch-label { display: none; }
}
@media (max-width: 380px) {
  .role-switch button { padding: 6px 9px; }
  .kpis { grid-template-columns: minmax(0, 1fr); }
}
