:root {
    color-scheme: light;
    --red: #f00000;
    --red-dark: #c90000;
    --red-soft: #fff0ef;
    --ink: #1f2937;
    --muted: #737d8a;
    --line: #e8ebef;
    --canvas: #f5f6f8;
    --white: #fff;
    --nav: #15191f;
    --green: #23964e;
    --green-soft: #eaf7ef;
    --amber: #ed861d;
    --amber-soft: #fff3e4;
    --shadow: 0 10px 30px rgba(24, 34, 47, .045);
    font-family: "DM Sans", "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.sidebar { background: var(--nav); color: #fff; display: flex; flex-direction: column; height: 100vh; left: 0; padding: 26px 18px 18px; position: fixed; top: 0; width: 252px; z-index: 5; }
.brand-lockup { align-items: center; display: flex; gap: 11px; min-width: 0; }
.brand-lockup img { border-radius: 50%; height: 42px; object-fit: cover; width: 42px; }
.brand-lockup span { display: flex; flex-direction: column; line-height: 1.1; }
.brand-lockup b { font: 800 20px Manrope, sans-serif; letter-spacing: -.7px; }
.brand-lockup small { color: #9ba2ac; font-size: 8px; font-weight: 700; letter-spacing: 1.7px; margin-top: 5px; }
.sidebar-label { color: #747c87; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; margin: 48px 12px 13px; }
.side-nav { display: grid; gap: 5px; }
.side-nav a { align-items: center; border-radius: 9px; color: #aeb4bd; display: flex; font-size: 13px; font-weight: 600; gap: 13px; min-height: 44px; padding: 0 13px; transition: background .2s, color .2s, transform .2s; }
.side-nav a:hover { background: #242a32; color: white; transform: translateX(2px); }
.side-nav a.active { background: var(--red); box-shadow: 0 5px 16px #e4000033; color: #fff; }
.nav-icon { align-items: center; display: inline-flex; font-size: 20px; height: 23px; justify-content: center; width: 20px; }
.nav-count { align-items: center; background: var(--red); border: 2px solid #fff; border-radius: 20px; color: white; display: inline-flex; font-size: 9px; font-style: normal; height: 19px; justify-content: center; margin-left: auto; min-width: 19px; padding: 0 4px; }
.side-nav .active .nav-count { border-color: var(--red); background: white; color: var(--red); }
.sidebar-bottom { margin-top: auto; }
.support-card { align-items: center; background: #20262e; border: 1px solid #2a303a; border-radius: 10px; display: flex; gap: 11px; margin: 0 2px 18px; padding: 13px 12px; }
.support-card div, .profile-copy { display: flex; flex-direction: column; gap: 4px; }
.support-card b, .profile-copy b { font-size: 11px; }
.support-card small, .profile-copy small { color: #929ba6; font-size: 10px; }
.support-dot, .status-dot { background: #35bb68; border-radius: 50%; flex: 0 0 auto; height: 8px; width: 8px; }
.profile-row { align-items: center; border-top: 1px solid #2a3038; display: flex; gap: 10px; padding: 17px 2px 2px; }
.avatar { align-items: center; background: #ffe4dc; border-radius: 50%; color: #a93e27; display: inline-flex; flex: 0 0 auto; font-size: 12px; font-weight: 700; height: 34px; justify-content: center; width: 34px; }
.avatar-large { height: 42px; width: 42px; }
.sidebar-business-logo { border: 2px solid rgba(255, 255, 255, .22); border-radius: 10px; height: 34px; object-fit: cover; width: 34px; }
.profile-image-placeholder { background: #f0f2f5; border: 1px solid #e1e5ea; box-shadow: none; }
.sidebar-business-logo.profile-image-placeholder { background: #343b46; border-color: rgba(255, 255, 255, .22); }
.profile-copy { min-width: 0; }
.profile-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { align-items: center; background: transparent; border: 0; border-radius: 7px; color: var(--muted); display: inline-flex; font-size: 18px; height: 34px; justify-content: center; transition: background .2s, color .2s; width: 34px; }
.icon-button:hover { background: #f1f2f4; color: var(--ink); }
.logout-button { color: #a6adb8; margin-left: auto; }
.main-content { margin-left: 252px; max-width: 1800px; min-height: 100vh; padding: 39px clamp(24px, 4vw, 64px) 64px; }
.page-header { align-items: center; display: flex; justify-content: space-between; margin-bottom: 28px; }
.eyebrow { color: #8a929e; display: block; font-size: 9px; font-weight: 700; letter-spacing: 1.45px; margin-bottom: 8px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, "DM Sans", sans-serif; }
.page-header h1 { font-size: clamp(27px, 3vw, 34px); letter-spacing: -1.2px; line-height: 1.2; margin-bottom: 7px; }
.page-header p { color: var(--muted); font-size: 13px; margin: 0; }
.header-actions { align-items: center; display: flex; gap: 14px; }
.admin-mobile-menu-toggle, .admin-mobile-nav { display: none; }
.admin-mobile-menu-toggle { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 700; gap: 7px; min-height: 38px; padding: 0 11px; }
.admin-mobile-menu-toggle span:first-child { font-size: 16px; }
.today-chip { align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 8px; color: #566171; display: flex; font-size: 11px; font-weight: 600; gap: 8px; padding: 10px 13px; white-space: nowrap; }
.today-chip .status-dot { height: 7px; width: 7px; }
.business-profile-panel { margin-bottom: 18px; padding: 20px 22px; }
.business-profile-header { align-items: center; display: flex; gap: 18px; justify-content: space-between; }
.business-profile-identity { align-items: center; display: flex; gap: 16px; min-width: 0; }
.business-profile-logo { border: 1px solid var(--line); border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(17, 25, 40, .02); height: 64px; object-fit: cover; width: 64px; }
.business-profile-header h2 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.8px; margin-bottom: 4px; }
.verified-check { align-items: center; background: #138a4b; border: 1px solid #08723b; border-radius: 999px; box-shadow: 0 2px 6px rgba(8, 114, 59, .25); color: #fff; display: inline-flex; font-size: 11px; font-weight: 800; gap: 4px; line-height: 1; margin-left: 8px; padding: 5px 9px; vertical-align: middle; white-space: nowrap; }
.verified-check span { font-size: 13px; }
.business-profile-header p { color: var(--muted); font-size: 12px; margin: 0; }
.business-profile-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.business-profile-meta span { background: #f7f8fa; border: 1px solid var(--line); border-radius: 999px; color: #495766; font-size: 11px; padding: 8px 12px; }
.business-profile-meta strong { color: var(--ink); margin-right: 6px; }
.modal-backdrop { align-items: center; background: rgba(17, 25, 40, .44); bottom: 0; display: flex; inset: 0; justify-content: center; padding: 24px; position: fixed; z-index: 100; }
.modal-backdrop[hidden] { display: none; }
.modal-sheet { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(16, 22, 28, .18); max-width: 560px; padding: 22px; width: min(100%, 560px); }
.modal-header { align-items: center; display: flex; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.modal-header h3 { font-size: 26px; letter-spacing: -.7px; margin: 0; }
.business-profile-modal form { gap: 12px; }
.business-profile-modal textarea { min-height: 90px; resize: vertical; }
.file-upload-field input { border: 1px dashed var(--line); border-radius: 10px; padding: 11px 12px; }
.checkbox-inline { align-items: center; display: flex; gap: 8px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.subscription-panel { align-items: center; display: flex; gap: 18px; justify-content: space-between; margin-bottom: 18px; padding: 18px 22px; }
.subscription-panel-copy { min-width: 0; }
.subscription-panel h2 { font-size: 19px; letter-spacing: -.4px; margin: 0 0 5px; }
.subscription-panel p { color: var(--muted); font-size: 12px; margin: 0; }
.subscription-modal-backdrop { opacity: 0; transition: opacity .2s ease; }
.subscription-modal-backdrop.is-visible { opacity: 1; }
.subscription-modal-sheet { max-height: min(88vh, 760px); overflow-y: auto; transform: translateY(12px) scale(.98); transition: transform .22s ease; width: min(100%, 590px); }
.subscription-modal-backdrop.is-visible .subscription-modal-sheet { transform: translateY(0) scale(1); }
.subscription-modal-sheet .form-hint { margin-bottom: 14px; }
.payment-qr-preview { align-items: center; background: #f7f8fa; border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 14px; padding: 12px; }
.payment-qr-preview img { background: white; border: 1px solid var(--line); border-radius: 8px; height: 110px; object-fit: contain; width: 110px; }
.payment-qr-preview p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0; }
.registration-documents { border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 10px; padding: 14px; }
.registration-documents > b { font-size: 13px; }
.registration-documents > small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.registration-documents .file-upload-field { margin-top: 2px; }
.verification-panel { margin-bottom: 18px; padding: 20px 22px; }
.verification-form { gap: 14px; }
.verification-document-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.verification-status { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; }
.verification-note { color: #b5473e !important; }
.badge-approved { background: #eaf7ef; color: #25884b; }
.badge-rejected { background: #fff0ef; color: #c74642; }
.subscription-admin-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.subscription-pricing-form { align-content: start; display: grid; gap: 12px; }
.subscription-pricing-form .button { justify-self: start; }
.payment-option-form { display: grid; gap: 12px; }
.payment-option-row { align-items: center; border-top: 1px solid var(--line); display: grid; gap: 16px; grid-template-columns: 90px minmax(0, 1fr); padding: 16px 0; }
.payment-option-qr { border: 1px solid var(--line); border-radius: 8px; height: 82px; object-fit: contain; width: 82px; }
.payment-option-placeholder { align-items: center; background: #f7f8fa; border-radius: 8px; color: var(--muted); display: flex; font-size: 10px; height: 82px; justify-content: center; text-align: center; width: 82px; }
.admin-review-modal { opacity: 0; transition: opacity .2s ease; }
.admin-review-modal.is-visible { opacity: 1; }
.admin-review-modal .modal-sheet { max-height: min(90vh, 850px); max-width: 760px; overflow-y: auto; transform: translateY(12px) scale(.98); transition: transform .22s ease; width: min(100%, 760px); }
.admin-review-modal.is-visible .modal-sheet { transform: translateY(0) scale(1); }
.review-document-list { display: grid; gap: 12px; }
.review-document-card { border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 8px; padding: 14px; }
.review-document-heading { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.review-document-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.review-payment-summary { background: #f7f8fa; border-radius: 10px; display: grid; gap: 5px; margin: 12px 0; padding: 13px; }
.review-payment-summary p { color: var(--muted); font-size: 12px; margin: 0; }
.review-file-preview { background: #f7f8fa; border: 1px solid var(--line); border-radius: 12px; margin-top: 14px; overflow: hidden; }
.review-file-image { display: block; height: auto; margin: 0 auto; max-height: 65vh; max-width: 100%; object-fit: contain; }
.review-file-pdf { background: white; border: 0; height: min(65vh, 620px); width: 100%; }
@media (max-width: 720px) {
    .business-profile-header { align-items: flex-start; flex-direction: column; }
    .business-profile-identity { width: 100%; }
    .business-profile-meta { flex-direction: column; }
    .modal-backdrop { padding: 18px; }
    .modal-sheet { padding: 18px; }
    .subscription-panel { align-items: flex-start; flex-wrap: wrap; }
    .subscription-panel-copy { flex-basis: 100%; }
    .subscription-modal-sheet { max-height: 88vh; }
    .verification-document-grid, .subscription-admin-grid { grid-template-columns: minmax(0, 1fr); }
    .payment-qr-preview { align-items: flex-start; }
    .payment-qr-preview img { flex: 0 0 84px; height: 84px; width: 84px; }
    .payment-option-row { align-items: start; grid-template-columns: 60px minmax(0, 1fr); }
    .payment-option-qr, .payment-option-placeholder { height: 60px; width: 60px; }
}
@media (prefers-reduced-motion: reduce) {
    .subscription-modal-backdrop, .subscription-modal-sheet, .admin-review-modal, .admin-review-modal .modal-sheet { transition-duration: .01ms; }
}
.metric-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.dashboard-date-filter + .metric-grid, .report-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric-card, .panel { background: var(--white); border: 1px solid #ebedf0; border-radius: 12px; box-shadow: var(--shadow); }
.metric-card { min-width: 0; padding: 19px 19px 16px; transition: transform .2s, box-shadow .2s; }
.metric-card:hover { box-shadow: 0 14px 34px rgba(24, 34, 47, .08); transform: translateY(-2px); }
.metric-top { align-items: center; display: flex; justify-content: space-between; margin-bottom: 15px; }
.metric-label { color: #657080; font-size: 11px; font-weight: 600; }
.metric-icon { align-items: center; border-radius: 8px; display: inline-flex; font-size: 16px; font-weight: 700; height: 32px; justify-content: center; width: 32px; }
.icon-red { background: var(--red-soft); color: var(--red); }
.icon-green { background: var(--green-soft); color: var(--green); }
.icon-amber { background: var(--amber-soft); color: #d47710; }
.icon-slate { background: #eff2f6; color: #566274; }
.metric-card > strong { display: block; font: 800 clamp(23px, 2.2vw, 30px) Manrope, sans-serif; letter-spacing: -1.2px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-card > strong.metric-money { font-size: clamp(12px, 1.3vw, 19px); font-variant-numeric: tabular-nums; letter-spacing: -.55px; overflow: visible; text-overflow: clip; }
.metric-card > small { color: #929aa5; display: block; font-size: 10px; margin-top: 9px; }
.content-grid { display: grid; gap: 16px; }
.dashboard-grid { grid-template-columns: minmax(0, 1.65fr) minmax(250px, .9fr); margin-bottom: 17px; }
.panel { min-width: 0; padding: 21px; }
.panel-heading { align-items: flex-start; display: flex; gap: 14px; justify-content: space-between; margin-bottom: 19px; }
.panel-heading h2 { font-size: 15px; letter-spacing: -.35px; margin-bottom: 5px; }
.panel-heading p { color: #8a929e; font-size: 10px; line-height: 1.5; margin-bottom: 0; }
.text-link { color: var(--red); font-size: 10px; font-weight: 700; white-space: nowrap; }
.text-link span { font-size: 14px; margin-left: 4px; }
.chart-panel { padding-bottom: 15px; }
.chart-legend { align-items: center; color: #78818d; display: flex; font-size: 9px; gap: 17px; margin: 0 0 8px; }
.chart-legend span { align-items: center; display: inline-flex; gap: 6px; }
.legend-dot { border-radius: 50%; display: inline-block; height: 7px; width: 7px; }
.legend-dot.green { background: #249b58; }
.legend-dot.red { background: var(--red); }
#sales-chart { display: block; height: 247px; max-width: 100%; width: 100%; }
.route-row, .route-picker { align-items: center; border-top: 1px solid #f0f1f3; display: flex; gap: 11px; min-height: 64px; padding: 10px 1px; transition: background .2s; }
.route-row:hover, .route-picker:hover { background: #fafafa; }
.route-symbol { align-items: center; background: #fff0ef; border-radius: 9px; color: var(--red); display: flex; flex: 0 0 auto; font-size: 18px; height: 34px; justify-content: center; width: 34px; }
.route-details, .rider-details { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.route-details b, .rider-details b { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-details small, .rider-details small { color: #8b939e; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-progress, .rider-today { display: flex; flex-direction: column; gap: 3px; text-align: right; }
.route-progress b, .rider-today b { font-size: 11px; }
.route-progress small, .rider-today small { color: #9ca3ac; font-size: 9px; }
.table-panel { padding-bottom: 0; }
.table-panel > .panel-heading { align-items: center; margin-bottom: 14px; }
.recent-activity-tools { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.recent-activity-tools label { min-width: 150px; }
.recent-activity-tools select { min-height: 35px; }
.recent-activity-footer { align-items: center; border-top: 1px solid #f0f1f3; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 10px 12px 12px; }
.recent-activity-footer > p { color: #7c8591; font-size: 10px; margin: 0; }
.recent-activity-footer .order-table-pagination { margin-top: 0; }
[data-recent-activity-table] tr[hidden] { display: none; }
.table-wrap { overflow-x: auto; width: 100%; }
table { border-collapse: collapse; min-width: 650px; text-align: left; width: 100%; }
th { border-bottom: 1px solid var(--line); color: #8a929d; font-size: 9px; font-weight: 700; letter-spacing: .35px; padding: 11px 12px; text-transform: uppercase; white-space: nowrap; }
td { border-bottom: 1px solid #f0f1f3; color: #4a5461; font-size: 10px; padding: 12px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
.customer-cell { display: flex; flex-direction: column; gap: 4px; max-width: 220px; }
.customer-cell b { color: #27313d; font-size: 10px; font-weight: 700; }
.customer-cell small, .table-subline { color: #929aa5; font-size: 9px; }
.address-cell { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-link { color: #27313d; font-size: 10px; font-weight: 700; }
.table-link:hover { color: var(--red); }
.table-subline { display: block; margin-top: 4px; }
.badge { align-items: center; border-radius: 20px; display: inline-flex; font-size: 9px; font-weight: 700; gap: 5px; padding: 5px 9px; white-space: nowrap; }
.badge::before { background: currentColor; border-radius: 50%; content: ""; height: 5px; opacity: .65; width: 5px; }
.badge-pending, .badge-rescheduled { background: #fff5e8; color: #bd7319; }
.badge-completed, .badge-active { background: #eaf7ef; color: #25884b; }
.badge-cancelled, .badge-inactive { background: #fff0ef; color: #c74642; }
.empty-state { align-items: center; color: #8b939e; display: flex; flex-direction: column; justify-content: center; min-height: 300px; padding: 32px; text-align: center; }
.empty-state.compact { min-height: 170px; padding: 20px; }
.empty-state h2 { color: #27313d; font-size: 16px; margin: 12px 0 6px; }
.empty-state b { color: #3d4652; font-size: 11px; }
.empty-state p { font-size: 10px; line-height: 1.6; margin: 5px 0 12px; max-width: 270px; }
.empty-icon { align-items: center; background: #f2f4f6; border-radius: 50%; color: #75808d; display: inline-flex; font-size: 20px; height: 46px; justify-content: center; width: 46px; }
.marketplace-empty-state { gap: 7px; }
.marketplace-empty-state p { margin-bottom: 5px; }
.marketplace-refresh-button { min-height: 44px; }
.marketplace-refresh-button span { font-size: 18px; line-height: 1; }
.marketplace-refresh-button:disabled { cursor: progress; opacity: .7; transform: none; }
.marketplace-refresh-status { color: #697483; font-size: 11px; min-height: 1em; }
.button { align-items: center; border: 1px solid transparent; border-radius: 8px; display: inline-flex; font-size: 11px; font-weight: 700; gap: 8px; justify-content: center; min-height: 40px; padding: 0 15px; transition: background .2s, border-color .2s, box-shadow .2s, transform .15s; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--red); box-shadow: 0 5px 12px #f000001f; color: white; }
.button-primary:hover { background: var(--red-dark); box-shadow: 0 7px 16px #f0000033; }
.button-secondary { background: white; border-color: #dfe3e8; color: #384250; }
.button-secondary:hover { background: #f8f9fa; border-color: #c6cbd2; }
.button-success { background: var(--green); color: white; }
.button-success:hover { background: #187d3d; }
.button-danger { background: #fff0ef; border-color: #ffdedb; color: #c63e3b; }
.button-danger:hover { background: #ffe5e2; }
.button-small { min-height: 33px; padding: 0 11px; }
.button-wide { width: 100%; }
.alert { border: 1px solid transparent; border-radius: 8px; font-size: 11px; line-height: 1.5; margin: 0 0 17px; padding: 11px 14px; }
.alert-success { background: #eaf7ef; border-color: #d3ecdc; color: #267345; }
.alert-error { background: #fff0ef; border-color: #ffd8d5; color: #a6332e; }
.alert-info { background: #f0f4fa; border-color: #e0e8f2; color: #40556f; }
.alert a { font-weight: 700; text-decoration: underline; }
.route-toolbar { margin-bottom: 16px; padding-bottom: 19px; }
.route-toolbar .panel-heading { margin-bottom: 14px; }
.inline-form { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 11px; }
label { color: #586270; display: flex; flex-direction: column; font-size: 10px; font-weight: 600; gap: 6px; }
input, textarea, select { background: #fff; border: 1px solid #dfe3e8; border-radius: 7px; color: #26313d; font-size: 11px; min-height: 38px; outline: 0; padding: 9px 10px; transition: border .16s, box-shadow .16s; width: 100%; }
input:focus, textarea:focus, select:focus { border-color: #f05a5a; box-shadow: 0 0 0 3px #f0000014; }
textarea { line-height: 1.5; min-height: 68px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a8afb8; }
.route-create-form label:first-of-type { width: 160px; }
.route-create-form label:nth-of-type(2) { width: 220px; }
.route-create-form .button { min-height: 38px; }
.inline-note { color: #818a96; font-size: 10px; margin: 13px 0 0; }
.route-workspace { align-items: start; display: grid; gap: 16px; grid-template-columns: minmax(215px, .72fr) minmax(0, 1.8fr); }
.route-list-panel { padding: 18px 15px; position: sticky; top: 18px; }
.route-list-panel .panel-heading { margin: 2px 3px 12px; }
.route-picker-list { display: grid; }
.route-picker { border-radius: 8px; border-top: 0; margin: 2px 0; min-width: 0; padding: 9px 6px; }
.route-picker.selected { background: #fff0ef; }
.route-picker.selected .route-symbol { background: white; }
.route-count, .route-date-tag { background: #f4f5f7; border-radius: 7px; color: #657080; font-size: 9px; font-weight: 700; padding: 6px 8px; white-space: nowrap; }
.route-picker.selected .route-count { background: #fff; color: var(--red); }
.route-orders-column { display: grid; gap: 15px; min-width: 0; }
.route-detail-card { padding-bottom: 17px; }
.route-detail-card > .panel-heading { align-items: center; border-bottom: 1px solid #f0f1f3; margin: 0 0 17px; padding-bottom: 15px; }
.route-heading-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.route-heading-actions form { margin: 0; }
.route-detail-card .eyebrow { color: var(--red); font-size: 8px; margin-bottom: 5px; }
.route-detail-card .panel-heading h2 { font-size: 17px; margin-bottom: 4px; }
.route-action-grid { align-items: stretch; display: grid; gap: 15px; grid-template-columns: minmax(0, 1.5fr) minmax(175px, .75fr); }
.order-form, .csv-form { background: #fafbfc; border: 1px solid #edf0f2; border-radius: 9px; display: flex; flex-direction: column; gap: 11px; padding: 15px; }
.order-form h3, .csv-form h3 { font-size: 12px; margin-bottom: 0; }
.order-form .button { align-self: flex-start; }
.form-two { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.csv-form { align-items: flex-start; background: #fff; border-style: dashed; justify-content: center; }
.csv-form p { color: #8b939e; font-size: 10px; line-height: 1.55; margin: -3px 0 2px; }
.csv-form > small { color: #929aa5; font-size: 8px; line-height: 1.5; overflow-wrap: anywhere; }
.upload-icon { align-items: center; background: #fff0ef; border-radius: 9px; color: var(--red); display: flex; font-size: 20px; height: 36px; justify-content: center; width: 36px; }
.file-picker { align-items: center; border: 1px solid #dfe3e8; border-radius: 7px; color: #3b4653; display: flex; flex-direction: row; justify-content: center; min-height: 36px; overflow: hidden; padding: 0 10px; position: relative; width: 100%; }
.file-picker input { cursor: pointer; inset: 0; opacity: 0; position: absolute; }
.file-picker:focus-within { border-color: #f05a5a; box-shadow: 0 0 0 3px #f0000014; }
.route-empty { min-height: 230px; }
.order-list-panel .panel-heading { align-items: center; flex-wrap: wrap; }
.order-table-tools { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
.order-table-tools label { min-width: 170px; }
.order-table-tools label:first-child { flex: 1; max-width: 420px; }
.order-table-tools input, .order-table-tools select { min-height: 38px; }
.bulk-order-tools { align-items: center; background: #fafbfc; border: 1px solid #eff0f2; border-radius: 8px; display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 12px; padding: 9px 11px; }
.bulk-order-tools > span { color: #657080; font-size: 11px; font-weight: 700; margin-right: auto; }
.bulk-order-tools form { margin: 0; }
.order-list-panel input[type="checkbox"] { accent-color: var(--red); cursor: pointer; height: 17px; min-height: 17px; padding: 0; width: 17px; }
.order-table-count { color: #7c8591; font-size: 10px; margin: 11px 0 0; }
.order-table-pagination { align-items: center; display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
.order-table-pagination span { color: #657080; font-size: 10px; min-width: 80px; text-align: center; }
.order-table-pagination button:disabled { cursor: default; opacity: .55; }
.bulk-edit-dialog { max-width: 760px; }
.bulk-edit-dialog form { max-height: 88vh; overflow-y: auto; }
.bulk-edit-orders { display: grid; gap: 12px; }
.bulk-edit-order { background: #fafbfc; border: 1px solid #edf0f2; border-radius: 9px; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 13px; }
.bulk-edit-order h3 { font-size: 13px; grid-column: 1 / -1; margin: 0; }
.bulk-edit-order label { min-width: 0; }
.bulk-edit-order label:nth-of-type(6), .bulk-edit-order label:nth-of-type(7), .bulk-edit-order label:nth-of-type(9) { grid-column: 1 / -1; }
.bulk-edit-order textarea { min-height: 62px; }
.bulk-edit-dialog form > .form-hint { margin: 0; }
[data-admin-orders-table] tr[hidden] { display: none; }
.status-summary { display: flex; flex-wrap: wrap; font-size: 8px; gap: 9px; }
.status-pending, .status-rescheduled, .status-completed, .status-cancelled { align-items: center; display: inline-flex; gap: 5px; }
.status-pending, .status-rescheduled { color: #bd7319; }.status-completed { color: #25884b; }.status-cancelled { color: #c74642; }
.filter-bar { align-items: flex-end; background: #fafbfc; border: 1px solid #eff0f2; border-radius: 8px; display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 14px; padding: 11px; }
.filter-bar label { min-width: 130px; }
.filter-bar input, .filter-bar select { min-height: 34px; }
.table-actions { align-items: center; display: flex; gap: 3px; }
.danger-button { color: #c74642; font-size: 21px; }
.edit-dialog { border: 0; border-radius: 13px; box-shadow: 0 22px 80px #11182744; max-height: 90vh; max-width: 450px; padding: 0; width: calc(100% - 28px); }
.edit-dialog::backdrop { background: #11182788; backdrop-filter: blur(3px); }
.edit-dialog form { padding: 22px; }
.customer-name-button { appearance: none; background: transparent; border: 0; color: #27313d; cursor: pointer; display: inline; font: inherit; font-weight: 700; line-height: inherit; padding: 0; text-align: left; }
.customer-name-button:hover { color: var(--red-dark); text-decoration: underline; text-underline-offset: 2px; }
.customer-name-button:focus-visible { border-radius: 3px; outline: 2px solid #f05a5a; outline-offset: 3px; }
.customer-details-dialog { background: #fff; border: 1px solid #ebedf0; border-radius: 15px; box-shadow: 0 22px 80px #11182744; color: var(--ink); margin: auto; max-height: min(88vh, 760px); max-width: 580px; opacity: 0; overflow: auto; padding: 0; transform: translateY(12px) scale(.985); transition: opacity .2s ease, transform .2s ease, overlay .2s allow-discrete, display .2s allow-discrete; width: calc(100% - 32px); }
.customer-details-dialog[open] { opacity: 1; transform: translateY(0) scale(1); }
@starting-style { .customer-details-dialog[open] { opacity: 0; transform: translateY(12px) scale(.985); } }
.customer-details-dialog::backdrop { background: #11182700; backdrop-filter: blur(0); transition: background .2s ease, backdrop-filter .2s ease; }
.customer-details-dialog[open]::backdrop { background: #11182788; backdrop-filter: blur(3px); }
.status-confirm-dialog { background: #fff; border: 1px solid #ebedf0; border-radius: 16px; box-shadow: 0 22px 80px #11182744; color: var(--ink); margin: auto; max-height: min(88dvh, 520px); max-width: 440px; opacity: 0; overflow: auto; padding: 0; transform: translateY(10px) scale(.98); transition: opacity .22s ease, transform .22s ease, overlay .22s allow-discrete, display .22s allow-discrete; width: calc(100vw - 32px); }
.status-confirm-dialog[open] { opacity: 1; transform: translateY(0) scale(1); }
@starting-style { .status-confirm-dialog[open] { opacity: 0; transform: translateY(10px) scale(.98); } }
.status-confirm-dialog::backdrop { background: #11182700; backdrop-filter: blur(0); transition: background .22s ease, backdrop-filter .22s ease; }
.status-confirm-dialog[open]::backdrop { background: #11182788; backdrop-filter: blur(3px); }
.status-confirm-content { padding: 26px; text-align: center; }
.status-confirm-icon { align-items: center; background: #fff3e4; border-radius: 50%; color: #bd7319; display: inline-flex; font-size: 20px; font-weight: 700; height: 46px; justify-content: center; margin-bottom: 14px; width: 46px; }
.status-confirm-icon img { border-radius: inherit; height: 100%; object-fit: cover; width: 100%; }
.status-confirm-content h2 { font-size: 20px; letter-spacing: -.3px; margin: 0 0 8px; }
.status-confirm-content p { color: #687381; font-size: 14px; line-height: 1.55; margin: 0; }
.status-confirm-actions { display: flex; gap: 10px; justify-content: center; margin-top: 23px; }
.status-confirm-actions .button { min-height: 46px; min-width: 130px; }
.customer-details-content { padding: 23px; }
.customer-details-content .dialog-heading { align-items: flex-start; gap: 12px; margin-bottom: 17px; }
.customer-details-content .dialog-heading > div { min-width: 0; }
.customer-details-content .dialog-heading h2 { font-size: 21px; overflow-wrap: anywhere; }
.customer-details-content .dialog-heading p { color: #7a8491; font-size: 12px; margin: 5px 0 0; }
.customer-detail-status { align-items: center; color: #77818f; display: flex; flex-wrap: wrap; font-size: 10px; gap: 8px; margin-bottom: 14px; }
.customer-detail-status .badge { flex: 0 0 auto; }
.customer-details-content .rider-status-reason { border: 1px solid #f0c9c6; border-left: 4px solid #c74642; border-radius: 9px; box-shadow: 0 4px 14px rgba(167, 52, 46, .08); margin: 0 0 16px; padding: 14px 16px; }
.customer-details-content .rider-status-reason b { align-items: center; display: flex; font-size: 10px; letter-spacing: .55px; margin-bottom: 8px; text-transform: uppercase; }
.customer-details-content .rider-status-reason b::before { border-radius: 50%; content: ""; display: inline-block; height: 8px; margin-right: 8px; width: 8px; }
.customer-details-content .rider-status-reason p { color: #303a47; font-size: 14px; font-weight: 600; line-height: 1.6; }
.customer-details-content .cancellation-reason { background: linear-gradient(110deg, #fff3f1, #fffafa); border-color: #f0c9c6; border-left-color: #c74642; }
.customer-details-content .cancellation-reason b::before { background: #c74642; box-shadow: 0 0 0 3px #f6d9d6; }
.customer-details-content .reschedule-reason { background: linear-gradient(110deg, #fff7e8, #fffdf8); border-color: #edd6a9; border-left-color: #bd7319; }
.customer-details-content .reschedule-reason b::before { background: #bd7319; box-shadow: 0 0 0 3px #f3e4c7; }
.customer-detail-grid, .customer-summary-detail { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.customer-detail-grid > div, .customer-summary-detail > div { background: #f7f8fa; border-radius: 8px; min-width: 0; padding: 11px 12px; }
.customer-detail-grid dt, .customer-summary-detail dt { color: #828b97; font-size: 9px; font-weight: 600; margin-bottom: 5px; }
.customer-detail-grid dd, .customer-summary-detail dd { color: #293340; font-size: 12px; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.customer-detail-grid .customer-detail-address { grid-column: 1 / -1; }
.customer-details-actions { border-top: 1px solid #eff0f2; display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; margin-top: 18px; padding-top: 14px; }
.customer-details-actions [hidden] { display: none; }
.dialog-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 16px; }
.dialog-heading h2 { font-size: 19px; margin: 0; }
.dialog-heading .eyebrow { margin-bottom: 4px; }
.dialog-close { font-size: 24px; }
.form-stack { display: flex; flex-direction: column; gap: 13px; }
.payment-option-row.form-stack { display: grid; }
.riders-grid { align-items: start; grid-template-columns: minmax(250px, .75fr) minmax(0, 1.5fr); }
.rider-create-panel .panel-heading, .rider-list-panel .panel-heading { margin-bottom: 17px; }
.rider-create-panel .form-stack { max-width: 420px; }
.form-hint { color: #8c95a0; font-size: 9px; line-height: 1.5; margin: -5px 0 0; }
.rider-row { align-items: center; border-top: 1px solid #f0f1f3; display: flex; gap: 12px; min-height: 71px; padding: 12px 2px; }
.rider-row { flex-wrap: wrap; }
.rider-row .rider-details { flex: 1 1 220px; min-width: 0; }
.rider-row .button, .rider-row form { flex: 0 0 auto; }
.account-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; }
.account-actions form { margin: 0; }
.account-subscription-form { align-items: end; display: flex; flex-wrap: wrap; gap: 6px; }
.account-subscription-form label { color: var(--muted); font-size: 9px; gap: 4px; }
.account-subscription-form select, .admin-account-subscription select { max-width: 150px; min-height: 33px; padding: 5px 8px; }
.admin-account-subscription { align-items: center; background: #f7f8fa; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 12px; padding: 10px; }
.admin-account-subscription label { align-items: center; color: var(--muted); display: flex; font-size: 11px; gap: 8px; }
.button:disabled { cursor: not-allowed; opacity: .58; }
.review-final-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.platform-metrics, .platform-status-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.platform-broadcast-form { display: grid; gap: 10px; }
.platform-broadcast-form textarea { min-height: 100px; }
.platform-broadcast-form .button { justify-self: start; }
.rider-today { margin-right: 11px; }
.messaging-panel { display: grid; grid-template-columns: minmax(200px, .65fr) minmax(0, 1.6fr); min-height: 520px; overflow: hidden; padding: 0; }
.conversation-sidebar { border-right: 1px solid var(--line); padding: 20px 14px; }
.conversation-sidebar .panel-heading { margin: 0 5px 13px; }
.conversation-person { align-items: center; border-radius: 8px; display: flex; gap: 10px; margin: 4px 0; padding: 10px 7px; }
.conversation-person:hover, .conversation-person.selected { background: #fff0ef; }
.conversation-person.selected .avatar { background: white; }
.support-back-link { display: inline-flex; margin: 14px 7px 0; }
.support-contact-card { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-bottom: 15px; padding: 15px 18px; }
.support-contact-card b { color: var(--ink); font-size: 12px; }
.support-contact-card p { color: var(--muted); font-size: 10px; margin: 4px 0 0; }
.conversation-avatar { background: #f0f2f5; border: 1px solid #e8ebef; border-radius: 50%; flex: 0 0 auto; height: 40px; object-fit: cover; width: 40px; }
.conversation-avatar.profile-image-placeholder { background: #f0f2f5; border-color: #e1e5ea; }
.conversation-avatar-large { height: 48px; width: 48px; }
.conversation-person .rider-details small { line-height: 1.4; max-height: 2.8em; white-space: normal; }
.conversation { display: flex; flex-direction: column; min-height: 520px; min-width: 0; }
.conversation-header { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 10px; min-height: 67px; padding: 12px 20px; }
.conversation-header > div { display: flex; flex-direction: column; gap: 4px; }
.conversation-header b { font-size: 11px; }
.conversation-header small { color: #8b939e; font-size: 9px; }
.conversation-header > div { min-width: 0; }
.conversation-header small { line-height: 1.45; overflow-wrap: anywhere; }
.call-shortcut { align-items: center; background: var(--green-soft); border: 1px solid #d5efdf; border-radius: 50%; color: var(--green); display: inline-flex; flex: 0 0 38px; height: 38px; justify-content: center; margin-left: auto; transition: background .2s, color .2s, transform .2s; width: 38px; }
.call-shortcut:hover { background: var(--green); color: #fff; transform: translateY(-1px); }
.call-shortcut:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.call-shortcut svg { fill: none; height: 18px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 18px; }
.message-list { align-content: start; display: flex; flex: 1; flex-direction: column; gap: 13px; max-height: 470px; min-height: 300px; overflow-y: auto; padding: 20px; }
.message-bubble { border-radius: 11px; max-width: min(78%, 460px); padding: 11px 13px 9px; }
.message-author { align-items: center; color: #596575; display: flex; gap: 7px; margin-bottom: 8px; }
.message-author b { font-size: 9px; line-height: 1.3; }
.message-avatar, .message-avatar-fallback { align-items: center; background: #fff; border: 1px solid #e5e9ed; border-radius: 50%; color: #697586; display: inline-flex; flex: 0 0 auto; font-size: 9px; font-weight: 700; height: 23px; justify-content: center; object-fit: cover; width: 23px; }
.message-bubble p { font-size: 12px; line-height: 1.6; margin: 0 0 7px; overflow-wrap: anywhere; white-space: pre-wrap; }
.message-bubble small { color: #949ca6; display: block; font-size: 8px; }
.message-bubble.sent { align-self: flex-end; background: #fff0ef; border-bottom-right-radius: 3px; }
.message-bubble.received { align-self: flex-start; background: #f2f4f6; border-bottom-left-radius: 3px; }
.message-image-link { display: block; margin: 4px 0 8px; }
.message-image { border: 1px solid #e3e7ec; border-radius: 8px; display: block; height: auto; max-height: 300px; max-width: min(100%, 360px); object-fit: contain; }
.message-compose { align-items: flex-end; border-top: 1px solid var(--line); display: flex; gap: 10px; padding: 13px; }
.message-compose-fields { display: grid; flex: 1; gap: 8px; min-width: 0; }
.message-compose textarea { background: #fafbfc; min-height: 43px; }
.message-image-picker { align-items: center; color: #526071; cursor: pointer; display: inline-flex; flex-direction: row; flex-wrap: wrap; font-size: 10px; gap: 7px; width: fit-content; }
.message-image-picker input { border: 0; clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; min-height: 1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; }
.message-image-picker span, [data-image-upload-status] { color: #8b939e; font-size: 9px; font-weight: 400; }
.image-upload-error { color: #a6332e !important; }
.message-compose .button { min-height: 42px; }
.message-compose .button:disabled { cursor: wait; opacity: .65; }
.chat-send-error { color: #a6332e; font-size: 11px; margin: 0; }
.rider-messages-panel { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.7fr); max-width: 1020px; }
.rider-conversation-sidebar { border-right: 1px solid var(--line); min-width: 0; padding: 16px 13px; }
.rider-own-profile { align-items: center; background: #fafbfc; border: 1px solid #edf0f3; border-radius: 10px; display: grid; gap: 8px 10px; grid-template-columns: 48px minmax(0, 1fr); margin-bottom: 16px; padding: 12px; }
.rider-own-profile > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rider-own-profile > div b { font-size: 11px; overflow-wrap: anywhere; }
.rider-own-profile > div small { color: #828b97; font-size: 9px; line-height: 1.4; }
.rider-photo-form { display: grid; gap: 8px; grid-column: 1 / -1; }
.rider-photo-form .message-image-picker { align-items: flex-start; flex-direction: column; gap: 4px; }
.rider-summary-profile { margin-bottom: 15px; max-width: 720px; }
.rider-summary-profile .rider-own-profile { margin-bottom: 0; }
.owner-conversation-list { display: grid; gap: 3px; }
.conversation-list-label { color: #929aa5; font-size: 8px; font-weight: 700; letter-spacing: .8px; margin: 0 7px 5px; }
.rider-messages-panel .conversation { min-width: 0; }
.chat-notification-toast { background: #20262e; border: 1px solid #3b424c; border-radius: 10px; bottom: 22px; box-shadow: 0 10px 30px #11182730; color: #fff; display: grid; gap: 5px; max-width: min(360px, calc(100vw - 32px)); padding: 13px 16px; position: fixed; right: 16px; z-index: 20; }
.chat-notification-toast[hidden] { display: none; }
.chat-notification-toast strong { font-size: 12px; }
.chat-notification-toast span { color: #d3d7dc; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.report-filter-panel { align-items: center; display: flex; justify-content: space-between; margin-bottom: 15px; }
.report-filter-panel > p { color: #88919c; font-size: 9px; margin: 0 0 0 15px; }
.report-filter { background: transparent; border: 0; margin: 0; padding: 0; }
.report-metrics { margin-bottom: 15px; }
.report-chart { padding-bottom: 20px; }
.report-date { color: #89929d; font-size: 9px; white-space: nowrap; }
.client-ranking-panel { margin-top: 16px; }
.client-ranking-panel .panel-heading { align-items: center; flex-wrap: wrap; }
.client-ranking-panel .panel-heading > div { min-width: 0; }
.client-ranking-panel .panel-heading p { max-width: 540px; }
.client-ranking-panel table { min-width: 850px; }
.client-rank { color: var(--red); }
.client-detail-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.client-detail-panel { margin-bottom: 16px; }
.client-detail-panel .panel-heading { align-items: center; }
.client-status-summary { border-bottom: 1px solid #f0f1f3; display: flex; flex-wrap: wrap; gap: 9px 16px; margin: -3px 0 12px; padding-bottom: 13px; }
.client-status-summary span { font-size: 10px; font-weight: 600; }
.client-detail-panel .table-wrap { margin: 0 -2px; }
.client-detail-panel table { min-width: 720px; }
.setup-page, .login-page { align-items: center; background: #f4f5f7; display: flex; justify-content: center; min-height: 100vh; padding: 24px; }
.setup-card { background: white; border: 1px solid #ebedf0; border-radius: 15px; box-shadow: 0 20px 65px #1f29370e; max-width: 430px; padding: 34px; width: 100%; }
.setup-logo { border-radius: 50%; height: 55px; margin-bottom: 25px; object-fit: cover; width: 55px; }
.setup-card h1 { font-size: 23px; letter-spacing: -.8px; margin-bottom: 8px; }
.setup-card > p { color: #7d8793; font-size: 11px; line-height: 1.6; margin-bottom: 19px; }
.setup-card code { color: #c00000; font-size: 10px; }
.setup-card .button { margin-top: 5px; }
.login-page { background: radial-gradient(ellipse at 20% 10%, #fff 0, #f5f6f8 55%, #eff1f4 100%); flex-direction: column; gap: 18px; }
.app-download-page { gap: 16px; }
.app-download-home { align-items: center; align-self: center; color: #596575; display: inline-flex; font-size: 12px; font-weight: 700; gap: 8px; max-width: 760px; transition: color .2s, transform .2s; width: 100%; }
.app-download-home:hover { color: var(--red-dark); transform: translateX(-2px); }
.app-download-home span { font-size: 17px; }
.login-shell { background: #fff; border: 1px solid #e8eaee; border-radius: 18px; box-shadow: 0 24px 80px #1c263314; display: grid; grid-template-columns: 1fr 1fr; max-width: 900px; min-height: 540px; overflow: hidden; width: 100%; }
.login-brand { background: #171b22; color: #fff; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 47px; position: relative; }
.login-brand > img { border-radius: 50%; height: 54px; margin-bottom: 29px; object-fit: cover; width: 54px; }
.login-brand .eyebrow { color: #a8aeb6; }
.login-brand h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -1.7px; line-height: 1.13; margin-bottom: 14px; position: relative; z-index: 1; }
.login-brand p { color: #a5abb4; font-size: 12px; line-height: 1.7; margin: 0; max-width: 290px; position: relative; z-index: 1; }
.login-decoration { bottom: -100px; height: 280px; position: absolute; right: -100px; transform: rotate(-24deg); width: 350px; }
.login-decoration span { border: 1px solid #ffffff15; border-radius: 50%; height: 100%; left: 0; position: absolute; top: 0; width: 100%; }
.login-decoration span:nth-child(2) { inset: 30px; }.login-decoration span:nth-child(3) { inset: 60px; }.login-decoration span:nth-child(4) { background: #f00000; border: 0; height: 16px; left: 35px; top: 66px; width: 16px; }
.login-form-panel { align-items: center; display: flex; justify-content: center; padding: 40px; }
.login-form-wrap { max-width: 320px; width: 100%; }
.login-form-wrap h2 { font-size: 25px; letter-spacing: -.9px; margin-bottom: 6px; }
.login-form-wrap > p { color: #8b939e; font-size: 11px; margin-bottom: 23px; }
.login-form-wrap .form-stack { gap: 15px; }
.login-form-wrap .button { margin-top: 4px; min-height: 44px; }
.app-download-card { background: #171b22; border: 1px solid #303640; border-top: 3px solid var(--red); border-radius: 14px; box-shadow: 0 18px 45px #1c263314; color: #fff; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr); max-width: 760px; overflow: hidden; padding: 32px; width: 100%; }
.app-download-copy { align-self: center; min-width: 0; }
.app-download-logo { border-radius: 50%; display: block; height: 48px; margin-bottom: 20px; object-fit: cover; width: 48px; }
.app-download-copy .eyebrow { color: #ff6666; font-size: 9px; letter-spacing: 1.1px; }
.app-download-copy h1 { color: #fff; font-size: clamp(22px, 3vw, 29px); letter-spacing: -.8px; line-height: 1.2; margin: 8px 0; }
.app-download-copy > p { color: #bac0c8; font-size: 12px; line-height: 1.6; margin: 0; max-width: 410px; }
.app-download-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
.app-download-tags span { border: 1px solid #444b56; border-radius: 999px; color: #e2e5e9; font-size: 10px; padding: 6px 10px; }
.app-download-counter { color: #e6e9ed !important; font-size: 11px !important; font-weight: 700; margin: 0 0 14px !important; }
.app-download-form .button { min-height: 46px; }
.app-download-unavailable { color: #ffd2cf !important; font-size: 12px; margin-top: 12px !important; }
.app-install-guide { align-self: center; background: #111419; border-left: 2px solid var(--red); border-radius: 0 9px 9px 0; padding: 16px 18px; }
.app-install-guide > b { color: #fff; font-size: 11px; letter-spacing: .4px; text-transform: uppercase; }
.app-install-guide ol { color: #c1c6ce; font-size: 11px; line-height: 1.55; margin: 10px 0 12px; padding-left: 18px; }
.app-install-guide li + li { margin-top: 5px; }
.app-install-guide small { color: #969eaa; display: block; font-size: 9px; line-height: 1.5; }
.app-download-entry { align-items: center; border-top: 1px solid #eff0f2; color: #394454; display: flex; justify-content: space-between; margin-top: 18px; padding: 14px 0 0; transition: color .2s, transform .2s; }
.app-download-entry:hover { color: var(--red-dark); transform: translateY(-1px); }
.app-download-entry:focus-visible { border-radius: 4px; outline: 2px solid #f05a5a; outline-offset: 4px; }
.app-download-entry > span:first-child { display: grid; gap: 3px; }
.app-download-entry b { font-size: 12px; }
.app-download-entry small { color: #8b939e; font-size: 10px; }
.app-download-entry-icon { align-items: center; background: var(--red-soft); border-radius: 8px; color: var(--red-dark); display: inline-flex; font-size: 17px; height: 36px; justify-content: center; width: 36px; }
.password-input-wrap { align-items: center; display: flex; position: relative; }
.password-input-wrap input { padding-right: 45px; }
.password-visibility-toggle { align-items: center; background: transparent; border: 0; border-radius: 6px; color: #687381; cursor: pointer; display: inline-flex; height: 34px; justify-content: center; padding: 6px; position: absolute; right: 6px; width: 34px; }
.password-visibility-toggle:hover { background: #f1f2f4; color: var(--ink); }
.password-visibility-toggle:focus-visible { outline: 2px solid #f05a5a; outline-offset: 1px; }
.password-visibility-toggle svg { fill: none; height: 20px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 20px; }
.password-eye-closed, .password-visibility-toggle[aria-pressed="true"] .password-eye-open { display: none; }
.password-visibility-toggle[aria-pressed="true"] .password-eye-closed { display: block; }
.login-footnote { border-top: 1px solid #eff0f2; font-size: 9px !important; margin: 22px 0 0 !important; padding-top: 16px; text-align: center; }
.registration-panel { border-top: 1px solid #eff0f2; margin-top: 18px; padding-top: 15px; }
.registration-panel summary { color: #394454; cursor: pointer; font-size: 12px; font-weight: 700; }
.registration-panel[open] summary { margin-bottom: 14px; }
.registration-panel .form-stack { gap: 11px; }
.registration-panel .form-stack label { font-size: 10px; }
.registration-panel .form-stack input { min-height: 38px; }
.registration-note { color: var(--muted); font-size: 10px; line-height: 1.5; margin: -5px 0 12px; }
.rider-topbar { align-items: center; background: var(--nav); display: flex; justify-content: space-between; padding: 12px max(18px, calc((100vw - 980px)/2)); }
.rider-topbar .brand-lockup img { height: 37px; width: 37px; }
.rider-topbar .brand-lockup b { color: white; font-size: 17px; }
.rider-topbar .brand-lockup small { font-size: 7px; }
.rider-topbar .icon-button { color: #d3d7dc; }
.rider-logout-button { align-items: center; background: #252b34; border: 1px solid #3b424c; border-radius: 9px; color: #f1f3f5; display: inline-flex; font-size: 12px; font-weight: 700; gap: 7px; min-height: 42px; padding: 0 13px; transition: background .2s, border-color .2s, transform .2s; }
.rider-logout-button:hover { background: #343b46; border-color: #515965; transform: translateY(-1px); }
.rider-logout-button span { font-size: 16px; }
.rider-main { margin-left: 0; margin-right: auto; max-width: 1120px; padding: 29px 32px 100px; }
.rider-app .page-header { margin-bottom: 21px; }
.rider-welcome { align-items: center; background: linear-gradient(115deg, #1b2028, #30343b); color: white; display: flex; justify-content: space-between; margin-bottom: 15px; overflow: hidden; padding: 23px 26px; position: relative; }
.rider-welcome .eyebrow { color: #c5c8cd; font-size: 8px; }
.rider-welcome h2 { font-size: 21px; letter-spacing: -.7px; margin-bottom: 5px; }
.rider-welcome p { color: #bac0c8; font-size: 10px; margin: 0; }
.welcome-mark { color: #ffffff18; font-size: 110px; line-height: .7; position: absolute; right: 20px; }
.rider-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 15px; }
.rider-metrics .metric-card { padding: 15px 17px; }
.rider-metrics .metric-top { margin-bottom: 9px; }
.rider-metrics .metric-card > strong { font-size: 24px; }
.rider-route-panel { padding: 20px; }
.rider-route-panel > .panel-heading { align-items: center; }
.rider-order-list { display: grid; gap: 11px; padding: 1px 5px 5px 1px; }
.rider-customer-search { margin: 0 0 12px; max-width: 420px; }
.rider-customer-search input { font-size: 13px; min-height: 42px; }
.rider-deliveries-panel { padding: 20px; }
.rider-deliveries-panel .rider-order-list { max-height: min(62vh, 620px); max-height: min(62dvh, 620px); min-height: 160px; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; }
.rider-status-tabs { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 0 0 13px; padding-bottom: 10px; }
.rider-status-tabs a { align-items: center; border-radius: 8px; color: #657080; display: flex; font-size: 11px; font-weight: 700; gap: 6px; justify-content: center; min-height: 39px; padding: 6px 9px; text-align: center; }
.rider-status-tabs a span { align-items: center; background: #f0f2f5; border-radius: 999px; color: #657080; display: inline-flex; font-size: 9px; justify-content: center; min-height: 19px; min-width: 19px; padding: 0 5px; }
.rider-status-tabs a.active { background: var(--red-soft); color: var(--red-dark); }
.rider-status-tabs a.active span { background: #fff; color: var(--red-dark); }
.rider-order-card { align-items: start; border: 1px solid #eceef1; border-radius: 10px; display: grid; gap: 13px; grid-template-columns: 38px minmax(0, 1fr) auto; padding: 15px; transition: box-shadow .2s, transform .2s; }
.rider-order-card[role="link"] { cursor: pointer; }
.rider-order-card[role="link"]:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.rider-order-card[role="link"]:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.rider-order-card.order-done { background: #f7fcf8; border-color: #dcefe2; }
.rider-order-card.order-cancelled { background: #fffafa; border-color: #f2dfde; }
.rider-order-card.order-rescheduled { background: #fffaf0; border-color: #f2e3c5; }
.stop-number { align-items: center; background: #f0f2f5; border-radius: 50%; color: #606b79; display: flex; font-size: 10px; font-weight: 700; height: 34px; justify-content: center; width: 34px; }
.order-done .stop-number { background: #e3f4e9; color: #23874b; }
.order-cancelled .stop-number { background: #fff0ef; color: #c74642; }
.stop-main { min-width: 0; }
.stop-customer { display: block; font-size: 15px; line-height: 1.4; margin-bottom: 5px; }
.stop-customer.customer-name-button { font-size: 15px; width: fit-content; }
.stop-open-hint { color: var(--red); font-size: 9px; font-weight: 700; margin-top: 3px; white-space: nowrap; }
.stop-amount .stop-open-hint { display: inline-block; }
.stop-meta { align-items: center; color: #929aa5; display: flex; font-size: 8px; gap: 9px; margin-bottom: 7px; }
.stop-main h3 { font-size: 13px; margin-bottom: 5px; }
.stop-address { color: #6f7986; display: block; font-size: 10px; line-height: 1.55; margin-bottom: 8px; max-width: 550px; }
.stop-contact { align-items: center; color: #6f7986; display: flex; flex-wrap: wrap; font-size: 9px; gap: 13px; }
.stop-contact a { color: #456181; font-weight: 700; }
.stop-amount { display: flex; flex-direction: column; gap: 8px; min-width: 88px; padding-top: 2px; text-align: right; }
.stop-amount-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.stop-amount small { color: #999fa8; font-size: 7px; font-weight: 700; letter-spacing: .7px; }
.stop-amount b { color: #25303b; font-size: 12px; }
.stop-actions { display: flex; gap: 7px; grid-column: 2 / 4; justify-content: flex-end; }
.stop-actions .button { font-size: 9px; min-height: 32px; }
.completed-note { color: #25884b; font-size: 9px; font-weight: 700; }
.rider-bottom-nav { display: grid; gap: 6px; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 18px; max-width: 1120px; padding: 0 32px; width: 100%; }
.rider-bottom-nav a { align-items: center; border: 1px solid transparent; border-radius: 10px; color: #78818d; display: flex; flex-direction: column; font-size: 10px; font-weight: 700; gap: 3px; justify-content: center; min-height: 58px; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.rider-bottom-nav a > span { font-size: 19px; position: relative; }
.rider-bottom-nav a:hover { background: #f7f8fa; color: #394351; transform: translateY(-1px); }
.rider-bottom-nav a.active { background: var(--red-soft); border-color: #f4d9d8; color: var(--red-dark); font-weight: 700; }
.rider-bottom-nav .nav-count { border-color: #fff; height: 15px; min-width: 15px; position: absolute; right: -12px; top: -2px; }
.rider-history-panel { animation: rider-enter .38s ease-out both; }
.rider-history-route-list { display: grid; gap: 8px; max-height: min(66vh, 620px); overflow-y: auto; overscroll-behavior-y: contain; padding-right: 4px; }
.rider-history-date { color: #727d8b; font-size: 11px; letter-spacing: .5px; margin: 15px 0 3px; text-transform: uppercase; }
.rider-history-date:first-child { margin-top: 0; }
.rider-history-route-link { align-items: center; background: #fff; border: 1px solid #e9edf1; border-radius: 11px; color: inherit; display: grid; gap: 13px; grid-template-columns: 40px minmax(100px, .65fr) minmax(0, 1.35fr) 18px; padding: 13px 15px; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s; }
.marketplace-route-card { align-items: center; cursor: pointer; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr) auto; }
.marketplace-route-card:focus-visible { outline: 3px solid #ed302b; outline-offset: 3px; }
.marketplace-route-brand { align-items: center; display: flex; gap: 10px; min-width: 0; }
.marketplace-route-logo { border: 1px solid #eef1f4; border-radius: 50%; flex: 0 0 auto; height: 38px; object-fit: cover; width: 38px; }
.marketplace-route-brand-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.marketplace-route-brand-copy strong { color: #1d2430; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.marketplace-route-brand-copy small { color: #7e8a98; font-size: 10px; }
.marketplace-route-card .route-details { display: grid; gap: 4px; min-width: 0; }
.marketplace-route-card .route-details b { font-size: 12px; }
.marketplace-route-card .route-details small { color: #7a8593; font-size: 10px; overflow-wrap: anywhere; }
.marketplace-route-card .marketplace-route-review-hint { color: #bd302b; font-size: 10px; font-weight: 700; }
.marketplace-route-card .route-count { justify-self: end; }
.rider-history-route-link:hover { background: #fffdfd; border-color: #efc9c7; box-shadow: 0 8px 20px #26334412; transform: translateY(-1px); }
.route-lock-note { background: #fff3e4; border: 1px solid #f6d9a8; border-radius: 10px; color: #82540d; font-size: 11px; font-weight: 700; margin: 0 0 12px; padding: 10px 12px; }
.route-manifest-modal { background: rgba(18, 20, 25, 0.6); bottom: 0; inset: 0; opacity: 0; position: fixed; transition: opacity .2s ease; visibility: hidden; z-index: 30; }
.route-manifest-modal.is-visible { opacity: 1; visibility: visible; }
.route-manifest-backdrop { inset: 0; position: absolute; }
.route-manifest-sheet { background: #fff; border-radius: 18px 18px 0 0; bottom: 0; box-shadow: 0 -20px 60px rgba(18, 20, 25, 0.18); display: flex; flex-direction: column; left: 50%; max-height: min(90vh, 780px); max-height: min(90dvh, 780px); padding: 18px 18px max(22px, env(safe-area-inset-bottom)); position: absolute; transform: translate(-50%, 24px); transition: transform .22s ease; width: min(100%, 560px); }
.route-manifest-modal.is-visible .route-manifest-sheet { transform: translate(-50%, 0); }
.route-manifest-close { align-items: center; background: #f4f5f7; border: 0; border-radius: 50%; color: #334155; cursor: pointer; display: inline-flex; font-size: 22px; height: 36px; justify-content: center; position: absolute; right: 16px; top: 16px; width: 36px; }
.route-manifest-header { border-bottom: 1px solid #edf0f2; display: flex; gap: 8px; justify-content: space-between; margin: -2px 0 14px; padding: 4px 44px 12px 0; }
.route-manifest-header .eyebrow { margin-bottom: 6px; }
.route-manifest-header h2 { font-size: 22px; letter-spacing: -.5px; margin: 0; }
.route-manifest-body { display: grid; flex: 1 1 auto; gap: 12px; max-height: min(68vh, 580px); min-height: 0; overflow-y: auto; padding-right: 4px; }
.route-manifest-order { background: #f9fafb; border: 1px solid #edf1f3; border-radius: 12px; padding: 14px; }
.route-manifest-order-top { align-items: center; display: flex; gap: 10px; }
.route-manifest-number { align-items: center; background: #fff0ef; border-radius: 999px; color: var(--red); display: inline-flex; font-size: 10px; font-weight: 700; height: 28px; justify-content: center; min-width: 28px; }
.route-manifest-order-top strong { display: block; font-size: 14px; }
.route-manifest-order-top small { color: #7d8793; display: block; font-size: 10px; }
.route-manifest-order-details { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
.route-manifest-order-details span { background: #fff; border: 1px solid #edf1f3; border-radius: 9px; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 9px 10px; }
.route-manifest-order-details b { color: #576375; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.route-manifest-order-details em { color: #1d2430; font-size: 12px; font-style: normal; font-weight: 700; }
.route-manifest-addresses { display: grid; gap: 9px; margin-top: 12px; }
.route-manifest-addresses p { display: grid; gap: 4px; margin: 0; }
.route-manifest-addresses b { color: #5b6b7d; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.route-manifest-addresses span { color: #273142; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.route-manifest-instructions { background: #fff8e9; border: 1px solid #f4e3bf; border-radius: 9px; margin: 0 -2px; padding: 9px 10px; }
.route-manifest-instructions b { color: #815d1d; }
.route-manifest-instructions span { white-space: pre-wrap; }
.route-manifest-actions { background: #fff; border-top: 1px solid #edf0f2; flex: 0 0 auto; margin-top: 12px; padding-top: 12px; }
.route-manifest-actions:empty { display: none; }
.delivery-instructions { background: #fff8e9; border: 1px solid #f4e3bf; border-radius: 10px; margin-top: 12px; padding: 12px 14px; }
.delivery-instructions b, .stop-instructions b { color: #815d1d; display: block; font-size: 11px; margin-bottom: 5px; }
.delivery-instructions p { color: #394354; font-size: 13px; line-height: 1.55; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.route-release-panel { align-items: center; background: #fff8f1; border: 1px solid #f2dfcf; border-radius: 12px; display: flex; gap: 12px; justify-content: space-between; margin: 0 0 14px; padding: 12px 14px; }
.route-release-panel p { color: #71553c; font-size: 12px; line-height: 1.5; margin: 0; }
.stop-instructions { background: #fff8e9; border-radius: 8px; color: #394354; display: block; font-size: 12px; line-height: 1.45; margin: 7px 0 2px; overflow-wrap: anywhere; padding: 9px 10px; white-space: pre-wrap; }
.route-manifest-empty { background: #f8f9fb; border: 1px dashed #dde3ea; border-radius: 12px; color: #5d6877; display: grid; gap: 7px; margin-top: 4px; padding: 22px 18px; text-align: center; }
.route-manifest-empty b { font-size: 15px; }
.route-manifest-empty p { margin: 0; font-size: 11px; }
.rider-history-route-icon { align-items: center; background: #fff0ef; border-radius: 10px; color: var(--red); display: flex; font-size: 20px; height: 40px; justify-content: center; width: 40px; }
.rider-history-route-copy { display: grid; gap: 4px; min-width: 0; }
.rider-history-route-copy b { color: #252f3b; font-size: 14px; overflow-wrap: anywhere; }
.rider-history-route-copy small { color: #858e99; font-size: 10px; }
.rider-history-route-stats { color: #707a87; display: flex; flex-wrap: wrap; font-size: 10px; gap: 6px 13px; }
.rider-history-route-arrow { color: #9aa2ad; font-size: 24px; text-align: right; }
.rider-history-detail-heading { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 12px; justify-content: space-between; margin: -2px 0 14px; padding: 0 0 14px; }
.rider-history-detail-heading h2 { color: #252f3b; font-size: 20px; margin: 0 0 4px; }
.rider-history-detail-heading p { color: #7b8592; font-size: 11px; margin: 0; }
.rider-history-delivery-count { background: #f2f4f6; border-radius: 999px; color: #596574; font-size: 10px; font-weight: 700; padding: 8px 11px; white-space: nowrap; }
.rider-history-order-list { animation: rider-enter .3s ease-out both; }
.rider-messages-panel { margin: 0 auto; max-width: 1020px; min-height: 510px; overflow: hidden; padding: 0; }
.rider-messages-panel .message-list { max-height: calc(100vh - 310px); min-height: 330px; }
.rider-back-link { align-items: center; color: #596574; display: inline-flex; font-size: 13px; font-weight: 700; gap: 8px; margin: 0 0 13px 2px; min-height: 40px; transition: color .2s, transform .2s; }
.rider-back-link:hover { color: var(--red); transform: translateX(-2px); }
.rider-back-link span { font-size: 19px; }
.rider-detail-page { animation: rider-enter .38s ease-out both; margin: 0 auto; max-width: 760px; overflow: hidden; padding: 0; }
.rider-detail-status { align-items: center; background: #fff8e7; border-bottom: 1px solid #eadcb9; color: #715c32; display: flex; flex-wrap: wrap; font-size: 11px; gap: 10px; padding: 14px 20px; }
.rider-status-reason { border-bottom: 1px solid var(--line); padding: 13px 20px; }
.rider-status-reason b { display: block; font-size: 11px; margin-bottom: 5px; }
.rider-status-reason p { color: #596574; font-size: 12px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.cancellation-reason { background: #fffafa; }
.cancellation-reason b { color: #a6332e; }
.reschedule-reason { background: #fffaf0; }
.reschedule-reason b { color: #93621a; }
.rider-client-details { padding: 23px 20px 19px; }
.rider-client-details h2 { font-size: clamp(22px, 5vw, 28px); letter-spacing: -.6px; margin: 0 0 7px; }
.rider-detail-phone { color: #405c79; display: inline-flex; font-size: 17px; font-weight: 700; margin-bottom: 11px; min-height: 36px; align-items: center; }
.rider-client-details p { color: #4e5966; font-size: 16px; line-height: 1.55; margin: 0; overflow-wrap: anywhere; }
.rider-detail-shortcuts { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 13px 20px; }
.rider-detail-shortcuts a { align-items: center; background: #25211d; border-radius: 8px; color: #fff; display: flex; font-size: 12px; font-weight: 700; gap: 8px; justify-content: center; min-height: 48px; padding: 7px; transition: background .2s, transform .2s; }
.rider-detail-shortcuts a:hover { background: #403a34; transform: translateY(-1px); }
.rider-detail-shortcuts a span { font-size: 17px; }
.rider-deliver-summary { display: grid; gap: 12px; padding: 19px 20px; }
.rider-deliver-summary > div { background: #fff9df; border-radius: 8px; display: flex; flex-direction: column; gap: 6px; padding: 13px 15px; }
.rider-deliver-summary > div span { color: #62666b; font-size: 13px; }
.rider-deliver-summary > div b { color: #282d32; font-size: 18px; overflow-wrap: anywhere; }
.rider-deliver-summary > div + div { background: #294f77; flex-direction: row; justify-content: space-between; }
.rider-deliver-summary > div + div span, .rider-deliver-summary > div + div b { color: #fff; font-size: 16px; }
.rider-detail-actions { border-top: 1px solid #eadcb9; display: grid; gap: 9px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 17px 20px 20px; }
.rider-detail-actions form { min-width: 0; }
.rider-detail-actions form:first-child { align-items: end; display: grid; gap: 8px; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.rider-detail-actions .rider-reschedule-form { align-items: end; display: grid; gap: 8px; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.rider-reschedule-form .rider-reason-label, .rider-reschedule-form .button { grid-column: 1 / -1; }
.rider-detail-actions .rider-cancel-form { align-content: start; display: grid; gap: 8px; }
.rider-reason-label { color: #657080; display: grid; font-size: 11px; font-weight: 600; gap: 5px; }
.rider-reason-label textarea { font-size: 12px; min-height: 68px; resize: vertical; }
.reschedule-date-label { color: #657080; display: grid; font-size: 11px; font-weight: 600; gap: 5px; }
.reschedule-date-label input { min-height: 44px; min-width: 0; width: 100%; }
.rider-detail-actions .button { font-size: 14px; min-height: 52px; width: 100%; }
.rider-detail-actions .button:disabled { cursor: default; opacity: .58; transform: none; }
.button-reschedule { background: #fff3d8; border-color: #f1dfb7; color: #93621a; }
.button-reschedule:hover { background: #ffebc1; }
.rider-detail-complete { border-top: 1px solid var(--line); color: #25884b; font-size: 14px; font-weight: 700; margin: 0; padding: 18px 20px; }
.rider-summary-date { align-items: center; background: #fff; border: 1px solid #eceef1; border-radius: 10px; color: #687381; display: flex; flex-wrap: wrap; font-size: 12px; justify-content: space-between; margin: 0 0 14px; padding: 13px 16px; }
.rider-summary-date time { color: var(--ink); font-size: 13px; font-weight: 700; }
.rider-summary-routes { margin-top: 14px; }
.rider-summary-filter { margin-bottom: 15px; }
.rider-detail-fee { border-top: 1px solid #e8ebef; padding-top: 10px; }
.rider-deliver-summary > .rider-detail-fee { background: #f1f3f5; flex-direction: row; justify-content: space-between; }
.rider-detail-fee b, .rider-detail-fee span { color: #62666b !important; font-size: 13px !important; }
.rider-summary-route-list { display: grid; gap: 11px; }
.rider-summary-route { animation: rider-enter .32s ease-out both; background: #fafbfc; border: 1px solid #eceef1; border-radius: 10px; display: grid; gap: 12px; padding: 15px; }
.rider-summary-route-heading, .rider-summary-route-total { align-items: center; display: flex; justify-content: space-between; }
.rider-summary-route-heading b { color: var(--red); font-size: 12px; }
.rider-summary-route-heading span, .rider-summary-route-total span { color: #7c8591; font-size: 11px; }
.rider-summary-route-stats { display: flex; flex-wrap: wrap; gap: 8px 15px; }
.rider-summary-route-stats span { color: #687381; font-size: 11px; }
.rider-summary-route-stats b { color: var(--ink); }
.rider-summary-route-total { border-top: 1px solid #e8ebef; padding-top: 10px; }
.rider-summary-route-total b { font-size: 14px; }
.rider-summary-route > .text-link { justify-self: start; }
.rider-app .rider-welcome, .rider-app .rider-metrics, .rider-app .rider-route-panel, .rider-app .rider-messages-panel { animation: rider-enter .38s ease-out both; }
.rider-app .rider-metrics { animation-delay: .05s; }
.rider-app .rider-route-panel, .rider-app .rider-messages-panel { animation-delay: .1s; }
.rider-order-card { animation: rider-enter .32s ease-out both; }
.rider-order-card:nth-child(2) { animation-delay: .04s; }
.rider-order-card:nth-child(3) { animation-delay: .08s; }
.rider-order-card:nth-child(4) { animation-delay: .12s; }
@keyframes rider-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.sr-only { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

@media (min-width: 1600px) {
    .main-content { margin-left: 252px; padding-left: 70px; padding-right: 70px; }
}
@media (max-width: 1150px) {
    .sidebar { width: 220px; }
    .main-content { margin-left: 220px; padding-left: 25px; padding-right: 25px; }
    .route-workspace { grid-template-columns: minmax(190px, .65fr) minmax(0, 1.7fr); }
    .metric-card { padding-left: 14px; padding-right: 14px; }
    .rider-main { margin-left: auto; }
}
@media (max-width: 900px) {
    .sidebar { width: 75px; padding: 22px 10px 14px; }
    .brand-lockup { justify-content: center; }
    .sidebar .brand-lockup { flex-direction: column; gap: 5px; }
    .sidebar .brand-lockup img { height: 39px; width: 39px; }
    .sidebar .brand-lockup b { font-size: 13px; }
    .sidebar .brand-lockup small { font-size: 5px; letter-spacing: .8px; }
    .sidebar-label { font-size: 0; margin: 34px 0 10px; }
    .side-nav a { font-size: 0; gap: 0; justify-content: center; padding: 0; position: relative; }
    .side-nav a .nav-icon { font-size: 21px; }
    .side-nav .nav-count { border: 1px solid var(--nav); position: absolute; right: 2px; top: 2px; }
    .support-card { justify-content: center; margin: 0 0 13px; padding: 11px 0; }
    .support-card div, .profile-copy { display: none; }
    .support-dot { height: 9px; width: 9px; }
    .profile-row { justify-content: center; }
    .logout-button { display: none; }
    .main-content { margin-left: 75px; }
    .metric-grid { gap: 10px; }
    .dashboard-grid { grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr); }
    .route-workspace { grid-template-columns: minmax(175px, .55fr) minmax(0, 1.6fr); }
    .route-action-grid { grid-template-columns: 1fr; }
    .csv-form { display: grid; grid-template-columns: 40px 1fr; }
    .csv-form .upload-icon { grid-row: 1 / 4; }
    .csv-form h3, .csv-form p, .csv-form .file-picker, .csv-form > small, .csv-form button { grid-column: 2; }
    .rider-main { margin-left: auto; }
}
@media (max-width: 640px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: 22px 15px 38px; }
    .page-header { align-items: flex-start; margin-bottom: 19px; }
    .page-header > div:first-child { min-width: 0; }
    .page-header h1 { font-size: 27px; }
    .page-header p { font-size: 11px; line-height: 1.45; max-width: 250px; }
    .header-actions { flex: 0 0 auto; gap: 7px; }
    .admin-mobile-menu-toggle { display: inline-flex; min-height: 35px; padding: 0 9px; }
    .admin-mobile-nav:not([hidden]) { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); display: grid; gap: 4px; margin: -7px 0 16px; padding: 8px; }
    .admin-mobile-nav a { align-items: center; border-radius: 7px; color: #566171; display: flex; font-size: 13px; font-weight: 600; gap: 11px; min-height: 43px; padding: 0 11px; }
    .admin-mobile-nav a.active { background: var(--red-soft); color: var(--red-dark); }
    .admin-mobile-nav .nav-icon { font-size: 19px; }
    .admin-mobile-nav .nav-count { border-color: #fff; margin-left: auto; }
    .admin-mobile-logout { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
    .admin-mobile-logout button { align-items: center; background: transparent; border: 0; border-radius: 7px; color: #a6332e; display: flex; font: inherit; font-size: 13px; font-weight: 700; gap: 11px; min-height: 43px; padding: 0 11px; text-align: left; width: 100%; }
    .admin-mobile-logout button:hover { background: var(--red-soft); }
    .admin-mobile-logout .nav-icon { font-size: 19px; }

    .today-chip { font-size: 0; gap: 0; height: 35px; padding: 0; width: 35px; }
    .today-chip .status-dot { height: 9px; width: 9px; }
    .metric-grid { gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric-card { padding: 14px; }
    .metric-top { margin-bottom: 11px; }
    .metric-label { font-size: 9px; }
    .metric-icon { height: 28px; width: 28px; }
    .metric-card > strong { font-size: 23px; }
    .metric-card > strong.metric-money { font-size: clamp(13px, 4vw, 18px); }
    .metric-card > small { font-size: 8px; }
    .dashboard-grid, .riders-grid { grid-template-columns: 1fr; }
    .panel { border-radius: 10px; padding: 16px; }
    .panel-heading { margin-bottom: 14px; }
    .panel-heading h2 { font-size: 14px; }
    .chart-panel { padding-bottom: 11px; }
    #sales-chart { height: 215px; }
    .route-row { min-height: 58px; }
    .table-panel { padding: 15px 12px 0; }
    .table-panel > .panel-heading { align-items: flex-start; }
    .recent-activity-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .recent-activity-tools label { min-width: 0; }
    .recent-activity-footer { align-items: flex-start; flex-direction: column; padding-left: 0; padding-right: 0; }
    .recent-activity-footer .order-table-pagination { justify-content: space-between; width: 100%; }
    .table-wrap { margin: 0 -12px; width: calc(100% + 24px); }
    table { min-width: 630px; }
    th { padding: 10px 9px; }
    td { padding: 10px 9px; }
    .route-toolbar { padding: 16px; }
    .route-create-form { align-items: stretch; display: grid; grid-template-columns: 1fr; }
    .route-create-form label:first-of-type, .route-create-form label:nth-of-type(2) { width: 100%; }
    .route-create-form .button { width: 100%; }
    .route-workspace { display: flex; flex-direction: column; }
    .route-list-panel { order: 0; padding: 15px; position: static; width: 100%; }
    .route-list-panel .route-picker-list { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; }
    .route-picker { background: #fafbfc; border: 1px solid #eff0f2; flex: 0 0 220px; margin: 0; padding: 8px; }
    .route-orders-column { order: 1; width: 100%; }
    .route-detail-card { padding: 15px; }
    .route-action-grid { grid-template-columns: 1fr; }
    .form-two { grid-template-columns: 1fr; }
    .order-form, .csv-form { padding: 13px; }
    .csv-form { display: flex; }
    .csv-form .upload-icon, .csv-form h3, .csv-form p, .csv-form .file-picker, .csv-form > small, .csv-form button { grid-column: auto; }
    .filter-bar { align-items: stretch; display: grid; grid-template-columns: 1fr 1fr; }
    .filter-bar label { min-width: 0; }
    .filter-bar label:nth-of-type(3) { grid-column: 1 / 3; }
    .filter-bar button { grid-column: 1 / 3; }
    .order-table-tools { align-items: stretch; display: grid; grid-template-columns: 1fr 1fr; }
    .order-table-tools label:first-child { grid-column: 1 / -1; max-width: none; }
    .order-table-tools label { min-width: 0; }
    .order-table-pagination { justify-content: space-between; }
    .bulk-edit-order { grid-template-columns: 1fr; }
    .bulk-edit-order h3, .bulk-edit-order label:nth-of-type(6), .bulk-edit-order label:nth-of-type(7), .bulk-edit-order label:nth-of-type(9) { grid-column: auto; }
    .status-summary { gap: 6px; }
    .order-list-panel .panel-heading { gap: 9px; }
    .riders-grid { gap: 12px; }
    .rider-row { gap: 8px; }
    .rider-row .badge { font-size: 8px; padding: 5px 7px; }
    .rider-today { margin-right: 2px; }
    .messaging-panel, .rider-messages-panel { display: flex; flex-direction: column; min-height: 0; }
    .conversation-sidebar { border-bottom: 1px solid var(--line); border-right: 0; padding: 14px; }
    .conversation-sidebar .panel-heading { margin-bottom: 8px; }
    .conversation-sidebar .panel-heading p { display: none; }
    .conversation-sidebar .panel-heading h2 { margin: 0; }
    .conversation-person { display: inline-flex; margin: 0 4px 0 0; padding: 7px; }
    .conversation-person .rider-details small { display: block; font-size: 8px; }
    .conversation-person .rider-details b { max-width: 100px; }
    .conversation-person .nav-count { display: none; }
    .conversation { min-height: 450px; }
    .message-list { min-height: 300px; padding: 14px; }
    .message-compose { padding: 10px; }
    .rider-conversation-sidebar { display: block; }
    .rider-own-profile { grid-template-columns: 42px minmax(0, 1fr); margin-bottom: 10px; padding: 10px; }
    .rider-own-profile .conversation-avatar-large { height: 40px; width: 40px; }
    .owner-conversation-list { display: flex; gap: 5px; max-width: 100%; overflow-x: auto; padding: 2px 0 5px; }
    .conversation-list-label { display: none; }
    .owner-conversation-list .conversation-person { flex: 0 0 auto; max-width: 210px; }
    .message-compose { align-items: flex-end; }
    .message-compose .button { padding: 0 10px; }
    .message-image { max-height: 240px; }
    .report-filter-panel { align-items: stretch; display: block; }
    .report-filter { display: grid; grid-template-columns: 1fr 1fr; }
    .report-filter button { grid-column: 1 / 3; }
    .report-filter-panel > p { line-height: 1.5; margin: 10px 0 0; }
    .report-date { display: none; }
    .customer-details-dialog { border-radius: 14px; max-height: min(86vh, 760px); width: calc(100% - 24px); }
    .customer-details-content { padding: 17px; }
    .customer-details-content .dialog-heading h2 { font-size: 18px; }
    .customer-detail-grid, .customer-summary-detail { gap: 8px; }
    .customer-detail-grid > div, .customer-summary-detail > div { padding: 10px; }
    .customer-details-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .customer-details-actions .button { justify-content: center; min-width: 0; padding-left: 7px; padding-right: 7px; }
    .client-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .client-detail-panel .panel-heading { align-items: flex-start; }
    .login-page { min-height: 100svh; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
    .login-shell { border-radius: 14px; grid-template-columns: 1fr; max-width: 420px; min-height: 0; }
    .login-brand { min-height: 175px; padding: clamp(18px, 6vw, 24px); }
    .login-brand > img { height: 38px; margin-bottom: 12px; width: 38px; }
    .login-brand .eyebrow { margin-bottom: 5px; }
    .login-brand h1 { font-size: clamp(21px, 6vw, 25px); letter-spacing: -1px; margin-bottom: 7px; }
    .login-brand p { font-size: 11px; line-height: 1.5; max-width: 250px; }
    .login-decoration { bottom: -130px; right: -125px; transform: rotate(-25deg) scale(.8); }
    .login-form-panel { padding: clamp(20px, 6vw, 27px); }
    .app-download-home { max-width: 420px; }
    .app-download-card { gap: 16px; grid-template-columns: 1fr; max-width: 420px; padding: 22px; }
    .app-download-copy h1 { font-size: 23px; }
    .app-download-copy > p { font-size: 12px; }
    .app-download-form .button { width: 100%; }
    .app-install-guide { padding: 14px; }
    .login-form-wrap h2 { font-size: clamp(21px, 6vw, 23px); }
    .login-form-wrap > p { font-size: 12px; line-height: 1.5; margin-bottom: 17px; }
    .login-form-wrap label { font-size: 12px; }
    .login-form-wrap input { font-size: 16px; min-height: 44px; }
    .setup-card { padding: 25px; }
    .rider-topbar { padding: 10px 15px; }
    .rider-main { padding: 20px 13px 95px; }
    .rider-app .page-header { margin-bottom: 13px; }
    .rider-app .page-header .eyebrow { margin-bottom: 4px; }
    .rider-app .page-header h1 { font-size: 25px; }
    .rider-app .page-header p { font-size: 10px; }
    .rider-welcome { padding: 17px; }
    .rider-welcome h2 { font-size: 16px; max-width: 240px; }
    .rider-welcome p { font-size: 9px; max-width: 220px; }
    .welcome-mark { font-size: 78px; right: 7px; }
    .rider-metrics { gap: 7px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rider-metrics .metric-card { padding: 10px; }
    .rider-metrics .metric-label { font-size: 8px; }
    .rider-metrics .metric-icon { height: 24px; width: 24px; }
    .rider-metrics .metric-card > strong { font-size: 16px; letter-spacing: -.6px; }
    .rider-metrics .metric-card > small { font-size: 7px; line-height: 1.35; }
    .rider-route-panel { padding: 14px 11px; }
    .rider-route-panel > .panel-heading { padding: 0 2px; }
    .rider-route-panel > .panel-heading p { max-width: 200px; }
    .rider-status-tabs { gap: 3px; }
    .rider-status-tabs a { flex-direction: column; font-size: 9px; gap: 3px; min-height: 54px; padding: 5px 3px; }
    .route-date-tag { font-size: 8px; padding: 6px; }
    .rider-order-list { gap: 9px; }
    .rider-order-card { gap: 8px; grid-template-columns: 29px minmax(0, 1fr); padding: 11px; }
    .stop-number { font-size: 9px; height: 27px; width: 27px; }
    .stop-meta { gap: 6px; margin-bottom: 5px; }
    .stop-meta .badge { font-size: 8px; padding: 4px 7px; }
    .stop-main h3 { font-size: 12px; }
    .stop-address { font-size: 9px; }
    .stop-contact { align-items: flex-start; flex-direction: column; gap: 5px; }
    .stop-amount { align-items: center; background: #fff5e9; border-radius: 6px; flex-direction: row; grid-column: 2; justify-content: space-between; min-width: 0; padding: 8px; text-align: left; }
    .rider-order-card .stop-amount { flex-wrap: wrap; }
    .stop-amount small { font-size: 7px; }
    .stop-amount b { font-size: 10px; }
    .stop-actions { grid-column: 2; }
    .stop-actions form { flex: 1; }
    .stop-actions .button { width: 100%; }
    .completed-note { margin-left: auto; }
    .rider-bottom-nav { background: #fff; border-top: 1px solid #e5e8ec; bottom: 0; display: grid; left: 0; margin: 0; max-width: none; padding: 7px 10px max(7px, env(safe-area-inset-bottom)); position: fixed; right: 0; width: auto; z-index: 8; }
    .rider-messages-panel { min-height: 0; }
    .rider-messages-panel .message-list { max-height: calc(100vh - 280px); min-height: 300px; }
    .rider-bottom-nav a { font-size: 9px; min-height: 44px; }
    .rider-bottom-nav a > span { font-size: 18px; }
    .rider-history-route-link { gap: 10px; grid-template-columns: 36px minmax(0, 1fr) 14px; padding: 11px; }
    .marketplace-route-card { grid-template-columns: minmax(0, 1fr); }
    .marketplace-route-card .marketplace-route-brand,
    .marketplace-route-card .route-details,
    .marketplace-route-card .route-count { grid-column: 1 / -1; justify-self: stretch; }
    .marketplace-route-card .marketplace-route-brand-copy strong { overflow-wrap: normal; word-break: normal; }
    .marketplace-route-card .route-count { justify-self: start; }
    .rider-history-route-icon { height: 36px; width: 36px; }
    .rider-history-route-stats { grid-column: 2 / 4; }
    .rider-history-detail-heading h2 { font-size: 18px; }
    .rider-history-detail-heading p { line-height: 1.45; }
}
@media (max-width: 640px) {
    .rider-app { overflow-x: hidden; }
    .rider-topbar { min-height: 58px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
    .rider-logout-button { font-size: 13px; min-height: 44px; padding: 0 14px; }
    .rider-main { max-width: none; padding: 19px 12px calc(94px + env(safe-area-inset-bottom)); }
    .rider-app .page-header { align-items: flex-start; gap: 10px; }
    .rider-app .page-header > div:first-child { min-width: 0; }
    .rider-app .page-header h1 { font-size: clamp(23px, 7vw, 27px); }
    .rider-app .page-header p { font-size: 11px; line-height: 1.45; }
    .rider-app .page-header .today-chip { flex: 0 0 35px; }
    .rider-welcome { border-radius: 12px; margin-bottom: 12px; min-height: 102px; padding: 16px; }
    .rider-welcome > div { max-width: calc(100% - 24px); }
    .rider-welcome h2 { font-size: 19px; line-height: 1.3; }
    .rider-welcome p { font-size: 12px; line-height: 1.5; }
    .welcome-mark { font-size: 68px; right: 5px; }
    .rider-metrics { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; }
    .rider-metrics .metric-card { min-height: 105px; min-width: 0; padding: 14px; }
    .rider-metrics .metric-top { margin-bottom: 12px; }
    .rider-metrics .metric-label { font-size: 12px; }
    .rider-metrics .metric-icon { flex: 0 0 30px; height: 30px; width: 30px; }
    .rider-metrics .metric-card > strong { font-size: clamp(21px, 6vw, 25px); letter-spacing: -.5px; }
    .rider-metrics .metric-card > small { font-size: 10px; line-height: 1.45; }
    .rider-summary-routes { margin-top: 0; }
    .rider-summary-date { gap: 6px; margin-bottom: 11px; padding: 12px; }
    .rider-summary-date time { font-size: 12px; }
    .rider-summary-route { gap: 13px; padding: 15px 13px; }
    .rider-summary-route-heading b { font-size: 13px; }
    .rider-summary-route-heading span, .rider-summary-route-total span { font-size: 12px; }
    .rider-summary-route-stats { gap: 8px 12px; }
    .rider-summary-route-stats span { font-size: 12px; }
    .rider-summary-route-total b { font-size: 15px; }
    .rider-route-panel { padding: 17px 13px; }
    .rider-route-panel > .panel-heading { align-items: flex-start; gap: 8px; }
    .rider-route-panel > .panel-heading > div { min-width: 0; }
    .rider-route-panel > .panel-heading h2 { font-size: 17px; }
    .rider-route-panel > .panel-heading p { font-size: 12px; line-height: 1.5; max-width: 220px; }
    .route-date-tag { flex: 0 0 auto; font-size: 8px; max-width: 45%; overflow-wrap: anywhere; white-space: normal; }
    .rider-order-list { gap: 10px; padding-left: 0; padding-right: 0; }
    .route-release-panel { align-items: stretch; flex-direction: column; }
    .route-release-panel .button { width: 100%; }
    .rider-deliveries-panel .rider-order-list { max-height: min(55vh, 620px); max-height: min(55dvh, 620px); min-height: 180px; overflow-y: auto; padding: 8px 3px 12px 1px; }
    .rider-order-card { border-radius: 12px; column-gap: 10px; grid-template-columns: 34px minmax(0, 1fr); min-width: 0; overflow: hidden; padding: 14px 12px; }
    .stop-number { font-size: 11px; height: 34px; width: 34px; }
    .stop-main { overflow-wrap: anywhere; }
    .stop-customer { font-size: 17px; margin-bottom: 6px; }
    .stop-meta { flex-wrap: wrap; font-size: 10px; gap: 7px; }
    .stop-meta .badge { font-size: 10px; padding: 5px 8px; }
    .stop-main h3 { font-size: 18px; line-height: 1.35; margin-bottom: 7px; }
    .stop-address { font-size: 13px; line-height: 1.45; margin-bottom: 6px; }
    .stop-contact { font-size: 12px; gap: 8px; }
    .stop-contact a { align-items: center; background: #f1f6fb; border-radius: 8px; display: inline-flex; gap: 7px; min-height: 46px; padding: 0 11px; transition: background .2s, transform .2s; }
    .stop-contact a:hover { background: #e5eff8; transform: translateY(-1px); }
    .stop-contact a > span:first-child { font-size: 16px; }
    .rider-order-card .stop-amount { align-items: stretch; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: 2; min-width: 0; padding: 9px; text-align: left; }
    .stop-amount-item { background: #fff; border: 1px solid #f1e7d9; border-radius: 7px; gap: 4px; min-height: 48px; justify-content: center; padding: 7px 8px; }
    .stop-amount small { font-size: 8px; letter-spacing: .45px; }
    .stop-amount b { font-size: 12px; overflow-wrap: anywhere; }
    .stop-amount .stop-open-hint { align-self: center; grid-column: 1 / -1; justify-self: end; margin-top: 0; }
    .stop-open-hint { font-size: 10px; white-space: normal; }
    .rider-order-card .stop-open-hint { flex-basis: 100%; text-align: right; }
    .stop-actions { flex-wrap: wrap; gap: 8px; }
    .stop-actions .button { font-size: 13px; min-height: 50px; padding-left: 12px; padding-right: 12px; }
    .completed-note { font-size: 12px; padding: 12px 0; }
    .rider-bottom-nav { min-height: 61px; padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
    .rider-bottom-nav a { font-size: 9px; min-height: 48px; }
    .rider-bottom-nav a > span { font-size: 20px; }
    .rider-messages-panel { border-radius: 10px; }
    .rider-messages-panel .message-list { max-height: calc(100dvh - 270px); min-height: 240px; }
    .rider-app .message-compose { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
    .rider-back-link { font-size: 14px; margin-bottom: 10px; min-height: 44px; }
    .rider-detail-page { border-radius: 12px; }
    .rider-detail-status { font-size: 12px; padding: 14px 16px; }
    .rider-client-details { padding: 22px 16px 19px; }
    .rider-client-details h2 { font-size: 25px; }
    .rider-bottom-nav { gap: 1px; }
    .rider-history-route-copy b { font-size: 13px; }
    .rider-history-route-stats { font-size: 9px; gap: 5px 9px; }
    .rider-history-detail-heading { align-items: flex-start; }
    .rider-history-delivery-count { font-size: 9px; padding: 7px 9px; }
    .rider-detail-phone { font-size: 18px; min-height: 42px; }
    .rider-client-details p { font-size: 16px; }
    .rider-detail-shortcuts { gap: 7px; padding: 13px 12px; }
    .rider-detail-shortcuts a { flex-direction: column; font-size: 11px; gap: 4px; min-height: 58px; }
    .rider-detail-shortcuts a span { font-size: 19px; }
    .rider-deliver-summary { gap: 10px; padding: 17px 13px; }
    .rider-deliver-summary > div { padding: 13px; }
    .rider-deliver-summary > div span { font-size: 14px; }
    .rider-deliver-summary > div b { font-size: 18px; }
    .rider-deliver-summary > div + div span, .rider-deliver-summary > div + div b { font-size: 15px; }
    .rider-detail-actions { gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 15px 13px 17px; }
    .rider-detail-actions form:first-child { grid-column: 1 / -1; }
    .rider-detail-actions .rider-reschedule-form { grid-column: 1 / -1; }
    .rider-detail-actions .rider-cancel-form { grid-column: 1 / -1; }
    .rider-detail-actions .button { font-size: 14px; min-height: 52px; padding-left: 8px; padding-right: 8px; white-space: normal; }
    .rider-detail-complete { font-size: 14px; padding: 17px 16px; }
    .status-confirm-dialog { border-radius: 14px; max-height: min(84dvh, 520px); width: calc(100% - 24px); }
    .status-confirm-content { padding: 23px 19px; }
    .status-confirm-content h2 { font-size: 19px; }
    .status-confirm-content p { font-size: 14px; }
    .status-confirm-actions { flex-direction: column-reverse; margin-top: 20px; }
    .status-confirm-actions .button { min-height: 48px; min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
