/* Authoritative references are the two user-supplied images in docs/design-references.
   Menu OPTIONS use the current large-card screenshot. Reservation/alert lists use
   the separate approved mockup. These are intentionally different components. */
:root{--hospi-menu-bg:var(--hospi-bg,#030f1d);--hospi-menu-card:var(--hospi-surface,#0d1e30);--hospi-card-fill:var(--hospi-card-gradient,linear-gradient(135deg,#10243a,#0d1e30));--hospi-menu-line:var(--hospi-line,#2b4667);--hospi-menu-text:var(--hospi-text,#f5f7fa);--hospi-menu-muted:var(--hospi-muted,#c7d7e4);--hospi-menu-icon:var(--hospi-green,#80f80c);--hospi-reference-bg:#030f1d;--hospi-reference-card:#0d1e30;--hospi-reference-line:#2b4667;--hospi-reference-green:#80e740;--hospi-reference-blue:#1375dc}
body:is(.hospi-driver-menus,.hospi-passenger-menus){background:var(--hospi-menu-bg);--surface:var(--hospi-menu-card);--soft:#203c55;--text:var(--hospi-menu-text);--ink:var(--hospi-menu-text);--n:var(--hospi-menu-text);--m:var(--hospi-menu-muted);--muted:var(--hospi-menu-muted);--border:var(--hospi-menu-line);--line:var(--hospi-menu-line);--b:var(--hospi-menu-icon);--g:#a8f000;color:var(--hospi-menu-text)}
/* Large menu entries share one rule, regardless of role or nesting depth. */
body:is(.hospi-driver-menus,.hospi-passenger-menus) :is(#driver,#customer) .workspace-panel :is(.driver-account-list-row,button.account-row:not(.back-button),a.account-row,summary.account-row,label.passenger-report-reason){display:flex;align-items:center;gap:14px;width:100%;min-height:86px;padding:18px 20px;margin:12px 0;border:1px solid var(--hospi-menu-line);border-radius:14px;background:var(--hospi-card-fill);color:var(--hospi-menu-text);text-align:left;text-decoration:none;box-shadow:none;font-size:19px!important;font-weight:700;line-height:1.35}
body:is(.hospi-driver-menus,.hospi-passenger-menus) :is(#driver,#customer) .workspace-panel :is(.driver-account-list-row,button.account-row,a.account-row) small{display:block;font-size:13px;line-height:1.45;color:var(--hospi-menu-muted);font-weight:400;margin-top:5px}
body:is(.hospi-driver-menus,.hospi-passenger-menus) :is(#driver,#customer) .workspace-panel :is(.driver-account-list-row,button.account-row,a.account-row)>svg{width:30px;height:30px;flex:0 0 30px;color:var(--hospi-menu-icon)}
body:is(.hospi-driver-menus,.hospi-passenger-menus) :is(#driver,#customer) .workspace-panel .nested-menu-icon{width:30px;height:30px;flex:0 0 30px;color:var(--hospi-menu-icon)}
body:is(.hospi-driver-menus,.hospi-passenger-menus) :is(#driver,#customer) .workspace-panel .nested-menu-icon svg{width:30px;height:30px}
body:is(.hospi-driver-menus,.hospi-passenger-menus) :is(#driver,#customer) .workspace-panel .nested-icon-row>span:first-child{flex:1;min-width:0}
body:is(.hospi-driver-menus,.hospi-passenger-menus) :is(#driver,#customer) .workspace-panel .nested-icon-row .nested-menu-icon{order:-1}
body :is(#driver,#customer) :is(#driverAccountExtras,#customerAccountExtras){display:flex;flex-direction:column;gap:24px}
body :is(#driver,#customer) :is(#driverAccountExtras,#customerAccountExtras)>.driver-account-list-row{margin:0;min-height:86px;padding:18px 20px;border-radius:14px;border:1px solid var(--hospi-menu-line);background:var(--hospi-card-fill);color:var(--hospi-menu-text)}
body :is(#driver,#customer) #earningsAccountLinks .driver-account-group{gap:24px}
body :is(#driver,#customer) #earningsAccountLinks .driver-account-list-row{margin:0}
body:is(.hospi-driver-menus,.hospi-passenger-menus) :is(#driver,#customer) .section-nav{background:var(--hospi-card-fill);border-color:var(--hospi-menu-line);color:var(--hospi-menu-muted)}
/* Do not introduce the decorative heading underline from the rejected proposal. */
body :is(#driver,#customer) :is([data-shared-menu-heading],[data-passenger-heading]) h2:after{display:none}
/* Original mockup palette and proportions for Reservations AND Alerts in each role. */
body.hospi-reference-list{background:var(--hospi-reference-bg);--surface:var(--hospi-reference-card);--border:var(--hospi-reference-line);--line:var(--hospi-reference-line);--g:var(--hospi-reference-green);--b:#55b9fa}
body.hospi-reference-list :is(#driver,#customer) .workspace-panel{background:transparent}
body.hospi-reference-list :is(#driver,#customer) :is(.available-trip,.driver-trip-row,.compact-activity-card,.ht-alerts .ht-alert-card){background:linear-gradient(135deg,#10243a,var(--hospi-reference-card));border:1px solid var(--hospi-reference-line);border-radius:14px;color:#f5f7fa;box-shadow:none}
body.hospi-reference-list :is(#driver,#customer) .activity-open{background:transparent;color:#f5f7fa}
body.hospi-reference-list #driver #driverActivityMenu .driver-activity-category{min-height:94px;padding:10px 4px;gap:5px;background:linear-gradient(#1c3048,#101e30);border:1px solid #4b6484;border-radius:14px;color:#e9f1fb}
body.hospi-reference-list #driver #driverActivityMenu .driver-activity-category:nth-child(2){background:linear-gradient(#07376e,#041b36);border-color:var(--hospi-reference-blue)}
body.hospi-reference-list #driver #driverActivityMenu .driver-activity-category[aria-pressed=true]{background:linear-gradient(#185a18,#0c2b16);border:2px solid #98ed2a;color:#f5f7fa;box-shadow:0 0 7px #84e53224}
body.hospi-reference-list #driver #driverActivityMenu .activity-category-icon{color:#c0d4eb}
body.hospi-reference-list #driver #driverActivityMenu .driver-activity-category:nth-child(2) .activity-category-icon{color:#6abef8}
body.hospi-reference-list #driver #driverActivityMenu .driver-activity-category[aria-pressed=true] .activity-category-icon{color:#9bef28}
body.hospi-reference-list #driver #driverActivityMenu .activity-category-copy strong{font-size:14px!important}
body.hospi-reference-list #driver #driverActivityMenu .activity-count{font-size:24px}
body.hospi-reference-list :is(#driver,#customer) :is(.ht-alert-tabs,.activity-filters) button{background:linear-gradient(#1b2d42,#112336);border:1px solid #415775;border-radius:12px;min-height:44px;color:#edf4fc;font-size:15px;box-shadow:none}
body.hospi-reference-list :is(#driver,#customer) :is(.ht-alert-tabs,.activity-filters) button[aria-pressed=true]{background:linear-gradient(#174e16,#0c2b16);color:#f3f8ed;border:2px solid #9cef31;box-shadow:0 0 7px #84e53224}
body.hospi-reference-list :is(#driver,#customer) .ht-alerts .ht-alert-card{padding:12px;gap:3px 10px}
body.hospi-reference-list :is(#driver,#customer) .ht-alerts .ht-alert-symbol{background:#133719;color:#9df224}
body.hospi-reference-list :is(#driver,#customer) .ht-alerts :is([data-alert-kind=changed],[data-alert-kind=rescheduled],[data-alert-kind=routeChanged]) .ht-alert-symbol,body.hospi-reference-list :is(#driver,#customer) .ht-alerts [data-alert-kind=scheduledRadar] .ht-alert-symbol{background:#06376a;color:#65c4ff}
body.hospi-reference-list :is(#driver,#customer) .ht-alerts :is([data-alert-kind=cancelled],[data-alert-kind=customerCancelled],[data-alert-kind=driverCancelled],.ht-alert-emergency) .ht-alert-symbol{background:#482134;color:#ff6476}
body.hospi-reference-list :is(#driver,#customer) .ht-alerts .ht-alert-title strong{font-size:16px;line-height:1.3}
body.hospi-reference-list :is(#driver,#customer) .ht-alerts .ht-alert-card p{font-size:14px!important;line-height:1.35}
body.hospi-reference-list :is(#driver,#customer) .ht-alerts .ht-alert-card time,body.hospi-reference-list :is(#driver,#customer) .ht-alerts .ht-alert-reference{color:#c8d5e4}
body.hospi-reference-list #driver #driverActivityList .available-trip-action button{background:linear-gradient(#8bef44,#6bdc28);color:#071c0b;border:1px solid #8be43d;border-radius:10px;font-size:17px;min-height:44px}
body.hospi-reference-list :is(#driver,#customer) .section-nav{background:#04182c;border-color:#294f76;color:#f1f4f9}
body.hospi-reference-list :is(#driver,#customer) .section-nav button[aria-selected=true]{background:linear-gradient(#144a27,#0d2d20);color:#a6f122;border:1px solid #286642;border-radius:14px}
body.hospi-reference-list :is(#driver,#customer) .section-nav button[aria-selected=true] svg{color:#a6f122!important}
@media(max-width:360px){body:is(.hospi-driver-menus,.hospi-passenger-menus) :is(#driver,#customer) .workspace-panel :is(.driver-account-list-row,button.account-row:not(.back-button),a.account-row){padding:15px;min-height:80px;font-size:17px!important}body #driver #driverActivityMenu .driver-activity-category{min-height:90px}}

/* Final approved review: same dark rectangles and green option icons in both apps. */
body:is(.hospi-driver-menus,.hospi-passenger-menus) :is(#driver,#customer) .workspace-panel :is(.card,.weekly-card,.earnings-live-wallet,.hd-document-card,.hd-info-row,.hd-guidance,.hd-preview){background:var(--hospi-card-fill);border-color:var(--hospi-menu-line);color:var(--hospi-menu-text);box-shadow:none}
body :is(#driver,#customer) :is(#driverAccountExtras,#customerAccountExtras)>.driver-account-list-row>svg,body #driver #earningsAccountLinks .driver-account-list-row>svg{color:var(--hospi-menu-icon)}
body :is(#driver,#customer) :is(.driver-account-chevron,.account-row>span[aria-hidden=true]){color:#a5cae8}
body:is(.hospi-driver-internal,.hospi-customer-internal) :is(.passenger-brand,.hospi-reference-masthead,.hd-brand-wrap){display:none!important}
body:is(.hospi-driver-menus,.hospi-passenger-menus) :is(#driver,#customer) .section-nav{background:#04182c;border-color:#294f76}
body:is(.hospi-driver-menus,.hospi-passenger-menus) :is(#driver,#customer) .section-nav button[aria-selected=true]{background:linear-gradient(#144a27,#0d2d20);border-color:#286642;color:#a6f122}
body #customer .section-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}
body :is(#driver,#customer) .section-nav button{position:relative}
body :is(#driver,#customer) .section-nav :is(#driverNavAlertCount,#customerNavAlertCount){background:#d92d20!important;color:#fff!important;position:absolute;top:0;right:calc(50% - 27px);grid-row:auto!important;grid-column:auto!important;display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px!important;padding:0 4px;margin:0;line-height:18px;font-size:10px!important;font-style:normal;border:1px solid #04182c;border-radius:999px;pointer-events:none}
body :is(#driver,#customer) .section-nav :is(#driverNavAlertCount,#customerNavAlertCount)[hidden]{display:none!important}
body #customer [data-tab=cards] [data-passenger-card-methods]>h2{display:none}
body #customer [data-tab=cards] [data-passenger-card-methods]{padding:18px 16px;border-radius:14px}
body #customer [data-tab=cards] #stripeAddCard{min-height:48px;border-radius:10px;background:linear-gradient(#8bef44,#6bdc28);color:#071c0b;font-size:16px}
body #customer [data-tab=cards] #stripeSavedCards .card{border:1px solid var(--hospi-menu-line);border-radius:14px;padding:16px}
/* These selectors match the older ID-specific rules so no lighter row can win. */
body #driver #earningsAccountLinks .driver-account-list-row{background:var(--hospi-card-fill);border-color:var(--hospi-menu-line)}
body :is(#driver,#customer) :is(#driverAccountHero,#customerAccountHero) .driver-account-edit{background:var(--hospi-card-fill);border-color:var(--hospi-menu-line);color:#a8f000}

/* Reservations follows the approved compact driver preview. */
body.hospi-reference-list #driver #driverActivityMenu .driver-activity-category {
  flex-direction:row; flex-wrap:wrap; min-height:48px; gap:4px;
  padding:6px 3px; border:1px solid var(--hospi-reference-line); border-radius:8px;
  background:#11273b; box-shadow:none;
}
body.hospi-reference-list #driver #driverActivityMenu .driver-activity-category[aria-pressed=true] {
  background:#193721; color:#b1f330; border:1px solid #b1f330;
}
body.hospi-reference-list #driver #driverActivityMenu .activity-category-icon {display:none}
body.hospi-reference-list #driver #driverActivityMenu .activity-category-copy strong {font-size:clamp(11px,3.3vw,15px)!important}
body.hospi-reference-list #driver #driverActivityMenu .activity-count {font-size:13px}
#driver #driverActivityList .driver-reservation-card {padding:0; margin:10px 0; background:#11273b; border:1px solid var(--hospi-reference-line); border-radius:11px}
#driver #driverActivityList .driver-reservation-open {display:grid; width:100%; text-align:left; gap:5px; padding:12px; border:0; background:transparent; color:inherit}
#driver .driver-reservation-address {overflow-wrap:anywhere; font-weight:650}
#driver .driver-reservation-title,#driver .driver-reservation-meta {display:flex; justify-content:space-between; align-items:center; gap:8px}
#driver .driver-reservation-title>span {color:#8bd2ff; font-size:22px; line-height:1}
#driver .driver-reservation-card time {color:#bcd0e2; font-size:14px}
#driver .driver-reservation-status {padding:3px 8px; border-radius:6px; font-size:12px; font-weight:700; background:#163753; color:#8bd2ff}
#driver .driver-reservation-status.completed {background:#203b24; color:#b1f330}
#driver .driver-reservation-status.cancelled {background:#492931; color:#ffb0ab}
#driver .driver-reservation-meta strong,#driver #driverActivityList .available-trip-action strong {color:#b1f330}
#driver .driver-reservation-day {margin:16px 0 9px}
#driver .driver-reservation-card .driver-row-actions {padding:0 12px 12px}
#driver #driverActivityList .available-trip .driver-route-estimate {display:block; margin-top:4px}

/* One menu palette in both apps, including form controls and nested screens.
   Keep this reference sheet last; document/role sheets must not recolor menus. */
body.hospi-driver-menus #driver.screen,body.hospi-passenger-menus #customer.screen{
 --surface:var(--hospi-menu-card);--soft:#122b43;--text:var(--hospi-menu-text);--ink:var(--hospi-menu-text);--n:var(--hospi-menu-text);--m:var(--hospi-menu-muted);--muted:var(--hospi-menu-muted);--border:var(--hospi-menu-line);--line:var(--hospi-menu-line);--b:var(--hospi-menu-icon);--g:var(--hospi-menu-icon);--ht-outline:var(--hospi-menu-line);color-scheme:dark;
}
body:is(.hospi-driver-menus,.hospi-passenger-menus) :is(#driver,#customer) .workspace-panel :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--hospi-menu-card);color:var(--hospi-menu-text);border-color:var(--hospi-menu-line)}
body:is(.hospi-driver-menus,.hospi-passenger-menus) :is(#driver,#customer) :is([data-nested-settings],[data-nested-help]) :is(.driver-account-list-row>svg,.nested-menu-icon){color:var(--hospi-menu-icon)}
