:root {
  --ink: #12161f;
  --navy: #1a2744;
  --navy-2: #243656;
  --amber: #f0b429;
  --amber-deep: #c48912;
  --sand: #f4efe6;
  --porcelain: #fbfaf7;
  --line: #e6dfd2;
  --mist: #8b93a7;
  --slate: #3d4a5c;
  --teal: #0f7b6c;
  --coral: #d64545;
  --white: #ffffff;
  --shadow: 0 18px 50px #12161f33;
  --font: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", sans-serif;
  --display: "Syne", "IBM Plex Sans", sans-serif;
  --fids: "Barlow Condensed", "IBM Plex Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: var(--font); color: var(--ink); background: var(--sand); }
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.num, .fids { font-family: var(--fids); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===== Demo chrome ===== */
.chrome {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  background:
    radial-gradient(900px 420px at 10% -10%, #f0b42933, transparent 60%),
    linear-gradient(180deg, #ece6da 0%, #f4efe6 40%, #e7e1d6 100%);
}
.chrome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: var(--navy);
  color: var(--sand);
  position: sticky;
  top: 0;
  z-index: 40;
}
.chrome-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: .04em;
}
.chrome-brand img { width: 28px; height: 28px; }
.chrome-brand small { display: block; font-family: var(--font); font-weight: 500; letter-spacing: 0; opacity: .7; font-size: 11px; }
.chrome-tabs, .lang-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.chrome-tab, .lang-btn, .ghost-btn {
  border: 1px solid #ffffff22;
  background: transparent;
  color: var(--sand);
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.chrome-tab.on, .lang-btn.on { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.ghost-btn { background: #ffffff10; }
.chrome-stage {
  flex: 1;
  display: grid;
  place-items: start center;
  padding: 20px 16px 28px;
  overflow: auto;
  min-width: 0;
  min-height: 0;
}

/* ===== Login portal ===== */
.portal {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  background: var(--navy);
  color: var(--sand);
}
.portal-hero {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, #1a2744ee, #12161fdd),
    repeating-linear-gradient(-18deg, #f0b42910 0 2px, transparent 2px 18px);
}
.portal-kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); }
.portal-hero h1 { font-family: var(--display); font-size: clamp(40px, 6vw, 68px); line-height: .95; margin: 12px 0 16px; }
.portal-hero p { max-width: 420px; color: #d8d2c6; line-height: 1.55; }
.fids-board {
  margin-top: 28px;
  background: #0d1320;
  border: 1px solid #f0b42944;
  border-radius: 8px;
  overflow: hidden;
}
.fids-row {
  display: grid;
  grid-template-columns: 1.1fr .8fr 1.2fr .9fr;
  gap: 8px;
  padding: 10px 14px;
  font-family: var(--fids);
  font-size: 18px;
  letter-spacing: .06em;
  border-top: 1px solid #ffffff10;
}
.fids-row:first-child { border-top: 0; color: var(--amber); font-size: 13px; letter-spacing: .16em; }
.fids-live { color: #7dcec0; }
.fids-delay { color: #ff8a7a; }
.portal-panel { background: var(--porcelain); color: var(--ink); padding: 36px 32px; display: flex; flex-direction: column; }
.portal-langs { display: flex; gap: 6px; margin-bottom: 18px; }
.portal-langs button {
  border: 1px solid var(--line);
  background: #fff;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.portal-langs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 16px; }
.role-card {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 14px;
}
.role-card.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.role-card b { display: block; font-size: 14px; margin-bottom: 4px; }
.role-card span { font-size: 12px; color: var(--slate); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 600; color: var(--slate); }
.field-input, .field-select, .field-area {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  font-size: 14px;
}
.field-area { height: 84px; padding: 10px 12px; resize: vertical; }
.btn {
  border: 0;
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}
.btn-primary { background: var(--amber); color: var(--ink); width: 100%; }
.btn-navy { background: var(--navy); color: var(--sand); }
.btn-ghost { background: #fff; border: 1px solid var(--line); }
.btn-danger { background: var(--coral); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { flex: 1; }
.hint { font-size: 12px; color: var(--mist); margin: 8px 0 0; }
@media (max-width: 900px) {
  .portal { grid-template-columns: 1fr; }
  .portal-hero { min-height: 280px; padding: 28px 22px; }
}

/* ===== Phone ===== */
.mini-stage {
  width: 390px;
  min-width: 390px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.mini-phone {
  position: relative;
  width: 390px;
  min-width: 390px;
  max-width: 390px;
  height: 844px;
  flex-shrink: 0;
  background: #0c0e12;
  border-radius: 46px;
  padding: 10px;
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px #ffffff1a,
    inset 0 0 0 8px #16181e;
  display: flex;
  flex-direction: column;
}
.mini-phone::before,
.mini-phone::after {
  content: "";
  position: absolute;
  background: #2a2e36;
  z-index: 2;
}
.mini-phone::before {
  left: -3px;
  top: 118px;
  width: 3px;
  height: 26px;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 46px 0 #2a2e36, 0 84px 0 #2a2e36;
}
.mini-phone::after {
  right: -3px;
  top: 168px;
  width: 3px;
  height: 62px;
  border-radius: 0 2px 2px 0;
}
.mini-body {
  flex: 1;
  background: var(--porcelain);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.status-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 52px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 22px 0;
  color: var(--ink);
  pointer-events: none;
  font-family: var(--fids);
  font-size: 15px;
  letter-spacing: .04em;
}
.sb-time { font-weight: 600; }
.island {
  width: 112px;
  height: 32px;
  background: #0c0e12;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px #ffffff10;
}
.sb-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 12px;
}
.sig { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.sig em {
  display: block;
  width: 3px;
  background: currentColor;
  border-radius: 1px;
}
.sig em:nth-child(1) { height: 3px; }
.sig em:nth-child(2) { height: 5px; }
.sig em:nth-child(3) { height: 7px; }
.sig em:nth-child(4) { height: 10px; opacity: .35; }
.batt {
  width: 22px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  position: relative;
  opacity: .9;
}
.batt::after {
  content: "";
  position: absolute;
  right: -3px; top: 3px;
  width: 2px; height: 4px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
}
.batt em {
  display: block;
  height: 100%;
  width: 78%;
  background: var(--teal);
  border-radius: 1px;
}
.mini-body:has(.map-mode) .status-bar { color: #fff; text-shadow: 0 1px 4px #0007; }
.mini-body:has(.map-mode) .batt em { background: #7dcec0; }
.mini-scroll { flex: 1; overflow: auto; padding: 56px 16px 102px; }
.mini-scroll.map-mode { padding: 0; }
.tabbar {
  position: absolute;
  left: 10px; right: 10px; bottom: 22px;
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  background: #fffcf8f2;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 4px;
  backdrop-filter: blur(16px);
  z-index: 18;
  box-shadow: 0 8px 24px #12161f14;
}
.tab {
  border: 0;
  background: transparent;
  border-radius: 18px;
  padding: 7px 4px 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--mist);
}
.tab svg { width: 22px; height: 22px; display: block; margin: 0 auto 2px; }
.tab.on { background: var(--navy); color: var(--sand); }
.tab.on svg { color: var(--amber); }
.home-ind {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 118px;
  height: 4px;
  margin-left: -59px;
  background: #12161f;
  border-radius: 4px;
  z-index: 19;
  pointer-events: none;
}

/* ===== Map sheet ===== */
.map-canvas {
  height: 46%;
  background:
    linear-gradient(#1a274411, #1a274411),
    repeating-linear-gradient(90deg, #d9d2c4 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, #d9d2c4 0 1px, transparent 1px 28px),
    #e8e1d4;
  position: relative;
  overflow: hidden;
}
.map-road {
  position: absolute;
  background: #c9c0b0;
  border-radius: 6px;
}
.pin {
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
}
.pin.a { background: var(--navy); }
.pin.b { background: var(--amber); }
.pin.car { background: var(--teal); border-radius: 4px; transform: none; }
.pin-label {
  position: absolute;
  transform: translate(-30%, 18px);
  font-size: 10px;
  font-weight: 700;
  background: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.map-stage { position: relative; }
.map-stage .leaflet-map { display: block; }
.map-stage.fleet { border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
.map-stage .map-attrib {
  position: absolute;
  bottom: 22px;
  left: 12px;
  z-index: 5;
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 3px #0008;
}
.map-float {
  position: absolute;
  top: 56px;
  left: 12px;
  right: 12px;
  z-index: 12;
}
.map-float .seg {
  background: #fffcf8ee;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px #12161f22;
  margin: 0;
}
.sheet {
  background: var(--porcelain);
  border-radius: 22px 22px 0 0;
  margin-top: -22px;
  padding: 16px 16px 96px;
  position: relative;
  box-shadow: 0 -8px 24px #12161f14;
  z-index: 6;
}
.sheet-handle { width: 42px; height: 4px; background: var(--line); border-radius: 4px; margin: 0 auto 12px; }
.search-pill {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 6px 0 16px;
  height: 48px;
  box-shadow: 0 8px 20px #12161f0d;
  margin-bottom: 10px;
}
.search-pill .field-input { border: 0; height: 46px; background: transparent; width: 100%; }
.chips.slim { margin: 0 0 8px; }
.route-pick {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  margin: 8px 0;
  align-items: stretch;
}
.route-pick.slim { padding: 8px 4px; border: 0; background: transparent; margin: 8px 0 4px; }
.route-pick .field-select { margin-bottom: 8px; }
.route-pick .field-select:last-child { margin-bottom: 0; }
.spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
}
.spine .line {
  width: 2px;
  flex: 1;
  min-height: 16px;
  margin: 4px 0;
  background: linear-gradient(var(--navy), var(--amber));
  border-radius: 2px;
}
.spine.tall { min-height: 72px; }
.trip-card {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 10px;
  text-align: left;
  width: 100%;
  align-items: center;
}
.trip-card.nested {
  border: 0;
  padding: 0;
  margin: 0 0 8px;
  background: transparent;
}
.trip-mid { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trip-mid b { font-size: 14px; }
.trip-meta { font-size: 11px; color: var(--mist); }
.trip-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.veh-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 12px; }
.veh {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 10px 8px;
  text-align: left;
}
.veh.on { border-color: var(--navy); background: #1a274408; box-shadow: inset 0 0 0 1px var(--navy); }
.veh-mark { display: block; width: 26px; height: 26px; color: var(--navy); }
.veh-mark svg { width: 26px; height: 26px; }
.veh b { display: block; font-size: 13px; margin: 4px 0 2px; }
.veh small { color: var(--mist); font-size: 10px; }
.fare-card {
  background: var(--navy);
  color: var(--sand);
  border-radius: 16px;
  padding: 14px;
  margin: 10px 0;
}
.fare-card .kv span { color: #cfc8ba; }
.fare-card .num { font-size: 28px; color: var(--amber); }
.pay-mark {
  display: inline-block;
  width: 22px;
  height: 14px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}
.pay-mark.stripe { background: linear-gradient(90deg, #635bff, #0a2540); }
.pay-mark.paypal { background: linear-gradient(90deg, #003087, #009cde); }
.pay-mark.wise { background: #9fe870; }
.pay-mark.revolut { background: #191c1f; }
.cta { margin-top: 8px; height: 50px; border-radius: 14px; font-size: 15px; }
.app-head { margin-bottom: 12px; }
.eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  font-weight: 700;
}
.profile-hero, .drv-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 4px 2px 16px;
}
.drv-hero { justify-content: space-between; }
.profile-hero h2, .drv-hero h2 { margin: 0; font-family: var(--display); font-size: 22px; }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--amber);
  display: inline-grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.sm { width: 36px; height: 36px; font-size: 11px; }
.cell {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px;
  margin-bottom: 10px;
  text-align: left;
}
.cell small { display: block; color: var(--mist); font-weight: 500; margin-top: 2px; }
.cell i { color: var(--mist); font-style: normal; font-size: 18px; }
.msg-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 8px;
}
.msg-row p { margin: 4px 0 0; }
.chat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  margin: 10px 0;
}
.chat-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.chat-hd span.muted { display: block; }
.chat-log { max-height: 180px; overflow: auto; }
.composer { display: flex; gap: 8px; margin-top: 8px; }
.composer .field-input { flex: 1; }
.send-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  color: var(--amber);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0;
}
.send-btn svg { width: 18px; height: 18px; }
.pay-line { display: flex; justify-content: space-between; margin: 8px 0 0; font-size: 13px; }
.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: var(--sand);
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  font-weight: 700;
  font-size: 12px;
}
.switch i {
  width: 36px;
  height: 22px;
  background: #c9c0b0;
  border-radius: 999px;
  position: relative;
}
.switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
}
.switch.on { background: #0f7b6c22; color: var(--teal); }
.switch.on i { background: var(--teal); }
.switch.on i::after { left: 16px; }
.btn-row.tight { flex-wrap: wrap; margin-bottom: 10px; }
.btn-row.tight .btn { flex: 0 1 auto; height: 34px; font-size: 12px; padding: 0 10px; }
.fids-board.mini { margin: 0 0 10px; }
@keyframes pulse-offer {
  0%, 100% { box-shadow: 0 0 0 0 #f0b42955; }
  50% { box-shadow: 0 0 0 8px #f0b42900; }
}
.pulse { animation: pulse-offer 1.6s ease-out infinite; }
.addr-row {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.from { background: var(--navy); }
.dot.to { background: var(--amber); }

/* ===== Cards / lists ===== */
.page-title { font-family: var(--display); font-size: 22px; margin: 0 0 4px; }
.page-desc { margin: 0 0 14px; color: var(--slate); font-size: 13px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}
.card-hd { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
.muted { color: var(--mist); font-size: 12px; }
.kv { display: grid; gap: 6px; font-size: 13px; }
.kv div { display: flex; justify-content: space-between; gap: 8px; }
.kv span { color: var(--mist); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.seg { display: flex; background: var(--sand); border-radius: 10px; padding: 3px; margin-bottom: 10px; }
.seg button { flex: 1; border: 0; background: transparent; height: 32px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--slate); }
.seg button.on { background: #fff; color: var(--ink); }
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.tag-wait { background: #f0b42933; color: #8a5a00; }
.tag-ok { background: #0f7b6c22; color: var(--teal); }
.tag-bad { background: #d6454522; color: var(--coral); }
.tag-navy { background: #1a274422; color: var(--navy); }
.tag-mist { background: #8b93a722; color: var(--slate); }
.stars button { border: 0; background: transparent; font-size: 22px; color: var(--line); padding: 0 2px; }
.stars button.on { color: var(--amber); }
.wait-clock {
  background: #0d1320;
  color: var(--sand);
  border-radius: 12px;
  padding: 12px;
  font-family: var(--fids);
  letter-spacing: .08em;
}
.wait-clock .big { font-size: 36px; color: var(--amber); line-height: 1; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stat b { display: block; font-family: var(--fids); font-size: 26px; }
.stat span { font-size: 11px; color: var(--mist); }
.empty { text-align: center; color: var(--mist); padding: 28px 12px; font-size: 13px; }
.empty svg { width: 36px; height: 36px; margin: 0 auto 8px; display: block; opacity: .4; }

/* ===== Admin ===== */
.admin {
  width: min(1280px, 100%);
  height: min(860px, calc(100vh - 92px));
  background: var(--porcelain);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: 52px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
}
.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--navy);
  color: var(--sand);
}
.admin-body { display: grid; grid-template-columns: 210px 1fr; min-height: 0; }
.sidebar { background: #f7f3ec; border-right: 1px solid var(--line); overflow: auto; padding: 10px; }
.nav-g { font-size: 11px; color: var(--mist); letter-spacing: .08em; text-transform: uppercase; margin: 10px 8px 6px; }
.nav-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
}
.nav-item.on { background: var(--navy); color: #fff; }
.content { overflow: auto; padding: 16px 18px 24px; background: var(--porcelain); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; color: var(--mist); background: #faf7f1; }
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.dash-grid.wide { grid-template-columns: repeat(4, 1fr); }
.admin-hd { align-items: flex-end; margin-bottom: 14px; }
.admin-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.admin-q { max-width: 280px; }
.admin-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-top .rbac { background: #ffffff18; }
.admin-top .rbac button { color: #d8d2c6; }
.admin-top .rbac button.on { background: var(--amber); color: var(--ink); }
.admin-top .chrome-brand small { display: inline; margin-left: 8px; }
.sub-title { font-family: var(--display); font-size: 16px; margin: 18px 0 8px; }
.td-ops { display: flex; flex-wrap: wrap; gap: 4px; }
.field-input.slim { height: 34px; width: 88px; padding: 0 8px; }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 10px 0; }
.doc-card {
  background: #0d1320;
  color: #d8d2c6;
  border-radius: 10px;
  padding: 12px 10px;
  min-height: 72px;
  font-family: var(--fids);
  letter-spacing: .06em;
}
.doc-card span { display: block; color: var(--amber); font-size: 11px; margin-bottom: 6px; }
.bars.gold i { background: var(--amber); }
.dash-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.dash-card b { font-family: var(--fids); font-size: 28px; display: block; }
.ai-list { display: grid; gap: 8px; }
.ai-item { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; }
.toast { background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 13px; }
.toast.err { background: var(--coral); }
.toast.ok { background: var(--teal); }
.modal-mask { position: fixed; inset: 0; background: #12161f66; z-index: 70; display: grid; place-items: end center; }
.modal {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 16px 16px 22px;
  max-height: 80vh;
  overflow: auto;
}
.sheet-x {
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--slate);
  font-size: 14px;
  line-height: 1;
  margin-left: auto;
}
.modal::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  margin: 0 auto 12px;
}
.mini-phone .modal-mask {
  position: absolute;
  inset: 10px;
  border-radius: 36px;
  place-items: end stretch;
  overflow: hidden;
  background: #12161f55;
}
.mini-phone .modal {
  width: 100%;
  max-height: 78%;
  padding-bottom: 28px;
}
.mini-phone .toast-wrap {
  position: absolute;
  left: 50%;
  bottom: 108px;
  transform: translateX(-50%);
  z-index: 90;
  pointer-events: none;
}
.mini-phone .toast { font-size: 12px; white-space: nowrap; }
.admin .modal-mask { place-items: center; }
.admin .modal { border-radius: 16px; width: min(560px, 92%); }
.receipt {
  background: #fff;
  border: 1px dashed var(--navy);
  padding: 16px;
  font-size: 13px;
}
.evidence { background: #0d1320; color: #d8d2c6; border-radius: 12px; padding: 12px; font-size: 12px; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-opt { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px; text-align: left; display: flex; align-items: center; }
.pay-opt.on { border-color: var(--navy); }
.leaflet-map, .map-iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
  background: #dce4dc;
}
.map-attrib { margin: 6px 12px 0; font-size: 10px; color: var(--mist); }
.map-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(4px);
}
.map-pin i {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px #0004;
}
.map-pin span {
  margin-top: 4px;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 1px 4px #0002;
}
.map-pin-a i { background: var(--navy); }
.map-pin-b i { background: var(--amber); }
.map-pin-car i, .map-pin-busy i, .map-pin-off i {
  border-radius: 4px;
  transform: none;
  width: 16px;
  height: 10px;
}
.map-pin-car i { background: var(--teal); }
.map-pin-busy i { background: var(--coral); }
.map-pin-off i { background: var(--mist); }
.bubble { margin: 6px 0; padding: 8px 10px; background: var(--sand); border-radius: 10px; font-size: 13px; }
.bubble.me { background: #1a274418; text-align: right; }
.offer { border-color: var(--amber); background: #fff8e8; }
.seg.wrap { flex-wrap: wrap; }
.seg.wrap button { flex: 0 0 auto; padding: 0 8px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 72px; margin: 10px 0 6px; }
.bars i { flex: 1; background: var(--navy); border-radius: 4px 4px 0 0; display: block; min-height: 4px; }
.maplibregl-ctrl-top-right { top: 6px; right: 6px; }
.maplibregl-ctrl button { width: 24px !important; height: 24px !important; }
.modal .leaflet-map { height: 180px; border-radius: 12px; overflow: hidden; }
.mini-scroll.map-mode .leaflet-map { border-radius: 0; }
@media (max-width: 1100px) {
  .dash-grid, .dash-grid.wide, .admin-split, .doc-grid { grid-template-columns: 1fr 1fr; }
  .admin { height: auto; min-height: calc(100vh - 92px); }
  .admin-body { grid-template-columns: 1fr; }
  .sidebar { display: flex; gap: 6px; overflow: auto; }
}
