:root {
  --brand: #0e7c66;
  --brand-dark: #095c4c;
  --brand-soft: #e3f4ef;
  --accent: #ff6b2c;
  --ink: #12181f;
  --muted: #66707a;
  --line: #e4e7ea;
  --bg: #f4f6f7;
  --card: #fff;
  --danger: #d93a3a;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(18, 24, 31, .14);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 13px 18px; font-weight: 600; cursor: pointer;
  background: var(--brand); color: #fff; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn.accent:disabled { background: #b9c2c8; cursor: default; }
.btn.block { width: 100%; }
.btn.big { padding: 16px 20px; font-size: 17px; }
.btn.ghost { background: var(--bg); color: var(--ink); }
.btn.ghost:hover { background: #e8ebed; }
.btn.danger { background: #fdecec; color: var(--danger); }
.btn.danger:hover { background: #fadada; }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: #e95a1d; }
.btn.small { padding: 8px 12px; font-size: 13px; border-radius: 10px; }

.field { display: block; margin-bottom: 10px; }
.field > span { display: block; font-size: 12px; color: var(--muted); margin: 0 0 4px 2px; }
.input {
  width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 12px;
  padding: 12px 14px; outline: none; transition: border-color .15s;
}
.input:focus { border-color: var(--brand); }

.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .5px; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 16px; font-weight: 900;
}
.logo-mark::after { content: "J"; }
.logo b { color: var(--accent); }

.toast {
  position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 9999;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow);
  max-width: calc(100% - 32px); font-weight: 500;
}
.badge { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--muted); }
.badge.searching { background: #fff1e8; color: #c2501b; }
.badge.assigned, .badge.arrived { background: #e6f0ff; color: #2756b8; }
.badge.riding { background: var(--brand-soft); color: var(--brand-dark); }
.badge.done { background: #eef0f2; color: #4a545e; }
.badge.cancelled { background: #fdecec; color: var(--danger); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.from { background: var(--brand); }
.dot.to { background: var(--accent); }

/* Маркеры карты */
.pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.pin.from { background: var(--brand); }
.pin.to { background: var(--accent); }
.car-marker { font-size: 26px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.car-marker.off { opacity: .45; filter: grayscale(1); }
.me-marker { width: 18px; height: 18px; border-radius: 50%; background: #2f7cf6; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47,124,246,.25); }
.leaflet-container { font: inherit; }

.login-wrap { min-height: 100%; display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 360px; background: #fff; border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 20px; margin: 18px 0 4px; }
.login-card p { color: var(--muted); margin: 0 0 18px; }
