:root{
  --bg:#0e1218;--fg:#f4f7fa;--muted:#9aa6b4;--accent:#1EE1C0;--accent-2:#0ea894;
  --sheet:#141821ee;--glass:rgba(16,20,28,.78);--line:rgba(255,255,255,.10);
  --danger:#ff6b6b;--ok:#3dd68c;--shadow:0 12px 40px rgba(0,0,0,.45);
  --safe-t:env(safe-area-inset-top,0px);--safe-b:env(safe-area-inset-bottom,0px);
  --safe-l:env(safe-area-inset-left,0px);--safe-r:env(safe-area-inset-right,0px);
  --vv-top:0px;--vv-bottom:0px;
  --hud-h:92px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;height:100dvh;overflow:hidden;background:var(--bg);color:var(--fg);
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:16px;line-height:1.3;touch-action:manipulation;user-select:none;-webkit-user-select:none}
button,input,textarea{font:inherit;color:inherit}
button{border:0;background:none;cursor:pointer}
#map{position:fixed;inset:0;width:100%;height:100%}
.maplibregl-ctrl-attrib, .maplibregl-ctrl-bottom-right{display:none}
#osm-attr{position:fixed;left:calc(8px + var(--safe-l));bottom:calc(6px + var(--safe-b) + var(--vv-bottom));
  z-index:4;font-size:10px;color:rgba(255,255,255,.7);text-shadow:0 1px 2px #000;pointer-events:none}
#osm-attr a{color:inherit}

/* Top search */
#top-bar{position:fixed;top:calc(10px + var(--safe-t) + var(--vv-top));left:calc(10px + var(--safe-l));
  right:calc(10px + var(--safe-r));z-index:50;display:flex;gap:8px;align-items:center;
  pointer-events:auto;opacity:1 !important}
#btn-menu,#btn-search-go{
  width:52px;height:52px;min-width:52px;min-height:52px;border-radius:16px;background:var(--glass);backdrop-filter:blur(16px);
  box-shadow:var(--shadow);display:grid;place-items:center;flex:0 0 52px;color:var(--fg)}
#search-wrap{flex:1;min-width:0;height:52px;border-radius:18px;background:var(--glass);
  backdrop-filter:blur(16px);box-shadow:var(--shadow);display:flex;align-items:center;padding:0 4px 0 14px}
#search-wrap input{flex:1;min-width:0;background:none;border:0;outline:none;color:var(--fg);
  font-size:16px;user-select:text;-webkit-user-select:text}
#search-wrap input::placeholder{color:var(--muted)}

/* Guidance stack: turn banner + approach, never overlapping */
#guidance-stack{position:fixed;top:calc(72px + var(--safe-t) + var(--vv-top));
  left:calc(10px + var(--safe-l));right:calc(76px + var(--safe-r));z-index:45;
  display:flex;flex-direction:column;gap:8px;pointer-events:none}
body.nav-on #guidance-stack{right:calc(10px + var(--safe-r))}
#turn-banner{position:relative;top:auto;left:auto;right:auto;display:none;align-items:center;gap:12px;
  background:var(--glass);backdrop-filter:blur(18px);border-radius:20px;padding:12px 14px;
  box-shadow:var(--shadow);min-height:76px;pointer-events:auto;width:100%}
#turn-banner.show{display:flex}
#turn-icon{width:48px;height:48px;flex:0 0 48px;color:var(--fg)}
#turn-copy{flex:1;min-width:0}
#turn-copy .instr{font-size:28px;font-weight:800;letter-spacing:-.03em;line-height:1.15}
#turn-copy .dist{font-size:18px;color:var(--muted);margin-top:2px;font-weight:700}
#lane-art{height:52px;flex:0 0 auto}

/* Bottom HUD / nav dock */
#hud{position:fixed;left:calc(10px + var(--safe-l));right:calc(10px + var(--safe-r));
  bottom:calc(14px + var(--safe-b) + var(--vv-bottom));z-index:40;display:flex;align-items:center;gap:10px;
  background:var(--glass);backdrop-filter:blur(18px);border-radius:22px;padding:12px 16px;
  box-shadow:var(--shadow);min-height:78px}
#hud .eta{flex:1;text-align:left;background:none;padding:0;min-width:0}
#hud .eta .t{font-size:24px;font-weight:800;letter-spacing:-.03em}
#hud .eta .sub{font-size:13px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#hud .speed{text-align:center;min-width:90px}
#hud .speed{appearance:none;background:none;border:0;padding:0 4px;min-width:92px;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center}
#hud .speed .n{font-size:44px;font-weight:800;letter-spacing:-.05em;line-height:1}
#hud .speed .u{font-size:12px;color:var(--muted);font-weight:700}
#limit{width:42px;height:42px;border-radius:50%;border:3px solid #e11;background:#fff;color:#111;
  font-weight:800;font-size:14px;display:grid;place-items:center;flex:0 0 42px}
#limit.empty{border-color:#888;color:#666;background:#f2f2f2}
body.sheet-open #hud,body.menu-open #hud,body.picker-open #hud{display:none}

#btn-recenter{position:fixed;right:calc(14px + var(--safe-r));bottom:calc(112px + var(--safe-b) + var(--vv-bottom));
  z-index:35;width:52px;height:52px;border-radius:50%;background:var(--glass);backdrop-filter:blur(16px);
  box-shadow:var(--shadow);display:grid;place-items:center;color:var(--accent);border:1.5px solid rgba(30,225,192,.45)}
body.sheet-open #btn-recenter,body.menu-open #btn-recenter,body.picker-open #btn-recenter{display:none}

#rail{position:fixed;right:calc(12px + var(--safe-r));top:calc(74px + var(--safe-t) + var(--vv-top));
  z-index:35;display:flex;flex-direction:column;gap:10px}
#rail button{width:52px;height:52px;min-width:52px;min-height:52px;border-radius:16px;background:var(--glass);backdrop-filter:blur(16px);
  box-shadow:var(--shadow);display:grid;place-items:center;color:var(--fg);font-weight:800;font-size:18px}
#rail #btn-3d{font-size:12px;letter-spacing:.02em}
body.sheet-open #rail,body.menu-open #rail,body.picker-open #rail,body.nav-on #rail{display:none}
/* keep rail during nav? hide only when turn banner would crowd the right? keep visible except sheets */
body.nav-on #rail{display:none}
body.sheet-open #rail,body.menu-open #rail,body.picker-open #rail{display:none}

.preview-pill{position:fixed;left:calc(10px + var(--safe-l));top:calc(74px + var(--safe-t) + var(--vv-top));
  z-index:36;background:rgba(14,18,24,.78);color:var(--accent);border:1px solid rgba(30,225,192,.35);
  border-radius:999px;padding:4px 10px;font-size:10px;font-weight:650;pointer-events:none;display:none;
  max-width:46vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.preview-pill,.preview-pill.show{display:none !important}
body.nav-on .preview-pill,body.sheet-open .preview-pill,body.menu-open .preview-pill,body.picker-open .preview-pill{display:none !important}


/* Mode picker */
#mode-picker{position:fixed;inset:0;z-index:60;background:linear-gradient(180deg,#0b0e14,#141a22);
  display:none;flex-direction:column;padding:calc(22px + var(--safe-t)) 18px calc(20px + var(--safe-b));
  overflow:auto}
#mode-picker.show{display:flex}
#mode-picker h1{font-size:24px;margin:4px 0 2px;letter-spacing:-.03em}
#mode-picker p{color:var(--muted);margin:0 0 10px;font-size:14px}
#mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mode-card{background:#1a202a;border:1px solid var(--line);border-radius:22px;padding:14px 12px 16px;text-align:left;
  display:flex;flex-direction:column;gap:4px;min-height:142px}
.mode-card .ic{width:100%;height:72px;display:grid;place-items:center;margin:0 0 2px}
.mode-card .ic img,.mode-art{width:108px;height:72px;object-fit:contain;display:block;filter:drop-shadow(0 8px 12px rgba(0,0,0,.45))}
.mode-card b{font-size:17px}
.mode-card span{color:var(--muted);font-size:13px}

/* Menu */
#scrim{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:30;display:none}
#scrim.show{display:block}
#menu{position:fixed;top:0;bottom:0;left:0;width:min(400px,92vw);z-index:35;
  background:var(--sheet);backdrop-filter:blur(24px);transform:translateX(-105%);
  transition:transform .28s ease;overflow:auto;padding:calc(16px + var(--safe-t)) 0 calc(24px + var(--safe-b));
  box-shadow:var(--shadow)}
#menu.show{transform:none}
.menu-head{display:flex;align-items:center;gap:10px;padding:8px 18px 14px}
.menu-head img{width:42px;height:42px;border-radius:12px}
.menu-head .brand{font-weight:800;font-size:20px;letter-spacing:-.03em;flex:1}
.pro-chip{background:var(--accent);color:#06241e;font-weight:800;font-size:12px;border-radius:999px;padding:6px 10px;white-space:nowrap;flex:0 0 auto}
.menu-search{margin:0 16px 12px;height:42px;border-radius:14px;background:#0e1218;border:1px solid var(--line);
  display:flex;align-items:center;padding:0 12px;gap:8px}
.menu-search input{flex:1;background:none;border:0;outline:none;min-width:0}
.menu-sec{padding:8px 8px 2px;font-size:12px;color:var(--muted);letter-spacing:.06em;text-transform:uppercase;font-weight:700}
.menu-item,.menu-toggle{display:flex;align-items:center;gap:10px;width:100%;padding:10px 16px;min-height:48px;text-align:left;font-size:16px}
.menu-item .glyph,.menu-toggle .glyph{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;flex:0 0 32px;color:#fff}
.menu-item .sp,.menu-toggle .sp{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:2px;line-height:1.2}
.menu-item .sp b,.menu-toggle .sp b{font-weight:700;font-size:16px}
.menu-item .sp small,.menu-toggle .sp small{font-weight:500;font-size:11px;line-height:1.3;color:var(--muted)}
.menu-item{min-height:56px}
.menu-item .chev{color:var(--muted)}
.toggle{width:42px;height:26px;border-radius:999px;background:#3a4250;position:relative;flex:0 0 42px}
.toggle.on{background:var(--accent)}
.toggle i{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .18s}
.toggle.on i{left:19px}

/* Sheets */
#sheet{position:fixed;left:0;right:0;bottom:0;z-index:32;max-height:min(86vh,760px);
  background:#141821f2;backdrop-filter:blur(24px);border-radius:22px 22px 0 0;
  box-shadow:var(--shadow);transform:translateY(110%);transition:transform .28s ease;
  display:flex;flex-direction:column;padding-bottom:var(--safe-b)}
#sheet.show{transform:none}
#sheet .handle{width:42px;height:5px;border-radius:99px;background:#ffffff33;margin:8px auto 0}
#sheet .sheet-h{display:flex;align-items:center;gap:10px;padding:10px 16px 8px}
#sheet .sheet-h h2{margin:0;font-size:20px;letter-spacing:-.02em;flex:1}
#sheet .sheet-body{overflow:auto;padding:0 16px 18px;-webkit-overflow-scrolling:touch}

/* Place card */
.place-hero{height:140px;border-radius:16px;overflow:hidden;background:linear-gradient(160deg,#1a2430,#0e141c);
  display:grid;place-items:center;margin-bottom:12px;position:relative}
.place-hero img{width:100%;height:100%;object-fit:cover}
.place-hero .ph-art{width:72px;height:72px;opacity:.9}
.place-title{font-size:24px;font-weight:800;letter-spacing:-.03em;margin:0 0 4px}
.place-meta{color:var(--muted);font-size:14px;display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.badge-open{color:var(--ok);font-weight:700;font-size:13px}
.badge-closed{color:var(--danger);font-weight:700;font-size:13px}
.place-actions{display:grid;grid-template-columns:1.2fr repeat(4,1fr);gap:8px;margin-top:14px}
.place-actions button{border-radius:14px;background:#1c222c;padding:12px 6px;min-height:48px;font-size:12px;font-weight:700;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.place-actions button.primary{background:var(--accent);color:#06241e}
.place-row{display:flex;gap:10px;align-items:flex-start;padding:8px 0;color:var(--muted);font-size:14px}

/* Vehicles / skins grids */
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.v-card,.s-card{background:#1a202a;border:2px solid transparent;border-radius:16px;padding:8px 6px 10px;text-align:center}
.v-card.on,.s-card.on{border-color:var(--accent)}
.v-card .thumb{height:72px;display:grid;place-items:center;overflow:hidden}
.v-card .thumb img,.v-art{width:88px;height:72px;object-fit:contain;filter:drop-shadow(0 4px 8px rgba(0,0,0,.4))}
.v-card .name,.s-card .name{font-size:11px;font-weight:700;margin-top:4px}
.pro-b{display:inline-block;background:var(--accent);color:#06241e;font-size:9px;font-weight:800;
  border-radius:6px;padding:1px 4px;margin-left:3px;vertical-align:middle}
.s-card .swatch{height:72px;border-radius:12px;margin-bottom:6px;overflow:hidden;position:relative}
.s-card .swatch span{position:absolute;inset:auto 6px 6px auto;font-size:10px}

/* Search results */
.result{display:flex;gap:10px;align-items:center;padding:12px 4px;border-bottom:1px solid var(--line);width:100%;text-align:left}
.result .ic{width:36px;height:36px;border-radius:10px;background:#1c2430;display:grid;place-items:center;color:var(--accent)}
.result b{display:block;font-size:15px}
.result span{color:var(--muted);font-size:12px}

/* Location marker */
#me-marker, .me-marker{width:44px;height:55px;position:relative;pointer-events:none}
#me-marker .me-shadow{display:none}
#me-marker img{width:44px;height:55px;object-fit:contain;display:block;pointer-events:none;position:relative;z-index:1;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.28))}
#me-marker svg.me-car{width:44px;height:55px;display:block;overflow:visible;filter:drop-shadow(0 1px 1.5px rgba(0,0,0,.35))}
#drop-pin{width:28px;height:36px;transform:translate(-50%,-100%)}

/* Alerts / lists */
.list-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);width:100%;text-align:left}
.list-row .ic{width:34px;height:34px;border-radius:10px;background:#1c2430;display:grid;place-items:center;color:var(--accent)}
.list-row .sp{flex:1}
.list-row .meta{color:var(--muted);font-size:13px}

.btn-teal{background:var(--accent);color:#06241e;font-weight:800;border-radius:14px;padding:12px 16px;width:100%;margin-top:12px}
.btn-ghost{background:#1c222c;border-radius:14px;padding:12px 16px;width:100%;margin-top:8px}
.hint{color:var(--muted);font-size:13px;margin:8px 0}

.truck-form label{display:block;font-size:13px;color:var(--muted);margin:10px 0 4px}
.truck-form input{width:100%;background:#0e1218;border:1px solid var(--line);border-radius:12px;padding:10px 12px;outline:none}

/* Top bar (menu + search) stays visible on every screen, including navigation. */
body.nav-on #top-bar, body.nav-on #search-wrap{display:flex;opacity:1;pointer-events:auto}

@media (min-width:900px){
  #menu{width:380px}
}


/* Approach banner lives in the guidance stack, so it drops below the turn card */
#approach-banner{position:relative;left:auto;right:auto;top:auto;display:none;
  background:rgba(14,18,24,.92);color:#fff;border-radius:14px;padding:10px 12px;font-size:15px;font-weight:700;
  box-shadow:var(--shadow);pointer-events:none;line-height:1.25;width:100%}
#approach-banner.show{display:block}
body.sheet-open #guidance-stack,body.menu-open #guidance-stack,body.picker-open #guidance-stack{display:none !important}
body.nav-on .preview-pill{display:none !important}
body:has(#approach-banner.show) .preview-pill{display:none !important}

/* Hazard / signal 3D-style billboards */
.bn-haz,.bn-sig{position:relative;width:56px;height:66px;pointer-events:none;filter:drop-shadow(0 2px 2px rgba(0,0,0,.35))}
.bn-haz-shadow{position:absolute;left:50%;bottom:0;width:36px;height:12px;transform:translateX(-50%);
  background:radial-gradient(ellipse,rgba(0,0,0,.5),rgba(0,0,0,0) 70%)}
.bn-haz-art{position:absolute;left:0;right:0;top:0;bottom:10px;display:flex;align-items:flex-end;justify-content:center;gap:3px}
.bn-cone{width:14px;height:28px;background:linear-gradient(180deg,#ffd27a 0 18%,#ff8a1a 19%,#e85a00);clip-path:polygon(50% 0,100% 100%,0 100%);
  box-shadow:inset 0 -4px 0 #fff}
.bn-bar{width:30px;height:8px;background:repeating-linear-gradient(90deg,#c45a10 0 6px,#ffd27a 6px 12px);border-radius:1px;position:absolute;bottom:12px}
.bn-amber{width:9px;height:9px;border-radius:50%;background:#ffcc33;position:absolute;top:2px;box-shadow:0 0 10px #ffcc33}
.bn-live .bn-amber{animation:bnBlink 0.8s ease-in-out infinite}
.bn-car-a,.bn-car-b,.bn-cop{width:26px;height:14px;border-radius:6px 6px 3px 3px;background:linear-gradient(180deg,#5a6270,#2e333c);position:relative}
.bn-car-a:before,.bn-car-b:before,.bn-cop:before{content:"";position:absolute;left:5px;right:5px;top:-5px;height:7px;border-radius:4px 4px 1px 1px;background:#4a5160}
.bn-car-b{background:linear-gradient(180deg,#8a90a0,#4a5160);margin-left:-6px}
.bn-blinker,.bn-bar-light{width:16px;height:5px;border-radius:1px;background:#ff3344;position:absolute;top:1px;left:5px}
.bn-live .bn-blinker{animation:bnBlink 0.6s steps(2) infinite}
.bn-live .bn-bar-light{animation:bnCop 0.55s steps(2) infinite;background:#3a7dff;width:18px}
.bn-cop{background:linear-gradient(180deg,#2a4aaa,#12245a)}
.bn-cop:before{background:#1a3a88}
.bn-hole{width:28px;height:14px;border-radius:50%;background:#2a2218;box-shadow:inset 0 3px 4px #000,0 0 0 2px #6a5a40}
.bn-jam{width:36px;height:10px;border-radius:5px;background:#e23b3b;box-shadow:0 0 8px rgba(226,59,59,.6)}
.bn-live .bn-jam{animation:bnPulse 1.1s ease-in-out infinite}
.bn-cam{width:18px;height:22px;background:#222;border-radius:3px;border:2px solid #eee;position:relative}
.bn-cam:after{content:"";position:absolute;left:4px;top:4px;width:8px;height:8px;border-radius:50%;background:#7ad;box-shadow:0 0 8px #7ad}
.bn-gate{width:28px;height:8px;background:#d00;box-shadow:0 10px 0 #fff,0 20px 0 #d00;border-radius:1px;margin-bottom:16px}
.bn-wx{width:20px;height:20px;border-radius:50%;background:#9cf;box-shadow:6px 8px 0 #fff}
.bn-tl{width:12px;height:28px;border-radius:6px;background:#222;display:flex;flex-direction:column;align-items:center;justify-content:space-around;padding:3px 0}
.bn-tl i{width:6px;height:6px;border-radius:50%;background:#333;display:block}
.bn-tl .r{background:#e33}
.bn-tl .y{background:#c90}
.bn-tl .g{background:#3a3}
.bn-stop{width:22px;height:22px;background:#c00;color:#fff;font-size:6px;font-weight:900;display:grid;place-items:center;
  clip-path:polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%)}
@keyframes bnBlink{0%,49%{opacity:1}50%,100%{opacity:.15}}
@keyframes bnCop{0%,49%{background:#e22;box-shadow:0 0 8px #e22}50%,100%{background:#36f;box-shadow:0 0 8px #36f}}
@keyframes bnPulse{0%,100%{opacity:.55}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){
  .bn-live .bn-amber,.bn-live .bn-blinker,.bn-live .bn-bar-light,.bn-live .bn-jam{animation:none}
}

.haz-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:4px 0 8px}
.haz-card{background:#1a202a;border:1px solid var(--line);border-radius:16px;padding:12px 8px;min-height:96px;
  display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.haz-card b{font-size:14px}
.haz-preview{height:56px;display:grid;place-items:center}
.haz-preview .bn-haz{transform:scale(1.15)}

.nav-actions{display:flex;gap:8px;margin-top:8px}
.nav-actions button,.alt-row{min-height:48px;border-radius:14px;background:#1c222c;padding:10px 12px;font-weight:700}
.alt-row{width:100%;text-align:left;margin:6px 0;display:flex;justify-content:space-between;align-items:center}
.alt-row b{font-size:16px}
#limit.warn{border-color:#e11;background:#fff4f4;color:#c00;animation:bnPulse 1s ease-in-out infinite}

@media (max-height:700px){
  #turn-copy .instr{font-size:24px}
  #hud{padding:10px 12px;min-height:70px}
  #hud .speed .n{font-size:38px}
  .mode-card{min-height:120px;padding:10px}
  #approach-banner{font-size:14px;padding:8px 10px}
}
@media (max-width:380px){
  #rail{gap:8px}
  #rail button,#btn-menu,#btn-search-go{width:48px;height:48px;min-width:48px;min-height:48px;flex-basis:48px}
  #search-wrap{height:48px}
  #turn-copy .instr{font-size:24px}
  .preview-pill{max-width:40vw;font-size:9px}
}

/* Nothing stacks: hide chrome that would sit on a menu, sheet, or picker */
body.menu-open #top-bar,
body.picker-open #top-bar{display:none}
body.menu-open #turn-banner,
body.sheet-open #turn-banner,
body.picker-open #turn-banner{display:none !important}
body:has(#approach-banner.show) .preview-pill{display:none !important}
/* Recenter stays clearly above the HUD on short phones */
#btn-recenter{bottom:calc(var(--hud-h) + 22px + var(--safe-b) + var(--vv-bottom))}
@media (max-height:700px){
  :root{--hud-h:80px}
}

.menu-head{padding-right:12px}
@media (max-width:380px){
  .place-actions{grid-template-columns:1.3fr repeat(2,1fr) repeat(2,1fr);gap:6px}
  .place-actions button{font-size:11px;padding:10px 4px}
}

/* Compact right rail: report, 3D, vehicle. Map skins live in Settings. Zoom is pinch. */
#rail{gap:8px}
#rail button{width:40px;height:40px;min-width:40px;min-height:40px;border-radius:12px}
#rail #btn-layers,#rail #btn-zoom-in,#rail #btn-zoom-out{display:none !important}
#rail #btn-vehicle,#rail #btn-report,#rail #btn-3d{display:grid !important}
@media (min-width:820px){
  #rail #btn-zoom-in,#rail #btn-zoom-out{display:grid !important}
  #rail #btn-layers{display:none !important}
  #rail button{width:44px;height:44px;min-width:44px;min-height:44px}
}

/* Hide the confusing empty "—" speed-limit disc; show a real sign only when OSM has maxspeed */
#limit.empty{display:none !important}

/* Speed unit is the one-tap km/mi control */
#hud-unit{text-decoration:underline;text-underline-offset:2px;letter-spacing:.02em}
#hud .speed .u::after{content:" ⇄";font-size:10px;opacity:.85}

/* Compact avoid chips under Route options */
.avoid-row{display:flex;gap:8px;padding:2px 16px 10px}
.avoid-chip{flex:1;min-height:56px;border-radius:14px;background:#1a202a;border:1px solid var(--line);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  font-size:10px;font-weight:700;line-height:1.15;text-align:center;padding:6px 4px}
.avoid-chip.on{border-color:var(--accent);background:#14302c;color:var(--accent)}
.avoid-chip .glyph{width:28px;height:28px;border-radius:8px;flex:0 0 28px}
.avoid-chip span{display:block;max-width:100%}
