@layer components {
  .email-verification { padding: 20px 0; margin: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .email-verification h2 { font-size: 22px; margin: 0 0 10px; }
  #recovery-email-fields, #recovery-password-fields { display: grid; gap: 12px; }
  #recovery-email-fields[hidden], #recovery-password-fields[hidden] { display: none; }
  .account-page { min-height: 100dvh; }
  .account-page .site-header { height: 86px; }
  .account-header-actions { display: flex; align-items: center; gap: 20px; }
  #account-identity { color: var(--muted); font-size: 13px; max-width: 220px; overflow-wrap: anywhere; }
  .account-shell { padding-block: 30px 70px; min-height: calc(100dvh - 175px); }
  .environment-note { display: flex; align-items: center; gap: 9px; font-size: 10px; letter-spacing: .09em; color: var(--muted); }
  .environment-note .tiny-dot { background: var(--brand-strong); }
  .page-message:not(:empty) { margin-top: 18px; padding: 14px 18px; border-radius: 6px; background: var(--brand-soft); font-size: 14px; }
  .page-message.error-text:not(:empty) { background: #fff0ec; }
  #loading { margin-top: 35px; }
  .auth-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(35px, 7vw, 110px); align-items: start; padding-top: 58px; max-width: 1100px; margin-inline: auto; }
  .auth-intro { padding-block: 18px; }
  .auth-intro h1 { font-size: clamp(48px, 5.8vw, 82px); margin: 22px 0; line-height: .99; }
  .auth-intro h1 span { color: var(--brand-strong); }
  .auth-intro > p:not(.eyebrow) { color: var(--muted); max-width: 380px; }
  .auth-promise { display: flex; gap: 18px; align-items: start; margin: 36px 0 22px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 380px; font-size: 14px; }
  .auth-promise > span { display: grid; place-items: center; background: var(--brand); min-width: 34px; height: 34px; border-radius: 50%; font-size: 20px; }
  .account-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; min-width: 0; }
  .auth-card { box-shadow: 0 12px 45px #20222508; padding: 32px; }
  .google-button { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; min-height: 48px; width: 100%; border: 0; border-radius: 24px; background: #fff; color: #1f1f1f; padding: 0; }
  .google-button img { width: 216px; max-width: 100%; height: auto; }
  #google-progress { font-size: 13px; }
  .google-button:hover { background: #f4f7fb; }
  .google-button:disabled { opacity: .55; cursor: wait; }
  .auth-divider { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; margin-top: 24px; }
  .auth-divider::before, .auth-divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
  .access-card { max-width: 660px; margin: 35px auto; }
  .access-card h1 { font-size: clamp(30px, 5vw, 46px); }
  .access-methods { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding-block: 24px; border-bottom: 1px solid var(--line); }
  .access-methods dd { margin: 0; font-weight: 600; }
  #access-email { overflow-wrap: anywhere; margin-top: 20px; }
  .auth-mode { display: flex; padding: 5px; border-radius: 6px; background: var(--soft); margin-bottom: 28px; }
  .auth-mode button { flex: 1; padding: 11px; background: transparent; border-radius: 4px; font-size: 13px; }
  .auth-mode button[aria-pressed="true"] { background: var(--brand); font-weight: 700; }
  .account-card h2 { font-size: 28px; }
  .supporting-copy { font-size: 14px; color: var(--muted); margin-top: 10px; }
  .stack-form { margin-top: 24px; }
  .stack-form label { display: block; font-size: 12px; font-weight: 700; margin: 18px 0 7px; }
  .stack-form input, .stack-form select { width: 100%; background: #fff; padding: 13px 12px; border: 1px solid var(--line); border-radius: 5px; min-height: 48px; font-size: 16px; }
  .stack-form .small-note { margin-top: 8px; }
  .stack-form .button-full { margin-top: 23px; }
  .stack-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
  .stack-form legend { padding: 0 8px 0 0; font-weight: 700; font-size: 13px; }
  .stack-form :disabled { cursor: not-allowed; }
  .button-outline { border: 1px solid var(--line); background: transparent; }
  .button-outline:hover { background: var(--soft); }
  .dashboard-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-block: 40px 32px; }
  .dashboard-heading h1 { font-size: clamp(32px, 3.5vw, 48px); margin-top: 12px; }
  .refresh-controls { display: flex; gap: 15px; align-items: center; flex-shrink: 0; }
  #sync-status { font-size: 11px; color: var(--muted); }
  .dashboard-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 26px; align-items: start; }
  .dashboard-sidebar, .ride-workspace { display: grid; gap: 22px; min-width: 0; }
  .dashboard-sidebar .eyebrow { margin-bottom: 16px; }
  .sidebar-note { padding: 4px 20px; color: var(--muted); font-size: 13px; }
  .sidebar-note .small-note { margin-top: 14px; }
  .quote-preview { margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); }
  .quote-preview > span { font-size: 12px; color: var(--muted); }
  .quote-preview strong { display: block; font-size: 32px; font-weight: 500; margin-top: 3px; }
  .status-badge { display: inline-block; padding: 5px 9px; border-radius: 4px; background: var(--brand-soft); color: var(--brand-strong); font-size: 10px; font-weight: 700; letter-spacing: .035em; }
  #driver-status { margin-block: 18px 12px; }
  #driver-vehicle { font-size: 14px; overflow-wrap: anywhere; }
  #open-request-note { margin-top: 16px; }
  .card-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
  .card-topline h2 { font-size: 24px; }
  .request-list { display: grid; gap: 10px; }
  .request-list:empty { margin-top: 16px; }
  .request-row { display: flex; justify-content: space-between; gap: 20px; padding: 17px; background: var(--paper); border: 1px solid transparent; border-radius: 7px; align-items: center; width: 100%; text-align: left; }
  button.request-row:hover { border-color: var(--brand-strong); }
  .request-row[aria-pressed="true"] { border-color: var(--brand-strong); background: var(--brand-soft); }
  .request-row strong { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
  .request-row small { display: block; color: var(--muted); margin-top: 6px; font-size: 12px; }
  .request-row .button { flex-shrink: 0; }
  .dispatch-offer-row { flex-wrap: wrap; justify-content: flex-start; }
  .dispatch-offer-row > div { flex: 1 1 100%; min-width: 0; }
  .empty-state { padding: 20px 0 8px; color: var(--muted); font-size: 14px; }
  #detail-title { overflow-wrap: anywhere; }
  #detail-reference { margin-top: 8px; overflow-wrap: anywhere; }
  .fare-display { background: var(--brand-soft); padding: 24px; border-radius: 7px; margin-top: 24px; }
  .fare-display > strong { display: block; font-size: clamp(26px, 4vw, 40px); line-height: 1.15; font-weight: 500; margin: 12px 0 10px; overflow-wrap: anywhere; }
  .fare-display > p:last-child { font-size: 13px; color: var(--muted); }
  #fare-expiry { margin-block: 12px; min-height: 18px; }
  .live-offer-row { display: flex; align-items: stretch; gap: 12px; }
  .live-offer-row input { flex: 1; min-width: 0; }
  .live-offer-row .button { flex-shrink: 0; }
  .cancel-link { display: inline-block; background: transparent; margin-top: 25px; font-size: 13px; color: var(--muted); }
  .agreement-note { margin-top: 20px; padding: 18px; border-left: 3px solid var(--brand); background: var(--paper); font-size: 14px; }
  #live-offer-history { padding: 0; list-style: none; display: grid; gap: 10px; }
  #live-offer-history li { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  #live-offer-history time { display: block; font-size: 11px; color: var(--muted); }
  #driver-applications { margin-top: 24px; }
  .review-actions { display: flex; gap: 10px; flex-shrink: 0; }
  .account-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-block: 24px; font-size: 11px; color: var(--muted); }
  .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@layer responsive {
  @media (max-width: 1000px) { .dashboard-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 20px; } .account-card { padding: 23px; } .auth-layout { gap: 35px; } }
  @media (max-width: 800px) { .auth-layout { grid-template-columns: 1fr; max-width: 520px; padding-top: 28px; } .auth-intro h1 { font-size: 52px; } .auth-intro h1 br { display: none; } .auth-intro h1 { max-width: 380px; } .auth-promise { margin-block: 23px 15px; } .dashboard-layout { grid-template-columns: 1fr; } .dashboard-heading { align-items: start; flex-direction: column; } .sidebar-note { display: none; } #account-identity { max-width: 130px; font-size: 11px; } .account-header-actions { gap: 12px; } }
  @media (max-width: 580px) { .account-page .site-header { height: 76px; } .account-header-actions > a { display: none; } #account-identity { display: none; } .account-shell { padding-block: 22px 45px; } .environment-note { font-size: 8px; letter-spacing: .025em; } .auth-layout { gap: 20px; } .auth-intro h1 { font-size: 46px; } .auth-intro > p:not(.eyebrow) { font-size: 13px; } .auth-card { padding: 22px; } .account-card { padding: 21px; } .dashboard-heading { padding-block: 30px 24px; } .request-row { flex-wrap: wrap; padding: 14px; gap: 14px; } .review-actions { width: 100%; } .card-topline h2 { font-size: 22px; } .fare-display { padding: 20px; } .live-offer-row { gap: 8px; } .live-offer-row .button { padding-inline: 12px; font-size: 12px; } .account-footer { flex-direction: column; gap: 6px; } }
}

@layer components {
  .chat-panel .card-topline { align-items: start; }
  .chat-panel .eyebrow { margin-bottom: 10px; }
  .chat-panel .card-topline h2 { overflow-wrap: anywhere; }
  .chat-privacy { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .chat-feed { height: 390px; overflow-y: auto; overscroll-behavior: contain; padding: 20px 2px; display: flex; flex-direction: column; gap: 16px; }
  .chat-entry { max-width: 88%; flex-shrink: 0; padding: 15px 18px; border-radius: 12px 12px 12px 3px; background: var(--soft); align-self: flex-start; min-width: 0; }
  .chat-own { background: var(--brand-soft); align-self: flex-end; border-radius: 12px 12px 3px 12px; }
  .chat-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; margin: 8px 0; }
  .chat-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; font-size: 11px; }
  .chat-entry time { font-size: 10px; color: var(--muted); }
  .chat-report-button { padding: 5px 0; background: transparent; color: var(--muted); text-decoration: underline; font-size: 10px; }
  .chat-offer { width: 85%; align-self: center; background: #fff; border: 1px solid var(--brand); border-radius: 8px; }
  .chat-price { display: block; font-size: 28px; margin-block: 8px; }
  .chat-offer .button { margin-top: 12px; }
  .chat-offer .button:disabled { opacity: .5; cursor: not-allowed; }
  .chat-agreement { align-self: center; text-align: center; background: var(--brand-soft); border-radius: 8px; }
  .chat-compose { margin-top: 14px; }
  .chat-compose label { margin-top: 0; }
  .chat-compose textarea { width: 100%; resize: vertical; min-height: 86px; max-height: 240px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 16px; }
  .chat-compose .button { margin-top: 12px; }
  #chat-compose-note { margin-top: 12px; }
  #chat-error:not(:empty) { padding-top: 12px; }
  .chat-report-panel { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; }
  .chat-report-panel blockquote, .chat-report-card blockquote { margin-inline: 0; padding: 12px; background: var(--paper); border-left: 3px solid var(--brand); max-height: 180px; overflow-y: auto; }
  .chat-report-panel .review-actions { margin-block: 16px; flex-wrap: wrap; }
  .chat-reports-panel { margin-top: 24px; }
  .chat-report-card { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .chat-report-card .button, .chat-report-card .status-badge { margin-top: 14px; }
  .request-row .chat-unread-count { color: var(--brand-strong); font-weight: 700; }
}
@layer responsive {
  @media (max-width: 580px) { .chat-feed { height: 340px; } .chat-entry { max-width: 94%; padding: 12px 14px; } .chat-offer { width: 94%; } .chat-panel .card-topline { flex-wrap: wrap; } }
}

@layer components {
  .trip-panel { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; }
  .trip-panel h3 { margin-top: 12px; font-size: 23px; }
  .trip-panel > .button { margin-top: 20px; }
  .pickup-pin-panel { margin-top: 24px; padding: 20px; background: var(--brand-soft); border-radius: 8px; }
  #pickup-pin-value { display: block; font-size: clamp(30px, 6vw, 44px); letter-spacing: .16em; font-variant-numeric: tabular-nums; margin-block: 12px; }
  .cancellation-form { padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
  .cancellation-form .review-actions { margin-top: 18px; flex-wrap: wrap; }
  .trip-timeline { list-style: none; padding: 0; display: grid; gap: 14px; }
  .trip-timeline li { border-left: 3px solid var(--brand); padding-left: 14px; font-size: 13px; }
  .trip-timeline time, .trip-timeline span { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
  .history-refresh { background: transparent; margin-block: 14px; font-size: 13px; }
  #history-more { margin-top: 18px; }
}
@layer responsive {
  @media (max-width: 580px) { .trip-panel { padding: 18px; } .trip-panel > .button { white-space: normal; } }
}

@layer components {
  .calls-panel { margin-bottom: 24px; border-left: 4px solid var(--brand); }
  .calls-panel .eyebrow { margin-bottom: 10px; }
  .call-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
  #call-mode, #call-error:not(:empty) { margin-top: 10px; }
  #call-end { color: #9d3020; border-color: #e5b5aa; }
  .call-history-section { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; }
  .call-history-section summary { cursor: pointer; font-size: 13px; font-weight: 600; }
  .call-history { padding: 0; list-style: none; display: grid; gap: 12px; font-size: 13px; }
  .call-history span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
}
@layer responsive {
  @media (max-width: 580px) { .calls-panel .card-topline { flex-wrap: wrap; } .call-controls .button { flex: 1 1 auto; } }
}

@layer components {
  .location-panel { margin-bottom: 24px; }
  .location-panel .card-topline { gap: 16px; flex-wrap: wrap; }
  .location-search-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-block: 24px; }
  .location-input-row { display: flex; gap: 8px; }
  .location-input-row input { min-width: 0; }
  .stack-form .current-location-field { padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
  .stack-form .current-location-field strong { margin-top: 2px; }
  .kemmy-card { position: fixed; z-index: 25; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); width: min(370px, calc(100vw - 32px)); max-height: min(70vh, 600px); overflow-y: auto; padding: 18px; border: 1px solid #efc84d; border-radius: 16px; background: #fff9e7; box-shadow: 0 20px 46px #20222533; }
  .kemmy-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
  .kemmy-top img { width: 64px; height: 64px; border-radius: 50%; background: #f3e8cd; object-fit: cover; }
  .kemmy-top div { flex: 1; display: grid; }
  .kemmy-top strong { font-size: 16px; }
  .kemmy-top span { color: var(--muted); font-size: 12px; }
  .kemmy-top button { align-self: start; background: transparent; font-size: 24px; }
  #kemmy-message { font-size: 15px; line-height: 1.55; }
  #kemmy-note { margin-top: 8px; }
  .kemmy-stars { display: flex; gap: 4px; margin: 8px 0 12px; }
  .kemmy-stars button { min-width: 44px; min-height: 44px; background: transparent; color: var(--ink); font-size: 30px; }
  #kemmy-reopen { margin: 12px 0; }
  .location-results { list-style: none; padding: 0; margin-block: 10px; }
  .location-result { width: 100%; text-align: left; background: var(--paper); padding: 12px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 6px; overflow-wrap: anywhere; }
  .location-targets { display: flex; gap: 24px; margin-bottom: 16px; }
  .location-targets label { display: flex; align-items: center; gap: 8px; }
  .location-targets input { width: auto; }
  .map-frame { width: 100%; overflow: hidden; background: #edf0e8; border: 1px solid var(--line); border-radius: 10px; }
  .map-frame svg { display: block; width: 100%; height: auto; aspect-ratio: 2; touch-action: manipulation; }
  .map-frame svg:focus-visible { outline: 3px solid var(--brand); outline-offset: -4px; }
  .map-controls { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
  .map-controls .button { padding: 8px 12px; min-height: 40px; }
  .map-route-halo { fill: none; stroke: #1c2428; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
  .map-route-line { fill: none; stroke: #ffd335; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
  .map-marker circle { fill: #ffcd2a; stroke: #202626; stroke-width: 3; }
  .map-marker text { fill: #172125; font: 700 15px var(--font-app); }
  .map-marker-destination circle { fill: #fff; }
  .map-marker-driver circle { fill: #16816b; stroke: #fff; }
  .map-marker-driver text, .map-marker-stale text { fill: #fff; }
  .map-marker-stale circle { fill: #777; stroke: #fff; }
  .map-crosshair { fill: none; stroke: #202626; stroke-width: 2; pointer-events: none; }
  .map-attribution { font-size: 11px; margin-block: 10px 18px; }
  .map-attribution a { text-decoration: underline; }
  .coordinate-details { margin-block: 20px; }
  .coordinate-details summary { cursor: pointer; }
  .location-coordinate-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 14px; margin-block: 14px; }
  .location-coordinate-grid > div { min-width: 0; }
  .location-quote { margin-top: 24px; padding: 22px; background: var(--paper); border-left: 4px solid var(--brand); }
  .location-quote > p { margin-block: 14px; }
  .route-metrics { display: flex; flex-wrap: wrap; gap: 22px 40px; }
  .route-metrics span, .route-metrics strong { display: block; }
  .route-metrics span { font-size: 12px; color: var(--muted); }
  .route-metrics strong { font-size: 25px; margin-top: 6px; }
  #tracking-status, #tracking-guidance, #tracking-error, #planner-error { margin-top: 12px; }
}
@layer responsive {
  @media (max-width: 680px) {
    .location-search-grid, .location-coordinate-grid { grid-template-columns: 1fr; }
    .location-quote { padding: 16px; }
    .location-targets { flex-wrap: wrap; }
  }
}

.availability-sample { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line, #dedbd2); }
.availability-sample label { display: block; margin: .75rem 0 .4rem; font-weight: 600; }
.availability-sample select { width: 100%; max-width: 22rem; margin: 0 .75rem .75rem 0; padding: .75rem; border: 1px solid #c7c3b9; border-radius: .5rem; background: #fff; font: inherit; }
.availability-panel .review-actions { flex-wrap: wrap; }

@layer components {
  .payment-simulation-note { padding: 12px 14px; background: var(--brand-soft); border-left: 3px solid var(--brand); font-size: 12px; font-weight: 700; }
  .payment-total { margin-block: 20px; }
  .payment-total > span { display: block; font-size: 12px; color: var(--muted); }
  .payment-total > strong { display: block; font-size: clamp(28px, 4vw, 38px); overflow-wrap: anywhere; }
  #payment-reference { overflow-wrap: anywhere; }
  #payment-error, #payment-notice, #payment-reference { margin-top: 12px; }
  .payment-actions, .payment-pagination { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
  #payment-start { margin-top: 20px; }
  .payment-receipt { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
  .payment-receipt h3 { margin-block: 10px 16px; font-size: 24px; }
  .receipt-details { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 2fr); gap: 12px 20px; font-size: 13px; margin-block: 20px; }
  .receipt-details dt { color: var(--muted); }
  .receipt-details dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
  #receipt-print { margin-top: 18px; }
  .earnings-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-block: 22px; }
  .earnings-metrics > div { background: var(--paper); padding: 16px; border-radius: 6px; min-width: 0; }
  .earnings-metrics span { display: block; font-size: 11px; color: var(--muted); }
  .earnings-metrics strong { display: block; font-size: 23px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; margin-top: 10px; }
  .earnings-panel h3 { margin-top: 24px; font-size: 17px; }
  .payment-list { margin-top: 16px; }
  .payment-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
  .payment-row > div:first-child { flex: 1 1 180px; min-width: 0; }
  .payment-row strong, .payment-row small { display: block; overflow-wrap: anywhere; }
  .payment-row strong { font-size: 14px; }
  .payment-row small { margin-top: 6px; font-size: 11px; color: var(--muted); }
  .payment-row-amount .status-badge { margin-top: 8px; }
  .payments-admin-panel { margin-bottom: 24px; }
}
@layer responsive {
  @media (max-width: 680px) { .earnings-metrics { grid-template-columns: 1fr; } .receipt-details { grid-template-columns: 1fr; gap: 5px; } .receipt-details dd { margin-bottom: 12px; } .payment-actions .button { flex: 1 1 auto; } }
}
@media print {
  .print-receipt > header, .print-receipt > footer,
  .print-receipt main > :not(#dashboard), .print-receipt #dashboard > :not(#ride-dashboard),
  .print-receipt #ride-dashboard > :not(.ride-workspace), .print-receipt .ride-workspace > :not(#payment-panel),
  .print-receipt #payment-panel > :not(#payment-receipt), .print-receipt #receipt-print { display: none !important; }
  .print-receipt, .print-receipt main, .print-receipt #ride-dashboard, .print-receipt .ride-workspace,
  .print-receipt #payment-panel, .print-receipt #payment-receipt { display: block; margin: 0; padding: 0; border: 0; background: #fff; width: 100%; max-width: none; }
  .print-receipt #payment-receipt { padding: 12mm; color: #111; }
  .print-receipt .payment-simulation-note { border: 2px solid #111; }
}

.onboarding-panel { margin-bottom: 26px; }
.onboarding-panel h3 { margin-top: 28px; }
.onboarding-panel .review-actions { flex-wrap: wrap; }
.vehicle-editor { border: 1px solid var(--ink); border-radius: 12px; padding: 20px; scroll-margin-top: 24px; }
.vehicle-editor h3 { margin-top: 0; }
.onboarding-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin-bottom: 20px; }
.onboarding-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.onboarding-documents { list-style: none; padding: 0; margin-top: 16px; }
.onboarding-document { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.onboarding-document > div:first-child { min-width: 0; }
.onboarding-document .review-actions { flex-shrink: 0; }
.onboarding-summary { display: grid; grid-template-columns: 110px 1fr; gap: 10px 20px; margin-top: 20px; overflow-wrap: anywhere; }
.onboarding-summary dt { font-weight: 700; }.onboarding-summary dd { margin: 0; }
.stack-form label.onboarding-check { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.stack-form .onboarding-check input { width: 20px; min-height: 20px; accent-color: var(--ink); }
.onboarding-audit { margin-top: 26px; }.onboarding-audit li { margin-block: 12px; overflow-wrap: anywhere; }
@media (max-width: 650px) { .onboarding-grid { grid-template-columns: 1fr; } .onboarding-document { align-items: start; flex-direction: column; } }
@media print { #onboarding-panel { display: none !important; } }

.safety-admin-panel { margin-bottom: 26px; }
.safety-preview-note { padding: 18px; margin-block: 20px; background: #fff5d5; border-left: 4px solid #f4b400; border-radius: 4px; font-size: 14px; line-height: 1.65; }
.safety-sos { background: #9e2535; color: #fff; border: 2px solid #9e2535; }
.safety-sos:hover { background: #7f1d2b; }
.safety-contacts { list-style: none; padding: 0; margin-block: 16px; }
.safety-contact { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.safety-contact > div { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.safety-record { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 28px; overflow-wrap: anywhere; }
.safety-record h3, .safety-sharing h3 { margin-bottom: 16px; }.safety-record h4 { margin-block: 22px 12px; }
.safety-details { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 3fr); gap: 12px 18px; margin-block: 20px; font-size: 13px; }
.safety-details dt { font-weight: 700; }.safety-details dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.safety-events { padding-left: 22px; font-size: 12px; }.safety-events li { margin-block: 12px; white-space: pre-wrap; }
.safety-notification { background: var(--paper); padding: 16px; border-radius: 6px; margin-top: 12px; font-size: 13px; }
.safety-notification summary { cursor: pointer; margin-top: 12px; }
.stack-form label.safety-check { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.stack-form .safety-check input { width: 20px; min-height: 20px; flex: 0 0 20px; accent-color: var(--ink); }
.safety-recipients { margin-block: 18px; }.safety-sharing { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 28px; }
.safety-sharing > label, .safety-admin-panel > label { display: block; font-size: 13px; font-weight: 700; margin-block: 18px 8px; }
.safety-sharing > select, .safety-admin-panel > select { padding: 10px; min-height: 44px; max-width: 100%; border: 1px solid var(--line); border-radius: 4px; background: white; }
.trip-share-shell { max-width: 820px; }.trip-share-shell h1 { font-size: clamp(30px, 6vw, 52px); margin-block: 14px 22px; }
@media (max-width: 650px) { .safety-details { grid-template-columns: 1fr; gap: 5px; }.safety-details dd { margin-bottom: 12px; } }
@media print { #trusted-contacts-panel, #safety-panel, #safety-admin-panel { display: none !important; } }

@layer components {
  .account-modes { margin-bottom: 24px; border-top: 4px solid var(--brand); }
  .account-modes .card-topline { flex-wrap: wrap; }
  .mode-picker { display: flex; gap: 5px; padding: 5px; border-radius: 8px; background: var(--soft); }
  .mode-picker button { min-height: 44px; padding: 10px 22px; background: transparent; border-radius: 5px; font-size: 14px; }
  .mode-picker button[aria-pressed="true"] { background: var(--brand); font-weight: 700; }
  .mode-picker button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
  .mode-confirm, .mode-active, .driver-enrollment { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
  .mode-active h3, .mode-confirm h3 { font-size: 18px; }
  .mode-active ul { display: grid; gap: 8px; list-style: none; padding: 0; margin-top: 12px; }
  .mode-active .button { text-align: left; white-space: normal; }
  .mode-coming { margin-top: 18px; color: var(--muted); }
  @media (max-width: 600px) {
    .account-modes { padding: 20px; }
    .mode-picker { width: 100%; }
    .mode-picker button { flex: 1; }
  }
}

.chat-safety-hint {
  margin: .65rem 0;
  padding: .75rem;
  border-left: 3px solid #916b00;
  border-radius: .4rem;
  background: #fff4cf;
  color: #523c00;
  font-size: .9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.vehicle-check-photo { width: 100%; height: auto; max-height: 240px; object-fit: contain; }
.guest-consent { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1rem; line-height: 1.6; }
.guest-consent input { width: auto; margin-top: .35rem; flex: 0 0 auto; }
#guest-passenger-fields { min-width: 0; }
#guest-link-url { font-family: monospace; font-size: .85rem; }
#guest-link-panel .review-actions { flex-wrap: wrap; }
#guest-details dd { overflow-wrap: anywhere; }
#guest-pin { font-size: clamp(2rem, 8vw, 3.4rem); letter-spacing: .2em; font-weight: 800; }


/* Password recovery UX */
@layer components {
  .password-field {
    position: relative;
  }

  .password-field input {
    padding-right: 72px;
  }

  .password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    min-width: 54px;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--soft);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
  }

  .password-toggle:hover {
    background: var(--brand-soft);
  }

  .password-toggle:disabled {
    opacity: .55;
    cursor: not-allowed;
  }

  .forgot-password-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
  }

  .forgot-password-row .text-link {
    font-size: 12px;
  }

  .recovery-card {
    max-width: 680px;
    border-radius: 18px;
    padding: clamp(24px, 4vw, 40px);
    box-shadow: 0 14px 42px #2022250a;
  }

  .recovery-card h1 {
    max-width: 560px;
  }

  .recovery-success-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--ink);
    font-size: 24px;
    font-weight: 800;
  }

  .recovery-next-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: 22px;
  }

  .recovery-next-actions .button {
    min-height: 44px;
  }

  .recovery-return {
    margin-top: 22px;
  }

  #recovery-google {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  #recovery-status:not(:empty) {
    border-left: 4px solid var(--brand);
  }
}

@layer responsive {
  @media (max-width: 580px) {
    .password-toggle {
      min-width: 52px;
      right: 6px;
    }

    .recovery-card {
      margin-top: 16px;
      padding: 22px 18px;
    }

    .recovery-next-actions {
      display: grid;
      grid-template-columns: 1fr;
    }

    .recovery-next-actions .button,
    .recovery-next-actions .text-link {
      width: 100%;
      justify-content: center;
    }
  }
}


@layer components {
  .announcement-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #e6d58a;
    border-left: 5px solid var(--brand);
    border-radius: 12px;
    background: #fff9df;
    box-shadow: 0 8px 24px #2022250a;
  }
  .announcement-banner[hidden] { display: none; }
  .announcement-banner[data-priority="important"] { background: #fff5cf; border-color: #dec66a; }
  .announcement-banner[data-priority="critical"] { background: #fff0ec; border-color: #d88774; border-left-color: #b83f28; }
  .announcement-copy { min-width: 0; }
  .announcement-copy .eyebrow { margin-bottom: 6px; color: #705b0a; }
  .announcement-banner[data-priority="critical"] .eyebrow { color: #8e2e1d; }
  .announcement-copy h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
  .announcement-copy > p:last-child { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.55; }
  .announcement-banner .button { flex: 0 0 auto; background: #fff; }
}
@layer responsive {
  @media (max-width: 580px) {
    .announcement-banner { align-items: stretch; flex-direction: column; gap: 14px; padding: 16px; }
    .announcement-banner .button { width: 100%; justify-content: center; }
  }
}


/* Kemmy first-time setup */
@layer components {
  .kemmy-setup-card { z-index: 40; }
  .kemmy-setup-actions { display: grid; gap: 9px; margin-top: 16px; }
  .kemmy-setup-actions .button { width: 100%; justify-content: center; text-align: center; }
  .kemmy-setup-launcher {
    position: fixed; z-index: 39; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
    display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 7px 14px 7px 7px;
    border: 1px solid #efc84d; border-radius: 999px; background: #fff9e7; color: var(--ink); box-shadow: 0 12px 32px #20222526;
    font-size: 13px; font-weight: 700;
  }
  .kemmy-setup-launcher img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #f3e8cd; }
  .kemmy-setup-launcher:hover { background: var(--brand-soft); }
  .kemmy-setup-card[aria-busy="true"] { opacity: .78; }
}
@layer responsive {
  @media (max-width: 580px) {
    .kemmy-setup-card { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; max-height: min(72vh, 620px); }
    .kemmy-setup-launcher { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  }
}


/* Destination-first nationwide ride booking */
@layer components {
  .ride-destination-panel {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .ride-destination-panel h3 {
    margin: 7px 0 0;
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: -.04em;
  }
  .ride-destination-panel > .small-note {
    max-width: 620px;
    margin-top: 8px;
  }
  .ride-destination-panel .stack-form {
    margin-top: 14px;
  }
  .ride-destination-panel #planner-online {
    margin-top: 10px;
  }
  .ride-destination-panel #planner-provider-note {
    margin-top: 10px;
  }
  .ride-destination-panel .location-results {
    margin-top: 10px;
  }
  .ride-destination-panel .current-pickup-note {
    display: inline-flex;
    gap: 6px;
    margin: 14px 0 2px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--brand-soft);
    font-size: 13px;
  }
}
@layer responsive {
  @media (max-width: 580px) {
    .ride-destination-panel { margin-top: 22px; padding-top: 20px; }
    .ride-destination-panel .location-input-row { display: grid; grid-template-columns: 1fr; }
    .ride-destination-panel .location-input-row .button { width: 100%; }
  }
}


/* Registration starting experience */
@layer components {
  .registration-intent { border: 0; padding: 0; margin: 0 0 20px; }
  .registration-intent legend { margin-bottom: 8px; font-size: 18px; font-weight: 800; color: var(--ink); }
  .registration-intent > .small-note { margin: 0 0 12px; }
  .registration-intent-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
  .registration-intent-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 4px;
    align-content: center;
    min-height: 100px;
    padding: 14px;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    color: var(--ink);
  }
  .registration-intent-card .registration-intent-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e5d69e;
    border-radius: 12px;
    background: #fff1c7;
    color: #222820;
  }
  .registration-intent-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .registration-intent-card strong { grid-column: 2; grid-row: 1; font-size: 15px; }
  .registration-intent-card .registration-intent-description {
    grid-column: 2;
    grid-row: 2;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
  }
  .registration-intent-card[aria-pressed="true"] { border-color: #dca900; background: var(--brand-soft); box-shadow: inset 0 0 0 1px #dca900; }
  .registration-intent-card[aria-pressed="true"] .registration-intent-icon { border-color: #d3a12c; background: #ffe7a6; }
  .registration-intent-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
}
@layer responsive {
  @media (max-width: 680px) { .registration-intent-grid { grid-template-columns: 1fr; } .registration-intent-card { min-height: 0; } }
}


/* Professional ride options */
@layer components {
  .ride-options-panel { margin-top: 18px; }
  .ride-fare-summary { margin: 14px 0; padding: 18px; border: 0; border-radius: 16px; background: #fff3ce; }
  .ride-options { display: grid; gap: 10px; margin: 14px 0 18px; }
  .ride-option {
    display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "name fare" "purpose fare";
    align-items: center; gap: 4px 14px; width: 100%; padding: 16px 18px; text-align: left;
    border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink);
  }
  .ride-option > strong:first-child { grid-area: name; font-size: 16px; }
  .ride-option > span { grid-area: purpose; color: var(--muted); font-size: 12px; }
  .ride-option-fare { grid-area: fare; font-size: 18px; }
  .ride-option[aria-checked="true"] { border-color: #dca900; background: var(--brand-soft); box-shadow: inset 0 0 0 1px #dca900; }
  .ride-option[aria-checked="true"]::after { content: "Selected"; grid-column: 1 / -1; margin-top: 4px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .ride-option:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
  .ride-price-details { margin: 12px 0; }
  .ride-price-details summary { cursor: pointer; font-weight: 700; }
}


/* Fare negotiation guidance */
@layer components {
  .fare-negotiation-guide { margin: 16px 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
  .fare-negotiation-guide h3 { margin: 6px 0 8px; }
  .fare-negotiation-guide .review-actions { margin-top: 12px; }
}

/* Account photography is decorative; all forms keep their own opaque surfaces. */
@layer components {
  .dashboard-photo-page { background: #f8f7f3; --line: #e6e3db; --paper: #f8f7f3; --soft: #f2f0e9; }
  .dashboard-photo-page .site-header { height: 88px; border-color: #e8e5dd; }
  .dashboard-photo-page .account-shell { padding-top: 22px; }
  .dashboard-photo-page .environment-note { color: #76756e; }
  .dashboard-photo-page .auth-layout { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: stretch; gap: 24px; max-width: 1240px; padding-top: 28px; }
  .dashboard-photo-page .auth-photo { position: relative; isolation: isolate; overflow: hidden; min-height: 690px; padding: 46px 42px 108px; display: flex; align-items: end; border-radius: 28px; background: #202a29; color: #fff; }
  .dashboard-photo-page .auth-photo > .page-scene { position: absolute; inset: 0; --scene-image-position: 64% center; --scene-gradient: linear-gradient(180deg, #15222226 0%, #15222266 30%, #12201cde 70%, #12201cf2 100%); --scene-controls-right: 24px; --scene-controls-bottom: 24px; }
  .dashboard-photo-page .auth-photo-copy { position: relative; z-index: 1; min-width: 0; }
  .dashboard-photo-page .auth-photo-copy > .eyebrow { color: #ffe2a0; font-size: 10px; letter-spacing: .16em; }
  .dashboard-photo-page .auth-intro h1 { max-width: 520px; margin: 22px 0; font-size: clamp(44px, 4.9vw, 72px); line-height: 1.02; letter-spacing: -.065em; }
  .dashboard-photo-page .auth-intro h1 span { color: #ffce58; }
  .dashboard-photo-page .auth-photo-description { max-width: 400px; color: #f2f1e9; font-size: 15px; line-height: 1.7; }
  .dashboard-photo-page .auth-services { display: flex; flex-wrap: wrap; gap: 8px; margin: 23px 0 0; padding: 0; list-style: none; }
  .dashboard-photo-page .auth-services li { border: 1px solid #ffffff4d; border-radius: 30px; padding: 6px 13px; background: #10232030; color: #fff; font-size: 11px; font-weight: 600; }
  .dashboard-photo-page .auth-promise { max-width: 440px; align-items: center; gap: 13px; margin: 28px 0 20px; padding-top: 22px; border-color: #ffffff38; font-size: 12px; line-height: 1.65; color: #f0f0e8; }
  .dashboard-photo-page .auth-promise > span { min-width: 36px; height: 36px; color: #202225; }
  .dashboard-photo-page .auth-preview-note { max-width: 410px; color: #d8ded7; font-size: 10px; line-height: 1.65; }
  .dashboard-photo-page .account-card { border-radius: 20px; border-color: #e6e3db; box-shadow: 0 4px 18px #262c2603; }
  .dashboard-photo-page .auth-card { align-self: start; padding: 36px; border-radius: 24px; background: #fff; box-shadow: 0 18px 50px #252b2210; }
  .dashboard-photo-page .auth-card h2 { font-size: 34px; letter-spacing: -.055em; }
  .dashboard-photo-page .auth-card > .supporting-copy { margin-top: 12px; }
  .dashboard-photo-page .auth-mode { padding: 5px; border: 1px solid #e9e6df; border-radius: 12px; background: #f5f4ef; }
  .dashboard-photo-page .auth-mode button { min-height: 44px; border-radius: 8px; }
  .dashboard-photo-page .auth-mode button[aria-pressed="true"] { box-shadow: 0 2px 6px #533c0010; }
  .dashboard-photo-page .stack-form input:not([type="checkbox"]), .dashboard-photo-page .stack-form select, .dashboard-photo-page .stack-form textarea { border-radius: 10px; border-color: #dcded6; background: #fff; }
  .dashboard-photo-page .stack-form input:not([type="checkbox"]):focus, .dashboard-photo-page .stack-form select:focus, .dashboard-photo-page .stack-form textarea:focus { border-color: #bd8b00; }
  .dashboard-photo-page .stack-form label { font-size: 12px; color: #414740; }
  .dashboard-photo-page .button { border-radius: 10px; }
  .dashboard-photo-page .auth-card .registration-intent-grid { grid-template-columns: 1fr; gap: 8px; }
  .dashboard-photo-page .auth-card .registration-intent-card { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; row-gap: 3px; align-content: center; min-height: 78px; border-radius: 12px; background: #faf9f5; }
  .dashboard-photo-page .auth-card .registration-intent-card strong { font-size: 13px; }
  .dashboard-photo-page .auth-card .registration-intent-card[aria-pressed="true"] { background: #fff7df; }
  .dashboard-photo-page .dashboard-photo-heading { position: relative; isolation: isolate; overflow: hidden; min-height: 224px; align-items: center; padding: 30px 32px 68px; margin: 24px 0; border-radius: 22px; background: #202a29; color: #fff; }
  .dashboard-photo-page .dashboard-photo-heading > .page-scene { position: absolute; inset: 0; --scene-image-position: 66% 53%; --scene-gradient: linear-gradient(90deg, #13201ced, #182721bc 45%, #1d302643 100%); --scene-controls-right: 24px; --scene-controls-bottom: 18px; }
  .dashboard-photo-page .dashboard-heading-copy { position: relative; z-index: 1; min-width: 0; max-width: 720px; padding-right: 40px; }
  .dashboard-photo-page .dashboard-heading .eyebrow { color: #ffdc8a; }
  .dashboard-photo-page .dashboard-heading h1 { margin-top: 12px; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.1; letter-spacing: -.05em; text-wrap: balance; }
  .dashboard-photo-page .dashboard-heading .supporting-copy { max-width: 640px; margin-top: 12px; color: #f0f2e9; font-size: 13px; line-height: 1.6; }
  .dashboard-photo-page .dashboard-photo-heading .refresh-controls { position: relative; z-index: 1; align-self: start; flex-direction: column-reverse; align-items: end; gap: 7px; }
  .dashboard-photo-page .dashboard-photo-heading #sync-status { color: #fff; font-size: 10px; }
  .dashboard-photo-page .dashboard-photo-heading #refresh { color: #fff; background: #16241a80; border-color: #ffffff75; min-height: 40px; }
  .dashboard-photo-page .dashboard-photo-heading #refresh:hover { background: #314333; }
  .dashboard-photo-page .dashboard-photo-heading #refresh:focus-visible { outline-color: #ffdb7f; }
  .dashboard-photo-page .dashboard-photo-heading #refresh:disabled { color: #eee; background: #374338; opacity: .7; }
  .dashboard-photo-page #dashboard > .account-card { margin-bottom: 22px; }
  .dashboard-photo-page .account-modes { padding: 24px 28px; }
  .dashboard-photo-page .account-modes .card-topline { margin-bottom: 14px; }
  .dashboard-photo-page .account-modes .card-topline h2 { font-size: 24px; }
  .dashboard-photo-page .account-shortcuts { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 12px 0 16px; margin-bottom: 12px; border-block: 1px solid #eeece5; }
  .dashboard-photo-page .account-shortcuts .text-link { font-size: 11px; color: #515950; }
  .dashboard-photo-page .account-modes > .review-actions { margin-top: 18px; }
  .dashboard-photo-page .account-modes > .small-note { font-size: 11px; }
  .dashboard-photo-page #vehicle-categories-panel > h2, .dashboard-photo-page #passenger-panel > h2, .dashboard-photo-page #ride-destination-panel > h2 { margin-top: 8px; }
  .dashboard-photo-page #vehicle-categories-panel > .auth-mode { max-width: 480px; margin: 22px 0 14px; }
  .dashboard-photo-page #passenger-panel { border-left: 3px solid #e3ba51; }
  .dashboard-photo-page #ride-destination-panel { border-color: #dfd3ac; box-shadow: 0 8px 24px #5b4b1905; }
  .dashboard-photo-page .ride-workspace .account-card > .eyebrow, .dashboard-photo-page .dashboard-sidebar .eyebrow { color: #7d642f; }
  .dashboard-photo-page .request-row { border-radius: 12px; padding: 18px; }
  .dashboard-photo-page .fare-display { border-radius: 14px; background: #fff7df; }
  .dashboard-photo-page .account-footer { margin-top: 12px; }
}
@layer responsive {
  @media (max-width: 1000px) {
    .dashboard-photo-page .auth-layout { gap: 20px; }
    .dashboard-photo-page .auth-photo { padding-inline: 28px; }
    .dashboard-photo-page .auth-card { padding: 28px; }
    .dashboard-photo-page .dashboard-heading-copy { padding-right: 10px; }
  }
  @media (max-width: 800px) {
    .dashboard-photo-page .auth-layout { grid-template-columns: 1fr; max-width: 640px; padding-top: 22px; }
    .dashboard-photo-page .auth-photo { min-height: 440px; padding: 30px 30px 88px; border-radius: 22px; }
    .dashboard-photo-page .auth-intro h1 { max-width: 500px; font-size: clamp(38px, 6.5vw, 54px); margin: 18px 0; }
    .dashboard-photo-page .auth-intro h1 br { display: none; }
    .dashboard-photo-page .auth-photo-description { font-size: 14px; }
    .dashboard-photo-page .auth-promise { margin: 22px 0 16px; }
    .dashboard-photo-page .auth-services { margin-top: 18px; }
    .dashboard-photo-page .auth-card { width: 100%; padding: 30px; }
    .dashboard-photo-page .dashboard-photo-heading { flex-direction: row; align-items: start; min-height: 220px; padding: 25px 26px 76px; }
    .dashboard-photo-page .dashboard-photo-heading .refresh-controls { flex-direction: column-reverse; }
    .dashboard-photo-page .dashboard-heading h1 { font-size: 32px; }
    .dashboard-photo-page .account-shortcuts { column-gap: 18px; }
  }
  @media (max-width: 580px) {
    .dashboard-photo-page .site-header { min-height: 82px; height: auto; padding-block: 16px; align-items: start; gap: 12px; }
    .dashboard-photo-page .account-header-actions { flex-wrap: wrap; justify-content: end; gap: 4px 12px; max-width: 145px; }
    .dashboard-photo-page .account-header-actions > a { display: inline-flex; font-size: 10px; min-height: 28px; }
    .dashboard-photo-page .account-header-actions .button { padding: 8px 12px; min-height: 34px; }
    .dashboard-photo-page .brand { font-size: 25px; }
    .dashboard-photo-page .brand-mark { width: 40px; height: 30px; }
    .dashboard-photo-page .account-shell { padding-top: 16px; }
    .dashboard-photo-page .environment-note { flex-wrap: wrap; font-size: 8px; line-height: 1.6; }
    .dashboard-photo-page .auth-photo { min-height: 420px; padding: 26px 24px 88px; }
    .dashboard-photo-page .auth-intro h1 { font-size: 40px; }
    .dashboard-photo-page .auth-photo-description { font-size: 13px; }
    .dashboard-photo-page .auth-promise { font-size: 11px; gap: 11px; }
    .dashboard-photo-page .auth-preview-note { font-size: 10px; }
    .dashboard-photo-page .auth-card { padding: 24px; border-radius: 20px; }
    .dashboard-photo-page .auth-card h2 { font-size: 30px; }
    .dashboard-photo-page .auth-card .registration-intent-card { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; min-height: 74px; }
    .dashboard-photo-page .account-card { padding: 22px; }
    .dashboard-photo-page .dashboard-photo-heading { flex-wrap: wrap; gap: 16px; min-height: 236px; padding: 24px 22px 76px; margin-block: 20px; }
    .dashboard-photo-page .dashboard-heading-copy { max-width: none; padding-right: 0; }
    .dashboard-photo-page .dashboard-heading h1 { font-size: 30px; }
    .dashboard-photo-page .dashboard-heading .supporting-copy { font-size: 12px; line-height: 1.55; }
    .dashboard-photo-page .dashboard-photo-heading .refresh-controls { flex-direction: row; align-items: center; gap: 10px; }
    .dashboard-photo-page .dashboard-photo-heading #refresh { min-height: 34px; padding: 8px 12px; }
    .dashboard-photo-page .account-modes .card-topline { flex-wrap: wrap; align-items: start; }
    .dashboard-photo-page .account-modes .card-topline h2 { font-size: 23px; }
    .dashboard-photo-page .account-shortcuts { display: grid; gap: 8px; }
    .dashboard-photo-page .account-shortcuts .text-link { width: fit-content; max-width: 100%; font-size: 11px; }
    .dashboard-photo-page .review-actions { flex-wrap: wrap; }
    .dashboard-photo-page .dashboard-layout { gap: 20px; }
    .dashboard-photo-page .request-row { padding: 14px; }
  }
}

/* Keep Google as the secondary sign-in option below the primary Taxi Ai action. */
.google-auth-below { margin-top: 20px; }
.google-auth-below .auth-divider { margin: 0 0 18px; }
.google-auth-below .google-button { margin-top: 0; }
.google-auth-note { margin: 12px 0 0; text-align: center; }

/* Private in-app payment reminder; financial details never enter push payloads. */
.kemmy-payment-dialog{width:min(560px,calc(100vw - 32px));max-height:85vh;overflow:auto;border:1px solid #dfe3dc;border-radius:22px;padding:24px;background:#fff;color:#17201b;box-shadow:0 16px 64px #0004}.kemmy-payment-dialog::backdrop{background:#0009}.kemmy-payment-dialog h2{margin-top:0}.kemmy-payment-dialog p{line-height:1.55}.kemmy-payment-dialog button{font:inherit;border-radius:12px;min-height:46px;padding:10px 14px;margin:6px 6px 0 0;cursor:pointer}.kemmy-payment-dialog button:disabled{opacity:.5;cursor:default}#kemmy-payment-continue{background:#f4bd27}#kemmy-payment-error{color:#862a19}

/* Kemmy cancellation review is account-scoped and always dismissible. */
.cancellation-review-dialog[hidden]{display:none!important}
.cancellation-review-dialog{position:fixed;z-index:3000;inset:0;background:rgba(0,0,0,.65);display:flex;
 align-items:center;justify-content:center;padding:1rem;overflow-y:auto}
.cancellation-review-content{background:#fff;color:#142922;border-radius:18px;padding:1.5rem;max-width:34rem;
 width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 24px 70px rgba(0,0,0,.28)}
.cancellation-review-content button{cursor:pointer;margin:.4rem;border:1px solid #767676;padding:.7rem 1rem;border-radius:9px}
.cancellation-review-content button:focus-visible{outline:3px solid #11694b}
.cancellation-review-content textarea{display:block;width:100%;min-height:6rem;margin:.7rem 0}

/* Prominent but honest emergency controls; reports are not emergency dispatch. */
.safety-urgent-controls{padding:1rem;border:2px solid #e7b548;border-radius:12px;margin:1rem 0}.safety-urgent-controls .button{margin:.25rem}.safety-urgent-controls p{margin:.4rem 0}#trip-risk-warnings{border-left:4px solid #d8a037;margin:1rem 0;padding:1rem}

/* Explicit, private residential check within signed-in driver Work profile. */
#driver-residence-panel{border-top:1px solid var(--border,#d9dbd3);margin-top:1.2rem;padding-top:1rem}
#driver-residence-panel[hidden]{display:none}
#driver-residence-panel label{display:block;font-size:.9rem;margin:.75rem 0}
#driver-residence-panel input:not([type=checkbox]){display:block;width:100%;min-height:42px;padding:.6rem;border:1px solid #979f98;border-radius:8px}
#driver-residence-panel button{margin:.3rem .3rem .3rem 0}

/* Kemmy Trip Guardian — opt-in passenger reports, not automated enforcement. */
@layer components {
  .trip-integrity-card {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e8d8a3;
    border-radius: 16px;
    background: #fffaf0;
    color: var(--ink);
  }
  .trip-integrity-card h3 { margin: 5px 0 9px; font-size: 19px; }
  .trip-integrity-card h4 { margin: 3px 0 8px; font-size: 16px; }
  .trip-integrity-section {
    display: grid;
    gap: 12px;
    margin-top: 13px;
    padding: 15px;
    border: 1px solid #e5e2d5;
    border-radius: 12px;
    background: #fff;
  }
  .trip-integrity-section .trip-integrity-field,
  .trip-integrity-section label { display: grid; gap: 5px; font-size: 13px; }
  .trip-integrity-section label select,
  .trip-integrity-section label textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border: 1px solid #a3aa9f;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
  }
  .trip-integrity-section .trip-integrity-consent {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    line-height: 1.55;
  }
  .trip-integrity-consent input { margin-top: 4px; flex-shrink: 0; }
  .trip-integrity-saved { font-size: 13px; color: #225a3f; font-weight: 650; }
  .trip-integrity-card .error-text { max-width: 58ch; }
}

/* Guest-booked rides: show pickup directly after guest identity, before destination. */
@layer components {
  #passenger-panel #ride-guest-pickup {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  #passenger-panel #ride-guest-pickup-title {
    margin: 0 0 10px;
    font-size: clamp(19px, 2.5vw, 26px);
    letter-spacing: -.025em;
  }
  #passenger-panel #ride-guest-pickup .location-results { margin-top: 10px; }
}
@layer responsive {
  @media (max-width: 580px) {
    #passenger-panel #ride-guest-pickup .location-input-row {
      display: grid;
      grid-template-columns: 1fr;
    }
    #passenger-panel #ride-guest-pickup .location-input-row .button { width: 100%; }
  }
}

/* Guest pickup is controlled by the passenger selection, not the 1-second
   route-planner tick. A narrow CSS fallback prevents stale hidden attributes
   from concealing the pickup field while Someone else is selected.
   Modern Chrome, Firefox, and Safari all support :has(). */
@layer reset {
  #passenger-panel:has(#passenger-kind option[value="guest"]:checked) #ride-guest-pickup {
    display: block !important;
  }
  #passenger-panel:has(#passenger-kind option[value="self"]:checked) #ride-guest-pickup {
    display: none !important;
  }
}

/* Accessible, per-booking Kemmy agreement. Native dialog traps focus and supports Escape. */
.kemmy-booking-dialog { box-sizing:border-box; width:min(620px,calc(100% - 32px)); max-height:calc(100dvh - 40px); overflow:auto; padding:28px; border:1px solid #e5dfce; border-radius:24px; color:#14201b; background:#fffdf7; box-shadow:0 24px 100px #101a1640; }
.kemmy-booking-dialog::backdrop { background:#101a1699; }
.kemmy-booking-dialog h2 { margin:0 0 12px; font-size:clamp(24px,4vw,32px); line-height:1.15; }
.kemmy-booking-dialog p { line-height:1.55; font-size:14px; }
.kemmy-booking-dialog .kemmy-booking-eyebrow { color:#776023; font-size:11px; font-weight:800; letter-spacing:.14em; }
.kemmy-booking-rules { display:grid; gap:12px; margin:18px 0; }
.kemmy-booking-rules section { padding:14px 16px; border-radius:14px; background:#f2f3ed; }
.kemmy-booking-rules h3 { font-size:15px; margin:0 0 5px; }
.kemmy-booking-rules p { margin:0; }
.kemmy-booking-payment { padding:14px 16px; background:#fff1bd; border-radius:14px; font-weight:700; }
.kemmy-booking-agreement { display:flex; align-items:flex-start; gap:12px; padding:16px 0; font-size:15px; font-weight:700; cursor:pointer; }
.kemmy-booking-agreement input { flex:0 0 20px; width:20px; height:20px; margin:2px 0 0; accent-color:#dba900; }
.kemmy-booking-actions { display:flex; flex-wrap:wrap; gap:12px; padding-top:8px; }
.kemmy-booking-actions button { flex:1; min-height:48px; }
@media(max-width:480px) { .kemmy-booking-dialog {padding:20px;} .kemmy-booking-actions button {flex-basis:100%;} }

.kemmy-booking-presenter { display:flex; align-items:center; gap:16px; margin:0 0 22px; }
.kemmy-booking-avatar { flex:0 0 88px; width:88px; height:88px; overflow:hidden; border:3px solid #f5be22; border-radius:50%; background:#fff0b9; box-shadow:0 4px 14px #66521812; }
.kemmy-booking-avatar img { display:block; width:100%; height:100%; object-fit:cover; transform:scale(1.35); transform-origin:50% 22%; }
.kemmy-booking-identity { display:flex; flex-direction:column; gap:3px; min-width:0; }
.kemmy-booking-identity strong { font-size:24px; line-height:1.15; }
.kemmy-booking-identity > span { font-size:14px; color:#59665d; }
.kemmy-booking-identity .kemmy-booking-eyebrow { margin-top:6px; font-size:10px; }
@media(max-width:480px) { .kemmy-booking-presenter {gap:12px;margin-bottom:18px;} .kemmy-booking-avatar {flex-basis:72px;width:72px;height:72px;} .kemmy-booking-identity strong {font-size:22px;} }
