/* Compact taxi layout: the map owns the space between two measured panels. */
:root{color-scheme:light;--bg:#fffaf3;--ink:#263d32;--muted:#676e67;--line:#ddd9cf;--surface:#fffaf3f5;--accent:#ba5937;--route:#2a5941;--shadow:0 5px 22px #2234251c;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);font:16px system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--bg)}
:root[data-theme=dark]{color-scheme:dark;--bg:#1c211e;--ink:#fff4e4;--muted:#c2c8bf;--line:#566055;--surface:#273229f5;--accent:#e89c76;--route:#bfd292;--shadow:0 5px 22px #0004}
*{box-sizing:border-box}body{margin:0;overscroll-behavior:none}button,input,textarea,a{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0}button:disabled{opacity:.55;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:3px}button,a{touch-action:manipulation}[hidden]{display:none!important}
#taxi{position:relative;height:100vh;height:100svh;height:100dvh;min-height:0;overflow:hidden}
#map{position:absolute;inset:var(--map-top-offset,186px) 0 var(--dock-height,190px);background:var(--bg)}
#mapLoading{position:absolute;top:calc((100% - var(--dock-height,190px) + var(--map-top-offset,186px))/2);left:50%;transform:translate(-50%,-50%);padding:14px;border-radius:16px;background:var(--surface);font-size:14px}
.trip-top{position:absolute;top:calc(var(--safe-top) + 8px);inset-inline:12px;max-width:560px;margin-inline:auto;pointer-events:none}
header{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px}header>*{pointer-events:auto}
.round{width:44px;height:44px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;text-decoration:none;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);font-size:26px}
.brand{display:flex;align-items:center;gap:5px;padding:4px 11px;border-radius:18px;background:var(--surface)}.brand svg{width:30px;height:26px}.brand span{display:grid}.brand strong{font-size:24px;line-height:1}.brand small{font-size:8px;letter-spacing:2.5px;margin-top:3px}
.tagline{width:max-content;max-width:100%;margin:6px auto 0;font-size:11px;color:var(--muted)}.has-route .tagline{display:none}
.address-cards{pointer-events:auto;margin-top:10px;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);background:var(--surface);overflow:hidden}
.address{display:flex;width:100%;align-items:center;gap:10px;padding:9px 12px;min-height:54px;background:transparent;text-align:left}.address+.address{border-top:1px solid var(--line)}
.address span{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 10px;flex:1;min-width:0}.address small{grid-row:1;grid-column:1;font-size:11px;line-height:14px;color:var(--muted)}
.address strong{grid-row:2;grid-column:1/-1;font-size:16px;line-height:21px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.address em{grid-row:1;grid-column:2;text-align:right;font-style:normal;color:var(--muted);font-size:12px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.address i{font-style:normal;font-size:18px;color:var(--muted);flex-shrink:0}.dot{border-radius:50%;background:var(--route);color:var(--bg);width:22px;height:22px;display:grid;place-items:center;flex-shrink:0;font-size:12px}.address:last-child .dot{background:var(--accent);color:var(--bg)}
.locate{position:absolute;right:max(12px,calc((100% - 560px)/2));bottom:calc(var(--dock-height,190px) + 40px)}
.dock{position:absolute;bottom:0;inset-inline:0;padding:8px max(16px,calc((100% - 540px)/2)) calc(12px + var(--safe-bottom));border-radius:22px 22px 0 0;background:var(--surface);box-shadow:var(--shadow)}
.detail{width:100%;min-height:38px;padding:7px 0;text-align:left;background:transparent;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px}.detail span{font-size:20px}
.notice{color:var(--muted);font-size:11px;line-height:15px;text-align:center;margin:2px 0 5px}
.primary,.secondary{padding:13px;border-radius:14px;min-height:48px;display:block;text-align:center;text-decoration:none;font-weight:650}.primary{background:var(--accent);color:#fffaf3;width:100%}:root[data-theme=dark] .primary{background:#d88960;color:#211d18}.secondary{background:var(--bg);border:1px solid var(--line);color:var(--ink)}
#status:empty,#sendStatus:empty{display:none}#status,#sendStatus{font-size:13px;line-height:18px;margin:5px 0;color:var(--muted)}#commentSummary{font-size:12px;color:var(--muted);margin:0 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.route-source{display:block;color:var(--muted);font-size:11px;line-height:14px;text-align:center;margin:4px 0 8px}
dialog{background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:26px 26px 0 0;margin:auto auto 0;width:min(100%,560px);max-width:100%;padding:22px 20px calc(20px + var(--safe-bottom));max-height:85dvh;overflow:auto;box-shadow:var(--shadow)}dialog::backdrop{background:#131a17a3}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}h2{font-size:22px;margin:0}.dialog-head button{border-radius:50%;width:44px;height:44px;background:var(--surface);font-size:30px;flex-shrink:0}label{display:block;font-size:13px;color:var(--muted);margin:10px 0}input,textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:13px;background:var(--surface);color:var(--ink);font-size:16px}textarea{resize:vertical;margin-bottom:15px}.search{display:flex;gap:8px}.search button{border-radius:12px;padding:0 15px;background:var(--ink);color:var(--bg)}#suggestions button{display:block;width:100%;text-align:left;padding:14px 4px;border-bottom:1px solid var(--line);background:transparent}#searchStatus,#reviewNote,#contact,#trackingNote{font-size:14px;color:var(--muted)}#chooseMap{width:100%;margin-top:18px}#reviewRoute p{padding:10px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}#login{margin-top:12px}
#pointPanel{position:absolute;bottom:0;inset-inline:0;background:var(--surface);padding:16px max(16px,calc((100% - 540px)/2)) calc(16px + var(--safe-bottom));border-radius:22px 22px 0 0;box-shadow:var(--shadow)}#pointPanel>div{display:flex;gap:10px}#pointPanel button{flex:1}#pointAddress{min-height:38px;font-size:14px;color:var(--muted)}
#pin{position:absolute;left:50%;top:calc((100% - var(--dock-height,190px) + var(--map-top-offset,64px))/2);transform:translate(-50%,-100%);color:var(--accent);font-size:40px;pointer-events:none;text-shadow:0 1px 3px #fff}#pin span{display:block;width:3px;height:23px;background:var(--ink);margin:-6px auto 0}
.selecting .dock,.selecting .address-cards,.selecting .locate,.selecting .tagline{display:none}
.map-marker{width:22px;height:22px;border:4px solid var(--bg);border-radius:50%;background:var(--route);transform:translate(-50%,-50%);box-shadow:0 1px 4px #0005}.map-marker.end{background:var(--accent)}
#trackingDialog .primary,#trackingDialog .secondary{width:100%;margin-top:10px}#myRequest{width:100%;margin-bottom:4px;padding:8px;min-height:40px}
@media(max-height:650px){.tagline{display:none}.trip-top{top:calc(var(--safe-top) + 4px)}.address-cards{margin-top:6px}.address{padding-block:6px;min-height:48px}.dock{padding-top:4px;padding-bottom:calc(8px + var(--safe-bottom))}.notice{margin-block:0 3px}.detail{min-height:32px;padding-block:4px}}

/* Flat address rows and separate navigation controls. */
.address-cards{margin-top:0;border:0;border-radius:0;box-shadow:none;background:transparent;overflow:visible}
.address-row{display:flex;align-items:center;min-width:0}.address-row+.address-row{border-top:1px solid var(--line)}.address-row .address{flex:1;min-width:0;padding-inline:4px}.address-row .address i{display:none}.address-row .address .dot{width:20px;height:20px;font-size:11px}
.address-row:nth-child(2) .dot{background:var(--accent)}.address-row:first-child .dot{background:var(--route)}
.entrance-trigger{flex-shrink:0;max-width:100px;min-height:44px;padding:8px;border-radius:10px;background:var(--surface);font-size:12px;line-height:16px;overflow:hidden;text-overflow:ellipsis}
.trip-top header{margin-top:2px}.trip-top header .round{background:transparent;box-shadow:none}.muted,#entranceError{font-size:13px;line-height:18px;color:var(--muted)}#entranceError:empty{display:none}#entranceForm .primary{margin-top:16px}
.location-note{margin:6px 4px;font-size:12px;line-height:17px;pointer-events:auto}.location-note p{margin:4px 0}.location-note>div{display:flex;gap:12px}.text-action{background:transparent;color:var(--accent);min-height:40px;padding:4px 0;font-size:13px;font-weight:600}.location-note summary{cursor:pointer;min-height:30px}.location-note details p{max-width:450px}

/* Individual map controls: no reserved header row below the addresses. */
.map-controls{position:absolute;top:calc(var(--map-top-offset,130px) + 10px);inset-inline:12px;max-width:560px;margin-inline:auto;min-height:0;pointer-events:none;z-index:1}
.map-controls .round{pointer-events:auto;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow)}

.address-option{display:block;width:100%;min-height:48px;text-align:left;padding:12px 4px;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);font-size:14px;line-height:20px}#savedHomeOptions{margin-top:12px}#nearbyHouses .muted{margin:12px 0 0}#saveHome{width:100%;margin-top:10px}.home-storage-note{font-size:12px;line-height:17px;color:var(--muted);margin:8px 0 0}

/* Saved places and routes reuse existing dialog animation and theme tokens. */
#libraryDialog{height:100dvh;max-height:100dvh;border-radius:0;border:0;padding-top:calc(16px + var(--safe-top));overflow:hidden}#libraryDialog[open]{display:flex;flex-direction:column}#libraryDialog>.dialog-head{flex-shrink:0;background:var(--bg)}.library-content{min-height:0;overflow:auto;overscroll-behavior:contain}#libraryDialog h3{font-size:20px;margin:26px 0 10px}.library-link{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:52px;padding:12px 4px;margin-top:8px;background:transparent;border-bottom:1px solid var(--line);text-align:left;font-size:16px}.library-link>span:last-child{font-size:26px;color:var(--muted)}
.library-row{border-bottom:1px solid var(--line);padding:6px 0 10px}.library-choice{display:block;width:100%;min-height:56px;padding:10px 0;text-align:left;background:transparent}.library-choice strong{display:block;font-size:16px;line-height:22px}.library-choice small{display:block;color:var(--muted);font-size:13px;line-height:19px;margin-top:4px;overflow-wrap:anywhere}.library-tools{display:flex;gap:18px}.library-tools button{background:transparent;color:var(--accent);font-size:13px;min-height:44px;padding:4px 0}.library-add{display:block;width:100%;text-align:left;min-height:50px;padding:12px 0;background:transparent;border-bottom:1px solid var(--line);font-size:15px}.place-details{display:grid;grid-template-columns:1fr 1.5fr;gap:10px}.place-details>div{min-width:0}#placeFields{margin-bottom:16px}#savePlaceAddress{margin-top:12px;width:100%}#libraryStatus,#tripNameStatus,#deleteLibraryStatus{font-size:14px;line-height:20px;color:var(--muted)}#libraryStatus{position:sticky;bottom:0;background:var(--bg);padding:8px 0}#libraryStatus:empty{display:none}.library-confirm{display:flex;gap:12px;margin-top:20px}.library-confirm button{flex:1}#tripNameForm>.primary,#tripNameCancel{width:100%;margin-top:14px}#deleteLibraryText{font-size:20px;line-height:28px;overflow-wrap:anywhere}.library-choice:focus-visible,.library-tools button:focus-visible,.library-add:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Owner selected concept3: routes first, compact places, contextual actions. */
#libraryDialog{padding-bottom:calc(16px + var(--safe-bottom));padding-inline:22px}
#libraryDialog>.dialog-head{justify-content:flex-start;gap:12px;margin-bottom:18px}
#libraryDialog>.dialog-head h2{font-size:21px;line-height:27px;letter-spacing:-.5px}
#libraryDialog>.dialog-head button{display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);font-size:22px}
.library-icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.library-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 12px}
#libraryDialog .library-section-head h3{font-size:18px;margin:0;letter-spacing:-.3px}
.library-section-head .text-action{font-weight:500;font-size:13px;min-height:44px;padding:4px 0}
#libraryPlaces+.library-additions{margin-top:4px}
#libraryTrips{margin-bottom:22px}
.library-row{position:relative;display:flex;align-items:center;gap:2px;padding:2px 0;border-bottom:1px solid var(--line)}
.library-row>.library-choice{display:flex;align-items:center;gap:13px;flex:1;min-width:0;min-height:78px;padding:10px 0}
.library-row>.library-choice>.library-icon{color:var(--route);margin-inline:3px 4px}
.library-choice>span{min-width:0}.library-choice strong{font-size:17px;line-height:23px;font-weight:620}.library-choice small{font-size:13px;line-height:19px;margin-top:3px}
.library-menu{flex-shrink:0;position:relative;align-self:center}
.library-menu summary{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;list-style:none;cursor:pointer;font-size:24px;color:var(--muted);line-height:1}
.library-menu summary::-webkit-details-marker{display:none}.library-menu summary::marker{content:''}
.library-menu summary:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.library-menu[open] summary{background:var(--surface);color:var(--accent)}
.library-menu .library-tools{position:absolute;bottom:44px;right:0;min-width:154px;display:flex;flex-direction:column;gap:0;padding:5px;background:var(--bg);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);z-index:4}
.library-menu .library-tools button{min-height:46px;width:100%;padding:10px 12px;text-align:left;border-radius:9px;color:var(--ink);font-size:14px;white-space:nowrap}
.library-menu .library-tools button:last-child{color:var(--accent)}
.library-menu .library-tools button:hover{background:var(--surface)}
.library-row.library-trip{display:block;border:1px solid var(--line);border-radius:22px;padding:14px 17px 8px;background:color-mix(in srgb,var(--ink) 5%,var(--bg));margin-bottom:12px}
.library-trip-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:-4px -6px 7px 0}
.library-trip-head>strong{font-size:21px;line-height:28px;letter-spacing:-.5px;overflow-wrap:anywhere;min-width:0}
.library-trip .library-menu .library-tools{bottom:auto;top:44px}
.library-stop{position:relative;padding-left:22px;font-size:15px;line-height:21px;overflow-wrap:anywhere}
.library-stop::before{content:'';position:absolute;left:0;top:6px;width:9px;height:9px;border-radius:50%;background:var(--route)}
.library-stop small{display:block;font-size:12px;line-height:18px;color:var(--muted);margin-top:2px}
.library-stop.pickup{padding-bottom:28px}.library-stop.pickup::after{content:'';position:absolute;left:4px;top:21px;bottom:6px;border-left:1px dashed var(--muted);opacity:.6}
.library-stop.dropoff::before{background:var(--accent)}
.library-trip>.library-trip-use{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border-top:1px solid var(--line);margin-top:16px;padding:12px 0 5px;min-height:48px;color:var(--accent);font-weight:650;font-size:15px}
.library-trip-use>span{font-size:24px;font-weight:400}
.library-content{padding-inline:2px}
.library-footer{flex-shrink:0;margin-top:12px;border-top:1px solid var(--line);padding-top:14px;background:var(--bg)}
.library-footer>.primary{width:100%;font-size:15px;min-height:52px;border-radius:16px;padding:12px 8px;line-height:21px}
.library-footer .home-storage-note{text-align:center;font-size:11px;line-height:16px;margin:10px 0 0}
#librarySaveHint{color:var(--accent)}
@media(max-width:370px){#libraryDialog{padding-inline:18px}.library-row.library-trip{padding-inline:14px}#libraryDialog>.dialog-head h2{font-size:20px}}

/* A single opaque panel animation, with synchronized shade and atomic handoff. */
dialog[data-entering]::backdrop{animation:taxi-shade-in 220ms cubic-bezier(.2,.8,.2,1) both}dialog[data-closing]::backdrop{animation:taxi-shade-out 220ms cubic-bezier(.4,0,1,1) both}
@keyframes taxi-shade-in{from{background-color:transparent}to{background-color:#131a17a3}}@keyframes taxi-shade-out{from{background-color:#131a17a3}to{background-color:transparent}}
@media(prefers-reduced-motion:reduce){dialog[data-entering]::backdrop,dialog[data-closing]::backdrop{animation:none}}
.library-content{flex:1 1 0}.ui-icon{display:block;width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.map-controls .round,.round.locate,#libraryDialog>.dialog-head button,.dialog-head button[data-close]{display:grid;place-items:center;padding:0;line-height:1;width:44px;height:44px;min-width:44px;min-height:44px}
.map-controls .round{text-decoration:none}.library-menu summary{-webkit-tap-highlight-color:transparent;touch-action:manipulation;user-select:none;display:grid;place-items:center;padding:0}
.library-trip-use>span{display:grid;place-items:center;width:24px;height:24px}.address i .ui-icon{width:16px;height:16px}

/* Owner-approved contrast panels with the same map continuous behind curved edges. */
:root[data-theme=light]{color-scheme:dark;--bg:#26343c;--surface:#35464e;--ink:#fff5e7;--muted:#c9d3d7;--line:#637680;--accent:#e5a17c;--route:#bfd292;--shadow:0 5px 22px #0003}
:root{--panel-radius:24px}
.trip-top{top:0;inset-inline:0;max-width:none;padding:calc(var(--safe-top) + 8px) max(16px,calc((100% - 540px)/2)) 14px;background:var(--bg);border-radius:0 0 var(--panel-radius) var(--panel-radius);pointer-events:auto;z-index:1;box-shadow:0 3px 10px #0002}
.address-cards,.address-row,.address-row .address{background:transparent;border-radius:0;box-shadow:none}.address-cards{border:0}.address-row+.address-row{border-top:1px solid var(--line)}
.dock,#pointPanel{background:var(--surface);border-radius:var(--panel-radius) var(--panel-radius) 0 0;z-index:1}
#map{z-index:0;top:calc(var(--map-top-offset,186px) - 10px - var(--panel-radius));bottom:calc(var(--dock-height,190px) - var(--panel-radius))}
:root[data-theme=light] #map{color:#263d32}
.map-controls{z-index:2}.locate,#pin{z-index:1}
#map .ymaps3--controls_top{top:calc(var(--panel-radius) + 14px)}#map .ymaps3--map-copyrights_bottom{bottom:calc(var(--panel-radius) + 8px)}
#pin{top:calc((100% - var(--dock-height,190px) + var(--map-top-offset,64px) - 10px)/2)}
:root[data-theme=light] .primary,:root[data-theme=light] #review.primary{background:var(--accent);color:#26343c}
.address-row:first-child .dot{background:var(--route);color:var(--bg)}.address-row:nth-child(2) .dot{color:var(--bg)}
.query-locality{font-size:13px;line-height:19px;color:var(--muted);margin:8px 2px 0}#suggestions button strong{display:block;font-size:15px;line-height:21px;font-weight:600}#suggestions button small{display:block;font-size:12px;line-height:18px;color:var(--muted);margin-top:4px}

/* Keep address choices visible above optional saved-place details. */
#suggestions:not(:empty){max-height:32dvh;overflow-y:auto;overscroll-behavior:contain}#placeFields{margin-top:16px}.search button{display:grid;place-items:center;min-width:48px}.search button .ui-icon{width:22px;height:22px}

/* Destination entry fills the screen and keeps the other endpoint in view. */
#editor[data-fullscreen=true]{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:calc(var(--safe-top) + 12px) 20px calc(var(--safe-bottom) + 20px);overscroll-behavior:contain}
#editor[data-fullscreen=true] #searchForm{width:100%;max-width:560px;margin-inline:auto}
#editor[data-fullscreen=true] .dialog-head{margin-bottom:8px}#editor[data-fullscreen=true] .dialog-head h2{font-size:20px}
.editor-other{width:100%;display:flex;align-items:center;gap:12px;background:transparent;text-align:left;padding:12px 0 16px;border-bottom:1px solid var(--line);margin-bottom:16px}
.editor-other>span{flex:1;min-width:0}.editor-other small,.editor-other strong,.editor-other em{display:block}.editor-other small,.editor-other em{font-size:12px;line-height:18px;color:var(--muted);font-style:normal}.editor-other strong{font-size:16px;line-height:22px;overflow-wrap:anywhere}.editor-other .dot{width:28px;height:28px;min-width:28px;font-size:14px;background:var(--route);color:var(--bg)}.editor-other .ui-icon{width:18px;height:18px}
.search input{min-width:0;flex:1}.search .editor-map{border-radius:999px;background:var(--surface);color:var(--ink);padding:0 14px;font-size:14px;min-height:48px}
#editor[data-fullscreen=true] #searchAddress{width:44px;min-width:44px;padding:0;background:transparent;color:var(--ink)}
#editor[data-fullscreen=true] #chooseMap{display:none}#editor[data-fullscreen=true] #suggestions:not(:empty){max-height:none;overflow:visible}
.selecting .trip-top{display:none}
#editorHandle{display:none}#editor[data-fullscreen=true] #editorHandle{display:grid;place-items:center;width:72px;height:28px;padding:0;margin:-8px auto 4px;background:transparent;touch-action:none;cursor:grab}#editorHandle span{display:block;width:40px;height:5px;border-radius:99px;background:var(--muted);opacity:.65}#editorHandle:active{cursor:grabbing}

/* The address panel stays at the top; only its lower edge unfolds. No height transition:
   the OS drives keyboard geometry and adding a second easing would create a gap. */
#editor[data-fullscreen=true]{position:fixed;inset:auto;top:var(--editor-top,0px);left:var(--editor-left,0px);width:var(--editor-width,100%);height:var(--editor-full-height,100dvh);max-height:none;max-width:none;margin:0;padding:calc(var(--safe-top) + 8px) 16px 0;border-radius:0 0 24px 24px;overflow:hidden;display:none;flex-direction:column;box-sizing:border-box;overflow-anchor:none;contain:layout}
#editor[data-fullscreen=true][open]{display:flex}
#editor[data-fullscreen=true] .editor-visible{height:calc(var(--editor-height,100dvh) - var(--safe-top) - 8px);flex:none;min-height:0;display:flex;flex-direction:column}
#editor[data-fullscreen=true] #searchForm{flex:1;min-height:0;display:flex;flex-direction:column;position:relative;width:100%;max-width:560px}
#editor[data-fullscreen=true] .dialog-head{position:absolute;right:0;top:0;margin:0;z-index:1}
#editor[data-fullscreen=true] .dialog-head h2{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#editor[data-fullscreen=true] .dialog-head button{width:36px;height:36px;min-width:36px;min-height:36px}
#editor[data-fullscreen=true] .editor-other{flex:none;margin:0;padding:8px 42px 10px 12px;min-height:64px;gap:10px}
#editor[data-fullscreen=true] .editor-other>.ui-icon{display:none}
#editor[data-fullscreen=true] .editor-other small{font-size:11px;line-height:14px}#editor[data-fullscreen=true] .editor-other em{font-size:12px;line-height:16px}
#editor[data-fullscreen=true] .editor-query{position:relative;flex:none;padding:8px 0 12px 50px;border-bottom:1px solid var(--line)}
#editor[data-fullscreen=true] #queryLabel{font-size:11px;line-height:14px;margin:0 0 3px}
#editor[data-fullscreen=true] .search{gap:4px;align-items:center}
#editor[data-fullscreen=true] .search input{padding:8px 2px;min-height:44px;background:transparent;border:0;font-weight:600;border-radius:6px}
#editor[data-fullscreen=true] .editor-query::before{content:'2';position:absolute;left:12px;top:27px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--accent);color:var(--bg);font-size:14px;font-weight:700}
#editor[data-fullscreen=true][data-slot=pickup] .editor-query::before{content:'1';background:var(--route)}
#editor[data-fullscreen=true][data-slot=pickup] .editor-query{order:-2;padding-right:42px}
#editor[data-fullscreen=true][data-slot=pickup] .editor-other{order:-1;padding-right:12px}
#editor[data-fullscreen=true][data-slot=pickup] .editor-other .dot{background:var(--accent)}
#editor[data-fullscreen=true] .query-locality{margin:0 2px;font-size:12px;line-height:16px}
#editor[data-fullscreen=true] .editor-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;-webkit-overflow-scrolling:touch}
#editor[data-fullscreen=true] #editorHandle{flex:none;align-self:center;height:28px;width:72px;margin:0 auto;padding:0 0 var(--safe-bottom);box-sizing:content-box}
#editor[data-fullscreen=true][data-keyboard=true] #editorHandle{padding-bottom:0}

/* Android shop already reserves system bars and IME in its native root. */
:root[data-native-insets=true]{--safe-top:0px;--safe-bottom:0px}

#recentTrips h3{font-size:13px;font-weight:500;color:var(--muted);margin:16px 0 4px}.recent-trip{display:flex;width:100%;gap:12px;text-align:left;background:transparent;padding:14px 0;border-bottom:1px solid var(--line);align-items:center}.recent-trip>span{flex:1;min-width:0}.recent-trip strong{display:block;font-size:16px;line-height:22px;font-weight:600}.recent-trip small{display:block;color:var(--muted);font-size:12px;line-height:18px;margin-top:3px}.recent-trip time{font-size:13px;color:var(--muted);white-space:nowrap}.recent-trip .return-hint{color:var(--accent)}

/* Selected soft field + outlined map button. Markers share a separate fixed column. */
#editor[data-fullscreen=true] .editor-other{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;padding:8px 44px 16px 0;margin:0;border-bottom:0;min-height:76px}
#editor[data-fullscreen=true] .editor-other>span{padding-left:12px;min-width:0}
#editor[data-fullscreen=true] .editor-other .dot,#editor[data-fullscreen=true] #editorDot{position:static;width:24px;height:24px;min-width:24px;font-size:12px;align-self:center}
#editor[data-fullscreen=true] #editorOtherAddress{font-size:18px;line-height:25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.35px;font-weight:600}
#editor[data-fullscreen=true] .editor-other small{margin-bottom:3px}#editor[data-fullscreen=true] .editor-other em{margin-top:3px;line-height:18px}
#editor[data-fullscreen=true] .editor-query{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;padding:0;margin:0 0 8px;border:0;min-width:0}
#editor[data-fullscreen=true] .editor-query::before{content:none}
#editorDot{display:none}#editor[data-fullscreen=true] #editorDot{display:grid;background:var(--accent);color:var(--bg)}
#editor[data-fullscreen=true][data-slot=pickup] #editorDot{background:var(--route)}
#editor[data-fullscreen=true] .editor-field{background:var(--surface);border-radius:18px;padding:12px;min-width:0}
#editor[data-fullscreen=true] #queryLabel{margin:0 0 3px;font-size:11px;line-height:14px}
#editor[data-fullscreen=true] .search{gap:8px;align-items:center;min-width:0}
#editor[data-fullscreen=true] .search input{font-size:18px;line-height:25px;height:44px;min-height:44px;padding:0;border:0;background:transparent;white-space:nowrap;letter-spacing:-.35px;font-weight:600;min-width:0;flex:1;outline:none}
#editor[data-fullscreen=true] .search input:focus-visible{outline:none}
#editor[data-fullscreen=true] .search .editor-map{display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:999px;padding:0 10px;height:44px;min-height:44px;min-width:82px;flex:none;font-size:13px;font-weight:500}
#editor[data-fullscreen=true] .editor-map .ui-icon{width:15px;height:15px}
#editor[data-fullscreen=true] .query-locality{margin:1px 0 0;font-size:12px;line-height:18px}
#editor[data-fullscreen=true][data-slot=pickup] .editor-query{padding:0 42px 0 0}
#editor[data-fullscreen=true][data-slot=pickup] .editor-other{padding:12px 12px 16px 0}
#editor[data-fullscreen=true] .editor-field:focus-within{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 55%,transparent)}

/* Reserve two lines so loading facts do not move the map and pin. */
#pointAddress{min-height:46px;margin:10px 0;font-size:16px;line-height:23px;color:var(--ink)}#pointHint{font-size:12px;line-height:18px;margin:6px 0}#pointRouteStatus{min-height:40px;font-size:14px;line-height:20px;margin:8px 0 10px;color:var(--muted)}#pointRouteSource{margin:0 0 12px}

/* Dismiss/clear controls have no coloured focus box. */
button:is([data-close],[id$="Cancel"],[aria-label^="Закрыть"],[aria-label^="Очистить"]):is(:focus,:focus-visible,:active){outline:none!important;box-shadow:none!important;-webkit-tap-highlight-color:transparent!important}
