/* Premium authenticated courier dashboard — visual-only, controls keep their IDs/handlers. */
body:has(#app:not(.hidden)) { color-scheme:light; min-height:100vh; background:radial-gradient(ellipse at 8% 0,#e6f8eb 0,transparent 34rem),#f3faf5; color:#101510; }
body:has(#app:not(.hidden)) main.courier-portal { width:min(1480px,100%); max-width:1480px; margin:0 auto; padding:22px clamp(18px,3vw,42px) 68px!important; }
body:has(#app:not(.hidden)) .courier-dashboard-top { display:flex; align-items:center; min-height:74px; margin:0 0 18px; padding:9px 16px; border:1px solid #e0ece2; border-radius:18px; background:rgba(255,255,255,.94); box-shadow:0 6px 22px rgba(0,61,27,.07); }
body:has(#app:not(.hidden)) .courier-dashboard-top .brand { gap:12px; color:#003d1b; }
body:has(#app:not(.hidden)) .courier-dashboard-top .brand img { width:174px; max-width:38vw; height:auto; }
body:has(#app:not(.hidden)) .courier-dashboard-top .brand small { border-color:#d5e6d9; color:#008f28; }
body:has(#app:not(.hidden)) .courier-dashboard-top .pill { display:inline-flex; align-items:center; justify-content:center; min-height:42px; border:1px solid #cfe4d3; border-radius:12px; background:#fff; color:#174326; font-weight:750; transition:transform .25s,border-color .25s,box-shadow .25s; }
body:has(#app:not(.hidden)) .courier-dashboard-top .pill:hover { transform:translateY(-1px); border-color:#008f28; box-shadow:0 7px 16px rgba(0,143,40,.12); }
body:has(#app:not(.hidden)) #app { display:block; }
body:has(#app:not(.hidden)) .courier-dashboard-hero { position:relative; display:flex; align-items:center; justify-content:space-between; min-height:282px; margin:0 0 16px; padding:30px clamp(23px,4vw,58px); overflow:hidden; isolation:isolate; border:1px solid rgba(118,255,0,.32); border-radius:24px; background:linear-gradient(115deg,#003d1b,#005f25 60%,#003619); color:#fff; box-shadow:0 18px 42px rgba(0,61,27,.17); }
.courier-dashboard-bg { position:absolute; z-index:-2; inset:0; display:block; width:100%; height:100%; object-fit:cover; object-position:center; opacity:.78; }
.courier-dashboard-hero::after { position:absolute; z-index:-1; inset:0; content:""; background:linear-gradient(90deg,rgba(0,49,21,.96) 0%,rgba(0,61,27,.9) 44%,rgba(0,61,27,.28) 100%); pointer-events:none; }
.courier-dashboard-rider { position:absolute; z-index:0; right:0; bottom:0; width:50%; height:100%; max-width:700px; object-fit:contain; object-position:right bottom; mix-blend-mode:screen; filter:drop-shadow(0 15px 22px rgba(0,0,0,.28)); pointer-events:none; }
.courier-dashboard-welcome { position:relative; z-index:2; width:min(62%,740px); min-width:0; }
.courier-dashboard-eyebrow { display:flex; align-items:center; gap:9px; color:#caff91; font-size:11px; font-weight:850; letter-spacing:.15em; }
.courier-dashboard-eyebrow i { width:8px; height:8px; flex:none; border-radius:50%; background:#76ff00; box-shadow:0 0 13px rgba(118,255,0,.9); }
.courier-dashboard-hero h1 { margin:12px 0 14px; color:#fff; font:800 clamp(34px,4.4vw,56px)/1.04 "Plus Jakarta Sans",Inter,system-ui,sans-serif; letter-spacing:-.055em; overflow-wrap:anywhere; }
.courier-dashboard-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.courier-dashboard-meta #status { min-height:34px; padding:7px 13px; border:1px solid rgba(118,255,0,.42); border-radius:99px; background:rgba(118,255,0,.15); color:#eaffdf; font-size:12px; font-weight:800; }
.courier-store-membership { color:rgba(255,255,255,.8); font-size:12px; line-height:1.4; }
.courier-availability { display:inline-flex; align-items:center; gap:8px; margin-top:13px; padding:8px 12px; border:1px solid rgba(255,255,255,.28); border-radius:99px; background:rgba(0,0,0,.16); color:#fff; font-size:13px; font-weight:800; }
.courier-availability i { width:9px; height:9px; border-radius:50%; background:#9ba69c; }
.courier-availability.is-online { border-color:rgba(118,255,0,.65); background:rgba(118,255,0,.16); }
.courier-availability.is-online i { background:#76ff00; box-shadow:0 0 12px rgba(118,255,0,.82); }
.courier-dashboard-actions { position:relative; z-index:3; align-self:flex-end; flex:none; gap:9px; }
body:has(#app:not(.hidden)) .courier-dashboard-actions .btn { min-height:46px; padding:0 17px; border:1px solid rgba(255,255,255,.28); border-radius:13px; font-size:13px; font-weight:800; transition:transform .25s,box-shadow .25s,filter .25s; }
body:has(#app:not(.hidden)) .courier-dashboard-actions .btn:hover { transform:translateY(-2px); filter:brightness(1.04); box-shadow:0 10px 22px rgba(0,0,0,.2); }
body:has(#app:not(.hidden)) .courier-dashboard-actions #onlineBtn { border-color:#76ff00; background:linear-gradient(115deg,#76ff00,#38c800); color:#003d1b; }
body:has(#app:not(.hidden)) .courier-dashboard-actions #onlineBtn.secondary { border-color:rgba(255,255,255,.4); background:#fff; color:#174326; }
body:has(#app:not(.hidden)) .courier-dashboard-actions #onlineBtn.secondary { border-color:#cfe4d3; }
body:has(#app:not(.hidden)) .courier-dashboard-actions #logoutBtn { border-color:#cfe4d3; background:#fff; color:#174326; }
body:has(#app:not(.hidden)) .courier-dashboard-actions .courier-back-trifood { border-color:#008f28; background:linear-gradient(115deg,#008f28,#006b25); color:#fff; text-decoration:none; }
body:has(#app:not(.hidden)) .courier-dashboard-actions .courier-back-trifood:hover { border-color:#76ff00; background:#006b25; color:#fff; }
body:has(#app:not(.hidden)) #dashboard { display:block; }
body:has(#app:not(.hidden)) .courier-dashboard-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; margin:0 0 15px; }
body:has(#app:not(.hidden)) #dashboard .courier-stat { display:flex; align-items:center; gap:15px; min-width:0; min-height:100px; padding:17px 19px; border:1px solid #dfede2; border-radius:18px; background:linear-gradient(145deg,#fff,#fbfefb); box-shadow:0 7px 20px rgba(0,61,27,.065); }
.courier-stat-icon { display:grid; flex:none; width:52px; height:52px; place-items:center; border:1px solid #d5f0da; border-radius:15px; background:#e8f8ea; }
.courier-stat-icon img { display:block; width:34px; height:34px; object-fit:contain; }
body:has(#app:not(.hidden)) #dashboard .courier-stat .muted { display:block; color:#637269; font-size:12px; font-weight:700; }
body:has(#app:not(.hidden)) #dashboard .courier-stat strong { display:block; margin-top:5px; color:#003d1b; font:800 clamp(19px,2.1vw,25px)/1.18 "Plus Jakarta Sans",Inter,system-ui,sans-serif; overflow-wrap:anywhere; }
body:has(#app:not(.hidden)) #locationState { font-size:clamp(14px,1.5vw,17px)!important; }
.courier-gps-hint { margin:0 0 14px; padding:12px 14px; border:1px solid #d8e9dc; border-radius:13px; background:#fff; color:#56645b; line-height:1.5; }
.courier-dashboard-columns { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr); gap:15px; align-items:start; }
body:has(#app:not(.hidden)) #dashboard .courier-panel { min-width:0; margin:0; padding:20px; border:1px solid #deebe1; border-radius:20px; background:#fff; color:#101510; box-shadow:0 8px 22px rgba(0,61,27,.065); }
.courier-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:13px; border-bottom:1px solid #e5eee6; }
.courier-panel-heading h2 { display:flex; align-items:center; gap:10px; margin:0!important; color:#003d1b; font:800 20px/1.2 "Plus Jakarta Sans",Inter,system-ui,sans-serif; letter-spacing:-.025em; }
.courier-panel-heading h2 img { display:block; flex:none; width:27px; height:27px; object-fit:contain; }
body:has(#app:not(.hidden)) #dashboard #refreshBtn { min-height:40px; padding:0 13px; border:1px solid #b9dfc0; border-radius:11px; background:#f2fbf3; color:#006b25; font-size:12px; font-weight:800; }
body:has(#app:not(.hidden)) #dashboard #refreshBtn:hover { border-color:#008f28; background:#e8f8ea; }
body:has(#app:not(.hidden)) #startRouteBtn { width:100%; min-height:46px; margin:12px 0; border-radius:12px; background:#008f28; color:#fff; }
.courier-empty-state { display:grid; min-height:210px; margin:12px 0 0!important; place-content:center; padding:25px; border:1px dashed #cfe1d2; border-radius:15px; background:linear-gradient(145deg,#fbfefb,#f3faf4); color:#66736a; text-align:center; line-height:1.5; }
#assigned:not(:empty) + .courier-empty-state { display:none; }
#assigned .delivery-job { margin:13px 0 0; padding:16px; border:1px solid #e1ece3!important; border-left:4px solid #008f28!important; border-radius:16px!important; background:#fff!important; color:#101510; box-shadow:0 5px 16px rgba(0,61,27,.06)!important; }
#assigned .delivery-job--target { border-color:#76ff00!important; box-shadow:0 0 0 3px rgba(118,255,0,.15),0 8px 20px rgba(0,61,27,.09)!important; }
#assigned .delivery-job__head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
#assigned .delivery-job__head .muted { color:#607168; font-size:12px; }
#assigned .delivery-job__head h3 { margin:4px 0 0; color:#003d1b; font-size:17px; }
#assigned .delivery-job .pill { border-color:#dce9de; background:#f2f7f3; color:#3c5242; font-size:11px; font-weight:800; }
#assigned .delivery-job .pill.green { border-color:#d2edcf; background:#e8f8ea; color:#008f28; }
#assigned .delivery-job p { color:#526057; font-size:13px; line-height:1.65; overflow-wrap:anywhere; }
#assigned .delivery-job .btn { display:inline-flex; align-items:center; justify-content:center; min-height:42px; margin:4px 6px 0 0; padding:0 12px; border:1px solid #cfe1d2; border-radius:11px; background:#f5faf6; color:#174326; font-size:12px; font-weight:750; text-decoration:none; }
#assigned .delivery-job .btn.green { border-color:#008f28; background:#008f28; color:#fff; }
#assigned .delivery-job .btn:hover { border-color:#008f28; background:#e8f8ea; }
#assigned .delivery-job .btn.green:hover { background:#006b25; color:#fff; }
.courier-history-list { padding-top:4px; color:#59665d!important; }
.courier-earning-row { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:60px; padding:12px 4px!important; border-top:1px solid #e7eee8!important; color:#17241a; }
.courier-earning-row:first-child { border-top:0!important; }
.courier-earning-row b { display:block; color:#173c22; font-size:13px; }
.courier-earning-row time { display:block; margin-top:4px; color:#768279; font-size:11px; }
.courier-earning-row strong { color:#008f28; font-size:14px; white-space:nowrap; }
body:has(#app:not(.hidden)) .courier-install-panel, body:has(#app:not(.hidden)) .courier-profile-panel, body:has(#app:not(.hidden)) .courier-activity-panel { position:relative; display:block; margin:15px 0 0!important; padding:21px; border:1px solid #deebe1; border-radius:20px; background:#fff; color:#101510; box-shadow:0 8px 22px rgba(0,61,27,.065); }
.courier-install-panel { display:flex!important; align-items:center; justify-content:space-between; min-height:250px; overflow:hidden; background:linear-gradient(105deg,#fff,#f1fbf2)!important; }
.courier-install-panel::after { position:absolute; z-index:0; top:-45%; right:4%; width:360px; height:180%; content:""; border-radius:50%; background:radial-gradient(ellipse,rgba(118,255,0,.14),rgba(0,143,40,.045) 48%,transparent 72%); pointer-events:none; }
.courier-install-copy { position:relative; z-index:1; width:min(65%,650px); }
.courier-install-copy > p { color:#58665d; line-height:1.55; }
.courier-install-phone { position:relative; z-index:1; align-self:stretch; width:auto; max-width:31%; max-height:280px; object-fit:contain; object-position:center bottom; background:transparent; filter:drop-shadow(0 12px 18px rgba(0,61,27,.18)); }
body:has(#app:not(.hidden)) .courier-panel .btn-primary { min-height:46px; padding:0 17px; border:1px solid #008f28; border-radius:12px; background:linear-gradient(110deg,#008f28,#006b25); box-shadow:0 8px 17px rgba(0,143,40,.16); color:#fff; font-weight:800; }
body:has(#app:not(.hidden)) .courier-panel .btn-primary:hover { transform:translateY(-1px); border-color:#76ff00; box-shadow:0 11px 20px rgba(0,143,40,.2); }
.courier-profile-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px!important; margin:16px 0; }
body:has(#app:not(.hidden)) .courier-profile-grid label { min-width:0; color:#26402e; font-size:12px; }
.courier-profile-photo { grid-row:span 2; }
body:has(#app:not(.hidden)) #courierProfilePhoto { display:block; width:108px!important; height:108px!important; margin:2px 0 12px!important; border:3px solid #d7efda; border-radius:50%; background:#e8f8ea!important; object-fit:cover; }
body:has(#app:not(.hidden)) .courier-profile-grid input { width:100%; min-height:44px; margin:6px 0 0; padding:0 12px; border:1px solid #d4e3d7; border-radius:11px; background:#fbfdfb; color:#101510; font:500 13px Inter,system-ui,sans-serif; }
body:has(#app:not(.hidden)) .courier-profile-grid input:focus { outline:3px solid rgba(0,143,40,.12); border-color:#008f28; }
body:has(#app:not(.hidden)) #courierPhotoInput { min-height:auto; padding:8px; background:#f5faf6; font-size:11px; }
.courier-profile-photo small { display:block; margin-top:5px; color:#657269; font-size:11px; }
.courier-activity-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:15px 0; }
body:has(#app:not(.hidden)) .courier-activity-stats .stat { min-width:0; padding:15px; border:1px solid #dcebe0; border-radius:14px; background:#f7fcf8; }
body:has(#app:not(.hidden)) .courier-activity-stats .muted { color:#627067; font-size:12px; font-weight:700; }
body:has(#app:not(.hidden)) .courier-activity-stats strong { display:block; margin-top:7px; color:#008f28; font-size:23px; }
body:has(#app:not(.hidden)) .courier-activity-panel h3 { color:#174326; font-size:15px; }
.courier-year-history .row { justify-content:space-between; padding:11px 13px; border-top:1px solid #e4eee6; color:#334438; }
.courier-year-history .row strong { color:#008f28; }
.courier-message:empty { display:none; }
body:has(#app:not(.hidden)) .courier-message { margin:13px 2px; padding:0 4px; color:#59665d; }
body:has(#app:not(.hidden)) .courier-message.error { color:#b42318; }
body:has(#app:not(.hidden)) .courier-message.ok { color:#008f28; }
body:has(#app:not(.hidden)) .foot { margin:24px auto 0; color:#68766d; }
body:has(#app:not(.hidden)) .courier-bottomnav { background:rgba(255,255,255,.97); border-top:1px solid #dce9de; box-shadow:0 -8px 26px rgba(0,61,27,.08); }
body:has(#app:not(.hidden)) .courier-bottomnav a { color:#68766d; }
body:has(#app:not(.hidden)) .courier-bottomnav a.active, body:has(#app:not(.hidden)) .courier-bottomnav a:focus { color:#008f28; }
body:has(#app:not(.hidden)) .courier-bottomnav a span { color:inherit; }
body:has(#app:not(.hidden)) #dashboard, body:has(#app:not(.hidden)) #courierInstallArea, body:has(#app:not(.hidden)) #courierProfileArea, body:has(#app:not(.hidden)) #courierStatsArea { scroll-margin-top:96px; }
@media(max-width:900px) {
 body:has(#app:not(.hidden)) main.courier-portal { padding:16px 16px 88px!important; }
 .courier-dashboard-hero { min-height:300px!important; }
 .courier-dashboard-rider { width:47%; opacity:.92; }
 .courier-dashboard-welcome { width:67%; }
 .courier-dashboard-actions { align-self:flex-end; flex-direction:column; }
 .courier-dashboard-columns { grid-template-columns:1fr; }
 .courier-install-phone { max-width:29%; }
}
@media(max-width:640px) {
 body:has(#app:not(.hidden)) main.courier-portal { padding:10px 12px calc(94px + env(safe-area-inset-bottom))!important; }
 body:has(#app:not(.hidden)) .courier-dashboard-top { position:sticky; top:0; z-index:30; min-height:58px; margin:0 -12px 12px; padding:7px 12px; border-radius:0 0 15px 15px; }
 body:has(#app:not(.hidden)) .courier-dashboard-top .brand img { width:140px; max-width:43vw; }
 body:has(#app:not(.hidden)) .courier-dashboard-top .brand small { padding-left:8px; font-size:8px; letter-spacing:.08em; }
 body:has(#app:not(.hidden)) .courier-dashboard-top .pill { min-height:38px; padding:0 10px; font-size:11px; }
 body:has(#app:not(.hidden)) .courier-dashboard-hero { display:flex; flex-direction:column; align-items:stretch; min-height:0!important; margin-bottom:12px; padding:19px 16px 15px; border-radius:20px; }
 .courier-dashboard-hero::after { background:linear-gradient(180deg,rgba(0,48,19,.98) 0%,rgba(0,61,27,.9) 46%,rgba(0,61,27,.28) 100%); }
 .courier-dashboard-rider { display:none; }
 .courier-dashboard-welcome { width:100%; }
 .courier-dashboard-hero h1 { max-width:80%; margin:10px 0 12px; font-size:clamp(29px,8vw,38px); }
 .courier-dashboard-meta { align-items:flex-start; flex-direction:column; gap:6px; }
 .courier-dashboard-meta #status { min-height:31px; font-size:11px; }
 .courier-store-membership { max-width:78%; }
 .courier-availability { margin-top:9px; font-size:12px; }
 .courier-dashboard-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-self:stretch; gap:8px; width:100%; margin:14px 0 0; padding:0; }
 body:has(#app:not(.hidden)) .courier-dashboard-actions .btn { display:flex; align-items:center; justify-content:center; min-width:0; min-height:45px; padding:0 10px; border-radius:12px; font-size:12px; font-weight:800; }
 body:has(#app:not(.hidden)) .courier-dashboard-actions #onlineBtn { grid-column:1/-1; min-height:48px; border:1px solid #80ff00; border-radius:13px; background:linear-gradient(115deg,#16a34a,#087a37); color:#fff; box-shadow:0 6px 15px rgba(0,0,0,.14); }
 body:has(#app:not(.hidden)) .courier-dashboard-actions #onlineBtn.secondary { border-color:#b9dfc0; background:#fff; color:#064e2b; box-shadow:none; }
 body:has(#app:not(.hidden)) .courier-dashboard-actions #logoutBtn,
 body:has(#app:not(.hidden)) .courier-dashboard-actions .courier-back-trifood { border:1px solid #cfe4d3; background:#fff; color:#064e2b; box-shadow:none; }
 body:has(#app:not(.hidden)) .courier-dashboard-stats { grid-template-columns:1fr; gap:8px; margin-bottom:11px; }
 body:has(#app:not(.hidden)) #dashboard .courier-stat { min-height:76px; padding:12px 14px; border-radius:15px; }
 .courier-stat-icon { width:44px; height:44px; border-radius:13px; }
 .courier-stat-icon img { width:29px; height:29px; }
 body:has(#app:not(.hidden)) #dashboard .courier-stat strong { font-size:20px; }
 body:has(#app:not(.hidden)) #locationState { font-size:14px!important; }
 .courier-dashboard-columns { gap:11px; }
 body:has(#app:not(.hidden)) #dashboard .courier-panel { padding:15px; border-radius:17px; }
 .courier-panel-heading { gap:7px; padding-bottom:11px; }
 .courier-panel-heading h2 { gap:8px; font-size:17px; }
 .courier-panel-heading h2 img { width:24px; height:24px; }
 body:has(#app:not(.hidden)) #dashboard #refreshBtn { min-height:39px; padding:0 10px; font-size:11px; }
 .courier-empty-state { min-height:150px; padding:18px; font-size:13px; }
 #assigned .delivery-job { padding:13px; }
 #assigned .delivery-job .btn { width:100%; min-height:44px; margin:4px 0 0; }
 .courier-earning-row { min-height:58px; gap:8px; padding:11px 1px!important; }
 .courier-earning-row b { font-size:12px; }
 .courier-earning-row strong { font-size:13px; }
 body:has(#app:not(.hidden)) .courier-install-panel, body:has(#app:not(.hidden)) .courier-profile-panel, body:has(#app:not(.hidden)) .courier-activity-panel { margin-top:11px!important; padding:15px; border-radius:17px; }
 .courier-install-panel { min-height:230px; align-items:flex-start; }
 .courier-install-copy { width:68%; }
 .courier-install-copy .courier-panel-heading h2 { font-size:17px; }
 .courier-install-copy > p { font-size:13px; }
 .courier-install-phone { position:absolute; right:2%; bottom:5px; width:auto; max-width:34%; max-height:195px; opacity:.95; }
 body:has(#app:not(.hidden)) .courier-panel .btn-primary { min-height:46px; padding:0 13px; font-size:12px; }
 #courierInstallHelp { max-width:100%; font-size:11px; line-height:1.45; }
 .courier-profile-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px!important; margin:14px 0; }
 .courier-profile-photo { grid-column:1/-1; grid-row:auto; display:grid; grid-template-columns:84px minmax(0,1fr); align-items:center; column-gap:12px; }
 body:has(#app:not(.hidden)) #courierProfilePhoto { grid-row:span 2; width:78px!important; height:78px!important; margin:0!important; }
 .courier-profile-photo label { align-self:end; }
 .courier-profile-photo small { grid-column:2; align-self:start; }
 body:has(#app:not(.hidden)) .courier-profile-grid label { font-size:11px; }
 body:has(#app:not(.hidden)) .courier-profile-grid input { min-height:44px; padding-inline:9px; font-size:12px; }
 .courier-activity-stats { grid-template-columns:1fr; gap:8px; }
 body:has(#app:not(.hidden)) .courier-activity-stats .stat { padding:12px; }
 body:has(#app:not(.hidden)) .courier-activity-stats strong { margin-top:3px; font-size:20px; }
 body:has(#app:not(.hidden)) .courier-bottomnav { bottom:0; padding:7px 8px max(7px,env(safe-area-inset-bottom)); }
 body:has(#app:not(.hidden)) .courier-bottomnav a { min-height:48px; font-size:10px; }
 body:has(#app:not(.hidden)) .courier-bottomnav a span { font-size:20px; }
}
@media(max-width:380px) {
 body:has(#app:not(.hidden)) main.courier-portal { padding-inline:9px!important; }
 body:has(#app:not(.hidden)) .courier-dashboard-top { margin-inline:-9px; }
 body:has(#app:not(.hidden)) .courier-dashboard-hero { padding-inline:15px; }
 .courier-dashboard-rider { width:72%; height:55%; }
 .courier-dashboard-actions { padding-top:0; }
 .courier-profile-grid { gap:8px!important; }
 .courier-profile-grid input { font-size:11px!important; }
}
@media(prefers-reduced-motion:reduce) { body:has(#app:not(.hidden)) *, body:has(#app:not(.hidden)) *::before, body:has(#app:not(.hidden)) *::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; } }
/* One consistent green/white action set for the authenticated dashboard. */
body:has(#app:not(.hidden)) .courier-dashboard-actions .btn,
.courier-dashboard-actions .btn { min-height:46px; border:1px solid #b9dfc0!important; border-radius:13px!important; background:#fff!important; color:#006b25!important; font-size:13px; font-weight:800; text-decoration:none; box-shadow:0 5px 14px rgba(0,61,27,.09); }
body:has(#app:not(.hidden)) .courier-dashboard-actions #onlineBtn,
.courier-dashboard-actions #onlineBtn { border-color:#008f28!important; background:linear-gradient(115deg,#008f28,#006b25)!important; color:#fff!important; }
body:has(#app:not(.hidden)) .courier-dashboard-actions #onlineBtn.secondary,
.courier-dashboard-actions #onlineBtn.secondary { border-color:#b9dfc0!important; background:#fff!important; color:#006b25!important; }
body:has(#app:not(.hidden)) .courier-dashboard-actions #logoutBtn,
.courier-dashboard-actions #logoutBtn { border-color:#b9dfc0!important; background:#fff!important; color:#174326!important; }
body:has(#app:not(.hidden)) .courier-dashboard-actions .courier-back-trifood,
.courier-dashboard-actions .courier-back-trifood { border-color:#b9dfc0!important; background:#fff!important; color:#006b25!important; }
body:has(#app:not(.hidden)) .courier-dashboard-actions .btn:hover,
.courier-dashboard-actions .btn:hover { transform:translateY(-2px); border-color:#008f28!important; background:#e8f8ea!important; color:#003d1b!important; box-shadow:0 9px 18px rgba(0,143,40,.16); }
body:has(#app:not(.hidden)) .courier-dashboard-actions #onlineBtn:hover,
.courier-dashboard-actions #onlineBtn:hover { border-color:#76ff00!important; background:#006b25!important; color:#fff!important; }
@media(min-width:901px) {
  .courier-dashboard-actions { align-self:flex-end; flex-wrap:nowrap; gap:7px; padding:8px; border:1px solid rgba(255,255,255,.75); border-radius:18px; background:rgba(255,255,255,.93); box-shadow:0 12px 28px rgba(0,30,12,.22); backdrop-filter:blur(14px); }
  .courier-dashboard-actions .btn { min-width:106px; padding-inline:12px!important; }
}
/* Equal button sizing and clear primary/secondary hierarchy. */
.courier-dashboard-actions .btn { width:100%; min-width:0!important; min-height:46px; padding:0 12px!important; white-space:nowrap; text-align:center; justify-content:center; }
.courier-dashboard-actions .courier-back-trifood { border-color:#008f28!important; background:linear-gradient(115deg,#008f28,#006b25)!important; color:#fff!important; text-decoration:none!important; }
.courier-dashboard-actions .courier-back-trifood:hover { border-color:#76ff00!important; background:#006b25!important; color:#fff!important; }
@media(min-width:901px) {
  .courier-dashboard-welcome { width:min(50%,740px); }
  .courier-dashboard-actions { display:grid; grid-template-columns:repeat(3,minmax(112px,1fr)); width:fit-content; }
  .courier-dashboard-actions .btn { min-width:112px!important; }
}
/* Refined action toolbar: symmetric frame, equal buttons, centered labels. */
.courier-dashboard-actions { align-items:center!important; justify-content:center!important; border-color:rgba(118,255,0,.28)!important; background:rgba(245,252,246,.96)!important; box-shadow:0 14px 30px rgba(0,32,13,.24)!important; }
.courier-dashboard-actions .btn { display:flex!important; align-items:center!important; justify-content:center!important; box-sizing:border-box; line-height:1.15!important; vertical-align:middle; }
.courier-dashboard-actions .courier-back-trifood { background:linear-gradient(115deg,#008f28,#006b25)!important; color:#fff!important; }

/* Premium action dock integrated with the emerald courier banner. */
body:has(#app:not(.hidden)) .courier-dashboard-hero { isolation:isolate; }
.courier-dashboard-actions {
  z-index:4;
  display:grid!important;
  grid-template-columns:minmax(132px,max-content) minmax(106px,max-content) minmax(158px,max-content);
  max-width:100%;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  width:max-content!important;
  margin:0!important;
  padding:8px!important;
  border:1px solid rgba(194,255,153,.4)!important;
  border-radius:18px!important;
  background:rgba(2,48,23,.72)!important;
  box-shadow:0 14px 34px rgba(0,22,9,.28),inset 0 1px rgba(255,255,255,.12)!important;
  backdrop-filter:blur(14px);
}
.courier-dashboard-actions .btn {
  position:relative;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px;
  width:100%!important;
  min-width:0!important;
  min-height:44px!important;
  height:auto!important;
  padding:0 12px!important;
  border:1px solid rgba(226,255,220,.32)!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.11)!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1.15!important;
  text-align:center;
  text-decoration:none!important;
  white-space:normal;
  overflow-wrap:anywhere;
  box-shadow:inset 0 1px rgba(255,255,255,.1)!important;
  transition:transform .2s ease,border-color .2s ease,background .2s ease,color .2s ease,box-shadow .2s ease!important;
}
.courier-dashboard-actions .btn:hover:not(:disabled) {
  transform:translateY(-2px);
  border-color:rgba(206,255,170,.88)!important;
  background:rgba(255,255,255,.19)!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(0,20,8,.2),inset 0 1px rgba(255,255,255,.16)!important;
}
.courier-dashboard-actions .btn:active:not(:disabled) { transform:translateY(0) scale(.98); }
.courier-dashboard-actions .btn:focus-visible { outline:3px solid #80ff00!important; outline-offset:3px; }
.courier-dashboard-actions #onlineBtn {
  border-color:#a8ff45!important;
  background:linear-gradient(120deg,#80ff00,#b5ff62)!important;
  color:#063b20!important;
  box-shadow:0 5px 18px rgba(128,255,0,.25),inset 0 1px rgba(255,255,255,.62)!important;
}
.courier-dashboard-actions #onlineBtn::before {
  content:"";
  width:8px;
  height:8px;
  flex:none;
  border-radius:50%;
  background:#087a37;
  box-shadow:0 0 0 3px rgba(6,78,43,.1);
}
.courier-dashboard-actions #onlineBtn:hover:not(:disabled) {
  border-color:#d4ff9e!important;
  background:linear-gradient(120deg,#a2ff3e,#c8ff90)!important;
  color:#063b20!important;
  box-shadow:0 8px 22px rgba(128,255,0,.32),inset 0 1px rgba(255,255,255,.72)!important;
}
.courier-dashboard-actions #onlineBtn.secondary {
  border-color:#d7ffb3!important;
  background:linear-gradient(120deg,#f4ffe9,#dfffc6)!important;
  color:#064e2b!important;
  box-shadow:0 5px 16px rgba(128,255,0,.16),inset 0 1px #fff!important;
}
.courier-dashboard-actions #onlineBtn.secondary::before { background:#16a34a; box-shadow:0 0 0 3px rgba(22,163,74,.12); }
.courier-dashboard-actions #logoutBtn::before { content:"↪"; font-size:16px; line-height:1; }
.courier-dashboard-actions .courier-back-trifood::before { content:"←"; flex:none; font-size:16px; line-height:1; }
.courier-dashboard-actions .courier-back-trifood { border-color:rgba(185,255,151,.5)!important; }
.courier-dashboard-actions .btn:disabled { opacity:.62; cursor:wait; }
@media(max-width:900px) {
  body:has(#app:not(.hidden)) .courier-dashboard-hero { display:flex; flex-direction:column; align-items:stretch; min-height:0!important; padding:22px clamp(17px,4vw,30px) 18px; }
  .courier-dashboard-rider { display:none; }
  .courier-dashboard-welcome { width:100%; }
  .courier-dashboard-hero h1 { max-width:100%; }
  .courier-dashboard-actions {
    position:relative!important;
    inset:auto!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%!important;
    margin:17px 0 0!important;
    padding:8px!important;
    border-radius:15px!important;
  }
  .courier-dashboard-actions #onlineBtn { grid-column:1/-1; min-height:48px!important; }
  .courier-dashboard-actions #logoutBtn,.courier-dashboard-actions .courier-back-trifood { min-height:44px!important; }
}
@media(max-width:640px) {
  body:has(#app:not(.hidden)) .courier-dashboard-hero { margin-bottom:12px; padding:18px 15px 14px; border-radius:19px; }
  .courier-dashboard-actions { gap:7px!important; margin-top:14px!important; padding:7px!important; background:rgba(2,48,23,.54)!important; }
  .courier-dashboard-actions .btn { min-height:43px!important; padding-inline:8px!important; font-size:12px!important; }
}
@media(max-width:380px) {
  .courier-dashboard-actions .btn { font-size:11px!important; }
  .courier-dashboard-actions #onlineBtn { min-height:46px!important; }
}
@media(prefers-reduced-motion:reduce) {
  .courier-dashboard-actions .btn { transition:none!important; }
  .courier-dashboard-actions .btn:hover,.courier-dashboard-actions .btn:active { transform:none!important; }
}


/* Perfil do entregador */
body:has(#app:not(.hidden)) .courier-profile-panel {
  padding: clamp(16px, 2.5vw, 28px);
  color: #123d29;
  background: linear-gradient(155deg, #fff 54%, #f5fbf6);
}
.courier-profile-panel .courier-profile-grid {
  grid-template-columns: minmax(220px, 288px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 3vw, 30px) !important;
  margin: 20px 0;
}
.courier-profile-panel .courier-profile-photo {
  grid-row: auto;
  grid-column: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 10px;
  min-width: 0;
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid #d4e9d9;
  border-radius: 18px;
  background: radial-gradient(ellipse at top, #e2f7e4, #f8fcf8 70%);
}
.courier-profile-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #087a36;
  background: #e0f4e2;
  box-shadow: 0 0 0 2px #99d6a8, 0 8px 22px #123d2922;
}
body:has(#app:not(.hidden)) .courier-profile-avatar #courierProfilePhoto {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0;
}
body:has(#app:not(.hidden)) .courier-profile-avatar #courierProfilePhoto:is(:not([src]), [src=""]) { display: none; }
.courier-profile-panel .courier-profile-photo label { width: 100%; align-self: auto; }
.courier-profile-panel .courier-profile-photo small { grid-column: auto; margin: 0; justify-self: start; color: #3e5e49; line-height: 1.4; }
.courier-profile-details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; min-width: 0; }
.courier-profile-name { grid-column: 1 / -1; }
body:has(#app:not(.hidden)) .courier-profile-panel .courier-profile-grid label { display: block; color: #123d29; font-size: 13px; font-weight: 750; }
body:has(#app:not(.hidden)) .courier-profile-panel .courier-profile-grid input { box-sizing: border-box; min-height: 46px; font-size: 14px !important; background: #fff; }
body:has(#app:not(.hidden)) .courier-profile-panel #courierPhotoInput { padding: 5px; font-size: 12px !important; }
.courier-profile-photo input::file-selector-button { min-height: 34px; margin-inline-end: 7px; padding-inline: 8px; border: 0; border-radius: 8px; color: #0d502b; background: #e3f5e7; font: 750 12px Inter,system-ui,sans-serif; cursor: pointer; }
.courier-profile-photo input::file-selector-button:hover { background: #ccefd4; }
body:has(#app:not(.hidden)) .courier-profile-panel #courierProfileEmail { background: #f0f7f2; color: #345743; }
.courier-profile-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 15px; border-top: 1px solid #deebe1; }
.courier-profile-footer .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.courier-profile-footer #courierProfileStatus { margin: 0; color: #123d29; font-size: 13px; }
.courier-profile-footer .btn:focus-visible { outline: 2px solid #087a36; outline-offset: 3px; }
@media (max-width: 680px) {
  .courier-profile-panel .courier-profile-grid { grid-template-columns: minmax(0, 1fr); }
  .courier-profile-panel .courier-profile-photo { justify-items: start; }
}
@media (max-width: 480px) {
  .courier-profile-details { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  body:has(#app:not(.hidden)) .courier-profile-panel .courier-profile-details input { font-size: 16px !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .courier-profile-panel:not(.hidden) .courier-profile-grid { animation: courier-profile-enter .38s ease-out both; }
  .courier-profile-panel .courier-profile-grid input, .courier-profile-footer .btn { transition: border-color .18s, box-shadow .18s, transform .18s; }
}
@keyframes courier-profile-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  body:has(#app:not(.hidden)) .courier-profile-footer .btn:hover { transform: none; }
}
