/* Queue board: red, cream paper, yellow CTA. */
@charset "UTF-8";

:root {
  --brand-red: #b81c22;
  --brand-red-deep: #a9151a;
  --brand-blush: #fdf0f1;
  --brand-yellow: #f5ba24;
  --brand-yellow-rim: #f5cb49;
  --ink: #333333;
  --ink-soft: #555555;
  --muted: #707070;
  --canvas: #f7f4ef;
  --paper: #ffffff;
  --paper-warm: #fffaf6;
  --line: #e5e5e5;
  --lacquer: #b81c22;
  --lacquer-soft: #8e1419;
  --accent: #b81c22;
  --accent-deep: #a9151a;
  --shadow: 0 8px 16px -2px rgba(10, 10, 10, .10), 0 0 0 1px rgba(10, 10, 10, .02);
  --green: #2f8a4e;
  --blue: #2f6fb3;
  --yellow: #d39a12;
  --orange: #d2651c;
  --red: #b81c22;
  --grey: #8a8a8a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { background: var(--canvas); }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: "Noto Serif TC", "Noto Serif", Georgia, serif; font-weight: 700; }

.site-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 36px;
}

.board-header {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 4px solid var(--brand-red);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand-red);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong {
  color: var(--brand-red);
  font-family: "Noto Serif TC", serif;
  font-size: 24px;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: none;
}
.board-actions { display: flex; align-items: center; gap: 12px; }
.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.live-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(184, 28, 34, .14);
}
.refresh-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  color: #333;
  background: var(--brand-yellow);
  border: 3px solid #333;
  border-radius: 42px;
  box-shadow: inset 0 0 0 2px var(--brand-yellow-rim);
  font-size: 13px;
  font-weight: 800;
  transition: transform .16s ease, background .16s ease;
}
.refresh-button svg,
.icon-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.refresh-button:hover,
.refresh-button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  background: #ffd24a;
  transform: translateY(-1px);
}
.refresh-button.is-spinning svg,
.icon-button.is-spinning svg { animation: spin .65s ease; }
@keyframes spin { to { transform: rotate(360deg); } }

.conveyor {
  overflow: hidden;
  height: 34px;
  margin: 10px 0 4px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, #ece7df 0 18px, #e4ddd3 18px 36px),
    linear-gradient(#d9d1c6, #cfc6ba);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.06);
}
.conveyor-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: sushi-scroll 28s linear infinite;
  will-change: transform;
}
.conveyor-loop {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 14px;
  height: 100%;
}
.plate {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff 0 28%, #f3f3f3 29% 62%, #ddd 63%);
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
  position: relative;
}
.plate::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
}
.plate--tuna::after { background: #b81c22; }
.plate--salmon::after { background: #ef7a4a; }
.plate--egg::after { background: #f5ba24; }
.plate--shrimp::after { background: #f2b8a4; }
@keyframes sushi-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.toolbar {
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 22px;
  padding: 8px 0;
  color: var(--ink);
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.view-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: var(--brand-blush);
  border-radius: 999px;
}
.view-button {
  border: 0;
  padding: 7px 14px;
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.view-button:hover,
.view-button.is-active {
  color: #fff;
  background: var(--brand-red);
}
.toolbar-divider {
  width: 1px;
  height: 23px;
  background: var(--line);
}
.region-filters { display: flex; align-items: center; gap: 5px; }
.region-filter {
  border: 1px solid transparent;
  padding: 6px 10px;
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
  font-size: 12px;
}
.region-filter span { margin-left: 4px; color: #9a9a9a; font-size: 10px; }
.region-filter:hover,
.region-filter.is-active {
  color: var(--brand-red);
  border-color: #f0c9cb;
  background: var(--brand-blush);
}
.region-filter.is-active span { color: var(--brand-red); }
.search-box {
  min-width: 175px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 0 8px;
  border-bottom: 1px solid #ccc;
}
.search-box > span { color: var(--brand-red); }
.search-box svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}
.search-box input {
  width: 100%;
  padding: 7px 0;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}
.search-box input::placeholder { color: #969a93; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: start;
}
.list-view { min-height: 200px; }
.region-block { margin-bottom: 36px; animation: rise-in .4s both; }
.region-block__header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.region-block__header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 29px;
  letter-spacing: -.04em;
  line-height: 1.1;
}
.region-block__header span { color: var(--muted); font-size: 11px; }
.region-block__header::before {
  content: "";
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
  background: var(--brand-red);
}
.region-block__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.store-card {
  position: relative;
  overflow: hidden;
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.store-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--status-color, var(--brand-red));
}
.store-card:hover,
.store-card.is-selected {
  border-color: rgba(184, 28, 34, .55);
  box-shadow: 0 10px 22px rgba(184, 28, 34, .12);
  transform: translateY(-1px);
}
.store-card__button {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px 11px 9px 14px;
  color: inherit;
  text-align: left;
  border: 0;
  background: transparent;
}
.store-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 0;
}
.store-card__region { display: none; }
.store-card__badge {
  width: 8px;
  max-width: 8px;
  flex: 0 0 8px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  color: var(--status-color);
  font-size: 0;
}
.store-card__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--status-color);
}
.store-card h4 {
  min-width: 0;
  flex: 1;
  margin: 0;
  overflow: hidden;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-card__metrics,
.store-card__summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.store-card__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.store-card__tickets,
.store-card__wait {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}
.store-card__tickets { color: var(--ink); }
.store-card__wait { color: var(--status-color); }
.store-card__tickets strong,
.store-card__wait strong {
  font-family: "Noto Serif TC", serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.07em;
  line-height: 1;
}
.store-card__tickets small,
.store-card__wait small {
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}
.status-direct { --status-color: var(--green); }
.status-blue { --status-color: var(--blue); }
.status-yellow { --status-color: var(--yellow); }
.status-orange { --status-color: var(--orange); }
.status-red { --status-color: var(--red); }
.status-grey { --status-color: var(--grey); }
.store-card.status-direct .store-card__tickets strong { color: var(--blue); }
.store-card.status-grey { opacity: .7; }
.store-card.status-grey h4 { color: var(--ink-soft); }

.empty-state {
  padding: 56px 25px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #f0c9cb;
  background: var(--brand-blush);
  border-radius: 14px;
}
.empty-state strong {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-red);
  font-size: 21px;
}
.empty-state--refresh {
  min-height: 150px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
}
.empty-state--refresh span { color: var(--muted); font-size: 12px; }

.sidebar { position: sticky; top: 18px; display: grid; gap: 16px; }
.ticket-card {
  padding: 22px 22px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.12), transparent 28%),
    linear-gradient(180deg, #c42329 0%, var(--brand-red) 58%, #9d151a 100%);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.ticket-card-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-label { color: var(--brand-yellow); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.privacy-tag {
  padding: 5px 7px;
  color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 7px;
  font-size: 9px;
  letter-spacing: .05em;
}
.ticket-card h2 {
  margin: 17px 0 7px;
  color: #fff;
  font-size: 30px;
  letter-spacing: -.04em;
}
.ticket-lede { margin-bottom: 20px; color: rgba(255,255,255,.78); font-size: 11px; line-height: 1.7; }
.field-label { display: block; margin: 13px 0 7px; color: rgba(255,255,255,.78); font-size: 10px; letter-spacing: .08em; }
.select-wrap { position: relative; }
.select-wrap select {
  width: 100%;
  appearance: none;
  padding: 10px 31px 10px 11px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 9px;
  outline: 0;
  background: rgba(0,0,0,.16);
  font-size: 12px;
}
.select-wrap > span { position: absolute; top: 11px; right: 11px; color: var(--brand-yellow); pointer-events: none; }
.select-wrap svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.ticket-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 9px;
  background: rgba(0,0,0,.16);
}
.ticket-input-wrap > span { padding-left: 12px; color: var(--brand-yellow); font-family: "Noto Serif TC", serif; font-size: 21px; }
.ticket-input-wrap input {
  width: 100%;
  padding: 9px 8px;
  color: #fff;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: "Noto Serif TC", serif;
  font-size: 22px;
}
.ticket-input-wrap input::-webkit-inner-spin-button { opacity: .4; }
.ticket-input-wrap button {
  width: 42px;
  height: 41px;
  display: grid;
  place-items: center;
  color: var(--brand-yellow);
  border: 0;
  background: transparent;
}
.ticket-input-wrap button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.field-help { margin: 7px 0 0; color: rgba(255,255,255,.55); font-size: 10px; }
.selected-store {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 21px;
  padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.selected-store__pulse {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand-yellow);
  box-shadow: 0 0 0 4px rgba(245, 186, 36, .22);
}
.selected-store > div { min-width: 0; display: grid; }
.selected-store__label { color: rgba(255,255,255,.6); font-size: 9px; }
.selected-store strong {
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selected-store__status { margin-left: auto; color: var(--brand-yellow); font-family: "Noto Serif TC", serif; font-size: 17px; white-space: nowrap; }
.estimate-result { padding-top: 18px; }
.estimate-result__empty { margin: 0; color: rgba(255,255,255,.7); font-size: 11px; line-height: 1.6; }
.estimate-result__label { margin: 0 0 4px; color: rgba(255,255,255,.62); font-size: 10px; letter-spacing: .08em; }
.estimate-result__main { display: flex; align-items: baseline; gap: 9px; }
.estimate-result__time {
  color: var(--brand-yellow);
  font-family: "Noto Serif TC", serif;
  font-size: 43px;
  letter-spacing: -.08em;
  line-height: 1;
}
.estimate-result__time small { margin-left: 5px; color: rgba(255,255,255,.7); font-family: "Noto Sans TC", sans-serif; font-size: 11px; letter-spacing: 0; }
.estimate-result__window { color: rgba(255,255,255,.72); font-size: 11px; }
.estimate-result__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 17px; }
.estimate-result__cell { padding: 9px 8px; background: rgba(0,0,0,.16); border-radius: 9px; }
.estimate-result__cell span { display: block; color: rgba(255,255,255,.6); font-size: 9px; }
.estimate-result__cell strong { display: block; margin-top: 4px; color: #fff; font-family: "Noto Serif TC", serif; font-size: 18px; font-weight: 700; }
.estimate-result__hint { margin: 13px 0 0; color: rgba(255,255,255,.68); font-size: 10px; line-height: 1.6; }
.estimate-result__hint strong { color: #fff; font-weight: 700; }
.estimate-result--passed .estimate-result__time { color: #ffd24a; }

.legend-card {
  padding: 21px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.legend-card-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.legend-card h2 { margin: 0; color: var(--ink); font-size: 23px; }
.legend-list { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 12px; padding-top: 17px; }
.legend-list > div { display: flex; gap: 8px; align-items: flex-start; }
.legend-list .legend-dot { margin-top: 4px; }
.legend-list span { display: grid; gap: 2px; }
.legend-list b { font-size: 10px; font-weight: 700; }
.legend-list small { color: var(--muted); font-size: 9px; }
.legend-dot { width: 9px; height: 9px; flex: 0 0 auto; display: inline-block; border-radius: 50%; }
.dot-direct { background: var(--green); }
.dot-blue { background: var(--blue); }
.dot-yellow { background: var(--yellow); }
.dot-orange { background: var(--orange); }
.dot-red { background: var(--red); }
.dot-grey { background: var(--grey); }

.map-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.map-header { display: flex; justify-content: space-between; align-items: end; padding: 21px 23px 17px; }
.map-header h2 { margin: 0; color: var(--ink); font-size: 28px; }
.map-note { margin: 0 2px 2px 0; color: var(--muted); font-size: 11px; }
.map-surface { min-height: 605px; position: relative; overflow: hidden; background: #f4e4e2; }
.map-surface::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.52), transparent 42%); }
.map-watermark {
  position: absolute;
  top: 39%;
  left: 39%;
  color: rgba(184, 28, 34, .14);
  font-family: "Noto Serif TC", serif;
  font-size: 55px;
  letter-spacing: .13em;
  line-height: .86;
  transform: rotate(-18deg);
}
.map-roads { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.map-roads path { fill: none; stroke: rgba(255,255,255,.84); stroke-width: 13; }
.map-roads path + path { stroke: rgba(184, 28, 34, .18); stroke-width: 2; }
.map-roads .map-road--bold { stroke: rgba(184, 28, 34, .42); stroke-width: 4; }
.map-label { position: absolute; color: rgba(184, 28, 34, .62); font-size: 11px; letter-spacing: .16em; }
.map-label--island { left: 12%; bottom: 17%; }
.map-label--kowloon { left: 56%; bottom: 29%; }
.map-label--nt { right: 21%; top: 13%; }
.map-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: 21px;
  height: 21px;
  padding: 0;
  border: 3px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: var(--status-color);
  box-shadow: 0 3px 9px rgba(25,37,31,.22);
  transform: translate(-50%, -50%);
  transition: transform .2s, z-index .2s;
}
.map-marker::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid var(--status-color);
  border-radius: 50%;
  opacity: .48;
  animation: ping 2.7s infinite;
}
.map-marker:hover,
.map-marker.is-selected { z-index: 4; transform: translate(-50%, -50%) scale(1.35); }
.map-marker.is-selected { box-shadow: 0 0 0 3px var(--paper), 0 3px 11px rgba(25,37,31,.3); }
.map-marker__tooltip {
  position: absolute;
  bottom: 24px;
  left: 50%;
  display: none;
  min-width: 128px;
  padding: 8px 10px;
  color: #fff;
  background: var(--brand-red);
  border-radius: 9px;
  box-shadow: 0 8px 17px rgba(25,37,31,.22);
  font-size: 10px;
  text-align: left;
  transform: translateX(-50%);
}
.map-marker__tooltip strong,
.map-marker__tooltip small { display: block; }
.map-marker__tooltip small { margin-top: 2px; color: rgba(255,255,255,.78); }
.map-marker:hover .map-marker__tooltip,
.map-marker.is-selected .map-marker__tooltip { display: block; }
@keyframes ping { 0%, 45% { opacity: .45; transform: scale(.7); } 75%, 100% { opacity: 0; transform: scale(1.35); } }
.map-compass { position: absolute; top: 21px; right: 24px; display: grid; justify-items: center; color: var(--ink-soft); font-size: 9px; }
.map-compass i { color: var(--brand-red); font-style: normal; line-height: .9; }
.map-compass svg { width: 17px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.map-legend {
  position: absolute;
  right: 19px;
  bottom: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  max-width: 300px;
  padding: 11px 12px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(184, 28, 34, .12);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 9px;
}
.map-legend span { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-soft); }
.map-legend .legend-title { width: 100%; color: var(--muted); font-weight: 700; letter-spacing: .1em; }

.data-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 26px;
  padding: 14px 16px;
  color: var(--ink-soft);
  border: 1px solid #f0c9cb;
  background: var(--brand-blush);
  border-radius: 14px;
}
.note-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  color: #fff;
  background: var(--brand-red);
  border-radius: 50%;
}
.note-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.data-note p { margin: 0; font-size: 10px; line-height: 1.65; }
.data-note strong { color: var(--brand-red); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 49px;
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .04em;
}
.toast {
  position: fixed;
  right: 28px;
  bottom: 26px;
  z-index: 30;
  padding: 11px 15px;
  color: #fff;
  background: var(--brand-red);
  border: 1px solid #8e1419;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(184, 28, 34, .42); outline-offset: 3px; }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 1050px) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; }
  .toolbar { flex-wrap: wrap; }
  .search-box { min-width: 220px; }
}

@media (max-width: 820px) {
  .site-shell { padding: 0 18px 20px; }
  .content-grid { display: block; }
  .sidebar { position: static; margin-top: 34px; }
}

@media (max-width: 590px) {
  body { font-size: 14px; }
  .site-shell { padding: 0 14px 28px; }
  .board-header { min-height: 58px; padding: 8px 0; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy small { font-size: 9px; letter-spacing: .08em; }
  .board-actions .mode-pill { display: none; }
  .refresh-button { padding: 0 12px; min-height: 34px; }
  .toolbar { min-height: 38px; gap: 8px; margin: 8px 0 16px; padding: 4px 0; }
  .view-button { padding: 5px 10px; }
  .toolbar-divider { display: none; }
  .region-filters { width: 100%; overflow-x: auto; order: 3; scrollbar-width: none; }
  .region-filters::-webkit-scrollbar { display: none; }
  .search-box { width: 100%; min-width: 0; order: 2; }
  .search-box input { padding: 5px 0; }
  .region-filter { padding: 5px 8px; }
  .region-block { margin-bottom: 34px; }
  .region-block__header h3 { font-size: 29px; }
  .region-block__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .store-card { min-height: 92px; }
  .store-card__button { padding: 9px 10px 8px 13px; }
  .store-card h4 { font-size: 15px; }
  .store-card__metrics, .store-card__summary { gap: 6px; margin-top: 7px; }
  .store-card__tickets strong, .store-card__wait strong { font-size: 24px; }
  .store-card__tickets small, .store-card__wait small { font-size: 11px; }
  .sidebar { margin-top: 30px; }
  .legend-card { margin-top: 16px; }
  .map-header { display: block; }
  .map-note { display: block; margin-top: 9px; }
  .map-surface { min-height: 520px; }
  .map-legend { left: 12px; right: 12px; max-width: none; }
  .data-note { margin-top: 22px; }
  .footer { display: block; line-height: 1.8; }
  .footer span { display: block; }
  .footer span + span { margin-top: 6px; }
  .toast { right: 12px; bottom: 12px; left: 12px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
