/* BrickNav UI polish 2026-12-01 (Brickline Web LLC original design) */
html,body{height:100%;min-height:100dvh;background:#0b0f17;overscroll-behavior:none}
#root{position:fixed;inset:0;height:auto;min-height:100dvh}
.app{position:absolute!important;inset:0!important;height:auto!important}
.map-root{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
/* top bar: input never clipped */
.topbar{gap:8px}
.search{flex:1 1 auto;min-width:0;padding:4px;border-radius:16px;background:rgba(14,19,30,.78)!important;-webkit-backdrop-filter:blur(16px) saturate(160%);backdrop-filter:blur(16px) saturate(160%);border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 10px 28px -10px rgba(0,0,0,.55)}
.search input{flex:1 1 auto;min-width:0!important;width:auto!important;border:0!important;background:transparent!important;color:#fff;font-size:16px;text-overflow:ellipsis}
.search input::placeholder{color:rgba(255,255,255,.62)}
@media (max-width:520px){
 .search-go{width:44px!important;min-width:44px;padding:0!important;font-size:0!important;border-radius:12px!important;position:relative}
 .search-go::before{content:"";width:20px;height:20px;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E")}
}
/* floating controls: cohesive glass buttons */
.topbar>button,.edge-rail>button,.dock>button{background:rgba(14,19,30,.74)!important;color:#fff!important;-webkit-backdrop-filter:blur(14px) saturate(160%);backdrop-filter:blur(14px) saturate(160%);border:1px solid rgba(255,255,255,.14)!important;border-radius:14px!important;box-shadow:0 8px 22px -8px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.08);font-size:18px;font-weight:800;transition:transform .12s ease}
.topbar>button:active,.edge-rail>button:active,.dock>button:active{transform:scale(.94)}
.edge-rail{top:calc(76px + env(safe-area-inset-top,0px))!important;right:calc(8px + env(safe-area-inset-right,0px))!important}
/* speed widget: readable unit */
.hud-speed{background:rgba(14,19,30,.82)!important;border:1px solid rgba(255,255,255,.16)!important;color:#fff!important}
.hud-speed strong{color:#fff}
.hud-speed small,.hud-speed .speed-unit{color:rgba(255,255,255,.9)!important;opacity:1!important;font-weight:700;letter-spacing:.06em;font-size:11px}
/* order sheet: compact glass bottom sheet */
.bottom{bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;max-height:min(52dvh,460px)!important;border-radius:22px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.bottom::-webkit-scrollbar{display:none}
.desk{background:rgba(14,19,30,.86)!important;color:#fff;-webkit-backdrop-filter:blur(20px) saturate(170%);backdrop-filter:blur(20px) saturate(170%);border:1px solid rgba(255,255,255,.12)!important;border-radius:22px!important;box-shadow:0 18px 44px -12px rgba(0,0,0,.65);padding:14px!important;padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))!important}
.desk::before{content:"";display:block;width:38px;height:5px;border-radius:3px;background:rgba(255,255,255,.28);margin:-4px auto 10px}
.offer-line{gap:6px;font-size:15px}
.offer-line>span:not(.dot){display:inline-flex;align-items:center;min-height:26px;padding:0 10px;border-radius:999px;background:rgba(255,255,255,.1);font-weight:800}
.offer-line .profit{background:rgba(255,184,0,.16)!important;color:#ffc94d!important}
.actions{margin-top:10px}
.actions button{border-radius:14px!important;height:48px!important;font-size:15px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 8px 18px -10px rgba(0,0,0,.7);transition:transform .12s ease,filter .12s}
.actions button:active{transform:scale(.97);filter:brightness(1.08)}
.desk .tip{display:flex!important;align-items:center;gap:10px;margin-top:10px}
.desk .tip>span{font-weight:700;color:rgba(255,255,255,.75)}
.desk .tip input{max-width:110px;min-height:38px!important;text-align:center;font-weight:800;background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.16)!important;color:#fff}
.desk .text-btn{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;background:rgba(255,255,255,.08);color:#9cc3ff;font-weight:700;margin-top:8px}
.details{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important;padding:12px 0 0!important}
.details>*{grid-column:1/-1}
.details>[data-testid^=stat-]{grid-column:auto;margin:0;padding:10px 8px;border-radius:14px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);font-size:12px;line-height:1.25;text-align:center;color:rgba(255,255,255,.8);overflow-wrap:anywhere;min-width:0}
.details>[data-testid^=stat-] b,.details>[data-testid^=stat-] strong{display:block;font-size:17px;color:#fff}
.details input{background:rgba(255,255,255,.07)!important;border-color:rgba(255,255,255,.14)!important;color:#fff}
.chips button{border-radius:999px}
.osm-credit{color:rgba(255,255,255,.7)}
@media (prefers-reduced-motion:reduce){.actions button,.topbar>button,.edge-rail>button{transition:none}}
@media (max-width:520px){.search-go::before{display:block;flex:none}}
@media (max-width:899px){.hud-speed{left:calc(10px + env(safe-area-inset-left,0px))!important;right:auto!important;top:calc(70px + env(safe-area-inset-top,0px))!important;bottom:auto!important;width:64px!important;height:64px!important}.hud-speed .limit-sign{display:none}.hud-speed strong{font-size:24px}}
