:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #fff;
  --ink: #1b2634;
  --muted: #566575;
  --line: #dce2e8;
  --accent: #185ec5;
  --accent-soft: #edf3ff;
  --success: #187447;
  --danger: #a74039;
  --unknown: #687583;
  --focus: #b36c00;
  --shadow: 0 8px 24px #152d451a;
}
[data-mode="public"] .preview-label { display: none; }
[data-demo="true"] h1 small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 3px; }
[data-demo="true"] #detail-product { display: none !important; }
@media (max-width: 600px) { [data-demo="true"] .brand span { display: none; } }
#my-alerts { margin-left: auto; }
#watch-store { margin-top: 12px; width: 100%; }
#watch-dialog { width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 24px; background: var(--surface); color: var(--ink); }
#watch-dialog h2 { padding-right: 36px; font-size: 22px; }
#watch-dialog h3 { font-size: 17px; }
#watch-dialog p, #watch-dialog strong { overflow-wrap: anywhere; }
.dialog-close { position: absolute; right: 12px; top: 12px; }
.watch-kind { border: 0; padding: 0; margin: 20px 0; }
.watch-kind label { display: flex; gap: 8px; align-items: start; padding: 8px 0; }
.watch-kind input[type="radio"] { flex: 0 0 18px; width: 18px; height: 18px; padding: 0; margin: 2px 0 0; accent-color: var(--accent); }
#watch-set-picker input, #watch-set-picker select { width: 100%; margin: 6px 0 14px; }
.watch-row { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 14px 0; }
.watch-row > div { flex: 1; min-width: 0; }
.watch-row p { margin: 4px 0; }
@media (max-width: 600px) {
  #my-alerts { width: 38px; min-width: 38px; padding: 8px; }
  #my-alerts span { display: none; }
  #watch-dialog { padding: 20px; }
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
body.dark {
  color-scheme: dark;
  --bg: #171b21;
  --surface: #20262d;
  --ink: #f1f4f8;
  --muted: #b4beca;
  --line: #3b4551;
  --accent: #95beff;
  --accent-soft: #2a3950;
  --success: #82d2a5;
  --danger: #f59b8d;
  --unknown: #adbac7;
  --focus: #f0c463;
  --shadow: 0 8px 24px #0004;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button {
  border: 0;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
input,
select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  width: 100%;
  height: 42px;
  padding: 0 12px;
}
input::placeholder {
  color: var(--muted);
  opacity: 1;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--accent);
}
input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}
h1,
h2,
p {
  margin: 0;
}
svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke-width: 1.8;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  top: -60px;
  left: 12px;
  background: var(--surface);
  padding: 12px;
  z-index: 5000;
}
.skip:focus {
  top: 8px;
}
.app-header {
  height: 72px;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 0 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
}
.brand img {
  object-fit: contain;
}
.brand:hover {
  text-decoration: none;
}
.header-divider {
  height: 26px;
  width: 1px;
  background: var(--line);
}
h1 {
  font-size: 20px;
  font-weight: 650;
}
.preview-label {
  margin-left: auto;
  color: var(--muted);
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
}
.preview-dot {
  background: #b07b16;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.icon-button {
  height: 38px;
  width: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--ink);
}
.icon-button:hover {
  background: var(--bg);
}
.workspace {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  height: calc(100dvh - 72px);
  min-height: 570px;
}
.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--line);
  z-index: 500;
}
.sidebar > :not(.store-list) {
  flex-shrink: 0;
}
.selection {
  padding: 22px 22px 14px;
  border-bottom: 1px solid var(--line);
}
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}
.section-title h2 {
  font-size: 18px;
}
.quiet-label {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  white-space: nowrap;
}
.quiet-label svg {
  width: 14px;
}
.selection > label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 7px;
}
.chain-picker {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  min-width: 0;
}
.chain-picker legend {
  padding: 0;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 650;
}
.chain-picker label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  cursor: pointer;
}
.chain-picker input {
  flex: 0 0 17px;
}
.chain-all {
  font-weight: 650;
}
.chain-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 6px;
}
.chain-options label {
  min-width: 0;
  min-height: 48px;
  padding: 7px;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  transition: background-color .15s, border-color .15s;
}
.chain-options label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.chain-options label:hover { background: var(--bg); }
.chain-name { min-width: 0; }
.store-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 3px;
  background: #fff;
  border: 1px solid #e0e3e6;
  border-radius: 6px;
  overflow: hidden;
  color: #33404b;
}
.store-logo img { width: 100%; height: 100%; object-fit: contain; }
.chain-options .store-logo { width: 28px; height: 28px; flex-basis: 28px; padding: 1px; border-radius: 4px; }
.chain-options span {
  overflow-wrap: anywhere;
}
.input-icon {
  position: relative;
}
.input-icon > svg {
  position: absolute;
  top: 12px;
  left: 12px;
  pointer-events: none;
  color: var(--muted);
}
.input-icon input {
  padding-left: 38px;
}
.product-picker {
  position: relative;
}
.suggestions {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
#product-options {
  max-height: 300px;
  overflow: auto;
  overscroll-behavior: contain;
}
.suggestion {
  width: 100%;
  display: flex;
  text-align: left;
  gap: 10px;
  align-items: center;
  background: var(--surface);
  padding: 10px;
  border-bottom: 1px solid var(--line);
  min-height: 62px;
  line-height: 1.4;
}
.suggestion:hover,
.suggestion[aria-selected="true"] {
  background: var(--accent-soft);
}
.suggestion img {
  width: 32px;
  height: 42px;
  object-fit: contain;
  background: white;
  border-radius: 4px;
  flex: none;
}
.suggestion span {
  overflow-wrap: anywhere;
}
.suggestion small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.suggestion-count {
  color: var(--muted);
  font-size: 11px;
  padding: 8px 10px;
  background: var(--bg);
}
.chosen-product {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
}
.chosen-product img {
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  flex: none;
}
.chosen-product > div {
  min-width: 0;
  flex: 1;
}
.chosen-product strong {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.chosen-product span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.chosen-product .icon-button {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border: 0;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}
.primary {
  background: #185ec5;
  color: white;
  border: 1px solid #185ec5;
}
.primary:hover {
  background: #124eab;
  text-decoration: none;
}
.secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}
.secondary:hover {
  background: var(--bg);
  text-decoration: none;
}
#check-stock,
#scan-area {
  width: 100%;
  margin-top: 12px;
}
#check-stock[aria-busy="true"] svg,
#scan-area[aria-busy="true"] svg {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.source-status {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 10px;
  min-height: 17px;
}
.source-status.error {
  color: var(--danger);
}
.store-filters {
  padding: 14px 22px 12px;
  border-bottom: 1px solid var(--line);
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  min-height: 30px;
  gap: 8px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
}
.text-button {
  background: none;
  color: var(--accent);
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 34px;
  font-size: 12px;
  padding: 2px;
}
.location-status {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.list-heading {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px 8px;
}
.list-heading h2 {
  font-size: 12px;
  font-weight: 650;
}
.list-heading h2 span {
  font-weight: 450;
  color: var(--muted);
  margin-left: 4px;
}
#stock-count {
  font-size: 11px;
  color: var(--success);
}
.store-list {
  flex: 1;
  min-height: 240px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 10px 12px;
}
.store-row {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 74px;
  background: var(--surface);
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  border-radius: 0;
}
.store-row:hover,
.store-row[aria-pressed="true"] {
  background: var(--accent-soft);
}
.store-row[aria-pressed="true"] { box-shadow: inset 3px 0 var(--accent); }
.store-row > svg { width: 16px; color: var(--muted); }
.history-heading {
  margin: 0;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.store-row > div {
  min-width: 0;
  flex: 1;
}
.store-row strong {
  font-size: 13px;
  line-height: 1.5;
  display: block;
  overflow-wrap: anywhere;
}
.store-row .address {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 3px;
  display: block;
}
.store-row .stock {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  margin-top: 6px;
}
.stock.yes {
  color: var(--success);
}
.stock.no {
  color: var(--danger);
}
.stock.unknown {
  color: var(--muted);
}
.branch-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  width: 34px;
  height: 38px;
  border-radius: 6px;
  flex: none;
}
.distance {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.empty {
  padding: 28px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.sidebar-footer {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  display: flex;
  gap: 8px;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.sidebar-footer svg {
  width: 14px;
  height: 16px;
}
.privacy-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.privacy-toolbar .check-label {
  font-size: inherit;
}
.privacy-toolbar a {
  text-decoration: underline;
}
#clear-location {
  margin-top: 8px;
}
.map-choice {
  position: absolute;
  z-index: 440;
  right: 20px;
  bottom: 86px;
  width: 300px;
  max-width: calc(100% - 40px);
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.map-choice > svg {
  color: var(--accent);
  margin-bottom: 8px;
}
.map-choice h2 {
  font-size: 17px;
}
.map-choice p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 0 14px;
}
.map-panel:has(.store-detail:not([hidden])) .map-choice {
  display: none;
}
dialog {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 490px;
  max-width: calc(100% - 24px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 24px;
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #10172299;
}
dialog h2 {
  font-size: 21px;
  line-height: 1.3;
}
dialog p {
  margin: 14px 0;
  line-height: 1.6;
}
#permission-detail {
  color: var(--muted);
  font-size: 13px;
}
dialog a {
  display: inline-block;
  margin-top: 14px;
  text-decoration: underline;
}
dialog .check-label {
  white-space: normal;
  align-items: start;
}
dialog input[type="checkbox"] {
  flex: 0 0 17px;
  margin-top: 2px;
}
.permission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.permission-actions button {
  flex: 1 1 170px;
  min-height: 44px;
  white-space: normal;
}
.privacy-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  font-size: 15px;
  line-height: 1.7;
}
.privacy-page h1 {
  font-size: 28px;
  margin: 24px 0 12px;
}
.privacy-page h2 {
  font-size: 20px;
  margin: 28px 0 10px;
}
.privacy-page p {
  margin: 12px 0;
}
.privacy-page a {
  overflow-wrap: anywhere;
  text-decoration: underline;
}
.map-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  isolation: isolate;
  overflow: hidden;
}
#map {
  z-index: 0;
  height: 100%;
  width: 100%;
  background: #e5ebed;
}
body.dark #map { background: #171b21; }
.map-toolbar {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 450;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
#map-caption {
  font-size: 12px;
  max-width: 240px;
  overflow-wrap: anywhere;
}
.map-toolbar .icon-button {
  border: 0;
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}
.legend {
  position: absolute;
  bottom: 32px;
  left: 20px;
  z-index: 440;
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  font-size: 11px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  flex: none;
}
.dot.yes {
  background: var(--success);
}
.dot.no {
  background: var(--danger);
}
.dot.unknown {
  background: var(--unknown);
}
.map-error {
  position: absolute;
  top: 84px;
  left: 20px;
  right: 20px;
  padding: 12px;
  background: var(--surface);
  color: var(--danger);
  border: 1px solid var(--line);
  z-index: 450;
  font-size: 12px;
  max-width: 440px;
  line-height: 1.5;
  border-radius: 6px;
}
.leaflet-control-zoom {
  border: 1px solid #c8d1d8 !important;
  box-shadow: var(--shadow) !important;
  margin: 20px !important;
}
.leaflet-control-zoom a {
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
}
.leaflet-control-attribution {
  background: #fffffff2 !important;
  color: #333 !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a {
  color: #175390 !important;
}
.map-pin {
  display: flex;
  position: relative;
  width: 40px;
  height: 40px;
  border: 2px solid white;
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 5px #172a4455;
}
.map-pin .store-logo { width: 36px; height: 36px; flex-basis: 36px; border: 0; }
.map-pin > .dot { position: absolute; right: -4px; bottom: -4px; width: 13px; height: 13px; border: 2px solid white; }
.map-pin > .dot.yes { background: #187447; }
.map-pin > .dot.no { background: #a74039; }
.map-pin > .dot.unknown { background: #687583; }
.map-pin.active {
  outline: 3px solid #185ec5;
  outline-offset: 3px;
}
.map-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 3px solid white;
  border-radius: 50%;
  background: #354d68;
  color: #fff;
  box-shadow: 0 1px 6px #12284444;
  font-size: 12px;
  font-weight: 650;
}
.map-cluster.positive {
  background: #187447;
}
.store-detail {
  position: absolute;
  z-index: 470;
  bottom: 86px;
  left: 20px;
  width: 340px;
  max-width: calc(100% - 40px);
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.store-detail > .icon-button {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border: 0;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-right: 34px;
  margin-bottom: 8px;
}
.store-detail h2 {
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  padding-right: 16px;
}
.detail-brand-row { display: flex; align-items: center; gap: 12px; margin: 0 30px 12px 0; }
.detail-brand-row .eyebrow { margin: 0; }
.overview-products { max-height: 170px; overflow-y: auto; margin-top: 12px; border-top: 1px solid var(--line); }
.overview-product { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; width: 100%; min-height: 44px; color: var(--accent); background: transparent; text-align: left; font-size: 12px; line-height: 1.5; border-bottom: 1px solid var(--line); }
.store-detail p {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 7px;
  color: var(--muted);
}
.store-detail .detail-state {
  font-weight: 650;
  color: var(--ink);
  margin-top: 14px;
}
.store-detail .detail-time {
  font-size: 11px;
}
.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.detail-links a {
  flex: 1;
  font-size: 12px;
  white-space: nowrap;
}
.mobile-view {
  display: none;
}
.leaflet-tooltip {
  font-family: inherit;
  font-size: 12px;
  max-width: 240px;
  white-space: normal;
}
@media (min-width: 1500px) {
  .workspace {
    grid-template-columns: 400px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .map-panel:has(.store-detail:not([hidden])) .map-toolbar,
  .map-panel:has(.store-detail:not([hidden])) .leaflet-control-zoom {
    visibility: hidden;
  }
  .app-header {
    height: 60px;
    padding: 0 14px;
    gap: 12px;
  }
  .brand {
    font-size: 14px;
    gap: 6px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .header-divider {
    display: none;
  }
  h1 {
    font-size: 15px;
  }
  .preview-label {
    font-size: 10px;
    gap: 4px;
  }
  .desktop-only {
    display: none;
  }
  .app-header .icon-button {
    height: 32px;
    width: 32px;
    flex-basis: 32px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 60px);
    min-height: 680px;
    position: relative;
  }
  .sidebar {
    border: 0;
    flex: 1;
    overflow: hidden;
  }
  .workspace[data-view="list"] {
    height: auto;
    min-height: calc(100dvh - 60px);
  }
  .workspace[data-view="list"] .sidebar {
    overflow: visible;
  }
  .workspace[data-view="list"] .store-list {
    flex: 1 0 auto;
    min-height: 240px;
    max-height: 60dvh;
  }
  .selection {
    padding: 16px 16px 10px;
  }
  .section-title {
    margin-bottom: 12px;
  }
  .section-title h2 {
    font-size: 16px;
  }
  .selection > label {
    font-size: 11px;
  }
  .chain-picker label {
    min-height: 44px;
  }
  .source-status {
    font-size: 11px;
  }
  .chosen-product {
    margin: 10px 0;
  }
  .chosen-product img {
    height: 46px;
    width: 38px;
  }
  .chosen-product strong {
    font-size: 12px;
  }
  .store-filters {
    padding: 12px 16px 10px;
  }
  .list-heading {
    padding: 10px 16px 4px;
  }
  .sidebar-footer {
    padding: 10px 16px;
    font-size: 10px;
  }
  .mobile-view {
    display: flex;
    gap: 4px;
    background: var(--bg);
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-top: 9px;
  }
  .mobile-view button {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    flex: 1;
    height: 34px;
    background: none;
    border-radius: 4px;
    color: var(--muted);
    font-size: 12px;
  }
  .mobile-view button[aria-pressed="true"] {
    background: var(--surface);
    color: var(--accent);
    box-shadow: 0 1px 3px #0002;
  }
  .map-panel {
    display: none;
  }
  .workspace[data-view="map"] .sidebar {
    flex: 0 0 auto;
    overflow: visible;
  }
  .workspace[data-view="map"] .store-list,
  .workspace[data-view="map"] .list-heading,
  .workspace[data-view="map"] .sidebar-footer {
    display: none;
  }
  .workspace[data-view="map"] .map-panel {
    display: block;
    flex: 1;
    min-height: 330px;
  }
  .map-toolbar {
    left: 12px;
    top: 12px;
  }
  .leaflet-control-zoom {
    margin: 12px !important;
  }
  .legend {
    left: 12px;
    bottom: 28px;
    gap: 12px;
    padding: 8px 10px;
    font-size: 10px;
  }
  .store-detail {
    left: 12px;
    bottom: 70px;
    max-width: calc(100% - 24px);
    padding: 16px;
    max-height: calc(100% - 85px);
    overflow: auto;
  }
  .store-detail h2 {
    font-size: 16px;
  }
  .store-detail .detail-time {
    font-size: 10px;
  }
  .detail-links {
    margin-top: 10px;
  }
  .map-error {
    top: 64px;
    left: 12px;
    right: 12px;
  }
  .suggestions {
    z-index: 1500;
  }
  #product-options {
    max-height: 240px;
  }
}
@media (max-width: 370px) {
  .app-header {
    gap: 8px;
    padding: 0 10px;
  }
  .brand span {
    display: none;
  }
  .preview-label {
    font-size: 9px;
  }
  h1 {
    font-size: 14px;
  }
  .section-title {
    gap: 4px;
  }
  .quiet-label {
    font-size: 10px;
  }
  .legend {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
