
.playback-page{--replay-blue:#0866ff;--replay-ink:#0b1530;color:var(--replay-ink);background:#fff;border:1px solid #e7edf5;border-radius:24px;overflow:hidden;max-width:1150px;margin:auto;font-family:Inter,Arial,sans-serif;box-shadow:0 8px 32px #14264508}
.playback-page .replay-heading{text-align:center;padding:24px 18px 18px;position:relative}.replay-heading>div{position:absolute;left:24px;top:30px;color:#0866ff}.replay-heading h3{font-size:26px;letter-spacing:-.7px;margin:0;font-weight:750;color:#0b1530}.replay-heading p{color:#677691;font-size:15px;margin:5px 0 0}
.replay-filters{padding:0 20px}.playback-page .form-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr auto;gap:10px;align-items:end}.playback-page .form-field{min-width:0}.playback-page .form-field>label{font-size:11px;color:#60718d;margin-bottom:5px}.playback-page .input-wrap{background:#fff;border:1px solid #e5ebf4;border-radius:14px;min-height:48px;box-shadow:0 3px 8px #172a4904}.playback-page input,.playback-page select{color:#101b35;background:transparent;min-width:0;font-size:13px}.playback-page .btn-primary{background:#0866ff;border-color:#0866ff;color:white}.playback-page .btn-secondary{background:#edf5ff;border:1px solid #dbe9fb;color:#065cd9}.playback-page button:focus-visible,.playback-page input:focus-visible,.playback-page select:focus-visible{outline:3px solid #86baff;outline-offset:3px}
.replay-tools{display:flex;align-items:center;gap:12px;padding:12px 20px}.replay-tools small{color:#6a7890;font-size:11px}.playback-page .history-ride-selector{border:0;border-top:1px solid #edf1f7;box-shadow:none;border-radius:0;margin:0;padding:10px 20px;gap:12px;background:#fff}.playback-page .history-ride-selector>div:first-child{display:none}.playback-page .history-ride-selector .input-wrap{flex:1;box-shadow:none;min-height:40px}.playback-page .history-ride-selector .badge{font-size:10px}
.playback-page .history-playback-card{border:0;border-radius:0;box-shadow:none;background:#fff;overflow:visible}.playback-page .history-map{height:470px!important;min-height:0!important;border-radius:0}.playback-page .osm-route-map-shell{border:0;border-radius:0}.playback-page .osm-map-legend{display:none}.playback-page .history-playback-controls{position:relative;margin:-20px 18px 14px;z-index:450;background:white;border:1px solid #e8edf5;border-radius:18px;box-shadow:0 5px 18px #10213c18;padding:13px 16px;display:flex;gap:16px;align-items:center}.playback-page .history-playback-controls>.btn{font-size:0;width:48px;height:48px;min-width:48px;padding:0;border-radius:50%;display:grid;place-items:center}.playback-page .history-playback-controls>.btn svg{width:23px;height:23px}.playback-page input[type=range]{accent-color:#0866ff;flex:1;width:80px;min-width:40px}.playback-page .history-playback-reading{min-width:78px;gap:2px}.playback-page .history-playback-reading strong{font-size:16px;color:#0b1530}.playback-page .history-playback-reading span{font-size:11px;color:#61718c!important}.playback-page [data-history-playback-rate]{background:#edf5ff;border:0;border-radius:20px;padding:10px;max-width:75px}
.replay-stops{padding:10px 20px 20px}.replay-stops>header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.replay-stops h4{margin:0;font-size:21px;color:#0b1530}.replay-stops header>span{font-size:12px;color:#61718c}.replay-stop{display:grid;grid-template-columns:34px minmax(100px,1fr) repeat(3,minmax(70px,.5fr)) 18px;align-items:center;gap:14px;width:100%;text-align:start;background:white;border:1px solid #e7edf5;border-radius:14px;padding:15px 14px;margin:9px 0;cursor:pointer;color:#0b1530}.replay-stop:hover{background:#f5f9ff;border-color:#b5d3ff}.replay-number{display:grid;place-items:center;background:#ffce00;border-radius:50%;width:32px;height:32px;font-size:17px;font-weight:800}.replay-stop strong{display:block;font-size:14px;font-weight:700}.replay-stop small{display:block;font-size:12px;color:#66758d;margin-bottom:4px}.replay-stop-name small{margin:4px 0 0}.replay-time{border-left:1px solid #edf1f7;padding-left:14px}.replay-stop>svg{width:18px;color:#63728b}.replay-summary{border-top:1px solid #e7edf5;padding:18px 20px}.replay-summary summary{cursor:pointer;color:#41638d;font-weight:600}.replay-summary .history-summary{margin:15px 0;background:#f6f9fd}.replay-empty{padding:50px 20px;text-align:center;color:#65738a}
@media(max-width:700px){.playback-page{border-radius:18px}.replay-heading h3{font-size:22px}.replay-heading>div{display:none}.playback-page .form-grid{grid-template-columns:1fr 1fr}.playback-page .form-field:first-child{grid-column:1/-1}.playback-page .history-load-field{grid-column:1/-1}.playback-page .history-load-field>label{display:none}.playback-page .history-load-field button{width:100%}.replay-filters{padding:0 12px}.replay-tools{padding:10px 12px}.playback-page .history-ride-selector{padding:8px 12px}.playback-page .history-map{height:380px!important}.playback-page .history-playback-controls{margin:-18px 10px 10px;padding:10px;gap:9px}.playback-page .history-playback-controls>.btn{width:42px;height:42px;min-width:42px}.replay-stops{padding:12px}.replay-stops>header{align-items:start}.replay-stops header>span{font-size:11px;text-align:end;max-width:160px}.replay-stop{grid-template-columns:28px minmax(65px,1fr) repeat(3,minmax(42px,.7fr));gap:7px;padding:12px 8px}.replay-stop>svg{display:none}.replay-number{width:27px;height:27px;font-size:15px}.replay-stop strong{font-size:12px}.replay-stop small{font-size:10px}.replay-time{padding-left:6px}.replay-stops h4{font-size:19px}.replay-stop-name small{font-size:10px}}

.playback-page .history-ride-selector{display:flex}.playback-page .history-ride-selector .badge{flex:none;white-space:nowrap}.playback-page .history-ride-selector .input-wrap{min-width:0}.playback-page .btn-primary{box-shadow:0 4px 10px #0866ff20}.playback-page .history-ride-selector select{width:100%}
.parent-history-selector{padding:12px 0;margin-bottom:12px}.parent-history-selector h4{margin:0 0 10px}.parent-history-rides{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px;max-height:220px;overflow:auto;padding:3px}.parent-history-ride{padding:12px 14px;text-align:start;border:1px solid;border-left-width:5px;border-radius:10px;font:inherit;font-size:13px;cursor:pointer}.parent-history-ride.is-pickup{background:#fff1f2;border-color:#dc2638;color:#9f1526}.parent-history-ride.is-return{background:#eff6ff;border-color:#2563eb;color:#1742a0}.parent-history-ride[aria-pressed="true"]{outline:2px solid currentColor;outline-offset:1px;font-weight:700}.parent-history-selector>small{display:block;margin:10px 3px}.pickup-key{color:#b91c30}.return-key{color:#1d4ed8}.parent-history-table{overflow-x:auto;margin-top:8px}.parent-history-table table{width:100%;min-width:760px;border-collapse:collapse;font-size:13px}.parent-history-table th,.parent-history-table td{padding:13px 12px;text-align:start;border-bottom:1px solid #e5eaf0;white-space:nowrap}.parent-history-table thead th{background:#f1f5f9;color:#475569;font-size:12px}.parent-history-table tbody th button{display:flex;align-items:center;gap:8px;background:none;border:0;color:#172235;cursor:pointer;font:inherit;font-weight:600}.parent-history-table .icon{width:20px;height:20px;color:#2563eb}.parent-history-note{display:block;margin:12px;color:#64748b}.history-stop-node .icon{width:22px;height:22px;stroke-width:2.2}@media(max-width:600px){.parent-history-rides{grid-template-columns:1fr;max-height:190px}.parent-history-ride{padding:10px 12px}}

.parent-history-selector>label{display:block;margin-bottom:8px;font-weight:700}.parent-history-dropdown{display:block;width:100%;min-height:48px;border:1px solid transparent;border-radius:10px;padding:12px;font:inherit;font-weight:600;color:#fff;cursor:pointer}.parent-history-dropdown.is-pickup,.parent-history-dropdown option.is-pickup{background:#15803d;color:white}.parent-history-dropdown.is-return,.parent-history-dropdown option.is-return{background:#2563eb;color:white}.parent-history-dropdown:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}.parent-history-selector .pickup-key{color:#15803d}
/* Parent playback: a desktop table becomes readable timing cards on phones. */
.is-parent-history .parent-history-selector{padding:12px 20px;min-width:0}
@media(max-width:700px){
 .is-parent-history{width:100%;min-width:0;border-radius:14px}
 .is-parent-history .replay-heading{padding:16px 12px 12px}
 .is-parent-history .replay-heading h3{font-size:21px;letter-spacing:-.3px}
 .is-parent-history .replay-heading p{font-size:13px}
 .is-parent-history .parent-history-selector{padding:8px 12px;margin-bottom:6px}
 .is-parent-history .parent-history-dropdown{font-size:14px;text-overflow:ellipsis;padding:12px 8px}
 .is-parent-history .input-wrap{min-height:46px;max-width:100%}
 .is-parent-history input[type=date]{width:100%;max-width:100%;box-sizing:border-box;padding:10px 4px}
 .is-parent-history .history-map{height:clamp(250px,43svh,360px)!important}
 .is-parent-history .history-playback-controls{display:grid;grid-template-columns:48px minmax(0,1fr) 72px;gap:8px;margin:0 8px 10px;padding:10px;border-radius:12px}
 .is-parent-history .history-playback-controls>.btn{grid-column:1;grid-row:1;width:46px;height:46px;min-width:46px}
 .is-parent-history .history-playback-reading{grid-column:2;grid-row:1;min-width:0;text-align:center}
 .is-parent-history [data-history-playback-rate]{grid-column:3;grid-row:1;min-height:44px;width:72px}
 .is-parent-history input[data-history-playback-range]{grid-column:1/-1;grid-row:2;width:100%;min-height:34px;margin:0}
 .is-parent-history .replay-stops>header{flex-direction:column;gap:4px;margin-bottom:10px}
 .is-parent-history .replay-stops header>span{max-width:none;text-align:start}
 .is-parent-history .parent-history-table{overflow:visible;margin:0}
 .is-parent-history .parent-history-table table{display:block;min-width:0;width:100%}
 .is-parent-history .parent-history-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .is-parent-history .parent-history-table tbody{display:grid;gap:12px}
 .is-parent-history .parent-history-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #e2e8f0;border-radius:14px;overflow:hidden;background:#f8fafc}
 .is-parent-history .parent-history-table tbody th{grid-column:1/-1;padding:8px 12px;background:#eff6ff;white-space:normal}
 .is-parent-history .parent-history-table tbody th button{min-height:44px;width:100%;text-align:start;overflow-wrap:anywhere;font-size:15px}
 .is-parent-history .parent-history-table td{padding:12px;white-space:normal;min-width:0;font-size:15px;font-weight:650;overflow-wrap:anywhere}
 .is-parent-history .parent-history-table td[data-label]::before{content:attr(data-label);display:block;font-size:11px;font-weight:500;color:#64748b;line-height:1.4;margin-bottom:5px}
 .is-parent-history .parent-history-table td:last-child{grid-column:1/-1;background:#eef6ff}
 .is-parent-history .parent-history-note{font-size:11px;line-height:1.5;margin:10px 0}
 .is-parent-history .replay-summary{padding:14px 12px}
 .is-parent-history .replay-summary summary{min-height:44px;padding-top:10px}
 .is-parent-history .history-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .is-parent-history .history-summary>div{min-width:0;overflow-wrap:anywhere}
}
.playback-page .history-playback-controls{margin-top:18px}
.replay-speed-stepper{display:grid;grid-template-columns:44px 42px;grid-template-rows:32px 32px;gap:2px;flex:none;background:#edf5ff;border-radius:12px;padding:4px;color:#0756c7}
.replay-speed-stepper button{border:0;background:#dceaff;color:#0756c7;cursor:pointer;border-radius:7px;min-height:32px;font-size:15px}
.replay-speed-stepper output{grid-column:2;grid-row:1/3;align-self:center;text-align:center;font-weight:750;font-size:16px}
.replay-speed-stepper button:disabled{opacity:.35;cursor:default}
.parent-journey-dropdown{position:relative;border:1px solid #dbe4ef;border-radius:12px;background:#f8fafc;color:#172235}
.parent-journey-dropdown summary{padding:14px 12px;min-height:48px;cursor:pointer;font-weight:600;overflow-wrap:anywhere}
.parent-journey-options{max-height:260px;overflow-y:auto;padding:8px;display:grid;gap:8px;border-top:1px solid #dbe4ef}
.parent-journey-option{display:flex;align-items:center;gap:12px;padding:12px;border-radius:9px;min-height:48px;color:#fff;cursor:pointer;font-size:13px}
.parent-journey-option.is-pickup{background:#15803d}.parent-journey-option.is-return{background:#2563eb}
.parent-journey-option input{width:22px;height:22px;flex:none;accent-color:#172235}
.parent-journey-option span{overflow-wrap:anywhere;min-width:0}
.parent-journey-dropdown .journey-selection-apply{margin:8px;min-height:44px;width:calc(100% - 16px);border:0;border-radius:8px;background:#172235;color:white;cursor:pointer}
@media(max-width:700px){.is-parent-history .history-playback-controls{margin-top:16px;grid-template-columns:46px minmax(0,1fr) 90px}.is-parent-history .replay-speed-stepper{grid-column:3;grid-row:1}.replay-speed-stepper{grid-template-columns:40px 38px}.parent-journey-options{max-height:240px}}
/* Parent history dates: keep native date controls clear of decorative icons. */
.is-parent-history #historyFilterForm .form-field:has(input[type="date"]){display:flex;flex-direction:column;gap:7px;min-width:0}
.is-parent-history #historyFilterForm .form-field:has(input[type="date"])>label{display:block;position:static;margin:0;line-height:1.5;white-space:normal}
.is-parent-history #historyFilterForm .input-wrap:has(input[type="date"]){display:block;min-width:0;min-height:48px;height:auto;padding:0}
.is-parent-history #historyFilterForm .input-wrap:has(input[type="date"])>.icon{display:none}
.is-parent-history #historyFilterForm input[type="date"]{display:block;width:100%;max-width:100%;min-width:0;min-height:48px;height:auto;margin:0;padding:12px!important;box-sizing:border-box;font-size:16px;line-height:1.5}
.is-parent-history #historyFilterForm input[type="date"]::-webkit-date-and-time-value{text-align:start;min-height:24px}
@media(max-width:480px){.is-parent-history #historyFilterForm .form-grid{grid-template-columns:minmax(0,1fr);gap:14px}.is-parent-history #historyFilterForm .form-field{grid-column:1/-1}}
html[data-theme="dark"] .is-parent-history #historyFilterForm input[type="date"]{color-scheme:dark}
