:root {
  color-scheme: light;
  --panel: #ffffff;
  --panel-soft: #f4f7f9;
  --text: #13202b;
  --muted: #647383;
  --faint: #5f6b76;
  --border: rgba(23, 35, 48, .12);
  --green: #0b6e39;
  --orange: #8f3d08;
  --yellow: #6f5900;
  --red: #c64b4b;
  --blue: #256bb5;
  --ink: #101820;
  --shadow: 0 18px 52px rgba(16, 24, 32, .20);
  --sheet-collapsed: 116px;
  --sheet-peek-height: 104px;
  --sheet-expanded: min(78vh, 720px);
  --sheet-width: min(462px, calc(100vw - 20px));
  --app-height: 100vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: #101820;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

button,
input,
select {
  font: inherit;
}

button,
a,
label,
input,
select,
textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(37, 107, 181, .18);
}

button {
  cursor: pointer;
}

#app,
.app-shell,
.map-pane,
#map {
  width: 100%;
  height: var(--app-height);
}

.app-shell {
  position: relative;
  overflow: hidden;
  background: #dbe5ed;
}

.map-pane {
  position: absolute;
  inset: 0;
}

#map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#map .leaflet-tile-pane {
  filter: saturate(1.06) contrast(0.98) brightness(1.03);
}

.topbar {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 14px;
  right: 14px;
  z-index: 650;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  pointer-events: none;
}

.brand,
.icon-button,
.sheet-peek,
.search-box,
.text-button,
.controls label,
.summary-grid div,
.analysis,
.station-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(225, 232, 238, .92);
  box-shadow: 0 10px 32px rgba(18, 32, 43, .12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html.compat-webview {
  --sheet-width: calc(100vw - 20px);
  --sheet-expanded: 720px;
  --shadow: 0 12px 34px rgba(16, 24, 32, .18);
}

html.compat-webview .coupon-marker,
html.compat-webview .coupon-cluster,
html.compat-webview .brand-ticket,
html.compat-webview .ticket-cluster i,
.azs-div-icon .coupon-marker,
.azs-div-icon .brand-ticket {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.compat-webview .brand-logo-wrap,
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

html.compat-webview .coupon-logo-img,
html.compat-webview .dash-logo-img,
.coupon-logo-img,
.dash-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
html.compat-webview .brand,
html.compat-webview .icon-button,
html.compat-webview .sheet-peek,
html.compat-webview .search-box,
html.compat-webview .text-button,
html.compat-webview .controls label,
html.compat-webview .summary-grid div,
html.compat-webview .analysis,
html.compat-webview .station-card,
html.compat-webview .panel,
html.compat-webview .leaflet-control-zoom a {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.compat-webview .topbar {
  top: 14px;
}

html.compat-webview .panel {
  bottom: 12px;
  max-height: calc(var(--app-height) - 16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 78px);
  min-width: 0;
  padding: 9px 12px;
  border-radius: 12px;
  pointer-events: auto;
}

.brand > span:last-child {
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
}

.brand strong,
.brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  max-width: 62vw;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.icon-button {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(19, 32, 43, .10);
  box-shadow: 0 10px 28px rgba(18, 32, 43, .16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
}

.icon-button svg {
  width: 21px;
  height: 21px;
}

.panel {
  --current-sheet-height: var(--sheet-collapsed);
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  z-index: 760;
  width: var(--sheet-width);
  height: var(--current-sheet-height);
  max-height: calc(var(--app-height) - env(safe-area-inset-top, 0px) - 16px);
  transform: translateX(-50%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(225, 232, 238, .92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: height .24s ease, border-radius .24s ease, bottom .24s ease;
}

body.sheet-expanded .panel {
  --current-sheet-height: min(var(--sheet-expanded), calc(var(--app-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 18px));
  height: var(--current-sheet-height);
  border-radius: 24px;
}

html.compat-webview body.sheet-expanded .panel {
  --current-sheet-height: calc(var(--app-height) - 18px);
  height: var(--current-sheet-height);
}

.sheet-peek {
  position: sticky;
  top: 0;
  z-index: 3;
  width: 100%;
  flex: 0 0 var(--sheet-peek-height);
  min-height: var(--sheet-peek-height);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 22px 18px 14px;
  border: 0;
  border-radius: 22px 22px 18px 18px;
  color: var(--text);
  text-align: left;
}

.grabber {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 44px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #c5d0da;
}

.peek-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.peek-copy strong,
.peek-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.peek-copy strong {
  font-size: 17px;
}

.peek-copy small {
  color: var(--muted);
  font-size: 13px;
}

.peek-count {
  min-width: 48px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
}

.peek-count svg {
  width: 18px;
  height: 18px;
}

.sheet-content {
  height: calc(var(--current-sheet-height) - var(--sheet-peek-height));
  max-height: calc(var(--current-sheet-height) - var(--sheet-peek-height));
  min-height: 0;
  flex: 0 0 calc(var(--current-sheet-height) - var(--sheet-peek-height));
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 14px 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transition: opacity .16s ease, visibility .16s ease;
}

body.sheet-expanded .sheet-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.station-selected .sheet-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: calc(var(--current-sheet-height) - var(--sheet-peek-height));
  max-height: calc(var(--current-sheet-height) - var(--sheet-peek-height));
  min-height: 0;
  flex: 0 0 calc(var(--current-sheet-height) - var(--sheet-peek-height));
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding-bottom: max(64px, calc(env(safe-area-inset-bottom, 0px) + 36px));
  touch-action: pan-y;
}

body.station-selected .panel {
  --current-sheet-height: calc(var(--app-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 12px);
  height: var(--current-sheet-height);
  max-height: var(--current-sheet-height);
  bottom: max(6px, env(safe-area-inset-bottom, 0px));
}

html.compat-webview body.station-selected .panel {
  --current-sheet-height: calc(var(--app-height) - 12px);
  height: var(--current-sheet-height);
  max-height: var(--current-sheet-height);
  bottom: 6px;
  transition: none;
}

html.compat-webview .sheet-content {
  overscroll-behavior: auto;
}

html.compat-webview body.station-selected .sheet-content {
  padding-bottom: 64px;
}

body.station-selected .station-detail {
  flex: 0 0 auto;
  min-height: auto;
}

.search-row {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
}

.search-box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 12px;
  border-radius: 12px;
}

.search-box svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.text-button {
  min-width: 74px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 750;
}

.suggestions {
  display: grid;
  gap: 6px;
  margin: -2px 0 10px;
}

.suggestions button {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-soft);
  color: var(--text);
  text-align: left;
}

.suggestions strong,
.suggestions span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestions span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: visible;
  padding-bottom: 1px;
}

.controls label {
  display: grid;
  gap: 4px;
  min-width: 112px;
  padding: 9px 10px;
  border-radius: 12px;
}

.controls span {
  color: var(--muted);
  font-size: 12px;
}

.controls select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.summary-grid div {
  min-width: 0;
  padding: 10px 7px;
  border-radius: 12px;
  text-align: center;
}

.summary-grid b,
.summary-grid span {
  display: block;
}

.summary-grid b {
  font-size: 18px;
  line-height: 1;
}

.summary-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.analysis {
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.analysis header,
.stations header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

h2 {
  margin: 0;
  font-size: 17px;
}

.analysis header span,
.stations header span {
  color: var(--muted);
  font-size: 12px;
}

.analysis-grid {
  display: grid;
  gap: 8px;
}

.metric {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}

.metric:first-child {
  border-top: 0;
  padding-top: 0;
}

.metric b {
  white-space: nowrap;
}

.metric span {
  color: var(--muted);
}

.metric small {
  color: var(--muted);
}

.note {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #f7efe0;
  color: #6f4a08;
  font-size: 13px;
  line-height: 1.35;
}

.station-list {
  display: grid;
  gap: 10px;
}

.station-detail[hidden] {
  display: none;
}

.station-detail {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
}

body.station-selected .search-row,
body.station-selected .suggestions,
body.station-selected .controls,
body.station-selected .summary-grid,
body.station-selected .analysis {
  display: none;
}

.station-card {
  display: grid;
  gap: 9px;
  padding: 13px;
  border-radius: 14px;
}

.station-card.detail-card {
  max-width: 760px;
  margin: 0 auto;
  gap: 12px;
  padding: 15px;
}

.station-card.station-v2 {
  gap: 12px;
  padding: 14px;
  overflow: visible;
}

.station-v2-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 11px;
}

.station-head-copy {
  min-width: 0;
}

.station-head-copy h3,
.station-head-copy address,
.station-head-meta {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-head-copy address {
  font-style: normal;
  color: #657484;
  font-size: 12px;
  margin-top: 2px;
}

.station-head-meta {
  color: #7b8798;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

.station-logo {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #ffffff;
  color: #13202b;
  border: 1px solid rgba(16, 26, 37, 0.10);
  padding: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.station-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.station-logo-img.fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
}

.station-logo-img.fallback svg {
  width: 20px;
  height: 20px;
}

.station-brand-banner {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(96px, 150px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: var(--brand-main, #13202b);
  background: linear-gradient(135deg, var(--brand-main, #13202b), var(--brand-accent, #2f6f8f));
  color: var(--brand-text, #ffffff);
  border: 1px solid rgba(255, 255, 255, .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 24px rgba(16, 24, 32, .12);
  overflow: hidden;
}

.station-brand-logo {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .88);
  color: #101820;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  box-shadow: 0 10px 22px rgba(16, 24, 32, .18);
}

.station-brand-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  object-position: center;
}

.station-brand-img.fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #101820;
}

.station-brand-img.fallback svg {
  width: 22px;
  height: 22px;
}

.station-brand-banner.unknown .station-brand-logo {
  width: 62px;
}

.station-brand-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .90);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .48);
}

.station-brand-copy b,
.station-brand-copy small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.station-brand-copy b {
  color: var(--text);
  font-size: 19px;
  line-height: 1.1;
}

.station-brand-copy small {
  color: #415161;
  font-size: 13px;
  line-height: 1.25;
  opacity: 1;
  white-space: normal;
}

.station-card.station-v3 {
  padding: 13px;
  border: 1px solid rgba(19, 32, 43, .10);
  background: rgba(255, 255, 255, .96);
}

.station-identity-card {
  position: relative;
  display: grid;
  grid-template-columns: 7px 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 11px 0;
  border: 1px solid rgba(19, 32, 43, .10);
  border-radius: 17px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  box-shadow: 0 12px 28px rgba(16, 24, 32, .08);
  overflow: hidden;
}

.identity-accent {
  width: 7px;
  height: 100%;
  align-self: stretch;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--brand-main, #13202b), var(--brand-accent, #2f6f8f));
}

.identity-logo {
  width: 62px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 15px;
  background: #ffffff;
  color: #101820;
  border: 1px solid rgba(19, 32, 43, .08);
  box-shadow: 0 10px 22px rgba(16, 24, 32, .12);
}

.identity-logo .station-brand-img {
  width: 100%;
  height: 34px;
  max-height: 34px;
}

.identity-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.identity-copy span {
  color: #526273;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.identity-copy b {
  min-width: 0;
  color: #13202b;
  font-size: 19px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-copy small {
  min-width: 0;
  color: #5d6a78;
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-distance {
  min-width: 74px;
  display: grid;
  gap: 2px;
  justify-items: end;
  padding: 8px 10px;
  border-radius: 13px;
  background: #eef4f8;
  color: #13202b;
  text-align: right;
}

.identity-distance b {
  font-size: 15px;
  line-height: 1.05;
}

.identity-distance small {
  color: #6a7480;
  font-size: 11px;
  font-weight: 800;
}

.station-status-panel {
  --status-main: #256bb5;
  --status-soft: #eef6ff;
  --status-border: rgba(37, 107, 181, .22);
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
  border: 1px solid var(--status-border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--status-soft), #ffffff 78%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.station-status-panel.yes {
  --status-main: #0b8f4d;
  --status-soft: #edf9f2;
  --status-border: rgba(11, 143, 77, .25);
}

.station-status-panel.queue {
  --status-main: #f07822;
  --status-soft: #fff4ea;
  --status-border: rgba(240, 120, 34, .30);
}

.station-status-panel.low {
  --status-main: #c49b00;
  --status-soft: #fff9dc;
  --status-border: rgba(196, 155, 0, .30);
}

.station-status-panel.no {
  --status-main: #d63c52;
  --status-soft: #fff0f2;
  --status-border: rgba(214, 60, 82, .26);
}

.station-status-panel.unknown {
  --status-main: #263241;
  --status-soft: #f2f5f8;
  --status-border: rgba(38, 50, 65, .18);
}

.station-v3 .station-status-panel {
  gap: 13px;
  padding: 14px;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.station-v3 .station-status-panel::before {
  content: "";
  display: block;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--status-main), rgba(19, 32, 43, .10));
}

.status-panel-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.station-v3 .status-panel-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.status-section-label {
  color: #506174;
  font-size: 12px;
  font-weight: 850;
}

.status-panel-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.status-panel-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 107, 181, .22);
  border-radius: 17px;
  background: #eef6ff;
  color: var(--status-main);
}

.station-status-panel.yes .status-panel-icon {
  border-color: rgba(11, 143, 77, .26);
  background: #edf9f2;
}

.station-status-panel.queue .status-panel-icon {
  border-color: rgba(240, 120, 34, .30);
  background: #fff4ea;
}

.station-status-panel.low .status-panel-icon {
  border-color: rgba(196, 155, 0, .30);
  background: #fff9dc;
}

.station-status-panel.no .status-panel-icon {
  border-color: rgba(214, 60, 82, .26);
  background: #fff0f2;
}

.station-status-panel.unknown .status-panel-icon {
  border-color: rgba(38, 50, 65, .18);
  background: #f2f5f8;
}

.status-panel-icon svg {
  width: 24px;
  height: 24px;
}

.status-panel-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.status-panel-copy strong {
  color: var(--status-main);
  font-size: 22px;
  line-height: 1.05;
}

.status-panel-copy small {
  color: #526273;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.station-v3 .status-panel-copy strong {
  font-size: 21px;
  letter-spacing: 0;
}

.station-v3 .status-panel-copy small {
  display: -webkit-box;
  max-height: 2.7em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.status-freshness {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  border-radius: 999px;
  background: #e8edf2;
  color: #6a7480;
  font-size: 12px;
  font-weight: 850;
}

.status-freshness.fresh {
  background: #e2f5ea;
  color: #0b6e39;
}

.status-freshness.stale {
  background: #ebe8ef;
  color: #687184;
}

.status-freshness svg {
  width: 14px;
  height: 14px;
}

.status-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.status-summary-grid div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(19, 32, 43, .08);
  border-radius: 13px;
  background: #f7f9fb;
}

.status-summary-grid span {
  color: #6a7480;
  font-size: 11px;
  font-weight: 900;
}

.status-summary-grid b {
  min-width: 0;
  color: #13202b;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.status-fuels {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 2px;
}

.status-fuels span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #172636;
  border: 1px solid rgba(19, 32, 43, .10);
  font-size: 13px;
  font-weight: 850;
}

.status-confirm-block {
  display: grid;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid rgba(19, 32, 43, .10);
}

.status-confirm-block p {
  margin: 0;
  color: #334457;
  font-size: 14px;
  font-weight: 750;
}

.status-confirm-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
}

.status-confirm-actions button,
.share-current {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}

.confirm-current {
  border: 1px solid rgba(11, 143, 77, .32);
  background: #0b7f43;
  color: #ffffff;
}

.confirm-current.is-busy {
  opacity: .72;
}

.confirm-current.is-success {
  background: #0a6a38;
  box-shadow: 0 0 0 2px rgba(11, 143, 77, .28);
}

.confirm-current.is-success span::after {
  content: ' ✓';
}

.change-current {
  border: 1px solid rgba(37, 107, 181, .20);
  background: #edf4fb;
  color: #31475c;
}

.share-current {
  width: 100%;
  border: 1px solid rgba(11, 143, 77, .30);
  background: rgba(232, 246, 238, .72);
  color: #0b7f43;
}

.status-confirm-actions svg,
.share-current svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.station-v2-head h3,
.station-v2-head address {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-hero {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 13px;
  border-radius: 14px;
  background: #f4f8f6;
  border: 1px solid rgba(19, 32, 43, .10);
}

.station-v2.yes .status-hero {
  background: #e8f6ee;
}

.station-v2.queue .status-hero {
  background: #fff0e3;
}

.station-v2.low .status-hero {
  background: #fff7d7;
}

.station-v2.no .status-hero {
  background: #fae8e8;
}

.status-light {
  width: 12px;
  height: 38px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 22px rgba(224, 51, 77, .48);
}

.station-v2.yes .status-light {
  background: var(--green);
  box-shadow: 0 0 22px rgba(11, 110, 57, .42);
}

.station-v2.queue .status-light {
  background: var(--orange);
  box-shadow: 0 0 22px rgba(240, 120, 34, .42);
}

.station-v2.low .status-light {
  background: #d6a900;
}

.status-hero b,
.status-hero small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.status-hero b {
  color: var(--text);
  font-size: 20px;
  line-height: 1.1;
}

.status-hero small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.content-complaint-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(19, 32, 43, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--muted);
}

.content-complaint-button svg {
  width: 17px;
  height: 17px;
}

.confirm-note {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px 11px;
  border-radius: 12px;
  background: #edf4fb;
  color: #245179;
  font-size: 13px;
  line-height: 1.35;
}

.info-lines {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.info-lines div {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border-radius: 12px;
  background: #f6f8fa;
  border: 1px solid rgba(19, 32, 43, .08);
}

.info-lines span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.info-lines b {
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4f8;
  color: var(--text);
  font-weight: 850;
}

.price-row b {
  color: var(--muted);
  font-size: 12px;
}

.fuel-now {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(19, 32, 43, .08);
  border-radius: 13px;
  background: #f7f9fb;
}

.fuel-now strong {
  color: var(--text);
  font-size: 14px;
}

.fuel-now div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.fuel-now span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8f6ee;
  color: #0b6e39;
  font-size: 13px;
  font-weight: 850;
}

.quick-report {
  display: grid;
  gap: 10px;
}

.quick-report > strong {
  color: var(--text);
  font-size: 14px;
}

.report-step {
  display: grid;
  gap: 7px;
}

.report-step > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.fuel-choice-row,
.pump-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.choice-chip {
  min-width: 45px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(19, 32, 43, .12);
  border-radius: 999px;
  background: #f6f8fa;
  color: var(--text);
  font-weight: 850;
}

.choice-chip.selected,
.report-button.selected {
  border-color: rgba(11, 110, 57, .34);
  background: #e4f5ec;
  color: #0b6e39;
  box-shadow: inset 0 0 0 1px rgba(11, 110, 57, .14);
}

.quick-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.report-wizard {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(19, 32, 43, .10);
  border-radius: 15px;
  background: #f7f9fb;
}

.report-wizard.is-hidden {
  display: none;
}

.report-wizard.is-busy button {
  opacity: .64;
  pointer-events: none;
}

.wizard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wizard-head strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.15;
}

.wizard-head span {
  min-width: 42px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eaf0f5;
  color: #425162;
  font-size: 12px;
  font-weight: 850;
}

.wizard-question {
  display: grid;
  gap: 10px;
}

.wizard-question p {
  margin: 0;
  color: #2d3a46;
  font-size: 14px;
  font-weight: 800;
}

.wizard-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wizard-options.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wizard-options.fuels {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.wizard-options button,
.wizard-action {
  min-height: 44px;
  border: 1px solid rgba(19, 32, 43, .12);
  border-radius: 13px;
  background: #ffffff;
  color: var(--text);
  font-weight: 850;
}

.wizard-options button.yes {
  background: #dff3e8;
  color: #0b6e39;
}

.wizard-options button.no {
  background: #f5dddd;
  color: #9a2727;
}

.wizard-options .choice-chip {
  min-width: 52px;
  padding: 0 14px;
}

.wizard-action {
  width: 100%;
  background: #101820;
  color: #ffffff;
}

.wizard-thanks {
  padding: 15px;
  border: 1px solid rgba(11, 110, 57, .14);
  border-radius: 13px;
  background: #e8f6ee;
  color: #0b6e39;
  text-align: center;
}

.wizard-thanks strong {
  font-size: 15px;
  line-height: 1.25;
}

.station-v2 .report-button {
  min-height: 42px;
  border-radius: 12px;
  font-size: 13px;
}

.message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 44px;
  gap: 8px;
}

.message-form input {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
}

.message-form button,
.composer-photo {
  min-width: 0;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 107, 181, .25);
  border-radius: 12px;
  background: #eaf3fc;
  color: #164f87;
}

.composer-photo {
  position: relative;
  cursor: pointer;
}

.composer-photo input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.station-composer {
  position: relative;
  z-index: 1;
  padding: 6px 0 2px;
  background: transparent;
}

.station-feed {
  display: grid;
  gap: 8px;
}

.station-feed header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.station-feed header strong {
  color: var(--text);
  font-size: 14px;
}

.station-feed header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.feed-list {
  display: grid;
  gap: 8px;
}

.feed-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: start;
  padding: 10px 11px;
  border-radius: 13px;
  background: #f6f8fa;
  border: 1px solid rgba(19, 32, 43, .08);
}

.feed-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.feed-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.feed-copy p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.feed-photo {
  display: block;
  width: min(100%, 360px);
  max-height: 260px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(19, 32, 43, .10);
  background: #e8eef3;
}

.station-feed.empty {
  padding: 10px 11px;
  border-radius: 13px;
  background: #f6f8fa;
  border: 1px solid rgba(19, 32, 43, .08);
}

.station-messages {
  display: grid;
  gap: 8px;
}

.station-messages .station-message-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: start;
  padding: 10px 11px;
  border-radius: 12px;
  background: #f6f8fa;
  border: 1px solid rgba(19, 32, 43, .08);
}

.station-messages p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.station-messages small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.station-message-copy {
  min-width: 0;
}

.station-foot {
  color: var(--faint);
  font-size: 11px;
  text-align: center;
}

.station-card.detail-card address {
  white-space: normal;
}

.station-card.detail-card .report-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.station-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
}

.station-detail-top {
  min-width: 0;
}

.station-card h3 {
  margin: 0;
  min-width: 0;
  font-size: 16px;
}

.station-card address {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.distance {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.detail-close {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-soft);
  color: var(--text);
}

.detail-close svg {
  width: 18px;
  height: 18px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}

.badge.yes {
  background: #dff3e8;
  color: var(--green);
}

.badge.queue {
  background: #fbe7d6;
  color: var(--orange);
}

.badge.low {
  background: #fbf0c7;
  color: var(--yellow);
}

.badge.no {
  background: #f5dddd;
  color: var(--red);
}

.badge.local {
  background: #e6eef7;
  color: #244d78;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.detail-metric {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(23, 35, 48, .10);
  border-radius: 12px;
  background: #f7f9fb;
  color: var(--text);
}

.detail-metric span,
.detail-metric small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.detail-metric b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 15px;
}

.detail-metric small {
  color: var(--faint);
  font-size: 11px;
}

.station-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.price-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4f8;
  color: var(--text);
  font-size: 13px;
  font-style: normal;
}

.price-chip b,
.price-chip em {
  font-style: normal;
}

.price-chip b {
  color: var(--muted);
}

.price-chip em {
  font-weight: 850;
}

.station-photo-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
}

.station-photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.station-photo-wrap .station-photo-thumb {
  border-radius: inherit;
}

.station-photo-wrap .content-complaint-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 20px rgba(16, 24, 32, .18);
}

.local-strip {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #eef5f2;
  color: #245541;
  font-size: 12px;
  line-height: 1.3;
}

.meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.detail-coords {
  padding-top: 2px;
  color: var(--faint);
  font-size: 11px;
}

.report-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.report-button {
  min-width: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.report-button svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.report-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-button.yes {
  background: #dff3e8;
  color: var(--green);
}

.report-button.no {
  background: #f5dddd;
  color: var(--red);
}

.report-button.queue {
  background: #fbe7d6;
  color: var(--orange);
}

.report-button.photo {
  position: relative;
  overflow: hidden;
  background: #e6eef7;
  color: #244d78;
  cursor: pointer;
}

.report-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.notify-button {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(37, 107, 181, .22);
  border-radius: 12px;
  background: #eaf3fc;
  color: #164f87;
  font-weight: 850;
}

.notify-button.active {
  background: #e7f5ed;
  border-color: rgba(11, 110, 57, .22);
  color: var(--green);
}

.notify-button:disabled {
  cursor: default;
}

.notify-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.station-actions {
  display: flex;
  gap: 8px;
}

.station-actions a,
.station-actions button {
  flex: 1;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-soft);
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
}

.station-actions svg {
  width: 17px;
  height: 17px;
}

.empty {
  padding: 22px 12px;
  color: var(--muted);
  text-align: center;
}

.dev-credit {
  padding: 15px 0 2px;
  color: var(--faint);
  font-size: 11px;
  text-align: center;
}

.azs-div-icon,
.azs-cluster-icon,
.azs-ticket-icon {
  background: transparent !important;
  border: 0 !important;
}

.brand-ticket {
  --ticket-status: #e0334d;
  position: relative;
  width: 188px;
  min-height: 58px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 8px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(16, 26, 37, 0.08);
  box-shadow: 0 12px 28px rgba(16, 26, 37, 0.18);
  color: #13202b;
  transform: translateZ(0);
}

.brand-ticket.yes {
  --ticket-status: #0b8f4d;
}

.brand-ticket.queue {
  --ticket-status: #f07822;
}

.brand-ticket.low {
  --ticket-status: #f3c316;
}

.brand-ticket.no {
  --ticket-status: #e0334d;
}

.brand-ticket.unknown {
  --ticket-status: #8a97a6;
}

.brand-ticket.unknown.known-brand {
  --ticket-status: var(--brand-main);
}

.ticket-status-rail {
  position: absolute;
  left: -4px;
  top: 10px;
  bottom: 10px;
  width: 7px;
  border-radius: 999px;
  background: var(--ticket-status);
  box-shadow: 0 0 12px color-mix(in srgb, var(--ticket-status) 36%, transparent);
}

.ticket-brand-rail {
  width: 8px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-accent), var(--brand-main));
  justify-self: end;
}

html.compat-webview .ticket-status-rail {
  box-shadow: none;
}

html.compat-webview .ticket-brand-rail {
  background: var(--brand-accent);
}

.ticket-logo {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(16, 26, 37, .10);
  box-shadow: 0 6px 14px rgba(16, 26, 37, .12);
}

.ticket-logo-img {
  display: block;
  width: 34px;
  height: 34px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.ticket-logo-img.fallback {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #13202b;
}

.ticket-logo-img.fallback svg {
  width: 20px;
  height: 20px;
}

.ticket-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ticket-copy b,
.ticket-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-copy b {
  color: #13202b;
  font-size: 14px;
  line-height: 1.05;
  font-weight: 900;
}

.ticket-copy small {
  color: #657484;
  font-size: 11px;
  font-weight: 700;
}

.ticket-pin-shadow {
  position: absolute;
  left: 20px;
  bottom: -8px;
  width: 20px;
  height: 10px;
  border-radius: 50%;
  background: rgba(16, 26, 37, .26);
  filter: blur(5px);
  z-index: -1;
}

.azs-dot-icon {
  background: transparent;
  border: none;
}

.fuel-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(16, 24, 32, 0.28);
}

.fuel-dot.yes { background: #0b8f4d; }
.fuel-dot.queue { background: #f07822; }
.fuel-dot.low { background: #f3c316; }
.fuel-dot.no { background: #e0334d; }
.fuel-dot.unknown { background: #7b8798; }

.brand-ticket.compact {
  width: 60px;
  min-height: 54px;
  grid-template-columns: 44px;
  padding: 7px;
  border-radius: 18px;
}

.brand-ticket.compact .ticket-copy,
.brand-ticket.compact .ticket-brand-rail {
  display: none;
}

.brand-ticket.compact .ticket-status-rail {
  left: 6px;
  right: 6px;
  top: auto;
  bottom: -4px;
  width: auto;
  height: 6px;
}

.ticket-cluster {
  position: relative;
  width: 96px;
  height: 72px;
}

.ticket-cluster i {
  position: absolute;
  width: 68px;
  height: 48px;
  border-radius: 17px;
  background: #ffffff;
  border: 1px solid rgba(16, 26, 37, .12);
  box-shadow: 0 14px 24px rgba(16, 26, 37, .18);
}

.ticket-cluster i:nth-child(1) {
  left: 0;
  top: 16px;
  border-left: 7px solid #e0334d;
}

.ticket-cluster i:nth-child(2) {
  left: 12px;
  top: 9px;
  border-left: 7px solid #f07822;
}

.ticket-cluster i:nth-child(3) {
  left: 24px;
  top: 2px;
  border-left: 7px solid #0b8f4d;
}

.ticket-cluster.unknown i {
  border-left-color: #263241;
}

.ticket-cluster span {
  position: absolute;
  right: 0;
  top: 19px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #111b26;
  color: #ffffff;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 22px rgba(16, 26, 37, .22);
  font-size: 16px;
  font-weight: 900;
}

.azs-pin {
  --pin-color: #e0334d;
  position: relative;
  width: 54px;
  height: 64px;
  display: grid;
  place-items: start center;
  filter: drop-shadow(0 12px 20px rgba(12, 22, 32, .28));
}

.azs-pin.yes {
  --pin-color: #0b8f4d;
}

.azs-pin.queue {
  --pin-color: #f07822;
}

.azs-pin.low {
  --pin-color: #f3c316;
}

.azs-pin.no {
  --pin-color: #e0334d;
}

.azs-pin-glow {
  position: absolute;
  top: 3px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(224, 51, 77, .42);
  filter: blur(10px);
  opacity: .8;
}

.azs-pin.yes .azs-pin-glow {
  background: rgba(11, 143, 77, .42);
}

.azs-pin.queue .azs-pin-glow {
  background: rgba(240, 120, 34, .42);
}

.azs-pin.low .azs-pin-glow {
  background: rgba(243, 195, 22, .42);
}

.azs-pin.no .azs-pin-glow {
  background: rgba(224, 51, 77, .42);
}

.azs-pin-core {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  border-radius: 18px;
  background: #182433;
  color: #ffffff;
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, .18), 0 8px 18px rgba(8, 16, 24, .28);
}

.azs-pin-core::after {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: 22px;
  border: 3px solid var(--pin-color);
}

.azs-pin-core svg {
  width: 20px;
  height: 20px;
}

.azs-pin-tip {
  position: absolute;
  top: 38px;
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  border-radius: 0 0 5px 0;
  background: var(--pin-color);
}

.azs-cluster-pin {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--cluster-ring, #0b8f4d);
  box-shadow: 0 12px 24px rgba(8, 16, 24, .28);
}

.azs-cluster-pin::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: #182433;
  border: 3px solid #ffffff;
}

.azs-cluster-pin span {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
}

@media (prefers-reduced-motion: no-preference) {
  .azs-div-icon .azs-pin,
  .azs-div-icon .brand-ticket,
  .azs-cluster-icon .azs-cluster-pin,
  .azs-cluster-icon .ticket-cluster {
    animation: markerContentIn .18s ease-out both;
  }

  @keyframes markerContentIn {
    from {
      opacity: .28;
    }
    to {
      opacity: 1;
    }
  }
}

.user-location-icon {
  background: transparent;
  border: 0;
}

.user-location-dot {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 12px;
  height: 12px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: #1f6feb;
  box-shadow: 0 0 0 2px rgba(31, 111, 235, .25), 0 6px 14px rgba(10, 24, 48, .28);
}

.user-location-pulse {
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: rgba(31, 111, 235, .18);
  animation: userPulse 1.7s ease-out infinite;
}

@keyframes userPulse {
  from { transform: scale(.55); opacity: .8; }
  to { transform: scale(1.45); opacity: 0; }
}

.azs-marker {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--text);
  filter: drop-shadow(0 8px 18px rgba(15, 24, 32, .24));
  transform: translateZ(0);
}

.azs-marker-dot {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid #ffffff;
  border-radius: 13px;
  background: var(--red);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: 0 4px 13px rgba(0, 0, 0, .22);
}

.azs-marker.yes .azs-marker-dot {
  background: var(--green);
}

.azs-marker.queue .azs-marker-dot {
  background: var(--orange);
}

.azs-marker.low .azs-marker-dot {
  background: var(--yellow);
  color: #101820;
}

.azs-marker.no .azs-marker-dot {
  background: var(--red);
}

.azs-marker-card {
  min-width: 92px;
  max-width: 132px;
  display: grid;
  gap: 1px;
  margin-left: -6px;
  padding: 6px 9px 6px 14px;
  border: 1px solid rgba(216, 226, 235, .96);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 14px rgba(15, 24, 32, .16);
}

.azs-marker-card b,
.azs-marker-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.azs-marker-card b {
  color: var(--text);
  font-size: 12px;
  line-height: 1.1;
}

.azs-marker-card small {
  color: #526171;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
}

.azs-marker.compact .azs-marker-card {
  display: none;
}

.azs-marker.compact .azs-marker-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.azs-marker.compact::after {
  content: "";
  position: absolute;
  left: 13px;
  bottom: -5px;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  background: inherit;
}

.azs-marker.compact.yes::after {
  background: var(--green);
}

.azs-marker.compact.queue::after {
  background: var(--orange);
}

.azs-marker.compact.low::after {
  background: var(--yellow);
}

.azs-marker.compact.no::after {
  background: var(--red);
}

.azs-cluster {
  width: 128px;
  min-height: 54px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(214, 224, 232, .96);
  border-radius: 16px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 28px rgba(15, 24, 32, .28);
  color: var(--text);
}

.cluster-count {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  border-radius: 14px;
  background: var(--green);
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .22);
}

.azs-cluster.queue .cluster-count {
  background: var(--orange);
}

.azs-cluster.no .cluster-count {
  background: var(--red);
}

.cluster-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.cluster-meta b,
.cluster-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cluster-meta b {
  color: var(--text);
  font-size: 12px;
  line-height: 1.05;
}

.cluster-meta small {
  color: #526171;
  font-size: 9px;
  font-weight: 800;
}

.cluster-strip {
  height: 5px;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebf0;
}

.cluster-strip i {
  display: block;
}

.cluster-strip .yes {
  background: var(--green);
}

.cluster-strip .queue {
  background: var(--orange);
}

.cluster-strip .low {
  background: var(--yellow);
}

.cluster-strip .no {
  background: var(--red);
}

.cluster-strip .unknown {
  background: #263241;
}

.cluster-popup {
  min-width: 220px;
  color: var(--text);
}

.cluster-popup strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.cluster-popup-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.cluster-popup-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--panel-soft);
  font-size: 12px;
  font-weight: 800;
}

.cluster-popup-summary .yes {
  background: #dff3e8;
  color: var(--green);
}

.cluster-popup-summary .queue {
  background: #fbe7d6;
  color: var(--orange);
}

.cluster-popup-summary .no {
  background: #f5dddd;
  color: var(--red);
}

.cluster-popup-summary .unknown,
.cluster-popup-summary span:not(.yes):not(.queue):not(.no) {
  background: #f2f5f8;
  color: #263241;
}

.cluster-popup-list {
  display: grid;
  gap: 6px;
}

.cluster-popup-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  text-align: left;
}

.cluster-popup-list i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.cluster-popup-list i.yes {
  background: var(--green);
}

.cluster-popup-list i.queue {
  background: var(--orange);
}

.cluster-popup-list i.low {
  background: var(--yellow);
}

.cluster-popup-list i.unknown {
  background: #263241;
}

.cluster-popup-list b,
.cluster-popup-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cluster-popup-list b {
  font-size: 12px;
}

.cluster-popup-list small {
  color: var(--muted);
  font-size: 11px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--sheet-collapsed) + env(safe-area-inset-bottom, 0px) + 22px);
  z-index: 1200;
  max-width: min(92vw, 420px);
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: #ffffff;
  box-shadow: var(--shadow);
}

body.sheet-expanded .toast {
  bottom: calc(var(--sheet-expanded) + env(safe-area-inset-bottom, 0px) + 18px);
}

.leaflet-top.leaflet-right {
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  z-index: 640;
}

.leaflet-top.leaflet-right .leaflet-control {
  margin: 0;
}

.leaflet-control-zoom {
  display: grid;
  gap: 9px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.leaflet-control-zoom a {
  width: 44px !important;
  height: 44px !important;
  line-height: 42px !important;
  margin: 0 !important;
  border: 1px solid rgba(19, 32, 43, .14) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .76) !important;
  color: var(--ink) !important;
  box-shadow: 0 10px 28px rgba(18, 32, 43, .16) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 26px !important;
  font-weight: 760 !important;
}

.leaflet-control-zoom a:hover,
.leaflet-control-zoom a:focus {
  background: rgba(255, 255, 255, .92) !important;
}

.leaflet-control-attribution {
  font-size: 10px;
}

@media (min-width: 700px) {
  :root {
    --sheet-width: min(840px, calc(100vw - 48px));
    --sheet-collapsed: 112px;
    --sheet-expanded: min(74vh, 760px);
  }

  html.compat-webview {
    --sheet-width: calc(100vw - 48px);
    --sheet-expanded: 760px;
  }

  body {
    display: block;
    padding: 0;
  }

  #app {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
  }

  .topbar {
    top: 24px;
    left: 24px;
    right: 24px;
  }

  .brand {
    max-width: min(520px, calc(100vw - 108px));
    padding: 12px 14px;
  }

  .brand-mark {
    width: 48px;
    height: 38px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    max-width: 420px;
    font-size: 13px;
  }

  .icon-button {
    width: 52px;
    height: 52px;
  }

  .panel {
    --sheet-peek-height: 100px;
    bottom: 22px;
    border-radius: 20px;
  }

  body.sheet-expanded .panel {
    border-radius: 22px;
  }

  .sheet-peek {
    min-height: var(--sheet-peek-height);
    padding: 22px 24px 14px;
    border-radius: 20px 20px 16px 16px;
  }

  .sheet-content {
    min-height: 0;
    padding: 14px 24px 20px;
  }

  .search-row {
    gap: 10px;
  }

  .text-button {
    min-width: 104px;
  }

  .controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }

  .analysis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .note {
    grid-column: 1 / -1;
  }

  .station-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .station-card {
    align-self: start;
  }

  .report-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toast {
    max-width: 520px;
  }

}

@media (min-width: 1180px) {
  :root {
    --sheet-width: min(1040px, calc(100vw - 64px));
  }

  .station-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .panel {
    width: calc(100vw - 16px);
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }

  .sheet-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .search-row {
    gap: 6px;
  }

  .text-button {
    min-width: 64px;
  }

  .summary-grid {
    gap: 6px;
  }

  .summary-grid div {
    padding: 9px 5px;
  }

  .report-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .station-card.detail-card .report-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .station-v2-head {
    grid-template-columns: 42px minmax(0, 1fr) 38px;
  }

  .station-brand-banner {
    grid-template-columns: minmax(76px, 110px) minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
  }

  .station-brand-logo {
    justify-self: start;
    max-width: 100%;
  }

  .station-identity-card {
    grid-template-columns: 6px 48px minmax(0, 1fr);
    gap: 9px;
    padding: 10px 10px 10px 0;
  }

  .identity-accent {
    width: 6px;
  }

  .identity-logo {
    width: 48px;
    min-height: 48px;
    padding: 6px;
    border-radius: 13px;
  }

  .identity-copy b {
    font-size: 17px;
  }

  .identity-distance {
    grid-column: 2 / 4;
    justify-self: start;
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
    padding: 7px 10px;
    text-align: left;
  }

  .status-hero {
    grid-template-columns: 12px minmax(0, 1fr);
    padding: 12px;
  }

  .station-status-panel {
    padding: 13px;
  }

  .status-panel-head {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
  }

  .station-v3 .status-panel-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .status-freshness {
    grid-column: 1 / 3;
    justify-self: start;
  }

  .status-summary-grid {
    grid-template-columns: 1fr;
  }

  .quick-report-grid,
  .wizard-options.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .azs-cluster {
    width: 78px;
    min-height: 54px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 3px;
    padding: 5px 6px;
    border-radius: 18px;
  }

  .cluster-count {
    width: 34px;
    height: 34px;
    border-radius: 13px;
    font-size: 15px;
  }

  .cluster-meta {
    width: 60px;
  }

  .cluster-meta b,
  .cluster-meta small {
    display: none;
  }

  .cluster-strip {
    width: 60px;
    height: 6px;
  }
}

.station-card.station-dash {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #f4f6f8;
  border-radius: 18px;
  overflow: hidden;
}

/* —— Coupon map markers (concept 1) —— */
.coupon-marker {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 188px;
  min-height: 56px;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  filter: drop-shadow(0 4px 12px rgba(15, 23, 42, .24));
  font-family: inherit;
  line-height: 1.1;
  pointer-events: none;
}

.coupon-notch {
  display: none;
}

.coupon-status-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 0 0 42px;
  min-width: 42px;
  padding: 6px 4px;
  background: var(--coupon-status, #9ca3af);
  color: #fff;
}

.coupon-status-icon {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.coupon-status-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
}

.coupon-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 6px 10px 6px 8px;
  background: #fff;
  color: #111827;
  overflow: hidden;
}

.coupon-brand-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.coupon-brand-row b {
  flex: 1 1 auto;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coupon-logo,
.coupon-logo-img,
.dash-logo-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.coupon-logo {
  width: 22px;
  height: 22px;
}

.coupon-logo-img,
.dash-logo-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.coupon-logo-img.monogram,
.dash-logo-img.monogram,
.coupon-logo .monogram {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: var(--brand-main, #1d2a36);
  color: var(--brand-text, #fff);
  font-size: 9px;
  font-weight: 800;
}

.coupon-fuels {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  font-size: 10px;
  font-weight: 700;
  color: #334155;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.coupon-fuel-sep {
  margin: 0 3px;
  color: #94a3b8;
}

.coupon-fuel-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.coupon-fuel-item i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
}

.coupon-fuel-item.yes i { background: #16a34a; }
.coupon-fuel-item.low i,
.coupon-fuel-item.queue i { background: #f59e0b; }
.coupon-fuel-item.no i { background: #dc2626; }
.coupon-fuel-item.unknown i { background: #9ca3af; }

.coupon-fuel-empty {
  font-size: 9px;
  color: #94a3b8;
}

.coupon-fuel-empty.is-unavailable,
.dash-fuel-empty.is-unavailable {
  color: #dc2626;
  font-weight: 700;
}

.coupon-fuel-empty.is-available,
.dash-fuel-empty.is-available {
  color: #16a34a;
  font-weight: 700;
}

.coupon-marker.no .coupon-fuels {
  opacity: 0.95;
}

.coupon-marker.no .coupon-body {
  color: #64748b;
}

.coupon-marker.yes { --coupon-status: #16a34a; }
.coupon-marker.queue { --coupon-status: #f59e0b; }
.coupon-marker.low { --coupon-status: #eab308; }
.coupon-marker.no { --coupon-status: #dc2626; }
.coupon-marker.unknown { --coupon-status: #9ca3af; }
.coupon-marker.unknown.known-brand { --coupon-status: var(--brand-main, #64748b); }
.coupon-marker.loading {
  --coupon-status: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.28);
  animation: marker-loading-pulse 1.35s ease-in-out infinite;
}
.coupon-marker.loading .coupon-status-pane {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.coupon-marker.loading .coupon-status-label {
  color: #eef2ff;
}

@keyframes marker-loading-pulse {
  0%, 100% { filter: saturate(1); opacity: 1; }
  50% { filter: saturate(1.15); opacity: 0.88; }
}

.station-dash.loading .dash-open-pill {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}

.station-dash.loading .dash-status-panel {
  background: #eef2ff;
}

.dash-ring.is-loading,
.dash-status-ring.is-loading {
  --ring-active: #6366f1;
  --ring-track: #c7d2fe;
  animation: ring-loading-spin 1.1s linear infinite;
  color: #4338ca;
}

@keyframes ring-loading-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.coupon-marker.compact {
  width: 136px;
  min-height: 48px;
  border-radius: 12px;
}

.coupon-marker.compact .coupon-status-pane {
  min-width: 28px;
  padding: 5px 3px;
}

.coupon-marker.compact .coupon-body {
  gap: 2px;
  padding: 5px 8px 5px 6px;
}

.coupon-marker.compact .coupon-logo-img,
.coupon-marker.compact .coupon-logo .monogram,
.coupon-marker.compact .brand-logo-wrap,
.coupon-marker.compact .coupon-logo {
  width: 18px;
  height: 18px;
}

.coupon-marker.compact .coupon-logo .monogram {
  font-size: 8px;
}

.coupon-marker.compact .coupon-brand-row {
  gap: 5px;
}

.coupon-marker.compact .coupon-brand-row b {
  font-size: 10px;
}

.coupon-marker.compact .coupon-fuels {
  font-size: 9px;
}

.coupon-cluster {
  position: relative;
  width: 46px;
  height: 46px;
  display: block;
  background: transparent !important;
  border: none;
  box-shadow: none;
  pointer-events: none;
}

.coupon-cluster-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--cluster-ring, conic-gradient(#9ca3af 0deg 360deg));
  box-shadow: 0 4px 14px rgba(15, 23, 42, .28);
}

.coupon-cluster-core {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06);
}

.brand-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  overflow: hidden;
  border-radius: 8px;
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-logo-tile {
  background: transparent;
  background-size: 88% 88%;
  background-position: center;
  background-repeat: no-repeat;
}

.brand-logo-inline {
  overflow: hidden;
}

.brand-logo-inline svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.dash-brand-logo .brand-logo-tile {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.brand-logo-wrap .logo-glyph {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-text, #fff);
  pointer-events: none;
  z-index: 0;
}

.brand-logo-wrap .brand-logo-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  border-radius: inherit;
}

.brand-logo-wrap:has(.brand-logo-img) .logo-glyph {
  opacity: 0;
}

.brand-logo-wrap .logo-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* —— Dashboard detail card —— */
.station-dash {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 0 8px;
  background: #f4f6f8;
}

.station-dash .dash-head {
  position: relative;
  margin: -12px -12px 0;
  padding: 12px 12px 10px;
  background: #101820;
  color: #fff;
  border-radius: 18px 18px 0 0;
}

.dash-brand-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
}

.dash-brand-bar.no-brand-logo {
  grid-template-columns: 1fr auto;
}

.dash-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dash-logo-img {
  width: 30px;
  height: 30px;
}

.dash-logo-img.monogram {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 12px;
}

.dash-title-block {
  min-width: 0;
}

.dash-title-block h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.dash-title-block address {
  margin: 4px 0 0;
  font-style: normal;
  font-size: 12px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.35;
}

.station-dash .detail-close {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.dash-open-pill {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(22, 163, 74, .18);
  color: #86efac;
}

.dash-open-pill.no {
  background: rgba(220, 38, 38, .18);
  color: #fca5a5;
}

.dash-open-pill.unknown {
  background: rgba(148, 163, 184, .18);
  color: #cbd5e1;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dash-metric {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}

.dash-metric-copy strong {
  display: block;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.dash-metric-copy small,
.dash-min-price {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.dash-metric-glyph {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  font-size: 18px;
  font-weight: 700;
}

.dash-ring {
  --pct: 50;
  --ring-active: #16a34a;
  --ring-track: #e2e8f0;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side, #fff 78%, transparent 80% 100%),
    conic-gradient(var(--ring-active) calc(var(--pct) * 1%), var(--ring-track) 0);
  font-size: 10px;
  font-weight: 800;
  color: #0f172a;
  transform: translateZ(0);
}

.station-dash.no .dash-ring,
.station-dash.no .dash-status-ring {
  --ring-active: #dc2626;
  --ring-track: #fecaca;
}

.station-dash.no .dash-ring.is-empty,
.station-dash.no .dash-status-ring.is-empty {
  --ring-active: #e2e8f0;
  --ring-track: #e2e8f0;
  color: #94a3b8;
}

.dash-status-panel.no {
  background: #fff5f5;
}

.dash-fuel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.dash-fuel-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.dash-fuel-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca3af;
}

.dash-fuel-pill.yes i { background: #16a34a; }
.dash-fuel-pill.low i,
.dash-fuel-pill.queue i { background: #f59e0b; }
.dash-fuel-pill.no i { background: #dc2626; }

.dash-fuel-empty {
  font-size: 12px;
  color: #94a3b8;
}

.dash-distance {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
}

.dash-distance strong {
  font-size: 15px;
}

.dash-distance span {
  margin-left: auto;
  font-size: 12px;
  color: #64748b;
}

.dash-status-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
}

.dash-status-ring {
  --pct: 50;
  --ring-active: #2563eb;
  --ring-track: #e2e8f0;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #fff 74%, transparent 76% 100%),
    conic-gradient(var(--ring-active) calc(var(--pct) * 1%), var(--ring-track) 0);
  transform: translateZ(0);
}

.dash-status-copy strong {
  display: block;
  font-size: 14px;
}

.dash-status-copy small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

.dash-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-confirm-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
}

.dash-confirm-actions .change-current {
  background: #fff7ed;
  color: #c2410c;
}

.dash-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.dash-section-head strong {
  font-size: 14px;
}

.dash-section-head span {
  font-size: 11px;
  color: #64748b;
}

.dash-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dash-price-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 74px;
  padding: 12px;
  border-radius: 16px;
  color: #fff;
}

.dash-price-card.tone-92 { background: linear-gradient(145deg, #2563eb, #1d4ed8); }
.dash-price-card.tone-red { background: linear-gradient(145deg, #ef4444, #dc2626); }
.dash-price-card.tone-dt { background: linear-gradient(145deg, #334155, #0f172a); }

.dash-price-fuel {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.dash-price-card strong {
  font-size: 16px;
  font-weight: 800;
}

.dash-prices-reference .dash-price-card.muted {
  opacity: 0.78;
}

.dash-prices-reference .dash-section-head span {
  color: #dc2626;
  font-weight: 700;
}

.dash-chat {
  padding: 12px;
  border-radius: 18px;
  background: #fff;
}

.dash-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dash-chat-head strong {
  font-size: 14px;
}

.dash-chat-online {
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
}

.dash-feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  margin-bottom: 10px;
}

.dash-feed-empty {
  margin-bottom: 10px;
  font-size: 12px;
  color: #94a3b8;
}

.station-dash .dash-composer {
  margin: 0;
}

.station-dash .dash-actions {
  margin-top: 0;
}

@media (max-width: 380px) {
  .dash-price-grid {
    grid-template-columns: 1fr;
  }
}
