@font-face {
  font-family: App;
  src: local("Tahoma");
}
* {
  box-sizing: border-box;
}
:root {
  font-family: App, Tahoma, Arial, sans-serif;
  color: #192321;
  background: #f5f6f2;
  font-size: 15px;
  --lime: #d6f24c;
  --ink: #192321;
  --muted: #6c7671;
  --border: #dce1db;
  letter-spacing: 0;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  transition:
    background 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 12px 16px;
  font-weight: 700;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
button:hover {
  background: #edf2e4;
  box-shadow: 0 4px 12px #19232112;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: #517300;
}
svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.5;
}
h2 {
  font-size: 23px;
  line-height: 1.5;
}
h3 {
  font-size: 17px;
  line-height: 1.6;
}
p {
  line-height: 1.9;
}
small,
.muted {
  color: var(--muted);
  line-height: 1.8;
}
.primary {
  background: var(--lime);
  border-color: var(--lime);
}
.dark {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.danger {
  color: #ac3535;
  background: #fff2ef;
  border-color: #f1d0c9;
}
.wide {
  width: 100%;
}
.icon {
  width: 44px;
  padding: 10px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 16px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 900;
}
.brand img {
  width: 44px;
  height: 44px;
}
.brand small {
  font-size: 10px;
  display: block;
  letter-spacing: 0;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: #557044;
  display: block;
  margin-bottom: 10px;
}
.chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 4px;
  background: #edf0e8;
  font-size: 12px;
  font-weight: 700;
}
.chip.searching {
  background: #f9edc6;
  color: #745614;
}
.chip.accepted,
.chip.arrived {
  background: #e0edfc;
  color: #255687;
}
.chip.ongoing {
  background: #e8e0f9;
  color: #684095;
}
.chip.completed {
  background: #e1f2e5;
  color: #266d3e;
}
.chip.cancelled {
  background: #f8e2df;
  color: #a24136;
}
.topbar {
  height: 80px;
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  position: relative;
  z-index: 800;
}
.topbar nav {
  display: flex;
  gap: 8px;
}
.topbar nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
}
.topbar nav button.selected {
  background: #edf2e3;
  color: var(--ink);
}
.account {
  display: flex;
  gap: 12px;
  align-items: center;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f0e8db;
  font-weight: 800;
}
.demo {
  background: #f5eccd;
  color: #785b13;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 3px;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-visual {
  background: #d6f24c;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px;
  position: relative;
  overflow: hidden;
}
.auth-visual h1 {
  font-size: 52px;
  max-width: 480px;
  margin: 40px 0 20px;
}
.auth-visual .route-art {
  height: 230px;
  width: 100%;
  background: url("/icon.svg") center/180px no-repeat;
  opacity: 0.65;
}
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
}
.auth-box {
  width: 100%;
  max-width: 410px;
}
.auth-box h2 {
  margin-bottom: 10px;
}
.role-links {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 20px;
  font-size: 13px;
}
.field {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cfd7ce;
  border-radius: 6px;
  min-height: 47px;
  background: #fff;
  padding: 11px 13px;
  outline: none;
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #718d1a;
  box-shadow: 0 0 0 3px #d6f24c44;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}
.map-shell {
  height: calc(100dvh - 80px);
  min-height: 660px;
  position: relative;
}
.map {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #e8eddf;
}
.leaflet-container {
  font-family: Tahoma, Arial, sans-serif;
}
.ride-panel {
  position: absolute;
  top: 24px;
  bottom: 24px;
  right: 28px;
  width: 385px;
  z-index: 500;
  background: white;
  border: 1px solid #dce1db;
  border-radius: 8px;
  box-shadow: 0 15px 50px #2331221c;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel-title {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
.panel-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
}
.panel-body h3 {
  margin-bottom: 12px;
}
.panel-body .stack {
  gap: 14px;
}
.map-caption {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 450;
  background: #fff;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  max-width: 300px;
}
.map-caption small {
  display: block;
}
.journey {
  border-right: 2px solid #d0df8b;
  margin: 18px 4px;
  padding-right: 16px;
  display: grid;
  gap: 18px;
}
.journey small {
  display: block;
}
.fare {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.fare strong {
  font-size: 34px;
  font-weight: 800;
}
.bid {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 14px;
  margin-bottom: 12px;
}
.bid button {
  margin-top: 12px;
}
.big-pin {
  font-size: 28px;
  letter-spacing: 5px;
  direction: ltr;
  text-align: center;
  padding: 12px;
  background: #f4f7e9;
  border: 1px dashed #a8bd6a;
}
.empty {
  padding: 36px 18px;
  text-align: center;
  color: var(--muted);
}
.empty svg {
  width: 38px;
  height: 38px;
  margin-bottom: 15px;
}
.notice {
  background: #fff8e3;
  border: 1px solid #efe2b2;
  padding: 12px;
  border-radius: 5px;
  color: #715815;
  font-size: 13px;
}
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--border);
  margin-bottom: 28px;
  background: white;
}
.stat {
  padding: 24px;
  border-left: 1px solid var(--border);
}
.stat:last-child {
  border-left: 0;
}
.stat strong {
  display: block;
  font-size: 29px;
  margin: 10px 0;
}
.stat small {
  display: flex;
  gap: 8px;
  align-items: center;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: right;
}
th {
  font-size: 12px;
  background: #f0f3ec;
  color: #61705c;
  padding: 14px 18px;
}
td {
  padding: 17px 18px;
  border-bottom: 1px solid #e9ece6;
  font-size: 13px;
}
td button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
}
tbody tr:hover {
  background: #fafcf5;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.toolbar input {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  width: 280px;
}
.history-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.history-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 22px;
}
.history-item .journey {
  margin: 18px 0;
}
.profile {
  max-width: 680px;
}
.section {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.chat {
  max-height: 180px;
  overflow-y: auto;
  background: #f6f7f3;
  padding: 10px;
  font-size: 12px;
}
.chat p {
  padding: 6px 0;
}
.chat strong {
  color: #587627;
}
.online-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
}
.online-toggle input {
  accent-color: #63830e;
  width: 20px;
  height: 20px;
}
.map-dot {
  width: 24px;
  height: 24px;
  background: #192321;
  border: 4px solid #d6f24c;
  border-radius: 50%;
  box-shadow: 0 2px 8px #0004;
}
.map-dot.end {
  background: #f07d63;
  border-color: white;
}
.map-dot.driver {
  background: #4583d1;
  border-color: white;
}
.bottom-nav {
  display: none;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 8px;
  width: min(540px, calc(100% - 32px));
  padding: 24px;
  color: var(--ink);
  max-height: 88dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #17241f77;
  backdrop-filter: blur(3px);
}
dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
dialog footer {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.form-error {
  color: #a3312b;
  font-size: 13px;
  line-height: 1.8;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4000;
  background: #192321;
  color: #fff;
  border-radius: 7px;
  padding: 14px 22px;
  max-width: 90%;
  display: none;
  box-shadow: 0 5px 25px #0002;
}
.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}
.small-action {
  padding: 8px 10px;
  font-size: 12px;
  min-height: 36px;
}
.hint-row {
  margin-bottom: 18px;
}
.loading {
  min-height: 80vh;
  display: grid;
  place-items: center;
}
.mobile-brand {
  display: none;
}
.metric-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.rating-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.rating-stars button {
  color: #997322;
}
.driver-request {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.status-line {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #56703c;
}
.status-line:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7d9e36;
}
.details {
  display: grid;
  gap: 12px;
}
.details dt {
  color: var(--muted);
  font-size: 12px;
}
.details dd {
  margin: 4px 0 0;
}
.map-note {
  font-size: 11px;
  color: #66715b;
}
.leaflet-control-attribution {
  font-size: 10px !important;
}
.admin-banner {
  padding: 20px 0;
  display: flex;
  gap: 20px;
  align-items: center;
}
.admin-banner img {
  width: 48px;
}
.visually-hidden {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 1000px) {
  .account .name {
    display: none;
  }
  .topbar {
    padding: 0 20px;
  }
  .topbar nav button {
    padding: 10px;
  }
  .history-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .auth-visual {
    padding: 36px;
  }
  .auth-visual h1 {
    font-size: 38px;
  }
}
@media (max-width: 720px) {
  .leaflet-bottom { bottom: 80px; }
  h1 {
    font-size: 26px;
  }
  .auth {
    display: block;
  }
  .auth-visual {
    display: none;
  }
  .auth-main {
    min-height: 100dvh;
    padding: 28px;
  }
  .mobile-brand {
    display: flex;
    margin-bottom: 35px;
  }
  .topbar {
    height: 68px;
    padding: 0 16px;
  }
  .brand {
    font-size: 22px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .topbar nav {
    display: none;
  }
  .account {
    gap: 8px;
  }
  .account .avatar {
    display: none;
  }
  .map-shell {
    height: auto;
    min-height: calc(100dvh - 68px);
    padding-top: 265px;
    padding-bottom: 75px;
    display: flex;
    flex-direction: column;
  }
  .map {
    height: 340px;
    bottom: auto;
  }
  .ride-panel {
    position: relative;
    inset: auto;
    width: 100%;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -5px 25px #23312215;
    min-height: 360px;
    flex: 1;
    overflow: visible;
    border-bottom: 0;
  }
  .panel-title {
    padding: 20px;
  }
  .panel-body {
    padding: 20px;
    overflow: visible;
  }
  .map-caption {
    top: 14px;
    left: 14px;
    max-width: 240px;
    padding: 8px 12px;
    font-size: 12px;
  }
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 6px 4px max(6px, env(safe-area-inset-bottom));
  }
  .bottom-nav button {
    display: grid;
    justify-items: center;
    gap: 3px;
    border: 0;
    font-size: 10px;
    padding: 6px 10px;
    min-width: 66px;
    background: transparent;
    color: #687361;
  }
  .bottom-nav button.selected {
    color: #1b2e09;
    background: #eff5df;
  }
  .page {
    padding: 24px 16px 95px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }
  .stat strong {
    font-size: 24px;
  }
  .history-list {
    grid-template-columns: 1fr;
  }
  .grid2 {
    grid-template-columns: 1fr 1fr;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input {
    width: 100%;
  }
  dialog {
    padding: 20px;
  }
  .online-toggle {
    font-size: 11px;
  }
  .topbar .demo {
    display: none;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  #toast {
    bottom: 85px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
#connection-status:not([hidden]){position:fixed;top:80px;left:12px;right:12px;z-index:2000;padding:14px;background:#fff0d6;border:1px solid #dfbc78;color:#704709;border-radius:6px;text-align:center;font-size:13px}
