:root {
  font-family: "Segoe UI", Arial, system-ui, sans-serif;
  color: #13243f;
  background: #f5f8ff;
  font-synthesis: none;
  --blue: #1769ff;
  --blue-dark: #0c4ed1;
  --ink: #13243f;
  --muted: #71809a;
  --line: #dfe7f2;
  --green: #18a36b;
  --red: #ef635b;
}

* { box-sizing: border-box; }
html, body, #app {
  margin: 0; min-height: 100%; touch-action: manipulation; -webkit-text-size-adjust: 100%;
}
body { min-width: 320px; overflow: hidden; }
button, input, select { font: inherit; }
button, a, input, select, [role="button"] { touch-action: manipulation; }
button, a, [role="button"] {
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }

.site-shell { height: 100vh; display: flex; flex-direction: column; background: #f6f9ff; }
.topbar {
  height: 80px; flex: 0 0 80px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 28px; gap: 28px; position: relative; z-index: 500;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.brand small { display: block; color: #8592a8; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; margin-top: 2px; }
.brand__drop {
  width: 40px; height: 44px; display: grid; place-items: center; color: white; background: var(--blue);
  border-radius: 55% 45% 55% 45% / 68% 62% 38% 32%; font-size: 17px; font-weight: 800; transform: rotate(-5deg);
  box-shadow: 0 8px 20px rgba(23,105,255,.2);
}
.brand__drop::first-letter { transform: rotate(5deg); }
.city-pill {
  display: flex; align-items: center; gap: 8px; color: #40516d; font-size: 15px; font-weight: 700;
  border-left: 1px solid var(--line); padding-left: 28px;
}
.city-pill span { color: var(--blue); font-size: 10px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.utility-button {
  position: relative; height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px;
  border: 1px solid transparent; border-radius: 10px; background: transparent;
  color: #51617a; font-size: 12px; font-weight: 800;
}
.utility-button:hover { color: var(--blue); border-color: #d9e4f2; background: #f5f8fd; }
.utility-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; pointer-events: none; }
.utility-icon--app { border-radius: 5px; }

.map-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(380px, 35%) 1fr; }
.sidebar {
  z-index: 10; background: #f8faff; display: flex; min-height: 0; flex-direction: column;
  border-right: 1px solid var(--line); box-shadow: 10px 0 40px rgba(44,69,108,.05);
}
.sidebar__intro { padding: 30px 34px 20px; }
.eyebrow { color: var(--blue); font-size: 12px; line-height: 1; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.sidebar__intro h1 { font-size: clamp(34px, 3.3vw, 54px); line-height: .99; letter-spacing: -.06em; margin: 12px 0 14px; max-width: 480px; }
.sidebar__intro h1 em { color: var(--blue); font-style: normal; }
.sidebar__intro p { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 430px; margin: 0; }
.search-box { margin: 2px 34px 18px; position: relative; }
.search-box input {
  width: 100%; height: 56px; border: 1px solid #d8e2ef; border-radius: 15px; background: white;
  padding: 0 54px 0 48px; outline: none; color: var(--ink); box-shadow: 0 8px 24px rgba(35,63,105,.06);
  font-size: 15px; transition: .2s ease;
}
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23,105,255,.09); }
.icon-search {
  position: absolute; left: 18px; top: 17px; width: 15px; height: 15px; border: 2px solid #697891;
  border-radius: 50%; z-index: 1; pointer-events: none;
}
.icon-search::after {
  content: ""; position: absolute; width: 7px; height: 2px; right: -6px; bottom: -3px;
  border-radius: 2px; background: #697891; transform: rotate(45deg); transform-origin: left center;
}
.search-box button {
  position: absolute; right: 7px; top: 7px; width: 42px; height: 42px; border: 0; border-radius: 11px;
  color: var(--blue); background: #eef4ff; display: grid; place-items: center;
}
.search-box button:hover, .floating-locate:hover { background: #e0ebff; }
.search-box .search-clear {
  right: 7px; color: #7b899d; background: transparent; font-size: 0;
}
.search-box .search-clear:hover { color: #263a59; background: #f0f4f9; }
.search-box .search-clear[hidden] { display: none; }
.search-box .search-clear::before,
.search-box .search-clear::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px;
  border-radius: 2px; background: currentColor;
}
.search-box .search-clear::before { transform: translate(-50%, -50%) rotate(45deg); }
.search-box .search-clear::after { transform: translate(-50%, -50%) rotate(-45deg); }
.icon-target {
  display: block; position: relative; width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 50%;
  background:
    linear-gradient(currentColor,currentColor) center top / 2px 4px no-repeat,
    linear-gradient(currentColor,currentColor) center bottom / 2px 4px no-repeat,
    linear-gradient(currentColor,currentColor) left center / 4px 2px no-repeat,
    linear-gradient(currentColor,currentColor) right center / 4px 2px no-repeat;
}
.icon-target::after {
  content: ""; position: absolute; width: 4px; height: 4px; left: 5px; top: 5px;
  border-radius: 50%; background: currentColor;
}
.search-results { display: flex; min-height: 0; flex: 1; flex-direction: column; }
.search-results[hidden] { display: none; }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 0 34px 11px; font-size: 13px; }
.list-toolbar b { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.store-list { flex: 1; min-height: 0; padding: 0 24px 28px 34px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.store-card {
  background: rgba(255,255,255,.84); border: 1px solid #e2e9f2; border-radius: 18px; margin-bottom: 12px; padding: 18px;
  transition: transform .18s, border-color .18s, box-shadow .18s; cursor: pointer; outline: none;
}
.store-card:hover, .store-card:focus, .store-card--active {
  transform: translateY(-1px); border-color: #9fc1ff; box-shadow: 0 10px 28px rgba(36,71,126,.1); background: white;
}
.store-card__head { display: flex; justify-content: space-between; gap: 14px; }
.store-card h3 { font-size: 17px; margin: 0 0 6px; letter-spacing: -.02em; }
.store-card p { color: #79869b; font-size: 13px; line-height: 1.45; margin: 0; }
.distance { flex: none; color: var(--blue); font-size: 12px; font-weight: 800; background: #edf4ff; padding: 6px 9px; border-radius: 20px; height: fit-content; }
.water-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 14px; }
.water-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 9px; font-size: 12px; border: 1px solid; }
.water-chip b { font-size: 13px; }
.water-chip small { font-size: 11px; }
.water-chip em {
  margin-left: 2px; padding-left: 5px; border-left: 1px solid currentColor;
  font-size: 10px; font-style: normal; font-weight: 900; opacity: .82;
}
.water-chip--yes { color: #0d8255; background: #e8f8f0; border-color: #c6ebda; }
.water-chip--no { color: #c84a45; background: #fff0ef; border-color: #f7d3d0; }
.water-chip--unknown { color: #7e8b9f; background: #f1f4f8; border-color: #e1e6ed; }
.store-card__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid #edf1f6; }
.freshness { display: flex; align-items: center; gap: 7px; color: #8a96a9; font-size: 12px; }
.freshness i { width: 5px; height: 5px; border-radius: 50%; background: #aab5c5; }
.text-action { padding: 5px 0; border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 800; }
.text-action span { font-size: 16px; margin-left: 3px; }
.empty-state { text-align: center; padding: 45px 20px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.empty-state b { color: var(--ink); font-size: 15px; }

.map-stage { position: relative; min-width: 0; }
.map { position: absolute; inset: 0; background: #dfeaf4; }
.map-unavailable {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 7px; padding: 30px;
  text-align: center; color: #71809a; background: linear-gradient(135deg, #e8f0fa, #f5f8fc);
}
.map-unavailable b { color: var(--ink); font-size: 15px; }
.map-unavailable span { max-width: 320px; font-size: 10px; line-height: 1.55; }
.map-stage--unavailable .map-legend,
.map-stage--unavailable .floating-locate,
.map-stage--unavailable .map-counter { display: none; }
.maplibregl-map { font-family: "Segoe UI", Arial, sans-serif; }
.maplibregl-canvas { touch-action: none; }
.maplibregl-ctrl-attrib { font-size: 9px; opacity: .82; }
.maplibregl-ctrl-group {
  overflow: hidden; border-radius: 12px !important; box-shadow: 0 8px 22px rgba(40,66,104,.14) !important;
}
.maplibregl-ctrl-group button { width: 44px; height: 44px; }
.maplibregl-ctrl-bottom-right { right: 8px; bottom: 8px; }
.confidence-popup .maplibregl-popup-content {
  display: flex; align-items: baseline; gap: 5px; padding: 7px 9px; border-radius: 9px;
  color: #64728a; box-shadow: 0 8px 24px rgba(30,52,84,.18); font-size: 8px;
}
.confidence-popup b { color: var(--blue); font-size: 12px; }
.confidence-popup .maplibregl-popup-tip { border-top-color: white; }
.map-legend {
  position: absolute; z-index: 450; top: 20px; left: 20px; display: flex; align-items: center; gap: 15px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border: 1px solid rgba(216,226,239,.9);
  border-radius: 12px; padding: 10px 13px; box-shadow: 0 8px 25px rgba(40,66,104,.09);
}
.map-legend span { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #63718a; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-dot--yes { background: var(--green); }
.legend-dot--no { background: var(--red); }
.legend-dot--unknown { background: #9aa8bd; }
.map-filter {
  position: absolute; z-index: 450; top: 68px; left: 20px; display: flex; gap: 3px; padding: 4px;
  border: 1px solid rgba(216,226,239,.9); border-radius: 11px; background: rgba(255,255,255,.94);
  box-shadow: 0 8px 25px rgba(40,66,104,.09); backdrop-filter: blur(10px);
}
.map-filter button {
  min-width: 48px; height: 36px; padding: 0 11px; border: 0; border-radius: 9px; color: #6c7a90;
  background: transparent; font-size: 12px; font-weight: 800;
}
.map-filter button.active { color: white; background: var(--blue); box-shadow: 0 4px 10px rgba(23,105,255,.2); }
.floating-locate {
  position: absolute; z-index: 450; right: 20px; top: 20px; width: 48px; height: 48px; border: 1px solid #dbe4ef;
  border-radius: 12px; background: white; color: var(--blue); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(40,66,104,.12);
}
.map-counter {
  position: absolute; z-index: 450; left: 20px; bottom: 25px; display: flex; align-items: center; gap: 9px;
  padding: 11px 14px; color: white; background: #102748; border-radius: 13px; box-shadow: 0 12px 30px rgba(16,39,72,.24);
}
.map-counter b { font-size: 22px; letter-spacing: -.06em; }
.map-counter span { font-size: 8px; line-height: 1.35; color: #b8c7dc; text-transform: uppercase; letter-spacing: .07em; }

.modal-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(12,28,51,.48); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 20px; }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: white; border-radius: 26px; padding: 34px; box-shadow: 0 30px 90px rgba(7,23,49,.3); position: relative; animation: modal-in .22s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal__close {
  position: absolute; right: 18px; top: 16px; display: grid; place-items: center; width: 40px; height: 40px;
  padding: 0; border: 0; border-radius: 50%; color: #71809a; background: #f0f4f8; font-size: 0;
}
.modal__close:hover { color: #33465f; background: #e7edf4; }
.modal__close::before,
.modal__close::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px;
  border-radius: 2px; background: currentColor;
}
.modal__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.modal__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.modal__eyebrow { color: var(--blue); text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.modal h2 { font-size: 31px; line-height: 1.08; letter-spacing: -.045em; margin: 10px 48px 9px 0; }
.modal > p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 22px; }
.modal .report-hint { margin: -8px 0 15px; color: #7c899c; font-size: 12px; }
.report-choices { border-top: 1px solid var(--line); }
.choice-row { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bottle-size {
  display: grid; place-items: center; height: 43px; width: 42px;
  border-radius: 11px 11px 9px 9px; background: #eaf2ff; color: var(--blue);
  font-size: 16px; font-weight: 900; line-height: 1; white-space: nowrap;
}
.bottle-size__label { display: inline-flex; align-items: center; justify-content: center; gap: 2px; line-height: 1; }
.bottle-size small { display: inline-block; margin: 0; font-size: 11px; font-weight: 800; line-height: 1; }
.choice-copy { display: flex; flex-direction: column; gap: 2px; }
.choice-copy b { font-size: 15px; }
.choice-copy small { color: #8a96a8; font-size: 12px; }
.segmented { display: flex; padding: 3px; border-radius: 10px; background: #f1f4f8; gap: 3px; }
.segmented button { border: 0; border-radius: 9px; background: transparent; color: #7d899d; padding: 10px 14px; font-size: 13px; font-weight: 800; }
.segmented .active { color: white; box-shadow: 0 3px 8px rgba(40,60,90,.15); }
.segmented .active--yes { background: var(--green); }
.segmented .active--no { background: var(--red); }
.primary-button { width: 100%; height: 54px; margin-top: 18px; border: 0; border-radius: 14px; background: var(--blue); color: white; font-size: 15px; font-weight: 800; box-shadow: 0 10px 24px rgba(23,105,255,.23); }
.primary-button:hover { background: var(--blue-dark); }
.primary-button:disabled { background: #b8c4d6; box-shadow: none; }
.secondary-button {
  width: 100%; height: 54px; border: 1px solid #d9e3ef; border-radius: 14px; color: #40516c;
  background: white; font-size: 14px; font-weight: 800;
}
.secondary-button:hover { color: var(--blue); border-color: #a9c6fa; background: #f6f9ff; }
.store-detail__status { display: flex; gap: 8px; margin: 18px 0 13px; }
.store-detail__status .water-chip { flex: 1; justify-content: center; padding: 10px 8px; }
.store-detail__meta {
  display: flex; justify-content: space-between; gap: 14px; padding: 11px 0 2px; color: #8793a6;
  border-top: 1px solid var(--line); font-size: 12px;
}
.store-detail__meta span:first-child { display: flex; align-items: center; gap: 6px; }
.store-detail__meta i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.store-confidence {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 12px; padding: 12px 13px; border: 1px solid #dce7f5; border-radius: 12px;
  background: linear-gradient(135deg, #f7faff, #edf4ff);
}
.store-confidence > div { display: flex; flex: 1; align-items: center; justify-content: center; gap: 9px; text-align: center; }
.store-confidence span { color: #6f7e94; font-size: 14px; font-weight: 700; line-height: 1.2; }
.store-confidence strong {
  display: inline-flex; align-items: center; justify-content: center; min-height: 28px; color: var(--blue);
  font-size: 23px; letter-spacing: -.03em; line-height: 1.2;
  text-align: center;
}
.store-confidence-help { display: flex; justify-content: center; min-height: 18px; margin-top: 5px; }
.store-confidence-help button {
  padding: 0; border: 0; color: var(--blue); background: transparent;
  font-size: 11px; font-weight: 900; line-height: 1.2;
}
.store-confidence-help button:hover { text-decoration: underline; }
.store-detail__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.store-detail__actions .primary-button { margin-top: 0; }
.store-share-button { width: 100%; margin-top: 9px; }
.store-detail__feedback-actions {
  display: flex; justify-content: center; gap: 16px; margin-top: 17px; padding-top: 15px;
  border-top: 1px solid var(--line);
}
.store-detail__feedback-actions button {
  padding: 5px 0; border: 0; color: #77859a; background: transparent; font-size: 12px; font-weight: 800;
}
.store-detail__feedback-actions button:hover { color: var(--blue); }
.history-panel { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.history-panel[hidden] { display: none; }
.history-panel h3 { margin: 0 0 11px; font-size: 15px; }
.history-list { display: grid; gap: 7px; max-height: 240px; overflow-y: auto; }
.history-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 10px; border-radius: 10px; background: #f6f8fb;
}
.history-item time { flex: none; color: #718099; font-size: 12px; }
.history-item > div { display: flex; justify-content: flex-end; gap: 4px; }
.history-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 7px; padding: 6px 8px; font-size: 11px; }
.history-chip b { font-size: 11px; }
.history-chip--yes { color: #0d8255; background: #e3f6ed; }
.history-chip--no { color: #c84a45; background: #ffebe9; }
.history-empty { padding: 24px; text-align: center; color: #8d99aa; font-size: 13px; }
.modal--compact { max-width: 480px; }
.feedback-form { display: grid; gap: 8px; margin-top: 18px; }
.feedback-form label { color: #53627a; font-size: 13px; font-weight: 800; }
.feedback-form label small { color: #98a3b3; font-size: 11px; font-weight: 600; }
.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%; border: 1px solid #d8e2ef; border-radius: 11px; background: #fbfcff;
  color: var(--ink); outline: none; font: inherit; font-size: 14px;
}
.feedback-form input { height: 50px; padding: 0 14px; }
.feedback-form select { height: 50px; padding: 0 13px; }
.feedback-form textarea {
  height: 145px; min-height: 145px; max-height: 145px; resize: none; overflow-y: auto;
  padding: 14px; line-height: 1.6;
}
.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,255,.08); }
.feedback-form .primary-button { margin-top: 6px; }
.feedback-form > div { display: grid; gap: 8px; }
.feedback-form > div[hidden] { display: none; }
.confidence-copy { display: grid; gap: 14px; margin-top: 22px; color: #647189; font-size: 14px; line-height: 1.7; }
.confidence-copy p { margin: 0; }
.confidence-copy p:first-child { color: var(--ink); font-weight: 700; }
.legal-copy { display: grid; gap: 14px; margin-top: 22px; color: #647189; font-size: 14px; line-height: 1.7; }
.legal-copy p { margin: 0; }
.legal-copy strong { color: var(--ink); }
.creators { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.creators > span { color: #8b97a8; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.creators > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.creators b { padding: 8px 10px; border-radius: 9px; color: var(--blue); background: #edf4ff; font-size: 12px; }
.service-socials { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.service-socials > span { color: #8b97a8; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.service-socials > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.service-socials a,
.share-options > * {
  display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 13px;
  border: 1px solid #d7e3f2; border-radius: 10px; color: var(--blue); background: #f6f9ff;
  font-size: 12px; font-weight: 900; text-decoration: none;
}
.service-socials a:hover,
.share-options > *:hover { border-color: #9cbde5; background: #edf4ff; }
.share-store-name { margin: 9px 0 0; color: #69778d; font-size: 13px; line-height: 1.55; }
.share-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.share-options button { font-family: inherit; cursor: pointer; }
.install-nudge {
  position: fixed; z-index: 850; right: 18px; bottom: 18px; display: flex; align-items: center;
  width: min(370px, calc(100% - 24px)); padding: 7px; border: 1px solid #d5e1f0; border-radius: 16px;
  background: rgba(255,255,255,.97); box-shadow: 0 16px 45px rgba(16,39,72,.22); backdrop-filter: blur(12px);
  animation: install-nudge-in .28s ease-out;
}
.install-nudge[hidden] { display: none; }
.install-nudge__open {
  display: flex; flex: 1; min-width: 0; align-items: center; gap: 10px; padding: 5px; border: 0;
  color: var(--ink); background: transparent; text-align: left;
}
.install-nudge__open img { flex: 0 0 38px; border-radius: 10px; }
.install-nudge__open span { display: flex; min-width: 0; flex-direction: column; gap: 3px; font-size: 13px; line-height: 1.35; }
.install-nudge__open strong { color: var(--blue); font-size: 14px; }
.install-nudge__close {
  display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; padding: 0; border: 0;
  border-radius: 50%; color: #738198; background: #f0f4f9; font-size: 20px; line-height: 1;
}
.install-nudge__close:hover { color: #31445f; background: #e6ecf4; }
@keyframes install-nudge-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.install-intro { margin: 11px 0 0; color: #65738a; font-size: 14px; line-height: 1.65; }
.install-steps { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.install-steps[hidden] { display: none; }
.install-steps li { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; }
.install-steps b {
  display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%;
  color: var(--blue); background: #edf4ff; font-size: 12px;
}
.install-steps span { color: #506078; font-size: 13px; line-height: 1.55; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
.steps li { display: flex; gap: 14px; align-items: center; }
.steps li > b { display: grid; place-items: center; width: 35px; height: 35px; flex: none; border-radius: 50%; color: var(--blue); background: #edf4ff; }
.steps span { display: flex; flex-direction: column; color: var(--muted); font-size: 13px; line-height: 1.45; gap: 3px; }
.steps strong { color: var(--ink); font-size: 15px; }
.toast { position: fixed; z-index: 2000; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 13px 18px; border-radius: 11px; color: white; background: #153052; box-shadow: 0 10px 30px rgba(10,30,60,.2); font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: .22s; }
.toast--visible { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: #c94642; }

.admin-shell { height: 100dvh; min-height: 100vh; background: #f4f7fb; color: #1a2942; overflow-y: auto; }
.admin-topbar { height: 72px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; }
.brand--admin .brand__drop { background: #122946; box-shadow: none; }
.admin-topbar__right { display: flex; align-items: center; gap: 20px; }
.status-online { display: flex; gap: 7px; align-items: center; font-size: 10px; font-weight: 700; color: #5f7089; }
.status-online i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #e4f7ef; }
.admin-logout { border: 1px solid var(--line); background: white; padding: 8px 12px; border-radius: 9px; font-size: 10px; color: #66758d; }
.admin-login { width: min(410px, calc(100% - 32px)); margin: 10vh auto; background: white; border: 1px solid var(--line); border-radius: 24px; padding: 35px; box-shadow: 0 20px 60px rgba(28,52,87,.08); text-align: center; }
.admin-login__mark { width: 56px; height: 56px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 18px; background: #122946; color: white; font-weight: 800; font-size: 20px; }
.admin-login h1 { font-size: 26px; letter-spacing: -.04em; margin: 8px 0; }
.admin-login p { color: var(--muted); font-size: 11px; line-height: 1.5; }
.admin-login form { text-align: left; margin-top: 24px; }
.admin-login label { display: block; font-size: 10px; font-weight: 800; margin-bottom: 7px; }
.admin-login input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 11px; padding: 0 13px; margin-bottom: 12px; outline: none; }
.admin-login input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23,105,255,.08); }
.admin-login code { background: #edf2f7; border-radius: 5px; padding: 2px 4px; color: #40516c; }
.form-error { color: #c94642; font-size: 10px; margin: -3px 0 10px; }
.admin-page { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 35px 0 60px; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 25px; }
.admin-heading h1 { font-size: 32px; letter-spacing: -.05em; margin: 8px 0 5px; }
.admin-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.admin-actions { display: flex; gap: 10px; }
.admin-actions select, .refresh-osm { height: 38px; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 0 13px; color: #40516b; font-size: 10px; font-weight: 700; }
.refresh-osm { color: var(--blue); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 15px; }
.metric-card { position: relative; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 17px; padding: 19px; display: flex; flex-direction: column; min-height: 128px; }
.metric-card > span { color: #6f7e94; font-size: 10px; font-weight: 700; }
.metric-card strong { font-size: 30px; letter-spacing: -.06em; margin: 10px 0 3px; }
.metric-card small { color: #93a0b2; font-size: 9px; }
.metric-card > i { position: absolute; width: 68px; height: 68px; border-radius: 50%; right: -18px; bottom: -20px; opacity: .14; }
.metric-card--blue > i { background: var(--blue); }.metric-card--violet > i { background: #7656e8; }.metric-card--green > i { background: var(--green); }.metric-card--orange > i { background: #ef8b45; }
.admin-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 15px; margin-bottom: 15px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 17px; padding: 20px; }
.panel__head { display: flex; justify-content: space-between; align-items: flex-start; }
.panel__head h2 { font-size: 14px; margin: 0 0 4px; }
.panel__head p { color: #8a97a9; font-size: 9px; margin: 0; }
.panel-badge { color: var(--blue); background: #edf4ff; padding: 5px 8px; border-radius: 8px; font-size: 9px; font-weight: 800; }
.chart { height: 220px; display: flex; align-items: flex-end; gap: 8px; padding: 28px 4px 0; border-bottom: 1px solid var(--line); }
.chart__column { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; min-width: 8px; }
.chart__column i { width: min(24px, 65%); min-height: 4px; background: linear-gradient(#5d95ff, #1769ff); border-radius: 5px 5px 1px 1px; transition: height .3s; }
.chart__column span { font-size: 8px; color: #728097; margin-bottom: 4px; }
.chart__column small { position: absolute; top: 100%; margin-top: 7px; color: #99a4b5; font-size: 7px; white-space: nowrap; }
.chart-empty { margin: auto; color: #9aa6b7; font-size: 10px; }
.coverage-number { display: flex; align-items: center; gap: 10px; margin-top: 30px; }
.coverage-number strong { font-size: 42px; letter-spacing: -.07em; }
.coverage-number span { color: #8592a6; font-size: 9px; line-height: 1.4; }
.coverage-track { height: 7px; background: #edf1f6; border-radius: 10px; overflow: hidden; margin: 14px 0 32px; }
.coverage-track i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.sync-info { border-top: 1px solid var(--line); padding-top: 16px; display: flex; align-items: center; gap: 10px; }
.sync-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: #edf4ff; color: var(--blue); }
.sync-info div { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.sync-info b { font-size: 10px; }.sync-info small { color: #8c99ab; font-size: 8px; }
.sync-ok, .sync-warn { font-size: 8px; font-weight: 800; border-radius: 7px; padding: 5px 7px; }
.sync-ok { color: #168058; background: #e5f7ef; }.sync-warn { color: #c27725; background: #fff3df; }
.activity-panel { padding-bottom: 10px; }
.activity-heading { gap: 18px; }
.admin-user-filter { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.admin-user-filter input {
  width: 200px; height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px;
  color: #40516b; background: #fff; font-size: 9px; outline: none;
}
.admin-user-filter input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,255,.08); }
.admin-user-filter button {
  height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px;
  color: var(--blue); background: white; font-size: 9px; font-weight: 800;
}
.activity-table { margin-top: 14px; }
.activity-table__row { display: grid; grid-template-columns: 24px minmax(170px,1.5fr) 92px 108px 1fr 78px 68px; align-items: center; gap: 9px; border-top: 1px solid #edf1f5; padding: 11px 4px; font-size: 9px; color: #77859a; }
.activity-table__row > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.activity-table__row b { color: var(--ink); font-size: 10px; }
.activity-table__row small { color: #96a2b2; font-size: 8px; }
.activity-table__head { color: #9ba6b6; text-transform: uppercase; letter-spacing: .08em; font-size: 7px; padding-top: 7px; }
.activity-table input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--blue); }
.user-filter-link, .ip-filter-link, .fingerprint-filter-link { max-width: 100%; padding: 4px 6px; border: 0; border-radius: 6px; color: var(--blue); background: #edf4ff; font-size: 8px; font-family: ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-filter-link { color: #53627a; background: #f0f3f7; }
.fingerprint-filter-link { display: block; margin-top: 3px; color: #7254c8; background: #f1edff; }
.delete-report { padding: 6px 8px; border: 1px solid #f0cbc8; border-radius: 7px; color: #c94c46; background: #fff7f6; font-size: 8px; font-weight: 800; }
.delete-report:hover { background: #ffebe9; }
.delete-report:disabled { opacity: .55; }
.mini-chips { display: flex !important; flex-direction: row !important; gap: 5px !important; }
.mini-chips i { font-style: normal; font-size: 8px; border-radius: 6px; padding: 4px 6px; }
.mini-chip--yes { color: #0e8157; background: #e6f7ef; }.mini-chip--no { color: #c8514c; background: #fff0ef; }.mini-chip--unknown { color: #78869a; background: #edf1f6; }
.selection-toolbar {
  margin-top: 12px; padding: 9px 11px; display: flex; align-items: center; justify-content: space-between;
  border: 1px solid #cfe0fa; border-radius: 10px; color: #40516b; background: #f3f7ff; font-size: 9px;
}
.selection-toolbar[hidden] { display: none; }
.selection-toolbar small { margin-left: 4px; color: #7185a3; font-size: 8px; }
.delete-selected { border: 0; border-radius: 8px; padding: 7px 9px; color: white; background: var(--red); font-size: 8px; font-weight: 800; }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 2px 4px; color: #8592a5; font-size: 9px; }
.admin-pagination > div { display: flex; gap: 5px; }
.admin-pagination button { min-width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 8px; color: #526179; background: white; font-size: 9px; font-weight: 800; }
.admin-pagination button.active { border-color: var(--blue); color: white; background: var(--blue); }
.admin-pagination button:disabled { opacity: .4; }
.feedback-panel { margin-top: 18px; }
.feedback-panel__actions { display: flex; align-items: center; gap: 10px; }
.feedback-panel__actions label { display: flex; align-items: center; gap: 5px; color: #7c899c; font-size: 8px; font-weight: 700; }
.feedback-panel input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--blue); }
.feedback-admin-list { display: grid; gap: 9px; margin-top: 14px; }
.feedback-admin-item { padding: 13px; border: 1px solid #e6ebf2; border-radius: 11px; background: #fbfcff; }
.feedback-admin-item__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.feedback-admin-item time { margin-right: auto; color: #8c98aa; font-size: 8px; }
.feedback-kind { padding: 4px 6px; border-radius: 7px; color: #65738a; background: #edf1f6; font-size: 7px; font-weight: 900; }
.feedback-kind--store_inaccuracy { color: #9b6418; background: #fff2d8; }
.feedback-kind--store_missing { color: #b7433e; background: #ffebe9; }
.feedback-store-context {
  display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; margin-top: 10px; padding: 9px 10px;
  border: 1px solid #dfe7f2; border-radius: 9px; color: #66758b; background: #f4f7fb;
}
.feedback-store-context b { color: #32445f; font-size: 9px; }
.feedback-store-context span { grid-column: 1; font-size: 8px; }
.feedback-store-context em { grid-column: 1; color: #9b6418; font-size: 8px; font-style: normal; }
.feedback-store-context code { grid-column: 2; grid-row: 1 / span 3; align-self: center; color: #7d8a9d; font-size: 7px; }
.feedback-store-context__actions {
  display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 7px; margin-top: 5px;
}
.feedback-store-context__actions a {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border: 1px solid #c9d9ee;
  border-radius: 8px; color: #1768c4; background: #fff; font-size: 8px; font-weight: 800;
  text-decoration: none;
}
.feedback-store-context__actions a:hover { border-color: #7eaee4; background: #edf5ff; }
.feedback-admin-item p { margin: 9px 0 5px; color: #41516a; font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
.feedback-admin-item > small { color: #7d8a9d; font-size: 8px; }
.delete-feedback { padding: 5px 7px; border: 1px solid #f0cbc8; border-radius: 7px; color: #c94c46; background: #fff7f6; font-size: 8px; font-weight: 800; }
.delete-feedback:hover { background: #ffebe9; }
.antispam-panel { margin-bottom: 15px; }
.antispam-mode { text-transform: uppercase; letter-spacing: .08em; }
.antispam-mode--shadow { color: #8a641c; background: #fff7dc; }
.antispam-mode--mark { color: #7447a8; background: #f4eaff; }
.antispam-mode--enforce { color: #b43d38; background: #ffebe9; }
.antispam-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.antispam-metrics > div { display: grid; gap: 2px; padding: 12px; border: 1px solid #e6ebf2; border-radius: 11px; background: #fbfcff; }
.antispam-metrics strong { color: #20334f; font-size: 18px; }
.antispam-metrics span { color: #7e8b9e; font-size: 8px; }
.antispam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.antispam-campaigns { margin: 4px 0 18px; }
.antispam-item--campaign { grid-template-columns: minmax(220px, 1fr) auto auto; background: #fffdf8; border-color: #eee2c6; }
.antispam-grid h3 { margin: 3px 0 9px; color: #526179; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.antispam-list { display: grid; gap: 7px; }
.antispam-item { display: grid; grid-template-columns: minmax(120px, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid #e7ebf2; border-radius: 10px; }
.antispam-item > div:first-child { display: grid; gap: 2px; }
.antispam-item b { color: #293c59; font-size: 9px; }
.antispam-item small, .antispam-item > span { color: #8490a2; font-size: 8px; }
.antispam-item code { color: #66758b; font-size: 8px; }
.antispam-item__actions { display: flex; gap: 5px; }
.antispam-item__actions button { padding: 5px 7px; border: 1px solid #dce4ef; border-radius: 7px; background: white; color: #526179; font-size: 7px; font-weight: 800; }
.antispam-item__actions button.danger { border-color: #f0cbc8; color: #c94c46; background: #fff7f6; }
.risk-chip { display: inline-flex; align-items: center; min-height: 16px; padding: 2px 5px; border-radius: 999px; color: #b43d38; background: #ffebe9; font-size: 7px; font-style: normal; font-weight: 800; white-space: nowrap; }
.activity-empty { padding: 30px; text-align: center; color: #9aa6b7; font-size: 10px; }
.fatal { min-height: 100vh; display: grid; place-content: center; gap: 8px; text-align: center; color: #71809a; }.fatal b { color: var(--ink); font-size: 20px; }

/* Admin data stays compact, but no longer relies on hard-to-read 7–10px text. */
.status-online, .admin-logout { font-size: 12px; }
.admin-logout { min-height: 40px; padding: 9px 14px; }
.admin-login p, .admin-heading p { font-size: 13px; }
.admin-login label, .form-error { font-size: 12px; }
.admin-login input { height: 50px; font-size: 14px; }
.admin-actions select, .refresh-osm { height: 42px; font-size: 12px; }
.metric-card > span { font-size: 12px; }
.metric-card small, .panel__head p, .panel-badge { font-size: 11px; }
.panel__head h2 { font-size: 17px; }
.chart__column span { font-size: 10px; }
.chart__column small { font-size: 9px; }
.chart-empty, .sync-info b { font-size: 12px; }
.coverage-number span, .sync-info small, .sync-ok, .sync-warn { font-size: 10px; }
.admin-user-filter input, .admin-user-filter button {
  min-height: 40px; font-size: 11px;
}
.activity-table__row { padding-top: 14px; padding-bottom: 14px; font-size: 11px; }
.activity-table__row b { font-size: 12px; }
.activity-table__row small, .user-filter-link, .ip-filter-link, .fingerprint-filter-link,
.delete-report, .mini-chips i { font-size: 10px; }
.activity-table__head { font-size: 9px; }
.activity-table input[type="checkbox"], .feedback-panel input[type="checkbox"] { width: 18px; height: 18px; }
.delete-report, .delete-feedback { min-height: 32px; padding: 7px 9px; }
.selection-toolbar, .admin-pagination { font-size: 11px; }
.selection-toolbar small, .delete-selected, .feedback-panel__actions label { font-size: 10px; }
.delete-selected { min-height: 34px; padding: 8px 11px; }
.admin-pagination button { min-width: 34px; height: 34px; font-size: 11px; }
.feedback-admin-item { padding: 16px; }
.feedback-admin-item time, .feedback-store-context span, .feedback-store-context em,
.feedback-admin-item > small, .delete-feedback { font-size: 10px; }
.feedback-kind, .feedback-store-context code { font-size: 9px; }
.feedback-store-context b { font-size: 11px; }
.feedback-store-context__actions a { min-height: 32px; font-size: 10px; }
.feedback-admin-item p { font-size: 12px; }
.antispam-metrics span, .antispam-item small, .antispam-item > span,
.antispam-item code { font-size: 10px; }
.antispam-grid h3, .antispam-item b { font-size: 11px; }
.antispam-item__actions button, .risk-chip { min-height: 28px; font-size: 9px; }
.activity-empty { font-size: 12px; }

@media (max-width: 980px) {
  .map-layout { grid-template-columns: minmax(340px, 46%) 1fr; }
  .sidebar__intro { padding: 26px 24px 18px; }
  .search-box { margin-left: 24px; margin-right: 24px; }
  .list-toolbar { padding-left: 24px; padding-right: 24px; }
  .store-list { padding-left: 24px; padding-right: 16px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { overflow: hidden; }
  .site-shell { height: 100dvh; min-height: 100dvh; }
  .topbar { height: 64px; flex-basis: 64px; padding: 0 10px; gap: 8px; }
  .brand__drop { width: 34px; height: 38px; }
  .brand { gap: 8px; font-size: 17px; }
  .brand small { font-size: 10px; }
  .city-pill { border: 0; padding: 0; margin-left: auto; gap: 5px; font-size: 13px; }
  .topbar-actions { margin-left: 0; gap: 5px; }
  .utility-button {
    flex: 0 0 40px; width: 40px; height: 40px; justify-content: center; padding: 0;
    border-color: #d9e3ef; border-radius: 50%; color: var(--blue); background: #eef4ff;
  }
  .utility-button .utility-icon {
    position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: 0;
    transform: translate(-50%, -50%);
  }
  .utility-button span { display: none; }
  .install-nudge { right: 12px; bottom: 82px; left: 12px; width: auto; }
  .map-layout { position: relative; display: block; height: calc(100dvh - 64px); min-height: 0; }
  .map-stage { position: absolute; inset: 0; height: auto; }
  .sidebar {
    position: absolute; z-index: 460; top: 10px; left: 10px; right: 10px; min-height: 0; margin: 0;
    border: 0; background: transparent; box-shadow: none; pointer-events: none;
  }
  .sidebar__intro { display: none; }
  .search-box { margin: 0; pointer-events: auto; }
  .search-box input {
    height: 56px; border-radius: 15px; box-shadow: 0 10px 28px rgba(28,53,91,.16);
    font-size: 16px; touch-action: manipulation;
  }
  .search-box button { top: 7px; }
  .icon-search { top: 19px; }
  .search-results {
    max-height: 48dvh; margin-top: 8px; padding-top: 11px; border: 1px solid #dce5f0; border-radius: 15px;
    background: rgba(248,250,255,.97); box-shadow: 0 14px 35px rgba(28,53,91,.18); pointer-events: auto;
  }
  .list-toolbar { padding: 0 13px 9px; }
  .store-list { max-height: calc(48dvh - 36px); padding: 0 8px 8px; }
  .store-card { margin-bottom: 9px; padding: 17px; }
  .store-card h3 { font-size: 18px; }
  .store-card p { font-size: 14px; }
  .water-chip { padding: 8px 9px; }
  .freshness, .text-action { font-size: 13px; }
  .map-legend {
    top: auto; right: 62px; bottom: 13px; left: 8px; display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px 8px;
  }
  .map-legend span { justify-content: center; gap: 5px; font-size: 11px; white-space: nowrap; }
  .map-filter { top: 78px; left: 12px; }
  .map-filter button { min-width: 44px; height: 38px; font-size: 12px; }
  .floating-locate { top: 78px; right: 12px; width: 50px; height: 50px; }
  .map-counter { display: none; }
  .modal { padding: 30px 22px; border-radius: 24px; }
  .modal h2 { font-size: 29px; }
  .modal > p { font-size: 15px; }
  .modal__eyebrow { font-size: 12px; }
  .choice-row { grid-template-columns: 42px 1fr auto; gap: 8px; }
  .segmented button { padding: 8px 9px; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: 92dvh; border-radius: 26px 26px 0 0; }
  .store-detail__actions { grid-template-columns: 1fr; }
  .store-confidence {
    display: flex; align-items: center; justify-content: center;
  }
  .store-confidence > div {
    min-width: 0; flex-direction: row; align-items: center; justify-content: center;
    gap: 8px; text-align: center; white-space: nowrap;
  }
  .store-confidence span { font-size: 14px; white-space: nowrap; }
  .store-confidence strong { min-height: 0; font-size: 21px; white-space: nowrap; }
  .store-confidence strong.store-confidence__value--pending { font-size: 18px; letter-spacing: 0; }
  .store-confidence-help button { font-size: 10px; }
  .store-detail__feedback-actions { justify-content: flex-start; flex-wrap: wrap; gap: 10px 16px; }
  .history-list { max-height: 28dvh; }
  .admin-shell { height: 100dvh; overflow-y: auto; }
  .admin-page { width: calc(100% - 28px); padding-top: 25px; }
  .admin-heading { align-items: flex-start; gap: 18px; flex-direction: column; }
  .admin-actions { width: 100%; }
  .admin-actions > * { flex: 1; }
  .activity-heading { flex-direction: column; }
  .admin-user-filter { width: 100%; flex-wrap: wrap; }
  .admin-user-filter input { width: 100%; }
  .activity-table { overflow-x: auto; }
  .activity-table__row { min-width: 840px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { min-height: 115px; padding: 15px; }
  .admin-topbar { padding: 0 16px; }
  .status-online { display: none; }
}

@media (max-width: 430px) {
  .city-pill { display: none; }
  .topbar-actions { margin-left: auto; }
  .metric-grid { grid-template-columns: 1fr; }
  .admin-actions { flex-direction: column; }
  .antispam-metrics { grid-template-columns: 1fr 1fr; }
  .antispam-grid { grid-template-columns: 1fr; }
  .antispam-item { grid-template-columns: 1fr; align-items: start; }
}
