:root {
  --bg: #05070f; --bg2: #0a1022; --panel: #0f1730; --panel2: #141e3d; --line: #23305a; --line2: #2f3f73;
  --text: #e8ecf8; --muted: #8e9bc2; --dim: #5f6b91; --accent: #ffb547; --accent2: #66d9ff; --good: #5fe0a0; --warn: #ffcf5c; --bad: #ff6f7d;
  --great: #5fe0a0; --goodc: #66d9ff; --tough: #ffcf5c; --camera: #c99bff;
  --r: 14px; --top: 54px; --nav: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
html.night { filter: grayscale(1) sepia(1) saturate(6) hue-rotate(-48deg) brightness(.62) contrast(1.1); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent2); }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 19px; } h3 { font-size: 15.5px; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 13px; } .tiny { font-size: 11.5px; }
.ic { width: 20px; height: 20px; flex: none; }

/* ------------------------------------------------ chrome */
.topbar { position: fixed; inset: 0 0 auto 0; height: var(--top); display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: rgba(5,7,15,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid #141c38; z-index: 20; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .02em; margin-right: auto; color: var(--accent); }
.brand span { color: var(--text); }
.sitenav { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-right: 8px; }
.sitenav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.sitenav a:hover { color: var(--text); text-decoration: underline; }
.sitenav span { color: var(--dim); }
@media (max-width: 1000px) { .sitenav { display: none; } }
.logo { width: 26px; height: 26px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); max-width: 42vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.chip span { overflow: hidden; text-overflow: ellipsis; }
.chip.live #timeLabel::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-right: 6px; box-shadow: 0 0 8px var(--good); }
.iconbtn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; }
.iconbtn.on { color: #ff5a5a; border-color: #ff5a5a; }
.tabs { position: fixed; inset: auto 0 0 0; height: calc(var(--nav) + var(--safe-b)); padding-bottom: var(--safe-b); display: flex; z-index: 20;
  background: rgba(5,7,15,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid #141c38; }
.tabs button { flex: 1; background: none; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--dim); font-size: 11.5px; }
.tabs button.on { color: var(--accent); }
.tabs .ic { width: 23px; height: 23px; }
main { position: fixed; inset: var(--top) 0 calc(var(--nav) + var(--safe-b)) 0; }
.view { position: absolute; inset: 0; display: none; overflow: auto; -webkit-overflow-scrolling: touch; }
.view.on { display: block; }
#view-sky, #view-solar { overflow: hidden; }
@media (min-width: 900px) {
  .tabs { inset: var(--top) auto 0 0; width: 92px; height: auto; flex-direction: column; justify-content: flex-start; padding-top: 10px; border-top: 0; border-right: 1px solid #141c38; }
  .tabs button { flex: none; height: 74px; }
  main { inset: var(--top) 0 0 92px; }
  .chip { max-width: 30vw; }
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 16px 14px 40px; }

/* ------------------------------------------------ cards & bits */
.card { background: linear-gradient(180deg, var(--panel), #0c1328); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrapflex { flex-wrap: wrap; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 2px 10px; }
.section-h p { margin: 2px 0 0; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: #1a2447; color: var(--muted); white-space: nowrap; }
.badge.great { background: rgba(95,224,160,.14); color: var(--great); }
.badge.good { background: rgba(102,217,255,.13); color: var(--goodc); }
.badge.tough { background: rgba(255,207,92,.13); color: var(--tough); }
.badge.camera { background: rgba(201,155,255,.14); color: var(--camera); }
.badge.ordered { background: rgba(255,181,71,.14); color: var(--accent); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line2); background: var(--panel2); font-weight: 600; font-size: 14px; }
.btn.primary { background: var(--accent); color: #1b1203; border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .45; }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 5px 11px; border-radius: 7px; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--panel2); color: var(--text); box-shadow: 0 0 0 1px var(--line2) inset; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { border: 1px solid var(--line); background: var(--bg2); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; color: var(--muted); }
.fchip.on { border-color: var(--accent); color: var(--accent); background: rgba(255,181,71,.08); }
input[type=text], input[type=number], input[type=date], input[type=time], input[type=datetime-local], select, textarea {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; min-width: 0; }
input[type=range] { width: 100%; accent-color: var(--accent); }
label.f { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-variant-numeric: tabular-nums; }
.empty { padding: 30px; text-align: center; color: var(--muted); }

/* ------------------------------------------------ tonight */
.hero { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { .hero { grid-template-columns: 1.35fr 1fr; } }
.hero-main { position: relative; overflow: hidden; }
.hero-main h1 { font-size: 24px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stat { background: rgba(255,255,255,.03); border: 1px solid #1d2850; border-radius: 10px; padding: 8px 10px; }
.stat b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11.5px; color: var(--muted); }
.moon-card { display: flex; gap: 14px; align-items: center; }
.timeline { width: 100%; height: 150px; display: block; margin-top: 12px; border-radius: 10px; }
.clouds { display: flex; gap: 2px; margin-top: 8px; height: 26px; align-items: stretch; }
.clouds div { flex: 1; border-radius: 3px; position: relative; }
.tcard { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; cursor: pointer; transition: border-color .15s, transform .15s; }
.tcard:hover { border-color: var(--line2); transform: translateY(-1px); }
.tcard canvas { width: 64px; height: 64px; border-radius: 12px; background: #030510; }
.tcard h3 { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.tcard .id { color: var(--accent); font-weight: 700; }
.gearline { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.gtag { font-size: 11.5px; padding: 2px 7px; border-radius: 6px; background: #17224a; color: #c4cff2; border: 1px solid #22305e; }
.gtag.f { background: rgba(255,111,145,.1); border-color: rgba(255,111,145,.25); color: #ffb3c3; }
.gtag.c { background: rgba(201,155,255,.1); border-color: rgba(201,155,255,.25); color: #dcc4ff; }
.mini { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.altbar { height: 4px; border-radius: 3px; background: #172046; margin-top: 8px; overflow: hidden; }
.altbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent2), var(--good)); }

/* ------------------------------------------------ sky map */
.skywrap { position: absolute; inset: 0; }
.skywrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.overlay { position: absolute; z-index: 2; }
.sky-top { top: 10px; left: 10px; right: 10px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; pointer-events: none; }
.sky-top > * { pointer-events: auto; }
.glass { background: rgba(10,16,34,.78); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.timebar { left: 10px; right: 10px; bottom: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.timebar .row { gap: 8px; }
.timebar output { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 140px; }
.layers { padding: 6px; display: flex; gap: 4px; flex-wrap: wrap; max-width: 520px; }
.infobox { right: 10px; top: 60px; width: min(320px, calc(100% - 20px)); padding: 12px; display: none; }
.infobox.on { display: block; }

/* ------------------------------------------------ point */
.pointgrid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pointgrid { grid-template-columns: 1.05fr 1fr; } }
.search { position: relative; }
.search input { width: 100%; height: 44px; font-size: 16px; padding-left: 38px; }
.search svg { position: absolute; left: 11px; top: 12px; color: var(--muted); }
.results { position: absolute; left: 0; right: 0; top: 48px; z-index: 5; max-height: 330px; overflow: auto; display: none; }
.results.on { display: block; }
.results button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border: 0; background: none; text-align: left; border-bottom: 1px solid #1a2448; }
.results button:hover { background: #172046; }
.bigdir { font-size: 30px; font-weight: 750; letter-spacing: -.02em; }
.compass svg, .finder canvas { width: 100%; height: auto; display: block; }
.steps { margin: 6px 0 0; padding-left: 20px; } .steps li { margin: 4px 0; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #0a1022; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 13px; }

/* ------------------------------------------------ solar */
.solar-side { position: absolute; z-index: 3; right: 10px; top: 10px; bottom: 112px; width: min(340px, calc(100% - 20px)); overflow: auto; padding: 12px; }
.solar-side.collapsed { bottom: auto; }
.solar-side.collapsed .solar-body { display: none; }
.ev { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 9px 4px; border-bottom: 1px solid #1a2448; cursor: pointer; }
.ev:hover { background: rgba(255,255,255,.03); }
.ev .d { text-align: center; line-height: 1.1; } .ev .d b { display: block; font-size: 18px; }
.ev .d span { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.lbl { position: absolute; z-index: 2; pointer-events: none; font-size: 12px; color: #dfe6ff; text-shadow: 0 1px 3px #000, 0 0 6px #000; white-space: nowrap; transform: translate(10px, -50%); }
.lbl.earth { color: #8fd3ff; font-weight: 700; }
.lbl.sel { color: var(--accent); font-weight: 700; }

/* ------------------------------------------------ gear */
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th, table.t td { padding: 8px 8px; border-bottom: 1px solid #1c2650; text-align: left; vertical-align: top; }
table.t th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
table.t td.n { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.gitem { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 2px; border-bottom: 1px solid #1a2448; }
.gitem p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.status { appearance: none; -webkit-appearance: none; border-radius: 999px; padding: 3px 12px; font-size: 12.5px; font-weight: 600; border: 1px solid; }
.status.owned { color: var(--good); border-color: rgba(95,224,160,.4); background: rgba(95,224,160,.08); }
.status.ordered { color: var(--accent); border-color: rgba(255,181,71,.4); background: rgba(255,181,71,.08); }
.status.planned { color: var(--camera); border-color: rgba(201,155,255,.4); background: rgba(201,155,255,.08); }

/* ------------------------------------------------ sheet & toast */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet-backdrop.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow: auto; background: #0c1329; border-top: 1px solid var(--line2);
  border-radius: 18px 18px 0 0; padding: 8px 16px calc(20px + var(--safe-b)); transform: translateY(105%); transition: transform .25s ease; }
.sheet.on { transform: none; }
.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: #2a3768; margin: 2px auto 10px; }
@media (min-width: 760px) { .sheet { left: 50%; right: auto; width: 620px; transform: translate(-50%, calc(100% + 60px)); bottom: 20px; border-radius: 18px; border: 1px solid var(--line2); }
  .sheet.on { transform: translate(-50%, 0); } }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav) + 20px); transform: translateX(-50%); background: #1b2650; border: 1px solid var(--line2);
  padding: 9px 16px; border-radius: 999px; z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s; font-size: 14px; }
.toast.on { opacity: 1; }
.place { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); text-align: left; }
.place.on { border-color: var(--accent); }
.warnbox { border: 1px solid rgba(255,181,71,.35); background: rgba(255,181,71,.07); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }

/* ------------------------------------------------ phone tweaks */
.layers-toggle { display: none; }
@media (max-width: 600px) {
  .brand span { display: none; }
  .chip { max-width: 38vw; padding: 0 10px; }
  .hero-main h1 { font-size: 20px; }
  .layers-toggle { display: inline-flex; }
  .layers { display: none; max-width: 260px; }
  .layers.open { display: flex; }
  .solar-side { top: 104px; bottom: 150px; }
  .solar-side.collapsed { top: 104px; width: auto; left: auto; }
  .timebar .row.between { flex-wrap: wrap; gap: 6px; }
  .timebar output { min-width: 0; }
  .seg button { padding: 5px 8px; }
}

/* ------------------------------------------------ weather */
.wxstrip { display: grid; gap: 2px; margin-top: 6px; }
.wxrow { position: relative; display: flex; gap: 2px; height: 15px; }
.wxrow i { flex: 1; border-radius: 3px; }
.wxrow i.na { background: #111a33; }
.wxrow span { position: absolute; left: 5px; top: 0; font-size: 9.5px; line-height: 15px; font-weight: 650; color: #fff; text-shadow: 0 0 3px #000, 0 0 2px #000; pointer-events: none; z-index: 1; }
.wxcard h2 { display: flex; align-items: center; gap: 8px; }
.wxdot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.wxdot.great { background: var(--great); box-shadow: 0 0 8px var(--great); } .wxdot.tough { background: var(--tough); } .wxdot.bad { background: var(--bad); }
.wxtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.wxtile { border: 1px solid #1d2850; border-radius: 10px; padding: 8px 10px; background: rgba(255,255,255,.03); display: grid; gap: 1px; }
.wxtile span { font-size: 11.5px; color: var(--muted); } .wxtile b { font-size: 16px; } .wxtile em { font-style: normal; font-size: 11.5px; color: var(--dim); }
.wxtile.great b { color: var(--great); } .wxtile.good b { color: var(--goodc); } .wxtile.tough b { color: var(--tough); } .wxtile.bad b { color: var(--bad); }
.wxtile.great { border-color: rgba(95,224,160,.3); } .wxtile.bad { border-color: rgba(255,111,125,.3); }
.wxlist { margin-top: 12px; } .wxlist li { margin: 6px 0; color: #c9d2ee; }
.wxnote { font-size: 12px; margin-top: 4px; }
.wxnote.warn { color: var(--tough); } .wxnote.ok { color: var(--great); } .wxnote.bad { color: var(--bad); }
.wxinline { color: var(--tough); }

/* ------------------------------------------------ sky map: you-are-here + key */
.wherebox { left: 10px; bottom: 112px; padding: 8px 10px; display: flex; gap: 10px; align-items: center; max-width: 330px; cursor: pointer; }
.skywrap .wherebox canvas { position: static; inset: auto; flex: none; border-radius: 50%; touch-action: auto; }
.wheretext { line-height: 1.3; }
.wherepole { color: #ffc86e; margin-top: 2px; }
.wherebox.mini .wheretext { display: none; }
.infobox { max-height: calc(100% - 200px); overflow: auto; }
.keylist { display: grid; gap: 7px; margin-top: 8px; }
.keyrow { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: #c9d2ee; }
.keyrow svg { margin-top: 1px; }
.keytxt { flex: none; width: 22px; font-size: 9px; font-weight: 700; color: rgba(150,180,255,.8); margin-top: 3px; }
@media (max-width: 600px) {
  .wherebox { bottom: 150px; max-width: 250px; padding: 6px 8px; }
  .wherebox .tiny.muted:nth-of-type(2) { display: none; }
}
.earthmode .wherebox, .earthmode #keyBtn, .earthmode #layers, .earthmode #layersBtn { display: none !important; }
#earthStarsBtn { display: none; }
.earthmode #earthStarsBtn { display: inline-flex; }

/* ------------------------------------------------ catalogs */
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
.catbtn { text-align: left; border: 1px solid var(--line); background: var(--bg2); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.catbtn span { font-size: 12px; color: var(--muted); } .catbtn em { font-style: normal; font-size: 11.5px; color: var(--dim); }
.catbtn.on { border-color: var(--accent); background: rgba(255,181,71,.07); } .catbtn.on em { color: var(--accent); }
.proggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.catlist { display: grid; gap: 6px; }
.catrow { display: grid; grid-template-columns: 30px 82px 1fr auto 170px; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, var(--panel), #0c1328); cursor: pointer; }
.catrow:hover { border-color: var(--line2); }
.catrow.isseen { opacity: .72; }
.catid { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.catnums { display: grid; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.catwhen { display: grid; gap: 3px; justify-items: start; }
.seenbox { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line2); background: var(--bg2); color: #06210f; font-weight: 800; display: grid; place-items: center; padding: 0; }
.seenbox.on { background: var(--good); border-color: var(--good); }
.seenmark { font-size: 11px; color: var(--good); font-weight: 600; }
.btn.seenbtn { background: rgba(95,224,160,.15); border-color: var(--good); color: var(--good); }
@media (max-width: 700px) {
  .catrow { grid-template-columns: 28px 64px 1fr; }
  .catnums { display: none; }
  .catwhen { grid-column: 2 / -1; display: flex; gap: 8px; align-items: center; }
  .tabs button span { font-size: 10px; }
}
.laysep { font-size: 11px; color: var(--muted); align-self: center; margin-left: 6px; }
.fchip.cat.on { border-color: #ffc86e; color: #ffc86e; }
.mapnote { display: none; position: absolute; top: 112px; left: 10px; max-width: min(520px, calc(100% - 20px)); padding: 6px 10px; font-size: 11.5px; color: #c9d2ee; align-items: center; pointer-events: auto; }
.mapnote.on { display: flex; flex-wrap: wrap; gap: 4px; }
.nowup { color: var(--good); }
.catrow { grid-template-columns: 30px 82px 1fr auto 180px 36px; }
.mapbtn { width: 34px; padding: 0; }
@media (max-width: 700px) { .catrow { grid-template-columns: 28px 64px 1fr 34px; } .catwhen { grid-column: 2 / -1; flex-wrap: wrap; } .mapnote { top: 104px; } }

/* ------------------------------------------------ public: setup + counter */
.setup { position: fixed; inset: 0; z-index: 60; background: radial-gradient(ellipse at 50% 0%, #142048 0%, #05070f 70%); overflow: auto; padding: 24px 14px calc(24px + var(--safe-b)); }
.setup-card { max-width: 640px; margin: 0 auto; background: rgba(12,19,41,.92); border: 1px solid var(--line2); border-radius: 18px; padding: 18px; }
.setup-h { font-size: 24px; margin: 18px 0 6px; line-height: 1.25; }
.setup-dots { display: flex; gap: 6px; } .setup-dots span { width: 26px; height: 5px; border-radius: 3px; background: #23305a; }
.setup-dots span.on { background: var(--accent); } .setup-dots span.done { background: #8a6a33; }
.setup-sub { margin: 16px 0 8px; font-size: 14px; }
.setup .search input { width: 100%; height: 44px; padding-left: 12px; }
.setup .results { position: static; margin-top: 6px; }
.scopegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.scopebtn { text-align: left; border: 1px solid var(--line); background: var(--bg2); border-radius: 10px; padding: 8px 10px; display: grid; gap: 1px; }
.scopebtn span { font-size: 11.5px; color: var(--muted); } .scopebtn.on { border-color: var(--accent); background: rgba(255,181,71,.08); }
.counter { font-size: 12px; color: #ffc86e; white-space: nowrap; padding: 0 6px; }
@media (max-width: 600px) { .counter { display: none; } }
#citySearch { width: 100%; }
