/* Partner portal readability and brand header — r59. */
:root{font-size:16px;line-height:1.5;--muted:#58677d}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]){--muted:#a0aec1}
h1{font-size:1.75rem;line-height:1.25}h2{font-size:1.25rem;line-height:1.4}h3{font-size:1rem;line-height:1.5}
.page-head h1{font-size:1.75rem;line-height:1.25}.panel-head h2,.section-title h2{font-size:1.25rem;line-height:1.4}
.auth-card h1{font-size:1.5rem;line-height:1.3}.auth-card label{font-size:.875rem;line-height:1.45;font-weight:500}.auth-card p{font-size:1rem;line-height:1.5}
.auth-brand span,.brand-sub,.nav-count,.eyebrow,.section-number{font-size:.8125rem;line-height:1.5}
.nav a,.btn,.btn.small,.page-head .actions .btn,.tab,.period,.toolbar select,.text-button,.quote-submit{font-size:.9375rem;line-height:1.45}
.nav a{min-height:44px}.btn{min-height:44px;padding:10px 14px}.btn.small{min-height:40px}.period,.toolbar select{min-height:44px}
.support-link,.company-name,.company-description,.breadcrumb,.user,.user small,.panel-head p,.kpi-label,.kpi-note,.table-sub,.table-footer,.tab span,.pill,.section-note,.page-num,.draft-state,.mobile-submit small{font-size:.875rem;line-height:1.5}
.company-name{white-space:normal;overflow-wrap:anywhere}.company-description,.breadcrumb,.user small{color:var(--muted)}.sidebar .company-description{color:#aeb8ca}
.orders-table th{font-size:.875rem;line-height:1.45;white-space:normal}.orders-table td,.order-id,.route-cell span{font-size:.9375rem;line-height:1.5}.route-cell span{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.status,.status.order-status-soft{font-size:.875rem;line-height:1.45}.orders-table .status{overflow-wrap:normal}
.field label,.field-label,.form-section .field-label,.section-title .muted{font-size:.875rem;line-height:1.45}.field{gap:8px}
.input,select,textarea,.search input,.auth-card input,#app .partner-field,#overlay .partner-field{font-size:1rem;line-height:1.5;min-height:46px}
input::placeholder,textarea::placeholder,.input::placeholder{font-size:1rem;color:var(--muted)}
.hint,.field .hint,.field-error,.note,.radio-label,.suggestion,.suggestion small,.vehicle-option small,.template-select,.segment button,.quote-row,.quote-row small,.quote-legal,.quote-loading{font-size:.875rem;line-height:1.5;color:var(--muted)}
.vehicle-option b,.stepper span,.quote-row b,.quote-total span,.address-card p,.template-card p,.settings-row,.settings-notice,.employee-row p,.empty p{font-size:1rem;line-height:1.5}
.vehicle-option b{font-weight:600}.vehicle-option small{font-size:.875rem}.vehicle-options{gap:10px}.segment button{min-height:42px}
.quote-row b,.quote-total span,.radio-label,.settings-row{color:var(--ink)}
.settings-row{align-items:flex-start;gap:16px}.settings-row b{overflow-wrap:anywhere}.settings-row span{font-size:.875rem;line-height:1.5}
.address-card p,.template-card p,.employee-row p,.note,.hint,.quote-legal,.quote-row small,.field label,.field-label,.field-error,.table-sub,.route-cell .route-from,.bar-wrap small,.bar-labels span,.detail-label,.drawer-head p,.drawer-point small,.driver-card p,.timeline small,.timeline time{color:var(--muted)}
.drawer-head h2{font-size:1.5rem;line-height:1.3}.drawer-head p,.drawer-point small,.detail-label,.driver-card p,.timeline small,.timeline time{font-size:.875rem;line-height:1.5}
.drawer-point,.drawer-point a,.detail-value,.driver-card b,.timeline b,.dialog p,.dialog .radio-label{font-size:1rem;line-height:1.5}.drawer-content .status{font-size:.875rem}
.drawer-footer{flex-wrap:wrap}.driver-copy{min-width:0}.driver-copy p{overflow-wrap:anywhere}
.drawer-content h3{font-size:1rem;line-height:1.5}
.bar-wrap small,.bar-labels span{font-size:.8125rem;line-height:1.5}.chart-wrap{overflow-x:auto}.bars{min-width:340px}
.dialog{max-height:calc(100dvh - 48px);overflow-y:auto}.dialog .actions{flex-wrap:wrap}.dialog .field+.field{margin-top:14px}.dialog h2{font-size:1.25rem}
.toast{font-size:.875rem;line-height:1.5}.field-error{color:var(--field-error)}.search .icon{top:14px}
.draft-state,.section-number,.field label em,.pill,.tab span,.settings-row span,.mobile-submit small{color:var(--muted)}
.stepper button{color:var(--ink)}
html:not([data-business-theme="dark"]) .point-mark.to,html:not([data-business-theme="dark"]) .drawer-point .letter.to{color:#9a4b0d}
html:not([data-business-theme="dark"]) .status.order-status-soft.gray{color:var(--muted)}
.map-title,.map-point{font-size:1rem;line-height:1.5}.map-point b,.map-empty,.map-title span{font-size:.875rem;line-height:1.5}.map-empty{color:var(--muted)}
html:not([data-business-theme="dark"]) .map-point:last-child b{color:#9a4b0d}
.mobile-order-cards{display:none}.empty b{font-size:1rem}.order-card{padding:18px;border-bottom:1px solid var(--line)}
.order-card:last-child{border-bottom:0}.order-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.order-card-head .order-id{font-size:1rem;font-weight:600}.order-card .status{max-width:65%;white-space:normal}
.order-card-meta{margin-top:6px;color:var(--muted);font-size:.875rem;line-height:1.5}.order-card-route{display:grid;gap:8px;margin:14px 0;font-size:1rem;line-height:1.5}.order-card-route div{display:grid;grid-template-columns:16px minmax(0,1fr);gap:8px}.order-card-route i{font-style:normal;color:var(--muted);font-size:.875rem}.order-card-route span{overflow-wrap:anywhere}
.order-card-bottom{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;font-size:1rem;line-height:1.5}.order-card-bottom strong{white-space:nowrap;font-weight:600}.order-card-bottom small{display:block;font-size:.875rem;line-height:1.5;color:var(--muted)}
.order-card-bottom>div:first-child{min-width:0;overflow-wrap:anywhere}.order-card-price{text-align:right;flex-shrink:0}.order-card-price small{max-width:145px}
.order-card-head .order-id{min-height:44px;padding:8px 0}
@media(max-width:1199px){.kpi-label{font-size:.875rem}.vehicle-option small{font-size:.875rem}}
@media(max-width:767px){
 :root{font-size:16px}.content{padding:20px 16px 110px}.page-head{align-items:flex-start;gap:16px;flex-wrap:wrap}.page-head h1{font-size:1.5rem;line-height:1.3}.page-head .actions{flex-wrap:wrap;max-width:100%}
 .page-head .actions .btn,.page-head .actions .period,.btn,.btn.small,.tab,.toolbar select{font-size:.9375rem;min-height:44px}
 .panel-head{gap:12px;flex-wrap:wrap}.panel-head h2,.section-title h2{font-size:1.125rem}.panel-head p,.panel-head .text-button{font-size:.875rem}
 .kpi-label,.kpi-note,.breadcrumb,.table-footer,.field label,.field-label,.form-section .field-label,.section-title .muted,.mobile-submit small{font-size:.875rem}
 .input,select,textarea,.search input,.input::placeholder,textarea::placeholder{font-size:1rem}
 .vehicle-option b{font-size:1rem}.vehicle-option small,.field .hint,.template-select{font-size:.875rem}.vehicle-option{padding:14px 10px;min-height:124px}
 .status,.status.order-status-soft{font-size:.875rem;line-height:1.45}.segment button{font-size:.9375rem}.icon-button{min-width:44px;min-height:44px}.tabs{gap:18px;padding:0 16px}
 .mobile-submit{gap:12px;padding:12px 16px}.mobile-submit .btn{font-size:.9375rem;min-height:48px}.mobile-submit>div{min-width:0}.mobile-submit strong{font-size:1.25rem}
 .settings-row{font-size:1rem;display:grid;grid-template-columns:1fr;gap:4px}.settings-row b{text-align:left}.drawer-head,.drawer-content,.drawer-footer{padding-left:18px;padding-right:18px}.drawer-footer .btn{flex:1;min-width:112px}
 .drawer-point{font-size:1rem}.drawer-point .letter{font-size:.875rem}.details-grid{gap:18px 12px}.dialog{max-height:calc(100dvh - 32px);padding:22px}.dialog-wrap{padding:16px}.auth-card{padding:24px}.auth-shell{padding:76px 16px 32px}
 .table-scroll:has(+.mobile-order-cards){display:none}.mobile-order-cards{display:block}.search{max-width:none}.toolbar{padding:16px;gap:12px}.toolbar select{margin-left:0;max-width:100%}.table-footer{flex-wrap:wrap}.pagination{gap:8px}.page-num{min-width:44px;height:44px;font-size:.875rem}
 .chart-wrap{padding-left:16px;padding-right:16px}.bars{min-width:340px}.employee-row{flex-wrap:wrap;gap:12px}
}
@media(max-width:480px){.field label,.form-section .field-label{font-size:.875rem}.vehicle-option small{font-size:.875rem}.kpis{gap:12px}.kpi{padding:16px}.kpi-label{font-size:.875rem}.quote-total strong{font-size:1.5rem}}

/* Hide scrollbar chrome only; all scroll containers retain their overflow behavior. */
html,body,*{scrollbar-width:none;-ms-overflow-style:none}
*::-webkit-scrollbar{display:none;width:0;height:0}
html{scrollbar-gutter:auto}
.partner-brand{display:inline-flex;align-items:center;gap:10px;flex-shrink:0;min-width:0;color:var(--ink);text-decoration:none;line-height:1.2}
.partner-wordmark{font-size:22px;font-weight:650;letter-spacing:-.7px;white-space:nowrap}
.partner-brand-label{display:inline-flex;align-items:center;min-height:27px;padding:4px 8px;border:1px solid var(--line);border-radius:6px;background:var(--blue-soft);color:var(--blue);font-size:13px;line-height:18px;font-weight:500;white-space:nowrap}
.partner-brand-auth{margin:0 auto;color:var(--ink)}.partner-brand-auth .partner-wordmark{font-size:28px}
.sidebar .nav{margin-top:0}.sidebar{padding-top:26px}
@media(max-width:1000px) and (min-width:768px){.sidebar .nav{margin-top:0}.partner-wordmark{font-size:21px}}
@media(max-width:767px){
 .topbar{padding:0 12px;gap:8px}.top-right{gap:6px}.partner-brand{gap:7px}.partner-wordmark{font-size:20px}.partner-brand-label{font-size:12px;line-height:16px;min-height:25px;padding:4px 6px}
 .topbar .user{display:none}.top-right .business-theme-toggle{width:40px;min-width:40px;min-height:40px;padding:8px}
 .sidebar{padding-top:66px}.partner-brand-auth{gap:10px}.partner-brand-auth .partner-wordmark{font-size:26px}.partner-brand-auth .partner-brand-label{font-size:13px;line-height:18px}
}
@media(max-width:350px){.topbar{padding:0 8px;gap:5px}.topbar .mobile-toggle{min-width:36px;min-height:40px}.partner-wordmark{font-size:18px}.partner-brand-label{font-size:12px;padding:4px 5px}.partner-brand{gap:5px}}
