:root {
  --green: #315b4b;
  --orange: #bb7258;
  --cream: #fbf3e6;
  --ink: #274b3e;
  --muted: #526d60;
  --line: #d7ded0;
  --paper: #fffcf6;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { max-width: 1080px; margin: auto; padding: env(safe-area-inset-top) max(clamp(16px, 4vw, 45px), env(safe-area-inset-right)) env(safe-area-inset-bottom) max(clamp(16px, 4vw, 45px), env(safe-area-inset-left)); }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 850; letter-spacing: -.05em; }
.logo b { font-weight: 500; color: var(--muted); }
.mark { width: 41px; height: 41px; border-radius: 13px; }
.pilot { background: #e5ebe0; color: var(--green); border: 1px solid var(--line); border-radius: 99px; padding: 8px 11px; font-size: 10px; font-weight: 850; letter-spacing: .12em; white-space: nowrap; }
.hero { background: #e5ebe0; margin: 25px 0 24px; padding: 35px clamp(22px, 5vw, 52px); border-radius: 28px; border: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; color: #86513e; font-size: 11px; font-weight: 850; margin: 0 0 9px; }
.hero h1 { font-size: clamp(36px, 6vw, 66px); line-height: 1.02; letter-spacing: -.07em; margin: 0 0 14px; }
.hero h1 em { font-style: normal; color: #a35c43; }
.hero p:last-child { color: var(--muted); margin: 0; font-size: 14px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 8px 23px #315b4b0d; }
.installation { margin-bottom: 20px; padding: 0 22px; }
.installation summary { padding: 18px 0; min-height: 56px; cursor: pointer; font-size: 14px; font-weight: 800; }
.installation p { font-size: 13px; line-height: 1.55; margin: 0 0 16px; }
.installation-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.installation h3 { font-size: 15px; margin: 8px 0; }
.installation ol { padding-left: 20px; margin: 0 0 18px; font-size: 13px; line-height: 1.6; }
.installation li + li { margin-top: 8px; }
.installation #install-app { margin-bottom: 12px; }
.connection-status { padding: 11px 16px; border-radius: 14px; background: #e5ebe0; color: var(--green); margin-bottom: 17px; font-size: 13px; line-height: 1.45; }
.connection-status.waiting { background: #f4e4d6; color: #75452f; border: 1px solid #e2c5ad; }
.login { max-width: 530px; margin: auto auto 40px; }
.login h2, .workspace-head h2 { font-size: 27px; letter-spacing: -.05em; margin: 0 0 7px; }
.login p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0 0 20px; }
.tabs { display: flex; background: #e5ebe0; border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 18px; }
.tabs button { border: 0; background: transparent; color: var(--muted); border-radius: 9px; padding: 10px; flex: 1; font-size: 12px; font-weight: 800; min-height: 44px; }
.tabs .selected { background: var(--paper); color: var(--green); box-shadow: 0 2px 7px #315b4b18; }
.login form { display: grid; gap: 14px; }
.login label { display: grid; gap: 6px; font-size: 12px; font-weight: 800; }
.login input, .create input, .assign select { width: 100%; padding: 12px 13px; border: 1px solid #bbcdbf; background: #fff; border-radius: 12px; color: var(--ink); min-height: 45px; font-size: 16px; }
.primary, .secondary, .quiet, .danger { border: 0; border-radius: 12px; padding: 12px 15px; min-height: 44px; font-weight: 800; }
.primary { background: var(--green); color: var(--cream); }
.primary:hover { background: #25473b; }
.secondary { background: #e5ebe0; color: var(--green); }
.quiet { background: transparent; color: var(--muted); }
.danger { background: #f4ded3; color: #854732; }
.feedback:empty { display: none; }
.feedback { padding: 13px 16px; background: #f4e4d6; color: #75452f; border: 1px solid #e2c5ad; border-radius: 14px; margin-bottom: 17px; font-size: 13px; }
.feedback.error { background: #f8e3db; color: #854732; border-color: #e7bbac; }
.workspace-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.workspace-head h2 { margin: 0; }
.workspace-head > .actions { margin-top: 0; max-width: 100%; }
.workspace-head > .actions button { white-space: normal; }
.hint { background: #f4e4d6; border: 1px solid #e2c5ad; border-radius: 15px; color: #75452f; padding: 13px 16px; font-size: 13px; line-height: 1.45; margin-bottom: 19px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 19px; }
.metric { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.metric strong { display: block; font-size: 25px; }
.metric span { font-size: 11px; color: var(--muted); }
.section-title { margin: 26px 0 11px; font-size: 17px; letter-spacing: -.03em; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.order { background: var(--paper); border: 1px solid var(--line); border-radius: 19px; padding: 18px; min-width: 0; }
.order.offer { border-color: var(--orange); box-shadow: 0 0 0 3px #bb72581a; }
.order-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.order-number { font-size: 11px; color: #86513e; letter-spacing: .12em; font-weight: 850; }
.order h3 { font-size: 19px; letter-spacing: -.04em; margin: 4px 0 0; }
.status { font-size: 11px; font-weight: 850; padding: 6px 9px; border-radius: 99px; background: #e5ebe0; color: var(--green); white-space: nowrap; }
.status.offered { background: #f4ded3; color: #854732; }
.route { margin: 19px 0; padding-left: 21px; position: relative; }
.route:before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 18px; border-left: 2px dashed #bbcdbf; }
.route div { position: relative; margin-bottom: 16px; }
.route div:last-child { margin-bottom: 0; }
.route div:before { content: ""; position: absolute; left: -21px; top: 4px; width: 11px; height: 11px; border-radius: 100%; background: var(--orange); border: 2px solid var(--paper); }
.route div:last-child:before { background: var(--green); }
.route small { display: block; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.route strong { display: block; margin-top: 2px; font-size: 14px; overflow-wrap: anywhere; }
.info { border-top: 1px solid var(--line); padding-top: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.info strong, .info a { color: var(--ink); }
.actions, .assign { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.actions button { flex: 1; }
.assign select { flex: 1; min-width: 150px; }
.timer { color: #86513e; font-size: 12px; font-weight: 800; margin-top: 13px; }
.empty { background: var(--paper); border: 1px dashed #bbcdbf; border-radius: 19px; padding: 32px; text-align: center; color: var(--muted); font-size: 13px; }
.empty strong { display: block; color: var(--green); font-size: 18px; margin-bottom: 4px; }
.create { display: grid; grid-template-columns: 1fr 1fr auto; gap: 9px; align-items: end; }
.create label { display: grid; gap: 5px; font-size: 11px; font-weight: 800; }
.drivers { display: grid; gap: 9px; margin-top: 16px; }
.driver { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--paper); }
.driver > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.driver small { display: block; color: var(--muted); }
.driver-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.driver-actions button { font-size: 11px; min-height: 44px; padding: 7px 9px; }
.secret { margin-top: 15px; border: 2px solid var(--orange); border-radius: 14px; background: #f4e4d6; padding: 14px; font-size: 13px; overflow-wrap: anywhere; }
.secret code { font-size: 17px; color: #75452f; font-weight: 800; }
.secret strong { display: block; margin-bottom: 7px; }
.secret p { margin: 8px 0 0; color: #75452f; }
.muted { font-size: 12px; color: var(--muted); line-height: 1.45; }
.push-card { margin-bottom: 19px; }
.push-card h3 { margin: 0 0 8px; }
.push-card p { font-size: 13px; line-height: 1.5; margin: 0; }
.push-card .muted { margin-top: 10px; }
.login label.password-toggle { display: flex; align-items: center; gap: 9px; min-height: 44px; font-weight: 600; }
.login .password-toggle input { width: 20px; min-height: 20px; margin: 0; padding: 0; accent-color: var(--green); }
#gps-pilot { margin-bottom: 20px; }
#gps-pilot h3 { margin-top: 0; }
#gps-pilot p { line-height: 1.5; font-size: 14px; }
#gps-pilot .password-toggle { display: flex; align-items: start; gap: 10px; font-weight: 700; line-height: 1.4; }
#gps-pilot input[type="checkbox"] { width: 22px; min-height: 22px; flex: 0 0 22px; margin: 0; accent-color: var(--green); }
#gps-status { color: var(--green); font-weight: 700; }
.navigation { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 12px; padding: 12px 14px; min-height: 44px; font-size: 14px; font-weight: 700; border: 1px solid var(--green); }
.actions .navigation { flex: 1; text-align: center; }
#guidance-panel { margin-bottom: 20px; }
#guidance-panel p { line-height: 1.5; }
.guidance-choice-label { font-size: 14px; font-weight: 750; margin: 20px 0 10px; }
.guidance-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.guidance-choices button { min-height: 58px; padding: 12px 8px; border: 1px solid var(--line); border-radius: 15px; background: var(--cream); color: var(--green); font-size: 14px; font-weight: 750; line-height: 1.3; touch-action: manipulation; }
.guidance-choices button[aria-pressed="true"] { background: #e5ebe0; border: 2px solid var(--green); padding: 11px 7px; box-shadow: 0 2px 6px #315b4b0d; }
.guidance-choices button:hover { border-color: var(--green); }
#guidance-launch { display: flex; width: 100%; font-size: 17px; min-height: 56px; }
.guidance-destination { font-weight: 700; overflow-wrap: anywhere; }
#guidance-status { font-weight: 700; color: var(--green); }
footer { border-top: 1px solid var(--line); padding: 22px 0; margin-top: 35px; color: var(--muted); font-size: 11px; }
@media (max-width: 700px) {
  .grid, .installation-guides, .create { grid-template-columns: 1fr; }
  .installation-guides { gap: 0; }
  .hero { padding: 29px 24px; }
  .hero h1 { font-size: 43px; }
  .driver { align-items: start; flex-direction: column; }
  .metrics { gap: 6px; }
  .metric { padding: 11px; }
  .metric strong { font-size: 21px; }
  .metric span { font-size: 10px; }
}
@media (max-width: 390px) {
  .shell { padding-left: max(13px, env(safe-area-inset-left)); padding-right: max(13px, env(safe-area-inset-right)); }
  .pilot { font-size: 8px; }
  .tabs button { font-size: 11px; padding: 9px 6px; }
  .logo { font-size: 18px; }
}
.customer-call { display:inline-flex; align-items:center; gap:12px; box-sizing:border-box; min-height:48px; max-width:100%; margin:10px 0; padding:12px 16px; border:1px solid #315b4b; border-radius:12px; background:#e7eade; color:#234d3e; font-size:14px; font-weight:700; line-height:1.4; text-decoration:none; touch-action:manipulation; }
.customer-call>span[aria-hidden] { font-size:24px; }
.customer-call-number { display:block; font-size:18px; overflow-wrap:anywhere; }
.customer-call:focus-visible { outline:3px solid #a55c43; outline-offset:3px; }
.customer-call:active { background:#d3e2d4; }
.customer-call-unavailable { color:#6e645b; overflow-wrap:anywhere; }
