/* Exact source geometry: Android 172 main/RuStore; see audit/main-ui-differences.md. */
.native-main-title{margin:0}
.drawer-items>.android-settings-row.active{color:var(--brand)}
.drawer-items>.android-settings-row.active>svg:first-child{color:var(--brand)}
.drawer-head small{margin-top:0;opacity:1}
.drawer-version{border-top:0}
.drawer-version small{margin-top:2px;opacity:.8}
.drawer-items>.android-settings-row{border-bottom:0;position:relative}
.drawer-items>.android-settings-row::after{content:'';position:absolute;left:12px;right:12px;bottom:0;height:1px;background:repeating-linear-gradient(to right,var(--line) 0 4px,transparent 4px 8px)}
.routes-stops-switcher{display:flex;margin:4px 6px;padding:3px;gap:3px;border-radius:15px;background:var(--surface)}
.routes-stops-switcher button{flex:1;min-width:0;border:0;border-radius:12px;background:transparent;color:var(--muted);padding:8px 10px;font-size:calc(14px * var(--app-font-scale));line-height:20px;font-weight:600}
.routes-stops-switcher button.active{background:#0D2957;color:#fff}
#routesScreen{padding:0}
#routesList{gap:0;padding-top:0}
.android-route-card{margin:4px 6px;min-height:88px;border-radius:12px}
.android-route-main{min-height:88px}
.android-route-transport{width:var(--native-side-width,82px);flex:0 0 var(--native-side-width,82px);max-width:none;min-width:0;min-height:88px;padding:8px;gap:0}
.android-route-transport b,.android-route-transport small{line-height:normal;opacity:1}
.android-route-transport strong{line-height:normal;margin:0}
.android-route-transport .route-movement-status{margin:0 0 2px}
.route-movement-status::before{box-sizing:border-box;border:1.5px solid #fff;background:var(--movement-color,#F1B900)}
.android-route-transport .feedback-card-rating{margin:4px 0 0;padding:0}
.android-route-transport .feedback-card-rating .feedback-rating-explain{display:flex;min-height:12px;padding:0}
.android-route-terminals{padding:8px 0 8px 12px;gap:6px;min-width:0}
.android-route-terminals>div{gap:8px}
.android-route-terminals b{line-height:normal;overflow-wrap:normal;word-break:normal}
.android-route-trailing{flex:0 0 calc(var(--native-favorite-size,58px) + 18px);padding:0 10px 0 8px}
.android-route-trailing .android-route-heart{width:var(--native-favorite-size,58px);height:var(--native-favorite-size,58px);min-height:0;flex:0 0 var(--native-favorite-size,58px);padding:0;margin:0}
.android-route-heart svg{width:calc(var(--native-favorite-size,58px) - 22px);height:calc(var(--native-favorite-size,58px) - 22px)}
.native-route-notice{display:flex!important;align-items:center;gap:8px!important;margin-top:0;color:#B45309;font-size:calc(12px * var(--route-notice-scale,1));line-height:normal;font-weight:400;min-width:0}
.native-route-notice i{display:grid;place-items:center;width:18px;height:18px;flex:none;border-radius:50%;background:#F59E0B;color:#fff;font-size:11px;font-style:normal;font-weight:700}
.native-route-notice span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.native-route-distances{display:none!important;gap:8px!important;margin-top:12px;font-size:calc(12px * var(--route-distance-scale,1));color:#6B7280}
.native-route-distances>svg{width:15px;height:15px;fill:#6B7280;flex:none}
.native-route-distances>span{border:1px solid #D9E2F1;border-radius:10px;background:#F8FAFC;padding:4px 8px;white-space:nowrap}
html[data-theme=dark] .native-route-notice{color:#FBBF24}html[data-theme=dark] .native-route-notice i{background:#D97706}
html[data-theme=dark] .native-route-distances{color:#CBD5E1}html[data-theme=dark] .native-route-distances>span{border-color:#334155;background:#1E293B;border-radius:12px}
html[data-route-style=classic] #routesScreen{padding:0}html[data-route-style=classic] #routesList{gap:0}
html[data-route-style=classic] .android-route-card{margin:3px 4px}
html[data-route-style=classic] .android-route-transport{padding:8px 6px}
html[data-route-style=classic] .android-route-terminals{padding:10px 0 10px 10px;gap:8px}
html[data-route-style=classic] .native-route-distances,html[data-route-style=accent] .native-route-distances,html[data-route-style=banner] .native-route-distances{display:flex!important;margin-top:12px}
html[data-route-style=accent] .android-route-card,html[data-route-style=soft] .android-route-card,html[data-route-style=banner] .android-route-card{margin:5px 6px;padding:0}
html[data-route-style=banner] .android-route-card{margin:4px 6px}
html[data-route-style=accent] .android-route-main,html[data-route-style=soft] .android-route-main,html[data-route-style=banner] .android-route-main{display:grid;grid-template-columns:minmax(0,1fr) calc(var(--native-favorite-size,60px) + 30px)}
html[data-route-style=accent] .android-route-transport,html[data-route-style=soft] .android-route-transport,html[data-route-style=banner] .android-route-transport{display:grid;width:auto;min-height:0;grid-row:1;grid-column:1/-1;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(44px,auto);padding:8px 12px 0;gap:0}
html[data-route-style=accent] .android-route-transport>strong,html[data-route-style=soft] .android-route-transport>strong,html[data-route-style=banner] .android-route-transport>strong{margin:0;line-height:normal}
html[data-route-style=accent] .android-route-transport>.route-movement-status,html[data-route-style=soft] .android-route-transport>.route-movement-status,html[data-route-style=banner] .android-route-transport>.route-movement-status{justify-self:center;margin-bottom:2px}
html[data-route-style=accent] .android-route-transport .feedback-card-rating,html[data-route-style=soft] .android-route-transport .feedback-card-rating,html[data-route-style=banner] .android-route-transport .feedback-card-rating{position:static;grid-column:1/-1;grid-row:3;margin:0 -12px;padding:0 12px 8px;background:var(--surface);color:var(--text);order:99}
html[data-route-style=accent] .android-route-transport .feedback-star,html[data-route-style=soft] .android-route-transport .feedback-star,html[data-route-style=banner] .android-route-transport .feedback-star{width:18px;height:18px}
html[data-route-style=accent] .android-route-terminals,html[data-route-style=banner] .android-route-terminals{grid-row:2;grid-column:1;padding:10px 0 10px 10px;gap:8px}
html[data-route-style=accent] .android-route-trailing,html[data-route-style=banner] .android-route-trailing{grid-row:2;grid-column:2;width:auto;padding:0 10px}
html[data-route-style=soft] .android-route-transport{padding:8px 10px 0;grid-template-columns:minmax(0,1fr) minmax(68px,1fr) var(--native-favorite-size,60px);grid-template-rows:auto minmax(46px,auto)}
html[data-route-style=soft] .android-route-transport>b{grid-column:1;grid-row:2;align-self:center}
html[data-route-style=soft] .android-route-transport>small{grid-column:1;grid-row:2;align-self:center;transform:translateY(14px)}
html[data-route-style=soft] .android-route-transport>b{transform:translateY(-8px)}
html[data-route-style=soft] .android-route-transport>strong{grid-column:2;grid-row:2}
html[data-route-style=soft] .android-route-trailing{grid-row:1;grid-column:2;align-self:center;justify-self:end;z-index:1;padding:0 10px;width:auto;transform:translateY(7px)}
html[data-route-style=soft] .android-route-terminals{grid-row:2;grid-column:1/-1;padding:12px 14px 14px;gap:10px}
html[data-route-style=soft] .android-route-heart{color:#fff}html[data-route-style=soft] .android-route-heart.active{color:#E53935}
html[data-route-style=banner] .android-route-transport{padding:8px 14px 0;grid-template-rows:auto auto}
html[data-route-style=banner] .android-route-terminals{padding:12px 0 12px 14px}
html[data-route-style=rail] #routesList{gap:0}html[data-route-style=rail] .android-route-card{margin:2px 6px}
html[data-route-style=rail] .android-route-transport{width:var(--native-side-width,64px);flex-basis:var(--native-side-width,64px)}
html[data-route-style=rail] .android-route-trailing{flex-basis:calc(var(--native-favorite-size,48px) + 22px);padding-left:14px;padding-right:8px}
html[data-route-style=rail] .native-route-notice,html[data-route-style=rail] .native-route-distances{display:none!important}
.android-route-card.native-stacked .android-route-main{display:grid;grid-template-columns:minmax(0,1fr) calc(var(--native-favorite-size,58px) + 22px)}
.android-route-card.native-stacked .android-route-transport{grid-row:1;grid-column:1/-1;display:flex;width:100%;max-width:none;min-height:0;padding:8px 12px;flex-basis:auto}
.android-route-card.native-stacked .android-route-transport>b,.android-route-card.native-stacked .android-route-transport>strong,.android-route-card.native-stacked .android-route-transport>small{transform:none;align-self:auto;text-align:center}
.android-route-card.native-stacked .android-route-terminals{grid-row:2;grid-column:1;padding:10px 0 10px 12px}
.android-route-card.native-stacked .android-route-trailing{grid-row:2;grid-column:2;transform:none;align-self:center;padding:0 10px 0 8px}
.android-route-card.native-stacked .feedback-card-rating{position:static!important;background:transparent!important;margin:4px 0 0!important;padding:0!important}
#favoriteStopsList{display:grid;gap:12px;padding:4px 12px 12px}
.native-favorite-stop{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:18px;background:var(--surface);cursor:pointer}
.native-stop-pin{width:40px;height:40px;border-radius:50%;background:#E7F0FF;color:#126BFF;display:grid;place-items:center;flex:none}
.native-stop-pin svg{width:21px;height:21px;fill:currentColor}
.native-favorite-stop>div{flex:1;min-width:0;display:grid;gap:2px}
.native-favorite-stop b{font-size:calc(18px * var(--app-font-scale));line-height:calc(24px * var(--app-font-scale));font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.native-favorite-stop small{font-size:calc(12px * var(--app-font-scale));line-height:16px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.native-favorite-stop>button{width:36px;height:36px;flex:none;border:0;border-radius:50%;background:transparent;color:#E53935;padding:6px}
.native-favorite-stop>button svg{width:24px;height:24px;fill:currentColor}
#nearbyScreen{padding:0;height:calc(100dvh - var(--topbar-height) - var(--safe-top));display:flex;flex-direction:column;overflow:hidden}
#nearbyDateStrip{position:static;flex:none;margin:0}
#nearbySheet{min-height:0;display:flex;flex:1;flex-direction:column;margin-top:6px;background:var(--bg);border-radius:18px 18px 0 0;overflow:hidden}
.nearby-stop-card{border:0;border-radius:18px 18px 0 0;padding:0;box-shadow:none;flex:none;overflow:hidden}
.native-sheet-header{padding:6px 8px;background:#2D8BE6;color:#fff;flex:none;touch-action:pan-x}
.native-sheet-grip{height:14px;display:grid;place-items:center;touch-action:none}
.native-sheet-grip::before{content:'';width:36px;height:4px;border-radius:999px;background:#FFFFFF73}
.native-sheet-heading{position:relative;display:flex;align-items:center;justify-content:space-between;margin-top:2px;min-height:40px}
.native-sheet-heading>div{position:absolute;left:52px;right:52px;text-align:center;display:grid;gap:0;min-width:0;pointer-events:none}
.native-sheet-heading b{font-size:calc(18px * var(--app-font-scale));line-height:calc(24px * var(--app-font-scale));font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.native-sheet-heading small{font-size:calc(12px * var(--app-font-scale));line-height:16px;color:#FFFFFFDB;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.native-sheet-heading>button{display:grid;place-items:center;width:40px;height:40px;padding:8px;flex:none;border:0;border-radius:50%;background:transparent;color:#fff}
.native-sheet-heading>button svg{width:24px;height:24px;fill:currentColor}
#nearbySettings{padding:10px 12px;display:grid;gap:10px;background:var(--surface);max-height:55dvh;overflow:auto}
.nearby-options{min-width:0}.nearby-options>span{margin:0 0 10px;color:var(--text);font-size:calc(14px * var(--app-font-scale));line-height:20px;font-weight:600}
.nearby-options .chips{padding:0;gap:8px}
.native-choice-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
.nearby-options button,.native-choice-chips button{flex:none;min-height:40px;padding:10px 18px;border:1px solid color-mix(in srgb,var(--line) 20%,transparent);border-radius:999px;background:color-mix(in srgb,var(--surface2) 40%,transparent);color:var(--text);font-size:calc(14px * var(--app-font-scale));line-height:20px;font-weight:400;white-space:nowrap}
.nearby-options button.active,.native-choice-chips button.active{background:#FFA400;border-color:transparent;color:#fff}
html[data-theme=dark] .nearby-options button.active,html[data-theme=dark] .native-choice-chips button.active{background:#B87400}
#nearbyResults{position:static;min-height:0;overflow:auto;display:grid;align-content:start;gap:8px;margin:0;padding:8px 12px calc(8px + var(--bottom-row-height) + var(--safe-bottom));flex:1}
.nearby-arrival,.planning-result{display:flex;align-items:stretch;gap:0;min-height:80px;border:0;border-radius:18px;overflow:hidden;background:var(--surface);padding:0;cursor:pointer;box-shadow:none}
.arrival-trip-badge{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;flex:0 0 var(--arrival-badge-width,88px);min-width:0;padding:4px 6px;background:var(--route-color);color:#fff;text-align:center}
.arrival-trip-badge .route-movement-status{margin:0;flex:none}
.arrival-trip-badge>b{font-size:calc(11px * var(--app-font-scale));line-height:14px;font-weight:700;width:100%}
.arrival-trip-badge>strong{font-size:calc(24px * var(--app-font-scale));line-height:28px;font-weight:800;width:100%}
.arrival-trip-badge>small{font-size:calc(12px * var(--app-font-scale));line-height:16px;font-weight:700;width:100%}
.arrival-trip-rating{min-height:24px;width:100%;display:flex;align-items:center;justify-content:center}
.arrival-trip-rating .feedback-star{width:14px;height:14px}.arrival-trip-rating .feedback-stars{gap:1px}.arrival-trip-rating .feedback-rating-explain{min-height:24px;padding:0}
.nearby-arrival-main{flex:1;min-width:0;padding:8px 10px;display:flex;flex-direction:column;gap:3px;justify-content:center}
.nearby-arrival-main>b,.planning-result-main>b{font-size:calc(14px * var(--app-font-scale));line-height:20px;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}
.nearby-arrival-times{display:flex;flex-wrap:wrap;justify-content:space-evenly;gap:4px 0;margin:0}
.nearby-arrival-time{min-width:62px;flex:0 0 auto;text-align:center}
.nearby-arrival-time small{font-size:12px;line-height:16px;font-weight:600;margin:0;color:var(--muted)}
.nearby-arrival-time strong{font-size:18px;line-height:22px;font-weight:700;color:#12B76A}
.nearby-arrival-time.arrival strong,.nearby-arrival.past .nearby-arrival-time strong{color:#D83B3B}
.native-empty-card{border-radius:18px;padding:12px 14px;background:color-mix(in srgb,#E8DEF8 55%,transparent);color:var(--text);align-self:start;margin:0}
.native-empty-card>b{font-size:calc(14px * var(--app-font-scale));line-height:20px;font-weight:600}.native-empty-card p{font-size:calc(12px * var(--app-font-scale));line-height:16px;margin:4px 0 0;color:var(--muted)}
html[data-theme=dark] .native-empty-card{background:#2434478C}
#nearbyEmpty{padding:8px 12px}
.native-time-dialog{padding:24px;border:0;border-radius:28px;background:var(--surface);color:var(--text);max-width:calc(100vw - 48px)}
.native-time-dialog h2{font-size:22px;line-height:28px;margin:0 0 20px}.native-time-dialog input{font-size:24px;min-height:56px;padding:8px;background:var(--surface2);color:var(--text);border:1px solid var(--line);border-radius:8px}
.native-time-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.native-time-dialog button{border:0;background:transparent;color:var(--brand);font-size:14px;padding:10px 16px;min-height:40px}
#planningScreen{height:calc(100dvh - var(--topbar-height) - var(--safe-top));min-height:0;overflow:hidden}
#planningMap{inset:0}
.map-search-shell{top:52px;left:12px;right:12px;height:48px;border-radius:18px;background:color-mix(in srgb,var(--surface) 88%,transparent);padding:0;gap:0}
.map-search-shell>span{width:48px;height:48px;flex:none;display:grid;place-items:center}.map-search-shell>span svg{width:20px;height:20px}
.map-search-shell>input{font-size:14px;font-weight:500;padding:0 8px 0 0}.map-search-shell>button{width:32px;height:32px;padding:7px;margin-right:6px}.map-search-shell>button svg{width:18px;height:18px}
.map-search-suggestions{top:56px;left:0;right:0;max-height:calc(100dvh - 220px);border-radius:14px;background:color-mix(in srgb,var(--surface2) 48%,transparent)}
.map-search-suggestions button{padding:12px 14px;min-height:44px;font-size:16px;background:transparent}.map-search-suggestions button small{font-size:12px;line-height:16px}
.native-map-sheet-open>.map-search-shell{display:none}
#planningSheet{position:absolute;z-index:10;left:0;right:0;bottom:0;display:flex;flex-direction:column;height:min(calc(100% - 74px),calc(clamp(300px,42dvh,390px) + var(--bottom-row-height) + var(--safe-bottom)));border-radius:18px 18px 0 0;background:var(--bg);overflow:hidden}
#planningSheet.native-sheet-expanded{height:calc(100% - 74px)}
#planningSheet .native-sheet-header{flex:none}
#planningSheetBody{min-height:0;overflow:auto;padding:12px 12px calc(8px + var(--bottom-row-height) + var(--safe-bottom));display:grid;align-content:start;gap:10px;flex:1}
#planningSettings{border-radius:18px;background:var(--surface);padding:14px;display:grid;gap:10px}
#planningSettings>b{font-size:calc(14px * var(--app-font-scale));line-height:20px;font-weight:600}
.native-planning-time-fields{display:flex;gap:10px}.native-planning-time-fields label{flex:1;display:grid;gap:4px;padding:10px 12px;border-radius:12px;background:var(--surface2);font-size:12px;color:var(--muted)}
.native-planning-time-fields input{width:100%;min-height:32px;font-size:18px;border:0;background:transparent;color:var(--text)}
#planningResults{position:static;left:auto;right:auto;bottom:auto;max-height:none;overflow:visible;gap:10px}
.planning-result{border-radius:16px;box-shadow:0 2px 3px #00000014}
.planning-result-main{flex:1;min-width:0;padding:10px;display:flex;flex-direction:column;justify-content:center;gap:6px}
.planning-times{margin:0;display:flex;flex-wrap:wrap;gap:6px 10px}
.planning-times>span{min-width:62px;gap:2px}.planning-times small{font-size:11px;line-height:14px;text-transform:none;color:var(--muted)}
.planning-times strong{font-size:17px;line-height:21px;font-weight:600}.planning-times>span:first-child strong{color:#009A22}.planning-times>span:last-child strong{color:#E31F2B}
.planning-result.past .planning-times strong{color:var(--muted)}.planning-result-past{font-size:11px;line-height:14px;color:var(--muted)}
#nearbySheet.native-map-nearby{position:absolute;z-index:11;left:0;right:0;bottom:0;flex:none;margin:0;height:min(calc(100% - 74px),calc(clamp(300px,42dvh,390px) + var(--bottom-row-height) + var(--safe-bottom)))}
#nearbySheet.native-map-nearby.native-sheet-expanded{height:calc(100% - 74px)}
.planning-stop-dialog{position:absolute;z-index:12;inset:auto 0 0;width:100%;max-width:none;max-height:calc(100% - 74px);margin:0;padding:0;border:0;border-radius:16px 16px 0 0;background:var(--surface);color:var(--text);overflow:auto;box-shadow:none}
.planning-stop-dialog::backdrop{background:transparent;backdrop-filter:none}
.native-stop-header{background:#2D8BE6;color:#fff;padding:4px 8px}
.native-stop-header>.native-sheet-grip{height:3px;margin-bottom:1px}.native-stop-header>.native-sheet-grip::before{height:3px;width:26px;background:#FFFFFF59}
.native-stop-actions{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:40px}
.native-stop-actions>div{display:flex;align-items:center;gap:4px;z-index:1}
.native-stop-actions h2{position:absolute;left:92px;right:92px;margin:0;text-align:center;font-size:calc(14px * var(--app-font-scale));line-height:20px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.native-stop-actions button{display:grid;place-items:center;width:40px;height:40px;padding:8px;border:0;border-radius:50%;background:transparent;color:#fff}
.native-stop-actions button svg{width:24px;height:24px;fill:currentColor}
.native-stop-actions button[data-stop-plan-from],.native-stop-actions button[data-stop-plan-to]{width:34px;height:34px;padding:8.5px;background:#FFFFFF2E}
.native-stop-actions button[data-stop-plan-from] svg,.native-stop-actions button[data-stop-plan-to] svg{width:17px;height:17px}
.native-stop-actions button[aria-pressed=true]{background:#fff;color:#2D8BE6}.native-stop-actions button[data-stop-favorite][aria-pressed=true]{background:transparent;color:#E53935}.native-stop-actions button:disabled{opacity:.38}
.native-stop-body{padding:5px 8px calc(6px + var(--bottom-row-height) + var(--safe-bottom));display:grid;gap:4px}
.native-stop-route-section h3{font-size:12px;line-height:16px;font-weight:600;margin:0 0 4px;display:flex;align-items:center;gap:5px}
.native-stop-route-section h3::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--route-color);flex:none}
.native-stop-route-section>div{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px 8px}
.native-stop-route-section button{height:28px;min-height:28px;min-width:0;border:0;border-radius:8px;background:#2D8BE6;color:#fff;padding:1px 4px;font-size:12px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.native-stop-no-routes{text-align:center;color:var(--muted);font-size:14px;line-height:20px;padding:10px 14px;margin:0}
.native-stop-body .inactive-stop-notice{margin:0;padding:4px 8px;color:var(--danger);background:transparent;font-size:14px;line-height:20px}
@media(max-width:335px){.android-route-main{flex-wrap:nowrap}.android-route-transport{width:var(--native-side-width,82px);flex-basis:var(--native-side-width,82px);max-width:none}}

/* Identity rows mirror RouteTransportColumn / RouteHeader, rather than moving
   the rating or favourite with absolute coordinates. */
.native-route-identity{display:flex;flex-direction:column;align-items:center;width:100%;min-width:0}
.native-route-identity>b{font-size:calc(10px * var(--route-type-scale));line-height:normal;font-weight:700}
.native-route-identity>strong{font-size:calc(36px * var(--route-number-scale));line-height:normal;font-weight:700}
.native-route-identity>small{font-size:calc(10px * var(--route-price-scale));line-height:normal;font-weight:700}
html[data-route-style=classic] .native-route-identity>b{font-size:calc(11px * var(--route-type-scale))}
html[data-route-style=classic] .native-route-identity>strong{font-size:calc(42px * var(--route-number-scale))}
html[data-route-style=classic] .native-route-identity>small{font-size:calc(12px * var(--route-price-scale))}
html[data-route-style=accent] .android-route-transport,html[data-route-style=soft] .android-route-transport,html[data-route-style=banner] .android-route-transport{display:flex;flex-direction:column;align-items:center;gap:0;padding:8px 12px 0}
html[data-route-style=accent] .native-route-identity,html[data-route-style=soft] .native-route-identity,html[data-route-style=banner] .native-route-identity{display:flex;flex-direction:row;align-items:center;justify-content:space-between;min-height:44px;gap:8px}
html[data-route-style=accent] .native-route-identity>b,html[data-route-style=accent] .native-route-identity>small,html[data-route-style=banner] .native-route-identity>b,html[data-route-style=banner] .native-route-identity>small{flex:1;font-size:calc(12px * var(--route-type-scale));min-width:0}
html[data-route-style=accent] .native-route-identity>b,html[data-route-style=banner] .native-route-identity>b{text-align:left}
html[data-route-style=accent] .native-route-identity>small,html[data-route-style=banner] .native-route-identity>small{text-align:right;font-size:calc(12px * var(--route-price-scale))}
html[data-route-style=accent] .native-route-identity>strong,html[data-route-style=soft] .native-route-identity>strong{font-size:calc(33px * var(--route-number-scale));text-align:center;min-width:56px}
html[data-route-style=soft] .android-route-transport{padding:8px 10px 0}
html[data-route-style=soft] .native-route-identity{min-height:46px;gap:0}
.native-soft-identity{display:flex;align-items:center;gap:6px;flex:1;min-width:0;font-size:calc(12px * var(--route-type-scale));font-weight:700}
.native-soft-identity>b,.native-soft-identity>small{font-size:inherit;line-height:normal;font-weight:700;white-space:nowrap}
.native-soft-identity>small{font-size:calc(12px * var(--route-price-scale))}
html[data-route-style=soft] .native-route-identity>strong{flex:1;min-width:68px;margin:0 8px 0 0}
html[data-route-style=soft] .native-route-identity>.android-route-heart{flex:0 0 var(--native-favorite-size,60px);width:var(--native-favorite-size,60px);height:var(--native-favorite-size,60px);min-height:0;margin:0;padding:0;color:#64748B}
html[data-theme=dark][data-route-style=soft] .native-route-identity>.android-route-heart{color:#94A3B8}
html[data-route-style=soft] .native-route-identity>.android-route-heart.active{color:#E53935}
html[data-route-style=banner] .android-route-transport{padding:8px 14px 0}
html[data-route-style=banner] .native-route-identity{min-height:0;gap:0}
html[data-route-style=banner] .native-route-identity>strong{flex:1;min-width:0;font-size:calc(36px * var(--route-number-scale));text-align:center}
html[data-route-style=accent] .android-route-card>.feedback-card-rating,html[data-route-style=soft] .android-route-card>.feedback-card-rating,html[data-route-style=banner] .android-route-card>.feedback-card-rating{position:static;padding:0 10px 8px;background:transparent;margin:0;min-height:18px}
html[data-route-style=soft] .android-route-card>.feedback-card-rating,html[data-route-style=banner] .android-route-card>.feedback-card-rating{padding-left:14px;padding-right:14px}
.android-route-card>.feedback-card-rating .feedback-rating-explain{min-height:18px;padding:0}
.android-route-card>.feedback-card-rating .feedback-stars{gap:2px}.android-route-card>.feedback-card-rating .feedback-star{width:18px;height:18px}
html[data-route-style=rail] .native-route-identity>b,html[data-route-style=rail] .native-route-identity>small{display:none}
html[data-route-style=rail] .native-route-identity>strong{font-size:calc(33px * var(--route-number-scale))}
.android-route-card.native-stacked .native-route-identity{flex-direction:column;min-height:0;gap:0}
.android-route-card.native-stacked .native-soft-identity{display:contents}
.android-route-card.native-stacked .native-soft-identity>span{display:none}
.android-route-card.native-stacked .native-soft-identity>b{order:0}
.android-route-card.native-stacked .native-route-identity>strong{order:1;margin:0}
.android-route-card.native-stacked .native-soft-identity>small{order:2}
.android-route-card.native-stacked .native-route-identity>b,.android-route-card.native-stacked .native-route-identity>small{flex:none;text-align:center}
.android-route-card.native-stacked .native-route-identity>strong{flex:none;min-width:0}
.native-clock-fields{display:flex;gap:10px}.native-clock-fields label{display:grid;gap:6px;min-width:0;flex:1;font-size:14px;color:var(--muted)}
.native-clock-fields input{width:100%;font-size:16px;min-height:56px;padding:16px;line-height:24px;background:transparent;border-radius:4px}
.native-clock-fields input[aria-invalid=true]{border-color:var(--danger)}.native-time-error{font-size:12px;color:var(--danger);line-height:16px;margin:8px 0}
#planningScreen,#gpsScreen{--native-sheet-usable-height:calc(100dvh - var(--topbar-height) - var(--safe-top) - var(--bottom-row-height) - var(--safe-bottom));--native-sheet-collapsed-height:clamp(300px,calc(var(--native-sheet-usable-height) * .42),390px)}
#planningSheet,#nearbySheet.native-map-nearby{height:min(calc(100% - 74px),calc(var(--native-sheet-collapsed-height) + var(--bottom-row-height) + var(--safe-bottom)))}

/* RouteFavoriteButton uses a separate glyph scale from its touch target. */
.android-route-trailing .android-route-heart svg,html[data-route-style] .android-route-heart svg{width:var(--native-favorite-icon-size,36px);height:var(--native-favorite-icon-size,36px)}
/* Bottom bar sp sizes use system scaling, not app typography preferences. */
:root{--bottom-row-height:68px}.bottom-nav small{font-size:11px}
html[data-bottom-count="5"],html[data-bottom-count="6"]{--bottom-row-height:64px}
html[data-bottom-count="5"] .bottom-nav small,html[data-bottom-count="6"] .bottom-nav small{font-size:9px}

/* NativeDrawerHost: min(86% screen width,300dp); DrawerLayout default scrim. */
.side-drawer{width:min(300px,86vw)}.drawer-scrim{background:#0009}
/* Compose Modifier.border paints inside the card without adding layout size. */
.android-route-card{position:relative;border-width:0}
.android-route-card::after{content:'';position:absolute;inset:0;z-index:2;border:1px solid;border-color:inherit;border-radius:inherit;pointer-events:none}
/* Compose GetTextLayoutResult, density3/fontScale1: 10sp→35px,
   36sp→126px, 16sp terminal→57px, 11sp status→39px.
   Browser normal line boxes add 4.667px to the default Minimal badge.
   Native receipt: audit/android-reference-text-metrics.json. */
.native-route-identity>b,.native-route-identity>strong,.native-route-identity>small{line-height:1.166666667}
.android-route-transport .route-movement-status{line-height:13px;min-height:13px}
.android-route-terminals b{line-height:1.1875}
