@font-face{font-family:Inter;src:url(vendor/fonts/inter-latin-wght-normal.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:Inter;src:url(vendor/fonts/inter-vietnamese-wght-normal.woff2) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
:root{color-scheme:light;--bg:#e0e5ec;--panel:#e4e9f0;--text:#39465b;--muted:#5e6d80;--accent:#0fb891;--teal:#006e5c;--blue:#2563eb;--orange:#ac5b08;--danger:#aa3143;--line:#cbd3df;--shadow:6px 6px 15px #bec5cf,-6px -6px 15px #f9fbff;--raised:3px 4px 8px #c3cad4,-3px -3px 8px #f7faff;--inset:inset 3px 3px 8px #c0c8d5,inset -3px -3px 8px #f8fbff;--on:#05372b;--map:#d1ddd7;--overlay:#26324577}
:root[data-theme=dark]{color-scheme:dark;--bg:#252b2e;--panel:#2b3236;--text:#e2ded5;--muted:#a1adb4;--accent:#10b894;--teal:#40e0b7;--blue:#83aaff;--orange:#f9b861;--danger:#ff93a1;--line:#434b50;--shadow:5px 6px 13px #171c1e,-4px -4px 11px #414b52;--raised:3px 4px 7px #171c1e,-2px -2px 6px #434a51;--inset:inset 3px 3px 8px #161b20,inset -3px -3px 7px #41474d;--on:#042b22;--map:#232c30;--overlay:#13191bb4}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
body,h1,h2,h3,p{margin:0}
body{min-height:100dvh;display:flex;flex-direction:column;background:var(--bg);color:var(--text);font:400 1rem/1.43 Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{border:0;cursor:pointer;touch-action:manipulation}
button:disabled{cursor:default;opacity:.55}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,a:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
a{color:var(--blue)}
svg[aria-hidden=true]{width:1.13em;height:1.13em;display:block;flex:none}
i[data-icon]{display:inline-flex;font-style:normal;flex:none}
small{color:var(--muted)}
.top,.workspace,footer{width:min(100%,1600px);margin-inline:auto;padding-inline:clamp(14px,2.7vw,40px)}
.top{min-height:68px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;padding-top:max(8px,env(safe-area-inset-top))}
.brand{display:inline-flex;align-items:center;gap:11px;text-decoration:none;color:var(--text);justify-self:start}
.brand img{border-radius:13px;box-shadow:var(--raised)}
.brand strong,.brand small{display:block}
.brand strong{font-size:1.19rem;font-weight:800;letter-spacing:-.045em}
.brand small{font-size:.75rem}
.top-tools{justify-self:end;display:flex;align-items:center;gap:10px}
.round,.chip,.seg button,.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.round,.chip{background:var(--panel);color:var(--text);box-shadow:var(--raised)}
.round{width:42px;height:42px;border-radius:15px;flex:none}
.round.mini{width:36px;height:36px;border-radius:12px}
.chip{min-height:38px;padding:7px 11px;border-radius:12px;font-size:.84rem;font-weight:650}
.chip b{min-width:18px;color:var(--teal);font-size:.73rem}
.round:hover,.chip:hover,.text-btn:hover{color:var(--teal)}
.seg{display:flex;align-items:center;gap:5px;padding:5px;border-radius:15px;background:var(--bg);box-shadow:var(--inset)}
.seg button{min-height:36px;padding:5px 13px;border-radius:11px;background:transparent;color:var(--muted);font-weight:650;font-size:.84rem;white-space:nowrap}
.seg button[aria-current],.seg button[aria-pressed=true]{background:var(--panel);color:var(--teal);box-shadow:var(--raised)}
.workspace{flex:1;padding-bottom:18px}
.heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0 20px}
.heading h1{font-size:clamp(1.95rem,3.3vw,2.8rem);line-height:1.06;letter-spacing:-.06em;font-weight:810}
.heading p{color:var(--muted);margin-top:5px;font-size:.93rem}
.location{position:relative;gap:8px;min-height:42px;min-width:140px}
.location i:first-child{color:var(--teal)}
.location select{appearance:none;border:0;background:transparent;width:160px;max-width:33vw;padding:2px 16px 2px 0;font-weight:650;font-size:.85rem;cursor:pointer}
.location i:last-child{pointer-events:none;position:absolute;right:10px}
.layout{display:grid;grid-template-columns:minmax(330px,405px) minmax(0,1fr);gap:21px;align-items:start}
.left,.right{display:grid;gap:15px;min-width:0}
.right{position:sticky;top:16px}
.panel{background:var(--panel);border-radius:21px;box-shadow:var(--shadow);padding:15px}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-bottom:10px;min-height:34px}
h2{font-size:1.05rem;letter-spacing:-.023em;font-weight:770}
h2 i{color:var(--teal);margin-right:7px;vertical-align:-.17em}
h3{font-size:.99rem}
.text-btn,.bare{background:transparent;border:0}
.text-btn{font-size:.83rem;color:var(--blue);font-weight:650;padding:5px 2px}
.stops{position:relative;display:grid;gap:8px}
.stop{position:relative;display:flex;align-items:center;gap:7px;min-height:54px;padding:6px 8px 6px 11px;border-radius:14px;box-shadow:var(--inset);background:var(--bg)}
.stop-marker,.dot{width:9px;height:9px;border-radius:50%;display:inline-block;background:var(--teal);flex:none}
.stop-marker{box-shadow:0 0 0 3px color-mix(in srgb,var(--teal) 14%,transparent)}
.stop-marker.end,.dot.blue{background:var(--blue)}
.stop-marker.end{box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 16%,transparent)}
.dot.orange{background:var(--orange)}
.field{flex:1;min-width:0;margin-left:3px}
.field label,#schedule-wrap label,.field-label{display:block;color:var(--muted);font-size:.78rem;font-weight:675}
.field input{display:block;border:0;background:transparent;min-width:0;width:100%;font-size:.91rem;font-weight:680;text-overflow:ellipsis;padding:1px 0}
.field input::placeholder,input::placeholder,textarea::placeholder{color:var(--muted);font-weight:440}
.stop-tool{display:grid;place-items:center;min-width:33px;width:33px;height:40px;border-radius:10px;padding:0;color:var(--text)}
.stop-tool:hover,.stop-tool[aria-pressed=true]{background:var(--panel);color:var(--teal)}
.results{position:absolute;left:8px;right:8px;top:calc(100% + 5px);z-index:1100;padding:5px;background:var(--panel);box-shadow:var(--shadow);border-radius:14px;border:1px solid var(--line);max-height:250px;overflow:auto}
.result{width:100%;text-align:left;border-radius:8px;background:none;padding:7px 9px}
.result span,.result small{display:block}
.result:hover{background:var(--bg)}
.result small{font-size:.74rem}
.result-note{font-size:.81rem;color:var(--muted);padding:8px}
.quick{display:flex;gap:6px;overflow:auto;margin-top:10px;scrollbar-width:thin}
.quick button{flex:none;white-space:nowrap;border:1px solid var(--line);background:transparent;border-radius:20px;padding:4px 9px;min-height:30px;color:var(--muted);font-size:.74rem;font-weight:650}
.quick button:hover{color:var(--teal);border-color:var(--teal)}
.notes{margin:9px 0;font-size:.8rem;color:var(--muted)}
.notes summary{cursor:pointer;width:fit-content}
.notes input{margin-top:8px}
.timing button{flex:1}
.inset{box-shadow:var(--inset);background:var(--bg);border:0;border-radius:11px}
.textfield{width:100%;padding:10px 12px;min-height:40px;font-size:.87rem}
#schedule-wrap{margin-top:9px}
#schedule-wrap label{margin-bottom:5px}
.vehicles{padding-bottom:9px}
.vehicles .section-head{margin-bottom:3px}
.service-list{display:grid;gap:4px}
.service{width:100%;display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:9px;min-height:43px;border-radius:11px;background:transparent;text-align:left;padding:4px 8px}
.service+.service{border-top:1px solid color-mix(in srgb,var(--line) 75%,transparent)}
.service[aria-pressed=true]{background:var(--bg);box-shadow:var(--inset);border-color:transparent}
.vehicle-icon,.summary-icon{display:grid!important;place-items:center;width:33px;height:33px;border-radius:10px;color:var(--muted);background:var(--panel)}
.service[aria-pressed=true] .vehicle-icon,.summary-icon{color:var(--teal);box-shadow:var(--raised)}
.service-copy,.service-money{display:grid;min-width:0}
.service-copy strong{font-size:.87rem}
.service-copy small,.service-money small{font-size:.71rem}
.service-money{text-align:right}
.service-money strong,.metric,.summary strong,.book strong{font-variant-numeric:tabular-nums}
.service-money strong{font-size:.87rem;white-space:nowrap}
.service[aria-pressed=true] .service-money strong{color:var(--teal)}
.checkout-options{display:grid;grid-template-columns:1.25fr 1fr;gap:9px;margin-bottom:11px}
.checkout-options .chip{justify-content:flex-start}
.checkout-options .chip i:last-child:not(:first-child){margin-left:auto}
.primary{border-radius:13px;background:var(--accent);color:var(--on);font-weight:800;padding:10px 15px;min-height:43px}
.primary:hover{filter:brightness(1.06)}
.book{width:100%;justify-content:space-between;padding:12px 13px;box-shadow:var(--raised)}
.book span{display:inline-flex;align-items:center;gap:7px}
.error{font-size:.82rem;color:var(--danger)}
.error:empty{display:none}
.checkout .error{margin-top:7px}
.map-card{padding:15px}
.map-head{margin-bottom:12px}
.map-head p{margin-top:3px;font-size:.76rem;color:var(--muted)}
.map-frame{border-radius:16px;box-shadow:var(--inset);overflow:hidden;position:relative;isolation:isolate;background:var(--map)}
#map{height:clamp(400px,calc(100dvh - 352px),665px);background:var(--map);font:inherit;font-size:.75rem}
.map-actions{position:absolute;display:grid;gap:8px;right:10px;top:10px;z-index:650}
.map-actions .round{background:var(--panel);box-shadow:0 2px 10px #26324539}
.map-foot{display:flex;align-items:center;gap:15px;flex-wrap:wrap;padding:11px 1px 0;font-size:.74rem;color:var(--muted)}
.map-foot span{display:flex;align-items:center;gap:6px}
.pin-help{position:absolute;bottom:25px;left:10px;z-index:660;width:max-content;max-width:calc(100% - 20px)}
.pin-help button{padding:4px}
.map-pin{display:grid;place-items:center;width:30px;height:30px;border-radius:50% 50% 50% 12%;transform:rotate(-45deg);background:#007861;color:white;border:2px solid #fff;box-shadow:0 2px 7px #0006}
.map-pin svg{transform:rotate(45deg);width:15px;height:15px}
.map-pin.end{background:#285cd8}
.map-driver{border-radius:50%;display:grid;place-items:center;width:26px;height:26px;background:#fff4dc;border:2px solid #b56816;color:#a35608;box-shadow:0 2px 7px #0004}
.leaflet-tooltip.koh-tooltip{padding:4px 7px;border-radius:7px;color:#263446;border:0;box-shadow:0 2px 8px #15274630;font:650 .71rem Inter,system-ui,sans-serif}
.leaflet-container .leaflet-control-attribution{font-size:10px}
.summary{display:grid;grid-template-columns:1fr 1.15fr 1fr;gap:8px}
.summary-step{display:flex;min-width:0;align-items:center;gap:10px}
.summary-step+.summary-step{border-left:1px solid var(--line);padding-left:13px}
.summary small,.summary strong{display:block}
.summary small{font-size:.74rem}
.summary strong{font-size:clamp(1rem,1.6vw,1.4rem);letter-spacing:-.04em;margin-top:3px}
.summary-step:last-child strong{color:var(--teal)}
footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-block:7px max(10px,env(safe-area-inset-bottom));font-size:.75rem;color:var(--muted)}
footer .dot{width:6px;height:6px;margin-right:3px}
dialog{width:min(520px,calc(100% - 26px));max-height:calc(100dvh - 34px);border:1px solid var(--line);border-radius:22px;background:var(--panel);color:var(--text);padding:17px;box-shadow:0 12px 60px #18283865}
dialog::backdrop{background:var(--overlay);backdrop-filter:blur(4px)}
.dialog-head,.row,.line{display:flex;justify-content:space-between;align-items:center;gap:10px}
.dialog-head{margin-bottom:12px}
.dialog-head h2{font-size:1.19rem}
.stack{display:grid;gap:10px}
.line{padding:7px 0;border-bottom:1px solid var(--line);font-size:.9rem}
.line strong{white-space:nowrap}
.line.total strong{font-size:1.14rem;color:var(--teal)}
.tile{padding:11px;border:1px solid var(--line);border-radius:13px}
.tile p,.muted{color:var(--muted);font-size:.86rem}
.tile h3+p{margin-top:4px}
.tile .btn-row{margin-top:9px}
.option{width:100%;display:flex;justify-content:space-between;text-align:left;align-items:center;gap:11px;background:transparent;border:1px solid var(--line);border-radius:12px;padding:9px 11px;font-size:.9rem}
.option[aria-pressed=true]{color:var(--teal);box-shadow:var(--inset)}
.option small{display:block;font-size:.77rem}
.notice{font-size:.84rem;color:var(--muted);padding:8px 10px;border-radius:10px;background:var(--bg)}
.btn-row{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.btn-row form{display:flex;gap:8px}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:.75rem;font-weight:750;color:var(--teal);background:var(--bg);border-radius:20px;padding:4px 9px}
.op-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:19px}
.op-grid>div{min-width:0}
.op-grid .panel{padding:17px}
.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.metric{padding:9px;background:var(--bg);box-shadow:var(--inset);border-radius:12px;text-align:center;min-width:0}
.metric strong,.metric small{display:block;overflow-wrap:anywhere}
.metric small{font-size:.74rem;margin-top:2px}
.switch{display:flex;align-items:center;gap:7px;font-size:.86rem}
.switch input{width:17px;height:17px;accent-color:var(--teal)}
.danger{color:var(--danger)}
input[type=range]{accent-color:var(--teal);width:100%}
.chat-log{min-height:86px;max-height:230px;overflow:auto;padding:8px}
.chat-entry{margin:4px 0;padding:7px 9px;background:var(--bg);border-radius:9px;overflow-wrap:anywhere;font-size:.86rem}
.chat-entry small{display:block}
.toast{position:fixed;z-index:2000;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 26px);padding:9px 15px;border:1px solid var(--line);border-radius:13px;background:var(--panel);box-shadow:var(--shadow);font-size:.88rem;font-weight:650}
@media(max-width:950px){
  .top{grid-template-columns:auto 1fr auto;gap:12px}
  .roles button{padding-inline:9px}
  .layout{grid-template-columns:minmax(300px,345px) minmax(0,1fr);gap:16px}
  .summary-icon{display:none!important}
}
@media(max-width:700px){
  .top{grid-template-columns:1fr auto;row-gap:11px;padding-top:max(12px,env(safe-area-inset-top))}
  .roles{grid-row:2;grid-column:1/-1}
  .roles button{flex:1;padding-inline:4px;gap:5px}
  .top-tools{grid-column:2;grid-row:1;gap:7px}
  .history span{display:none}
  .history{min-width:38px}
  .heading{padding:19px 0 15px}
  .heading h1{font-size:1.97rem}
  .heading p{font-size:.83rem}
  .location{min-width:0;padding-inline:8px}
  .location select{width:110px;font-size:.78rem}
  .layout,.op-grid{grid-template-columns:minmax(0,1fr)}
  .left,.right{display:contents}
  .booking{grid-row:1}
  .map-card{grid-row:2}
  .summary{grid-row:3}
  #active{grid-row:4}
  .vehicles{grid-row:5}
  .checkout{grid-row:6}
  #map{height:clamp(268px,48vh,399px)}
  .summary-step+.summary-step{padding-left:8px}
  .summary{gap:5px}
  .summary small{font-size:.7rem}
  .field input,.textfield{font-size:16px}
}
@media(max-width:355px){.roles button{font-size:.73rem}.roles i{display:none}.top-tools{gap:5px}.top-tools .round{width:36px;height:36px}.heading p{max-width:170px}.panel{padding:11px}}
@media print{body>*:not(dialog){display:none!important}dialog{position:static!important;display:block!important;max-height:none;max-width:none;width:auto;box-shadow:none;margin:0;border:0}button,dialog::backdrop{display:none!important}}
#map.pinning{cursor:crosshair}
.option:disabled{opacity:.68}
fieldset{border:1px solid var(--line);border-radius:12px;padding:10px;margin:0;min-width:0}
fieldset legend{padding:0 5px;font-size:.85rem;font-weight:650}
.stars{display:flex;gap:8px}
.stars button{font-size:1.45rem;color:var(--muted);min-height:40px}
.stars button[aria-pressed=true]{color:var(--orange)}
.bar{height:8px;border-radius:5px;background:var(--bg);overflow:hidden}
.bar span{display:block;height:100%;background:var(--accent)}
h2>svg{display:inline-block;color:var(--teal);margin-right:7px;vertical-align:-.17em}

.tiles-soft{filter:saturate(.72) contrast(.92) brightness(1.04)}
.tiles-dark{filter:invert(.92) hue-rotate(170deg) saturate(.74) brightness(.82)}
