:root {
  --ink: #102a3a;
  --muted: #627786;
  --navy: #072a40;
  --aqua: #13a7a0;
  --aqua-dark: #087d78;
  --coral: #f36f56;
  --cream: #f7f6f0;
  --white: #fff;
  --line: #d9e2e6;
  --success: #147a55;
  --warning: #a7442f;
  --shadow: 0 16px 40px rgba(7, 42, 64, .09);
  --content-width: 1260px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 11px 15px; border-radius: 10px; color: white; background: var(--navy); font-weight: 850; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 90% 0, #d8f4ef 0, transparent 34rem), var(--cream); }
.pull-refresh { position: fixed; top: max(8px, env(safe-area-inset-top)); left: 50%; z-index: 80; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); background: white; box-shadow: var(--shadow); font-size: .78rem; font-weight: 850; opacity: 0; pointer-events: none; transform: translate(-50%, -72px); transition: transform .18s ease, opacity .18s ease; }
.pull-refresh.visible { opacity: 1; }
.pull-refresh.ready { color: white; border-color: var(--aqua-dark); background: var(--aqua-dark); }
.pull-refresh.refreshing .ui-icon { animation: refresh-spin .8s linear infinite; }
.pull-refresh .ui-icon { width: 18px; height: 18px; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }
button, input, select { font: inherit; }
button { cursor: pointer; }
.topbar { position: sticky; top: 0; z-index: 10; min-height: 66px; padding: 10px max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(247, 246, 240, .92); border-bottom: 1px solid rgba(16,42,58,.08); backdrop-filter: blur(18px); }
.brand { color: var(--navy); text-decoration: none; display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; overflow: hidden; border-radius: 12px; background: white; box-shadow: 0 1px 5px rgba(7,42,64,.14); }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: grid; min-width: 0; line-height: 1.05; }
.brand-copy strong { font-size: 1rem; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: .61rem; font-weight: 750; letter-spacing: .01em; white-space: nowrap; }
.user-menu { position: relative; display: flex; align-items: center; margin-left: auto; }
.notification-menu-button { position: relative; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid transparent; border-radius: 50%; color: var(--muted); background: transparent; }
.notification-menu-button:hover, .notification-menu-button[aria-expanded="true"] { color: var(--navy); border-color: var(--line); background: white; }
.notification-menu-button .ui-icon { width: 21px; height: 21px; }
.notification-count { position: absolute; top: 1px; right: 0; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid var(--cream); border-radius: 999px; color: white; background: var(--coral); font-size: .62rem; font-weight: 900; }
.notification-panel { position: absolute; top: calc(100% + 8px); right: 48px; z-index: 31; width: min(390px, calc(100vw - 24px)); overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow); }
.notification-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notification-panel > header strong, .notification-panel > header small { display: block; }
.notification-panel > header small { margin-top: 2px; color: var(--muted); }
.notification-panel > header button { min-height: 32px; padding: 4px; border: 0; color: var(--aqua-dark); background: transparent; font-size: .76rem; font-weight: 850; }
.notification-list { max-height: min(430px, 62vh); overflow-y: auto; }
.notification-item { display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 10px; width: 100%; padding: 13px 16px; border: 0; border-bottom: 1px solid #edf1f3; color: var(--ink); background: white; text-align: left; }
.notification-item:hover { background: #f4faf9; }
.notification-item.unread { background: #eff9f6; }
.notification-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: transparent; }
.notification-item.unread .notification-dot { background: var(--aqua); }
.notification-item strong, .notification-item small, .notification-item time { display: block; }
.notification-item small { margin-top: 3px; color: var(--ink); line-height: 1.4; }
.notification-item time { margin-top: 5px; color: var(--muted); font-size: .7rem; }
.notification-empty { margin: 0; padding: 28px 20px; color: var(--muted); text-align: center; }
.notification-panel > footer { display: grid; gap: 7px; padding: 10px 15px; color: var(--muted); background: #f6f8f8; font-size: .72rem; line-height: 1.4; }
.notification-panel > footer button { width: fit-content; min-height: 32px; padding: 4px; border: 0; color: var(--aqua-dark); background: transparent; font-weight: 850; }
.account-menu-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 3px; border: 1px solid transparent; border-radius: 50%; color: var(--ink); background: transparent; font-weight: 800; }
.account-menu-button:hover, .account-menu-button[aria-expanded="true"] { border-color: var(--line); background: white; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; color: white; background: linear-gradient(145deg, var(--aqua), var(--navy)); font-size: .78rem; font-weight: 900; letter-spacing: .02em; }
.account-submenu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; display: grid; width: 180px; padding: 7px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); }
.account-submenu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 9px 11px; border: 0; border-radius: 10px; color: var(--ink); background: transparent; text-align: left; font-weight: 750; }
.account-submenu button:hover, .account-submenu button:focus-visible { color: var(--navy); background: #e6f4f3; outline: none; }
.account-menu-icon { display: grid; place-items: center; flex: 0 0 auto; width: 21px; height: 21px; color: var(--aqua-dark); }
.account-menu-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ui-icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.login-shell { min-height: calc(100vh - 150px); display: grid; place-items: center; }
.login-card { width: min(520px, 100%); padding: 34px; border-radius: 26px; background: white; box-shadow: var(--shadow); }
.login-card h1 { color: var(--navy); font-size: clamp(2.1rem, 10vw, 3.8rem); }
.login-card > p { color: var(--muted); line-height: 1.6; }
.google-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.phone-auth-form { margin-top: 22px; }
.phone-auth-form > small { display: block; margin-top: 10px; color: var(--muted); line-height: 1.45; }
.phone-auth-form .button { width: 100%; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-mark { flex: 0 0 auto; display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid #dfe1e5; border-radius: 50%; background: white; box-shadow: 0 1px 2px rgba(60,64,67,.18); }
.google-mark img { display: block; width: 19px; height: 19px; }
.demo-box { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
nav { display: flex; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 999px; padding: 10px 13px; color: var(--muted); background: transparent; font-weight: 700; }
.nav-link.active { color: white; background: var(--navy); }
.nav-link:disabled { cursor: not-allowed; opacity: .38; }
.nav-icon { display: block; width: 20px; height: 20px; }
.nav-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
main { width: min(var(--content-width), 100%); margin: 0 auto; padding: 38px 20px 80px; }
.loading { padding: 80px 20px; text-align: center; color: var(--muted); }
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .58fr); gap: 24px; align-items: stretch; width: 100%; margin-bottom: 24px; }
.hero-main, .deadline-card, .card { background: rgba(255,255,255,.92); border: 1px solid rgba(16,42,58,.08); border-radius: 24px; box-shadow: var(--shadow); }
.hero-main { min-height: 270px; padding: 38px 40px; background: white; color: var(--navy); overflow: hidden; position: relative; isolation: isolate; }
.hero-main::before { display: none; }
.hero-main::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, white 0%, white 46%, rgba(255,255,255,.94) 55%, transparent 72%); pointer-events: none; }
.hero-copy { position: relative; z-index: 3; width: 60%; }
.hero-art { position: absolute; z-index: 1; top: 50%; right: 1%; width: 76%; height: 90%; transform: translateY(-50%); object-fit: contain; object-position: center right; }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 850; color: var(--aqua-dark); }
h1 { margin: 0; font-size: clamp(2rem, 6vw, 4.2rem); line-height: .98; letter-spacing: -.055em; }
.hero-main p { max-width: 620px; color: #3f5d6d; font-size: 1.02rem; line-height: 1.6; }
.pill { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 11px; border-radius: 999px; font-size: .82rem; font-weight: 750; background: rgba(255,255,255,.12); }
.deadline-card { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.deadline-card strong { font-size: 1.5rem; letter-spacing: -.03em; }
.deadline-card p { color: var(--muted); line-height: 1.5; }
.deadline-card .badge { display: flex; justify-content: center; max-width: 100%; padding: 8px 16px; line-height: 1.35; text-align: center; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 34px 0 16px; }
.section-title h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.035em; }
.section-title p { margin: 0; color: var(--muted); }
.card { padding: 26px; margin-bottom: 18px; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label, .field-label { font-weight: 800; font-size: .9rem; }
select, textarea, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"], .schedule-edit-row input:not([type="checkbox"]) { width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: 13px; padding: 10px 13px; color: var(--ink); background: white; outline: none; }
select:focus, input:focus { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(19,167,160,.14); }
textarea:focus { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(19,167,160,.14); outline: none; }
.child-list { display: grid; gap: 12px; }
.week-list { display: grid; gap: 18px; }
.practice-card { border-left: 5px solid var(--aqua); }
.practice-header { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 20px; }
.practice-header h2 { margin: 2px 0 4px; }
.practice-header p { margin: 0; color: var(--muted); }
.practice-answer { display: grid; gap: 18px; }
.weekly-card { padding: 0; overflow: hidden; }
.weekly-location { display: flex; gap: 12px; align-items: center; padding: 18px 20px; color: white; background: var(--navy); }
.location-pin { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--aqua); }
.location-pin .ui-icon { width: 20px; height: 20px; }
.weekly-location strong, .weekly-location span { display: block; }
.weekly-location span { margin-top: 2px; color: #bdd0d9; font-size: .82rem; }
.practice-details { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f3f7f7; }
.practice-detail { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.practice-detail strong, .practice-detail span, .practice-detail small { display: block; }
.practice-detail strong { font-size: .78rem; }
.practice-detail span { margin-top: 3px; color: var(--aqua-dark); font-size: .72rem; font-weight: 800; }
.practice-detail small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: .68rem; line-height: 1.35; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.practice-detail.off-day { border-style: dashed; background: #f6f7f7; }
.practice-detail.off-day span { color: var(--muted); }
.calendar-section { padding: 18px 18px 4px; }
.calendar-section + .calendar-section { padding-top: 12px; border-top: 1px solid var(--line); }
.calendar-label { margin: 0 0 10px; color: var(--muted); font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.calendar-grid { display: grid; grid-template-columns: minmax(86px, 1.55fr) repeat(5, minmax(39px, 1fr)); gap: 6px; align-items: center; width: 100%; }
.calendar-grid + .calendar-grid { margin-top: 7px; }
.day-head { min-width: 0; padding: 5px 1px 8px; text-align: center; color: var(--muted); font-size: .69rem; font-weight: 800; line-height: 1.15; }
.day-head strong { display: block; color: var(--ink); font-size: .78rem; }
.row-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; font-weight: 800; }
.calendar-check { display: grid; place-items: center; min-width: 0; }
.calendar-check input { position: absolute; opacity: 0; pointer-events: none; }
.calendar-check span { display: grid; place-items: center; width: 34px; height: 34px; max-width: 100%; border: 1px solid var(--line); border-radius: 11px; color: transparent; background: #f8fafb; font-weight: 900; transition: .15s ease; }
.seat-availability { display: grid; place-items: center; min-height: 42px; border-radius: 11px; color: var(--navy); background: #e8f5f1; font-weight: 900; font-variant-numeric: tabular-nums; }
.seat-availability.off { color: var(--muted); background: #f1f3f3; }
.seat-availability-grid { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.calendar-check input:focus-visible + span { outline: 3px solid rgba(19,167,160,.2); }
.calendar-check input:checked + span { color: white; border-color: var(--aqua-dark); background: var(--aqua-dark); }
.calendar-check input:disabled + span { opacity: .4; background: #edf1f3; }
.calendar-check.claimed span { color: #8a99a2; border-style: dashed; background: #edf1f3; }
.calendar-check.off span { color: #8a99a2; opacity: 1; border-style: dashed; background: #f0f2f3; }
.calendar-help { padding: 8px 20px 18px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.calendar-section-help { margin: 10px 0 4px; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.ride-status-row { align-items: stretch; }
.ride-status-row .row-name { align-self: center; }
.ride-status { position: relative; display: block; min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f6f8f9; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.ride-status:not(.off):hover { border-color: #7baaa7; transform: translateY(-1px); }
.ride-status select { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; min-height: 0; padding: 0; opacity: 0; cursor: pointer; }
.ride-status > span { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; min-height: 46px; padding: 5px 7px; text-align: center; }
.ride-status b { flex: 0 0 auto; font-size: 1rem; line-height: 1; }
.ride-status small { min-width: 0; overflow: hidden; font-size: .67rem; font-weight: 850; line-height: 1.12; text-overflow: ellipsis; white-space: nowrap; }
.ride-status.state-both { color: #075c58; border-color: #8bcac5; background: #e5f6f3; }
.ride-status.state-to { color: #075f8e; border-color: #9bc8df; background: #eaf5fb; }
.ride-status.state-from { color: #8b4b18; border-color: #dfbd97; background: #fff3e4; }
.ride-status.state-private { color: #25633e; border-color: #aad0b6; background: #edf7ef; }
.ride-status.state-none, .ride-status.off { color: #75858e; border-style: dashed; background: #f3f5f6; }
.ride-status select:focus-visible + span { outline: 3px solid #075c58; outline-offset: -3px; }
.ride-status-legend { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; font-weight: 700; }
.ride-status-legend span { display: inline-flex; align-items: center; gap: 4px; }
.ride-status-legend b { min-width: 17px; color: var(--ink); font-size: .9rem; text-align: center; }
.vehicle-note { margin: 12px 0 0; padding: 11px 13px; border-radius: 12px; color: #075c58; background: #dff4f1; font-size: .82rem; font-weight: 750; }
.my-drive-day { border-color: #0a8d86; box-shadow: inset 0 0 0 1px #0a8d86; }
.my-drive-marker { display: flex; align-items: center; gap: 4px; margin-top: 8px; padding: 5px 7px; border-radius: 8px; color: white; background: #087d78; font-size: .64rem; line-height: 1.25; }
.my-drive-marker .ui-icon { flex: 0 0 auto; width: 14px; height: 14px; }
.my-drive-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; min-width: 0; padding: 28px 30px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.my-drive-summary.confirmed { border-color: #8bcac5; background: linear-gradient(120deg, #effaf8, white 72%); }
.my-drive-summary-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: white; background: var(--aqua-dark); }
.my-drive-summary-icon .ui-icon { width: 30px; height: 30px; }
.my-drive-summary h1 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.8rem); line-height: 1.05; }
.my-drive-summary p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); line-height: 1.45; }
.driver-week-card { padding: 0; overflow: hidden; }
.driver-week-wrap { overflow-x: auto; }
.driver-week-table { width: 100%; min-width: 1080px; table-layout: fixed; border-collapse: collapse; background: white; }
.driver-week-table .col-day { width: 10%; }
.driver-week-table .col-trip { width: 12%; }
.driver-week-table .col-practice { width: 16%; }
.driver-week-table .col-riders { width: 20%; }
.driver-week-table .col-route { width: 29%; }
.driver-week-table .col-status { width: 13%; }
.driver-week-table th { padding: 13px 15px; color: var(--muted); background: #f1f5f6; text-align: left; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; }
.driver-week-table td { padding: 15px; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; font-size: .86rem; }
.driver-week-table tbody tr.trip-to { background: #f2faf9; }
.driver-week-table tbody tr.trip-home { background: #fff9ee; }
.driver-week-table tbody tr.trip-to:hover { background: #e8f6f4; }
.driver-week-table tbody tr.trip-home:hover { background: #fff3dc; }
.driver-week-table tbody tr.is-complete { background: #f5f7f7; }
.driver-week-table td > strong, .driver-week-table td > small { display: block; }
.driver-week-table td > small, .driver-rider-list + small { margin-top: 5px; color: var(--muted); line-height: 1.4; }
.driver-rider-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 10px; }
.driver-route-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.driver-route-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; align-items: start; }
.stop-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: white; background: var(--navy); font-size: .76rem; font-weight: 900; }
.driver-route-list strong, .driver-route-list li div > span, .driver-route-list small { display: block; }
.driver-route-list li div > span { margin-top: 2px; line-height: 1.35; }
.driver-route-list small { margin-top: 3px; color: var(--muted); }
.driver-trip-status > small { display: block; margin-top: 6px; color: var(--muted); }
.complete-drive { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 10px; border: 1px solid #85bbb7; border-radius: 10px; color: #075c58; background: white; font-size: .76rem; font-weight: 850; text-align: left; }
.complete-drive:hover { color: white; background: #087d78; }
.complete-drive:focus-visible { outline: 3px solid rgba(8,125,120,.25); outline-offset: 2px; }
.complete-drive .ui-icon, .trip-complete .ui-icon { flex: 0 0 auto; width: 17px; height: 17px; }
.trip-complete { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: .8rem; font-weight: 900; }
.trip-upcoming { color: #6d5b13; font-size: .8rem; font-weight: 900; }
.child-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: #fbfcfc; }
.child-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.child-head strong { font-size: 1.07rem; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; color: var(--muted); }
.toggle input { width: 20px; height: 20px; accent-color: var(--aqua-dark); }
.ride-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; gap: 8px; align-items: center; background: white; }
.choice input { accent-color: var(--aqua-dark); }
.driver-grid, .stats, .directions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.driver-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.driver-card h3 { margin: 0 0 14px; font-size: 1rem; }
.vehicle-fields { display: grid; grid-template-columns: minmax(0, 1fr) 105px; gap: 10px; margin-top: 12px; }
.button { border: 0; border-radius: 14px; min-height: 50px; padding: 12px 18px; color: white; background: var(--navy); font-weight: 850; box-shadow: 0 8px 20px rgba(7,42,64,.15); }
.button:hover { background: #0b3b57; }
.button.secondary { color: var(--navy); background: #dcedef; box-shadow: none; }
.button.coral { background: var(--coral); }
.form-actions { position: sticky; bottom: 12px; z-index: 5; display: flex; gap: 12px; justify-content: end; padding: 12px; border-radius: 18px; background: rgba(247,246,240,.88); backdrop-filter: blur(16px); }
.status { border-radius: 14px; padding: 13px 15px; margin-bottom: 16px; font-weight: 700; }
.status.success { color: var(--success); background: #e0f4ea; }
.status.warning { color: var(--warning); background: #ffe8e1; }
.stat { padding: 20px; border-radius: 18px; background: white; border: 1px solid var(--line); }
.stat strong { display: block; font-size: 2rem; letter-spacing: -.04em; }
.stat span { color: var(--muted); font-size: .88rem; }
.direction-card h2 { margin-top: 0; }
.driver-assignment { padding: 16px 0; border-top: 1px solid var(--line); }
.driver-assignment:first-of-type { border-top: 0; }
.driver-assignment header { display: flex; justify-content: space-between; gap: 12px; }
.driver-assignment p { margin: 6px 0; color: var(--muted); }
.rider-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.rider-chip { padding: 6px 10px; border-radius: 999px; background: #dff4f1; color: #075c58; font-size: .84rem; font-weight: 750; }
.empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed #b7c5cc; border-radius: 18px; }
.response-row { display: grid; grid-template-columns: minmax(0, 1.3fr) .7fr .7fr; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.response-row:first-child { border-top: 0; }
.response-row small { color: var(--muted); }
.row-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.row-actions .button { min-height: 40px; padding: 8px 11px; }
.role-row .button { min-height: 40px; padding: 8px 11px; }
.role-row .button:disabled { cursor: not-allowed; opacity: .48; }
.role-safeguard { margin: 14px 0 0; color: var(--muted); font-size: .82rem; }
.role-audit { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.role-audit summary { cursor: pointer; color: var(--navy); font-weight: 800; }
.role-audit ol { margin: 12px 0 0; padding-left: 22px; }
.role-audit li { margin-top: 8px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.role-audit li span { white-space: nowrap; }
.invite-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.invite-children { grid-column: 1 / -1; }
.invite-method { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 0 0 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafb; }
.invite-method legend { padding: 0 6px; font-size: .9rem; font-weight: 800; }
.invite-method label { display: inline-flex; align-items: flex-start; gap: 10px; min-width: 0; cursor: pointer; }
.invite-method input { flex: 0 0 auto; width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--aqua-dark); }
.invite-method label > span { display: block; }
.invite-method strong, .invite-method small { display: block; }
.invite-method small { margin-top: 3px; color: var(--muted); font-size: .76rem; }
.invite-method input:checked + span strong { color: #075c58; }
.invite-method input:focus-visible { outline: 3px solid rgba(19,167,160,.25); outline-offset: 2px; }
.invitation-list { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.invitation-list h3 { margin: 0 0 8px; }
.invitation-row .button { min-height: 40px; padding: 8px 11px; }
.invitation-row.expired { border-left: 4px solid #b65b3f; background: #fff7f3; }
.invitation-row.duplicate { border-left: 4px solid #c68124; background: #fffaf0; }
.invitation-row .invitation-timing { color: var(--muted); font-weight: 700; }
.invitation-row.expired .invitation-timing { color: #91452f; }
.invitation-row .invitation-warning { color: #84510f; font-weight: 850; }
.invite-link-box { margin: 18px 0; padding: 16px; border: 1px solid #b9d8cd; border-radius: 14px; background: #eff9f5; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.invite-link-box div { grid-column: 1 / -1; }
.invite-link-box p { margin: 4px 0 0; color: var(--muted); }
.invite-link-box input { min-width: 0; width: 100%; }
.optional { color: var(--muted); font-weight: 500; }
.report-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.report-stats article { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 8px 24px rgba(7,42,64,.05); }
.report-stats strong { display: block; color: var(--navy); font-size: 1.8rem; letter-spacing: -.04em; }
.report-stats span { color: var(--muted); font-size: .8rem; font-weight: 750; }
.report-card { padding: 0; overflow: hidden; }
.report-card > .helper { margin: 0; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.report-table-wrap { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; }
.report-table th { padding: 12px 14px; color: var(--muted); background: #f1f5f6; text-align: left; text-transform: uppercase; letter-spacing: .07em; font-size: .66rem; }
.report-table td { padding: 14px; border-top: 1px solid var(--line); vertical-align: top; font-size: .86rem; }
.report-table td > strong, .report-table td > small { display: block; }
.report-table small { margin-top: 3px; color: var(--muted); }
.attendance-summary { display: grid; gap: 4px; }
.attendance-summary span { display: flex; justify-content: space-between; gap: 10px; }
.attendance-summary strong { font-weight: 800; }
.reliability { display: inline-flex; min-width: 52px; justify-content: center; padding: 5px 9px; border-radius: 999px; font-weight: 850; }
.reliability.strong { color: var(--success); background: #e0f4ea; }
.reliability.watch { color: #8a5b00; background: #fff0c9; }
.reliability.low { color: var(--warning); background: #ffe8e1; }
.report-neutral { color: var(--muted); font-size: .8rem; }
.test-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 16px; border: 1px dashed #d7a58f; border-radius: 16px; background: #fff7f2; }
.test-tools p { margin: 4px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.test-tools .button { flex: 0 0 auto; }
.onboarding-welcome { margin: 26px 0; padding: 24px; border-radius: 22px; color: white; background: var(--navy); box-shadow: var(--shadow); }
.onboarding-welcome h2 { margin: 0 0 8px; font-size: 1.7rem; }
.onboarding-welcome p { color: #d7e3e8; }
.onboarding-welcome ol { margin: 16px 0 0; padding-left: 22px; color: #d7e3e8; line-height: 1.7; }
.badge { width: fit-content; border-radius: 999px; padding: 5px 9px; background: #edf1f3; color: var(--muted); font-size: .78rem; font-weight: 800; }
.live-indicator { color: var(--success); font-size: .82rem; font-weight: 850; }
.calendar-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }
.calendar-actions h2 { margin: 0; }
.calendar-actions p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); }
.calendar-icons { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.calendar-icons details { position: relative; }
.calendar-icon { display: grid; place-items: center; width: 44px; height: 44px; padding: 6px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 8px 22px rgba(7,42,64,.1); transition: transform .15s ease, box-shadow .15s ease; }
.calendar-icon:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(7,42,64,.15); }
.calendar-icon:focus-visible { outline: 3px solid rgba(19,167,160,.25); }
.calendar-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.calendar-icons summary { cursor: pointer; list-style: none; }
.calendar-icons summary::-webkit-details-marker { display: none; }
.calendar-tools { display: flex; align-items: center; gap: 12px; }
.calendar-tools > span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.ride-plan-heading { align-items: center; }
.ride-week-meta { display: flex; flex-wrap: wrap; gap: 5px 8px; margin-top: 7px !important; color: var(--muted); font-size: .88rem; }
.ride-week-meta strong { color: var(--ink); }
.google-days { position: absolute; right: 0; z-index: 8; display: grid; width: 220px; margin-top: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.google-days a { padding: 10px; border-radius: 9px; color: var(--navy); font-weight: 750; }
.google-days a:hover { background: #e6f4f3; }
.ride-table-card { padding: 0; overflow: hidden; }
.ride-table-wrap { overflow-x: auto; }
.ride-table { width: 100%; table-layout: fixed; border-collapse: collapse; background: white; }
.ride-table .col-practice { width: 11%; }
.ride-table .col-trip { width: 10%; }
.ride-table .col-driver { width: 14%; }
.ride-table .col-seats { width: 7%; }
.ride-table .col-riders { width: 23%; }
.ride-table .col-stops { width: 25%; }
.ride-table .col-status { width: 10%; }
.ride-table th { padding: 13px 15px; color: var(--muted); background: #f1f5f6; text-align: left; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; }
.ride-table td { padding: 15px; border-top: 1px solid var(--line); vertical-align: top; font-size: .88rem; }
.ride-table td, .ride-table th { overflow-wrap: anywhere; }
.ride-table tbody tr.trip-to { background: #f2faf9; }
.ride-table tbody tr.trip-home { background: #fff9ee; }
.ride-table tbody tr.trip-to:hover { background: #e8f6f4; }
.ride-table tbody tr.trip-home:hover { background: #fff3dc; }
.ride-table tbody tr.trip-continuation td { border-top-color: #dce6e8; }
.ride-table tbody tr.driver-gap-row.trip-to { background: #ecf8f6; }
.ride-table tbody tr.driver-gap-row.trip-home { background: #fff5e5; }
.ride-table td > strong, .ride-table td > small, .driver-cell strong, .driver-cell small { display: block; }
.practice-summary, .practice-summary strong, .practice-summary small { display: block; min-width: 0; }
.trip-direction { display: inline-flex; align-items: center; gap: 6px; font-weight: 850; line-height: 1.25; }
.trip-direction .ui-icon { flex: 0 0 auto; width: 17px; height: 17px; stroke-width: 2.2; }
.trip-direction.trip-to { color: #08736e; }
.trip-direction.trip-home { color: #9a511d; }
.ride-table small { margin-top: 3px; color: var(--muted); line-height: 1.35; }
.driver-cell strong + small { margin-bottom: 8px; }
.driver-entry { display: block; padding-bottom: 8px; }
.driver-entry + .driver-entry { padding-top: 8px; border-top: 1px solid var(--line); }
.driver-entry + .needs-driver, .driver-cell .needs-driver:first-child { margin-top: 7px; }
.needs-driver { color: var(--warning); font-weight: 850; }
button.needs-driver { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #f4b7a8; border-radius: 10px; background: #fff0eb; text-align: left; }
button.needs-driver:hover { color: white; background: var(--coral); }
button.needs-driver:disabled { opacity: .65; }
.claim-hover { display: none; }
button.needs-driver:hover .claim-label, button.needs-driver:focus-visible .claim-label { display: none; }
button.needs-driver:hover .claim-hover, button.needs-driver:focus-visible .claim-hover { display: inline; }
.waiting-riders { color: var(--warning) !important; font-weight: 750; }
.rider-section-cell { min-width: 0; }
.rider-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.rider-pickup { display: block; min-width: 0; }
.rider-pickup strong, .rider-pickup small { display: block; }
.pickup-plan-cell { min-width: 0; }
.pickup-stops { margin: 0; padding-left: 22px; }
.pickup-stops li + li { margin-top: 9px; }
.pickup-stops strong, .pickup-stops span, .pickup-stops small { display: block; }
.pickup-stops span { line-height: 1.35; }
.pickup-stops .private-address { color: var(--muted); font-style: italic; }
.route-pending { color: var(--muted); font-style: italic; }
.waiting-riders { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #f0b7a8; }
.waiting-riders > strong { display: block; margin-bottom: 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.plan-status { display: inline-flex; padding: 5px 9px; border-radius: 9px; font-size: .75rem; font-weight: 850; white-space: nowrap; }
.plan-status.covered { color: var(--success); background: #e0f4ea; }
.plan-status.open { color: var(--warning); background: #ffe8e1; }
.plan-status.neutral { color: var(--muted); background: #edf2f3; }
.required-mark { margin-left: 6px; color: var(--warning); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.helper { margin-top: 0; color: var(--muted); line-height: 1.5; }
.file-button { position: relative; display: inline-flex; align-items: center; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.schedule-table { display: grid; gap: 10px; }
.schedule-edit-row { display: grid; grid-template-columns: 28px minmax(150px, 1.05fr) 145px minmax(270px, .9fr) minmax(200px, 1.3fr); gap: 8px; align-items: end; padding: 8px; border: 1px solid transparent; border-radius: 14px; }
.schedule-index { align-self: center; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; color: white; background: var(--aqua-dark); font-weight: 850; }
.schedule-field, .schedule-time-fields { min-width: 0; }
.schedule-field { display: grid; gap: 6px; }
.schedule-field-label { display: none; color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.schedule-time-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.schedule-edit-row input[type="time"] { min-width: 138px; padding-inline: 11px; font-variant-numeric: tabular-nums; }
.schedule-edit-row.is-off { border-color: var(--line); background: #f3f5f5; }
.schedule-edit-row.is-off .schedule-title, .schedule-edit-row.is-off .schedule-time-fields, .schedule-edit-row.is-off .schedule-place { opacity: .48; }
.off-toggle { grid-column: 2 / -1; display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--muted); font-size: .82rem; font-weight: 800; }
.off-toggle input { flex: 0 0 18px; width: 18px; height: 18px; accent-color: var(--aqua-dark); }
.schedule-draft-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0 20px; padding: 13px 15px; border: 1px solid #b9d8cd; border-radius: 14px; color: #075c58; background: #eff9f5; }
.schedule-draft-notice > div { display: flex; align-items: center; gap: 11px; min-width: 0; }
.schedule-draft-notice .ui-icon { flex: 0 0 auto; width: 23px; height: 23px; }
.schedule-draft-notice strong, .schedule-draft-notice small { display: block; }
.schedule-draft-notice small { margin-top: 2px; color: var(--muted); }
.schedule-draft-notice .button { flex: 0 0 auto; min-height: 38px; padding: 8px 12px; }
.schedule-location { display: grid; gap: 6px; min-width: 0; }
.schedule-location select, .schedule-location input { min-height: 48px; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 20px 0; }
.profile-grid .field { margin: 0; }
.profile-grid input[readonly] { color: var(--muted); background: #f4f6f6; cursor: not-allowed; }
.profile-children-field { min-width: 0; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.button.compact { min-height: 38px; padding: 7px 11px; font-size: .78rem; }
.button.compact .ui-icon { width: 16px; height: 16px; }
.profile-children { display: grid; gap: 8px; }
.profile-child-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
.remove-profile-child { display: grid; place-items: center; width: 44px; min-height: 44px; border: 1px solid #e3b5b0; border-radius: 12px; color: #8f2b25; background: #fff8f6; }
.remove-profile-child .ui-icon { width: 19px; height: 19px; }
.remove-profile-child:disabled { cursor: not-allowed; opacity: .35; }
.family-directory { padding: 0; overflow: hidden; }
.family-directory-row { border-bottom: 1px solid var(--line); }
.family-directory-row:last-child { border-bottom: 0; }
.family-directory-row > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; list-style: none; }
.family-directory-row > summary::-webkit-details-marker { display: none; }
.family-directory-row > summary span:first-child, .family-directory-row > summary small { display: block; }
.family-directory-row > summary small { margin-top: 3px; color: var(--muted); }
.family-directory-row > div { padding: 0 18px 18px; }
.family-directory-row dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 22px; margin: 0 0 16px; }
.family-directory-row dl div { min-width: 0; }
.family-directory-row dt { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.family-directory-row dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.family-directory-row .remove-family { color: #8f2b25; border-color: #e3b5b0; }
.automation-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 22px 0; padding: 16px; border-radius: 15px; background: #f1f7f7; }
.automation-row label { display: flex; gap: 7px; align-items: center; font-size: .88rem; font-weight: 750; }
.automation-row input[type="number"] { width: 72px; }
.automation-row input[type="datetime-local"] { width: auto; }
.assignment-list .response-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); z-index: 50; padding: 13px 18px; border-radius: 13px; color: white; background: var(--navy); box-shadow: var(--shadow); transition: transform .25s ease; }
.toast.show { transform: translate(-50%, 0); }
.toast.success::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 9px; border-radius: 50%; color: var(--success); background: white; font-weight: 950; }
.onboarding-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: var(--content-width); margin: 0 auto 20px; padding: 0; list-style: none; }
.onboarding-steps li { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: white; }
.onboarding-steps span { display: grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; border-radius: 50%; color: var(--muted); background: #edf1f3; font-size: .76rem; font-weight: 900; }
.onboarding-steps strong { overflow-wrap: anywhere; font-size: .8rem; }
.onboarding-steps .complete, .onboarding-steps .current { color: var(--ink); border-color: #9fd8d2; background: #f1faf8; }
.onboarding-steps .complete span, .onboarding-steps .current span { color: white; background: var(--aqua-dark); }
.onboarding-steps .complete span { font-size: 0; }
.onboarding-steps .complete span::after { content: "✓"; font-size: .8rem; }
.onboarding-panel { outline: none; }
.onboarding-question { margin: 4px 0 20px; color: var(--ink); font-size: 1.05rem; font-weight: 800; }
.onboarding-actions { margin-top: 24px; }
.app-dialog { width: min(460px, calc(100vw - 28px)); max-width: none; padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: white; box-shadow: 0 28px 90px rgba(7,42,64,.28); }
.app-dialog::backdrop { background: rgba(7,42,64,.58); backdrop-filter: blur(4px); }
.dialog-content { padding: 26px; }
.dialog-heading { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 13px; align-items: center; }
.dialog-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: white; background: var(--aqua-dark); font-size: 1.3rem; font-weight: 900; }
.dialog-icon .ui-icon { width: 24px; height: 24px; }
.dialog-heading .eyebrow { margin: 0 0 3px; }
.dialog-content h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.025em; }
.dialog-message { margin: 18px 0 0; padding: 14px 15px; border-radius: 14px; color: var(--muted); background: #f1f6f7; line-height: 1.55; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.phone-code-field { margin-top: 18px; }
.phone-code-dialog .status { margin: 14px 0 0; }
.phone-code-dialog .dialog-actions { flex-wrap: wrap; }
.feedback-dialog { width: min(560px, calc(100vw - 28px)); }
.feedback-dialog .dialog-message { margin-bottom: 18px; }
.help-dialog { width: min(680px, calc(100vw - 28px)); }
.help-steps { display: grid; gap: 13px; margin: 20px 0 0; padding: 0; list-style: none; }
.help-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.help-steps li > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: white; background: var(--aqua-dark); font-size: .82rem; font-weight: 900; }
.help-steps strong { display: block; margin-top: 2px; }
.help-steps p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.help-notes { margin-top: 20px; padding: 14px 15px; border-radius: 14px; background: #f1f6f7; }
.help-notes p { margin: 4px 0 0; color: var(--muted); line-height: 1.45; }
.invitation-row > div:first-child small { display: block; margin-top: 3px; }
.invitation-row .row-actions { flex-wrap: wrap; justify-content: flex-end; }
.cancel-invitation { color: #8f2b25; border-color: #e3b5b0; }
.coordinator-stack { display: grid; gap: 12px; margin-top: 30px; }
.coordinator-panel { border: 1px solid rgba(16,42,58,.1); border-radius: 20px; background: rgba(255,255,255,.78); box-shadow: 0 8px 24px rgba(7,42,64,.05); overflow: hidden; }
.coordinator-panel > summary { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 18px 21px; cursor: pointer; list-style: none; color: var(--navy); font-size: 1rem; font-weight: 850; }
.coordinator-panel > summary::-webkit-details-marker { display: none; }
.coordinator-panel > summary::before { content: "+"; display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px; color: var(--aqua-dark); background: #dff4f1; order: 3; }
.coordinator-panel[open] > summary::before { content: "−"; }
.coordinator-panel > summary small { margin-left: auto; color: var(--muted); font-size: .76rem; font-weight: 750; }
.coordinator-panel[open] > summary { border-bottom: 1px solid var(--line); }
.coordinator-panel-body { padding: 0 20px 20px; }
.coordinator-panel-body > .section-title:first-child { display: none; }
.coordinator-panel-body > .card:last-child { margin: 20px 0 0; box-shadow: none; }
.driver-family-group { padding: 16px 0; border-top: 1px solid var(--line); }
.driver-family-group:first-child { padding-top: 0; border-top: 0; }
.driver-family-group > header { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.driver-family-group header strong, .driver-family-group header small { display: block; }
.driver-family-group header small { margin-top: 3px; color: var(--muted); }
.driver-trip-list { display: grid; gap: 7px; margin-top: 12px; }
.driver-trip { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 11px; border-radius: 12px; background: #f3f7f7; }
.driver-trip .button { min-height: 36px; padding: 7px 11px; }
.feedback-item { padding: 16px 0; border-top: 1px solid var(--line); }
.feedback-item:first-child { padding-top: 0; border-top: 0; }
.feedback-item header { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.feedback-item header strong, .feedback-item header small { display: block; }
.feedback-item header small { margin-top: 3px; color: var(--muted); }
.feedback-item select { width: auto; min-height: 38px; padding: 7px 10px; }
.feedback-item p { margin: 10px 0 0; line-height: 1.5; white-space: pre-wrap; }

@media (min-width: 721px) { #plan .ride-table { min-width: 1180px; } }

@media (max-width: 720px) {
  .topbar { min-height: 68px; padding: 10px 12px; flex-wrap: wrap; gap: 8px 12px; backdrop-filter: none; }
  .brand { min-width: 0; gap: 10px; }
  .brand-mark { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; }
  .brand-copy strong { font-size: 1.3rem; line-height: 1; }
  .brand-copy small { max-width: none; margin-top: 5px; font-size: .62rem; line-height: 1.12; white-space: nowrap; }
  .user-menu { position: relative; right: auto; top: auto; }
  .notification-panel { position: fixed; top: 112px; right: 12px; left: 12px; width: auto; }
  .account-menu-button { padding: 2px; }
  .account-submenu button { padding: 9px 11px; font-size: .82rem; }
  nav { order: 3; justify-content: center; width: 100%; padding-top: 6px; overflow-x: auto; border-top: 1px solid var(--line); }
  .nav-link { flex: 1 1 0; flex-direction: column; gap: 3px; width: auto; max-width: 120px; min-height: 62px; padding: 7px 5px; border-radius: 15px; white-space: normal; }
  .nav-icon { display: block; width: 29px; height: 29px; }
  .nav-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; font-size: .66rem; line-height: 1.05; text-align: center; }
  main { padding: 14px 12px 60px; }
  .hero, .directions, .driver-grid { grid-template-columns: 1fr; }
  .hero { position: static; left: auto; width: 100%; transform: none; }
  .hero-main, .deadline-card, .card { border-radius: 20px; }
  .hero { gap: 10px; margin-bottom: 16px; }
  .hero-main { min-height: 200px; padding: 22px 20px; }
  .hero-main::after { background: linear-gradient(90deg, white 0%, white 52%, rgba(255,255,255,.94) 64%, transparent 88%); }
  .hero-copy { width: 72%; }
  .hero-art { right: 3%; width: 50%; max-width: 230px; height: 62%; object-position: center right; opacity: .95; }
  .hero-main h1 { font-size: 2rem; }
  .hero-main p { margin-bottom: 0; font-size: .84rem; line-height: 1.45; }
  .deadline-card, .card { padding: 18px; }
  .deadline-card { min-height: 0; padding: 15px 17px; display: flex; flex-direction: row; align-items: center; gap: 12px; }
  .deadline-card strong { font-size: 1.1rem; }
  .deadline-card > div p { margin-block: 3px 0; font-size: .78rem; }
  .deadline-card .eyebrow { margin-bottom: 3px; font-size: .62rem; }
  .ride-options { grid-template-columns: 1fr; }
  .response-row { grid-template-columns: 1fr auto; }
  .response-row > :last-child { grid-column: 1 / -1; }
  .invite-grid { grid-template-columns: 1fr; }
  .invite-method { align-items: stretch; flex-direction: column; }
  .report-stats { grid-template-columns: 1fr; gap: 9px; }
  .report-stats article { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; }
  .report-stats strong { font-size: 1.45rem; }
  .report-card { padding: 0; }
  .report-table-wrap { overflow: visible; }
  .report-table, .report-table tbody { display: block; }
  .report-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .report-table tr { display: block; margin: 0 12px 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 15px; background: white; }
  .report-table tbody tr:first-child { margin-top: 12px; }
  .report-table td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid #edf1f3; }
  .report-table td:first-child { border-top: 0; }
  .report-table td::before { content: attr(data-label); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .63rem; font-weight: 850; }
  .invite-link-box { grid-template-columns: 1fr; }
  .invite-link-box .button { width: 100%; }
  .invite-children { grid-column: auto; }
  .test-tools { align-items: stretch; flex-direction: column; }
  .form-actions .button { flex: 1; }
  .dialog-content { padding: 22px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
  .coordinator-panel > summary { padding: 15px; }
  .coordinator-panel-body { padding: 0 12px 12px; }
  .driver-trip { align-items: stretch; flex-direction: column; }
  .driver-trip .button { width: 100%; }
  .feedback-item header { flex-direction: column; }
  .feedback-item select { width: 100%; }
  .weekly-card { border-radius: 18px; }
  .practice-details { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; scroll-snap-type: x proximity; }
  .practice-detail { flex: 0 0 145px; scroll-snap-align: start; }
  .practice-detail.my-drive-day { flex-basis: 172px; }
  .my-drive-summary { grid-template-columns: auto minmax(0, 1fr); gap: 13px; padding: 20px; border-radius: 20px; }
  .my-drive-summary .badge { grid-column: 1 / -1; width: fit-content; }
  .my-drive-summary-icon { width: 48px; height: 48px; border-radius: 15px; }
  .my-drive-summary-icon .ui-icon { width: 25px; height: 25px; }
  .my-drive-summary h1 { font-size: 1.65rem; }
  #drive .section-title { align-items: stretch; flex-direction: column; }
  #drive .section-title .button { width: 100%; }
  .driver-week-card { padding: 0; overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .driver-week-wrap { overflow: visible; }
  .driver-week-table, .driver-week-table tbody { display: block; min-width: 0; }
  .driver-week-table colgroup { display: none; }
  .driver-week-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .driver-week-table tr { display: block; margin-bottom: 12px; padding: 10px 14px; border: 1px solid var(--line); border-left: 4px solid #0a8d86; border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(7,42,64,.06); }
  .driver-week-table tr.trip-to { border-left-color: #0a8d86; background: #f2faf9; }
  .driver-week-table tr.trip-home { border-left-color: #d27432; background: #fff9ee; }
  .driver-week-table td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid #e2eaec; font-size: .84rem; }
  .driver-week-table td:first-child { border-top: 0; }
  .driver-week-table td::before { content: attr(data-label); color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-size: .63rem; font-weight: 850; }
  .driver-week-table td > * { grid-column: 2; }
  .driver-rider-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar-section { padding-inline: 12px; }
  .calendar-grid { grid-template-columns: minmax(76px, 1.45fr) repeat(5, minmax(37px, 1fr)); gap: 3px; }
  .calendar-check { min-height: 44px; }
  .calendar-check span { width: 32px; height: 32px; border-radius: 10px; }
  .ride-status { min-height: 42px; border-radius: 10px; }
  .ride-status > span { min-height: 40px; padding: 4px 2px; }
  .ride-status b { font-size: 1.05rem; }
  .ride-status small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ride-status-legend { gap: 7px 10px; }
  .row-name { font-size: .78rem; }
  .schedule-table { gap: 12px; overflow: visible; }
  .schedule-edit-row { grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "index title" "date date" "times times" "place place" "off off"; gap: 13px 10px; align-items: start; padding: 15px; border-color: var(--line); border-radius: 17px; background: white; box-shadow: 0 7px 20px rgba(7,42,64,.05); }
  .schedule-index { grid-area: index; width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }
  .schedule-title { grid-area: title; }
  .schedule-date { grid-area: date; }
  .schedule-time-fields { grid-area: times; gap: 10px; }
  .schedule-place { grid-area: place; }
  .schedule-field-label { display: block; }
  .schedule-location { grid-column: auto; }
  .off-toggle { grid-area: off; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #f4f7f7; }
  .schedule-edit-row input:not([type="checkbox"]) { min-height: 46px; padding: 9px 10px; }
  .schedule-edit-row input[type="time"] { min-width: 0; }
  .schedule-edit-row.is-off { background: #f3f5f5; box-shadow: none; }
  #schedule-form > .button[type="submit"] { width: 100%; }
  .schedule-draft-notice { align-items: stretch; flex-direction: column; }
  .schedule-draft-notice .button { width: 100%; }
  .profile-grid, .family-directory-row dl { grid-template-columns: 1fr; }
  .family-directory-row > summary { align-items: flex-start; }
  .automation-row { align-items: stretch; flex-direction: column; }
  .automation-row label { flex-wrap: wrap; }
  .automation-row input[type="datetime-local"] { width: 100%; }
  .assignment-list .response-row { grid-template-columns: minmax(0, 1fr) auto; }
  .assignment-list .remove-driver { grid-column: 1 / -1; }
  .calendar-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .calendar-icons { justify-content: flex-start; }
  .ride-plan-heading { align-items: center; }
  .calendar-tools { align-items: flex-end; flex-direction: column; gap: 5px; }
  .calendar-tools > span { font-size: .68rem; }
  .google-days { position: fixed; left: 12px; right: 12px; top: 126px; bottom: auto; width: auto; }
  #plan .ride-table-card { position: static; left: auto; width: 100%; transform: none; }
  .ride-table-card { padding: 0; overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .ride-table-wrap { overflow: visible; }
  .ride-table, .ride-table tbody { display: block; }
  .ride-table colgroup { display: none; }
  .ride-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ride-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 12px; padding: 10px 14px; border: 1px solid var(--line); border-left: 4px solid var(--aqua); border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(7,42,64,.06); }
  .ride-table tr.trip-to { border-left-color: #0a8d86; background: #f2faf9; }
  .ride-table tr.trip-home { border-left-color: #d27432; background: #fff9ee; }
  .ride-table td { display: grid; grid-template-columns: 76px minmax(0, 1fr); padding: 9px 0; border-top: 1px solid #edf1f3; font-size: .84rem; }
  .ride-table td::before { content: attr(data-label); color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-size: .65rem; font-weight: 850; }
  .ride-table td:first-child { grid-column: 1 / -1; grid-template-columns: 76px minmax(0, 1fr); border-top: 0; }
  .ride-table td:first-child .practice-summary { grid-column: 2; }
  .ride-table td:first-child .practice-summary small { margin-top: 4px; line-height: 1.45; overflow-wrap: anywhere; }
  .ride-table td:nth-child(n+2) { grid-column: 1 / -1; }
  .trip-direction { gap: 8px; }
  .trip-direction .ui-icon { width: 19px; height: 19px; }
  .rider-list { grid-template-columns: 1fr 1fr; }
  .onboarding-steps { gap: 5px; margin-bottom: 14px; }
  .onboarding-steps li { display: grid; justify-items: center; gap: 5px; padding: 10px 5px; text-align: center; }
  .onboarding-steps strong { font-size: .65rem; line-height: 1.15; }
}

@media (max-width: 380px) {
  .brand-mark { width: 44px; height: 44px; }
  .brand-copy strong { font-size: 1.25rem; }
  .brand-copy small { max-width: 205px; font-size: .6rem; }
  .hero-main h1 { font-size: 1.85rem; }
  .hero-art { right: 3%; width: 47%; height: 56%; }
  .calendar-grid { grid-template-columns: minmax(66px, 1.3fr) repeat(5, minmax(34px, 1fr)); gap: 2px; }
  .calendar-check span { width: 30px; height: 30px; }
  .weekly-location { padding: 15px 13px; }
  .calendar-icon { width: 40px; height: 40px; }
}

:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #075c58;
  outline-offset: 3px;
}

#main-content:focus { outline: none; }

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

@media (prefers-contrast: more) {
  :root { --line: #63737d; --muted: #455d6b; }
  .card, .hero-main, .deadline-card, input, select, textarea { border-width: 2px; }
  .nav-link.active, .button { outline: 2px solid currentColor; outline-offset: 1px; }
}

@media (forced-colors: active) {
  .nav-link.active, .button, .badge, .plan-status, .calendar-check span, .ride-status { border: 1px solid ButtonText; }
  .trip-direction .ui-icon, .nav-icon, .account-menu-icon { forced-color-adjust: auto; }
}
