/* VitoBook semantic tokens and consolidated component styles. */
:root {
 -webkit-tap-highlight-color: transparent;
 --canvas:#F5F6F8;
 --surface:#FFFFFF;
 --surface-secondary:#F8FAFC;
 --surface-hover:#F1F5F9;
 --surface-pressed:#E8EDF3;
 --surface-disabled:#F1F3F6;
 --ink:#17212F;
 --text-secondary:#475569;
 --muted:#64748B;
 --placeholder:#6B7280;
 --text-disabled:#94A3B8;
 --on-action:#FFFFFF;
 --line:#E2E8F0;
 --control-border:#CBD5E1;
 --separator:#EDF1F5;
 --border-hover:#94A3B8;
 --accent:#2457D6;
 --accent-hover:#1D46B0;
 --accent-pressed:#183A91;
 --accent-soft:#EEF3FF;
 --accent-soft-hover:#E3EBFF;
 --accent-border:#C7D7FE;
 --transfer:#166B56;
 --transfer-accent:#23836A;
 --transfer-bg:#EAF6F0;
 --transfer-border:#B9DFCE;
 --allocation:#3659A2;
 --allocation-accent:#577AC1;
 --allocation-bg:#EEF2FC;
 --allocation-border:#C8D5F0;
 --attention:#8A5408;
 --attention-accent:#B7791F;
 --attention-bg:#FFF6E5;
 --attention-border:#F0D39B;
 --conflict:#B42318;
 --conflict-hover:#912018;
 --conflict-pressed:#751A13;
 --conflict-bg:#FEF0EE;
 --conflict-border:#F5C0BA;
 --history:#526174;
 --history-bg:#F1F4F7;
 --history-border:#DCE3EB;
 --now:#D92D20;
 --overlay:rgba(15,23,42,.32);
 --shadow-small:0 1px 2px rgba(15,23,42,.04);
 --shadow-menu:0 8px 24px rgba(15,23,42,.10);
 --shadow-dialog:0 24px 64px rgba(15,23,42,.18),0 4px 12px rgba(15,23,42,.08);
 font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 color:var(--ink);
 background:var(--canvas);
 font-synthesis:none;
}
* { box-sizing: border-box; }
.full { width: 100%; }
.agency-balance { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.agency-balance b { font-size: 1.1875rem; }
.line:last-child { border: 0; }
.detail { margin-top: 11px; }
.subhead { font-weight: 700; margin: 23px 0 7px; }
.segmented input { position: absolute; opacity: 0; }
.money-extra { display: none; }
.money-extra.show { display: grid; }
.outcome-options { display: grid; gap: 10px; }
.filter { display: flex; gap: 7px; overflow: auto; margin-bottom: 16px; }
.filter button { white-space: nowrap; background: var(--surface); border: 1px solid var(--history-border); border-radius: 100px; padding: 8px 13px; font: inherit; font-size: 0.8125rem; font-weight: 700; color: var(--text-secondary); cursor: pointer; }
.filter button.active { background: var(--transfer); color: var(--on-action); }
@media(max-width:420px) {

}
.optional-details[open] summary { margin-bottom: 8px; }
.phone-link { display: inline-block; margin: 0 0 10px; color: var(--transfer); font-size: 0.875rem; font-weight: 700; }
.week-strip { display: grid; grid-template-columns: repeat(7,minmax(66px,1fr)); gap: 7px; overflow-x: auto; margin: 14px 0 20px; padding-bottom: 3px; }
.week-strip button { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--history-border); border-radius: 13px; background: var(--surface); color: var(--text-secondary); min-height: 72px; padding: 7px 4px; cursor: pointer; }
.week-strip button.active { background: var(--transfer); color: var(--on-action); border-color: var(--transfer); }
.week-strip small { font-size: 0.6875rem; font-weight: 700; }
.week-strip b { font-size: 1.1875rem; }
.week-strip span { font-size: 0.625rem; white-space: nowrap; }
.month-heading { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 19px 0 9px; }
.month-heading strong { min-width: 125px; text-align: center; text-transform: capitalize; }
.month-heading button:not(.text-btn) { border: 1px solid var(--history-border); background: var(--surface); border-radius: 10px; width: 36px; height: 36px; font-size: 1.625rem; color: var(--transfer); cursor: pointer; }
.month-heading .text-btn { margin-left: auto; }
.day-tile { min-height: 55px; border: 1px solid transparent; border-radius: 10px; background: var(--canvas); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; padding: 4px 1px; }
.day-tile b { font-size: 0.875rem; }
.day-tile small { font-size: 0.625rem; line-height: 1.1; color: var(--placeholder); }
.day-tile.outside { opacity: .42; }
.day-tile.today { border-color: var(--transfer-accent); }
.day-tile.active { background: var(--transfer); color: var(--on-action); }
.day-tile.active small { color: var(--on-action); }
.day-tile .all-day-mark { background: var(--history-border); color: var(--transfer); border-radius: 5px; padding: 2px 3px; font-weight: 700; }
.day-tile.active .all-day-mark { background: var(--transfer-bg); color: var(--transfer); }
@media(max-width:420px) {
.day-tile { min-height: 47px; }
.day-tile b { font-size: 0.75rem; }
.day-tile small { font-size: 0.5625rem; }
}
.header-logout[hidden], .field[hidden], .field.row[hidden], #job-range-hint[hidden] { display: none!important; }
.place-field { position: relative; }
.native-date { position: absolute; opacity: 0; pointer-events: none; width: 1px!important; height: 1px!important; padding: 0!important; margin: 0!important; }
.date-picker-dialog { width: min(95vw,390px); }
.date-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.date-picker-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-top: 15px; }
.date-picker-grid button:disabled {opacity:1;color:var(--text-disabled);background:var(--surface-disabled)}
.place-suggestions .maps-attribution { font-family: Roboto,Arial,sans-serif; font-style: normal; font-weight: 400; font-size: 0.75rem; letter-spacing: normal; white-space: nowrap; color: var(--history); padding: 8px 11px; }
.vehicle-choice b { display: block; }
.vehicle-choice:hover, .vehicle-choice:focus { border-color: var(--transfer); background: var(--transfer-bg); }
.waiting-panel { margin: 0 0 17px; padding: 15px; border: 2px solid var(--attention-accent); border-radius: 18px; background: var(--attention-bg); color: var(--conflict-pressed); box-shadow: var(--shadow-small); }
.waiting-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.waiting-panel-head strong { font-size: 1rem; }
.waiting-panel button { border: 0; border-radius: 8px; background: var(--attention); color: var(--on-action); padding: 8px 12px; font: inherit; font-size: 0.8125rem; font-weight: 700; cursor: pointer; }
.job-waiting { border-left: 5px solid var(--attention-accent); background: var(--conflict-bg); }
.day-tile.waiting { background: var(--attention-bg); border-color: var(--attention-accent); color: var(--conflict-pressed); }
.day-tile.waiting.active { background: var(--attention); color: var(--on-action); }
.day-tile .waiting-mark { font-weight: 700; color: inherit; }
.day-tile.waiting.active .waiting-mark { color: var(--on-action); }
@media(max-width:420px) {
.dashboard-head { flex-direction: column; }
.dashboard-head .primary { width: 100%; }
.waiting-panel { padding: 13px; }
}
.next-card>div { min-width: 0; }
#day-summary-dialog { width: min(92vw,420px); padding: 18px; }
.day-summary-row { padding: 11px 0; border-top: 1px solid var(--history-border); }
.day-summary-row b { display: block; font-size: 0.875rem; line-height: 1.35; }
.day-summary-row small { display: block; color: var(--placeholder); margin-top: 3px; }
.jobs-date-bar>button { border: 1px solid var(--history-border); border-radius: 10px; background: var(--surface); color: var(--text-secondary); font: inherit; font-size: 0.8125rem; font-weight: 700; padding: 10px; min-height: 43px; cursor: pointer; }
.jobs-date-bar>button.active { background: var(--transfer); color: var(--on-action); }
@media(max-width:420px) {
.next-card { align-items: stretch; flex-direction: column; }
.jobs-date-bar { flex-wrap: wrap; }
}
.flight-summary .flight-warning { color: var(--conflict-hover); font-weight: 700; }
.flight-progress-route span { font-size: 1.1875rem; color: var(--attention-accent); }
.flight-progress-times span:last-child { text-align: right; }
.flight-progress.overdue .flight-progress-times span:last-child { color: var(--attention); }
.flight-time-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 10px; }
.field input[type=hidden] { display: none!important; }
.field .time-24 { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.calendar-mode { display: flex; padding: 3px; border-radius: 10px; background: var(--transfer-bg); }
.calendar-mode button { border: 0; border-radius: 8px; background: transparent; color: var(--text-secondary); padding: 8px 12px; font: inherit; font-size: 0.8125rem; font-weight: 700; cursor: pointer; }
.calendar-mode button.active { background: var(--transfer); color: var(--on-action); }
.day-tile.active .month-event { background: var(--transfer-bg); color: var(--transfer); }
.week-calendar-scroll { overflow: auto; max-height: min(68vh,660px); border: 1px solid var(--history-border); border-radius: 15px; background: var(--surface); overscroll-behavior: contain; }
.week-calendar-inner { min-width: 1060px; }
.week-calendar-body { display: grid; grid-template-columns: 54px repeat(7,minmax(0,1fr)); }
.week-calendar-header { display: grid; grid-template-columns: 54px repeat(7,minmax(0,1fr)); position: sticky; top: 0; z-index: 4; background: var(--canvas); border-bottom: 1px solid var(--history-border); }
.week-corner { position: sticky; left: 0; z-index: 5; background: var(--canvas); border-right: 1px solid var(--history-border); }
.week-day-head { border: 0; border-left: 1px solid var(--history-border); background: var(--canvas); min-height: 49px; color: var(--transfer); cursor: pointer; }
.week-day-head small { display: block; text-transform: capitalize; font-size: 0.6875rem; }
.week-day-head b { display: block; text-transform: capitalize; font-size: 1.0625rem; }
.week-day-head.today { color: var(--transfer); }
.week-day-head.active { background: var(--line); }
.week-hours { position: sticky; left: 0; z-index: 2; height: 1152px; background: var(--surface); border-right: 1px solid var(--history-border); }
.week-hours span { position: absolute; right: 7px; transform: translateY(-6px); color: var(--placeholder); font-size: 0.625rem; font-variant-numeric: tabular-nums; }
.week-column { position: relative; height: 1152px; border-left: 1px solid var(--line); background: repeating-linear-gradient(to bottom,var(--transfer-bg) 0,var(--transfer-bg) 1px,var(--surface) 1px,var(--surface) 48px); }
.week-column.today { background: repeating-linear-gradient(to bottom,var(--line) 0,var(--line) 1px,var(--surface-secondary) 1px,var(--surface-secondary) 48px); }
.week-event { position: absolute; z-index: 1; overflow: hidden; text-align: left; border: 1px solid var(--transfer-border); border-left: 3px solid var(--transfer-accent); border-radius: 7px; background: var(--line); color: var(--ink); padding: 4px; font: inherit; font-size: 0.6875rem; line-height: 1.2; cursor: pointer; }
.week-event.airport { border-color: var(--transfer-border); border-left-color: var(--allocation); background: var(--surface-pressed); color: var(--transfer); }
.week-event.allocation { border-color: var(--text-disabled); border-left-color: var(--allocation-accent); background: var(--surface-pressed); color: var(--text-secondary); }
.week-event b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.625rem; }
.week-event span { overflow: hidden; text-overflow: ellipsis; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media(max-width:420px) {
.calendar-mode { margin-left: auto; }
}
.day-hours { position: relative; height:100%; }
@media(max-width:420px) {
.calendar-navigation strong { font-size: 1.125rem; }
}
.brand-home { border: 0; background: transparent; color: inherit; padding: 0; font-family: inherit; text-align: left; cursor: pointer; }
.calendar-key span:before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--transfer-accent); }
.calendar-key .allocation:before { background: var(--allocation-accent); }
.calendar-key .attention:before { background: var(--attention-accent); }
.calendar-key .conflict:before { background: var(--now); }
.flight-progress-times span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.flight-progress-pending { display: block; margin-top: 6px; color: var(--attention); font-size: 0.8125rem; }
.flight-progress-pending[hidden] { display: none; }
.reservation-row-main { min-width: 0; }
.reservation-row-status.canceled { color: var(--placeholder); }
.reservation-more { margin: 16px 0; }
@media(max-width:420px) {
.jobs-date-bar { align-items: end; }
.jobs-date-bar label { order: 0; flex-basis: auto; }
.jobs-date-bar>button { font-size: 0.75rem; padding: 8px; }
}
.location-details p { margin: 7px 0; line-height: 1.4; overflow-wrap: anywhere; }
#handoff-route { font-size: 0.875rem; line-height: 1.4; margin: 9px 0 15px; overflow-wrap: anywhere; }
.auth p { color: var(--placeholder); line-height: 1.5; }
.auth .disclaimer { font-size: 0.75rem; margin-bottom: 0; }
.card .line:first-child { padding-top: 0; }
.card .line:last-child { padding-bottom: 0; }
[hidden] { display: none!important; }
.delete-account-button.full { width: 100%; }
#delete-form .ghost { margin-top: 9px; }
.delete-error { color: var(--conflict); font-size: 0.8125rem; min-height: 1em; }
.remember-device { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 12px 0; }
.remember-device input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; }
.mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: var(--accent); color: var(--surface); font-size: 1.1875rem; font-weight: 700; }
.brand small { font-size: 0.6875rem; font-weight: 500; letter-spacing: .3px; color: var(--transfer-border); display: none; }
.brand-home:focus-visible { outline: 2px solid var(--text-disabled); outline-offset: 5px; border-radius: 5px; outline-color: var(--accent); }
.app-icon { display: inline-block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.header-logout .app-icon { width: 17px; height: 17px; }
.primary .app-icon { width: 18px; height: 18px; }
.dashboard-head small { color: var(--transfer); font-size: 0.6875rem; font-weight: 700; letter-spacing: 1px; display: none; }
.calendar-vehicle-label { margin: -10px 0 20px; font-size: 0.75rem; color: var(--muted); }
main > .section-head:first-child { margin-top: 0; margin-bottom: 18px; }
.section-head .add-reservation { padding: 9px 13px; min-height: 40px; background: var(--accent); color: var(--on-action); font-weight: 600; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.time { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.time .muted { font-size: 0.8125rem; font-weight: 400; }
.status.tentative { background: var(--attention-bg); color: var(--attention); }
.status.canceled { background: var(--canvas); color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 0; margin: 12px 0 16px; row-gap: 6px; }
.pill { padding: 0; background: transparent; border-radius: 0; color: var(--placeholder); font-size: 0.8125rem; font-weight: 400; line-height: 1.5; }
.pill + .pill::before { content: "·"; margin: 0 9px; color: var(--text-disabled); }
.card-actions { border-top: 1px solid var(--transfer-bg); display: flex; flex-wrap: wrap; border-color: var(--line); gap: 8px; padding-top: 12px; margin-top: 16px; }
.card-actions button { border: 0; font: inherit; cursor: pointer; min-height: 40px; padding: 9px 12px; background: var(--canvas); border-radius: 8px; color: var(--accent); font-size: 0.8125rem; font-weight: 500; }
.card-actions button[data-action="outcome"] { color: var(--ink); }
.banner strong { display: block; font-weight: 600; margin-bottom: 3px; }
.empty { text-align: center; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); padding: 32px 20px; color: var(--muted); font-size: 0.8125rem; line-height: 1.6; }
.empty b { display: block; margin-bottom: 6px; color: var(--ink); font-size: 1.0625rem; font-weight: 600; }
.empty .text-btn { margin-top: 9px; }
.bottom-nav button.active .app-icon { stroke-width: 2; }
.calendar-navigation .calendar-back { font: inherit; width: auto; height: 40px; padding: 0; color: var(--accent); font-size: 0.9375rem; font-weight: 500; gap: 2px; border-radius: 8px; }
.calendar-key .allocation::before { background: var(--allocation); }
.calendar-key .attention::before { background: var(--attention); }
.calendar-key .historical::before { background:var(--history); }
.calendar-key .conflict::before { background: var(--conflict); }
.day-week-strip button.active b { color: var(--on-action); background: var(--accent); }
.day-week-strip button.today:not(.active) b { color: var(--accent); }
.day-calendar-title { text-align: center; margin: 0; border-top: 1px solid var(--history-border); border-bottom: 1px solid var(--history-border); text-transform: capitalize; border-color: var(--line); padding: 12px 5px; font-size: 0.8125rem; font-weight: 500; }
.reservation-modes { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 16px; padding: 3px; background: var(--surface-disabled); border-radius: 9px; gap: 3px; }
.reservation-modes button { border: 0; background: transparent; font: inherit; cursor: pointer; font-size: 0.8125rem; font-weight: 500; color: var(--muted); padding: 9px; border-radius: 7px; }
.reservation-modes button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-small); }
.jobs-date-bar > button { border-color: var(--line); background: var(--canvas); color: var(--placeholder); border-radius: 9px; font-size: 0.75rem; font-weight: 500; padding: 10px; }
.jobs-date-bar > button.active { background: var(--accent-soft); border-color: var(--accent-soft-hover); color: var(--accent); }
.jobs-date-bar label { flex: 1; min-width: 0; color: var(--muted); font-size: 0.875rem; font-weight: 400; order: 0; flex-basis: auto; }
.jobs-date-bar .date-display { margin-top: 3px; min-height: 43px; font-size: 0.8125rem; padding: 9px 11px; border-color: var(--line); }
.reservation-entry.allocation .reservation-row-time { color: var(--allocation); }
.reservation-row-arrow .app-icon {width:20px;height:20px}
.reservation-row-arrow { font-size: 1.375rem; line-height: 18px; text-align: right; color: var(--text-disabled); font-weight: 300; }
.reservation-row[aria-expanded="true"] .reservation-row-arrow { color: var(--accent); }
.reservation-row-status { display: inline-block; margin-top: 5px; color: var(--placeholder); font-size: 0.75rem; font-weight: 500; }
.reservation-row-status.attention { color: var(--attention); }
.reservation-row-status.done { color: var(--transfer); }
.location-details summary { cursor: pointer; color: var(--accent); font-weight: 400; padding: 5px 0; }
.passenger-contact { margin: 16px 0; }
.passenger-name { display: block; margin: 0; color: var(--ink); font-size: 0.875rem; font-weight: 500; line-height: 1.6; }
.passenger-contact .phone-link { display: block; margin: 0; font-size: 0.875rem; font-weight: 500; line-height: 1.6; color: var(--accent); text-decoration: none; }
.flight-summary { line-height: 1.5; padding: 12px 13px; margin-top: 16px; background: var(--canvas); color: var(--ink); border-radius: 9px; font-size: 0.8125rem; }
.flight-summary strong { font-weight: 500; }
.flight-summary small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.8125rem; }
.flight-progress { margin: 8px 0 13px; --flight-progress: 0%; border: 1px solid var(--line); background: var(--surface); color: var(--text-secondary); border-radius: 9px; padding: 13px; }
.flight-progress-route { display: flex; align-items: center; justify-content: space-between; gap: 12px; letter-spacing: .04em; font-size: 1rem; font-weight: 500; }
.flight-progress-track { position: relative; margin: 12px 0 8px; border-radius: 99px; background: var(--surface-pressed); height: 5px; }
.flight-progress-fill { display: block; height: 100%; width: var(--flight-progress); border-radius: inherit; background: var(--accent); }
.flight-progress-plane { position: absolute; left: clamp(10px,var(--flight-progress),calc(100% - 10px)); top: 50%; transform: translate(-50%,-50%); font-size: 1.125rem; text-shadow: 0 1px white,0 -1px white; color: var(--accent); }
.flight-progress-times { display: flex; justify-content: space-between; gap: 10px; font-size: 0.8125rem; font-weight: 400; }
.flight-progress-note { display: block; margin-top: 6px; font-size: 0.8125rem; color: var(--muted); }
.flight-time-suggestion { margin-top: 10px; padding: 13px; background: var(--accent-soft); color: var(--allocation); border: 0; border-radius: 9px; font-size: 0.8125rem; }
.flight-time-suggestion strong { display: block; line-height: 1.45; font-weight: 500; }
.flight-time-actions button { min-height: 39px; padding: 8px 12px; border: 1px solid var(--transfer-border); border-radius: 9px; background: var(--surface); font: inherit; cursor: pointer; color: var(--accent); border-color: var(--accent-soft-hover); font-weight: 500; font-size: 0.8125rem; }
.flight-time-actions button:first-child { color: var(--on-action); background: var(--accent); border-color: var(--accent); }
.account-heading { margin-top: 0; }
.section-head .account-logout { border: 0; border-radius: 10px; min-height: 44px; font: inherit; font-size: 0.875rem; cursor: pointer; background: transparent; color: var(--accent); font-weight: 500; padding: 8px 0; }
dialog[open] { animation: dialog-enter 200ms cubic-bezier(0.2,0.8,0.2,1); }
.field em { font-style: normal; font-weight: 500; color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--text-disabled); }
.field .check { display: flex; gap: 9px; align-items: center; color: var(--ink); font-weight: 400; font-size: 0.8125rem; }
.field .check input { width: 20px; height: 20px; accent-color: var(--accent); }
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-small); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.detail summary { cursor: pointer; color: var(--accent); font-size: 0.8125rem; font-weight: 500; }
.time-colon { font-size: 1.25rem; color: var(--text-disabled); font-weight: 400; }
.field .time-24 select { width: calc(50% - 14px); margin-top: 0; font-variant-numeric: tabular-nums; padding: 12px 0; appearance: none; text-align: center; cursor: pointer; }
.allocation-total { padding: 12px 0; font-weight: 700; color: var(--accent); }
.date-picker-grid span { text-align: center; font-size: 0.75rem; padding: 8px 0; color: var(--muted); }
.date-picker-grid button { border: 0; border-radius: 8px; min-height: 41px; cursor: pointer; background: var(--canvas); color: var(--ink); }
.date-picker-grid button.selected { background: var(--accent); color: var(--on-action); }
.place-suggestions { position: absolute; z-index: 40; top: 70px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--control-border); padding: 5px; max-height: 220px; overflow: auto; border-color: var(--line); border-radius: 10px; box-shadow: var(--shadow-menu); }
.place-suggestions button { display: block; width: 100%; text-align: left; border: 0; background: var(--surface); padding: 11px; border-radius: 8px; font: inherit; cursor: pointer; color: var(--ink); font-size: 0.875rem; }
.place-suggestions small { display: block; padding: 7px 11px; color: var(--muted); }
.place-suggestions button:hover { background: var(--canvas); }
.outcome-options button { width: 100%; text-align: left; border: 1px solid var(--history-border); padding: 15px; font: inherit; cursor: pointer; background: var(--canvas); border-color: var(--line); border-radius: 10px; color: var(--ink); font-weight: 500; }
.vehicle-choice { display: block; width: 100%; text-align: left; border: 1px solid var(--history-border); padding: 15px; margin: 9px 0; cursor: pointer; font: inherit; background: var(--canvas); border-color: var(--line); border-radius: 10px; color: var(--ink); font-weight: 500; }
.outcome-options button small { display: block; font-weight: 400; margin-top: 3px; color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
.vehicle-choice small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
.auth .eyebrow { color: var(--transfer); display: none; }
.auth .segmented { margin: 27px 0 23px; }
.auth .field { margin: 20px 0; }
.auth .primary { margin-top: 8px; }
#login-help { text-align: center; margin-top: 15px; }
#auth-message:empty { display: none; }
[id^="job-card-"] { scroll-margin-top: 80px; }
@keyframes dialog-enter {



from { opacity: .5; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }


}
@media (hover: hover) {
.reservation-row:hover { background: var(--surface-secondary); }
}
@media (min-width: 760px) {
.shell { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.topbar { padding-left: 40px; padding-right: 40px; }
.auth { margin-top: 65px; }
}
@media (max-width: 360px) {
.topbar { padding-left: 14px; padding-right: 14px; }
.next-card { align-items: flex-start; }
.next-card button { max-width: 88px; }
}
@media (prefers-reduced-motion: reduce) {
dialog[open] { animation: none; }
}
.tahsis-day { border: 1px solid var(--border,var(--line)); border-radius: 12px; margin: 10px 0; padding: 12px; }
.tahsis-day>summary { font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.tahsis-day[open]>summary { margin-bottom: 14px; }
.booking-service+.booking-service { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.currency-summary .card { min-width: 0; padding: 16px; }
.currency-summary strong { display: block; font-size: 1.375rem; overflow-wrap: anywhere; }
.payment-ledger { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.service-summary { font-size: 0.8125rem; color: var(--muted); line-height: 1.6; }
.tahsis-day .field.row>* { min-width: 0; }
@media(max-width:400px) {
.currency-summary { gap: 6px; }
.currency-summary .card { padding: 10px; }
.currency-summary strong { font-size: 1.0625rem; }
.tahsis-day { padding: 10px; }
}
.service-summary small { display: block; }
.payment-currency+.payment-currency { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
@media(max-width:400px) {
.currency-summary div { padding: 14px 10px; }
.currency-summary b { font-size: 1.3125rem; }
}
.day-event.service-event span { font-size: 0.75rem; }
.group-context { font-size: 0.75rem; color: var(--muted); border: 1px solid var(--line); background: var(--canvas); border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.group-context p { margin: 0 0 6px; }
.group-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.group-actions .text-btn { font-size: 0.75rem; }
.group-actions .danger { color: var(--conflict); }
.payment-row .reservation-row-arrow { align-self: center; }
.payment-row { grid-template-columns: minmax(0,1fr) 16px; gap: 12px; align-items: center; padding: 14px 15px; }
.payment-row .reservation-row-main { width: 100%; }
.payment-entry { margin: 10px 0; border-radius: 12px; }
.day-hours span:first-child { transform: none; }
.day-heading button, .calendar-controls button { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--accent); border-radius: 8px; }
.day-heading .app-icon { width: 20px; height: 20px; }
.calendar-return { display: flex; align-items: center; gap: 5px; min-height: 44px; border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 0.75rem; text-align: left; margin: 0 0 8px; padding: 6px 0; }
.calendar-return .app-icon { width: 18px; height: 18px; flex: none; }
.booking-directions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.directions-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); font-size: 0.75rem; text-decoration: none; }
.calendar-conflicts { margin: 12px 0; }
.conflict-message { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--conflict-border); border-radius: 8px; background: var(--conflict-bg); margin: 6px 0; }
.conflict-message>div { flex: 1; min-width: 0; }
.conflict-message strong { display: block; font-size: 0.75rem; }
.conflict-message span { display: block; font-size: 0.75rem; margin-top: 3px; overflow-wrap: anywhere; color: var(--muted); }
.conflict-message button { min-height: 44px; max-width: 115px; border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 0.75rem; padding: 6px; }
.form-feedback[data-kind=saving] { color: var(--history); }
.form-feedback[data-kind=success] { color: var(--transfer); }
.bulk-preview { margin: 16px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-secondary); }
.bulk-preview h3 { margin: 0 0 8px; font-size: 1rem; }
.bulk-preview-day { padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.8125rem; }
.bulk-preview-day b, .bulk-preview-day small { display: block; line-height: 1.5; }
.bulk-preview-day[data-preview-kind=canceled] { color: var(--conflict); }
.pending-heading { font-size: 0.875rem; margin: 16px 0 8px; }
#unsaved-dialog { max-width: 420px; }
#unsaved-dialog h2 { font-size: 1.375rem; }
#unsaved-dialog p { line-height: 1.5; font-size: 0.875rem; }
#unsaved-dialog button { margin-top: 12px; min-height: 44px; }
.payment-success { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.payment-success button { min-height: 44px; }
.header-logout { font: inherit; cursor: pointer; display: flex; align-items: center; gap: 7px; padding: 0 9px; background: transparent; border: 0; color: var(--muted); font-size: 0.75rem; font-weight: 500; border-radius: 8px; min-height: 44px; }
.text-btn, .section-head button { background: none; border: 0; cursor: pointer; color: var(--accent); font-size: 0.875rem; font-weight: 500; padding: 8px 0; min-height: 44px; }
.dashboard-head .primary { white-space: nowrap; width: auto; flex: none; padding: 9px 13px; min-height: 44px; }
.calendar-back, .month-controls button { min-height: 44px; }
.date-picker-head button { border: 0; border-radius: 9px; padding: 7px 12px; font-size: 1.25rem; cursor: pointer; background: var(--canvas); color: var(--ink); min-height: 44px; }
input:not([type=hidden]):not([type=checkbox]):not([type=radio]) { font-size: 1rem; border-color: var(--text-disabled); }
.line > div, .dialog-head > div { min-width: 0; }
.form-feedback { margin: 12px 0; font-size: 0.875rem; line-height: 1.5; overflow-wrap: anywhere; }
button { font-family: inherit; touch-action: manipulation; scroll-margin-block: 16px; }
a { scroll-margin-block: 16px; }
input { font-family: inherit; scroll-margin-block: 16px; }
select, textarea { font-family: inherit; font-size: 1rem; border-color: var(--text-disabled); scroll-margin-block: 16px; }
summary { scroll-margin-block: 16px; min-height: 44px; align-content: center; }
.install-card p { margin: 0 0 12px; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { scroll-behavior: auto; animation: none; transition: none; }
}
.section-head { display: flex; justify-content: space-between; gap: 10px; margin: 25px 0 10px; align-items: center; flex-wrap: wrap; }
.dashboard-head > *, .section-head > * { min-width: 0; max-width: 100%; }
.brand span:last-child { overflow-wrap: anywhere; }
.segmented label { flex: 1; text-align: center; overflow-wrap: anywhere; min-width: 0; }
.calendar-navigation strong { min-width: 0; text-transform: capitalize; font-size: 1.375rem; white-space: normal; overflow-wrap: anywhere; }
.jobs-date-bar { display: flex; align-items: end; gap: 9px; margin: 16px 0 22px; flex-wrap: wrap; }
.currency-summary { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.3125rem), 1fr)); }
.currency-summary > div { min-width: 0; }
.currency-summary b { overflow-wrap: anywhere; }
body { margin: 0; font-size:1rem; line-height:1.5; background:var(--canvas); }
.shell { margin: auto; box-shadow: none; max-width:none; min-height:100dvh; background:var(--canvas); padding-bottom:calc(5rem + env(safe-area-inset-bottom)); border:0; }
.topbar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; padding-top: max(18px,env(safe-area-inset-top)); color: var(--ink); background:var(--surface); backdrop-filter:none; min-height:64px; padding:12px 20px; border-bottom:1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; max-width: 100%; color:var(--ink); text-decoration:none; font-size:1.375rem; font-weight:600; letter-spacing:-.025em; }
main h1:focus, main h2:focus, main article:focus { outline:none; }
main { padding:24px 20px; max-width:1600px; margin:auto; min-width:0; }
h1 { overflow-wrap: anywhere; font-size:1.5rem; line-height:2rem; font-weight:600; letter-spacing:-.02em; }
main > .section-head:first-child h2 { font-size:1.5rem; line-height:2rem; font-weight:600; letter-spacing:-.02em; }
h2 { overflow-wrap: anywhere; font-size:1.125rem; line-height:1.625rem; font-weight:600; }
.section-head h2 { margin: 0; letter-spacing: -.2px; color: var(--ink); font-size:1.125rem; line-height:1.625rem; font-weight:600; }
.dashboard-head { flex-direction: row; flex-wrap: wrap; display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 24px; }
.dashboard-head h1 { font-weight: 600; font-size:1.5rem; line-height:2rem; letter-spacing:-.02em; margin:0; }
.dashboard-head > div { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.vehicle-context { font-size:.8125rem; font-weight:500; color:var(--text-secondary); padding:4px 8px; border:1px solid var(--line); background:var(--surface); border-radius:6px; font-variant-numeric:tabular-nums; }
.ghost { font: inherit; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: var(--canvas); color: var(--ink); min-height:44px; border-radius:10px; padding:12px 16px; gap:8px; font-size:.875rem; line-height:1.25rem; font-weight:600; transition:background 140ms,color 140ms; }
.primary { font: inherit; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height:44px; border-radius:10px; padding:12px 16px; gap:8px; font-size:.875rem; line-height:1.25rem; font-weight:600; transition:background 140ms,color 140ms; background:var(--accent); color:var(--on-action); }
.primary:hover { background:var(--accent-hover); }
.primary:active { background:var(--accent-pressed); }
.secondary { font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height:44px; border-radius:10px; padding:12px 16px; gap:8px; font-size:.875rem; line-height:1.25rem; font-weight:600; transition:background 140ms,color 140ms; border:1px solid var(--control-border); background:var(--surface); color:var(--ink); }
.ghost:hover, .secondary:hover { background:var(--surface-hover); }
button:disabled { cursor: default; opacity:1; background:var(--surface-disabled); color:var(--text-disabled); }
button:not(:disabled):hover { filter:none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.bottom-nav { position: fixed; bottom: 0; display: flex; box-shadow: none; left:0; transform:none; width:100%; height:calc(4rem + env(safe-area-inset-bottom)); padding:4px 0 calc(4px + env(safe-area-inset-bottom)); background:var(--surface); backdrop-filter:none; border-top:1px solid var(--line); z-index:30; }
.bottom-nav button { flex: 1; display: flex; align-items: center; background: none; border: 0; cursor: pointer; min-width: 0; font-family: inherit; overflow-wrap: anywhere; min-height:56px; flex-direction:column; justify-content:center; gap:4px; font-size:.6875rem; font-weight:500; color:var(--text-secondary); padding:4px 1px; border-radius:10px; }
.bottom-nav button.active { color:var(--accent); background:var(--accent-soft); font-weight:600; }
.bottom-nav button:hover { background:var(--surface-hover); }
.bottom-nav button .nav-label { font-size:inherit; line-height:1rem; letter-spacing:-.02em; text-align:inherit; }
.bottom-nav button .app-icon { width:22px; height:22px; }
.calendar-workspace { align-self:start; background:var(--surface); border:1px solid var(--line); border-radius:14px; overflow:hidden; min-width:0; }
.calendar-toolbar { justify-content: space-between; flex-wrap: wrap; scroll-margin-top: 78px; display:flex; align-items:center; padding:16px 12px 8px; margin:0; gap:12px; }
.calendar-navigation { min-width: 0; display:flex; flex-wrap:wrap; align-items:center; width:100%; justify-content:space-between; gap:8px; }
.calendar-period { flex:1 0 auto; max-width:100%; display:flex; align-items:baseline; gap:8px; min-width:0; }
.calendar-period strong { white-space:nowrap; overflow-wrap:normal; font-size:1.5rem; line-height:2rem; font-weight:600; letter-spacing:-.025em; text-transform:capitalize; }
.calendar-period small { font-weight: 400; white-space:nowrap; font-size:1rem; color:var(--text-secondary); }
.calendar-controls { display:flex; align-items:center; gap:4px; }
.calendar-navigation button:not(.text-btn) { font-size: 1.4375rem; cursor: pointer; display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; width:44px; height:44px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--text-secondary); padding:0; }
.calendar-navigation button.calendar-back:not(.text-btn) { width:auto; height:auto; white-space:nowrap; padding:0 8px; color:var(--accent); font-size:.875rem; font-weight:500; gap:4px; }
.calendar-navigation .text-btn { font-weight: 500; font-size:.875rem; min-height:44px; padding:8px; color:var(--accent); }
.calendar-key { font-weight: 400; display:flex; flex-wrap:wrap; gap:8px 12px; margin:0; padding:0 12px 16px; color:var(--text-secondary); font-size:.75rem; line-height:1rem; }
.calendar-key span { display:inline-flex; align-items:center; gap:4px; }
.calendar-key span::before { content:""; width:3px; height:12px; border-radius:2px; background:var(--transfer); }
.month-scroll { overflow-x:auto; border-radius:0; }
.month-grid { align-items: stretch; display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); width:100%; min-width:17.5rem; gap:0; padding:0; background:var(--surface); border:0; border-radius:0; }
.month-grid .weekday { padding:8px 0; background:var(--surface-secondary); font-size:.75rem; line-height:1rem; color:var(--text-secondary); text-align:center; font-weight:500; border-top:1px solid var(--line); }
.month-grid .day-tile { display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; min-width:0; min-height:100px; padding:8px 3px; gap:4px; border:0; border-top:1px solid var(--line); border-right:1px solid var(--separator); border-radius:0; background:var(--surface); color:var(--ink); text-align:left; cursor:pointer; opacity:1; }
.month-grid .day-tile b { align-self:center; width:28px; height:28px; min-width:28px; line-height:28px; text-align:center; font-size:.8125rem; font-weight:500; margin:0 0 4px; border-radius:999px; font-variant-numeric:tabular-nums; }
.month-grid .day-tile.today b { border-radius: 50%; background:var(--accent); color:var(--on-action); }
.month-grid .day-tile.outside { background:var(--surface-secondary); opacity:1; }
.month-grid .day-tile.outside b { color:var(--muted); }
.month-grid .day-tile:hover { background:var(--surface-hover); }
.month-grid .day-tile small { align-self: flex-start; padding-left: 3px; white-space:nowrap; font-size:.75rem; line-height:1rem; color:var(--text-secondary); padding:0 2px; }
.month-event { text-align: left; display:flex; align-items:center; gap:8px; width:100%; max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:.6875rem; line-height:1rem; font-weight:500; border-left:3px solid var(--transfer); border-radius:6px; padding:4px 2px; background:var(--transfer-bg); color:var(--transfer); font-variant-numeric:tabular-nums; }
.month-event-time { flex:none; font-weight:600; }
.day-week-strip { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); margin:0; padding:4px 8px; gap:4px; border-top:1px solid var(--line); }
.day-week-strip button { min-width: 0; border: 0; background: transparent; font: inherit; cursor: pointer; color: var(--ink); min-height:60px; padding:4px 0; border-radius:8px; }
.day-week-strip small { display: block; text-align: center; text-transform: capitalize; font-weight: 400; font-size:.8125rem; color:var(--text-secondary); }
.day-week-strip b { display: block; text-align: center; border-radius: 50%; margin-top: 5px; font-size:1.125rem; font-weight:600; width:28px; height:28px; line-height:28px; margin:4px auto 0; }
.day-week-strip button.active { background:var(--accent-soft); }
.day-heading { display:flex; align-items:center; justify-content:space-between; padding:0 8px; border-block:1px solid var(--line); }
.day-heading .day-calendar-title { min-width: 0; font-size:1rem; line-height:1.5rem; font-weight:600; border:0; margin:0; padding:12px 4px; flex:1; text-align:center; }
.is-day { display:flex; flex-direction:column; height:calc(100dvh - 240px); min-height:440px; }
.is-day > * { flex-shrink:0; }
.is-day .day-calendar-scroll { flex:1; min-height:0; height:auto; }
.day-calendar-scroll { overflow-y: auto; overscroll-behavior-y: auto; position:relative; isolation:isolate; overflow:auto; max-height:none; height:clamp(280px,calc(100dvh - 390px),640px); overscroll-behavior:contain; scrollbar-gutter:stable; scroll-padding-block:28px; background:var(--surface); }
.day-calendar-inner { display:grid; grid-template-columns:48px minmax(0,1fr); height:calc(24 * var(--hour-height)); min-height:0; }
.day-hours span { position: absolute; transform: translateY(-7px); font-size:.75rem; line-height:1rem; color:var(--muted); right:6px; font-variant-numeric:tabular-nums; }
.day-timeline { height:100%; position:relative; background:repeating-linear-gradient(to bottom,var(--line) 0,var(--line) 1px,transparent 1px,transparent calc(var(--hour-height) / 2),var(--separator) calc(var(--hour-height) / 2),var(--separator) calc(var(--hour-height) / 2 + 1px),transparent calc(var(--hour-height) / 2 + 1px),transparent var(--hour-height)); }
.day-event { z-index: 1; font: inherit; cursor: pointer; font-size: 0.8125rem; line-height: 1.4; position:absolute; display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; min-height:0; overflow:hidden; background:var(--transfer-bg); color:var(--transfer); border:0; border-left:3px solid var(--transfer); border-radius:8px; padding:6px 8px; gap:4px; text-align:left; isolation:isolate; }
.day-event.airport { border-color: var(--transfer-border); border-left-color: var(--allocation); position:absolute; display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; min-height:0; overflow:hidden; background:var(--transfer-bg); color:var(--transfer); border:0; border-left:3px solid var(--transfer); border-radius:8px; padding:6px 8px; gap:4px; text-align:left; isolation:isolate; }
.day-event.service-event { border-left-color: var(--transfer); position:absolute; display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; min-height:0; overflow:hidden; background:var(--transfer-bg); color:var(--transfer); border:0; border-left:3px solid var(--transfer); border-radius:8px; padding:6px 8px; gap:4px; text-align:left; isolation:isolate; }
.day-event b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; z-index: 1; font-size:.75rem; line-height:1rem; font-weight:600; margin:0; flex:none; font-variant-numeric:tabular-nums; }
.day-event span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; margin-top: 4px; position: relative; z-index: 1; font-size:.8125rem; line-height:1.1875rem; font-weight:500; margin:0; flex:none; -webkit-line-clamp:2; }
.day-event small { display: block; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; flex: none; position: relative; z-index: 1; font-size:.75rem; line-height:1rem; margin:0; }
.day-event.compact { padding:2px 6px; gap:0; }
.day-event.compact span { -webkit-line-clamp:1; }
.day-event.micro { flex-direction:row; gap:6px; padding:0 4px; align-items:center; }
.day-event.micro span { white-space:nowrap; display:block; }
.day-event.compact small,.day-event.limited small { display:none; }
.day-event.one-line span {-webkit-line-clamp:1}
.day-event.time-only span {display:none}
.day-event.micro {overflow:visible}
.day-event.micro b,.day-event.micro span {display:none}
.day-event.micro::after {content:attr(aria-label);display:none;position:absolute;bottom:calc(100% + 4px);left:0;width:200px;max-width:70vw;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-size:.75rem;line-height:1rem;box-shadow:var(--shadow-menu);pointer-events:none;z-index:5}
.day-event.micro:hover::after,.day-event.micro:focus-visible::after {display:block}
.timeline-wait { position: absolute; left: 0; right: 0; top: 0; z-index: 0; pointer-events: none; background:var(--surface-pressed); opacity:.4; }
.timeline-break { position: absolute; left: 0; right: 0; top: 0; z-index: 0; pointer-events: none; background:rgba(255,255,255,.5); border-top:1px dashed var(--control-border); }
.day-now { position: absolute; left: 0; right: 0; z-index: 4; pointer-events: none; height:2px; background:var(--now); }
.day-now::before { content:""; position:absolute; left:-4px; top:-3px; width:8px; height:8px; background:var(--now); border-radius:999px; }
.day-now span { position: absolute; border-radius: 3px; font-size:.75rem; line-height:1rem; background:var(--surface); color:var(--now); right:0; top:-18px; padding:0 4px; }
.is-day > .text-btn { margin:8px 12px; font-weight:600; min-height:44px; }
.is-day .calendar-toolbar { padding:12px 12px 8px; }
.is-day .calendar-key { display:none; }
.calendar-support { min-width:0; margin-top:24px; }
.next-card { display: flex; justify-content: space-between; border: 1px solid var(--line); box-shadow: none; flex-direction: row; align-items: center; margin:0 0 16px; padding:16px; border-radius:14px; background:var(--surface); gap:12px; }
.next-card small { display: block; color: var(--muted); font-size:.75rem; line-height:1rem; font-weight:500; letter-spacing:0; }
.next-card b { display: block; font-weight: 400; font-size:.8125rem; line-height:1.1875rem; color:var(--text-secondary); margin:8px 0; }
.next-card strong { display: block; color: var(--ink); font-size:.9375rem; line-height:1.375rem; font-weight:500; }
.next-card button { border: 0; font: inherit; cursor: pointer; flex: none; background: var(--accent-soft); color: var(--accent); font-weight: 500; padding: 10px; max-width: 106px; min-height:44px; font-size:.875rem; border-radius:8px; }
.banner { line-height: 1.4; margin: 12px 0; border-left: 3px solid var(--attention-accent); background:var(--attention-bg); border:1px solid var(--attention-border); color:var(--attention); padding:16px; border-radius:10px; font-size:.875rem; }
.card { border: 1px solid var(--line); box-shadow: none; margin: 10px 0; overflow-wrap: anywhere; background:var(--surface); border-color:var(--line); border-radius:14px; padding:20px; }
.muted { overflow-wrap: anywhere; color:var(--muted); font-size:.8125rem; line-height:1.1875rem; }
.hint { margin: 5px 0 0; overflow-wrap: anywhere; color:var(--muted); font-size:.8125rem; line-height:1.1875rem; }
.tiny { color:var(--muted); font-size:.8125rem; line-height:1.1875rem; }
.disclaimer { margin: 25px 2px; color:var(--muted); font-size:.8125rem; line-height:1.1875rem; }
.status { flex: none; padding: 5px 8px; border-radius:6px; font-size:.75rem; background:var(--history-bg); color:var(--history); font-weight:500; }
.status.attention { background:var(--attention-bg); color:var(--attention); }
.reservation-entry { border:1px solid var(--line); border-radius:10px; background:var(--surface); margin:8px 0; overflow:hidden; }
.reservation-entry.needs-outcome { border-color:var(--attention-border); background:var(--surface); }
.reservation-row { display: grid; width: 100%; border: 0; background: transparent; text-align: left; font: inherit; cursor: pointer; color: var(--ink); grid-template-columns:64px minmax(0,1fr) 20px; padding:16px; gap:12px; align-items:start; }
.reservation-row-time { color: var(--transfer); letter-spacing: -.3px; font-size:1rem; line-height:1.5rem; font-weight:600; font-variant-numeric:tabular-nums; }
.reservation-row-main strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size:.9375rem; line-height:1.375rem; font-weight:500; }
.reservation-row-main small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 5px; font-size:.8125rem; line-height:1.1875rem; color:var(--text-secondary); }
.reservation-date-heading { text-transform: capitalize; font-variant-numeric: tabular-nums; margin-top: 18px; font-size:.875rem; font-weight:600; color:var(--text-secondary); margin:24px 0 8px; }
.reservation-quick-action { border-top: 1px solid var(--attention-bg); text-align: left; font: inherit; cursor: pointer; font-weight: 500; border-color: var(--attention-bg); min-height:44px; width:auto; margin:0 16px 8px 92px; padding:4px 8px; border:0; border-radius:6px; background:var(--attention-bg); color:var(--attention); font-size:.8125rem; }
.reservation-entry:has(.reservation-row[aria-expanded="true"]) > .reservation-quick-action { display:none; }
.reservation-detail { box-shadow: none; padding:20px; border:0; border-top:1px solid var(--line); border-radius:0; margin:0; }
.payment-detail { padding:20px; border:0; border-top:1px solid var(--line); border-radius:0; margin:0; }
.route-title { letter-spacing: -.3px; margin: 13px 0 8px; overflow-wrap: anywhere; font-size:1.125rem; line-height:1.625rem; font-weight:600; }
.location-details { margin: 6px 0 10px; font-size:.875rem; color:var(--text-secondary); }
.line { display: flex; align-items: start; justify-content: space-between; gap: 12px; border-color: var(--line); padding:12px 0; border-bottom:1px solid var(--separator); font-size:.875rem; }
.line b { font-weight: 500; font-variant-numeric:tabular-nums; }
.line strong { font-weight: 600; white-space: normal; overflow-wrap: anywhere; font-variant-numeric:tabular-nums; }
.line small { display: block; margin-top: 3px; line-height: 1.5; overflow-wrap: anywhere; font-size:.8125rem; color:var(--text-secondary); }
.read-search-panel { padding:0 16px; border:1px solid var(--line); background:var(--surface); border-radius:10px; margin:16px 0; }
.read-search-panel summary { cursor: pointer; color: var(--accent); min-height:48px; font-size:.875rem; font-weight:500; }
.read-search { display: grid; margin-top: 12px; gap:16px; margin:8px 0 16px; }
.read-search label { display: grid; gap: 5px; min-width: 0; font-size:.875rem; line-height:1.25rem; font-weight:500; color:var(--text-secondary); }
.field label { display: block; min-width: 0; font-size:.875rem; line-height:1.25rem; font-weight:500; color:var(--text-secondary); }
.summary { display: grid; gap:16px; margin:24px 0; grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr)); }
.summary div { background:var(--surface); padding:16px 20px; border:1px solid var(--line); border-radius:14px; }
.summary b { display: block; margin-top: 8px; font-size:1.75rem; line-height:2.25rem; font-weight:600; letter-spacing:-.025em; font-variant-numeric:tabular-nums; margin:8px 0 0; }
.summary small { display: block; font-size:.8125rem; color:var(--text-secondary); }
.reservation-row.payment-row { grid-template-columns:minmax(0,1fr) 20px; padding:16px; gap:12px; }
.payment-row .reservation-row-main>strong { -webkit-line-clamp: 2; font-size:.9375rem; line-height:1.375rem; }
.payment-row .reservation-row-main>small { margin: 0 0 4px; white-space: normal; margin-bottom: 6px; font-size:.8125rem; line-height:1.1875rem; }
.payment-row-balances { display: block; font-weight: 500; overflow-wrap: anywhere; margin-top: 7px; font-variant-numeric:tabular-nums; font-size:.875rem; line-height:1.25rem; color:var(--text-secondary); }
.negative { color:var(--conflict); }
.positive { color:var(--transfer); }
dialog { border: 0; overflow: auto; width:min(720px,calc(100vw - 48px)); max-width:calc(100vw - 48px); max-height:calc(100dvh - 48px); padding:24px; border-radius:18px; background:var(--surface); color:var(--ink); box-shadow:var(--shadow-dialog); }
dialog::backdrop { background:var(--overlay); backdrop-filter:none; }
body:has(dialog[open]) { overflow:hidden; }
.dialog-head { display: flex; justify-content: space-between; align-items:start; gap:16px; margin-bottom:24px; }
.dialog-head h2 { margin: 3px 0 0; margin-top: 4px; overflow-wrap: anywhere; font-size:1.375rem; line-height:1.875rem; font-weight:600; letter-spacing:-.02em; }
.dialog-head small { color: var(--muted); font-weight: 500; font-size:.75rem; letter-spacing:.04em; }
.icon-btn { border: 0; cursor: pointer; flex: none; font-size: 1.4375rem; font-weight: 300; min-height: 44px; flex-shrink: 0; width:44px; height:44px; min-width:44px; background:var(--surface-hover); color:var(--text-secondary); border-radius:8px; }
.form-section-title { font-size:1rem; line-height:1.5rem; font-weight:600; margin:28px 0 12px; padding-top:20px; border-top:1px solid var(--separator); }
.field { min-width: 0; margin:20px 0; }
.field.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr)); gap:16px; }
.field input:not([type=radio]):not([type=checkbox]), .field textarea, .field select { display: block; width: 100%; font: inherit; outline-color: var(--accent); min-height:48px; border:1px solid var(--control-border); border-radius:10px; font-size:1rem; line-height:1.5rem; color:var(--ink); background:var(--surface); padding:12px; margin-top:8px; }
.date-display { display: block; width: 100%; font: inherit; text-align: left; cursor: pointer; outline-color: var(--accent); border-color: var(--text-disabled); min-height:48px; border:1px solid var(--control-border); border-radius:10px; font-size:1rem; line-height:1.5rem; color:var(--ink); background:var(--surface); padding:12px; margin-top:8px; }
.read-search input, .read-search select { width: 100%; min-width: 0; box-sizing: border-box; min-height:48px; border:1px solid var(--control-border); border-radius:10px; font-size:1rem; line-height:1.5rem; color:var(--ink); background:var(--surface); padding:12px; margin-top:8px; }
input::placeholder, textarea::placeholder { opacity: 1; color:var(--placeholder); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color:var(--accent); outline:2px solid var(--accent-border); outline-offset:2px; }
input:disabled, select:disabled, textarea:disabled { background:var(--surface-disabled); color:var(--text-disabled); }
input[readonly] { background:var(--surface-secondary); color:var(--text-secondary); }
.field-validation {display:block;color:var(--conflict);font-size:.8125rem;line-height:1.1875rem;margin:8px 0 0}
.field input[aria-invalid=true],.field input:user-invalid,.field select[aria-invalid=true],.field textarea[aria-invalid=true] { border-color:var(--conflict); }
.optional-details { border-color: var(--line); padding:0 12px; background:var(--surface-secondary); border:1px solid var(--line); border-radius:10px; margin:20px 0; }
.optional-details summary { cursor: pointer; min-height:48px; font-size:.875rem; font-weight:500; color:var(--text-secondary); }
.segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr)); background:var(--surface-hover); padding:4px; border-radius:10px; gap:4px; }
.segmented span { display: block; cursor: pointer; color: var(--muted); font-size:.875rem; font-weight:500; padding:12px 8px; border-radius:8px; }
.segmented input:checked+span { background:var(--surface); color:var(--accent); box-shadow:var(--shadow-small); }
#editor { padding:0; overflow:hidden; }
#job-form { display:flex; flex-direction:column; max-height:calc(100dvh - 48px); }
#job-form > .dialog-head { padding:24px; margin:0; border-bottom:1px solid var(--line); flex:none; }
.editor-content { padding:0 24px 24px; overflow-y:auto; overscroll-behavior:contain; min-height:0; }
.editor-footer { display:flex; justify-content:flex-end; gap:12px; padding:16px 24px; border-top:1px solid var(--line); background:var(--surface); flex:none; }
.editor-footer .primary { min-height:48px; }
#booking-price { display:grid; grid-template-columns:minmax(0,1fr) 112px; gap:16px; align-items:start; }
#booking-price > .field:first-child { grid-column:2; grid-row:1; }
#transfer-price-field, #allocation-price-fields { grid-column:1; grid-row:1; min-width:0; }
.shell:has(.auth), .shell:not(:has(.bottom-nav)) { padding-left:0; }
.shell:has(.auth) .topbar, .shell:not(:has(.bottom-nav)) .topbar { margin-left:0; }
.shell:has(.auth) .topbar .brand, .shell:not(:has(.bottom-nav)) .topbar .brand { color:var(--ink); text-decoration:none; position:static; width:auto; height:auto; padding:0; border:0; }
.shell:not(:has(.bottom-nav)) main { max-width:900px; }
main:has(.account-heading) { max-width:1040px; }
[data-account="password"].full, .install-card .full { width:auto; }
.auth { max-width:440px; padding:32px; margin:40px auto; background:var(--surface); border:1px solid var(--line); border-radius:14px; }
.auth h1 { color: var(--ink); letter-spacing: -.8px; margin: 0 0 8px; font-size:1.875rem; line-height:2.375rem; font-weight:600; }
.auth .auth-description { color: var(--muted); margin: 0; font-size:.875rem; line-height:1.25rem; }
.auth .hint { font-size:.875rem; line-height:1.25rem; }
.delete-account-button { border: 1px solid var(--conflict); font: inherit; padding: 12px 17px; min-height: 47px; cursor: pointer; background: transparent; border-radius: 9px; font-size: 0.8125rem; font-weight: 500; color:var(--conflict); border-color:var(--conflict-border); }
.danger { color:var(--conflict); border-color:var(--conflict-border); }
.form-feedback[data-kind=error] { border-radius: 8px; padding: 10px; color:var(--conflict); background:var(--conflict-bg); }
/* Both calendars use service type, completed history, and pending outcome. */
.month-event.allocation,.day-event.allocation {background:var(--allocation-bg);color:var(--allocation);border-left-color:var(--allocation)}
.month-event.historical,.day-event.historical {background:var(--history-bg);color:var(--history);border-left-color:var(--history)}
.month-event.attention,.day-event.attention {background:var(--attention-bg);color:var(--attention);border-left-color:var(--attention)}
.day-event.continues-before {border-top:1px dashed currentColor}
.day-event.continues-after {border-bottom:1px dashed currentColor}
/* Shared form dialogs keep actions outside the scrolling content. */
.form-dialog {padding:0;overflow:hidden}
.form-dialog > form {display:flex;flex-direction:column;max-height:calc(100dvh - 48px)}
.form-dialog .dialog-head {padding:24px;margin:0;border-bottom:1px solid var(--line);flex:none}
.dialog-content {padding:0 24px 24px;overflow-y:auto;min-height:0;overscroll-behavior:contain}
.dialog-footer {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;padding:16px 24px;border-top:1px solid var(--line);background:var(--surface);flex:none}
.dialog-footer .full {width:auto;max-width:100%;min-width:min(160px,100%)}
#outcome-dialog .dialog-head {position:sticky;top:0;background:var(--surface);z-index:2}
#outcome-dialog form > button[type=submit] {position:sticky;bottom:0}
@media(min-width:768px) {
.shell { padding-left:72px; padding-bottom:0; }
.bottom-nav { top:64px; bottom:0; left:0; width:72px; height:auto; flex-direction:column; justify-content:flex-start; padding:16px 8px; gap:12px; border-top:0; border-right:1px solid var(--line); }
.bottom-nav .nav-label { display:none; }
.bottom-nav button { flex:none; min-height:64px; font-size:.625rem; overflow-wrap:anywhere; }
.topbar { margin-left:-72px; padding:12px 24px; }
main { padding:24px; }
h1, main > .section-head:first-child h2, .dashboard-head h1 { font-size:1.875rem; line-height:2.375rem; letter-spacing:-.025em; }
.calendar-toolbar { padding:20px 24px 8px; }
.calendar-key { padding:0 24px 20px; font-size:.8125rem; }
.month-grid .day-tile { min-height:128px; padding:12px 8px; }
.month-grid .day-tile b { font-size:.875rem; align-self:flex-start; margin:0 0 4px; }
.month-event { font-size:.75rem; line-height:1rem; padding:4px 6px; border-radius:8px; }
.month-event { flex-wrap:nowrap; }
.day-calendar-inner { grid-template-columns:60px minmax(0,1fr); }
.day-calendar-scroll { height:clamp(320px,calc(100dvh - 350px),760px); }
.reservation-row { grid-template-columns:76px minmax(0,1fr) 20px; padding:20px; gap:16px; }
.reservation-quick-action { margin-left:112px; }
.read-search { grid-template-columns:repeat(2,minmax(0,1fr)); }
.read-search .field { margin:0; }
.read-search .card-actions { grid-column:1/-1; }
.payment-row .reservation-row-main { display:grid; grid-template-columns:minmax(0,1fr) minmax(180px,auto); column-gap:24px; }
.payment-row .reservation-row-main>strong { grid-column:1; grid-row:1; display:block; }
.payment-row .reservation-row-main>small { grid-column:1; grid-row:2; margin:4px 0 0; }
.payment-row-balances { grid-column:2; grid-row:1/3; text-align:right; align-self:center; margin:0; font-weight:600; }
.summary b { font-size:1.875rem; line-height:2.375rem; }
}
@media(min-width:1200px) {
.shell { padding-left:224px; }
.topbar { margin-left:0; padding:12px 32px; }
.topbar .brand { color:var(--ink); text-decoration:none; position:fixed; top:0; left:0; width:224px; height:64px; padding-left:24px; background:var(--surface); border-right:1px solid var(--line); }
.header-logout { margin-left:auto; }
.bottom-nav .nav-label { display:inline; }
.bottom-nav { width:224px; padding:24px 16px; gap:8px; }
.bottom-nav button { flex-direction:row; justify-content:flex-start; padding:12px 16px; min-height:48px; font-size:.875rem; gap:12px; }
main { padding:32px; }
main:has(.calendar-workspace) { display:grid; grid-template-columns:minmax(0,1fr) 288px; gap:0 24px; }
.dashboard-head, .vehicle-filter { grid-column:1/-1; }
.calendar-support { margin:0; }
.calendar-support .next-card { align-items:start; flex-direction:column; }
.calendar-support .section-head { margin-top:24px; }
.calendar-support .card { padding:16px; }
.calendar-support .line .text-btn { flex-shrink:0; }
.is-day { height:calc(100dvh - 200px); min-height:400px; }
.month-grid .day-tile { min-height:132px; }
}
@media(max-width:767px) {
.form-dialog > form {max-height:calc(100dvh - env(safe-area-inset-top))}
.form-dialog .dialog-head {padding:20px}
.dialog-content {padding:0 20px 20px}
.dialog-footer {padding:12px 20px calc(12px + env(safe-area-inset-bottom))}
.dialog-footer .primary {flex:1}
.dialog-footer .ghost {width:100%}

dialog { width:100%; max-width:100%; max-height:calc(100dvh - env(safe-area-inset-top)); border-radius:18px 18px 0 0; margin:auto 0 0; padding:20px; }
#editor { height:calc(100dvh - env(safe-area-inset-top)); }
#job-form { height:100%; max-height:100%; }
#job-form > .dialog-head { padding:20px; }
.editor-content { padding:0 20px 20px; }
.editor-footer { padding:12px 20px calc(12px + env(safe-area-inset-bottom)); gap:8px; }
.editor-footer .primary { flex:1; padding:12px 8px; }
.auth { padding:24px 20px; margin:24px auto; }
}
@media(max-width:389px) {
main { padding:20px 16px; }
.topbar { padding-inline:16px; }
.dashboard-head > div { gap:4px; flex-direction:column; align-items:start; }
.calendar-toolbar { padding:12px 8px 8px; }
.calendar-period { gap:4px; }
.calendar-period strong { white-space:nowrap; overflow-wrap:normal; font-size:1.25rem; }
.calendar-period small { white-space:nowrap; font-size:.875rem; }
.calendar-controls { gap:0; }
.calendar-navigation .text-btn { padding:8px 4px; }
.calendar-key { padding:0 8px 12px; gap:8px; font-size:.75rem; }
.month-grid .day-tile { min-height:96px; padding-inline:2px; }
.month-event { padding:2px 0; border-left-width:2px; font-size:.6875rem; gap:2px; }
.reservation-row { grid-template-columns:52px minmax(0,1fr) 16px; gap:8px; padding:12px; }
.reservation-quick-action { margin-left:72px; }
.editor-content, .editor-footer { padding-inline:16px; }
.field.row { grid-template-columns:1fr; }
.auth { padding:20px 16px; }
}
@media(prefers-reduced-motion:reduce) {
*, *::before, *::after { transition:none; animation:none; scroll-behavior:auto; }
}
