


*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html, body { overscroll-behavior-y: contain; }


:root {
  --brand: #00B050; --brand-press: #009644; --brand-tint: #E6F7EE;
  --brand-tint-2: #C9EED9; --brand-ink: #014A22;
  --bg: #FFFFFF; --bg-2: #F6F7F9; --bg-3: #EFF1F4;
  --surface: #FFFFFF; --line: #E6E8EC; --line-soft: #EFF1F4;
  --ink: #0E1116; --ink-2: #2C3138; --ink-3: #5A626D;
  --ink-4: #8A93A0; --ink-5: #B6BCC6;
  --warn: #F08A24; --warn-tint: #FFF1DF;
  --danger: #E5484D; --danger-tint: #FDECEC;
  --info: #1E6BFF; --info-tint: #E6EEFF;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(15,17,22,.04), 0 1px 1px rgba(15,17,22,.03);
  --shadow-2: 0 2px 8px rgba(15,17,22,.06), 0 1px 2px rgba(15,17,22,.04);
  --shadow-3: 0 8px 24px rgba(15,17,22,.10), 0 2px 6px rgba(15,17,22,.06);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", system-ui, "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Menlo", "Roboto Mono", monospace;
  --app-w: 390px; --app-h: 844px; --safe-top: 47px; --safe-bottom: 34px;
}

[data-theme="dark"] {
  --bg: #0B0D10; --bg-2: #14171C; --bg-3: #1B1F25; --surface: #14171C;
  --line: #262B33; --line-soft: #1E232B;
  --ink: #F4F6F8; --ink-2: #DDE1E7; --ink-3: #A4ADB8; --ink-4: #767E89; --ink-5: #4D545E;
  --brand-tint: #0F2B1B; --brand-tint-2: #133A23; --brand-ink: #9DECC0;
  --warn-tint: #2B1F10; --danger-tint: #2B1314; --info-tint: #11203E;
  --shadow-1: 0 1px 2px rgba(0,0,0,.5);
  --shadow-2: 0 4px 12px rgba(0,0,0,.4);
  --shadow-3: 0 12px 32px rgba(0,0,0,.55);
}


body {
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg);
}


.phone {
  max-width: var(--app-w);
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}


.screen {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}


.scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { display: none; }


.scroll-fab {
  position: fixed;
  right: 16px;
  bottom: calc(var(--fab-dock-h, 0px) + 16px + env(safe-area-inset-bottom));
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand); color: #fff;
  border: none; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0,176,80,.38);
  opacity: 0; transform: translateY(8px) scale(.92);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 40;
}
.scroll-fab.show { opacity: 1; transform: none; pointer-events: auto; }
.scroll-fab:active { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) { .scroll-fab { transition: none; } }


.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(var(--safe-top), env(safe-area-inset-top)) 28px 0;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
.statusbar .icons {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
}


.appbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 10px;
  flex-shrink: 0;
}
.appbar .title {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-align: center;
  color: var(--ink);
}
.appbar .spacer { width: 36px; height: 36px; flex-shrink: 0; }


.iconbtn {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: transparent; border: 0;
  cursor: pointer; color: var(--ink);
  flex-shrink: 0;
  font-family: inherit;
}
.iconbtn:hover { background: var(--bg-2); }


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 52px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  transition: opacity .15s ease, transform .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { opacity: .92; }
.btn-primary:active { background: var(--brand-press); transform: scale(.98); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-outline {
  background: transparent;
  color: var(--ink-2);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { background: var(--bg-2); }
.btn-block { width: 100%; }


.action-dock {
  flex-shrink: 0;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: linear-gradient(to bottom, transparent, var(--bg) 28px);
}
.action-dock.solid {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}


.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 14px;
}


.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.chip.brand  { background: var(--brand-tint);  color: var(--brand-ink); }
.chip.danger { background: var(--danger-tint); color: var(--danger); }
.chip.warn   { background: var(--warn-tint);   color: var(--warn); }
.chip.info   { background: var(--info-tint);   color: var(--info); }
.chip.outline { background: transparent; border-color: var(--line); color: var(--ink-3); }
.chip.active, .chip--active { background: var(--ink); color: var(--bg); border-color: transparent; }
.chip:hover:not(.active):not(.chip--active) { background: var(--bg-3); }


.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-4);
  flex-shrink: 0;
}
.dot.live { background: var(--brand); animation: dot-pulse 1.8s ease-in-out infinite; }
.dot.warn   { background: var(--warn); }
.dot.danger { background: var(--danger); }
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,176,80,.5); }
  50%       { box-shadow: 0 0 0 5px rgba(0,176,80,0); }
}


.field {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 14px;
  background: var(--bg-2);
  border-radius: var(--r-md);
  gap: 10px;
  color: var(--ink);
}
.field input {
  flex: 1;
  border: 0; outline: none;
  background: transparent;
  font-size: 16px; color: var(--ink);
  font-family: inherit;
  min-width: 0;
}
.field input::placeholder { color: var(--ink-4); }
.map-search-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-3); border: 0;
  display: grid; place-items: center; cursor: pointer;
  color: var(--ink-3); flex-shrink: 0;
}
.map-search-close:hover { background: var(--line); }


.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  box-shadow: 0 -10px 30px rgba(0,0,0,.10);
  padding-bottom: max(var(--safe-bottom), env(safe-area-inset-bottom));
  z-index: 6;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.2,.85,.2,1);
  pointer-events: none;
}
.sheet.open {
  transform: translateY(0);
  pointer-events: auto;
}
.sheet .handle {
  width: 36px; height: 4px;
  background: var(--ink-5);
  border-radius: 999px;
  margin: 8px auto 4px;
  opacity: .6;
}


.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 18px 22px 6px;
}


.tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
  padding-bottom: max(var(--safe-bottom), env(safe-area-inset-bottom));
  background: var(--bg);
  flex-shrink: 0;
}
.tabbar-3col { grid-template-columns: repeat(3, 1fr); }
.tab {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; padding: 8px 0;
  border: 0; background: transparent;
  cursor: pointer; color: var(--ink-4);
  font-size: 10px; font-weight: 500;
  font-family: inherit;
  letter-spacing: .02em;
  transition: color .15s;
}
.tab.active { color: var(--brand); }


.fade-in { animation: fadeIn .22s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}


.toast {
  position: fixed; bottom: 24px; right: 24px; max-width: 360px;
  padding: 12px 16px; border-radius: 10px;
  background: var(--ink); color: var(--bg);
  font-size: 14px; box-shadow: var(--shadow-3); z-index: 100;
  animation: fadeIn 200ms ease-out;
}


.map-page {
  position: fixed; inset: 0;
  width: 100vw; height: 100dvh;
  overflow: hidden;
  background: var(--bg-3);
}

#map {
  position: fixed; inset: 0;
  z-index: 0;
  width: 100vw; height: 100dvh;
}

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


.map-top-overlay {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 10;
  padding: max(12px, env(safe-area-inset-top)) 12px 0;
  pointer-events: none;
}
.map-top-overlay > * { pointer-events: auto; }


.map-search-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  border: 1px solid var(--line-soft);
  overflow: hidden; z-index: 20;
  max-height: 260px; overflow-y: auto;
}
.map-search-suggestion {
  display: block; width: 100%; text-align: left;
  padding: 12px 16px; border: 0; background: none;
  font-size: 14px; color: var(--ink-2); cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
  font-family: inherit;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.map-search-suggestion:last-child { border-bottom: 0; }
.map-search-suggestion:hover { background: var(--bg-2); }


.map-chips-row {
  display: flex; gap: 8px;
  padding: 8px 0 10px;
  overflow-x: auto; scrollbar-width: none;
}
.map-chips-row::-webkit-scrollbar { display: none; }


.map-locate-btn {
  position: absolute !important;
  right: 14px; bottom: 14px; z-index: 4;
  width: 44px; height: 44px; border-radius: 22px;
  background: var(--bg); border: 0;
  box-shadow: var(--shadow-2);
  display: grid; place-items: center;
  cursor: pointer; color: var(--info);
  transition: background .15s, bottom .3s cubic-bezier(.2,.85,.2,1);
}
.map-locate-btn.sheet-open { bottom: 220px; }
.map-locate-btn:hover { background: var(--bg-2); }


.map-list-panel {
  position: absolute; inset: 0; z-index: 14;
  background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.2,.85,.2,1);
  pointer-events: none;
  padding-top: max(0px, env(safe-area-inset-top));
}
.map-list-panel.open {
  transform: translateY(0);
  pointer-events: auto;
}
.map-list-panel-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.map-list-panel-header .logo-word {
  
  height: 22px; width: auto; display: block; margin-right: auto;
}
.map-list-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
}
.map-list-scroll::-webkit-scrollbar { display: none; }


.station-list-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  cursor: pointer; text-align: left; width: 100%;
  font-family: inherit;
  transition: background .15s;
  text-decoration: none;
}
.station-list-card:hover { background: var(--bg-2); }
.station-list-card:active { transform: scale(.99); }
.station-list-card .avatar {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--brand-tint); flex-shrink: 0;
  display: grid; place-items: center; color: var(--brand);
}
.station-list-card .body { flex: 1; min-width: 0; }
.station-list-card .row-1 { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.station-list-card .name {
  font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
  color: var(--ink);
}
.station-list-card .addr {
  font-size: 13px; color: var(--ink-3); margin-bottom: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.station-list-card .chips-row { display: flex; gap: 6px; flex-wrap: wrap; }


.ev-pin-wrap { background: none !important; border: none !important; }
.ev-pin {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 600;
  box-shadow: var(--shadow-2);
  white-space: nowrap; position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
  font-family: var(--font-sans);
  cursor: pointer;
}
.ev-pin.busy { background: var(--danger); }
.ev-pin.active {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0,176,80,.45);
}
.ev-pin.active.busy { box-shadow: 0 6px 14px rgba(229,72,77,.45); }
.ev-pin::after {
  content: "";
  position: absolute; left: 50%; bottom: -5px;
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: inherit;
  border-radius: 2px;
}


.ev-map-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); z-index: 20;
}
.ev-map-loading__spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  animation: ev-spin .9s linear infinite;
}
@keyframes ev-spin { to { transform: rotate(360deg); } }


.location-banner {
  position: fixed; top: max(16px, env(safe-area-inset-top));
  left: 50%; transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-3); z-index: 100;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: fadeIn .2s ease;
}


.section-label {
  padding: 16px 20px 8px;
  font-size: 11px; font-weight: 700;
  color: var(--ink-4); letter-spacing: .09em; text-transform: uppercase;
}


.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot.live {
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(0,176,80,.45);
  animation: dotPulse 1.8s ease-out infinite;
}
.dot.danger { background: var(--danger); }
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,176,80,.45); }
  70%  { box-shadow: 0 0 0 7px rgba(0,176,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,176,80,0); }
}


.list-card { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); }
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--line-soft);
  background: var(--surface); width: 100%; text-align: left; border: 0;
}
.row:last-child { border-bottom: 0; }
.row.tap { cursor: pointer; }
.row.tap:hover { background: var(--bg-2); }
.row .lead { flex-shrink: 0; }
.row .body { flex: 1; min-width: 0; }
.row .t1 { font-size: 15px; font-weight: 600; letter-spacing: -.005em; color: var(--ink); }
.row .t2 { font-size: 13px; color: var(--ink-3); margin-top: 1px; }


.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num-xl { font-size: 52px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }


.flow-header { flex: 0 0 auto; background: var(--bg); border-bottom: 1px solid var(--line-soft); }
.flow-header__brand {
  display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 10px;
}
.flow-header__steps { display: flex; align-items: flex-start; padding: 10px 16px 14px; gap: 0; }
.flow-header__step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; min-width: 56px; }
.flow-header__circle {
  width: 34px; height: 34px; border-radius: 17px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums;
  transition: all .15s ease;
}
.flow-header__circle.active { background: var(--ink-2); color: var(--bg); border: 1.5px solid var(--ink-2); box-shadow: 0 0 0 4px rgba(0,176,80,.18); }
.flow-header__circle.done   { background: var(--brand); color: #fff; border: 1.5px solid var(--brand); }
.flow-header__circle.pending { background: transparent; color: var(--ink-4); border: 1.5px solid var(--ink-5); }
.flow-header__label { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.flow-header__label.active { color: var(--ink); }
.flow-header__label.done   { color: var(--brand); }
.flow-header__label.pending { color: var(--ink-4); }
.flow-header__connector { flex: 1; height: 1.5px; margin-top: 17px; }
.flow-header__connector.done { background: var(--brand); }
.flow-header__connector.pending { background: var(--line); }


.action-dock.solid { background: var(--bg); border-top: 1px solid var(--line-soft); box-shadow: 0 -2px 10px rgba(15,17,22,.05); }


.toggle-switch { width: 44px; height: 26px; border-radius: 13px; position: relative; border: 0; cursor: pointer; transition: background .15s ease; background: var(--bg-3); flex-shrink: 0; }
.toggle-switch.on { background: var(--brand); }
.toggle-switch__thumb { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 11px; background: #fff; transition: left .15s ease; box-shadow: var(--shadow-1); }
.toggle-switch.on .toggle-switch__thumb { left: 20px; }


.field .leading { flex-shrink: 0; font-size: 15px; font-weight: 500; color: var(--ink-3); padding-right: 6px; border-right: 1px solid var(--line); margin-right: 2px; }


@keyframes tickPop  { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes powerPulse { 0% { box-shadow: 0 0 0 0 rgba(0,176,80,.45); } 70% { box-shadow: 0 0 0 7px rgba(0,176,80,0); } 100% { box-shadow: 0 0 0 0 rgba(0,176,80,0); } }
@keyframes ppFade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes ppSlide  { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes plugSlide { 0%, 8% { transform: translateX(-30px); } 42%, 70% { transform: translateX(0); } 100% { transform: translateX(-30px); } }
@keyframes sparkPulse { 0%, 30%, 80%, 100% { opacity: 0; transform: scale(.6); } 45%, 65% { opacity: 1; transform: scale(1.15); } }
@keyframes glowPulse  { 0%, 30%, 80%, 100% { opacity: 0; } 45%, 65% { opacity: 1; } }
@keyframes carBob     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes otpShake   { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes otpFade    { from { opacity: 0; } to { opacity: 1; } }
@keyframes otpSlide   { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes asFade     { from { opacity: 0; } to { opacity: 1; } }
@keyframes asSp       { to { transform: rotate(360deg); } }
@keyframes rpSp       { to { transform: rotate(360deg); } }


.otp-cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp-cells input {
  width: 100%; aspect-ratio: 1 / 1.18; text-align: center;
  font-size: 24px; font-weight: 600; font-family: var(--font-sans);
  background: var(--bg-2); border: 1.5px solid transparent; border-radius: 12px;
  outline: none; font-variant-numeric: tabular-nums; color: var(--ink);
  transition: border .15s ease, background .15s ease;
}
.otp-cells input:focus { border-color: var(--brand); background: var(--bg); }
.otp-cells.filled input { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-ink); }
.otp-cells.err input { border-color: var(--danger); background: var(--danger-tint); color: var(--danger); }
.otp-cells.err { animation: otpShake .32s; }



.otp-sheet-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); z-index: 20; animation: otpFade .2s ease both; }


.as-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); z-index: 12; display: grid; place-items: center; animation: asFade .2s ease both; }
.as-modal-card { background: var(--surface); border-radius: 18px; padding: 22px 24px; width: 82%; max-width: 320px; text-align: center; box-shadow: var(--shadow-3); }



.stepper { width: 100%; padding: 10px 20px 14px; }
.stepper__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; width: 100%;
}
.stepper__step {
  display: flex; align-items: center; flex: 1;
  transition: opacity .3s cubic-bezier(.2,.8,.2,1);
}
.stepper__step:last-child { flex: 0; }
.stepper__circle {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  font-size: 10px; font-weight: 700;
  transition: background .3s cubic-bezier(.2,.8,.2,1), color .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s cubic-bezier(.2,.8,.2,1);
}
.stepper__label { display: none; }
.stepper__line {
  flex: 1; height: 2px; margin: 0 2px;
  transition: background .3s cubic-bezier(.2,.8,.2,1);
}


.stepper__step.is-pending .stepper__circle {
  background: #9CA3AF; color: #fff;
}
.stepper__step.is-pending .stepper__line { background: #E5E7EB; }

.stepper__step.is-active .stepper__circle {
  background: #2563EB; color: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,.18);
}
.stepper__step.is-active .stepper__line { background: #E5E7EB; }

.stepper__step.is-complete .stepper__circle {
  background: #16A34A; color: #fff;
}
.stepper__step.is-complete .stepper__line { background: #16A34A; }



.print-invoice-header { display: none; }

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



.live-fab {
  position: fixed;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 1200;
  display: none;            
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 18px 0 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 176, 80, .42), 0 2px 6px rgba(15, 17, 22, .18);
  -webkit-tap-highlight-color: transparent;
  animation: livefabIn .32s cubic-bezier(.2, .85, .2, 1) both;
}
.live-fab:active { transform: scale(.97); }
.live-fab__pulse {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border-radius: 50%;
  background: var(--brand);
  z-index: -1;
  animation: livefabPulse 1.8s ease-out infinite;
}
.live-fab__core {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.live-fab__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.live-fab__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: livefabBlink 1.4s ease-in-out infinite;
}
@keyframes livefabIn {
  from { opacity: 0; transform: translateY(12px) scale(.92); }
  to   { opacity: 1; transform: none; }
}
@keyframes livefabPulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}
@keyframes livefabBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}
