:root{font-family:system-ui,-apple-system,sans-serif;color:#18332c;background:#f3f6f2;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header,main,footer{max-width:740px;margin:auto;padding:24px}header{display:flex;align-items:center;gap:14px}.brand{background:#215a47;color:white;border-radius:16px;padding:15px;font-weight:750}header small{display:block;color:#52665f;margin-top:4px}h1{font-size:clamp(26px,6vw,36px);line-height:1.2;margin:0 0 12px}h2{font-size:21px}p{line-height:1.6;color:#52665f}.card,form{background:white;padding:24px;border:1px solid #dbe4db;border-radius:20px;margin:18px 0;box-shadow:0 8px 30px #18332c06}form{display:grid;gap:18px}label{display:grid;gap:8px;font-size:14px;font-weight:650}input,select,button{font:inherit;min-width:0;min-height:46px;border-radius:10px}input,select{border:1px solid #b8c8bd;padding:12px;background:white;width:100%;color:#18332c}button{border:0;background:#215a47;color:white;padding:12px 18px;cursor:pointer;font-weight:650}button:disabled{opacity:.6;cursor:wait}.secondary{background:#e8eee7;color:#215a47}.row{display:flex;gap:12px;flex-wrap:wrap}.row>*{flex:1}.top{display:flex;align-items:center;justify-content:space-between;gap:12px}.badge{display:inline-block;background:#eef0d5;color:#495517;border-radius:30px;padding:6px 12px;font-size:13px;font-weight:700}.muted,small{color:#52665f}#feedback:not(:empty){border-radius:12px;padding:14px;background:#fff0db;color:#723b15;margin-bottom:18px}dl{display:grid;grid-template-columns:130px 1fr;gap:10px;margin:18px 0}dt{color:#52665f}dd{margin:0;overflow-wrap:anywhere}footer{font-size:13px;color:#52665f}.booking-id{font-size:12px;overflow-wrap:anywhere}.password{display:flex;gap:8px}.password input{flex:1}.password button{background:#e8eee7;color:#215a47;padding:8px}a{color:#215a47}@media(max-width:480px){header,main,footer{padding:18px}form,.card{padding:18px}dl{grid-template-columns:100px 1fr}}

nav{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:0 0 24px}nav a{padding:8px 10px;border-radius:8px;background:#e8eee7}nav a[aria-current=page]{background:#215a47;color:white}nav button{margin-left:auto}textarea{font:inherit;min-height:90px;border:1px solid #b8c8bd;border-radius:10px;padding:12px;width:100%;resize:vertical}fieldset{border:1px solid #dbe4db;border-radius:12px;padding:16px;display:grid;gap:12px;min-width:0}legend{font-weight:650}.check{display:flex;align-items:center;gap:10px}.check input{width:20px;min-height:20px;flex-shrink:0}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.metrics .card{margin:0}.metrics strong{font-size:24px}#pickup-map{position:relative;overflow:hidden;height:320px;width:100%;background:#e8eee7;cursor:crosshair}#pickup-map img{position:absolute;width:256px;height:256px;max-width:none}.map-pin{position:absolute;transform:translate(-50%,-100%);font-size:30px;z-index:1}li{margin:10px 0;line-height:1.5}button+button{margin:8px}#notices p{border-bottom:1px solid #dbe4db;padding:10px 0}small{overflow-wrap:anywhere}article a{overflow-wrap:anywhere}

/* Map-first customer screens; owner and driver layouts remain unchanged. */
[hidden]{display:none!important}.customer-view{background:#f7f8f6;color:#17251e}.customer-view header{padding:16px 20px}.customer-view header .brand{padding:10px;border-radius:12px}.customer-view header small{display:none}.customer-view main{padding-top:0}.customer-view h1{font-size:27px;letter-spacing:-.7px;margin-bottom:20px}.customer-view nav{gap:8px;margin-bottom:18px;font-size:12px}.customer-view nav a{background:transparent;padding:6px}.customer-view nav button{min-height:34px;padding:6px 10px}.customer-view footer{display:none}.map-wrap{position:relative;overflow:hidden;border-radius:22px;border:1px solid #dbe4db;background:#e7ece6}#ride-map{position:relative;overflow:hidden;height:340px;width:100%;touch-action:none;cursor:crosshair}#ride-map img{position:absolute;width:256px;height:256px;max-width:none}#ride-map .map-pin{font-size:28px;line-height:1;color:#164d38;border:5px solid white;background:#164d38;border-radius:50%;box-shadow:0 2px 12px #0005;transform:translate(-50%,-50%)}.map-tools{position:absolute;right:12px;top:12px;display:flex;gap:6px}.map-tools button{background:white;color:#18332c;box-shadow:0 2px 6px #0002;min-height:40px;padding:8px 13px;margin:0}.map-credit{position:absolute;bottom:0;right:0;background:#fffffff0;padding:4px 7px;font-size:10px}.map-status{font-size:12px;line-height:1.4;margin:8px 2px;color:#607168;min-height:18px}.home-sheet{background:white;border-radius:22px;padding:18px;border:1px solid #dbe4db}.home-sheet button{width:100%;text-align:left}.pickup-line{background:white;color:#465b50;display:flex;align-items:center;gap:10px;font-size:13px;padding:8px 0}.pickup-line span:last-child{margin-left:auto;font-size:12px;text-decoration:underline}.dot{width:9px;height:9px;border-radius:100%;background:#2a7755;flex-shrink:0}.destination-cta{display:flex;align-items:center;justify-content:space-between;background:#eef1eb;color:#13281d;border:1px solid #d9e0d6;border-radius:14px;font-size:20px;min-height:68px!important;margin:12px 0!important}.home-actions{display:flex;gap:10px;margin:14px 0}.home-actions button{font-size:14px;margin:0;text-align:center}.text-button{background:transparent;color:#215a47;padding-left:0}.search-panel{display:grid;gap:18px;background:white;padding:20px;border-radius:20px;margin:16px 0}.search-panel input{background:#f6f8f4}.suggestion{display:block;width:100%;text-align:left;background:transparent;border-radius:0;border-bottom:1px solid #e4e9e0;color:#18332c;padding:14px 4px;margin:0!important}.suggestion small{display:block;font-weight:400;margin-top:5px;line-height:1.4}.search-panel #search-status{font-size:13px;margin:0}.trip-summary{background:#edf2e9;padding:18px;border-radius:16px;overflow-wrap:anywhere}.trip-summary small{display:block;margin-top:8px}.customer-view #quote>button{width:100%;margin-top:20px}.customer-view #quote .check{margin-top:20px}.customer-view form{box-shadow:none}.empty-state{padding:20px;background:#fff0db;border-radius:16px}.customer-view #app>button:last-child{width:100%;margin-top:12px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,#ride-map:focus-visible{outline:3px solid #8caf51;outline-offset:3px}@media(max-width:480px){.customer-view main{padding:0 16px 24px}.customer-view header{padding:16px}.customer-view header strong{font-size:14px}.customer-view h1{font-size:25px}#ride-map{height:310px}.search-panel{padding:16px}.map-tools button{font-size:12px}.home-sheet{padding:15px}.customer-view .row{gap:8px}.customer-view .row button{font-size:13px;margin:0}}

#suggestions{max-height:340px;overflow-y:auto;overscroll-behavior:contain}.search-attribution{display:block;padding:10px 4px;font-size:11px}.suggestion:focus-visible{background:#edf2e9;outline-offset:-3px}

.car-choice{display:flex;flex-direction:column;gap:12px;width:100%;text-align:left;margin:16px 0!important;padding:22px}.car-choice span{font-size:14px;font-weight:400}#history-nav{margin-left:0;font-size:12px}

#ride-map .tour-pin{background:#124734;color:white;border:2px solid white;border-radius:50%;padding:3px;min-width:24px;text-align:center;font-size:14px} #tourist-list,#hotel-list{max-height:260px;overflow:auto} #tourist-list .check,#hotel-list .check{padding:8px;border-bottom:1px solid #ddd}

.tracking-map{width:300px;max-width:100%;height:240px;position:relative;overflow:hidden;background:#e7ece6;border-radius:12px}.tracking-map img{position:absolute;width:256px;height:256px;max-width:none}.tracking-pin{position:absolute;left:150px;top:120px;color:#145a3c;font-size:30px;transform:translate(-50%,-50%);text-shadow:0 0 3px white}

#ai-help-open{margin-left:auto;font-size:12px}#ai-help-dialog{max-width:560px;width:calc(100% - 24px);max-height:90vh;overflow:auto;border:1px solid #b8c8bd;border-radius:16px}#ai-help-messages{white-space:pre-wrap;overflow-wrap:anywhere}

/* Pipariya presentation themes: deliberately excluded from Owner Admin. */
body[data-ui="customer"]{--primary:#FF6B00;--primary-dark:#E85D04;--accent-text:#9A3900;--on-primary:#172033;--tint:#FFF3E9;--focus:#A13B00;--page:#F7F8FA;--header:linear-gradient(125deg,#FF6B00,#E85D04);--header-text:#172033}
body[data-ui="driver"]{--primary:#063B80;--primary-dark:#061A38;--accent-text:#063B80;--on-primary:#FFF;--tint:#EAF2FF;--focus:#0866E8;--page:#F6F8FC;--header:linear-gradient(125deg,#063B80,#061A38);--header-text:#FFF}
body:is([data-ui="customer"],[data-ui="driver"]){--ink:#172033;--muted:#536074;--line:#DCE2EC;--radius:16px;--shadow:0 6px 24px #1720330A;background:var(--page);color:var(--ink);font-family:Inter,"Noto Sans Devanagari","Segoe UI",system-ui,sans-serif;line-height:1.5;min-height:100vh}
body:is([data-ui="customer"],[data-ui="driver"]) header{background:var(--header);color:var(--header-text);padding:24px;gap:12px;border-radius:0 0 24px 24px;box-shadow:0 8px 24px #17203312;align-items:center;flex-wrap:wrap}
body:is([data-ui="customer"],[data-ui="driver"]) header strong{font-size:20px;font-weight:800;letter-spacing:-.4px}
body:is([data-ui="customer"],[data-ui="driver"]) header small{display:block;color:inherit;opacity:.9;font-size:12px}
body:is([data-ui="customer"],[data-ui="driver"]) .brand{background:#FFFFFF26;border:1px solid #FFFFFF60;color:inherit;padding:13px;border-radius:14px;letter-spacing:1px;font-size:18px;box-shadow:inset 0 1px #FFFFFF44}
body:is([data-ui="customer"],[data-ui="driver"]) main{padding:26px 20px 40px}
body:is([data-ui="customer"],[data-ui="driver"]) h1{font-size:clamp(25px,5vw,34px);letter-spacing:-.8px;line-height:1.25;margin:6px 0 18px;font-weight:800;overflow-wrap:anywhere}
body:is([data-ui="customer"],[data-ui="driver"]) h2{font-size:20px;line-height:1.35;letter-spacing:-.3px}
body:is([data-ui="customer"],[data-ui="driver"]) :is(p,small,dt,.muted){color:var(--muted)}
body:is([data-ui="customer"],[data-ui="driver"]) :is(.card,form,.search-panel,.home-sheet){background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px;margin:18px 0;min-width:0}
body:is([data-ui="customer"],[data-ui="driver"]) :is(input,select,textarea){border:1px solid #BCC6D5;border-radius:12px;background:#FAFBFD;color:var(--ink);font-size:16px;min-width:0;max-width:100%;padding:12px;min-height:48px;transition:border-color .15s,box-shadow .15s}
body:is([data-ui="customer"],[data-ui="driver"]) label{font-size:14px;color:var(--ink);line-height:1.5;overflow-wrap:anywhere}
body:is([data-ui="customer"],[data-ui="driver"]) input[readonly]{background:#F0F3F8;color:#536074}
body:is([data-ui="customer"],[data-ui="driver"]) input[type=checkbox]{accent-color:var(--primary-dark);width:22px;min-height:22px}
body:is([data-ui="customer"],[data-ui="driver"]) input[type=file]{padding:10px;font-size:13px;width:100%;overflow:hidden}
body:is([data-ui="customer"],[data-ui="driver"]) input::file-selector-button{background:var(--tint);color:var(--accent-text);border:0;border-radius:8px;padding:10px;margin-right:8px;font-weight:650;cursor:pointer}
body:is([data-ui="customer"],[data-ui="driver"]) button{background:var(--header);color:var(--on-primary);border-radius:12px;min-height:48px;padding:13px 18px;font-size:15px;font-weight:750;line-height:1.4;touch-action:manipulation;transition:filter .15s,box-shadow .15s;overflow-wrap:anywhere;max-width:100%}
body:is([data-ui="customer"],[data-ui="driver"]) button:not(:disabled):hover{filter:brightness(.96);box-shadow:0 4px 14px #17203314}
body:is([data-ui="customer"],[data-ui="driver"]) button:disabled{background:#DFE4EC;color:#526075;opacity:1;box-shadow:none;cursor:not-allowed}
body:is([data-ui="customer"],[data-ui="driver"]) :is(button.secondary,.password button,.map-tools button){background:var(--tint);color:var(--accent-text);border:1px solid var(--line)}
body:is([data-ui="customer"],[data-ui="driver"]) .text-button{background:transparent;color:var(--accent-text);box-shadow:none}
body:is([data-ui="customer"],[data-ui="driver"]) a{color:var(--accent-text);text-underline-offset:3px}
body:is([data-ui="customer"],[data-ui="driver"]) :is(button,a,input,select,textarea,#ride-map):focus-visible{outline:3px solid var(--focus);outline-offset:3px}
body:is([data-ui="customer"],[data-ui="driver"]) #app>nav{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:8px;gap:6px;box-shadow:var(--shadow);font-size:13px}
body:is([data-ui="customer"],[data-ui="driver"]) nav a{background:var(--tint);padding:12px;text-decoration:none;min-height:44px;font-weight:650}
body:is([data-ui="customer"],[data-ui="driver"]) nav button{font-size:13px;min-height:44px}
body:is([data-ui="customer"],[data-ui="driver"]) .badge{background:var(--tint);color:var(--accent-text);border:1px solid var(--line);padding:8px 12px;line-height:1.5;max-width:100%;overflow-wrap:anywhere}
body:is([data-ui="customer"],[data-ui="driver"]) :is(.trip-summary,.empty-state){background:var(--tint);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);padding:18px}
body:is([data-ui="customer"],[data-ui="driver"]) .car-choice{background:white;color:var(--ink);border:1px solid var(--line);border-left:5px solid var(--primary);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px;gap:10px;font-size:17px}
body:is([data-ui="customer"],[data-ui="driver"]) #feedback:not(:empty){background:#FFF3DA;border:1px solid #E5BD6B;color:#704300;border-radius:12px;overflow-wrap:anywhere}
body:is([data-ui="customer"],[data-ui="driver"]) .suggestion{background:white;color:var(--ink);border:0;border-bottom:1px solid var(--line);border-radius:0;font-weight:650;box-shadow:none}
body:is([data-ui="customer"],[data-ui="driver"]) .map-wrap{border-radius:var(--radius);border-color:var(--line);box-shadow:var(--shadow)}
body:is([data-ui="customer"],[data-ui="driver"]) :is(.dot,#ride-map .map-pin,#ride-map .tour-pin){background:var(--primary-dark)}
body:is([data-ui="customer"],[data-ui="driver"]) .tracking-pin{color:var(--primary-dark)}
body:is([data-ui="customer"],[data-ui="driver"]) .pickup-line{background:white;color:var(--ink);font-size:14px;box-shadow:none}
body:is([data-ui="customer"],[data-ui="driver"]) .home-actions{gap:12px;margin-bottom:0}
body:is([data-ui="customer"],[data-ui="driver"]) .home-actions button{min-height:72px;font-size:16px}
body:is([data-ui="customer"],[data-ui="driver"]) #ai-help-open{font-size:12px;background:#FFF;color:var(--accent-text);border:1px solid #FFFFFF90;min-height:44px;padding:10px 12px}
body:is([data-ui="customer"],[data-ui="driver"]) #ai-help-dialog{border:1px solid var(--line);border-radius:20px;padding:24px;background:var(--page);color:var(--ink);box-shadow:0 20px 80px #061A3844}
body:is([data-ui="customer"],[data-ui="driver"]) #ai-help-dialog::backdrop{background:#061A3870}
body:is([data-ui="customer"],[data-ui="driver"]) #ai-help-messages p{background:white;border:1px solid var(--line);border-radius:14px;padding:14px}
body:is([data-ui="customer"],[data-ui="driver"]) #ai-help-dialog form{box-shadow:none}
body:is([data-ui="customer"],[data-ui="driver"]) .password{min-width:0}
body:is([data-ui="customer"],[data-ui="driver"]) .password input{width:0;flex:1}
body:is([data-ui="customer"],[data-ui="driver"]) dl{grid-template-columns:minmax(90px,35%) minmax(0,1fr);gap:12px}
@media(max-width:480px){body:is([data-ui="customer"],[data-ui="driver"]) header{padding:18px 16px;gap:10px}body:is([data-ui="customer"],[data-ui="driver"]) header strong{font-size:18px}body:is([data-ui="customer"],[data-ui="driver"]) header>div{flex:1;min-width:0}body:is([data-ui="customer"],[data-ui="driver"]) #ai-help-open{margin-left:0}body:is([data-ui="customer"],[data-ui="driver"]) main{padding:22px 14px 30px}body:is([data-ui="customer"],[data-ui="driver"]) :is(.card,form,.search-panel,.home-sheet){padding:18px}body:is([data-ui="customer"],[data-ui="driver"]) button+button{margin:6px 0}body:is([data-ui="customer"],[data-ui="driver"]) nav button{margin-left:0}body:is([data-ui="customer"],[data-ui="driver"]) .row>*{flex-basis:140px}body:is([data-ui="customer"],[data-ui="driver"]) .map-tools button{padding:8px;min-height:44px;font-size:12px}body:is([data-ui="customer"],[data-ui="driver"]) .home-actions button{margin:0}body:is([data-ui="customer"],[data-ui="driver"]) #ai-help-dialog{padding:16px}}
@media(prefers-reduced-motion:reduce){body:is([data-ui="customer"],[data-ui="driver"]) *{transition:none!important;scroll-behavior:auto!important}}
body:is([data-ui="customer"],[data-ui="driver"]) .brand svg{display:block}
body:is([data-ui="customer"],[data-ui="driver"]) header small:not(.muted){color:var(--header-text)}
/* Compact existing mobile forms to match the reference card rhythm. */
@media(max-width:480px){
 body:is([data-ui="customer"],[data-ui="driver"]) h1{font-size:25px;font-weight:750;letter-spacing:-.5px}
 body:is([data-ui="customer"],[data-ui="driver"]) header strong{font-size:17px;letter-spacing:-.2px}
 body:is([data-ui="customer"],[data-ui="driver"]) form{gap:16px}
 body:is([data-ui="customer"],[data-ui="driver"]) form>h2{margin:6px 0 0;font-size:18px}
 body:is([data-ui="customer"],[data-ui="driver"]) form>p{margin:0;font-size:13px;line-height:1.6}
 body:is([data-ui="customer"],[data-ui="driver"]) form>label{gap:7px}
 body:is([data-ui="customer"],[data-ui="driver"]) #app>form~button{display:block;width:100%;margin:10px 0;min-height:48px}
 body[data-ui="driver"] #driver-apply>p[role="status"]{background:var(--tint);border-radius:10px;padding:12px;color:var(--accent-text)}
 body[data-ui="driver"] #driver-apply>h2:not(:first-child){padding-top:12px;border-top:1px solid var(--line)}
}
body:is([data-ui="customer"],[data-ui="driver"]) .badge:is([data-status="Confirmed"],[data-status="Driver Assigned"],[data-status="Trip Completed"]){background:#E5F6EB;color:#155D37;border-color:#B8DFC8}
body:is([data-ui="customer"],[data-ui="driver"]) .badge:is([data-status="Cancelled"],[data-status="Refunded"]){background:#FFF0F0;color:#9C2525;border-color:#EDC5C5}
body[data-ui="driver"] #driver-apply{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-ui="driver"] #driver-apply>*{grid-column:1/-1}
body[data-ui="driver"] #driver-apply>button[data-photo]{grid-column:auto;margin:0}
@media(max-width:600px){
 body:is([data-ui="customer"],[data-ui="driver"]) #app>nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:740px;z-index:20;border-radius:16px 16px 0 0;margin:0;padding:8px 8px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -4px 20px #1720330D;justify-content:center;gap:4px}
 body:is([data-ui="customer"],[data-ui="driver"]) #app>nav>*{flex:1 1 70px;text-align:center;font-size:11px;line-height:1.4;padding:8px 5px;margin:0;background:transparent;color:var(--accent-text);min-height:44px}
 body:is([data-ui="customer"],[data-ui="driver"]) main:has(#app>nav:not([hidden])){padding-bottom:150px}
}

/* Live GPS is separate from booking pins. */
#ride-map .gps-dot,#ride-map .gps-accuracy{position:absolute;transform:translate(-50%,-50%);border-radius:50%;pointer-events:none;box-sizing:border-box}#ride-map .gps-accuracy{background:rgba(66,133,244,.16);border:1px solid rgba(66,133,244,.3);z-index:2}#ride-map .gps-dot{background:#4285f4;border:3px solid white;box-shadow:0 1px 5px #0005;z-index:3}

/* Reversible UI flags; backend features and Owner styling stay unchanged. */
body[data-prebooking="false"][data-ui="customer"] #prebook,
body[data-ai-help="false"]:is([data-ui="customer"],[data-ui="driver"]) :is(#ai-help-open,#ai-help-dialog){display:none!important}
body:is([data-ui="customer"],[data-ui="driver"]) .metrics{gap:12px}
body:is([data-ui="customer"],[data-ui="driver"]) .metrics .card{border-radius:16px;padding:18px;border:1px solid var(--line);background:white;box-shadow:var(--shadow)}
body:is([data-ui="customer"],[data-ui="driver"]) .metrics strong{font-variant-numeric:tabular-nums}
body[data-ui="customer"] .home-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
body:is([data-ui="customer"],[data-ui="driver"]) .map-wrap{isolation:isolate;min-width:0}
#ride-map{overscroll-behavior:contain;contain:layout paint}
.map-tools,.map-credit{z-index:4}

/* Owner presentation only: isolated from Customer and Driver themes. */
body[data-ui="owner"]{--owner-primary:#FF6B00;--owner-accent:#9A3900;--owner-ink:#172033;--owner-muted:#596273;--owner-line:#E9DFD7;--owner-tint:#FFF3E9;background:#FFFFFF;color:var(--owner-ink);font-family:"Segoe UI","Noto Sans Devanagari",system-ui,sans-serif;line-height:1.5;min-height:100vh}
body[data-ui="owner"] :is(header,main,footer){max-width:1100px}
body[data-ui="owner"] header{background:linear-gradient(125deg,#FF6B00,#E85D04);color:var(--owner-ink);padding:24px 28px;border-radius:0 0 24px 24px;box-shadow:0 8px 24px #FF6B0014}
body[data-ui="owner"] header strong{font-size:20px;letter-spacing:-.3px}
body[data-ui="owner"] header small{color:#172033}
body[data-ui="owner"] .brand{background:#FFFFFF1A;border:1px solid #FFFFFF40;border-radius:14px;color:var(--owner-ink);flex-shrink:0}
body[data-ui="owner"] main{padding:28px 24px 40px}
body[data-ui="owner"] :is(h1,h2,h3){color:var(--owner-ink);line-height:1.3;overflow-wrap:anywhere}
body[data-ui="owner"] h1{font-size:30px;letter-spacing:-.7px}
body[data-ui="owner"] h2{font-size:22px;margin:24px 0 14px}
body[data-ui="owner"] :is(p,small,dt,.muted,footer){color:var(--owner-muted)}
body[data-ui="owner"] :is(.card,form){background:white;border:1px solid var(--owner-line);border-radius:16px;box-shadow:0 4px 18px #17203306;padding:22px;min-width:0}
body[data-ui="owner"] :is(input,select,textarea){font-size:16px;border:1px solid #CFC5BD;border-radius:10px;background:#FFFFFF;color:var(--owner-ink);min-width:0;max-width:100%;min-height:46px;padding:11px 12px}
body[data-ui="owner"] label{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
body[data-ui="owner"] input[type=checkbox]{width:22px;height:22px;min-height:22px;accent-color:var(--owner-accent)}
body[data-ui="owner"] .check{align-items:flex-start}
body[data-ui="owner"] button{background:var(--owner-primary);color:var(--owner-ink);min-height:46px;border-radius:10px;padding:12px 16px;font-size:14px;line-height:1.4;max-width:100%;overflow-wrap:anywhere;touch-action:manipulation;transition:box-shadow .15s}
body[data-ui="owner"] button:not(:disabled):hover{box-shadow:0 4px 12px #FF6B0020}
body[data-ui="owner"] :is(.secondary,.password button){background:var(--owner-tint);color:var(--owner-accent);border:1px solid var(--owner-line)}
body[data-ui="owner"] button:disabled{opacity:.65;cursor:not-allowed}
body[data-ui="owner"] :is(a,button,input,select,textarea):focus-visible{outline:3px solid #A13B00;outline-offset:3px}
body[data-ui="owner"] a{color:var(--owner-accent);text-underline-offset:3px;overflow-wrap:anywhere}
body[data-ui="owner"] nav{gap:8px}
body[data-ui="owner"] nav a{background:white;border:1px solid var(--owner-line);text-decoration:none;min-height:44px;display:inline-flex;align-items:center;padding:10px 14px;font-size:14px;font-weight:600}
body[data-ui="owner"] nav a[aria-current="page"]{background:var(--owner-primary);border-color:var(--owner-accent);color:var(--owner-ink)}
body[data-ui="owner"] .tabs{padding:10px;background:#FFF3E9;border:1px solid var(--owner-line);border-radius:16px}
body[data-ui="owner"] #admin-content{background:#FFFFFF;border:1px solid var(--owner-line);border-radius:18px;padding:24px;min-width:0;overflow-wrap:anywhere}
body[data-ui="owner"] #admin-content>h2:first-child{margin-top:0}
body[data-ui="owner"] .metrics{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}
body[data-ui="owner"] .metrics .card{margin:0;padding:18px}
body[data-ui="owner"] .metrics strong{font-size:25px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
body[data-ui="owner"] fieldset{border-color:var(--owner-line);border-radius:12px}
body[data-ui="owner"] table{border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed;border:1px solid var(--owner-line);border-radius:12px;overflow:hidden;margin:18px 0;background:white}
body[data-ui="owner"] :is(th,td){text-align:left;vertical-align:top;padding:16px;border-bottom:1px solid var(--owner-line);overflow-wrap:anywhere}
body[data-ui="owner"] th{background:var(--owner-tint);font-size:13px;font-weight:750;color:var(--owner-accent)}
body[data-ui="owner"] tr:last-child td{border-bottom:0}
body[data-ui="owner"] td form{padding:14px;margin:12px 0 0;box-shadow:none;gap:14px}
body[data-ui="owner"] td:first-child{width:36%}
body[data-ui="owner"] .row>*{min-width:0;flex-basis:180px}
body[data-ui="owner"] .badge{background:var(--owner-tint);color:var(--owner-accent);border:1px solid var(--owner-line)}
@media(max-width:600px){
 body[data-ui="owner"] header{padding:20px 16px;gap:12px;flex-wrap:wrap;border-radius:0 0 20px 20px}
 body[data-ui="owner"] header>div{flex:1;min-width:0}
 body[data-ui="owner"] header strong{font-size:17px}
 body[data-ui="owner"] main{padding:22px 14px 30px}
 body[data-ui="owner"] h1{font-size:26px}
 body[data-ui="owner"] h2{font-size:20px}
 body[data-ui="owner"] #admin-content{padding:16px}
 body[data-ui="owner"] :is(form,.card){padding:16px}
 body[data-ui="owner"] .tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px}
 body[data-ui="owner"] .tabs a{font-size:13px;padding:10px;min-width:0}
 body[data-ui="owner"] .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-ui="owner"] :is(th,td){padding:10px;font-size:13px}
 body[data-ui="owner"] td form{padding:10px}
 body[data-ui="owner"] #billing-report table{table-layout:auto}
 body[data-ui="owner"] #billing-report :is(thead,tbody){display:block}
 body[data-ui="owner"] #billing-report tr{display:grid;grid-template-columns:minmax(0,1fr);border-bottom:1px solid var(--owner-line)}
 body[data-ui="owner"] #billing-report thead tr{grid-template-columns:1fr 1fr}
 body[data-ui="owner"] #billing-report :is(td,th){width:auto;border:0}
 body[data-ui="owner"] #billing-report td:first-child{font-weight:700;background:var(--owner-tint)}
 body[data-ui="owner"] #billing-report td form{padding:12px}
 body[data-ui="owner"] .top{flex-wrap:wrap}
 body[data-ui="owner"] dl{grid-template-columns:minmax(80px,35%) minmax(0,1fr)}
 body[data-ui="owner"] #ai-help-open{margin-left:0}
}
@media(prefers-reduced-motion:reduce){body[data-ui="owner"] *{transition:none!important}}
body[data-ui="owner"] header small:not(.muted){color:#172033}
@media(max-width:600px){body[data-ui="owner"] .tabs{grid-template-columns:none;grid-template-rows:repeat(2,auto);grid-auto-flow:column;grid-auto-columns:minmax(140px,max-content);overflow-x:auto;overscroll-behavior-x:contain;scroll-padding:8px}body[data-ui="owner"] .tabs a{white-space:nowrap}}
/* Owner Admin navigation only; links remain available in other app screens. */
body[data-ui="owner"] #app:has(#admin-content)>nav[aria-label="Main navigation"]>a:is([href="/"],[href="/#/driver-register"],[href="#/wallet"]){display:none}

/* Owner-only record tables: horizontal scroll stays inside the table. */
body[data-ui="owner"] .owner-records-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid #e6e8ec;border-radius:12px;margin:16px 0}
body[data-ui="owner"] .owner-records-table{min-width:1250px;width:100%;border-collapse:collapse;font-size:14px;background:#fff}
body[data-ui="owner"] .owner-records-table th,body[data-ui="owner"] .owner-records-table td{border:1px solid #e6e8ec;padding:12px;vertical-align:top;overflow-wrap:anywhere;max-width:240px}
body[data-ui="owner"] .owner-records-table th{background:#fff0e6;color:#172033;text-align:left}
body[data-ui="owner"] .owner-driver-photo{display:block;width:120px;height:120px;object-fit:contain;border-radius:12px;border:1px solid #e6e8ec;margin:8px 0}

/* Customer-only responsive sizing; existing map behavior and role themes stay intact. */
body[data-ui="customer"] :is(header,main,footer){width:100%;min-width:0}
body[data-ui="customer"] #app{min-width:0}
body[data-ui="customer"] :is(.pickup-line,.suggestion){white-space:normal;overflow-wrap:anywhere}
body[data-ui="customer"] .pickup-line span:last-child{flex-shrink:0}
body[data-ui="customer"] .map-tools{max-width:calc(100% - 24px);flex-wrap:wrap;justify-content:flex-end}
@media(min-width:900px){
 body[data-ui="customer"] :is(header,main,footer){max-width:1040px}
 body[data-ui="customer"] main{padding:28px 32px 40px}
 body[data-ui="customer"] #ride-map{height:400px}
 body[data-ui="customer"] #app>form{max-width:640px;margin-inline:auto}
 body[data-ui="customer"] .search-panel{max-width:760px;margin-inline:auto}
}
@media(max-width:600px){
 body[data-ui="customer"] header{padding-top:max(16px,env(safe-area-inset-top))}
 body[data-ui="customer"] main:has(#app>nav:not([hidden])){padding-bottom:calc(160px + env(safe-area-inset-bottom))}
 body[data-ui="customer"] .pickup-line{gap:8px}
 body[data-ui="customer"] #app>nav{padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}
}

/* Pipariya Cabs Customer: approved orange / white visual system only. */
body[data-ui="customer"]{--primary:#FF6B00;--primary-dark:#E85D04;--header:linear-gradient(115deg,#FF7800,#E85D04);--page:#F7F8FA;--ink:#172033;--on-primary:#fff;--header-text:#fff;--accent-text:#A63F00;background:#F7F8FA}
body[data-ui="customer"] header{color:white;border-radius:0 0 20px 20px;padding:18px 20px}
body[data-ui="customer"] header small:not(.muted){color:#fff}
body[data-ui="customer"] #app>h1{font-size:24px;font-weight:750;margin:4px 0 20px}
body[data-ui="customer"] .ui-icon{width:26px;height:26px;flex-shrink:0;display:inline-block;vertical-align:middle}
body[data-ui="customer"] .customer-hero{height:230px;position:relative;border-radius:18px;overflow:hidden;background:#37554B;color:white;isolation:isolate}
body[data-ui="customer"] .customer-hero>img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;z-index:-2}
body[data-ui="customer"] .customer-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#092A32E8,transparent 95%);z-index:-1}
body[data-ui="customer"] .customer-hero>div{position:absolute;bottom:20px;left:20px;right:20px}
body[data-ui="customer"] .customer-hero h2{color:white;font-size:30px;margin:5px 0}
body[data-ui="customer"] .customer-hero :is(p,small){color:#fff;margin:0}
body[data-ui="customer"] .customer-hero small{font-size:10px;letter-spacing:1.8px}
body[data-ui="customer"] .photo-credit{font-size:10px;display:block;margin:5px 0 20px;color:#667085}
body[data-ui="customer"] .primary-services{grid-template-columns:1fr 1fr;margin:18px 0 24px}
body[data-ui="customer"] .primary-services button{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;padding:20px 10px;min-height:140px;border-radius:16px}
body[data-ui="customer"] .primary-services button small{color:inherit;font-size:11px;line-height:1.5}
body[data-ui="customer"] .primary-services .ui-icon{width:32px;height:32px}
body[data-ui="customer"] .popular-routes{margin:24px 0}
body[data-ui="customer"] .popular-routes h2{margin-bottom:0}
body[data-ui="customer"] #popular-route-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body[data-ui="customer"] .route-tile{display:flex;gap:8px;align-items:center;text-align:left;font-size:13px;background:white;border:1px solid #E6E8EC}
body[data-ui="customer"] #app>.customer-tabs{position:fixed;bottom:0;left:50%;transform:translateX(-50%);max-width:740px;width:100%;z-index:30;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-radius:18px 18px 0 0;padding:9px 8px calc(9px + env(safe-area-inset-bottom));background:white;box-shadow:0 -5px 24px #17203310;margin:0}
body[data-ui="customer"] .customer-tabs a{display:flex;flex-direction:column;align-items:center;gap:5px;background:transparent;color:#667085;font-size:11px;text-align:center;padding:8px 2px;border-radius:10px;min-height:56px}
body[data-ui="customer"] .customer-tabs a[aria-current="page"]{color:#C34B00;background:#FFF1E7}
body[data-ui="customer"] main:has(.customer-tabs){padding-bottom:calc(120px + env(safe-area-inset-bottom))}
body[data-ui="customer"] .booking-types,body[data-ui="customer"] .vehicle-preferences{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
body[data-ui="customer"] .vehicle-preferences button{display:flex;align-items:center;flex-direction:column;gap:10px;background:white;color:#172033;border:1px solid #DCE2EC;min-height:120px;margin:0}
body[data-ui="customer"] .vehicle-preferences [aria-pressed="true"]{background:#FFF1E7;border:2px solid #FF6B00}
body[data-ui="customer"] .vehicle-preferences small{font-size:11px}
body[data-ui="customer"] .booking-types button{display:flex;align-items:center;justify-content:center;gap:8px;margin:0}
body[data-ui="customer"] .booking-filters{display:flex;gap:6px;overflow-x:auto;padding-bottom:8px;margin-bottom:16px}
body[data-ui="customer"] .booking-filters button{flex:0 0 auto;font-size:12px;min-height:44px;padding:10px;margin:0}
body[data-ui="customer"] #booking-history-list .card{margin-bottom:8px}
body[data-ui="customer"] .rebook{margin-bottom:24px}
body[data-ui="customer"] :is(.profile-link,.call-driver){display:block;padding:18px;margin:12px 0;background:white;border:1px solid #DCE2EC;border-radius:14px;text-decoration:none;font-weight:650}
body[data-ui="customer"] .profile-card>.ui-icon{width:48px;height:48px;color:#E85D04}
body[data-ui="customer"] .car-choice{display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;width:100%;margin:12px 0}
body[data-ui="customer"] .car-choice>.ui-icon{width:64px;height:48px;color:#667085}
body[data-ui="customer"] .car-choice span{min-width:0;display:grid;gap:6px}
body[data-ui="customer"] .car-choice small{font-size:11px;font-weight:400}
body[data-ui="customer"] .select-pill{background:#FF6B00;color:white;border-radius:10px;padding:10px;font-size:13px}
body[data-ui="customer"] #quote dl{padding:18px;background:#F7F8FA;border-radius:14px}
body[data-ui="customer"] .payment-options{margin:20px 0;padding:16px;border:1px solid #E6E8EC;border-radius:14px}
body[data-ui="customer"] .payment-options p{font-size:12px}
body[data-ui="customer"] #ride-start-code{display:inline-block;font-size:32px;letter-spacing:10px;background:#FFF1E7;border:1px dashed #E85D04;padding:14px 20px;border-radius:12px;color:#A63F00}
body[data-ui="customer"] #live-trip ol{border-left:2px solid #FFD0AC;padding-left:24px}
body[data-ui="customer"] #live-trip li{padding:8px 0}
body[data-ui="customer"] .otp-pending{background:white;border:1px solid #E6E8EC;padding:18px;border-radius:16px;margin:18px 0}
body[data-ui="customer"] .otp-pending button{width:100%;margin:12px 0 0}
body[data-ui="customer"] .otp-pending p{font-size:12px}
body[data-ui="customer"] #manual-location{display:none}
body[data-ui="customer"] .test-environment-note{font-size:11px;text-align:center;padding:7px;background:#FFF1E7;color:#804000}
@media(min-width:900px){body[data-ui="customer"] .customer-hero{height:320px}body[data-ui="customer"] .primary-services{max-width:640px;margin-inline:auto}body[data-ui="customer"] #popular-route-list{grid-template-columns:repeat(4,minmax(0,1fr))}body[data-ui="customer"] .customer-auth{max-width:640px;margin:auto}body[data-ui="customer"] #app>.customer-tabs{position:static;transform:none;max-width:none;border-radius:14px;margin-bottom:24px}}
@media(max-width:360px){body[data-ui="customer"] .primary-services{gap:8px}body[data-ui="customer"] .primary-services button{font-size:13px}body[data-ui="customer"] .car-choice{flex-wrap:wrap}body[data-ui="customer"] .customer-hero{height:200px}}
