.aid-setup,.aid-launcher{border:1px solid var(--border);background:var(--card);color:var(--foreground);border-radius:18px;margin:18px 0;padding:18px}.aid-brand,.aid-panel-heading{align-items:center;gap:11px;display:flex}.aid-brand>span{background:var(--primary);width:40px;height:40px;color:var(--primary-foreground);border-radius:12px;place-items:center;display:grid}.aid-brand small,.aid-panel-heading small{letter-spacing:.16em;color:var(--primary);font-size:10px;font-weight:800}.aid-brand h2{margin:2px 0 0;font-size:22px}.aid-note,.aid-fine-print{color:var(--muted-foreground);font-size:13px;line-height:1.5}.aid-fine-print{margin-bottom:0;font-size:11px}.aid-launcher{align-items:center;gap:12px;display:flex}.aid-launcher p{color:var(--muted-foreground);margin:4px 0 0;font-size:13px}.aid-setup>label{margin:16px 0}.aid-inline-actions{flex-wrap:wrap;gap:8px;margin:12px 0;display:flex}.aid-inline-actions>*{white-space:normal;height:auto;min-height:42px}.aid-panel{border:1px solid var(--border);background:var(--muted);border-radius:14px;margin:16px 0;padding:15px}.aid-panel-heading{justify-content:space-between}.aid-panel-heading h3{margin:2px 0 0;font-size:18px}.aid-online,.aid-offline,.aid-delayed{border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800}.aid-online{background:var(--primary);color:var(--primary-foreground)}.aid-offline,.aid-delayed{background:var(--rust);color:var(--card)}.aid-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0;display:grid}.aid-panel label,.aid-detail-body label,.aid-create-race label{font-size:10px}.aid-panel input,.aid-detail-body input,.aid-detail-body select,.aid-setup select{min-width:0;height:46px!important}.aid-detail-body textarea{border:1px solid var(--border);background:var(--card);width:100%;color:var(--foreground);font:inherit;resize:vertical;border-radius:12px;margin-top:7px;padding:12px;font-size:16px;display:block}.aid-primary-action{width:100%;height:auto;min-height:48px;margin-top:10px}.aid-create-race{gap:10px;display:grid}.aid-details{border-top:1px solid var(--border);margin-top:12px}.aid-details summary{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;padding:16px 0;list-style:none;display:flex}.aid-details summary span{gap:4px;display:grid}.aid-details summary small{color:var(--muted-foreground);font-size:12px}.aid-detail-body{padding-bottom:10px}.aid-detail-body>label{margin:12px 0}.aid-station-row{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:10px;padding:12px 0;display:flex}.aid-station-row span{gap:4px;display:grid}.aid-station-row small{color:var(--muted-foreground);font-size:12px}.aid-station-row>small{text-align:right}.aid-member-result{border:0;border-bottom:1px solid var(--border);width:100%;color:var(--foreground);text-align:left;cursor:pointer;background:0 0;justify-content:space-between;padding:12px 4px;display:flex}.aid-member-result small{color:var(--muted-foreground)}.aid-member-pick{justify-content:space-between;align-items:center;padding:10px 0;display:flex}.aid-crew-shell{max-width:960px;padding:0 18px calc(105px + env(safe-area-inset-bottom,0px));min-height:100vh;margin:0 auto}.aid-crew-header{padding:calc(var(--safe-top,0px) + 20px) 0 16px;border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;display:flex}.aid-crew-title{align-items:center;gap:10px;display:flex}.aid-crew-title img{object-fit:contain;width:38px;height:38px}.aid-crew-title strong{letter-spacing:.08em;font-size:15px;display:block}.aid-crew-title small{color:var(--muted-foreground)}.aid-crew-main{padding-top:22px}.aid-race-kicker{letter-spacing:.18em;color:var(--primary);font-size:11px;font-weight:800}.aid-crew-main h1{margin:8px 0;font-size:clamp(30px,6vw,48px);line-height:1.05}.aid-race-meta{color:var(--muted-foreground);font-size:13px}.aid-hud{border:1px solid var(--primary);background:var(--card);box-shadow:0 12px 36px color-mix(in srgb,var(--foreground) 9%,transparent);border-radius:18px;margin:22px 0;padding:20px}.aid-hud-top{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.aid-hud-top h2{margin:4px 0 0;font-size:22px}.aid-hud-time{color:var(--muted-foreground);margin:14px 0 0;font-size:13px}.aid-metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:18px;display:grid}.aid-metric{background:var(--muted);border-radius:12px;min-width:0;padding:14px}.aid-metric small{color:var(--muted-foreground);letter-spacing:.08em;font-size:10px;font-weight:800;display:block}.aid-metric strong{font-variant-numeric:tabular-nums;margin-top:7px;font-size:clamp(20px,4vw,30px);line-height:1.1;display:block}.aid-metric span{color:var(--muted-foreground);margin-top:5px;font-size:11px;display:block}.aid-alert{border-left:3px solid var(--rust);background:color-mix(in srgb,var(--rust) 9%,var(--card));align-items:flex-start;gap:9px;margin-top:12px;padding:12px;font-size:13px;line-height:1.45;display:flex}.aid-alert svg{color:var(--rust);flex:none}.aid-next{background:var(--primary);color:var(--primary-foreground);border-radius:18px;margin:20px 0;padding:20px}.aid-next small{letter-spacing:.15em;font-size:10px;font-weight:800}.aid-next h2{margin:7px 0;font-size:clamp(26px,5vw,40px)}.aid-next-eta{font-variant-numeric:tabular-nums;font-size:clamp(21px,4vw,30px);font-weight:800}.aid-next p{margin:8px 0 0;line-height:1.5}.aid-next .aid-schedule{font-size:13px;font-weight:700}.aid-crew-grid{grid-template-columns:minmax(0,1.3fr) minmax(260px,.7fr);gap:16px;display:grid}.aid-crew-card{border:1px solid var(--border);background:var(--card);border-radius:16px;padding:18px}.aid-crew-card h2{margin:0 0 12px;font-size:19px}.aid-crew-card h3{margin:18px 0 8px;font-size:15px}.aid-eta-row{border-top:1px solid var(--border);padding:13px 0}.aid-eta-row:first-of-type{border-top:0}.aid-eta-row strong,.aid-eta-row small{display:block}.aid-eta-row small{color:var(--muted-foreground);margin-top:4px;line-height:1.4}.aid-eta-row .aid-ahead{color:var(--primary);font-weight:800}.aid-eta-row .aid-behind{color:var(--rust);font-weight:800}.aid-checklist{gap:8px;margin:0;padding:0;list-style:none;display:grid}.aid-checklist label{border:1px solid var(--border);background:var(--card);color:var(--foreground);letter-spacing:0;text-transform:none;border-radius:10px;align-items:flex-start;gap:10px;padding:11px;font-size:14px;font-weight:600;display:flex}.aid-checklist input{flex:none;width:20px;margin:0;height:20px!important}.aid-checklist input:checked+span{color:var(--muted-foreground);text-decoration:line-through}.aid-checkin-bar{bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:4;border:1px solid var(--border);background:var(--card);box-shadow:0 8px 28px color-mix(in srgb,var(--foreground) 16%,transparent);border-radius:15px;margin-top:18px;padding:10px;position:sticky}.aid-checkin-bar button{width:100%;height:auto;min-height:52px}.aid-checkedin{color:var(--primary);font-weight:700}.aid-empty{border:1px dashed var(--border);color:var(--muted-foreground);border-radius:14px;padding:22px;line-height:1.55}.aid-crew-footer{color:var(--muted-foreground);margin:20px 0;font-size:12px;line-height:1.5}.aid-crew-error{gap:14px;max-width:480px;margin:50px auto;display:grid}.aid-crew-error p{color:var(--muted-foreground);line-height:1.55}@media (width<=720px){.aid-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.aid-crew-grid{grid-template-columns:1fr}.aid-crew-shell{padding-inline:14px}.aid-hud{padding:16px}.aid-next{padding:17px}}@media (width<=420px){.aid-form-grid{grid-template-columns:1fr}.aid-inline-actions>*{flex:140px}.aid-station-row{align-items:flex-start}.aid-station-row>small{max-width:110px}.aid-metric{padding:12px}}@media (prefers-reduced-motion:reduce){.aid-setup *,.aid-crew-shell *{scroll-behavior:auto!important;transition:none!important}}.aid-manifest{gap:.4rem;display:grid}.aid-manifest-title{margin:.5rem 0 .25rem;font-size:.85rem;font-weight:700}.aid-manifest-row{border:1px solid var(--border);background:var(--card);border-radius:.6rem;justify-content:space-between;align-items:center;gap:.5rem;padding:.5rem .6rem;display:flex}.aid-manifest-row>span:first-child{min-width:0;display:grid}.aid-manifest-row small{color:var(--muted-foreground);font-size:.72rem}.aid-qty{flex-shrink:0;align-items:center;gap:.35rem;display:flex}.aid-qty button{border:1px solid var(--border);background:var(--secondary);width:2.25rem;height:2.25rem;color:var(--foreground);border-radius:.5rem;place-items:center;display:grid}.aid-qty button:disabled{opacity:.4}.aid-qty strong{text-align:center;min-width:1.75rem;font-size:1.05rem}.aid-qty .aid-qty-remove{width:1.75rem;color:var(--muted-foreground);background:0 0;border:0}.aid-pass{justify-items:center;gap:.6rem;display:grid}.aid-qr{background:#fff;border-radius:.75rem;padding:.5rem}.aid-crew-name{gap:.6rem;max-width:26rem;margin:2rem auto;display:grid}.aid-handoff{border:1px solid var(--border);background:var(--secondary);border-radius:.75rem;gap:.5rem;margin:.75rem 0;padding:.75rem;display:grid}.aid-handoff h3{align-items:center;gap:.4rem;margin:0;font-size:.9rem;font-weight:700;display:flex}.aid-handoff-row{align-items:center;gap:.5rem;display:flex}.aid-handoff-row select{border:1px solid var(--border);background:var(--background);min-width:0;height:2.5rem;color:var(--foreground);border-radius:.5rem;flex:1;padding:0 .5rem}.aid-seen{gap:.35rem;margin:0 0 .5rem;padding:0;list-style:none;display:grid}.aid-seen li{justify-content:space-between;gap:.5rem;display:flex}.aid-vest-row{border:1px solid var(--border);border-radius:.6rem;justify-content:space-between;align-items:center;gap:.5rem;padding:.5rem .6rem;display:flex}.aid-vest-row>span:first-child{gap:3px;min-width:0;display:grid}.aid-vest-carbs{width:max-content;max-width:100%;color:var(--muted-foreground);text-align:left;text-underline-offset:2px;background:0 0;border:0;padding:0;font-size:11px;text-decoration:underline}.aid-vest-carb-edit{align-items:center;gap:4px;display:flex}.aid-vest-carb-edit input{width:88px;min-height:34px;font-size:14px;height:34px!important}.aid-vest-carb-edit button{min-height:34px}.aid-race-fuel{border:1px solid var(--primary);background:var(--card);border-radius:12px;gap:8px;margin:12px 0;padding:13px;display:grid}.aid-race-fuel-head{justify-content:space-between;align-items:center;gap:10px;display:flex}.aid-race-fuel-head strong{font-size:20px}.aid-race-fuel progress{width:100%;height:8px;accent-color:var(--primary)}.aid-race-fuel small{color:var(--muted-foreground);line-height:1.45}.aid-quiet-alert{background:var(--destructive);color:var(--destructive-foreground);box-shadow:0 8px 24px color-mix(in srgb,var(--destructive) 35%,transparent);border-radius:14px;align-items:flex-start;gap:12px;margin:14px 0;padding:14px;display:flex}.aid-quiet-alert svg{flex:none;margin-top:2px}.aid-quiet-alert strong{font-size:16px}.aid-quiet-alert p{opacity:.95;margin:4px 0 0;font-size:13px;line-height:1.45}.aid-battery-low{border-left-color:var(--destructive)}.aid-route-screen{max-width:1040px;min-height:100vh;padding:0 20px calc(48px + env(safe-area-inset-bottom,0px));margin:0 auto}.aid-route-header{padding:calc(var(--safe-top,0px) + 12px) 0;border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;display:flex}.aid-route-title{padding:26px 0 8px}.aid-route-title>small{color:var(--primary);letter-spacing:.16em;font-size:11px;font-weight:800}.aid-route-title h1{margin:7px 0;font-size:clamp(30px,6vw,48px);line-height:1.05}.aid-route-title p{color:var(--muted-foreground);margin:0;line-height:1.5}.aid-route-stack{gap:16px;display:grid}.aid-route-card{border:1px solid var(--border);background:var(--card);border-radius:18px;min-width:0;padding:18px}.aid-route-progress{background:var(--muted);border-radius:12px;justify-content:space-between;align-items:center;gap:12px;margin:16px 0 8px;padding:13px;display:flex}.aid-route-progress>span{gap:4px;display:grid}.aid-route-progress small{color:var(--muted-foreground);font-size:12px}.aid-route-progress>strong{font-variant-numeric:tabular-nums;font-size:24px}.aid-route-progress-bar{width:100%;height:8px;accent-color:var(--primary)}.aid-route-map{background:var(--muted);touch-action:manipulation;cursor:crosshair;border-radius:14px;width:100%;height:auto;max-height:460px;margin:14px 0 4px;display:block}.aid-route-line-base,.aid-route-line-complete{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:7px}.aid-route-line-base{stroke:var(--border)}.aid-route-line-complete{stroke:var(--primary)}.aid-route-station{cursor:pointer}.aid-route-station circle{fill:var(--card);stroke:var(--foreground);stroke-width:4px}.aid-route-station.is-selected circle{fill:var(--primary);stroke:var(--primary-foreground)}.aid-route-runner circle{fill:var(--primary);stroke:var(--primary-foreground);stroke-width:3px}.aid-route-runner path{stroke:var(--primary-foreground);stroke-width:2px}.aid-route-draft circle{fill:var(--card);stroke:var(--rust);stroke-width:3px;stroke-dasharray:3 2}.aid-route-draft path{stroke:var(--rust);stroke-width:2px}.aid-route-legend{color:var(--muted-foreground);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;font-size:12px;display:flex}.aid-route-legend span{align-items:center;gap:5px;display:flex}.aid-route-legend i{border-radius:50%;width:10px;height:10px;display:inline-block}.aid-legend-station{background:var(--primary)}.aid-legend-runner{border:2px solid var(--primary);background:var(--card)}.aid-route-snap{border-top:1px solid var(--border);grid-template-columns:minmax(180px,.8fr) minmax(220px,1.2fr);gap:12px;margin-top:16px;padding-top:16px;display:grid}.aid-route-snap label{color:var(--muted-foreground);gap:7px;font-size:11px;font-weight:700;display:grid}.aid-route-snap select{border:1px solid var(--border);background:var(--background);width:100%;height:44px;color:var(--foreground);border-radius:10px;padding:0 10px;font-size:16px}.aid-route-snap input{width:100%;accent-color:var(--primary)}.aid-route-snap button{white-space:normal;grid-column:1/-1;height:auto;min-height:48px}.aid-elevation-chart{background:var(--muted);border-radius:12px;width:100%;height:auto;margin-top:14px;display:block}.aid-elevation-area{fill:color-mix(in srgb,var(--primary) 14%,transparent)}.aid-elevation-line{fill:none;stroke:var(--primary);stroke-width:3px;stroke-linejoin:round}.aid-elevation-station line{stroke:var(--muted-foreground);stroke-width:1px;stroke-dasharray:3 3}.aid-elevation-station circle{fill:var(--card);stroke:var(--foreground);stroke-width:2px}.aid-elevation-runner line{stroke:var(--rust);stroke-width:2px}.aid-elevation-runner circle{fill:var(--rust)}.aid-route-privacy{color:var(--muted-foreground);margin:18px 0;font-size:12px;line-height:1.55}@media (width<=620px){.aid-route-screen{padding-inline:12px}.aid-route-card{padding:13px}.aid-route-snap{grid-template-columns:1fr}.aid-route-snap button{grid-column:1}.aid-route-map{min-height:240px}.aid-route-title{padding-top:20px}}.aid-alert-controls{gap:.4rem;margin-top:.5rem;display:grid}.aid-alert-controls .aid-race-meta{align-items:center;gap:.35rem;display:flex}.aid-station-sheet{max-height:80dvh;padding-bottom:calc(1.25rem + env(safe-area-inset-bottom));overflow-y:auto}.aid-station-sheet-body{gap:.6rem;padding:0 1rem;display:grid}.aid-station-sheet-body h4{align-items:center;gap:.4rem;margin-top:.4rem;font-weight:700;display:flex}.aid-station-sheet-body .aid-race-meta{align-items:center;gap:.35rem;display:flex}.aid-sheet-list{gap:.35rem;display:grid}.aid-sheet-list li{border:1px solid var(--border);background:var(--card);border-radius:.6rem;justify-content:space-between;gap:.75rem;padding:.5rem .7rem;display:flex}
