/* Taxsar — warm ivory, graphite and brushed champagne. Shared rider/control tokens. */
:root{--ink:#202323;--muted:#737572;--green:#252928;--lime:#e3cc9c;--line:#e5e3de;--border:#e5e3de;--paper:#fffefa;--background:#f4f3ef;--bg:#f4f3ef;--surface:#fffefa;--surface-alt:#f3f2ee;--accent-soft:#f1e9d8;--accent-text:#7b602e;--edge:#e2dfd8;--subtle:#6d706c;--primary-bg:#252928;--primary-fg:#fffefa;--shadow:0 18px 55px #20232312}
[data-theme=dark]{--ink:#f0eee8;--muted:#a4a7a3;--green:#dcc393;--lime:#dcc393;--line:#343735;--border:#343735;--paper:#191c1b;--background:#111413;--bg:#111413;--surface:#191c1b;--surface-alt:#232725;--accent-soft:#373225;--accent-text:#e0c698;--edge:#3b3e39;--subtle:#b4b6b0;--primary-bg:#dcc393;--primary-fg:#24251f;--shadow:0 18px 55px #0004}
body{font-family:'Segoe UI Variable','Segoe UI',-apple-system,BlinkMacSystemFont,Arial,sans-serif;color:var(--ink);background:var(--background);font-size:14px;letter-spacing:-.15px}
button,a{transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}button:active{transform:scale(.985)}button:disabled{cursor:not-allowed}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #bb985a;outline-offset:3px}
.topbar,[data-theme=dark] .topbar{top:20px;left:24px;right:24px;height:68px;border:1px solid var(--edge);border-radius:16px;background:var(--surface);box-shadow:0 6px 30px #00000008;padding:12px 18px 12px 22px;backdrop-filter:none}
.brand{font-size:29px;letter-spacing:-1.6px;font-weight:700;gap:12px}.brand-dot{color:#ad8d50}.brand-symbol,[data-theme=dark] .brand-symbol{background:var(--primary-bg);color:var(--primary-fg);border-radius:9px;width:36px;height:36px}.role-switch{background:var(--surface-alt);padding:4px;border-radius:10px}.role-switch button{font-size:13px;padding:11px 24px;color:var(--subtle);border-radius:7px}.role-switch button.selected,[data-theme=dark] .role-switch button.selected{background:var(--surface);color:var(--ink);box-shadow:0 2px 5px #0000000a}.pilot{font-size:11px;color:var(--subtle)}.pilot i,.live-dot{background:#b99b63}.theme-toggle,.round{width:40px;height:40px;border-radius:10px;background:var(--surface-alt);border:1px solid var(--edge)}.theme-toggle:hover{box-shadow:none;background:var(--accent-soft)}.header-right{gap:14px}
.ride-panel,[data-theme=dark] .ride-panel{left:24px;top:108px;width:424px;max-height:calc(100dvh - 132px);border:1px solid var(--edge);border-radius:20px;background:var(--surface);box-shadow:var(--shadow)}
.panel-content{padding:25px 24px 18px;scrollbar-width:thin;scrollbar-color:var(--edge) transparent}.booking-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.city-button{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;min-height:34px;max-width:70%;padding:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.city-button svg{width:15px;height:15px;flex-shrink:0;color:var(--accent-text)}.city-button>span{margin-left:3px;color:var(--subtle)}.booking-step{font-size:9px;letter-spacing:1px;color:var(--subtle);white-space:nowrap}
.panel-content h1{font-size:36px;font-weight:600;letter-spacing:-1.5px;line-height:1.1;margin:17px 0 9px}.subtitle{font-size:13px;line-height:1.5;margin:0 0 24px;color:var(--subtle)}
.route-fields,[data-theme=dark] .route-fields{padding:0 14px;border:1px solid var(--edge);background:var(--surface-alt);border-radius:12px}.field-row{height:67px;gap:13px}.field-row+.field-row{border-top:1px solid var(--edge)}.field-button small{font-size:9px;letter-spacing:.9px;margin-bottom:5px;color:var(--subtle)}.field-button b{font-size:14px;font-weight:550;line-height:1.4}.field-action{padding:10px;color:var(--subtle);min-width:40px;min-height:44px}.field-dot{width:10px;height:10px;border:2px solid var(--ink)}.field-dot:after{left:2px;top:16px;height:34px;background:repeating-linear-gradient(var(--edge) 0 3px,transparent 3px 6px)}.field-dot.end,[data-theme=dark] .field-dot.end{background:#b6975e;border-color:#b6975e;border-radius:3px}
.stops-editor{padding:0 2px}.add-stop{font-size:11px;min-height:36px;padding-left:0;color:var(--subtle)}.stop-row{padding:6px 0}.stop-row .field-button b{font-size:13px}.stop-actions button{min-height:44px}.quick-places{margin:4px 0 23px;gap:7px}.chip,[data-theme=dark] .chip{background:var(--surface);border-color:var(--edge);padding:9px 10px;font-size:11px;min-height:36px;border-radius:8px}.chip svg{width:14px;height:14px}.chip:hover{background:var(--surface-alt)}
.section-head{margin-bottom:12px}.section-head h3{font-size:14px;font-weight:600}.small-link{font-size:11px;color:var(--subtle);min-height:30px;border-bottom:0}.tariffs{gap:8px}.tariff,[data-theme=dark] .tariff{display:block;min-height:148px;background:var(--surface);border:1px solid var(--edge);border-radius:12px;padding:11px 11px 12px;text-align:left;transition:background .2s,border-color .2s,transform .2s}.tariff.selected,[data-theme=dark] .tariff.selected{background:var(--accent-soft);border-color:#b99b63;color:var(--ink);box-shadow:inset 0 0 0 .5px #b99b63}.tariff b{font-size:12px;font-weight:600}.tariff strong{font-size:22px;font-weight:600;line-height:1.25;margin:7px 0 3px;letter-spacing:-.7px}.tariff small{font-size:10px;line-height:1.4;color:var(--subtle)}.tariff .check{width:14px;height:14px;background:#ad8d50;top:8px;right:8px;font-size:9px;color:#fff}.car-art,.car-art svg{display:block;width:96px;max-width:100%;height:45px;margin:4px 0 9px;transform:none!important}.car-art{filter:drop-shadow(0 4px 3px #00000012)}
.ride-options{margin-top:18px;border-top:1px solid var(--edge)}.ride-options summary{list-style:none;display:flex;justify-content:space-between;gap:10px;padding:17px 0 6px;font-size:12px;font-weight:600;cursor:pointer;min-height:44px}.ride-options summary::-webkit-details-marker{display:none}.ride-options summary span{font-size:11px;font-weight:400;color:var(--subtle)}.preferences{gap:6px;margin:16px 0}.preference{font-size:11px;padding:9px 10px;min-height:40px;background:var(--surface);border-radius:8px}.preference.selected,[data-theme=dark] .preference.selected{background:var(--accent-soft);border-color:#b99b63;color:var(--ink)}.pay-row{font-size:13px;padding:13px 0}.pay-row .payment-label{font-size:12px;color:var(--accent-text);min-height:40px}.feature-row{font-size:13px;border:0;padding:2px 0}.feature-row button{color:var(--accent-text)}
.primary,[data-theme=dark] .primary,.search-form button,[data-theme=dark] .search-form button{background:var(--primary-bg);color:var(--primary-fg);border-radius:11px;box-shadow:none;min-height:54px;font-size:14px;font-weight:600;padding:15px 18px;line-height:1.3}.primary:hover,[data-theme=dark] .primary:hover{background:var(--primary-bg);filter:brightness(1.12)}.primary .arrow{font-size:23px}.primary.secondary{background:var(--surface-alt);color:var(--ink)}.primary.danger{background:#f9e9e5;color:#a24635}
#booking-footer,[data-theme=dark] #booking-footer{padding:12px 24px 17px;background:var(--surface);border-top:1px solid var(--edge)}.under-button{font-size:10px;margin-top:11px;color:var(--subtle);line-height:1.5}.under-button svg{width:13px;height:13px}.panel-nav,[data-theme=dark] .panel-nav{padding:8px 14px 10px;border-top:1px solid var(--edge);background:var(--surface)}.panel-nav button{font-size:10px;gap:6px;min-height:46px;min-width:66px;color:var(--subtle);border-radius:9px}.panel-nav button.active,[data-theme=dark] .panel-nav button.active{background:var(--surface-alt);color:var(--ink);font-weight:600}.panel-nav svg{width:19px;height:19px}
.map-wash,[data-theme=dark] .map-wash{display:none}.leaflet-tile-pane{filter:saturate(.6) brightness(1.025)}[data-theme=dark] .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) saturate(.18) brightness(.8)}#map{background:#e5e4df}.map-top-info,[data-theme=dark] .map-top-info{top:110px;left:auto;right:24px;transform:none;background:var(--surface);border:1px solid var(--edge);border-radius:10px;padding:12px 15px;font-size:12px;max-width:calc(100vw - 500px);white-space:normal;box-shadow:0 3px 20px #00000008}.live-dot{flex-shrink:0}.map-tools{right:24px;top:40%;gap:8px}.map-tool,[data-theme=dark] .map-tool{background:var(--surface);border:1px solid var(--edge);border-radius:10px;width:44px;height:44px;box-shadow:0 3px 16px #00000008}.map-tool:hover{background:var(--surface-alt)}.demo-pill,[data-theme=dark] .demo-pill{right:24px;bottom:36px;background:var(--surface);border:1px solid var(--edge);border-radius:12px;padding:12px 15px;font-size:12px;box-shadow:none}.demo-sub{font-size:10px;color:var(--subtle)}.play-icon,[data-theme=dark] .play-icon{background:var(--surface-alt);color:var(--ink)}.map-caption{display:none}.map-label{font-size:12px}.place-marker{background:#282d2a;font-size:11px}.place-marker.end{border-color:#ad8d50;color:#6e5428}.mini-car .roof{background:#d3b77b}.mini-car .body{background:linear-gradient(90deg,#a7aaa8,#efefec 24%,#fcfcf8 48%,#c0c3c0 85%,#929895)}
.map-pick,[data-theme=dark] .map-pick{display:block;left:50%;bottom:30px;width:400px;max-width:calc(100vw - 32px);transform:translateX(-50%);padding:20px;border:1px solid var(--edge);background:var(--surface);color:var(--ink);border-radius:16px;box-shadow:var(--shadow)}.pick-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:17px}.pick-heading button{font-size:12px;min-height:36px;color:var(--subtle)}.map-pick p{font-size:13px;line-height:1.5;color:var(--subtle);margin:8px 0 16px;min-height:38px}.map-pick .primary{color:var(--primary-fg)}.map-pick .pick-search{color:var(--subtle);width:100%;min-height:38px;font-size:12px}.picking .ride-panel,.picking .demo-pill,.picking .map-top-info{display:none}.pickup-pin{width:44px;height:44px;transform:rotate(-45deg);border-radius:50% 50% 50% 4px;border:3px solid white;background:#272c29;color:white;box-shadow:0 7px 16px #0004;display:grid;place-items:center}.pickup-pin span{transform:rotate(45deg);font-size:24px}.address-confirm{background:var(--surface-alt);padding:17px;border:1px solid var(--edge);border-radius:12px;font-size:16px;line-height:1.6}.address-confirm small{display:block;font-size:12px;color:var(--subtle);margin-top:6px}.yandex-link{display:block;min-height:44px;padding:15px 0;font-size:13px;color:var(--accent-text)}
dialog,[data-theme=dark] dialog{background:var(--surface);color:var(--ink);border:1px solid var(--edge);border-radius:20px;padding:26px;width:min(520px,calc(100vw - 28px));max-height:90dvh}dialog::backdrop{background:#111a1666;backdrop-filter:blur(6px)}dialog h2{font-size:29px;letter-spacing:-1px;font-weight:600;line-height:1.15}dialog p{color:var(--subtle);font-size:14px;line-height:1.6}.eyebrow{font-size:10px;color:var(--subtle);letter-spacing:1.6px}.form label,.auth-form label,.edit-form label{font-size:13px}.form input,.form textarea,.search-input,input,select{background:var(--surface-alt);color:var(--ink);border:1px solid var(--edge);font-size:16px;border-radius:9px}.form input,.search-input{min-height:50px}.form-foot{font-size:11px!important;color:var(--subtle)}.search-form{margin:16px 0 10px}.search-form button{width:54px;flex-shrink:0;padding:12px;min-height:50px}.search-city{display:flex;align-items:center;gap:7px;width:100%;background:var(--surface-alt);border:1px solid var(--edge);border-radius:9px;padding:12px;font-size:13px}.search-city span{margin-left:auto;color:var(--subtle);font-size:11px}.search-city svg{width:16px;height:16px}.search-scope{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--subtle);min-height:40px;margin-bottom:6px}.search-scope input{accent-color:#a1844e;width:17px;height:17px}.choose-map,[data-theme=dark] .choose-map{background:var(--surface-alt);border:1px solid var(--edge);font-size:13px;min-height:46px;color:var(--ink)}.result{display:flex;align-items:center;gap:13px;padding:17px 0;border-bottom:1px solid var(--edge);font-size:14px}.result>span:nth-child(2){flex:1;min-width:0}.result b{font-size:15px;font-weight:600}.result small{font-size:12px;line-height:1.5;margin-top:3px;color:var(--subtle)}.result em{display:block;font-size:11px;font-style:normal;margin-top:6px;color:var(--accent-text);line-height:1.5}.result-icon{display:grid;place-items:center;width:38px;height:42px;flex-shrink:0;background:var(--surface-alt);border-radius:8px;color:var(--subtle)}.result-icon svg{width:18px;height:18px}.result-arrow{color:var(--subtle)}.result:hover{background:var(--surface-alt)}.search-empty,.search-loading{padding:22px 2px;font-size:14px}.notice,[data-theme=dark] .notice{background:var(--accent-soft);color:var(--ink);border:1px solid var(--edge);font-size:13px}.secondary-button{font-size:13px;min-height:46px;border-color:var(--edge);border-radius:9px}.menu-list button,.menu-list a{background:var(--surface-alt);font-size:14px;min-height:50px}.menu-list span{color:var(--subtle)}.payment-option.selected,[data-theme=dark] .payment-option.selected,.tip-options .selected{background:var(--accent-soft);border-color:#b99b63}.payment-option{font-size:14px}.payment-option small{font-size:12px}#toast{background:#252b27;color:#faf9f4;border:1px solid #535a52;bottom:24px;font-size:13px;line-height:1.5}.connection{font-size:12px}
/* Control room shares the same palette and spacing. */
.sidebar{background:var(--surface);border-color:var(--edge)}.logo{font-weight:700}.logo span{color:#ad8d50}.sidebar nav button.selected,[data-theme=dark] .sidebar nav button.selected{background:var(--accent-soft);color:var(--ink);border-color:var(--edge)}.sidebar nav button{border-radius:9px;font-size:14px}.card,.map-card,.auth-shell{background:var(--surface);border:1px solid var(--edge);border-radius:16px;box-shadow:0 5px 24px #00000004}.metric{border:1px solid var(--edge);background:var(--surface);border-radius:12px}.metric.highlight,[data-theme=dark] .metric.highlight{background:var(--accent-soft);color:var(--ink)}.page-head h1{font-weight:600;letter-spacing:-1.3px}.head-tools label,.updated,.hint{color:var(--subtle)}.secondary,.small-button,.square{background:var(--surface);border-color:var(--edge);border-radius:8px}.auth-shell .primary,.edit-form .primary,.main .primary{font-size:13px;min-height:42px}.card-head{border-color:var(--edge)}.sidebar-bottom{border-color:var(--edge)}
@media(min-width:1500px){.ride-panel{width:448px}.panel-content{padding:28px}.topbar{left:28px;right:28px}.ride-panel{left:28px}.car-art,.car-art svg{width:100px}}
@media(max-width:1000px) and (min-width:761px){.ride-panel{width:390px}.panel-content{padding:22px}.role-switch{position:static;transform:none;margin-left:auto;margin-right:18px}.role-switch button{padding:10px 15px}.pilot{display:none}.map-top-info{max-width:calc(100vw - 460px)}.booking-step{font-size:8px}.quick-places .chip{font-size:10px}.car-art,.car-art svg{width:86px}}
@media(max-width:760px){
 .topbar,[data-theme=dark] .topbar{top:max(10px,env(safe-area-inset-top));left:12px;right:12px;height:56px;padding:8px 10px 8px 14px;border-radius:13px}.brand{font-size:25px;gap:8px}.brand-symbol,[data-theme=dark] .brand-symbol{width:29px;height:31px;border-radius:7px;font-size:26px}.brand-symbol span{font-size:14px}.role-switch{position:static;transform:none;padding:3px;margin-left:auto;margin-right:7px;background:transparent}.role-switch button{font-size:11px;padding:10px 9px}.role-switch button span{display:none}#passenger-mode{display:none}.role-switch #driver-mode.selected{background:var(--accent-soft)}.header-right{gap:6px}.theme-toggle,.round{width:34px;height:36px;border-radius:9px}.theme-toggle{font-size:23px}.account-btn svg{width:18px;height:18px}
 .ride-panel,[data-theme=dark] .ride-panel{position:fixed;left:0;right:0;top:auto;bottom:0;width:100%;max-height:65dvh;border-radius:23px 23px 0 0;border:1px solid var(--edge);border-bottom:0;box-shadow:0 -8px 40px #00000014;transition:max-height .23s ease}.ride-panel.expanded{max-height:calc(100dvh - 80px)}.panel-handle{display:grid;place-items:center;margin:0;padding:9px;width:100%;height:27px;background:var(--surface);border:0;border-radius:0;flex-shrink:0}.panel-handle span{display:block;width:36px;height:4px;border-radius:4px;background:var(--edge)}.panel-content{padding:0 20px 16px;min-height:0}.booking-heading{gap:8px}.city-button{font-size:12px;min-height:30px}.booking-step{font-size:8px;letter-spacing:.8px}.panel-content h1{font-size:29px;letter-spacing:-1px;margin:11px 0 7px}.subtitle{font-size:12px;margin-bottom:18px}.field-row{height:61px}.field-button small{font-size:9px}.field-button b{font-size:14px}.field-dot:after{height:29px}.field-action{min-height:44px;padding:8px}.quick-places{margin:4px 0 18px;gap:6px}.chip,[data-theme=dark] .chip{font-size:11px;min-height:35px;padding:7px 9px}.section-head{margin-bottom:10px}.section-head h3{font-size:14px}.tariffs{gap:7px}.tariff,[data-theme=dark] .tariff{padding:9px;min-height:140px}.tariff b{font-size:12px}.tariff strong{font-size:20px}.tariff small{font-size:9px}.car-art,.car-art svg{display:block;height:40px;width:90px;margin:6px 0 7px}.tariff .check{width:13px;height:13px;font-size:8px}.ride-options{margin-top:15px}.ride-options summary{font-size:12px}.ride-options summary span{font-size:10px}.preference{font-size:11px;min-height:40px}.pay-row{font-size:13px}
 #booking-footer,[data-theme=dark] #booking-footer{padding:12px 20px 11px}.primary,[data-theme=dark] .primary{min-height:51px;font-size:14px;border-radius:10px}.under-button{font-size:10px;margin-top:9px}.panel-nav,[data-theme=dark] .panel-nav{padding:5px 14px max(6px,env(safe-area-inset-bottom));min-height:62px}.panel-nav button{font-size:10px;min-height:46px;min-width:65px;gap:4px}.panel-nav svg{width:18px;height:18px}
 .map-top-info,[data-theme=dark] .map-top-info{top:78px;left:12px;right:auto;max-width:calc(100vw - 78px);font-size:11px;padding:10px 12px;border-radius:9px}.map-tools{top:calc(35dvh - 96px);right:12px;gap:7px}.map-tool,[data-theme=dark] .map-tool{width:40px;height:40px;border-radius:10px}.map-tools #zoom-in,.map-tools #zoom-out{display:none}.demo-pill,[data-theme=dark] .demo-pill{left:12px;right:auto;bottom:calc(65dvh + 15px);padding:9px 11px;gap:9px;font-size:10px;border-radius:10px;max-width:calc(100vw - 70px)}.demo-sub{font-size:9px}.play-icon{width:26px;height:26px}.leaflet-control-attribution{position:fixed;bottom:65dvh;right:0;font-size:8px!important;max-width:85vw}.picking .leaflet-control-attribution{bottom:0}.picking .map-tools{top:35%}.map-pick,[data-theme=dark] .map-pick{left:12px;right:12px;bottom:max(16px,env(safe-area-inset-bottom));width:auto;max-width:none;transform:none;padding:18px;border-radius:16px}.map-pick p{font-size:13px}.pick-heading{font-size:18px}.map-pick .primary{font-size:14px}.map-pick .pick-search{font-size:12px}
 dialog,[data-theme=dark] dialog{padding:22px;width:calc(100vw - 24px);border-radius:18px;max-height:92dvh}dialog h2{font-size:27px}dialog p{font-size:13px}.form input,.search-input{font-size:16px}.result b{font-size:14px}.result small{font-size:12px}.result{gap:10px}.result-icon{width:32px}.result em{font-size:11px}.form-foot{font-size:11px!important}#toast{bottom:calc(65dvh + 8px);font-size:12px;max-width:calc(100vw - 28px)}.picking #toast{bottom:270px}
}
@media(max-width:360px){.topbar{left:8px;right:8px}.brand-symbol{display:none!important}.panel-content{padding-left:16px;padding-right:16px}.chip{font-size:10px!important;padding:7px!important}.booking-step{display:none}.tariff small{font-size:8px}.role-switch button{padding:10px 6px}.ride-options summary{font-size:11px}.ride-options summary span{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:760px){body[data-role=driver] #passenger-mode{display:block}body[data-role=driver] #driver-mode{display:none}}

.demo-pill{display:none!important}
@media(max-width:760px){#map{height:calc(35dvh + 22px);bottom:auto}.picking #map{height:100dvh}.picking .map-tools{top:30%}}

@media(max-width:760px){.picking .map-tools #zoom-in,.picking .map-tools #zoom-out{display:flex}.picking .map-tools{top:23%}}

@media(max-width:760px){.tariff .car-art,.tariff .car-art svg{display:block}body:has(.ride-panel.expanded) .leaflet-control-attribution{top:67px;bottom:auto}}

.recent-heading{font-size:10px;letter-spacing:1.6px;color:var(--muted);margin:20px 0 8px}.recent-address b{white-space:normal!important}.recent-address{min-height:66px}#search-results:empty{display:none}

/* Direct map selection stays separate from GPS and remains reachable above history. */
.route-fields .field-button{min-width:0}
.route-fields .field-action{flex:0 0 44px;width:44px;height:44px;padding:11px}
.route-fields .map-shortcut,.search-form .map-shortcut{background:var(--surface-alt);color:var(--ink);border:1px solid var(--line);border-radius:12px;display:inline-flex;align-items:center;justify-content:center}
.route-fields .map-shortcut{margin-left:4px}
.map-shortcut svg{width:21px;height:21px;flex-shrink:0}
.map-shortcut:hover{border-color:var(--muted);filter:brightness(.97)}
.map-shortcut:active{transform:scale(.95)}
.map-shortcut:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.search-form .search-input{min-width:0;flex:1}
.search-form button{flex:0 0 44px;min-height:46px}
