/* Booth card · What changed · Quick review */
.bc-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.bc-bar select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); max-width: 100%; }
.bc-bar .spacer { flex: 1; }
.bc-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; max-width: 980px; }
.bc-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.bc-head h2 { margin: 2px 0; font-family: var(--display); }
.bc-lead { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.bc-lead strong { font-size: 20px; }
.bc-tag { display: inline-block; margin-top: 2px; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); font-size: 12px; }
.bc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin: 14px 0; }
.bc-stat { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.bc-num { font-size: 22px; font-weight: 700; }
.bc-stat small { color: var(--muted); }
.bc-card h3 { font-size: 15px; margin: 14px 0 6px; }
.bc-small { font-size: 12px; font-weight: 400; }
.bc-castes { display: grid; gap: 4px; }
.bc-crow { display: grid; grid-template-columns: 150px 1fr 120px; gap: 8px; align-items: center; font-size: 13px; }
.bc-bar2 { position: relative; height: 12px; background: var(--bg-2); border-radius: 6px; overflow: hidden; display: flex; }
.bc-bar2 i { display: block; height: 100%; }
.bc-bar2 .sure { background: var(--accent); }
.bc-bar2 .guess { background: repeating-linear-gradient(45deg, #9cc7b9, #9cc7b9 4px, #c8e0d7 4px, #c8e0d7 8px); }
.bc-cnum { text-align: right; }
.bc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bc-table td, .bc-table th { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.bc-table .num { text-align: right; }
.bc-people { columns: 2; font-size: 12.5px; margin: 0; padding-left: 20px; }
@media (max-width: 720px) {
  .bc-two { grid-template-columns: 1fr; }
  .bc-crow { grid-template-columns: 100px 1fr 90px; }
  .bc-people { columns: 1; }
}

/* print: only the card */
@media print {
  body.dest-boothcard .top, body.dest-boothcard .tabs, body.dest-boothcard .sub-nav, body.dest-boothcard .workspace-location,
  body.dest-boothcard .bottom-nav, body.dest-boothcard .foot, body.dest-boothcard .no-print, body.dest-boothcard #cmdPalette { display: none !important; }
  body.dest-boothcard { background: #fff !important; }
  body.dest-boothcard main { padding: 0 !important; margin: 0 !important; }
  .bc-card { border: none; max-width: none; padding: 0; }
  .bc-bar2 .sure, .bc-bar2 .guess { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bc-two, .bc-castes { break-inside: avoid; }
}

/* What changed */
.ch-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.ch-filters .chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.ch-list { display: grid; gap: 6px; max-width: 1100px; }
.ch-row { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.ch-row.undone { opacity: .6; }
.ch-row summary { display: grid; grid-template-columns: 150px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 12px; cursor: pointer; list-style: none; }
.ch-row summary::-webkit-details-marker { display: none; }
.ch-kind { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); text-align: center; }
.ch-kind.k-batch { background: #e3ecf7; } .ch-kind.k-correction { background: #e6f2ec; }
.ch-kind.k-booth { background: #f3ecdf; } .ch-kind.k-review { background: #efe6f3; }
.ch-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ch-n { font-variant-numeric: tabular-nums; }
.ch-body { padding: 0 12px 12px; font-size: 13px; }
.ch-moves { margin: 4px 0 8px; line-height: 1.6; }
.ch-net { display: inline-block; margin: 1px 6px 1px 0; padding: 1px 6px; border-radius: 6px; }
.ch-net.up { background: #e3f2ea; color: #0b5f4b; } .ch-net.down { background: #f8e8e3; color: #8a4b16; }
@media (max-width: 720px) {
  .ch-row summary { grid-template-columns: 1fr auto; }
  .ch-kind, .ch-when { grid-column: 1 / -1; justify-self: start; }
}

/* Quick review (phone) */
.qr-top { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; max-width: 520px; }
.qr-top select { padding: 10px; font-size: 16px; border-radius: 10px; border: 1px solid var(--line); }
.qr-card { max-width: 520px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 10px; }
.qr-card.busy { opacity: .5; pointer-events: none; }
.qr-name { font-size: 30px; font-weight: 700; font-family: var(--display); line-height: 1.1; }
.qr-gu { font-size: 24px; font-family: "Noto Sans Gujarati", sans-serif; }
.qr-meta { font-size: 15px; color: var(--muted); }
.qr-names { font-size: 15px; }
.qr-guess { font-size: 18px; margin-top: 6px; }
.qr-card button, .qr-other { font-size: 17px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: inherit; min-height: 52px; }
.qr-yes { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; font-weight: 700; }
.qr-alts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qr-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qr-skip { color: var(--muted) !important; }

/* Results */
.res-ac { max-width: 760px; }
.res-table th.sortable { cursor: pointer; white-space: nowrap; }
.res-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: #999; }
.res-dot.p-BJP { background: #f08a24; } .res-dot.p-INC { background: #2a7ab0; } .res-dot.p-AAP { background: #1f9e89; }

/* Find booths */
.fd-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.fd-preset { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; text-align: left; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: inherit; cursor: pointer; min-height: 64px; }
.fd-preset:hover { border-color: var(--accent); }
.fd-preset.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #eef6f2; }
.fd-pt { font-weight: 700; font-size: 14px; }
.fd-pn { font-size: 22px; font-weight: 700; grid-row: span 2; align-self: center; font-variant-numeric: tabular-nums; }
.fd-pd { font-size: 12px; color: var(--muted); }
.fd-builder { display: grid; gap: 8px; }
.fd-line, .fd-rule { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fd-and { min-width: 52px; font-weight: 600; color: var(--muted); }
.fd-rule select, .fd-line input, .fd-rule input { padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px; background: #fff; }
.fd-rule .fd-key { max-width: 320px; }
.fd-num input { width: 70px; margin-right: 2px; }
.fd-min input { width: 90px; margin-left: 4px; }
.fd-x { border: none; background: none; cursor: pointer; color: var(--muted); font-size: 15px; padding: 4px 8px; }
.fd-x:hover { color: #b33; }
.fd-line .spacer { flex: 1; }
.fd-wards summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.fd-wchips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.fd-wchips .chip.active, .fd-builder .chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.fd-sentence { font-size: 16px; margin: 0 0 8px; }
.fd-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.fd-wpill { border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; cursor: pointer; color: inherit; }
.fd-wpill:hover { border-color: var(--accent); }
.fd-actions { display: flex; gap: 6px; margin-bottom: 8px; }
.fd-table th.sortable { cursor: pointer; white-space: nowrap; }
.fd-cell { min-width: 130px; }
.fd-cell > span { display: block; }
.fd-bar { display: block; height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; margin-bottom: 2px; }
.fd-bar i { display: block; height: 100%; background: var(--accent); }
.fd-place { font-size: 11.5px; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) {
  .fd-presets { grid-template-columns: 1fr 1fr; }
  .fd-rule .fd-key { max-width: 100%; flex: 1 1 100%; }
  .fd-place { display: none; }
}

/* Area drill-down */
.pl-start, .pl-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.pl-start .chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pl-filters input, .pl-filters select { padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px; background: #fff; }
.pl-filters #plQ { min-width: 240px; flex: 1 1 240px; }
.pl-crumbs { margin-top: 10px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pl-table th.sortable { cursor: pointer; white-space: nowrap; }
.pl-gu { font-size: 12px; }
.pl-tag { font-size: 11px; background: #f3ecdf; }
.pl-mixcell { min-width: 220px; }
.pl-mix { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--bg-2); margin-bottom: 3px; }
.pl-mix i { display: block; height: 100%; }
.pl-mixtxt { font-size: 12px; color: var(--muted); }
@media (max-width: 720px) { .pl-mixcell { min-width: 140px; } .pl-filters label { flex: 1 1 45%; } }

.fd-map { height: 520px; border-radius: 12px; border: 1px solid var(--line); margin: 6px 0; }
.fd-actions .seg .chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 720px) { .fd-map { height: 380px; } }

/* Booth map */
.bm-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 14px; align-items: start; }
.bm-side { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; max-height: calc(100vh - 170px); overflow: auto; }
.bm-side h2 { margin: 0; font-family: var(--display); }
.bm-lab { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.bm-lab select, .bm-find input { padding: 8px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px; background: #fff; width: 100%; }
.bm-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.bm-wardchips { display: flex; flex-wrap: wrap; gap: 4px; }
.bm-wardchips .chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.bm-findres { display: grid; gap: 2px; margin-top: 4px; font-size: 13px; }
.bm-legend { border-top: 1px solid var(--line); padding-top: 8px; font-size: 12.5px; display: grid; gap: 3px; }
.bm-legt { font-weight: 600; margin-bottom: 2px; }
.bm-legi { display: flex; align-items: center; gap: 8px; }
.bm-legi i { width: 22px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0,0,0,.08); }
.bm-legi i.ring { border: 1.5px dashed #6b6b66; border-radius: 50%; width: 12px; height: 12px; background: transparent; }
.bm-card { border-top: 1px solid var(--line); padding-top: 8px; font-size: 13px; display: grid; gap: 6px; }
.bm-cardh { font-size: 15px; }
.bm-big { font-size: 22px; font-weight: 700; }
.bm-big .muted { font-size: 12px; font-weight: 400; }
.bm-place, .bm-method { font-size: 12px; }
.bm-top { margin: 0; padding-left: 18px; }
.bm-note { font-size: 12px; margin: 0; }
.bm-mapbox { position: relative; }
#bmMap { height: calc(100vh - 170px); min-height: 520px; border-radius: 14px; border: 1px solid var(--line); }
.bm-wlabel { font-weight: 700; font-size: 12px; letter-spacing: .02em; color: #2b2b28; width: max-content; text-align: center; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 5px #fff, 0 0 5px #fff; opacity: .85; }
/* Booth numbers + values: visible only when zoomed in (see bmSyncLabels in boothmap.js) */
.bm-plabel { background: rgba(255, 255, 255, 0.9); border: 1px solid #2b2b28; border-radius: 4px; color: #111; font-size: 12px; font-weight: 700; padding: 0 4px; white-space: nowrap; width: max-content; transform: translate(-50%, -50%); pointer-events: none; }
#bmMap:not(.bm-labels-on) .bm-plabel { display: none; }
/* Landmarks: a coloured letter badge (H = hospital, T = temple ...) with the name beside it from zoom 14 */
.bm-lm { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.bm-lmdot { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 4px; background: #1b1b19; color: #fff; font-size: 12px; font-weight: 800; border: 2px solid #fff; box-shadow: 0 0 0 1px #1b1b19; }
.bm-lmname { font-size: 11.5px; font-weight: 700; color: #111; background: rgba(255, 255, 255, 0.9); border-radius: 3px; padding: 0 3px; }
#bmMap:not(.bm-labels-on) .bm-lmname { display: none; }
/* Areas: small outlined pill with the locality name, visible from zoom 14 */
.bm-area { white-space: nowrap; }
.bm-areaname { display: inline-block; font-size: 12px; font-style: italic; font-weight: 700; color: #0d366b; background: rgba(255, 255, 255, 0.75); border: 1px dashed #0d366b; border-radius: 10px; padding: 1px 7px; transform: translate(-50%, -50%); }
#bmMap:not(.bm-labels-on) .bm-areaname { display: none; }
.bm-mix { border-top: 1px solid var(--line); padding-top: 6px; font-size: 13px; }
.bm-mix > summary { cursor: pointer; font-weight: 700; }
.bm-mixkind { display: grid; gap: 3px; margin: 8px 0; }
.bm-mixkind > b { font-size: 12px; color: var(--muted, #6b6b66); text-transform: uppercase; letter-spacing: 0.04em; }
.bm-mixopt { display: flex; gap: 6px; align-items: center; font-size: 12.5px; }
/* Zoom 14–15: biggest booths only. Zoom 16+: every booth. */
#bmMap.bm-labels-on:not(.bm-labels-all) .bm-plabel:not(.bm-big) { display: none; }
body.bm-fullscreen .bm-wrap { position: fixed; inset: 0; z-index: 2000; background: var(--bg, #fff); padding: 10px; }
body.bm-fullscreen #bmMap { height: calc(100vh - 20px); }
body.bm-fullscreen .bm-side { max-height: calc(100vh - 20px); }
@media (max-width: 900px) {
  .bm-wrap { grid-template-columns: 1fr; }
  .bm-side { max-height: none; order: 2; }
  #bmMap { height: 62vh; min-height: 380px; }
}
@media print {
  body.dest-boothmap .top, body.dest-boothmap .tabs, body.dest-boothmap .sub-nav, body.dest-boothmap .workspace-location,
  body.dest-boothmap .bottom-nav, body.dest-boothmap .foot, body.dest-boothmap #cmdPalette,
  body.dest-boothmap .bm-find, body.dest-boothmap .bm-wardchips, body.dest-boothmap .bm-row, body.dest-boothmap .bm-lab { display: none !important; }
  body.dest-boothmap .bm-wrap { grid-template-columns: 1fr 240px; }
  body.dest-boothmap .bm-side { order: 2; border: none; max-height: none; }
  body.dest-boothmap #bmMap { height: 170mm; }
}

/* Pin the booths */
.bm-pinbtn { width: 100%; }
.pin-top { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.pin-prog { height: 8px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.pin-prog i { display: block; height: 100%; background: var(--accent); }
.pin-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 4px; font-size: 13px; }
.pin-h { font-size: 17px; font-weight: 700; }
.pin-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 4px; }
.pin-list { margin: 0; padding-left: 18px; display: grid; gap: 2px; }

/* Lists */
.ls-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
.ls-kpis > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; background: var(--card); }
.ls-kpis b { font-size: 24px; font-variant-numeric: tabular-nums; }
.ls-kpis span { font-size: 12.5px; color: var(--muted); }
.ls-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-bottom: 12px; }
.ls-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 8px; }
.ls-card h3 { margin: 0; font-family: var(--display); }
.ls-cardtop { display: flex; justify-content: space-between; font-size: 12px; }
.ls-big { font-size: 15px; } .ls-big b { font-size: 26px; }
.ls-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--bg-2); gap: 2px; }
.ls-bar i { display: block; height: 100%; }
.ls-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.ls-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.ls-legend b { color: var(--ink, #222); }
.ls-facts { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.ls-wards { display: flex; flex-wrap: wrap; gap: 4px; }
.ls-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ls-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ls-tabs { display: flex; gap: 6px; margin-top: 10px; }
.ls-tabs .chip.active, .ls-filters .chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.ls-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.ls-filters input, .ls-filters select { padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px; background: #fff; }
.ls-filters #lsQ { min-width: 240px; flex: 1 1 240px; }
.ls-table td { vertical-align: top; font-size: 13px; }
.ls-extra { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-st { display: inline-block; padding: 1px 8px; border-radius: 999px; color: #fff; font-size: 11.5px; margin-bottom: 3px; text-shadow: 0 0 2px rgba(0,0,0,.35); }
.ls-ev { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 6px; margin: 1px 3px 1px 0; background: var(--bg-2); }
.ls-ev.good { background: #e3f2ea; color: #0b5f4b; } .ls-ev.bad { background: #f8e8e3; color: #8a3a16; }
.ls-tag { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: #efe6f3; margin: 1px 3px 1px 0; cursor: pointer; }
.ls-addtag { font-size: 12px; padding: 2px; border-radius: 6px; border: 1px solid var(--line); }
.ls-act { white-space: nowrap; }
.ls-wardbars { display: grid; gap: 4px; max-width: 520px; }
.ls-wardbars div { display: grid; grid-template-columns: 70px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; }
.ls-wardbars i { height: 12px; background: var(--accent); border-radius: 4px; display: block; }
.ls-gaps { display: flex; flex-wrap: wrap; gap: 4px; }
.ls-rev { display: grid; gap: 10px; }
.ls-person { border: 2px solid var(--accent); border-radius: 12px; padding: 12px; background: #f4faf7; display: grid; gap: 3px; max-width: 640px; }
.ls-pname { font-size: 24px; font-weight: 700; font-family: var(--display); }
.ls-cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ls-cand { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 4px; background: var(--card); font-size: 13.5px; }
.ls-candn { font-size: 16px; } .ls-gu { font-size: 16px; }
.ls-evs { margin: 4px 0; }
.ls-bc { margin-bottom: 6px; font-size: 13px; }
@media (max-width: 720px) { .ls-table th:nth-child(5), .ls-table td:nth-child(5) { display: none; } }

/* Lists: add a list */
.ls-addcard { border: 2px dashed var(--line); background: transparent; cursor: pointer; text-align: left; color: inherit; place-content: center; justify-items: start; min-height: 180px; }
.ls-addcard:hover { border-color: var(--accent); background: #f4faf7; }
.ls-plus { font-size: 34px; line-height: 1; color: var(--accent); }
.ls-menu { display: inline-block; position: relative; margin-left: 6px; }
.ls-menu summary { list-style: none; cursor: pointer; padding: 0 6px; border-radius: 6px; font-weight: 700; }
.ls-menu summary::-webkit-details-marker { display: none; }
.ls-menu[open] summary { background: var(--bg-2); }
.ls-menu > div { position: absolute; right: 0; top: 22px; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); display: grid; min-width: 230px; padding: 4px; }
.ls-menu > div button { text-align: left; border: none; background: none; padding: 8px 10px; border-radius: 6px; cursor: pointer; color: inherit; font-size: 13.5px; }
.ls-menu > div button:hover { background: var(--bg-2); }
.ls-menu .danger { color: #b3261e; }
.ls-add { display: grid; gap: 12px; }
.ls-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.ls-steps li { display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--bg-2); color: var(--muted); font-size: 13px; }
.ls-steps li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; font-weight: 700; font-size: 12px; }
.ls-steps li.on { background: var(--accent); color: #fff; } .ls-steps li.on span { color: var(--accent); }
.ls-steps li.done { color: var(--accent); } .ls-steps li.done span { background: var(--accent); color: #fff; }
.ls-drop { border: 2px dashed var(--line); border-radius: 16px; padding: 40px 20px; display: grid; justify-items: center; gap: 6px; cursor: pointer; text-align: center; background: var(--card); }
.ls-drop.over, .ls-drop:hover { border-color: var(--accent); background: #f4faf7; }
.ls-drop.busy { opacity: .5; pointer-events: none; }
.ls-tips { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.ls-err { color: #b3261e; font-size: 13.5px; min-height: 1em; }
.ls-map th { vertical-align: bottom; min-width: 130px; }
.ls-map select { width: 100%; padding: 5px; border-radius: 6px; border: 1px solid var(--line); font-size: 13px; background: #fff; }
.ls-map select.set { border-color: var(--accent); background: #eef6f2; font-weight: 600; }
.ls-hname { font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 4px; }
.ls-map td { font-size: 12.5px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-order { display: grid; gap: 4px; font-size: 14px; }
.ls-prev h3 { margin: 6px 0; }
.ls-meters { display: grid; gap: 6px; margin-top: 8px; max-width: 760px; }
.ls-meter { display: grid; grid-template-columns: 230px 1fr 110px; gap: 10px; align-items: center; font-size: 13px; }
.ls-meter i { height: 10px; background: var(--bg-2); border-radius: 5px; overflow: hidden; display: block; }
.ls-meter i b { display: block; height: 100%; background: var(--accent); }
.ls-meter em { grid-column: 1 / -1; font-size: 12px; color: #8a5a00; font-style: normal; }
.ls-form { display: grid; gap: 10px; max-width: 520px; }
.ls-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.ls-form input, .ls-form select { padding: 9px; border-radius: 8px; border: 1px solid var(--line); font-size: 15px; background: #fff; color: inherit; }
.ls-job { display: grid; gap: 10px; justify-items: start; padding: 20px 0; }
.ls-spin { width: 28px; height: 28px; border: 3px solid var(--bg-2); border-top-color: var(--accent); border-radius: 50%; animation: lsspin 0.9s linear infinite; }
@keyframes lsspin { to { transform: rotate(360deg); } }
@media (max-width: 720px) { .ls-meter { grid-template-columns: 1fr; } }

/* Booth types & swing */
.pt-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.pt-type { text-align: left; border: 1px solid var(--line); border-left: 6px solid var(--tc); border-radius: 12px; padding: 12px; background: var(--card); color: inherit; cursor: pointer; display: grid; gap: 6px; font: inherit; }
.pt-type:hover, .pt-type.on { box-shadow: 0 0 0 2px var(--tc); }
.pt-th { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.pt-th i { width: 12px; height: 12px; border-radius: 3px; background: var(--tc); border: 1px solid rgba(0,0,0,.35); flex: none; }
.pt-mix { display: grid; gap: 3px; font-size: 12.5px; }
.pt-mix div { display: grid; grid-template-columns: 130px 1fr 66px; gap: 6px; align-items: center; }
.pt-mix em { height: 8px; background: var(--bg-2); border-radius: 4px; overflow: hidden; display: block; }
.pt-mix em b { display: block; height: 100%; background: var(--tc); }
.pt-mix small { color: var(--muted); }
.pt-res { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.pt-res table { border-collapse: collapse; } .pt-res td { padding: 1px 5px; text-align: right; }
.pt-res tr:first-child td { color: var(--muted); }
.pt-spark line { stroke: #eb6834; stroke-width: 2; } .pt-spark circle { fill: #eb6834; }
.pt-st { font-size: 8px; fill: var(--muted); }
.pt-tags { font-size: 12px; }
.pt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pt-map { height: 420px; border-radius: 12px; border: 1px solid var(--line); }
.pt-blist { max-height: 380px; overflow: auto; }
.pt-focus { background: #fff3d6; }
.pt-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; border: 1px solid rgba(0,0,0,.35); vertical-align: -1px; }
.pt-src { display: grid; grid-template-columns: 50px minmax(120px, 360px) auto; gap: 10px; align-items: center; font-size: 14px; margin: 4px 0; }
.pt-src em { height: 14px; background: var(--bg-2); border-radius: 4px; overflow: hidden; display: block; }
.pt-src em b { display: block; height: 100%; }
.pt-take { font-size: 15px; }
.pt-tog { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pt-tog .chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pt-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.pt-bars { width: 100%; max-width: 760px; height: auto; }
.pt-lbl { font-size: 12px; fill: currentColor; } .pt-val { font-size: 11.5px; fill: currentColor; font-variant-numeric: tabular-nums; }
.pt-zero { stroke: #8a8a85; stroke-width: 1; stroke-dasharray: 3 3; }
.pt-ci { stroke: #1b1b19; stroke-width: 1.5; } .pt-ci2 { stroke: #4a4a46; stroke-width: 2; stroke-linecap: round; }
.pt-dot { fill: #1c5cab; stroke: #fff; stroke-width: 2; }
.pt-unclear .pt-dot { fill: #b9b4a8; } .pt-unclear .pt-ci2 { stroke: #c9c4b8; } .pt-unclear text { fill: var(--muted); }
.pt-scatter { width: 100%; max-width: 820px; height: auto; }
.pt-grid { stroke: var(--line); stroke-width: 1; } .pt-ax { font-size: 11px; fill: var(--muted); }
.pt-pt { stroke: #fff; stroke-width: 1.2; opacity: .9; cursor: pointer; } .pt-pt:hover { stroke: #1b1b19; stroke-width: 2; opacity: 1; }
.pt-fit { stroke: #1b1b19; stroke-width: 2; stroke-dasharray: 6 4; }
.pt-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; margin: 4px 0 10px; }
.pt-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.35); }
.pt-legend .pt-fitkey { border-radius: 0; height: 0; border: none; border-top: 2px dashed #1b1b19; width: 16px; }
.pt-lab { font-size: 13px; color: var(--muted); } .pt-lab select { padding: 6px; border-radius: 8px; border: 1px solid var(--line); }
.pt-place { font-size: 11.5px; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
@media (max-width: 900px) { .pt-two { grid-template-columns: 1fr; } }

/* Communities */
.cm-tabs { display: flex; gap: 6px; margin: 8px 0; }
.cm-tabs .chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.cm-tree { width: 100%; height: auto; display: block; }
.cm-rel { font-size: 12px; font-weight: 700; fill: #2b2b28; }
.cm-tile { cursor: pointer; } .cm-tile:hover rect:first-child, .cm-tile:focus rect:first-child { stroke: #1b1b19; stroke-width: 2; }
.cm-tile.on rect:first-child { stroke: #1b1b19; stroke-width: 3; }
.cm-tt { fill: #102033; font-weight: 700; pointer-events: none; } .cm-tn { fill: #102033; pointer-events: none; }
.cm-list td { font-size: 13px; } .cm-r td { background: var(--bg-2); }
.cm-ind1 { padding-left: 18px !important; } .cm-ind2 { padding-left: 38px !important; }
.cm-empty td { color: var(--muted); font-style: italic; }
.cm-todo { color: #8a5a00; }
.cm-bar { display: flex; height: 8px; width: 180px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.cm-bar i { display: block; height: 100%; background: #1c5cab; } .cm-bar i.g { background: #9ec5f4; }
.cm-relname { font-size: 14px; font-weight: 400; }
.cm-kpis { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.cm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.cm-grid h3 { font-size: 14px; margin: 10px 0 6px; }
.cm-subbar { display: flex; height: 14px; border-radius: 6px; overflow: hidden; gap: 2px; margin-bottom: 6px; }
.cm-subbar i { display: block; height: 100%; }
.cm-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.cm-pyr { width: 100%; max-width: 460px; height: auto; }
.cm-acl { stroke: #1b1b19; stroke-width: 2; }
.cm-sur { max-height: 470px; overflow: auto; }
.cm-shared { color: #8a3a16; font-weight: 600; }
.cm-wards { display: grid; gap: 4px; }
.cm-wards div { display: grid; grid-template-columns: 60px 1fr 80px 120px; gap: 8px; align-items: center; font-size: 12.5px; }
.cm-wards em, .cm-along em { height: 10px; background: var(--bg-2); border-radius: 5px; overflow: hidden; display: block; position: relative; }
.cm-wards em b, .cm-along em b { display: block; height: 100%; }
.cm-along { display: grid; gap: 4px; }
.cm-along div { display: grid; grid-template-columns: 150px 1fr 80px; gap: 8px; align-items: center; font-size: 12.5px; }
.cm-along em b { background: #6b7d8f; } .cm-along em u { position: absolute; top: -2px; width: 2px; height: 14px; background: #1b1b19; }
.cm-hi { color: #b3261e; font-weight: 700; } .cm-lo { color: #1c5cab; font-weight: 700; }
.cm-map { height: 330px; border-radius: 12px; border: 1px solid var(--line); }
.cm-mx { border-collapse: separate; border-spacing: 2px; font-size: 12px; }
.cm-mx td { text-align: center; padding: 6px 8px; border-radius: 4px; min-width: 54px; font-variant-numeric: tabular-nums; }
.cm-mx th { font-weight: 600; text-align: left; padding: 4px 8px; white-space: nowrap; }
.cm-mx thead th { text-align: center; }
.cm-nb thead th span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); max-height: 140px; }
.cm-diag { outline: 2px solid #1b1b19; outline-offset: -2px; font-weight: 700; }
@media (max-width: 900px) { .cm-grid { grid-template-columns: 1fr; } .cm-wards div { grid-template-columns: 50px 1fr 70px; } .cm-wards div span:last-child { display: none; } }

.cm-h { font-size: 14px; margin: 10px 0 6px; }
.cm-basis { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 1px; min-width: 120px; }
.cm-basis.big { height: 16px; }
.cm-basis i { display: block; height: 100%; }
.cm-basisleg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; margin-top: 4px; color: var(--muted); }
.cm-basisleg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.cm-basisleg b { color: var(--ink, #222); }
.cm-bar2 { min-width: 180px; }
.cm-look { margin: 10px 0; max-width: 820px; }
.cm-look input { width: 100%; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 15px; }
.cm-surcard { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 6px; display: grid; gap: 6px; background: var(--card); }
.cm-surname { font-size: 18px; }
.cm-hi-item { border-top: 1px solid var(--line); padding: 6px 0; }
.cm-hi-item summary { cursor: pointer; font-size: 14px; }
.cm-hl { max-height: 320px; overflow: auto; }

.cm-q th.sortable { cursor: pointer; white-space: nowrap; }
.cm-q td { font-size: 13px; }

/* Booth map: booth areas, presets, map-first layout */
.bm-wrap { grid-template-columns: 290px 1fr; gap: 10px; }
#bmMap { height: calc(100vh - 150px); min-height: 560px; }
.bm-side { max-height: calc(100vh - 150px); padding: 12px; gap: 8px; }
.bm-presets { display: flex; flex-wrap: wrap; gap: 4px; }
.bm-presets .chip { padding: .2rem .55rem; font-size: .8rem; }
.bm-presets .chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.bm-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.bm-seg button { border: 0; background: transparent; padding: .35rem; font: inherit; font-size: .85rem; cursor: pointer; color: var(--muted); }
.bm-seg button.active { background: var(--ink); color: #fff; }
.bm-seg button:disabled { opacity: .4; cursor: default; }
.bm-cellnote { margin: .35rem 0 0; font-size: .75rem; }
@media (max-width: 900px) { .bm-wrap { grid-template-columns: 1fr; } }

.bm-paneltoggle { position: absolute; top: 10px; right: 10px; z-index: 1000; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.bm-wrap.bm-collapsed { grid-template-columns: 1fr; gap: 0; }
.bm-wrap.bm-collapsed .bm-side { display: none; }
.bm-legi i.hatch { background: repeating-linear-gradient(45deg, #fff 0 3px, #111110 3px 5px); }

.bm-scatter { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.bm-schead { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; font-size: 13px; }
.bm-schead select { padding: 6px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; max-width: 260px; background: #fff; }
.bm-scsvg { width: 100%; max-width: 760px; height: auto; display: block; margin-top: 6px; font-size: 11px; fill: #55554f; }
.bm-scsvg line.g { stroke: #e6e4de; }
.bm-scsvg line.z { stroke: #8a8a84; }
.bm-scsvg line.trend { stroke: #111110; stroke-width: 1.5; stroke-dasharray: 5 4; }
.bm-scsvg .ax { font-size: 12px; font-weight: 600; fill: #1b1b19; }
.bm-scsvg circle { stroke: #1b1b19; stroke-width: .6; fill-opacity: .8; cursor: pointer; }
.bm-scsvg circle.hi { stroke: #e11d48; stroke-width: 3; fill-opacity: 1; }
.bm-scnote { margin: 6px 0 0; font-size: 12.5px; }
body.bm-fullscreen .bm-scatter { display: none; }
@media print { .bm-scatter { display: none; } }

.bm-scq { margin: 0 0 8px; font-size: 16px; font-family: var(--display); }
.bm-scans { display: grid; gap: 2px; background: #f4f1ea; border-left: 4px solid #2d8c7b; border-radius: 8px; padding: 8px 12px; margin: 8px 0 4px; font-size: 14px; }
.bm-scans span { font-size: 13px; color: #44443f; }
.bm-scsvg circle { fill: #2d8c7b; stroke: #fff; stroke-width: 1; fill-opacity: .6; }
.bm-scsvg circle.hi { fill: #e11d48; fill-opacity: 1; stroke: #fff; stroke-width: 1.5; r: 6; }
.bm-scsvg .ann { font-size: 11px; font-weight: 700; }
.bm-scsvg .ann.up { fill: #b45309; }
.bm-scsvg .ann.dn { fill: #1d4ed8; }
.bm-scread { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; color: #44443f; display: grid; gap: 2px; }

.bm-sctop { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 6px 0; font-size: 12.5px; }
.bm-sctop > span { color: #55554f; margin-right: 2px; }
.bm-sctop .chip { padding: .2rem .55rem; font-size: .78rem; }

/* What's unique here */
.bm-uniq { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; font-size: 13px; display: grid; gap: 5px; }
.bm-uqtitle { font-weight: 700; font-size: 14px; }
.bm-uqhead { background: #f4f1ea; border-left: 4px solid #2d8c7b; border-radius: 8px; padding: 6px 10px; }
.bm-uqlab { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: #6b6b66; margin-top: 2px; }
.bm-uqlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.bm-uqlist li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: baseline; padding: 3px 0; border-bottom: 1px dashed #e6e4de; }
.bm-uqname { font-weight: 600; }
.bm-uqnum { grid-column: 1; font-size: 12px; }
.bm-uqx { grid-row: 1 / span 2; grid-column: 2; font-weight: 700; }
.bm-uqlist li.up .bm-uqx { color: #14574d; }
.bm-uqlist li.dn .bm-uqx { color: #9a3412; }
.bm-uqmeta, .bm-uqmix { font-size: 12px; }
.bm-uqwarn { font-size: 12px; background: #fff4e5; border-radius: 6px; padding: 4px 8px; color: #7a4a05; }
.pl-uqbtn { padding: .1rem .5rem; font-size: .75rem; margin-left: 4px; }
.pl-uqrow > td { background: #faf9f6; padding: 10px 14px; }
.pl-uqrow .bm-uniq { border-top: 0; margin: 0; padding: 0; max-width: 640px; }

.bm-mapbox { position: relative; }
.bm-cardwrap { position: absolute; z-index: 1100; top: 48px; right: 10px; width: 330px; max-height: calc(100% - 70px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.22); padding: 10px 12px; }
.bm-cardwrap:has(#bmCard:empty) { display: none; }
.bm-cardwrap .bm-card { border-top: 0; padding-top: 0; }
.bm-cardx { position: absolute; top: 4px; right: 6px; border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: #55554f; }
.bm-cardwrap .bm-cardh { padding-right: 22px; }
body.bm-fullscreen .bm-cardwrap { max-height: calc(100vh - 90px); }
@media (max-width: 900px) { .bm-cardwrap { position: static; width: auto; max-height: none; margin-bottom: 8px; } }

/* Map level switch + place bubbles */
.bm-levels { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.bm-lvlab { font-size: 12px; font-weight: 700; color: #55554f; margin-right: 2px; width: 100%; }
.bm-levels .chip { padding: .2rem .55rem; font-size: .8rem; }
.bm-levels .chip.active { background: #2d8c7b; color: #fff; border-color: #2d8c7b; }
.bm-levels .chip:disabled { opacity: .45; cursor: not-allowed; }
.bm-seg[hidden] { display: none; }
.leaflet-tooltip.bm-bubblelab { background: transparent; border: 0; box-shadow: none; font-weight: 700; font-size: 11.5px; color: #111110; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 5px #fff; padding: 0; }
.leaflet-tooltip.bm-bubblelab::before { display: none; }

/* Filter voters */
.bm-recipe { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; background: #faf9f6; font-size: 13px; }
.bm-rtitle { font-weight: 700; }
.bm-rrow { display: grid; grid-template-columns: 72px 1fr; gap: 4px 8px; align-items: center; }
.bm-rrow select { grid-column: 2; padding: 4px; border-radius: 8px; border: 1px solid var(--line); font-size: 12.5px; background: #fff; }
.bm-rlab { font-weight: 600; font-size: 12px; color: #44443f; }
.bm-rchips { display: flex; flex-wrap: wrap; gap: 4px; }
.bm-rchip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 4px 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.bm-rchip.inc { background: #d7efe8; color: #14574d; }
.bm-rchip.exc { background: #fde4d0; color: #8f4309; }
.bm-rchip button { border: 0; background: transparent; cursor: pointer; font-size: 15px; line-height: 1; color: inherit; }
.bm-rquick { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 12px; }
.bm-rquick .chip { padding: .1rem .5rem; font-size: .76rem; }
.bm-rsum { background: #f4f1ea; border-left: 4px solid #2d8c7b; border-radius: 6px; padding: 5px 8px; font-size: 12.5px; }

/* Field list */
.fl-form { display: grid; gap: 10px; max-width: 640px; margin: 8px 0 12px; }
.fl-form label { display: grid; gap: 4px; font-size: 13px; color: #44443f; }
.fl-form select, .fl-form input { padding: 8px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px; background: #fff; }
.fl-wards { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.fl-lab { width: 100%; font-size: 13px; color: #44443f; }
.fl-wards .chip.active { background: #2d8c7b; color: #fff; border-color: #2d8c7b; }
.fl-actions { margin: 8px 0; }
.fl-table td, .fl-table th { font-size: 13px; vertical-align: top; }

/* Export dialog */
.ex-back { position: fixed; inset: 0; background: rgba(20,24,31,.45); z-index: 1000; display: grid; place-items: center; padding: 16px; }
.ex-card { background: var(--surface, #fff); border-radius: 12px; padding: 20px 22px; width: min(440px, 100%); box-shadow: 0 20px 50px rgba(0,0,0,.3); display: grid; gap: 12px; }
.ex-card h3 { margin: 0; font-size: 1.05rem; }
.ex-card label { display: grid; gap: 4px; font-size: .88rem; }
.ex-card label input:not([type=checkbox]) { padding: 8px 10px; border: 1px solid var(--line, #d7dbe2); border-radius: 8px; font: inherit; }
.ex-card .ex-check { display: flex; gap: 8px; align-items: flex-start; }
.ex-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* Overview: what do you want to do */
.task-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 4px 0 14px; align-items: stretch; }
.task-strip-k { grid-column: 1 / -1; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #667); }
.task-card { text-align: left; border: 1px solid var(--line, #d7dbe2); background: var(--surface, #fff); border-radius: 10px; padding: 10px 12px; display: grid; gap: 3px; cursor: pointer; font: inherit; }
.task-card b { font-size: .92rem; }
.task-card span { font-size: .78rem; color: var(--muted, #667); line-height: 1.3; }
.task-card:hover { border-color: #2f7d5b; box-shadow: 0 2px 8px rgba(0,0,0,.07); }

/* Phone collection */
.col-bar { display: inline-block; width: 120px; height: 8px; background: #e6e9ef; border-radius: 4px; overflow: hidden; vertical-align: middle; }
.col-bar i { display: block; height: 100%; background: #2f7d5b; }
.col-bar.col-big { display: block; width: 100%; height: 12px; margin: 6px 0 10px; }
.col-wards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 10px 0 16px; }
.col-ward { border: 1px solid var(--line, #d7dbe2); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; font-size: .85rem; }
.col-ward .col-bar { width: 100%; }
.col-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; padding: 8px 10px; background: rgba(0,0,0,.03); border-radius: 8px; }
.col-bulk input, .col-bulk select, .col-table input:not([type=checkbox]), .col-table select { padding: 5px 8px; border: 1px solid var(--line, #d7dbe2); border-radius: 6px; font: inherit; font-size: .85rem; max-width: 160px; }
.col-table td.col-ph { white-space: nowrap; }
.col-table td.col-ph .col-bar { width: 80px; margin-right: 6px; }
.col-table tr.is-selected { background: rgba(47,125,91,.08); }
.col-upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.col-upload input:not([type=file]) { padding: 7px 10px; border: 1px solid var(--line, #d7dbe2); border-radius: 8px; font: inherit; }

/* Long tables on the field list and collection pages: header stays visible while scrolling */
.fl-table, .col-table { border-collapse: separate; border-spacing: 0; }
.fl .table-scroll, .col .table-scroll { max-height: 65vh; overflow: auto; }
.fl-table thead th, .col-table thead th { position: sticky; top: 0; background: var(--surface, #fff); z-index: 2; box-shadow: 0 1px 0 var(--line, #d7dbe2); }
@media (max-width: 700px) {
  .col-bulk input, .col-bulk select { max-width: 100%; flex: 1 1 120px; }
  .col-table input:not([type=checkbox]), .col-table select { max-width: 110px; }
  .task-strip { grid-template-columns: 1fr 1fr; }
}

/* Saved filters */
.sv { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.sv-pick { padding: 6px 10px; border: 1px solid var(--line, #d7dbe2); border-radius: 8px; font: inherit; font-size: .85rem; }

/* Fill phones on screen (card view) */
.fl-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin: 10px 0; }
.fl-card { border: 1px solid var(--line, #d7dbe2); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; font-size: .88rem; }
.fl-card-top { display: flex; flex-direction: column; font-size: 1rem; }
.fl-card-ph { display: flex; gap: 8px; margin-top: 4px; }
.fl-card-ph input { flex: 1; padding: 9px 10px; font-size: 1rem; border: 1px solid var(--line, #d7dbe2); border-radius: 8px; }
.fl-nav { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin: 6px 0; }
.fl-msg { min-height: 1em; font-size: .8rem; }
.ok-txt { color: #2f7d5b; font-weight: 600; align-self: center; }
.ph-chip { display: inline-flex; gap: 4px; align-items: center; background: rgba(47,125,91,.1); border-radius: 12px; padding: 1px 8px; }
.ph-chip button { border: 0; background: none; cursor: pointer; color: #667; }

/* Map: pick several places */
.bm-pick-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.bm-pick-chip { display: inline-flex; align-items: center; gap: 3px; background: rgba(47,125,91,.12); border-radius: 12px; padding: 1px 4px 1px 9px; font-size: .78rem; }
.bm-pick-chip button { border: 0; background: none; cursor: pointer; color: #556; font-size: .95rem; line-height: 1; }

/* Shared filter bar */
.fb { display: grid; gap: 8px; }
.fb label { display: grid; gap: 4px; font-size: .88rem; }

.find-phone-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.find-phone-list li { padding: 6px 0; border-bottom: 1px solid var(--line, #e6e9ef); }

/* Calmer page top: no Back/breadcrumb row on a section's first page; slimmer header */
.workspace-location.is-quiet { display: none; }
.workspace-location nav#workspaceBreadcrumb { font-size: .82rem; }

/* Overview (simple) */
.ov { display: grid; gap: 14px; }
.ov-h { font-size: 1.05rem; margin: 10px 0 4px; }
.ov-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ov-stat { background: var(--surface, #fff); border: 1px solid var(--line, #e6e9ef); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.ov-stat b { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.ov-stat span { color: var(--ink, #1c2430); font-size: .92rem; }
.ov-stat em { font-style: normal; color: var(--muted, #667); font-size: .8rem; }
.ov-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.ov-bars { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; }
.ov-bar-row { display: grid; grid-template-columns: minmax(110px, 170px) 1fr 120px; gap: 10px; align-items: center; width: 100%; padding: 5px 8px; border: 0; background: none; border-radius: 8px; font: inherit; text-align: left; color: inherit; }
button.ov-bar-row { cursor: pointer; }
button.ov-bar-row:hover { background: rgba(47,125,91,.08); }
.ov-bar-name { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-bar-track { height: 10px; background: #e9ecf1; border-radius: 5px; overflow: hidden; }
.ov-bar-track i { display: block; height: 100%; background: #2f7d5b; border-radius: 5px; }
.ov-bar-num { text-align: right; font-size: .85rem; white-space: nowrap; }
.ov-sure { margin-top: 12px; padding: 10px 12px; background: rgba(0,0,0,.035); border-radius: 10px; font-size: .88rem; line-height: 1.45; }
.ov-wards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ov-ward { text-align: left; border: 1px solid var(--line, #e6e9ef); background: var(--surface, #fff); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; cursor: pointer; font: inherit; color: inherit; }
.ov-ward:hover { border-color: #2f7d5b; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.ov-ward-head { display: flex; justify-content: space-between; align-items: baseline; }
.ov-ward-head b { font-size: 1.02rem; }
.ov-ward-top { font-size: .86rem; }
@media (max-width: 700px) { .ov-bar-row { grid-template-columns: 90px 1fr 100px; } }
