.live-ride-card{border:2px solid #19734a;background:#f4fbf7}
.live-ride-card.live{box-shadow:0 0 0 4px rgba(25,115,74,.08),0 8px 24px rgba(17,24,39,.08)}
.live-ride-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.live-ride-head h2{margin:0;color:#0e2958}
.live-ride-badge{display:inline-block;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:900;background:#eaf7ef;color:#19734a}
.live-ride-badge.recording{background:#feecec;color:#a51d25;animation:live-pulse 1.6s infinite}
@keyframes live-pulse{50%{opacity:.58}}
.live-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.live-stat{background:#fff;border:1px solid #cde3d6;border-radius:12px;padding:10px;text-align:center}
.live-stat strong{display:block;color:#0e2958;font-size:20px}.live-stat span{font-size:10px;color:#667085;font-weight:900;text-transform:uppercase}
.recorded-route-map{position:relative;width:100%;height:280px;border:1px solid #cbd5e1;border-radius:14px;background:linear-gradient(135deg,#f8fafc,#eaf2f7);margin-top:12px;display:block;overflow:hidden;touch-action:none;overscroll-behavior:contain;user-select:none}
.recorded-route-map .track-map{width:100%;height:calc(100% - 20px);border:0;border-radius:0;background:transparent;margin:0;display:block;will-change:transform;transition:transform .16s ease-out}
.recorded-route-map.route-map-manual .track-map{transition:none;cursor:grab}.recorded-route-map.route-map-manual:active .track-map{cursor:grabbing}
.track-map{width:100%;height:240px;border:1px solid #cbd5e1;border-radius:14px;background:linear-gradient(135deg,#f8fafc,#eaf2f7);margin-top:12px;display:block}
.track-map-base{fill:#eaf2f7}.route-map-tiles{pointer-events:none}.route-map-tile{image-rendering:auto}
.route-map-attribution{position:absolute;right:4px;bottom:4px;z-index:2;padding:3px 6px;border-radius:5px;background:rgba(255,255,255,.9);font-size:9px;line-height:1.15;box-shadow:0 1px 3px rgba(17,24,39,.18)}.recorded-route-map>.route-map-attribution{position:static;height:20px;display:flex;align-items:center;justify-content:flex-end;padding:2px 6px;border-top:1px solid #d8e2eb;border-radius:0;background:#eaf2f7;box-shadow:none;white-space:nowrap}
.route-map-attribution a{color:#334155;text-decoration:none}.route-map-attribution a:hover{text-decoration:underline}
.route-map-controls{position:absolute;left:6px;top:6px;z-index:3;display:flex;gap:4px}.recorded-route-map .route-map-controls button{width:28px;min-width:28px;height:28px!important;min-height:28px!important;padding:0;border:1px solid #b9c7d7;border-radius:7px;background:rgba(255,255,255,.94);color:#12305e;font:900 15px/1 Arial,sans-serif;box-shadow:0 1px 4px rgba(17,24,39,.18)}.recorded-route-map .route-map-controls button[data-route-map-action="fit"]{width:auto;min-width:44px;padding:0 6px;font-size:9px;text-transform:uppercase;letter-spacing:.02em}
#liveGoogleRoute{display:flex;width:max-content;max-width:100%;margin-top:12px;line-height:1.3;position:relative;z-index:1}
.track-map-grid{stroke:#dce5ec;stroke-width:1}.track-map-line{fill:none;stroke:#cf252d;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.track-map-line-halo{stroke:#fff;stroke-width:9;opacity:.9}
.track-map-gap{fill:none;stroke:#b7791f;stroke-width:5;stroke-linecap:round;stroke-dasharray:10 9;opacity:.95}
.track-map-gap-halo{stroke:#fff;stroke-width:10;stroke-dasharray:none;opacity:.92}
.track-map-start{fill:#19734a;stroke:#fff;stroke-width:3}.track-map-end{fill:#cf252d;stroke:#fff;stroke-width:3}
.route-endpoint{cursor:help}.route-endpoint text{fill:#fff;font:900 9px Arial,Helvetica,sans-serif;text-anchor:middle;pointer-events:none}
.route-map-landmarks{pointer-events:auto}.route-landmark-leader{pointer-events:none}.route-landmark-leader line{stroke:#173d67;stroke-width:1.5;stroke-linecap:round}.route-landmark-leader circle{fill:#173d67;stroke:#fff;stroke-width:1}.route-landmark-marker circle{fill:#173d67;stroke:#fff;stroke-width:2;filter:drop-shadow(0 1px 2px rgba(15,23,42,.35))}.route-landmark-marker text{fill:#fff;font:800 10px Arial,Helvetica,sans-serif;text-anchor:middle;pointer-events:none}
.route-landmark-area circle{fill:#6d4c8d}
.route-marker-labels{pointer-events:none}.route-marker-label rect{fill:rgba(255,255,255,.95);stroke:#cbd5e1;stroke-width:1.2;filter:drop-shadow(0 1px 2px rgba(15,23,42,.22))}.route-marker-label text{font:800 12px Arial,Helvetica,sans-serif;text-anchor:middle;fill:#0e2958}.route-marker-label-end text{fill:#9b1c25}
.track-map-empty{fill:#667085;font:700 14px Arial;text-anchor:middle}
.live-controls{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}.live-controls .btn{flex:1;min-width:145px}
.btn.start-ride{background:#19734a;color:#fff;border-color:#19734a}.btn.end-ride{background:#cf252d;color:#fff;border-color:#cf252d}
.live-share{display:flex;align-items:flex-start;gap:8px;margin-top:12px;font-size:13px;line-height:1.4;color:#475467}.live-share input{margin-top:2px}
.live-privacy{font-size:12px;line-height:1.45;color:#667085;margin-top:8px}
.live-ride-card .ride-app-controls{display:block;box-sizing:border-box;width:max-content;max-width:100%;margin:10px auto;text-align:center;white-space:normal}
.ride-connection{margin:14px 0 2px;padding:13px 14px;border:1px solid #9fc2e8;border-radius:13px;background:#eef6ff;color:#213b61}.ride-connection strong{display:block;color:#12305e;font-size:14px}.ride-connection p{margin:5px 0 10px;font-size:12px;line-height:1.45}.ride-connection .btn{display:inline-flex;width:auto;max-width:100%;margin:0}
.ride-enrichment{border-top:1px solid #cde3d6;margin-top:16px;padding-top:14px}.ride-enrichment label{display:block;font-size:12px;font-weight:900;color:#0e2958;margin:10px 0 5px;text-transform:uppercase}
.ride-enrichment textarea{width:100%;min-height:80px;border:1px solid #cbd5e1;border-radius:10px;padding:11px;font:inherit;resize:vertical}
.landmark-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.landmark-option{display:flex!important;align-items:center;gap:5px;border:1px solid #cbd5e1;border-radius:999px;padding:6px 9px!important;background:#fff;font-size:12px!important;font-weight:700!important;text-transform:none!important;margin:0!important}
.landmark-approval-panel{margin:16px 0 18px;padding:15px;border:2px solid #7fb79a;border-radius:16px;background:#f1faf5}.landmark-approval-panel h4{margin:0;color:#12305e;font-size:18px}.landmark-approval-panel>p{margin:6px 0 10px;color:#43566f;font-size:13px;line-height:1.45}.ride-enrichment .landmark-approval-panel>label{margin-top:0}
.live-row-tools{display:inline-flex;gap:7px;flex-wrap:wrap;margin-top:8px}
.public-live-note{border-radius:13px;padding:13px 14px;background:#fff7dc;border:1px solid #efd77d;color:#624f10;line-height:1.45;margin-top:12px}
.route-gap-note{border-radius:13px;padding:11px 13px;background:#fff7dc;border:1px solid #efd77d;color:#624f10;line-height:1.45;margin:10px 0 0;font-size:13px}
.landmark-chips{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}.landmark-chips>p{flex:0 0 100%;margin:0 0 2px;font-size:12px;line-height:1.4;color:#667085}.landmark-chip{background:#eef2f7;color:#0e2958;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:800}.landmark-chips details{flex:0 0 100%}.landmark-chips details summary{display:inline-flex;cursor:pointer;color:#315b9b;font-size:12px;font-weight:800;padding:5px 0}.landmark-chips .landmark-extra{display:flex;gap:5px;flex-wrap:wrap;margin-top:5px}
.landmark-chips details{margin:2px 0 0;padding-top:5px}.landmark-chips details summary{padding:4px 0}
.btn.ride-publish{background:#19734a;color:#fff;border-color:#19734a}.ride-published-confirmation{flex:1;margin:0;padding:11px 13px;border-radius:11px;background:#eaf7ef;color:#155e3d;font-size:13px;font-weight:900;text-align:center}
.ai-story-editor{margin:18px 0 22px;padding:18px;border:1px solid #9fc2e8;border-radius:18px;background:linear-gradient(180deg,#f4f9ff 0%,#edf6ff 100%);box-shadow:0 8px 22px rgba(17,48,94,.08)}.ai-story-editor.busy{opacity:.78}.ai-editor-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px 12px;margin-bottom:14px}.ai-editor-head>div{display:contents}.ai-editor-head h4{grid-column:1;grid-row:1;margin:0 0 5px;color:#12305e;font-size:20px}.ai-editor-head .ai-editor-chip{grid-column:2;grid-row:1}.ai-editor-head p{grid-column:1/-1;grid-row:2;margin:0;color:#52627a;font-size:14px;line-height:1.45}.ai-editor-chip{flex:0 0 auto;padding:5px 9px;border-radius:999px;background:#19734a;color:#fff;font-size:11px;font-weight:900;letter-spacing:.06em}.ai-editor-chip.test{background:#a15c08}.ai-story-editor select,.ai-story-editor textarea{width:100%;box-sizing:border-box;margin:6px 0 13px;border:1px solid #aab8ca;border-radius:12px;background:#fff;color:#172b4d;font:inherit}.ai-story-editor select{min-height:46px;padding:10px 12px}.ai-story-editor textarea{min-height:104px;padding:12px;resize:vertical}.ai-story-editor textarea.ai-draft{min-height:170px;border:2px solid #6f9fd3}.ai-editor-actions .btn.ai-create{background:#12305e;color:#fff;border-color:#12305e}.ai-editor-actions .btn.ai-append{background:#19734a;color:#fff;border-color:#19734a}.ai-transcript-panel{margin:12px 0 16px;padding:13px;border:1px solid #b8cadf;border-radius:13px;background:#fff}.ai-transcript-panel[hidden]{display:none}.ai-transcript-panel h5{margin:0 0 10px;color:#12305e;font-size:15px}.ai-raw-history{display:grid;gap:9px;margin-bottom:10px}.ai-raw-entry{padding:11px 12px;border:1px solid #d2dce8;border-radius:11px;background:#f6f8fb}.ai-raw-entry-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:6px;color:#12305e;font-size:12px}.ai-raw-entry-head time{color:#667085;font-size:11px;font-weight:500}.ai-raw-entry p{margin:0;color:#263a59;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.ai-transcript-panel>p{margin:0;color:#667085;font-size:12px;line-height:1.45}.ai-editor-targets{display:grid;grid-template-columns:1fr;gap:10px;margin-top:12px}.ai-editor-targets .btn{margin:0}.ai-target-group{padding:11px;border:1px solid #c4d5e8;border-radius:12px;background:#fff}.ai-target-group>strong{display:block;color:#12305e;font-size:13px}.ai-target-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.ai-editor-targets .ai-private-append{color:#17633f;border-color:#62a984}.ai-editor-targets .ai-passenger-replace{background:#12305e;color:#fff;border-color:#12305e}.ai-editor-targets .ai-passenger-append{background:#19734a;color:#fff;border-color:#19734a}.ai-editor-targets .ai-reset{color:#9e2c34}.ai-dictation-status{margin:8px 0 13px;padding:10px 12px;border-radius:11px;background:#e8f7ee;color:#17633f;font-size:13px;font-weight:800;line-height:1.4}.ai-dictation-status[hidden]{display:none}.ai-editor-meta,.ai-editor-warning,.ai-editor-published{margin:3px 0 9px;padding:9px 11px;border-radius:10px;font-size:13px;line-height:1.4}.ai-editor-meta{padding-left:0;color:#637087}.ai-editor-warning{background:#fff0f0;color:#8e2630;font-weight:700}.ai-editor-warning.safe{background:#e8f7ee;color:#17633f}.ai-editor-published{background:#fff7df;color:#72550a}.ai-story-editor .btn:disabled{cursor:not-allowed;opacity:.48}
.ai-editor-actions .btn.ai-translate{flex-basis:100%;background:#315b9b;color:#fff;border-color:#315b9b}
.ai-translation-note{margin:8px 0 13px;color:#52627a;font-size:12px;line-height:1.45}
.ai-dictation-status.processing{background:#eef3fb;color:#294c78}.ai-recording-privacy{margin:5px 0 13px;color:#667085;font-size:12px;line-height:1.45}
@media(max-width:560px){.ai-story-editor{padding:15px}.ai-editor-head{align-items:flex-start}.ai-raw-entry-head{display:block}.ai-raw-entry-head time{display:block;margin-top:3px}.ai-target-buttons{grid-template-columns:1fr}.ai-story-editor .live-controls.ai-editor-actions{display:grid;grid-template-columns:1fr}.ai-story-editor .live-controls.ai-editor-actions .btn{width:100%;margin:0}}
@media(max-width:560px){.live-stats{grid-template-columns:repeat(3,1fr)}.track-map{height:210px}.recorded-route-map{height:250px}.recorded-route-map .track-map{height:calc(100% - 20px)}#liveGoogleRoute{width:100%;justify-content:center}.ride-connection .btn{width:100%;justify-content:center}.live-controls .btn{width:100%;flex-basis:100%}}
