:root {
  color-scheme: light;
  --brand: #0f9f91;
  --brand-dark: #08736a;
  --brand-soft: #d9f5eb;
  --champagne: #f6eedf;
  --champagne-light: #fcf8f0;
  --ink: #13201f;
  --muted: #667370;
  --line: rgba(19, 32, 31, 0.11);
  --danger: #b83a48;
  --danger-soft: #fff0f1;
  --success: #16795b;
  --shadow: 0 18px 50px rgba(44, 50, 46, 0.09);
  --keyboard-inset: 0px;
  --font: "Arial Rounded MT Bold", "SF Pro Rounded", "Avenir Next", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.qelway-courier-icon { color: #078f84; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.qelway-courier-icon .courier-helmet,
.courier-helmet { fill: currentColor; stroke: none; }
.qelway-courier-icon .courier-solid,
.courier-solid { fill: currentColor; stroke: none; }
.qelway-courier-icon .courier-visor,
.courier-visor { fill: none; stroke: rgba(255,255,255,.92); stroke-width: .8; }
.qelway-courier-icon .courier-speed-lines,
.courier-speed-lines { opacity: .56; }

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--champagne); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--champagne); font-family: var(--font); }
body.admin-portal { background: #e9f3f0; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; }
[hidden] { display: none !important; }

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(15,159,145,.28);
  outline-offset: 2px;
}
button:active { transform: scale(.985); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 12px; transform: translateY(-150%); padding: 10px 14px; border-radius: 6px; color: #fff; background: var(--ink); text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

.app { min-height: 100vh; padding-bottom: env(safe-area-inset-bottom); }
.topbar { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 10px max(18px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); background: rgba(246, 238, 223, 0.9); backdrop-filter: blur(20px); }
.brand { display: inline-flex; align-items: center; gap: 9px; min-width: 150px; min-height: 48px; color: var(--ink); text-decoration: none; }
.brand-name { font-size: 25px; font-weight: 950; letter-spacing: 0; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.connection { padding: 7px 9px; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.46); font-family: system-ui, sans-serif; font-size: 11px; font-weight: 750; }
.connection.online { color: var(--success); background: rgba(217,245,235,.85); }
.connection.offline { color: var(--danger); background: var(--danger-soft); }
.language-label select { min-width: 42px; min-height: 32px; border: 0; color: var(--ink); background: transparent; padding: 0; font-size: 12px; font-weight: 850; }

.screen { width: min(100%, 1120px); min-height: calc(100vh - 72px); margin: 0 auto; }
.boot-screen { display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; }
.boot-screen p { margin: 0; color: var(--muted); }
.brand-loader { display: block; width: 74px; height: 74px; object-fit: contain; filter: saturate(1.12) contrast(1.05) brightness(.9); animation: brand-breathe 1.8s ease-in-out infinite; }
@keyframes brand-breathe { 50% { transform: translateY(-3px) scale(1.035); filter: drop-shadow(0 9px 10px rgba(15,159,145,.18)); } }

.auth-screen { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr); gap: clamp(28px, 7vw, 90px); align-items: center; padding: 48px 28px 80px; }
.auth-intro { max-width: 580px; }
.auth-mark { display: block; width: 72px; height: 72px; margin: 10px 0 28px 8px; object-fit: contain; }
.auth-intro h1 { max-width: 560px; margin: 8px 0 18px; font-size: clamp(38px, 6vw, 68px); line-height: 1.02; }
.auth-intro > p:last-child { max-width: 540px; margin: 0; color: var(--muted); font: 500 18px/1.6 system-ui, sans-serif; }
.eyebrow, .form-kicker { margin: 0 0 6px; color: var(--brand-dark); font-family: system-ui, sans-serif; font-size: 12px; font-weight: 850; text-transform: uppercase; }
.glass-panel { border: 1px solid rgba(255,255,255,.72); border-radius: 8px; background: rgba(252,248,240,.78); box-shadow: var(--shadow); backdrop-filter: blur(22px); }
.auth-panel { padding: 22px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 24px; padding: 4px; border-radius: 7px; background: rgba(19,32,31,.06); }
.segment { min-height: 42px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 850; }
.segment.active { color: var(--brand-dark); background: var(--champagne-light); box-shadow: 0 2px 8px rgba(19,32,31,.08); }
.form-stack { display: grid; gap: 16px; }
.form-stack h2 { margin: 0; font-size: 28px; }
.form-stack label { display: grid; gap: 7px; color: var(--ink); font-family: system-ui, sans-serif; font-size: 13px; font-weight: 750; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: var(--ink); background: rgba(255,255,255,.72); padding: 14px 15px; font-family: system-ui, sans-serif; font-size: 16px; transition: border-color .16s, box-shadow .16s; }
select { border: 1px solid var(--line); border-radius: 7px; outline: 0; color: var(--ink); background: rgba(255,255,255,.72); padding: 12px 13px; }
textarea { resize: vertical; min-height: 112px; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15,159,145,.13); }
.primary-button, .secondary-button { min-height: 50px; border-radius: 7px; padding: 0 18px; cursor: pointer; font-weight: 900; }
.primary-button { border: 1px solid var(--brand-dark); color: #fff; background: var(--brand-dark); box-shadow: 0 12px 26px rgba(8,115,106,.16); }
.primary-button:hover { background: #075e57; }
.primary-button:disabled, .secondary-button:disabled { cursor: not-allowed; opacity: .55; }
.secondary-button { border: 1px solid var(--brand); color: var(--brand-dark); background: transparent; }
.text-button, .icon-button { min-width: 44px; min-height: 44px; border: 0; cursor: pointer; color: var(--brand-dark); background: transparent; font-weight: 850; }
.text-button { padding: 0 8px; }
.back-button { justify-self: start; padding: 0; }
.fine-print, .muted { margin: 0; color: var(--muted); font: 500 12px/1.5 system-ui, sans-serif; }
.dev-code { border: 1px dashed rgba(15,159,145,.4); border-radius: 7px; padding: 12px; color: var(--brand-dark); background: var(--brand-soft); font: 750 13px/1.4 system-ui, sans-serif; }
.inline-error { border: 1px solid rgba(184,58,72,.2); border-radius: 7px; padding: 11px 12px; color: var(--danger); background: var(--danger-soft); font: 650 13px/1.45 system-ui, sans-serif; }

.main-screen { padding: 28px 24px 118px; }
.view { animation: fade-up .22s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.welcome-row, .section-heading, .page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.welcome-row > div, .section-heading > div, .page-heading > div { min-width: 0; }
.welcome-row h1, .page-heading h1 { margin: 0; font-size: clamp(30px, 5vw, 46px); line-height: 1.08; }
.welcome-row h1, .page-heading h1, .section-heading h2 { overflow-wrap: anywhere; }
.profile-avatar, .large-avatar { display: grid; flex: 0 0 auto; place-items: center; border: 1px solid rgba(15,159,145,.18); border-radius: 50%; color: var(--brand-dark); background: var(--brand-soft); font-weight: 950; }
.profile-avatar { width: 54px; height: 54px; cursor: pointer; }
.large-avatar { width: 74px; height: 74px; font-size: 23px; }
.search-box { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; margin: 28px 0 34px; border: 1px solid rgba(15,159,145,.23); border-radius: 8px; padding: 0 17px; cursor: pointer; color: #47625e; background: rgba(217,245,235,.62); box-shadow: 0 12px 32px rgba(44,50,46,.06); text-align: left; animation: mint-pulse 2.8s ease-in-out infinite; }
@keyframes mint-pulse { 50% { background: rgba(196,245,221,.92); box-shadow: 0 0 0 6px rgba(15,159,145,.07); } }
.search-icon { position: relative; width: 20px; height: 20px; border: 2px solid currentColor; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; right: -6px; bottom: -3px; width: 8px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.section-block { margin-top: 28px; }
.section-block.compact { margin-top: 42px; }
.section-heading { margin-bottom: 15px; }
.section-heading h2 { margin: 0; font-size: 25px; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.46); font-size: 19px; }
.bento-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 138px; gap: 12px; }
.category-card { display: grid; align-content: space-between; min-width: 0; border: 1px solid rgba(255,255,255,.68); border-radius: 8px; padding: 16px; cursor: pointer; text-align: left; background: rgba(252,248,240,.74); box-shadow: 0 10px 30px rgba(44,50,46,.055); transition: transform .18s, box-shadow .18s; }
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.category-card:nth-child(1), .category-card:nth-child(6) { grid-column: span 2; background: rgba(211,235,242,.66); }
.category-card:nth-child(2), .category-card:nth-child(7) { background: rgba(238,218,224,.6); }
.category-card:nth-child(3), .category-card:nth-child(8) { background: rgba(214,238,205,.66); }
.category-card:nth-child(4) { background: rgba(247,228,177,.58); }
.category-card-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 7px; color: var(--brand-dark); background: rgba(255,255,255,.55); font-size: 20px; }
.category-card strong { overflow-wrap: anywhere; font-size: 17px; }
.category-card small { display: block; margin-top: 4px; color: var(--muted); font: 650 11px/1.35 system-ui, sans-serif; }
.provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.provider-grid-full { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.provider-card { position: relative; display: grid; min-width: 0; min-height: 245px; border: 1px solid rgba(255,255,255,.74); border-radius: 8px; padding: 16px; cursor: pointer; color: var(--ink); background: rgba(252,248,240,.76); box-shadow: 0 10px 30px rgba(44,50,46,.055); text-align: left; transition: transform .18s, box-shadow .18s; }
.provider-card:nth-child(3n + 1) { background: rgba(217,245,235,.58); }
.provider-card:nth-child(3n + 2) { background: rgba(211,235,242,.56); }
.provider-card:nth-child(3n + 3) { background: rgba(247,228,177,.43); }
.provider-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.provider-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.provider-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(15,159,145,.18); border-radius: 50%; color: var(--brand-dark); background: rgba(255,255,255,.66); font-size: 17px; font-weight: 950; }
.provider-avatar-large { width: 88px; height: 88px; font-size: 26px; }
.provider-state { border-radius: 999px; padding: 6px 8px; color: var(--muted); background: rgba(255,255,255,.58); font: 750 10px/1.2 system-ui, sans-serif; }
.provider-state.available { color: var(--success); background: rgba(217,245,235,.9); }
.provider-card-copy { display: grid; align-content: start; gap: 6px; margin-top: 14px; }
.provider-card-copy strong { overflow-wrap: anywhere; font-size: 18px; }
.provider-rating { color: #7f6417; font: 750 12px/1.4 system-ui, sans-serif; }
.provider-location { margin: 0; color: var(--muted); font: 550 12px/1.4 system-ui, sans-serif; }
.provider-tags, .tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.provider-tags span, .tag-row span { border-radius: 999px; padding: 5px 7px; color: var(--brand-dark); background: rgba(255,255,255,.58); font: 800 10px/1 system-ui, sans-serif; }
.provider-card-price { align-self: end; margin-top: 13px; color: var(--ink); font: 850 13px/1.3 system-ui, sans-serif; }
.provider-empty { grid-column: 1 / -1; }
.provider-detail { display: grid; gap: 22px; width: min(100%, 720px); padding: 24px; }
.provider-detail-hero { display: flex; align-items: center; gap: 18px; }
.provider-bio { margin: 0; color: var(--ink); font: 550 15px/1.65 system-ui, sans-serif; }
.provider-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.provider-facts > div { border: 1px solid var(--line); border-radius: 7px; padding: 13px; background: rgba(255,255,255,.38); }
.provider-facts dt { color: var(--muted); font: 700 11px/1.3 system-ui, sans-serif; }
.provider-facts dd { margin: 5px 0 0; font: 800 13px/1.4 system-ui, sans-serif; }
.match-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px; }
.match-summary h2 { margin: 0 0 5px; font-size: 21px; }
.match-summary p { margin: 0; color: var(--muted); font: 550 13px/1.45 system-ui, sans-serif; }
.match-pulse { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(217,245,235,.9); }
.match-pulse span { width: 15px; height: 15px; border: 4px solid var(--brand); border-radius: 50%; animation: match-ring 1.6s ease-out infinite; }
@keyframes match-ring { 70%, 100% { box-shadow: 0 0 0 13px rgba(15,159,145,0); } 0% { box-shadow: 0 0 0 0 rgba(15,159,145,.35); } }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.offer-card { display: grid; align-content: space-between; gap: 16px; min-height: 255px; border: 1px solid rgba(255,255,255,.75); border-radius: 8px; padding: 18px; background: rgba(252,248,240,.78); box-shadow: 0 10px 30px rgba(44,50,46,.055); }
.offer-card-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.offer-card-head h2 { margin: 0 0 5px; font-size: 18px; }
.demo-badge { align-self: start; border-radius: 999px; padding: 5px 7px; color: var(--brand-dark); background: var(--brand-soft); font: 800 9px/1 system-ui, sans-serif; text-transform: uppercase; }
.offer-message { margin: 0; color: var(--muted); font: 550 13px/1.5 system-ui, sans-serif; }
.offer-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.offer-footer strong { font-size: 20px; }
.offer-footer .primary-button { min-height: 44px; }
.match-note { margin-top: 16px; }
.order-detail-card { display: grid; gap: 20px; width: min(100%, 720px); padding: 22px; }
.order-detail-status-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.selected-provider-block { display: grid; gap: 16px; border: 1px solid rgba(15,159,145,.17); border-radius: 8px; padding: 18px; background: rgba(217,245,235,.46); }
.selected-provider-block .eyebrow { margin: 0; }
.selected-provider-hero { display: flex; align-items: center; gap: 16px; }
.selected-provider-hero h2 { margin: 0 0 6px; font-size: 23px; }
.selected-provider-block .secondary-button { width: 100%; }
.next-step-panel { border-left: 3px solid var(--brand); padding: 12px 14px; background: rgba(255,255,255,.36); }
.next-step-panel p { margin: 5px 0 0; color: var(--muted); font: 550 13px/1.55 system-ui, sans-serif; }
.order-price-panel { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid rgba(15,159,145,.18); border-radius: 8px; padding: 16px; background: rgba(255,255,255,.42); }
.order-price-panel span { color: var(--muted); font: 700 12px system-ui, sans-serif; }
.order-price-panel strong { font-size: 24px; }
.review-form { display: grid; gap: 15px; border-top: 1px solid var(--line); padding-top: 18px; }
.review-form label { display: grid; gap: 7px; font: 750 12px system-ui, sans-serif; }
.review-form select { width: 100%; font-size: 15px; }
.completed-panel { border: 1px solid rgba(22,121,91,.2); border-radius: 8px; padding: 18px; color: var(--success); background: rgba(217,245,235,.62); }
.completed-panel strong { font-size: 20px; }
.completed-panel p { margin: 6px 0 0; color: var(--muted); font: 550 13px/1.5 system-ui, sans-serif; }
.skeleton { border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.34), rgba(255,255,255,.78), rgba(255,255,255,.34)); background-size: 220% 100%; animation: skeleton 1.2s linear infinite; }
@keyframes skeleton { to { background-position: -220% 0; } }
.list-stack { display: grid; gap: 10px; }
.list-item, .order-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 15px; color: var(--ink); background: rgba(252,248,240,.72); text-align: left; }
.order-item { cursor: pointer; }
.order-provider-mini { display: flex; align-items: center; gap: 9px; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 11px; }
.order-provider-mini-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--brand-dark); background: var(--brand-soft); font-size: 11px; font-weight: 900; }
.order-provider-mini strong, .order-provider-mini small { display: block; }
.order-provider-mini small { margin-top: 3px; color: var(--muted); font: 650 10px/1.3 system-ui, sans-serif; }
.orders-section { margin-top: 30px; }
.orders-section-open { margin-top: 0; }
.orders-section .section-heading { margin-bottom: 12px; }
.count-pill { display: grid; place-items: center; min-width: 32px; min-height: 28px; border-radius: 999px; padding: 4px 9px; color: var(--brand-dark); background: rgba(217,245,235,.84); font: 800 11px/1 system-ui, sans-serif; }
.order-item-open { border-color: rgba(15,159,145,.2); background: rgba(236,249,244,.78); box-shadow: 0 8px 24px rgba(15,159,145,.055); }
.orders-empty { border: 1px dashed rgba(19,32,31,.14); border-radius: 8px; padding: 17px; background: rgba(252,248,240,.48); }
.orders-empty strong { display: block; font-size: 14px; }
.orders-empty p { margin: 5px 0 0; color: var(--muted); font: 500 12px/1.5 system-ui, sans-serif; }
.list-item button { border: 0; cursor: pointer; text-align: left; background: transparent; }
.list-item h3, .order-item h3 { margin: 0; font-size: 16px; }
.list-item p, .order-item p { margin: 5px 0 0; color: var(--muted); font: 500 13px/1.45 system-ui, sans-serif; }
.status-chip { justify-self: end; border-radius: 999px; padding: 6px 9px; color: var(--brand-dark); background: var(--brand-soft); font: 750 11px system-ui, sans-serif; }
.page-heading { justify-content: flex-start; margin-bottom: 26px; }
.search-input-wrap { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 0 15px; background: rgba(255,255,255,.55); }
.search-input-wrap input { border: 0; box-shadow: none; background: transparent; padding-left: 0; }
.client-location-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 10px 0 18px; padding: 12px 14px; }
.client-location-bar span { display: grid; gap: 3px; }
.client-location-bar small { color: var(--muted); font: 650 10px/1.2 system-ui, sans-serif; }
.client-location-bar strong { font-size: 13px; }
.client-location-bar .secondary-button { min-height: 38px; padding: 0 12px; font-size: 11px; }
.client-location-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.client-location-manual { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px; margin: -8px 0 18px; padding: 13px; }
.client-location-manual label { grid-column: 1 / -1; color: var(--muted); font-size: 11px; font-weight: 750; }
.client-location-manual select { min-width: 0; min-height: 44px; border: 1px solid rgba(16,64,62,.14); border-radius: 999px; padding: 0 14px; color: var(--ink); background: rgba(255,255,255,.56); }
.client-location-manual .primary-button { min-height: 44px; border-radius: 999px; }
.client-location-manual p { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.account-form { display: grid; gap: 14px; padding: 18px; margin-bottom: 16px; }
.account-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.account-form input, .account-form select, .account-form textarea { width: 100%; border: 1px solid rgba(16,64,62,.13); border-radius: 8px; padding: 13px; background: rgba(255,253,246,.72); color: var(--ink); font: inherit; }
.account-form textarea { min-height: 108px; resize: vertical; }
.status-panel { padding: 18px; margin-bottom: 16px; }
.status-panel strong { display: block; font-size: 17px; }
.status-panel p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.operations-section { padding: 18px; margin-top: 14px; }
.operations-list { display: grid; gap: 10px; }
.operation-item { padding: 14px; border: 1px solid rgba(16,64,62,.1); border-radius: 8px; background: rgba(255,253,246,.58); }
.operation-item strong, .operation-item span { display: block; }
.operation-item small { display: block; margin-top: 5px; color: var(--muted); }
.admin-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.admin-metrics article { padding: 16px; border-radius: 8px; background: rgba(217,245,235,.72); }
.admin-metrics strong { display: block; margin-top: 6px; font-size: 23px; }
.infrastructure-section { overflow: hidden; }
.infrastructure-summary { max-width: 650px; margin: -2px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.infrastructure-refresh { min-height: 38px; padding: 0 14px; border: 1px solid rgba(9,139,129,.22); border-radius: 999px; background: rgba(255,255,255,.3); }
.infrastructure-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.infrastructure-card { display: grid; align-content: start; gap: 8px; min-height: 164px; padding: 15px; border: 1px solid rgba(9,139,129,.2); border-radius: 8px; background: linear-gradient(145deg,rgba(255,255,255,.42),rgba(222,248,241,.2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.55); }
.infrastructure-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.infrastructure-card-heading strong { font-size: 13px; line-height: 1.25; }
.infrastructure-badge { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; color: #0a685f; background: rgba(167,232,216,.46); font-size: 9px; font-weight: 850; }
.infrastructure-card > b { margin-top: 8px; color: var(--ink); font-size: 20px; line-height: 1.1; }
.infrastructure-card p { margin: 0; color: #334b47; font-size: 11px; line-height: 1.4; }
.infrastructure-card small { align-self: end; color: var(--muted); font-size: 9px; line-height: 1.4; }
.infrastructure-warning { border-color: rgba(185,135,34,.3); background: linear-gradient(145deg,rgba(255,255,255,.42),rgba(246,225,175,.24)); }
.infrastructure-warning .infrastructure-badge { color: #785609; background: rgba(246,214,139,.58); }
.infrastructure-loading { opacity: .72; }
@media (max-width: 680px) { .infrastructure-grid { grid-template-columns: 1fr; } .infrastructure-card { min-height: 142px; } }
.admin-queue-form { display:grid; gap:10px; margin-top:14px; padding-top:14px; border-top:1px solid rgba(15,118,110,.16); }
.admin-queue-form label { display:grid; gap:6px; color:var(--muted); font-size:13px; font-weight:700; }
.admin-queue-form input, .admin-queue-form select, .admin-queue-form textarea { width:100%; min-height:42px; border:1px solid rgba(15,118,110,.2); border-radius:8px; background:rgba(255,255,255,.62); color:var(--ink); padding:10px 12px; font:inherit; }
.admin-queue-form textarea { min-height:76px; resize:vertical; }
body.admin-portal .topbar { border-bottom-color: rgba(7,105,96,.16); background: rgba(239,248,245,.9); box-shadow: 0 8px 30px rgba(11,72,65,.06); }
body.admin-portal .screen { width: min(100%, 1440px); }
body.admin-portal .main-screen { padding: 34px clamp(18px,4vw,62px) 54px; }
body.admin-portal .bottom-nav { display: none !important; }
body.admin-portal #view-admin > .page-heading { align-items: flex-end; justify-content: space-between; border-bottom: 1px solid rgba(7,105,96,.14); padding-bottom: 22px; }
body.admin-portal #view-admin > .page-heading > .icon-button { display: none; }
body.admin-portal #view-admin > .page-heading h1 { font-size: clamp(32px,4vw,48px); }
body.admin-portal #view-admin .admin-metrics { grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 14px; }
body.admin-portal #view-admin .admin-metrics article { border: 1px solid rgba(7,105,96,.16); padding: 20px; background: rgba(255,255,255,.52); box-shadow: 0 14px 34px rgba(12,67,61,.06); }
body.admin-portal #view-admin .operations-section { border-color: rgba(7,105,96,.16); padding: clamp(18px,2.5vw,28px); background: rgba(255,255,255,.5); box-shadow: 0 18px 44px rgba(12,67,61,.07); }
body.admin-portal #view-admin .infrastructure-card { min-height: 182px; background: linear-gradient(145deg,rgba(255,255,255,.78),rgba(217,245,235,.52)); }
body.admin-portal #view-admin .operations-list { grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); align-items: start; gap: 14px; }
body.admin-portal #view-admin .operation-item { height: 100%; background: rgba(255,255,255,.58); }
body.admin-portal #auth-screen { min-height: calc(100vh - 72px); }
body.admin-portal #auth-screen [data-auth-intent="register"] { display: none !important; }
@media (max-width: 720px) {
  body.admin-portal .main-screen { padding: 24px 14px 40px; }
  body.admin-portal #view-admin .operations-list { grid-template-columns: 1fr; }
  body.admin-portal #view-admin > .page-heading h1 { font-size: 31px; }
}
.form-card { width: min(100%, 680px); border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: rgba(252,248,240,.76); box-shadow: var(--shadow); }
.selected-category { min-height: 48px; border-radius: 7px; padding: 13px; color: var(--brand-dark); background: var(--brand-soft); font-weight: 850; }
.info-note { margin: 0; border-left: 3px solid var(--brand); padding: 9px 12px; color: var(--muted); background: rgba(255,255,255,.35); font: 550 12px/1.5 system-ui, sans-serif; }
.empty-state { display: grid; place-items: center; min-height: 330px; border: 1px dashed rgba(19,32,31,.17); border-radius: 8px; padding: 30px; text-align: center; background: rgba(252,248,240,.52); }
.empty-state > span { color: var(--brand); font-size: 48px; }
.empty-state h2 { margin: 10px 0 5px; }
.empty-state p { max-width: 440px; margin: 0; color: var(--muted); font: 500 14px/1.55 system-ui, sans-serif; }
.feature-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: rgba(217,245,235,.52); }
.feature-card h2 { margin: 0 0 5px; }
.feature-card p { margin: 0; color: var(--muted); font: 500 13px/1.5 system-ui, sans-serif; }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; color: #fff; background: var(--brand); font-size: 23px; }
.profile-card { display: flex; align-items: center; gap: 16px; padding: 20px; }
.profile-card h2 { margin: 0 0 5px; }
.settings-list { display: grid; gap: 8px; margin-top: 16px; }
.settings-list button { display: flex; justify-content: space-between; width: 100%; min-height: 54px; border: 1px solid var(--line); border-radius: 8px; padding: 0 16px; cursor: pointer; background: rgba(252,248,240,.72); font-weight: 800; }

.bottom-nav { position: fixed; z-index: 25; right: 0; bottom: calc(max(8px, env(safe-area-inset-bottom)) + var(--keyboard-inset)); left: 0; display: grid; grid-template-columns: repeat(5, 1fr); width: min(620px, calc(100% - 22px)); margin: 0 auto; padding: 7px; border: 1px solid rgba(255,255,255,.64); border-radius: 999px; background: rgba(255,255,255,.16); box-shadow: 0 18px 48px rgba(19,32,31,.14), inset 0 1px 0 rgba(255,255,255,.82), inset 0 -1px 0 rgba(15,105,96,.05); -webkit-backdrop-filter: blur(34px) saturate(165%); backdrop-filter: blur(34px) saturate(165%); }
.bottom-nav button { display: grid; justify-items: center; gap: 3px; min-height: 53px; border: 0; border-radius: 999px; cursor: pointer; color: var(--muted); background: transparent; font: 750 10px system-ui, sans-serif; }
.bottom-nav button.active { color: var(--brand-dark); background: transparent; }
.nav-icon { font: 850 22px/1 var(--font); }
.toast-region { position: fixed; z-index: 100; right: 16px; bottom: 92px; display: grid; gap: 8px; width: min(360px, calc(100% - 32px)); }
.toast { border: 1px solid rgba(255,255,255,.75); border-radius: 8px; padding: 12px 14px; color: #fff; background: rgba(19,32,31,.94); box-shadow: var(--shadow); font: 650 13px/1.45 system-ui, sans-serif; animation: fade-up .2s ease; }
.noscript { margin: 20px; border-radius: 8px; padding: 16px; color: var(--danger); background: var(--danger-soft); }

@media (max-width: 760px) {
  .topbar { min-height: 64px; padding-top: max(8px, env(safe-area-inset-top)); }
  .brand { min-width: 132px; min-height: 42px; }
  .brand-name { font-size: 22px; }
  .connection { display: none; }
  .screen { min-height: calc(100vh - 64px); }
  .auth-screen { grid-template-columns: 1fr; align-content: start; gap: 26px; padding: 28px 16px 60px; }
  .auth-intro { text-align: center; }
  .auth-mark { width: 64px; height: 64px; margin-right: auto; margin-left: auto; }
  .auth-intro h1 { margin-right: auto; margin-left: auto; font-size: 37px; }
  .auth-intro > p:last-child { display: none; }
  .auth-panel { padding: 17px; }
  .main-screen { padding: 22px 14px 116px; }
  .welcome-row h1, .page-heading h1 { font-size: 30px; }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 124px; }
  .provider-grid, .provider-grid-full { grid-template-columns: 1fr; }
  .provider-card { min-height: 215px; }
  .provider-facts { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .match-summary { grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; }
  .category-card:nth-child(1), .category-card:nth-child(6) { grid-column: span 1; }
  .feature-card { grid-template-columns: auto minmax(0, 1fr); }
  .feature-card .secondary-button { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.view-state-panel { margin: 10px 0 16px; border-left: 4px solid #12a895; padding: 12px 14px; }
.view-state-panel[data-state="offline"] { border-left-color: #d29b36; }
.view-state-panel[data-state="forbidden"], .view-state-panel[data-state="blocked"] { border-left-color: #c75d5d; }
.view-state-panel strong { color: #0b514a; }
.view-state-panel p { margin: 4px 0 0; color: #52706b; font-size: 13px; }
.micro-errand-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 10px; }
.bonus-payment-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid rgba(7,121,111,.14); }
.bonus-payment-row.total { border-bottom:0; color:#076b62; font-size:17px; }
.qelway-dialog { width:min(92vw,440px); border:0; padding:0; color:#123f3b; background:transparent; }
.qelway-dialog::backdrop { background:rgba(9,37,34,.36); backdrop-filter:blur(5px); }
.qelway-dialog > form { position:relative; display:grid; gap:13px; border:1px solid rgba(255,255,255,.72); border-radius:22px; padding:24px; background:rgba(244,239,224,.84); box-shadow:0 26px 70px rgba(10,55,50,.25); }
.qelway-dialog .dialog-close { position:absolute; top:10px; right:10px; }
.provider-reputation-summary { margin:10px 0 16px; border:1px solid rgba(7,121,111,.18); border-radius:14px; padding:14px; color:#174a45; background:rgba(255,255,255,.28); }
.operations-list .operation-item .flow-button-grid { margin-top:10px; }
.public-reputation-page { min-height:100vh; background:#f3eddf url('/assets/qelway-city-welcome.jpeg') center/cover fixed; }
.public-reputation-shell { display:grid; align-content:center; gap:22px; width:min(92vw,560px); min-height:100vh; margin:auto; padding:34px 0; }
.public-reputation-brand { justify-self:center; }
.public-reputation-brand img { width:170px; height:auto; }
.public-reputation-card { border:1px solid rgba(255,255,255,.78); border-radius:24px; padding:28px; background:rgba(244,239,224,.78); box-shadow:0 30px 80px rgba(12,64,58,.18); backdrop-filter:blur(22px) saturate(135%); }
.public-reputation-card h1 { margin:5px 0 8px; font-size:clamp(28px,7vw,42px); }
.public-reputation-metrics { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:22px 0; }
.public-reputation-metrics > div { border:1px solid rgba(7,121,111,.2); border-radius:15px; padding:15px; background:rgba(255,255,255,.28); }
.public-reputation-metrics strong,.public-reputation-metrics small { display:block; }
.public-reputation-metrics strong { color:#076b62; font-size:22px; }
.public-reputation-categories { display:flex; flex-wrap:wrap; gap:8px; }
.public-reputation-categories span { border-radius:999px; padding:7px 10px; color:#075e56; background:rgba(174,238,225,.55); font-size:12px; font-weight:700; }
.public-reputation-safety { margin:22px 0 0; color:#52706b; font-size:12px; }

/* Modern Bento is the active visual system. Functional layout rules above remain shared. */
:root {
  --brand: #14aa9c;
  --brand-dark: #075f59;
  --brand-soft: #d9f3ec;
  --champagne: #f3efe6;
  --champagne-light: #faf8f3;
  --ink: #102a2d;
  --muted: #687a78;
  --line: rgba(16, 42, 45, 0.1);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --success: #157762;
  --shadow: 0 16px 42px rgba(25, 55, 54, 0.08);
  --font: "SF Pro Display", "SF Pro Text", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body { background: var(--champagne); }
body { font-family: var(--font); font-weight: 500; }
.app { isolation: isolate; }
#app-content:focus { outline: 0; }
.topbar {
  min-height: 66px;
  padding: 6px max(22px, env(safe-area-inset-left));
  border-bottom: 0;
  background: rgba(243, 239, 230, 0.84);
  box-shadow: 0 1px 0 rgba(16, 42, 45, 0.06);
  backdrop-filter: blur(28px) saturate(135%);
}
.brand { min-width: 124px; min-height: 48px; gap: 0; overflow: hidden; }
.brand-home-button { border: 0; padding: 0; cursor: pointer; background: transparent; }
.brand-home-button:focus-visible { outline: 3px solid rgba(20,170,156,.28); outline-offset: 3px; border-radius: 7px; }
.brand-image { display: block; width: 126px; height: 48px; object-fit: contain; object-position: left center; filter: saturate(1.12) contrast(1.05) brightness(.9); mix-blend-mode: normal; }
.top-actions { gap: 8px; }
.header-notification-button { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(8,115,106,.12); border-radius: 50%; color: #31534c; background: rgba(252,248,240,.62); box-shadow: 0 4px 14px rgba(25,55,54,.04); backdrop-filter: blur(14px); cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.header-notification-button:hover { border-color: rgba(8,115,106,.28); background: rgba(252,248,240,.82); }
.header-notification-button:active { transform: scale(.95); }
.header-notification-button:focus-visible { outline: 3px solid rgba(15,159,145,.16); outline-offset: 2px; }
.header-notification-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-notification-button > span { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; min-width: 18px; height: 18px; border: 2px solid #f7f0e3; border-radius: 999px; padding: 0 4px; color: white; background: #0b8073; font: 800 9px/1 system-ui,sans-serif; }
.header-notification-button.has-unread svg { color: #075f59; }

/* Approved notification center: calm grouped feed with actionable unread states. */
.notification-center-view { width: min(100%,760px); margin-inline: auto; padding-bottom: 28px; }
.notification-page-heading { align-items: center; margin-bottom: 16px; }
.notification-page-heading > div { flex: 1; }
.notification-page-heading .text-button { min-width: 104px; color: #08736a; font-size: 12px; }
.notification-page-heading .text-button:disabled { cursor: default; color: #84908d; opacity: .7; }
.notification-filters { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 20px; padding: 1px 1px 5px; scrollbar-width: none; }
.notification-filters::-webkit-scrollbar { display: none; }
.notification-filters button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; min-height: 38px; border: 1px solid rgba(8,115,106,.1); border-radius: 999px; padding: 0 13px; color: #5c6d69; background: rgba(252,248,240,.56); backdrop-filter: blur(14px); cursor: pointer; font-size: 12px; font-weight: 800; }
.notification-filters button.active { border-color: #08736a; color: #fff; background: #08736a; box-shadow: 0 8px 20px rgba(8,115,106,.14); }
.notification-filters button b { display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: 999px; padding: 0 5px; color: #31534c; background: rgba(255,255,255,.66); font-size: 9px; }
.notification-filters button.active b { color: #08736a; background: rgba(255,255,255,.9); }
.notification-feed { display: grid; gap: 20px; }
.notification-day-group { overflow: hidden; border: 1px solid rgba(255,255,255,.64); border-radius: 8px; background: rgba(252,248,240,.52); box-shadow: 0 14px 38px rgba(20,58,54,.07); backdrop-filter: blur(17px) saturate(120%); }
.notification-day-group h2 { margin: 0; padding: 13px 16px 8px; color: #687874; font-size: 12px; text-transform: uppercase; }
.notification-feed-item { position: relative; display: grid; grid-template-columns: 42px minmax(0,1fr) 8px; align-items: start; gap: 12px; width: 100%; min-height: 86px; border: 0; border-top: 1px solid rgba(42,76,71,.08); padding: 14px 15px; color: #13201f; background: transparent; cursor: pointer; text-align: left; transition: background .18s ease, transform .18s ease; }
.notification-feed-item:hover { background: rgba(255,255,255,.32); }
.notification-feed-item:active { transform: none; background: rgba(217,245,235,.42); }
.notification-feed-item.unread { background: rgba(217,245,235,.36); }
.notification-feed-item.unread:hover { background: rgba(217,245,235,.55); }
.notification-type-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #08736a; background: rgba(217,245,235,.82); }
.notification-type-icon.safety { color: #7b5e0c; background: rgba(247,228,177,.58); }
.notification-type-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.notification-feed-copy { display: grid; min-width: 0; gap: 4px; }
.notification-feed-copy strong { overflow-wrap: anywhere; font-size: 14px; line-height: 1.35; }
.notification-feed-copy > span { overflow-wrap: anywhere; color: #5f706c; font: 550 12px/1.45 system-ui,sans-serif; }
.notification-feed-copy small { color: #82908d; font: 650 10px/1.3 system-ui,sans-serif; }
.notification-unread-dot { align-self: start; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #0f9f91; box-shadow: 0 0 0 4px rgba(15,159,145,.08); }
.notification-empty { display: grid; justify-items: center; gap: 8px; padding: 36px 22px; text-align: center; }
.notification-empty > span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #08736a; background: rgba(217,245,235,.72); }
.notification-empty svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notification-empty p { max-width: 360px; margin: 0; color: #667370; font: 550 12px/1.5 system-ui,sans-serif; }

@media (max-width: 600px) {
  .notification-page-heading { align-items: flex-start; gap: 10px; }
  .notification-page-heading h1 { font-size: 29px; }
  .notification-page-heading .text-button { min-width: auto; max-width: 84px; min-height: 40px; padding: 0; text-align: right; line-height: 1.25; }
  .notification-filters { margin-inline: -2px; }
  .notification-feed-item { grid-template-columns: 40px minmax(0,1fr) 8px; gap: 10px; padding: 13px 12px; }
}
.connection { border: 1px solid rgba(20, 170, 156, 0.12); border-radius: 999px; background: var(--surface); }
.language-label { position: relative; display: inline-flex; align-items: center; gap: 4px; min-width: 68px; min-height: 34px; border: 1px solid rgba(8,115,106,.12); border-radius: 999px; padding: 0 10px; cursor: pointer; background: rgba(252,248,240,.62); box-shadow: 0 4px 14px rgba(25,55,54,.04); backdrop-filter: blur(14px); }
.language-label:focus-within { border-color: rgba(8,115,106,.38); box-shadow: 0 0 0 3px rgba(15,159,145,.12); }
.language-label::after { content: ""; width: 6px; height: 6px; margin: -3px 1px 0 0; border-right: 1.5px solid #58706b; border-bottom: 1.5px solid #58706b; transform: rotate(45deg); pointer-events: none; }
.language-flag { width: 17px; font-size: 14px; line-height: 1; text-align: center; }
.language-code { color: #314743; font: 850 12px/1 system-ui, sans-serif; }
.language-label select { position: absolute; inset: 0; width: 100%; min-width: 0; min-height: 100%; cursor: pointer; appearance: auto; -webkit-appearance: menulist; border: 0; padding: 0; opacity: .001; }
.screen { width: min(100%, 1040px); min-height: calc(100vh - 66px); }
.main-screen { padding: 34px 28px 126px; }
.view { animation: modern-enter .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes modern-enter { from { opacity: 0; transform: translateY(10px) scale(.995); } to { opacity: 1; transform: translateY(0) scale(1); } }

.eyebrow, .form-kicker { margin-bottom: 7px; color: var(--brand-dark); font-size: 11px; font-weight: 780; letter-spacing: 0; text-transform: uppercase; }
.welcome-row { align-items: flex-end; padding: 2px 2px 0; }
.welcome-row h1, .page-heading h1 { max-width: 720px; font-size: clamp(32px, 4vw, 44px); font-weight: 760; line-height: 1.08; letter-spacing: 0; }
.profile-avatar, .large-avatar { border-color: rgba(20, 170, 156, 0.2); color: #064d48; background: rgba(217, 243, 236, 0.88); box-shadow: inset 0 0 0 5px rgba(255,255,255,.28); }
.profile-avatar { width: 48px; height: 48px; font-size: 14px; }

.search-box {
  min-height: 64px;
  margin: 26px 0 38px;
  border-color: rgba(20, 170, 156, 0.2);
  padding: 0 20px;
  color: #315e59;
  background: rgba(225, 247, 240, 0.78);
  box-shadow: 0 14px 34px rgba(19, 91, 83, 0.08), inset 0 0 0 1px rgba(255,255,255,.48);
  font-size: 15px;
  font-weight: 620;
  animation: search-breathe 4s ease-in-out infinite;
}
@keyframes search-breathe { 50% { border-color: rgba(20,170,156,.38); background: rgba(215,245,236,.94); box-shadow: 0 16px 38px rgba(19,91,83,.11), inset 0 0 0 1px rgba(255,255,255,.58); } }
.search-icon { width: 19px; height: 19px; border-width: 1.8px; }
.section-block { margin-top: 30px; }
.section-block.compact { margin-top: 48px; }
.section-heading { margin-bottom: 16px; }
.section-heading h2 { font-size: 24px; font-weight: 730; letter-spacing: 0; }
.text-button { padding: 8px 0; color: var(--brand-dark); font-size: 13px; }
.icon-button { width: 40px; height: 40px; border-color: rgba(16,42,45,.08); background: var(--surface); box-shadow: 0 8px 22px rgba(25,55,54,.05); }

.bento-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 112px; grid-auto-flow: dense; gap: 11px; }
.category-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(255,255,255,.62);
  padding: 15px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(25,55,54,.055), inset 0 0 0 1px rgba(16,42,45,.025);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, border-color .2s;
}
.category-card:hover { border-color: rgba(20,170,156,.22); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(25,55,54,.09); }
.category-card:nth-child(1) { grid-column: span 2; grid-row: span 2; color: #fff; background: #0d6f67; }
.category-card:nth-child(2) { background: #e4f1ed; }
.category-card:nth-child(3) { background: #f2e5e5; }
.category-card:nth-child(4) { background: #e3eef2; }
.category-card:nth-child(5) { background: #f3ebd0; }
.category-card:nth-child(6) { grid-column: span 2; background: #edf3e1; }
.category-card:nth-child(7) { background: #e9e8f2; }
.category-card:nth-child(8) { background: rgba(255,255,255,.72); }
.category-card-icon { width: 39px; height: 39px; color: #075f59; background: rgba(255,255,255,.7); }
.category-card:nth-child(1) .category-card-icon { color: #fff; background: rgba(255,255,255,.16); }
.category-card-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.category-card strong { display: block; font-size: 16px; font-weight: 720; letter-spacing: 0; }
.category-card:nth-child(1) strong { max-width: 220px; font-size: 23px; }
.category-card small { color: #61716f; font-size: 11px; font-weight: 580; }
.category-card:nth-child(1) small { color: rgba(255,255,255,.72); }

.provider-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.provider-card {
  min-height: 210px;
  border-color: rgba(16,42,45,.07);
  padding: 16px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(25,55,54,.055);
}
.provider-card:nth-child(3n + 1), .provider-card:nth-child(3n + 2), .provider-card:nth-child(3n + 3) { background: var(--surface); }
.provider-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(25,55,54,.09); }
.provider-avatar { border-color: rgba(20,170,156,.16); color: var(--brand-dark); background: rgba(217,243,236,.88); }
.provider-state { border: 1px solid rgba(16,42,45,.06); background: rgba(255,255,255,.76); }
.provider-state.available { border-color: rgba(21,119,98,.12); background: #e0f3ea; }
.provider-card-copy strong { font-size: 17px; font-weight: 730; }
.provider-rating { color: #78611f; font-weight: 650; }
.provider-tags span, .tag-row span { border: 1px solid rgba(20,170,156,.1); color: #315e59; background: rgba(230,246,241,.78); }
.provider-card-price { font-weight: 720; }

.glass-panel, .form-card, .order-detail-card, .provider-detail { border-color: rgba(16,42,45,.08); background: rgba(255,255,255,.74); box-shadow: var(--shadow); backdrop-filter: blur(28px) saturate(125%); }
.page-heading { margin-bottom: 24px; }
.form-card { padding: 22px; }
input, textarea, select { border-color: rgba(16,42,45,.1); background: rgba(255,255,255,.88); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.primary-button { border-color: #075f59; background: #075f59; box-shadow: 0 10px 24px rgba(7,95,89,.15); }
.primary-button:hover { background: #064f4a; }
.secondary-button { border-color: rgba(7,95,89,.22); background: rgba(255,255,255,.58); }
.segmented { background: rgba(16,42,45,.055); }
.segment.active { background: rgba(255,255,255,.86); }
.selected-category { background: rgba(217,243,236,.82); }
.info-note { border-left-width: 2px; background: rgba(255,255,255,.48); }
.selected-provider-block { border-color: rgba(20,170,156,.13); background: rgba(226,246,240,.58); }
.next-step-panel { border-left-width: 2px; background: rgba(255,255,255,.52); }
.order-price-panel { background: rgba(255,255,255,.62); }
.completed-panel { background: rgba(222,244,234,.74); }
.match-summary, .offer-card { border-color: rgba(16,42,45,.08); background: rgba(255,255,255,.74); }
.list-stack { gap: 9px; }
.list-item, .order-item { border-color: rgba(16,42,45,.08); background: rgba(255,255,255,.7); box-shadow: 0 8px 22px rgba(25,55,54,.04); }
.order-item { transition: transform .18s, box-shadow .18s; }
.order-item:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(25,55,54,.075); }
.status-chip { border: 1px solid rgba(20,170,156,.1); background: rgba(217,243,236,.84); }
.empty-state { border-color: rgba(16,42,45,.12); background: rgba(255,255,255,.5); }
.feature-card { border-color: rgba(20,170,156,.12); background: rgba(225,246,240,.66); }
.settings-list button { border-color: rgba(16,42,45,.08); background: rgba(255,255,255,.7); }

.bottom-nav {
  bottom: calc(max(8px, env(safe-area-inset-bottom)) + var(--keyboard-inset));
  width: min(600px, calc(100% - 20px));
  margin-bottom: 0;
  padding: 7px;
  border-color: rgba(255,255,255,.64);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  box-shadow: 0 16px 46px rgba(16,42,45,.14), inset 0 1px 0 rgba(255,255,255,.86), inset 0 -1px 0 rgba(8,115,106,.045);
  -webkit-backdrop-filter: blur(34px) saturate(165%);
  backdrop-filter: blur(34px) saturate(165%);
  transition: bottom .22s ease, box-shadow .22s ease;
}
body.keyboard-open .bottom-nav { box-shadow: 0 10px 34px rgba(8,79,71,.22), inset 0 1px 0 rgba(255,255,255,.9); }
.bottom-nav button { min-height: 54px; color: #62736f; font-size: 10px; font-weight: 650; }
.bottom-nav button.active { color: #075f59; background: transparent; box-shadow: none; }
.bottom-nav button { transition: color .18s ease, background .18s ease, transform .18s ease; }
.bottom-nav [data-route="orders"] { position: relative; }
.bottom-nav [data-route="orders"].has-open-orders::after { content: ""; position: absolute; top: 5px; right: calc(50% - 19px); width: 7px; height: 7px; border: 2px solid rgba(255,255,255,.92); border-radius: 50%; background: #12a89a; box-shadow: 0 0 0 3px rgba(18,168,154,.13); }
.nav-icon { position: relative; isolation: isolate; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid transparent; border-radius: 50%; color: #078f84; filter: drop-shadow(0 1px 1px rgba(4,83,77,.12)); transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.nav-icon svg { position: relative; z-index: 2; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.35; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav [data-route="favorites"] .nav-icon svg { fill: #079b8f; stroke: #079b8f; }
.bottom-nav button.active .nav-icon svg { stroke-width: 2.55; }
.bottom-nav button.active .nav-icon { border-color: rgba(255,255,255,.78); background: rgba(216,246,239,.66); box-shadow: 0 6px 18px rgba(11,124,113,.14), inset 0 1px 0 rgba(255,255,255,.88); transform: translateY(-1px); }
.bottom-nav button.active > span:last-child { color: #075f59; font-weight: 800; }
.bottom-nav [data-route="orders"].has-open-orders .nav-icon::before,
.bottom-nav [data-route="orders"].has-open-orders .nav-icon::after { content: ""; position: absolute; z-index: 0; inset: -3px; border: 1.5px solid rgba(16,162,148,.68); border-radius: 50%; pointer-events: none; animation: orders-wifi-wave 2.2s ease-out infinite; }
.bottom-nav [data-route="orders"].has-open-orders .nav-icon::after { animation-delay: 1.1s; }
@keyframes orders-wifi-wave { 0% { opacity: .72; transform: scale(.72); } 72%, 100% { opacity: 0; transform: scale(1.58); } }
.nav-profile-avatar { display: grid; place-items: center; width: 36px; height: 36px; overflow: hidden; border: 1.5px solid rgba(7,143,132,.48); border-radius: 50%; color: #067e75; background: rgba(217,243,236,.56); box-shadow: inset 0 0 0 2px rgba(255,255,255,.54), 0 4px 12px rgba(8,115,106,.07); font-size: 12px; font-weight: 950; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
.bottom-nav button.active .nav-profile-avatar { border-color: rgba(255,255,255,.84); background: rgba(203,244,235,.76); box-shadow: 0 6px 18px rgba(11,124,113,.16), inset 0 0 0 2px rgba(255,255,255,.72); transform: translateY(-1px); }
.nav-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.toast { border-color: rgba(255,255,255,.22); background: rgba(16,42,45,.92); box-shadow: 0 18px 44px rgba(16,42,45,.2); backdrop-filter: blur(20px); }

@media (max-width: 760px) {
  .topbar { min-height: 60px; padding: max(5px, env(safe-area-inset-top)) 14px 4px; }
  .brand { min-width: 108px; min-height: 42px; }
  .brand-image { width: 112px; height: 42px; }
  .screen { min-height: calc(100vh - 60px); }
  .main-screen { padding: 24px 13px 118px; }
  .welcome-row { align-items: center; }
  .welcome-row h1, .page-heading h1 { font-size: 30px; }
  .profile-avatar { width: 45px; height: 45px; }
  .search-box { min-height: 60px; margin: 22px 0 34px; padding: 0 17px; }
  .section-block { margin-top: 26px; }
  .section-block.compact { margin-top: 42px; }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 106px; gap: 10px; }
  .category-card { padding: 13px; }
  .category-card:nth-child(1) { grid-column: span 1; grid-row: span 2; }
  .category-card:nth-child(6) { grid-column: span 1; }
  .category-card:nth-child(1) strong { font-size: 20px; }
  .category-card strong { font-size: 15px; }
  .category-card-icon { width: 36px; height: 36px; }
  .provider-grid, .provider-grid-full { grid-template-columns: 1fr; }
  .provider-card { min-height: 188px; }
  .provider-detail, .order-detail-card, .form-card { padding: 18px; }
  .bottom-nav { width: calc(100% - 20px); }
}

@media (max-width: 390px) {
  .welcome-row h1, .page-heading h1 { font-size: 27px; }
  .section-heading h2 { font-size: 22px; }
  .category-card strong { font-size: 14px; }
  .category-card:nth-child(1) strong { font-size: 18px; }
  .bottom-nav { gap: 2px; padding-right: 4px; padding-left: 4px; }
  .bottom-nav button { min-width: 0; padding-right: 3px; padding-left: 3px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Provider discovery uses one focused, swipeable card at a time. */
.provider-grid.provider-swipe-deck,
.provider-grid-full.provider-swipe-deck {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  width: 100%;
  min-width: 0;
}
.provider-swipe-stage {
  position: relative;
  width: min(100%, 440px);
  height: 446px;
  margin: 0 auto 8px;
  touch-action: pan-y;
}
#providers-list .provider-swipe-stage {
  width: min(100%, 680px);
  height: clamp(430px, calc(100dvh - 235px), 720px);
}
#providers-list .provider-swipe-card.has-photo .swipe-provider-photo {
  object-position: center 22%;
}
.provider-swipe-card {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: 190px 1fr;
  overflow: hidden;
  border: 1px solid rgba(16,42,45,.09);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(16,42,45,.13);
  transform-origin: 50% 100%;
  transition: transform .34s cubic-bezier(.22,1,.36,1), opacity .3s ease-out, box-shadow .34s ease-out;
  touch-action: none;
  cursor: pointer;
  user-select: none;
  will-change: transform, opacity;
}
.provider-swipe-card[data-position="1"] { z-index: 2; opacity: .72; transform: translateY(13px) scale(.96); pointer-events: none; }
.provider-swipe-card[data-position="2"] { z-index: 1; opacity: .4; transform: translateY(25px) scale(.92); pointer-events: none; }
#nearby-providers .provider-swipe-card { transform-origin: 50% 50%; }
#nearby-providers .provider-swipe-card { touch-action: pan-y; }
#nearby-providers .provider-swipe-card[data-position="1"],
#nearby-providers .provider-swipe-card[data-position="2"] { visibility: hidden; opacity: 0; transform: none; filter: none; }
.provider-swipe-card.dragging { transition: none; cursor: grabbing; box-shadow: 0 18px 40px rgba(16,42,45,.11); }
.provider-swipe-card.leaving-up { opacity: .08; transform: translateY(-105%) scale(.985); }
.provider-swipe-card.leaving-down { opacity: .08; transform: translateY(105%) scale(.985); }
.provider-swipe-card.leaving-left { opacity: .08; transform: translateX(-105%) rotate(-3deg) scale(.985); }
.provider-swipe-card.leaving-right { opacity: .08; transform: translateX(105%) rotate(3deg) scale(.985); }
.provider-swipe-card.home-orbit-out { animation: home-orbit-out .52s cubic-bezier(.4,0,.2,1) both; }
.provider-swipe-card.home-orbit-in-left { animation: home-orbit-in-left .58s cubic-bezier(.16,1,.3,1) both; }
.provider-swipe-card.home-orbit-in-right { animation: home-orbit-in-right .58s cubic-bezier(.16,1,.3,1) both; }
@keyframes home-orbit-out {
  0% { opacity: 1; transform: translate(0,0) rotate(0) scale(1); }
  48% { opacity: .82; transform: translate(34%,-7%) rotate(3deg) scale(.96); }
  100% { opacity: 0; transform: translate(112%,7%) rotate(8deg) scale(.86); }
}
@keyframes home-orbit-in-left {
  0% { opacity: 0; transform: translate(-108%,7%) rotate(-8deg) scale(.86); }
  60% { opacity: .92; transform: translate(4%,-2%) rotate(1deg) scale(.985); }
  100% { opacity: 1; transform: translate(0,0) rotate(0) scale(1); }
}
@keyframes home-orbit-in-right {
  0% { opacity: 0; transform: translate(108%,7%) rotate(8deg) scale(.86); }
  60% { opacity: .92; transform: translate(-4%,-2%) rotate(-1deg) scale(.985); }
  100% { opacity: 1; transform: translate(0,0) rotate(0) scale(1); }
}
.provider-swipe-card.opening-profile { opacity: 0; transform: scale(1.025); }
.provider-swipe-card.has-photo { display: block; background: #143b38; }
.provider-swipe-card.has-photo .swipe-card-cover { position: absolute; inset: 0; height: 100%; }
.swipe-provider-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.provider-swipe-card.has-photo .swipe-card-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,37,35,.08) 35%, rgba(9,37,35,.58) 100%); pointer-events: none; }
.provider-swipe-card.has-photo .swipe-city-art,
.provider-swipe-card.has-photo .swipe-provider-avatar { display: none; }
.provider-swipe-card.has-photo .swipe-provider-count,
.provider-swipe-card.has-photo .provider-state,
.provider-swipe-card.has-photo .swipe-verified { z-index: 3; box-shadow: 0 5px 16px rgba(9,37,35,.14); }
.provider-swipe-card.has-photo .swipe-provider-count { padding: 6px 9px; border: 1px solid rgba(255,255,255,.46); border-radius: 999px; color: #143b38; background: rgba(255,250,240,.88); backdrop-filter: blur(10px); }
.provider-swipe-card.has-photo .swipe-verified { top: 50px; right: 15px; bottom: auto; padding: 6px 9px; border-radius: 999px; background: rgba(230,248,241,.9); backdrop-filter: blur(10px); }
.provider-swipe-card.has-photo .swipe-card-body { position: absolute; z-index: 4; right: 9px; bottom: 9px; left: 9px; min-height: 0; padding: 10px; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; background: rgba(255,250,240,.8); box-shadow: 0 14px 30px rgba(9,37,35,.18); backdrop-filter: blur(14px); }
.provider-swipe-card.has-photo .swipe-card-body { gap: 6px; }
.provider-swipe-card.has-photo .swipe-provider-heading { gap: 8px; }
.provider-swipe-card.has-photo .swipe-provider-heading h3 { margin-bottom: 3px; font-size: 20px; }
.provider-swipe-card.has-photo .provider-rating { margin: 0; font-size: 12px; line-height: 1.3; }
.provider-swipe-card.has-photo .swipe-provider-price { font-size: 17px; }
.provider-swipe-card.has-photo .swipe-provider-location { font-size: 11px; line-height: 1.35; }
.provider-swipe-card.has-photo .provider-tags { min-height: 21px; }
.provider-swipe-card.has-photo .provider-tags span { padding: 4px 7px; font-size: 10px; }
.provider-swipe-card.has-photo .swipe-actions { grid-template-columns: 38px 38px minmax(0, 1fr); gap: 7px; }
.provider-swipe-card.has-photo .swipe-action,
.provider-swipe-card.has-photo .swipe-choose { min-height: 38px; }
.provider-swipe-card.has-photo .swipe-choose { font-size: 12px; }
.provider-swipe-card.has-photo .swipe-hint { display: none; }
.provider-profile { display: block; width: min(100%, 780px); overflow: hidden; padding: 0; border-radius: 8px; }
.provider-profile-cover { position: relative; display: grid; place-items: center; height: clamp(310px, 54vw, 500px); overflow: hidden; color: #fff; background: #164b47; }
.provider-profile-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; animation: provider-photo-reveal .7s cubic-bezier(.22,1,.36,1) both; }
@keyframes provider-photo-reveal { from { opacity: .35; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }
.provider-profile-fallback { position: relative; z-index: 1; width: 112px; height: 112px; border-color: rgba(255,255,255,.6); color: #fff; background: rgba(255,255,255,.15); box-shadow: inset 0 0 0 7px rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.provider-profile-shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(7,32,30,.12) 28%, rgba(7,32,30,.82) 100%); }
.provider-profile-badges { position: absolute; z-index: 2; top: 15px; right: 15px; left: 15px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.provider-profile-verified,
.provider-profile-state { border: 1px solid rgba(255,255,255,.46); border-radius: 999px; padding: 7px 10px; color: #174c47; background: rgba(255,250,240,.88); box-shadow: 0 8px 24px rgba(7,32,30,.12); backdrop-filter: blur(14px); font-size: 10px; font-weight: 760; }
.provider-profile-state.available { color: #075f59; background: rgba(222,247,237,.9); }
.provider-profile-cover-meta { position: absolute; z-index: 2; right: 20px; bottom: 18px; left: 20px; }
.provider-profile-cover-meta .provider-rating { color: #fff0b7; font-size: 13px; text-shadow: 0 2px 12px rgba(0,0,0,.28); }
.provider-profile-cover-meta .provider-location { margin-top: 5px; color: rgba(255,255,255,.86); font-size: 12px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.provider-profile-body { display: grid; gap: 17px; padding: 22px; background: rgba(255,250,240,.84); }
.provider-profile .provider-bio { max-width: 650px; color: #263b39; font-size: 15px; line-height: 1.6; }
.provider-profile .provider-facts > div { border-color: rgba(16,42,45,.07); background: rgba(255,255,255,.62); box-shadow: 0 8px 22px rgba(25,55,54,.04); }
.provider-profile .provider-facts dt { text-transform: uppercase; }
.provider-profile .provider-facts dd { color: #163d39; font-size: 14px; }
.provider-profile .tag-row span { background: rgba(217,243,236,.84); }
.provider-portfolio { display: grid; gap: 12px; padding-top: 4px; }
.provider-portfolio-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.provider-portfolio-heading h2 { margin: 0; font-size: 23px; }
.portfolio-count { color: var(--muted); font-size: 12px; font-weight: 700; }
.provider-portfolio-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.provider-portfolio-gallery figure { position: relative; min-height: 150px; margin: 0; overflow: hidden; border-radius: 8px; background: #dce8e3; }
.provider-portfolio-gallery img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.provider-portfolio-gallery figcaption { position: absolute; right: 7px; bottom: 7px; left: 7px; border: 1px solid rgba(255,255,255,.45); border-radius: 6px; padding: 7px 8px; color: #fff; background: rgba(7,48,45,.68); backdrop-filter: blur(9px); font-size: 10px; font-weight: 700; }
.portfolio-note { margin: 0; color: var(--muted); font-size: 10px; }
.provider-profile-action { display: grid; gap: 10px; padding-top: 2px; }
.provider-profile-action .primary-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0 20px; font-size: 14px; }
.provider-profile-action .primary-button::after { content: "→"; font-size: 20px; font-weight: 500; transition: transform .2s ease; }
.provider-profile-action .primary-button:hover::after { transform: translateX(3px); }
.provider-profile-action .info-note { border-left: 0; border-radius: 7px; padding: 10px 12px; background: rgba(255,255,255,.5); }
#view-new-order .form-card { display: flex; flex-direction: column; width: 100%; min-height: clamp(560px, calc(100dvh - 245px), 760px); }
#view-new-order .order-details-field { display: flex; flex: 1 1 190px; flex-direction: column; min-height: 190px; }
#view-new-order .order-details-field textarea { flex: 1 1 auto; min-height: 170px; }
#view-new-order .primary-button { flex: 0 0 auto; }
.favorites-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.favorites-grid .empty-state { grid-column: 1 / -1; }
.favorite-provider-card { overflow: hidden; border: 1px solid rgba(16,42,45,.08); border-radius: 8px; background: rgba(255,250,240,.78); box-shadow: 0 12px 30px rgba(25,55,54,.07); }
.favorite-provider-photo { position: relative; height: 240px; overflow: hidden; background: #dfeee9; }
.favorite-provider-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.favorite-provider-photo > span { position: absolute; top: 12px; left: 12px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: #075f59; background: rgba(226,247,239,.9); backdrop-filter: blur(10px); }
.favorite-provider-body { display: grid; gap: 10px; padding: 14px; }
.favorite-provider-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.favorite-provider-heading h2 { margin: 0 0 4px; font-size: 19px; }
.favorite-card-heart { display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(177,45,85,.12); border-radius: 50%; color: #b12d55; background: #fff0f5; cursor: pointer; }
.favorite-card-heart svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1.7; }
.favorite-profile-button { width: 100%; }
.favorites-notice { margin-top: 14px; }
.home-quick-section { margin-top: 44px; }
.home-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.home-quick-grid button { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 76px; border: 1px solid rgba(16,42,45,.08); border-radius: 8px; padding: 11px 13px; cursor: pointer; color: var(--ink); background: rgba(255,250,240,.72); box-shadow: 0 9px 24px rgba(25,55,54,.045); text-align: left; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.home-quick-grid button:hover { transform: translateY(-2px); border-color: rgba(20,170,156,.2); background: rgba(255,250,240,.92); }
.home-quick-grid button > span:nth-child(2) { min-width: 0; }
.home-quick-grid strong { display: block; font-size: 14px; }
.home-quick-grid small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.home-quick-grid b { color: var(--brand-dark); font-size: 20px; font-weight: 500; }
.home-quick-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; color: var(--brand-dark); background: rgba(217,243,236,.9); }
.home-quick-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-quick-q { font-size: 18px; font-weight: 850; }
.profile-hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
.guest-profile-panel { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 16px; align-items: center; width: min(100%, 620px); padding: 22px; }
.guest-profile-mark { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; color: #fff; background: var(--brand-dark); box-shadow: 0 12px 28px rgba(8,115,106,.17); font-size: 26px; font-weight: 900; }
.guest-profile-panel h2 { margin: 2px 0 7px; font-size: 24px; }
.guest-profile-panel p:not(.eyebrow) { margin: 0; color: var(--muted); font: 500 13px/1.55 system-ui,sans-serif; }
.guest-profile-panel .primary-button, .guest-profile-panel .secondary-button { grid-column: 1 / -1; width: 100%; }
.guest-profile-panel .secondary-button { margin-top: -6px; }
.profile-hub-item, .profile-disclosure summary { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 76px; width: 100%; border: 1px solid rgba(16,42,45,.08); border-radius: 8px; padding: 11px 13px; color: var(--ink); background: rgba(255,250,240,.74); text-align: left; }
.profile-hub-item { cursor: pointer; }
.profile-hub-item strong, .profile-disclosure strong { display: block; font-size: 14px; }
.profile-hub-item small, .profile-disclosure small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.profile-hub-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; color: var(--brand-dark); background: rgba(217,243,236,.9); font-weight: 850; }
.profile-hub-bonus { background: rgba(220,246,238,.72); }
.profile-disclosure summary { cursor: pointer; list-style: none; }
.profile-disclosure summary::-webkit-details-marker { display: none; }
.profile-disclosure p { margin: 0; border: 1px solid rgba(16,42,45,.07); border-top: 0; border-radius: 0 0 8px 8px; padding: 12px; color: var(--muted); background: rgba(255,250,240,.6); font-size: 11px; line-height: 1.5; }
.profile-logout button { color: #92384a; }
.bonus-hero { display: grid; gap: 8px; padding: 22px; background: rgba(217,243,236,.78); }
.bonus-hero > p { margin: 8px 0 0; color: var(--muted); }
.bonus-hero > strong { color: var(--brand-dark); font-size: 42px; }
.bonus-status { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(16,42,45,.08); padding-top: 12px; }
.bonus-rules { display: grid; gap: 13px; margin-top: 12px; padding: 20px; }
.bonus-rules h2, .bonus-rules p { margin: 0; }
.bonus-rules p { color: var(--muted); line-height: 1.55; }
.bonus-rules > div:first-child h2 { font-size: 25px; }
.bonus-steps { display: grid; gap: 0; margin: 4px 0; padding: 0; list-style: none; }
.bonus-steps li { position: relative; display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 12px; padding: 11px 0; }
.bonus-steps li:not(:last-child)::after { content: ""; position: absolute; top: 47px; bottom: -3px; left: 17px; width: 2px; border-radius: 2px; background: rgba(15,159,145,.15); }
.bonus-steps li > span { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(8,115,106,.15); border-radius: 50%; color: #075f59; background: rgba(217,243,236,.9); font-size: 13px; font-weight: 850; }
.bonus-steps li > div { min-width: 0; padding-top: 1px; }
.bonus-steps strong { display: block; margin-bottom: 4px; color: #173c38; font-size: 14px; }
.bonus-steps p { font-size: 12px; }
.bonus-use-rules { display: grid; gap: 7px; border: 1px solid rgba(8,115,106,.1); border-radius: 8px; padding: 12px; background: rgba(217,243,236,.45); }
.bonus-use-rules p { display: grid; grid-template-columns: 22px minmax(0,1fr); align-items: start; gap: 8px; color: #31534c; font-size: 11px; }
.bonus-use-rules span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: #075f59; background: rgba(255,255,255,.7); font-size: 10px; }
.bonus-use-rules b { padding-top: 2px; font-weight: 720; line-height: 1.45; }
.bonus-safety-summary { border-left: 3px solid rgba(11,128,115,.36); padding: 10px 12px; background: rgba(255,255,255,.42); font-size: 11px; }
.bonus-referral { display: grid; gap: 10px; border-top: 1px solid rgba(16,42,45,.08); padding-top: 14px; }
.bonus-referral strong { font-size: 22px; letter-spacing: .05em; }
.bonus-referral p { font-size: 12px; }
.support-brand { display: grid; gap: 10px; padding: 22px; }
.support-brand img { width: 150px; height: 56px; object-fit: contain; object-position: left center; filter: saturate(1.12) contrast(1.05) brightness(.9); }
.support-brand h2, .support-brand p { margin: 0; }
.support-brand p { color: var(--muted); line-height: 1.55; }
.support-actions { display: grid; gap: 9px; margin-top: 12px; }
.support-actions button { display: grid; gap: 4px; width: 100%; border: 1px solid rgba(16,42,45,.08); border-radius: 8px; padding: 15px; cursor: pointer; color: var(--ink); background: rgba(255,250,240,.74); text-align: left; }
.support-actions span { color: var(--muted); font-size: 11px; }
.swipe-card-cover {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(20,170,156,.12);
  color: var(--ink);
  background: #fff;
}
.swipe-city-art { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #20b5a8; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .35; }
.swipe-provider-count, .swipe-card-cover .provider-state { position: absolute; top: 14px; }
.swipe-provider-count { left: 15px; z-index: 2; color: #52716e; font-size: 11px; font-weight: 700; }
.swipe-card-cover .provider-state { right: 15px; z-index: 2; border-color: rgba(20,170,156,.14); color: #315e59; background: rgba(237,248,245,.9); }
.swipe-card-cover .provider-state.available { color: #075f59; background: rgba(217,243,236,.94); }
.swipe-provider-avatar {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(20,170,156,.24);
  border-radius: 50%;
  color: #075f59;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 34px rgba(20,170,156,.12), inset 0 0 0 7px rgba(217,243,236,.55);
  font-size: 29px;
  font-weight: 760;
}
.swipe-verified { position: absolute; z-index: 2; bottom: 14px; color: #075f59; font-size: 11px; font-weight: 650; }
.swipe-card-body { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 11px; min-height: 0; padding: 18px; }
.swipe-provider-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.swipe-provider-heading h3 { margin: 0 0 5px; font-size: 23px; font-weight: 760; line-height: 1.1; }
.swipe-provider-price { flex: 0 0 auto; color: #075f59; font-size: 20px; font-weight: 760; }
.swipe-provider-location { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.swipe-card-body .provider-tags { min-height: 25px; }
.swipe-actions { align-self: end; display: grid; grid-template-columns: 48px 48px minmax(0, 1fr); gap: 9px; }
.swipe-action, .swipe-choose { min-height: 48px; border-radius: 8px; cursor: pointer; }
.swipe-action { display: grid; place-items: center; border: 1px solid rgba(16,42,45,.1); color: #566866; background: rgba(255,255,255,.86); font-size: 17px; font-weight: 760; }
.swipe-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.swipe-skip { color: #a54150; background: #fff4f4; }
.swipe-favorite { color: #315e59; background: #edf7f3; }
.swipe-favorite.active { color: #b12d55; background: #fff0f5; }
.swipe-favorite.active svg { fill: currentColor; }
.swipe-choose { border: 1px solid #075f59; color: #fff; background: #075f59; font-size: 13px; font-weight: 730; }
.swipe-hint { margin: 0; color: #81908e; text-align: center; font-size: 10px; line-height: 1.3; }
.provider-swipe-stage .skeleton { min-height: 100%; }

@media (max-width: 760px) {
  .provider-swipe-stage { height: 438px; }
  .provider-swipe-card { grid-template-rows: 174px 1fr; }
  .provider-profile-cover { height: min(54dvh, 430px); min-height: 330px; }
  .provider-profile-body { gap: 14px; padding: 16px; }
  .provider-profile .provider-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .provider-profile .provider-facts > div { padding: 10px 8px; }
  .provider-profile .provider-facts dt { font-size: 9px; }
  .provider-profile .provider-facts dd { font-size: 11px; overflow-wrap: anywhere; }
  .provider-portfolio-gallery { grid-template-columns: 1fr 1fr; }
  .provider-portfolio-gallery figure:last-child { grid-column: 1 / -1; min-height: 170px; }
  .profile-hub { grid-template-columns: 1fr; }
  .home-quick-grid { grid-template-columns: 1fr 1fr; }
  #view-new-order .form-card { min-height: clamp(540px, calc(100dvh - 245px), 720px); }
  .favorites-grid { grid-template-columns: 1fr; }
  .favorite-provider-photo { height: 280px; }
  .swipe-provider-avatar { width: 82px; height: 82px; font-size: 25px; }
  .swipe-card-body { gap: 9px; padding: 16px; }
  .swipe-provider-heading h3 { font-size: 21px; }
  .swipe-provider-price { font-size: 18px; }
}

@media (max-width: 390px) {
  .provider-swipe-stage { height: 426px; }
  .provider-swipe-card { grid-template-rows: 166px 1fr; }
  .swipe-actions { grid-template-columns: 44px 44px minmax(0, 1fr); }
  .swipe-action, .swipe-choose { min-height: 44px; }
  .home-quick-grid { grid-template-columns: 1fr; }
  .guest-profile-panel { grid-template-columns: 54px minmax(0, 1fr); padding: 18px; }
  .guest-profile-mark { width: 54px; height: 54px; font-size: 20px; }
  .guest-profile-panel h2 { font-size: 21px; }
}

/* Courier workspace */
.courier-heading { align-items: center; }
.courier-heading .demo-badge { margin-left: auto; }
.courier-setup, .courier-profile-summary, .courier-route-card, .courier-status-panel,
.courier-location-panel, .courier-evidence-panel, .courier-code-panel, .courier-return-panel,
.courier-empty { border: 1px solid rgba(255,255,255,.72); background: rgba(255,252,245,.76); box-shadow: 0 18px 45px rgba(29,59,55,.08); }
.courier-setup { display: grid; gap: 14px; padding: 24px; }
.courier-setup h2, .courier-setup p, .courier-empty h2, .courier-empty p { margin: 0; }
.courier-setup p, .courier-empty p { color: var(--muted); line-height: 1.55; }
.courier-profile-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; margin-bottom: 24px; }
.courier-profile-summary > div:first-child { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; }
.courier-profile-summary small { grid-column: 2; color: var(--muted); margin-top: 3px; }
.courier-online-dot { width: 11px; height: 11px; border-radius: 50%; background: #20aa83; box-shadow: 0 0 0 6px rgba(32,170,131,.12); }
.courier-capacity { display: grid; justify-items: end; }
.courier-capacity strong { font-size: 20px; color: var(--brand-dark); }
.courier-section { margin-top: 26px; }
.courier-section .section-heading { margin-bottom: 14px; }
.courier-section .section-heading h2 { margin: 2px 0 0; font-size: 24px; }
.count-pill { min-width: 34px; padding: 7px 10px; border-radius: 999px; text-align: center; color: #075f59; background: rgba(203,241,228,.78); font-weight: 800; }
.courier-job-list { display: grid; gap: 12px; }
.courier-job-card { display: grid; gap: 14px; padding: 18px; border: 1px solid rgba(23,95,87,.12); border-radius: 8px; background: rgba(255,252,245,.82); box-shadow: 0 12px 30px rgba(29,59,55,.07); }
.courier-job-card.active-job { border-color: rgba(13,132,116,.28); background: rgba(228,248,240,.7); }
.courier-job-top, .courier-job-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.courier-job-top span { color: #075f59; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.courier-job-top strong { font-size: 20px; }
.courier-job-route { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; }
.courier-job-route i { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #18a389; }
.courier-job-route i:last-of-type { background: #e1ae66; }
.courier-job-route span { color: var(--muted); }
.courier-job-details { display: flex; flex-wrap: wrap; gap: 7px; }
.courier-job-details span { padding: 6px 9px; border-radius: 999px; color: #536461; background: rgba(233,226,211,.58); font-size: 12px; font-weight: 700; }
.courier-job-bottom small { color: var(--muted); }
.courier-job-bottom button { width: auto; min-width: 138px; }
.courier-empty { padding: 40px 24px; text-align: center; }
.courier-empty > span { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; color: #075f59; background: #d9f3ec; font-size: 24px; }
.courier-work-view { padding-bottom: 150px; }
.courier-route-card { padding: 22px; }
.courier-route-line { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 13px; }
.courier-route-line div { display: grid; gap: 2px; }
.courier-route-line small { color: var(--muted); }
.courier-route-line strong { font-size: 17px; }
.route-pin { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: white; background: #0b8073; font-weight: 850; }
.route-pin.dropoff { color: #473617; background: #efd7a8; }
.route-connector { width: 2px; height: 25px; margin: 3px 0 3px 16px; background: linear-gradient(#0b8073, #efd7a8); }
.courier-route-meta { display: flex; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(31,72,67,.1); }
.courier-route-meta span { color: var(--muted); }
.courier-route-meta strong { white-space: nowrap; }
.courier-status-panel, .courier-location-panel, .courier-evidence-panel, .courier-code-panel, .courier-return-panel { margin-top: 14px; padding: 20px; }
.courier-status-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.courier-status-head small { color: var(--muted); }
.courier-status-head h2 { margin: 3px 0 0; font-size: 23px; }
.courier-status-head > span { padding: 7px 10px; border-radius: 999px; color: #075f59; background: #d9f3ec; font-size: 12px; font-weight: 800; }
.courier-progress-track { height: 7px; margin: 18px 0 13px; overflow: hidden; border-radius: 999px; background: rgba(18,91,82,.1); }
.courier-progress-track span { display: block; width: 16%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0b8073, #42c8ad); transition: width .45s ease; }
.courier-status-panel > p, .courier-panel-title p, .courier-code-panel p, .courier-return-panel p { margin: 0; color: var(--muted); line-height: 1.5; }
.courier-panel-title { display: grid; grid-template-columns: 40px 1fr; align-items: start; gap: 12px; }
.courier-panel-title h2, .courier-return-panel h2 { margin: 0 0 4px; font-size: 18px; }
.courier-panel-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; color: #075f59; background: #d9f3ec; font-size: 20px; }
.courier-location-panel > button, .courier-evidence-panel > button { margin-top: 15px; }
.courier-route-map { position: relative; height: 260px; margin-top: 16px; overflow: hidden; border: 1px solid rgba(39,91,82,.16); border-radius: 8px; background: #e8efe6; isolation: isolate; }
.courier-map-grid { position: absolute; inset: 0; opacity: .58; background-image: linear-gradient(rgba(255,255,255,.66) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.66) 1px, transparent 1px); background-size: 44px 44px; }
.courier-map-road { position: absolute; z-index: 1; height: 18px; border: 1px solid rgba(178,184,171,.72); background: rgba(255,252,245,.88); box-shadow: inset 0 0 0 4px rgba(226,222,208,.7); }
.courier-map-road::after { position: absolute; top: 8px; right: 0; left: 0; border-top: 1px dashed rgba(139,145,133,.48); content: ""; }
.courier-map-road.road-one { top: 77px; left: -28px; width: 440px; transform: rotate(-16deg); }
.courier-map-road.road-two { top: 120px; left: -82px; width: 360px; transform: rotate(51deg); }
.courier-map-road.road-three { top: 178px; left: 72px; width: 350px; transform: rotate(8deg); }
.courier-map-route { position: absolute; z-index: 3; inset: 24px 0 40px; width: 100%; height: calc(100% - 64px); overflow: visible; }
.courier-map-route path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.courier-map-route .route-underlay { stroke: rgba(255,255,255,.94); stroke-width: 11; }
.courier-map-route .route-active { stroke: #138e7c; stroke-width: 5; stroke-dasharray: 7 8; animation: courier-route-flow 5s linear infinite; }
@keyframes courier-route-flow { to { stroke-dashoffset: -60; } }
.courier-map-marker { position: absolute; z-index: 5; display: grid; justify-items: center; gap: 3px; transform: translate(-50%,-50%); }
.courier-map-marker b { display: grid; place-items: center; width: 34px; height: 34px; border: 4px solid rgba(255,255,255,.9); border-radius: 50%; color: white; background: #0b8073; box-shadow: 0 8px 20px rgba(20,73,66,.22); }
.courier-map-marker small { padding: 3px 7px; border-radius: 999px; color: #273b37; background: rgba(255,252,245,.9); font-size: 10px; font-weight: 800; box-shadow: 0 3px 10px rgba(39,59,54,.1); }
.courier-map-marker.map-pickup { left: 16%; top: 68%; }
.courier-map-marker.map-dropoff { left: 84%; top: 25%; }
.courier-map-marker.map-dropoff b { color: #473617; background: #efd7a8; }
.courier-map-current { position: absolute; z-index: 7; left: 47%; top: 43%; display: grid; justify-items: center; gap: 2px; transform: translate(-50%,-50%); transition: left .55s ease, top .55s ease; }
.courier-map-current i { width: 18px; height: 18px; border: 5px solid white; border-radius: 50%; background: #0871d1; box-shadow: 0 0 0 7px rgba(8,113,209,.14), 0 8px 18px rgba(18,65,107,.24); }
.courier-map-current b { padding: 3px 7px; border-radius: 999px; color: #0b4f87; background: rgba(255,255,255,.92); font-size: 10px; white-space: nowrap; }
.courier-route-map[data-stage="assigned"] .courier-map-current, .courier-route-map[data-stage="en_route_to_pickup"] .courier-map-current { left: 26%; top: 61%; }
.courier-route-map[data-stage="arrived_at_pickup"] .courier-map-current { left: 18%; top: 68%; }
.courier-route-map[data-stage="picked_up_in_transit"] .courier-map-current, .courier-route-map[data-stage="recipient_unavailable"] .courier-map-current, .courier-route-map[data-stage="return_or_retry"] .courier-map-current { left: 53%; top: 42%; }
.courier-route-map[data-stage="arrived_at_recipient"] .courier-map-current { left: 80%; top: 27%; }
.courier-map-topline { position: absolute; z-index: 9; top: 10px; right: 10px; left: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.courier-map-topline span, .courier-map-topline strong { padding: 6px 8px; border: 1px solid rgba(255,255,255,.75); border-radius: 999px; background: rgba(255,252,245,.88); box-shadow: 0 5px 15px rgba(30,62,56,.08); font-size: 10px; }
.courier-map-topline span { color: #5c6a66; }
.courier-map-topline strong { color: #075f59; }
.courier-map-caption { position: absolute; z-index: 9; right: 10px; bottom: 9px; left: 10px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.78); border-radius: 8px; background: rgba(255,252,245,.9); box-shadow: 0 8px 22px rgba(28,58,53,.1); }
.courier-map-caption div { min-width: 0; }
.courier-map-caption div:last-child { text-align: right; }
.courier-map-caption small { display: block; color: var(--muted); font-size: 9px; }
.courier-map-caption strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.courier-map-caption > span { color: #0b8073; font-weight: 900; }
.courier-map-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.courier-route-map.is-private .route-active { stroke: #7a8d88; animation: none; }
.courier-route-map.is-live { border-color: rgba(11,128,115,.32); box-shadow: 0 12px 28px rgba(11,128,115,.12); }
.courier-camera-button { display: block; margin-top: 15px; }
.courier-camera-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.courier-camera-button span { display: grid; place-items: center; min-height: 48px; padding: 10px 14px; border-radius: 8px; color: white; background: #0b8073; font-weight: 800; cursor: pointer; }
.courier-evidence-ready { display: flex; align-items: center; gap: 9px; margin-top: 14px; color: #075f59; }
.courier-evidence-ready span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #d9f3ec; }
.courier-code-panel label { display: grid; gap: 8px; font-weight: 800; }
.courier-code-panel input { min-height: 52px; padding: 12px 14px; border: 1px solid rgba(8,105,94,.25); border-radius: 8px; background: rgba(255,255,255,.68); font: 800 24px/1 system-ui, sans-serif; letter-spacing: 8px; }
.courier-code-panel p { margin-top: 10px; }
.courier-demo-code { display: block; margin-top: 12px; color: #075f59; }
.courier-return-panel { display: grid; gap: 12px; }
.courier-return-panel label { display: flex; align-items: center; gap: 8px; color: #364844; font-weight: 700; }
.courier-return-panel input { width: 20px; height: 20px; accent-color: #0b8073; }
.courier-work-actions { position: fixed; z-index: 24; right: 0; bottom: 82px; left: 0; display: flex; gap: 10px; width: min(680px, calc(100% - 24px)); margin: auto; padding: 12px; border: 1px solid rgba(255,255,255,.8); border-radius: 8px; background: rgba(252,248,240,.9); box-shadow: 0 18px 50px rgba(19,32,31,.15); backdrop-filter: blur(20px); }
.courier-work-actions button { flex: 1; }

@media (max-width: 520px) {
  .courier-job-bottom { align-items: flex-end; }
  .courier-job-bottom button { min-width: 124px; }
  .courier-route-meta { display: grid; }
  .courier-work-actions { bottom: 80px; }
  .courier-route-map { height: 238px; }
  .courier-map-topline span { max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Provider workspace */
.provider-workspace-heading { align-items: center; }
.provider-workspace-heading > div { flex: 1; }
.provider-workspace-setup { display: grid; gap: 14px; padding: 24px; }
.provider-workspace-setup h2, .provider-workspace-setup p { margin: 0; }
.provider-workspace-setup p, .provider-panel-copy, .provider-finance-note p { color: var(--muted); line-height: 1.55; }
.provider-workspace-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; }
.provider-workspace-person { display: flex; align-items: center; gap: 13px; min-width: 0; }
.provider-workspace-person > span { display: grid; place-items: center; flex: 0 0 50px; width: 50px; height: 50px; border-radius: 50%; color: white; background: linear-gradient(145deg, #0b8073, #49c6ad); font-size: 18px; font-weight: 850; }
.provider-workspace-person div { min-width: 0; }
.provider-workspace-person small { color: #0b8073; font-weight: 800; }
.provider-workspace-person h2 { margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; }
.provider-workspace-person p { margin: 0; color: var(--muted); font-size: 13px; }
.provider-availability-toggle { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 12px; border: 1px solid rgba(40,74,69,.13); border-radius: 999px; color: #65736f; background: rgba(255,255,255,.66); cursor: pointer; }
.provider-availability-toggle > span { width: 12px; height: 12px; border-radius: 50%; background: #a5adaa; }
.provider-availability-toggle[aria-pressed="true"] { color: #075f59; border-color: rgba(24,160,133,.22); background: #d9f3ec; }
.provider-availability-toggle[aria-pressed="true"] > span { background: #19a580; box-shadow: 0 0 0 5px rgba(25,165,128,.11); }
.provider-availability-toggle b { font-size: 12px; white-space: nowrap; }
.provider-workspace-tabs { display: flex; gap: 7px; margin: 18px 0; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.provider-workspace-tabs::-webkit-scrollbar { display: none; }
.provider-workspace-tabs button { flex: 0 0 auto; min-height: 40px; padding: 9px 14px; border: 1px solid rgba(42,76,71,.11); border-radius: 999px; color: #667571; background: rgba(255,252,245,.66); font-weight: 750; cursor: pointer; }
.provider-workspace-tabs button.active { color: white; border-color: #0b8073; background: #0b8073; box-shadow: 0 10px 24px rgba(11,128,115,.18); }
.provider-workspace-panel { animation: provider-panel-in .3s ease both; }
@keyframes provider-panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.provider-overview-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10px; }
.provider-metric { display: grid; gap: 6px; min-height: 132px; padding: 18px; border: 0; border-radius: 8px; text-align: left; cursor: pointer; }
.provider-metric small { color: #42544f; font-weight: 750; }
.provider-metric strong { color: #132622; font-size: 29px; line-height: 1; }
.provider-metric span { align-self: end; color: #52645f; font-size: 12px; font-weight: 700; }
.provider-metric-mint { background: rgba(204,240,226,.85); }
.provider-metric-sky { background: rgba(210,231,240,.82); }
.provider-metric-champagne { background: rgba(240,221,180,.78); }
.provider-metric-lilac { background: rgba(226,218,238,.76); }
.provider-next-work { margin-top: 12px; padding: 20px; }
.provider-next-work .section-heading { margin-bottom: 10px; }
.provider-next-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.provider-next-card div { display: grid; gap: 3px; }
.provider-next-card p { margin: 0; color: var(--muted); }
.provider-empty-inline { padding: 18px; border: 1px dashed rgba(43,78,72,.2); border-radius: 8px; color: var(--muted); text-align: center; }
.provider-jobs-list, .provider-offers-list, .provider-works-list { display: grid; gap: 11px; }
.provider-job-card, .provider-offer-card, .provider-work-card { padding: 18px; border: 1px solid rgba(42,76,71,.12); border-radius: 8px; background: rgba(255,252,245,.78); box-shadow: 0 12px 30px rgba(29,59,55,.06); }
.provider-job-head, .provider-work-head, .provider-offer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.provider-job-head h3, .provider-work-head h3, .provider-offer-head h3 { margin: 0; font-size: 18px; }
.provider-job-head span, .provider-work-head span, .provider-offer-head span { color: #0b8073; font-size: 12px; font-weight: 800; }
.provider-job-card > p, .provider-work-card > p, .provider-offer-card > p { margin: 9px 0; color: var(--muted); line-height: 1.45; }
.provider-job-meta, .provider-work-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.provider-job-meta span, .provider-work-meta span { padding: 6px 9px; border-radius: 999px; background: rgba(224,235,230,.68); color: #52635f; font-size: 12px; font-weight: 700; }
.provider-offer-form { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1fr) auto; gap: 8px; }
.provider-offer-form input { min-width: 0; min-height: 44px; padding: 10px 11px; border: 1px solid rgba(34,91,82,.2); border-radius: 8px; background: rgba(255,255,255,.7); }
.provider-offer-form button { min-height: 44px; padding: 10px 14px; }
.provider-offers-heading, .provider-completed-heading { margin-top: 28px; }
.provider-panel-copy { margin: -8px 0 16px; }
.provider-schedule-form { display: grid; gap: 14px; }
.provider-schedule-list { display: grid; }
.provider-schedule-row { display: grid; grid-template-columns: 24px 1fr 112px 18px 112px; align-items: center; gap: 9px; min-height: 58px; padding: 8px 10px; border-bottom: 1px solid rgba(42,76,71,.09); }
.provider-schedule-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: #0b8073; }
.provider-schedule-row strong { font-size: 14px; }
.provider-schedule-row input[type="time"] { min-width: 0; padding: 9px 7px; border: 1px solid rgba(42,76,71,.14); border-radius: 8px; background: rgba(255,255,255,.68); }
.provider-schedule-row > span { color: var(--muted); text-align: center; }
.provider-finance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.provider-finance-grid article { display: grid; gap: 7px; min-height: 112px; padding: 18px; border-radius: 8px; background: rgba(255,252,245,.78); border: 1px solid rgba(42,76,71,.1); }
.provider-finance-grid small { color: var(--muted); }
.provider-finance-grid strong { font-size: 24px; }
.provider-finance-grid .provider-finance-net { color: #075f59; background: rgba(204,240,226,.83); }
.provider-finance-note { margin-top: 12px; padding: 18px; }
.provider-finance-note p { margin: 5px 0 0; }
.provider-work-card .secondary-button { margin-top: 7px; }
.provider-work-status { padding: 6px 9px; border-radius: 999px; background: #d9f3ec; }
.profile-hub-provider { background: rgba(209,239,231,.74); }

@media (max-width: 560px) {
  .provider-workspace-hero { align-items: flex-start; }
  .provider-availability-toggle { padding: 8px; }
  .provider-availability-toggle b { max-width: 74px; white-space: normal; text-align: left; }
  .provider-overview-grid { grid-template-columns: 1fr 1fr; }
  .provider-metric { min-height: 120px; padding: 15px; }
  .provider-metric strong { font-size: 24px; }
  .provider-offer-form { grid-template-columns: 1fr 1fr; }
  .provider-offer-form button { grid-column: 1 / -1; }
  .provider-schedule-row { grid-template-columns: 22px 1fr 92px 12px 92px; gap: 6px; padding-inline: 2px; }
  .provider-schedule-row input[type="time"] { font-size: 12px; }
}

/* Complete client journey: guest, catalog, service and chat */
.guest-screen { position: relative; isolation: isolate; width: 100%; max-width: none; overflow: hidden; padding: 0; background: #e8f6f3; }
.guest-screen::before { content: ""; position: absolute; z-index: -2; inset: 0; background: url("/assets/qelway-city-welcome.jpeg") center 49% / cover no-repeat; transform: scale(1.015); }
.guest-screen::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(248,244,234,.76) 0%, rgba(236,249,246,.08) 45%, rgba(246,238,223,.94) 100%); }
.guest-hero { display: flex; flex-direction: column; align-items: flex-start; width: min(100%, 1120px); min-height: calc(100vh - 72px); margin: 0 auto; padding: clamp(46px, 8vh, 86px) 34px 38px; text-align: left; }
.guest-hero-copy { max-width: 610px; }
.guest-kicker { margin: 0 0 12px; color: var(--brand-dark); font-size: 13px; font-weight: 900; }
.guest-hero h1 { max-width: 610px; margin: 0; font-size: clamp(42px, 6vw, 68px); line-height: 1.01; }
.guest-hero-copy > p:last-child { max-width: 560px; margin: 18px 0 0; color: #3e5551; font: 600 17px/1.55 system-ui, sans-serif; }
.guest-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%, 540px); margin-top: auto; padding-top: 38px; }
.guest-actions .primary-button { box-shadow: 0 15px 34px rgba(8,115,106,.25); }
.guest-actions .secondary-button { border-color: rgba(8,115,106,.32); background: rgba(252,248,240,.76); backdrop-filter: blur(16px); }
.guest-safety { grid-column: 1 / -1; margin: 4px 0 0; color: #52645f; font: 700 11px/1.45 system-ui, sans-serif; text-align: center; }
.auth-screen { position: relative; isolation: isolate; grid-template-columns: minmax(0,430px); grid-template-rows: auto auto; align-content: safe center; align-items: center; justify-content: center; gap: 14px; width: 100%; max-width: none; overflow-x: hidden; overflow-y: auto; padding: 30px 22px 44px; background: #e8f6f3; }
.auth-screen::before { content: ""; position: absolute; z-index: -2; inset: 0; background: url("/assets/qelway-city-welcome.jpeg") center 48% / cover no-repeat; transform: scale(1.02); }
.auth-screen::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(248,244,234,.62) 0%, rgba(226,247,243,.25) 46%, rgba(246,238,223,.86) 100%); }
.auth-floating-brand { position: relative; z-index: 1; display: flex; justify-content: center; width: 100%; }
.auth-floating-brand img { display: block; width: 154px; height: 62px; object-fit: contain; filter: saturate(1.08) contrast(1.04) drop-shadow(0 8px 20px rgba(14,69,64,.1)); }
.auth-screen .auth-panel { position: relative; width: min(100%,430px); padding: 20px; border-color: rgba(255,255,255,.7); background: rgba(252,248,240,.61); box-shadow: 0 22px 64px rgba(14,69,64,.13); backdrop-filter: blur(18px) saturate(126%); }
.auth-screen .segmented { background: rgba(238,238,231,.48); }
.auth-screen .segment.active { background: rgba(255,252,246,.76); }
.auth-screen input { background: rgba(255,255,255,.86); }
.auth-close { position: absolute; z-index: 4; top: 11px; right: 11px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(8,115,106,.14); border-radius: 50%; padding: 0 0 2px; color: #365b55; background: rgba(255,252,246,.64); box-shadow: 0 6px 16px rgba(14,69,64,.06); backdrop-filter: blur(12px); cursor: pointer; font: 500 25px/1 system-ui,sans-serif; }
.auth-close:hover { color: #075f59; border-color: rgba(8,115,106,.3); background: rgba(255,252,246,.84); }
.auth-flow-heading { display: block; margin-bottom: 15px; }
.auth-flow-heading > div { padding-right: 34px; }
.auth-flow-heading h1 { margin: 0; font-size: 25px; }
.auth-flow-heading p:last-child { margin: 5px 0 0; color: var(--muted); font: 600 12px/1.45 system-ui, sans-serif; }
.auth-screen .segmented { margin-bottom: 16px; }
.auth-screen .segment { min-height: 38px; }
.auth-intent-tabs { margin-bottom: 9px !important; background: rgba(255,252,246,.35) !important; }
.auth-intent-tabs .segment { font-size: 13px; }
.auth-intent-tabs .segment.active { color: #fff; background: #08736a; box-shadow: 0 7px 16px rgba(8,115,106,.16); }
.auth-channel-tabs { margin-bottom: 14px !important; }
.auth-screen .form-stack { gap: 12px; }
.auth-screen #challenge-form > div:first-child { display: none; }
.auth-screen .form-stack h2 { font-size: 24px; }
.auth-screen .form-stack input { padding: 12px 13px; }
.auth-screen .primary-button { min-height: 46px; }
.auth-screen .terms { font-size: 10px; line-height: 1.4; }
.field-help { color: #60716d; font-size: 11px; font-weight: 600; line-height: 1.35; }
.auth-consent { grid-template-columns: 20px 1fr !important; align-items: start; gap: 9px !important; color: #566864 !important; font-size: 10px !important; font-weight: 600 !important; line-height: 1.45; }
.auth-consent input { width: 18px !important; height: 18px; margin: 1px 0 0; padding: 0 !important; accent-color: #08736a; }
.auth-resend { justify-self: center; min-height: 36px; margin-top: -4px; font-size: 12px; }
.auth-resend:disabled { color: #778782; cursor: default; opacity: 1; }
.auth-account-switch { display: flex; justify-content: center; margin-top: 12px; border-top: 1px solid rgba(42,76,71,.09); padding-top: 11px; }
.auth-account-switch button { min-height: 34px; border: 0; padding: 0 8px; color: #075f59; background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.auth-account-switch button:hover { text-decoration: underline; }
#verify-hint { overflow-wrap: anywhere; }
#code-input { letter-spacing: .22em; text-align: center; font-size: 20px; font-weight: 850; }
.section-heading-actions { display: flex; align-items: center; gap: 8px; }
.providers-all-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 68px; min-height: 34px; border: 1px solid rgba(8,115,106,.12); border-radius: 999px; padding: 0 11px; background: rgba(252,248,240,.62); box-shadow: 0 4px 14px rgba(25,55,54,.04); backdrop-filter: blur(14px); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.providers-all-button:hover { border-color: rgba(8,115,106,.28); background: rgba(252,248,240,.82); }
.providers-all-button:active { transform: scale(.97); }
.providers-all-button:focus-visible { outline: 3px solid rgba(15,159,145,.14); outline-offset: 2px; }
.providers-all-chevron { margin-top: -1px; color: #58706b; font-size: 18px; font-weight: 700; line-height: 1; }
.catalog-intro { max-width: 650px; margin: -10px 0 22px; color: var(--muted); line-height: 1.55; }
.all-categories-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.all-categories-grid .category-card { grid-column: auto; grid-row: auto; min-height: 150px; color: var(--ink); background: rgba(252,248,240,.76); }
.all-categories-grid .category-card:nth-child(3n+1) { background: rgba(217,245,235,.65); }
.all-categories-grid .category-card:nth-child(3n+2) { background: rgba(211,235,242,.62); }
.all-categories-grid .category-card:nth-child(3n+3) { background: rgba(247,228,177,.5); }
.all-categories-grid .category-card strong { font-size: 18px; }
.all-categories-grid .category-card small { color: var(--muted); }
.service-detail-hero { display: grid; grid-template-columns: 94px minmax(0,1fr); align-items: center; gap: 20px; padding: 24px; }
.service-detail-icon { display: grid; place-items: center; width: 94px; height: 94px; border-radius: 8px; color: #075f59; background: #d9f3ec; }
.service-detail-icon svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-detail-hero h2 { margin: 11px 0 6px; font-size: 26px; }
.service-detail-hero p { margin: 0; color: var(--muted); line-height: 1.55; }
.service-detail-section { margin-top: 26px; }
.service-example-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.service-example-grid div { display: flex; align-items: center; gap: 9px; min-height: 74px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(252,248,240,.72); }
.service-example-grid span { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 50%; color: #075f59; background: #d9f3ec; }
.service-example-grid strong { font-size: 13px; line-height: 1.35; }
.service-detail-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 12px; overflow: hidden; padding: 0; }
.service-detail-facts div { display: grid; gap: 5px; padding: 18px; background: rgba(255,252,245,.65); }
.service-detail-facts small { color: var(--muted); }
.service-detail-facts strong { font-size: 14px; }
.service-safety-note { margin: 12px 0; padding: 16px; border-left: 3px solid #0b8073; background: rgba(217,245,235,.48); }
.service-safety-note p { margin: 5px 0 0; color: var(--muted); line-height: 1.5; }
#service-create-request { width: 100%; }
.order-chat-button { margin-top: -6px; }
.chat-view { padding-bottom: 112px; animation: none; transform: none; }
.chat-heading { align-items: center; }
.chat-heading > div { min-width: 0; flex: 1; }
.chat-heading h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 27px; }
.chat-online-dot { flex: 0 0 11px; width: 11px; height: 11px; border-radius: 50%; background: #20aa83; box-shadow: 0 0 0 6px rgba(32,170,131,.12); }
.chat-safety-strip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 8px; color: #31534c; background: rgba(217,245,235,.62); }
.chat-safety-strip span { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.7); }
.chat-safety-strip p { margin: 0; font: 650 11px/1.45 system-ui, sans-serif; }
.chat-messages { display: grid; align-content: end; gap: 9px; min-height: 390px; max-height: min(58vh,620px); margin-top: 12px; overflow-y: auto; padding: 16px 4px 92px; scroll-behavior: smooth; }
.chat-empty { align-self: center; justify-self: center; max-width: 300px; padding: 28px 20px; color: var(--muted); text-align: center; }
.chat-empty p { margin: 6px 0 0; line-height: 1.5; }
.chat-message { display: flex; justify-content: flex-start; }
.chat-message.own { justify-content: flex-end; }
.chat-message > div { max-width: min(82%,520px); padding: 11px 13px 8px; border: 1px solid rgba(30,70,64,.1); border-radius: 8px 8px 8px 2px; background: rgba(255,252,245,.88); box-shadow: 0 7px 20px rgba(32,54,50,.05); }
.chat-message.own > div { color: #103c36; border-color: rgba(11,128,115,.14); border-radius: 8px 8px 2px 8px; background: #d9f3ec; }
.chat-message p { margin: 0; font: 550 14px/1.48 system-ui, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message time { display: block; margin-top: 5px; color: var(--muted); font: 650 9px system-ui, sans-serif; text-align: right; }
.chat-translation { display: grid; gap: 5px; margin-top: 9px; padding: 9px 10px; border: 1px solid rgba(11,128,115,.13); border-radius: 7px; color: #31534c; background: rgba(255,255,255,.58); }
.chat-translation small { display: flex; align-items: center; gap: 6px; color: #0b8073; font: 800 9px/1.2 system-ui,sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.chat-translation small span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #075f59; background: #d9f3ec; font-size: 10px; }
.chat-translation p { color: inherit; font: 600 13px/1.45 system-ui,sans-serif; }
.chat-translation-pending { display: flex; align-items: center; gap: 6px; margin-top: 8px !important; padding-top: 7px; border-top: 1px solid rgba(30,70,64,.1); color: #667873; font: 650 9px/1.35 system-ui,sans-serif !important; }
.chat-translation-pending span { color: #0b8073; font-size: 11px; }
.chat-translation-note { margin: 0 0 9px; color: var(--muted); font: 550 10px/1.4 system-ui, sans-serif; text-align: center; }
.chat-composer { position: fixed; z-index: 24; left: 50%; bottom: calc(104px + env(safe-area-inset-bottom) + var(--keyboard-inset)); display: grid; grid-template-columns: 88px minmax(0,1fr) 50px; gap: 8px; width: min(720px, calc(100% - 24px)); padding: 9px; border: 1px solid rgba(255,255,255,.8); border-radius: 8px; background: rgba(252,248,240,.94); box-shadow: 0 14px 35px rgba(19,32,31,.14); backdrop-filter: blur(18px); transform: translateX(-50%); transition: bottom .22s ease; }
.chat-composer textarea { min-height: 50px; max-height: 130px; resize: none; }
.chat-composer button { width: 50px; min-height: 50px; padding: 0; font-size: 19px; }
.chat-media-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chat-composer .chat-media-button { display: grid; place-items: center; width: 41px; min-height: 50px; border: 1px solid rgba(11,128,115,.18); border-radius: 7px; color: #075f59; background: rgba(217,245,235,.72); cursor: pointer; }
.chat-media-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-media-button.recording { color: #fff; border-color: #b83a48; background: #b83a48; animation: voice-pulse 1.15s ease-in-out infinite; }
@keyframes voice-pulse { 50% { box-shadow: 0 0 0 6px rgba(184,58,72,.13); } }
.chat-recording-status { grid-column: 1 / -1; display: grid; grid-template-columns: 10px auto 1fr auto; align-items: center; gap: 8px; min-height: 36px; padding: 4px 7px; color: #82303a; font: 700 11px system-ui,sans-serif; }
.chat-recording-status > span { width: 9px; height: 9px; border-radius: 50%; background: #b83a48; animation: voice-pulse 1.15s ease-in-out infinite; }
.chat-recording-status time { color: var(--muted); }
.chat-composer .chat-recording-status button { width: auto; min-height: 28px; border: 0; color: #82303a; background: transparent; font-size: 11px; font-weight: 800; }
.chat-voice-fallback { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid rgba(166,111,20,.17); border-radius: 7px; color: #68542c; background: rgba(255,242,207,.84); font: 650 10px/1.4 system-ui,sans-serif; }
.chat-composer .chat-voice-fallback button { flex: 0 0 auto; width: auto; min-height: 34px; padding: 0 11px; border: 1px solid rgba(8,115,106,.2); border-radius: 6px; color: #075f59; background: rgba(255,255,255,.78); font-size: 10px; font-weight: 800; }
.chat-composer .chat-send-button.recording-send { color: #fff; background: #08736a; box-shadow: 0 0 0 5px rgba(8,115,106,.12); animation: send-ready-pulse 1.25s ease-in-out infinite; }
@keyframes send-ready-pulse { 50% { box-shadow: 0 0 0 9px rgba(8,115,106,.04); } }
.chat-photo-attachment { display: grid; gap: 5px; width: min(260px,70vw); margin: 9px 0 2px; overflow: hidden; }
.chat-photo-attachment img { display: block; width: 100%; min-height: 140px; max-height: 260px; border-radius: 7px; object-fit: cover; background: rgba(19,32,31,.08); }
.chat-photo-attachment figcaption { color: var(--muted); font: 650 9px system-ui,sans-serif; }
.chat-voice-attachment { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 9px; min-width: min(280px,70vw); margin-top: 8px; padding: 9px; border-radius: 7px; background: rgba(255,255,255,.5); }
.chat-voice-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #075f59; background: #d9f3ec; font-size: 9px; letter-spacing: 1px; }
.chat-voice-attachment > div { min-width: 0; }
.chat-voice-attachment strong { display: block; margin-bottom: 5px; font: 750 10px system-ui,sans-serif; }
.chat-voice-attachment audio { display: block; width: 100%; height: 32px; }
.attachment-error { opacity: .58; }

/* Dedicated client order stages */
.order-flow-view { max-width: 760px; margin-inline: auto; padding-bottom: 132px; }
.order-flow-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin: -4px 0 16px; }
.order-flow-steps span { position: relative; padding-top: 10px; color: var(--muted); font: 750 10px/1.25 system-ui,sans-serif; text-align: center; }
.order-flow-steps span::before { content: ""; position: absolute; inset: 0 2px auto; height: 4px; border-radius: 4px; background: rgba(38,75,68,.12); }
.order-flow-steps span.active { color: #075f59; }
.order-flow-steps span.active::before { background: #0b8073; box-shadow: 0 0 0 4px rgba(11,128,115,.08); }
.order-flow-steps span.done::before { background: #8bcfba; }
.flow-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px; }
.flow-summary h2 { margin: 10px 0 4px; font-size: 23px; }
.flow-price { display: grid; gap: 5px; min-width: 130px; text-align: right; }
.flow-price small { color: var(--muted); }
.flow-price strong { color: #075f59; font-size: 25px; }
.flow-action-card { display: grid; gap: 14px; margin-top: 12px; padding: 22px; }
.flow-action-card h2 { margin: 0; font-size: 22px; }
.flow-action-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.payment-method-option { display: grid; grid-template-columns: 26px 44px minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 78px; padding: 12px; border: 1px solid rgba(38,75,68,.12); border-radius: 8px; background: rgba(255,252,245,.68); cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.payment-method-option:hover { transform: translateY(-1px); }
.payment-method-option.selected { border-color: rgba(11,128,115,.45); background: rgba(217,245,235,.7); }
.payment-method-option input { width: 20px; height: 20px; accent-color: #0b8073; }
.payment-method-option > span:nth-of-type(2) { display: grid; gap: 4px; }
.payment-method-option small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.payment-method-option b { color: #075f59; font-size: 11px; }
.payment-method-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; color: #075f59; background: rgba(255,255,255,.72); font-size: 20px; font-weight: 850; }
.flow-safety-note { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border-radius: 8px; background: rgba(217,245,235,.5); }
.flow-safety-note > span { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; color: #075f59; background: rgba(255,255,255,.75); font-weight: 900; }
.flow-safety-note p { font-size: 11px; }
.progress-hero,.review-provider-card { display: flex; align-items: center; gap: 15px; padding: 20px; }
.progress-provider-avatar { display: grid; place-items: center; flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%; color: #075f59; background: #d9f3ec; font-size: 18px; font-weight: 900; }
.progress-hero h2,.review-provider-card h2 { margin: 8px 0 3px; font-size: 21px; }
.work-timeline { display: grid; gap: 0; margin-top: 12px; padding: 8px 20px; }
.work-timeline > div { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 12px; min-height: 84px; align-items: center; }
.work-timeline > div:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 57px; bottom: -27px; width: 2px; background: rgba(38,75,68,.12); }
.work-timeline i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--muted); background: rgba(38,75,68,.08); font-style: normal; font-weight: 850; }
.work-timeline .done i { color: #fff; background: #0b8073; }
.work-timeline span { display: grid; gap: 4px; }
.work-timeline small { color: var(--muted); }
.flow-button-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.completion-card { display: grid; justify-items: center; gap: 9px; padding: 28px 22px; text-align: center; }
.completion-mark { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 5px; border-radius: 50%; color: #075f59; background: #d9f3ec; box-shadow: 0 0 0 10px rgba(217,245,235,.35); font-size: 28px; font-weight: 900; }
.completion-card h2 { margin: 7px 0 0; font-size: 25px; }
.completion-total { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 11px; padding: 15px 0 0; border-top: 1px solid var(--line); }
.completion-total strong { color: #075f59; font-size: 22px; }
.completion-check { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid rgba(11,128,115,.18); border-radius: 8px; background: rgba(217,245,235,.35); font-weight: 700; line-height: 1.4; }
.completion-check input { flex: 0 0 20px; width: 20px; height: 20px; accent-color: #0b8073; }
.rating-picker { margin: 0; padding: 0; border: 0; }
.rating-picker legend { margin-bottom: 8px; font-weight: 750; }
.rating-picker > div { display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; }
.rating-picker label { cursor: pointer; }
.rating-picker input { position: absolute; opacity: 0; pointer-events: none; }
.rating-picker span { display: grid; place-items: center; min-height: 48px; border: 1px solid rgba(38,75,68,.13); border-radius: 8px; background: rgba(255,252,245,.7); font-size: 0; }
.rating-picker span::before { content: "★"; color: #9a978d; font-size: 23px; }
.rating-picker input:checked + span { border-color: #0b8073; background: #d9f3ec; }
.rating-picker input:checked + span::before { color: #0b8073; }
.review-form.flow-action-card { display: grid; }
.review-form .text-button { justify-self: center; }

.provider-swipe-card.has-photo .swipe-action,
.provider-swipe-card.has-photo .swipe-choose,
.swipe-action,
.swipe-choose { min-height: 44px; }
.provider-swipe-card.has-photo .swipe-action, .swipe-action { min-width: 44px; }

@media (max-width: 600px) {
  .guest-screen::before { background-position: center 46%; }
  .guest-screen::after { background: linear-gradient(180deg, rgba(248,244,234,.76) 0%, rgba(236,249,246,.04) 43%, rgba(246,238,223,.97) 100%); }
  .guest-hero { min-height: calc(100svh - 72px); padding: 38px 18px max(22px, env(safe-area-inset-bottom)); }
  .guest-hero-copy { max-width: 390px; }
  .guest-hero h1 { max-width: 360px; font-size: 39px; }
  .guest-hero-copy > p:last-child { max-width: 350px; margin-top: 14px; font-size: 14px; line-height: 1.5; }
  .guest-actions { grid-template-columns: 1fr; }
  .guest-safety { grid-column: auto; padding: 0 12px; }
  .auth-screen { grid-template-columns: minmax(0,390px); align-content: safe center; padding: 74px 18px max(30px, env(safe-area-inset-bottom)); }
  .auth-screen::before { background-position: center 46%; }
  .auth-screen::after { background: linear-gradient(180deg, rgba(248,244,234,.66) 0%, rgba(226,247,243,.18) 42%, rgba(246,238,223,.92) 100%); }
  .auth-screen .auth-panel { width: min(100%,390px); padding: 16px; }
  .auth-close { top: 9px; right: 9px; }
  .all-categories-grid { grid-template-columns: 1fr 1fr; }
  .all-categories-grid .category-card { min-height: 132px; padding: 14px; }
  .all-categories-grid .category-card strong { font-size: 15px; }
  .service-detail-hero { grid-template-columns: 70px minmax(0,1fr); padding: 18px; }
  .service-detail-icon { width: 70px; height: 70px; }
  .service-detail-icon svg { width: 32px; height: 32px; }
  .service-detail-hero h2 { font-size: 21px; }
  .service-example-grid { grid-template-columns: 1fr; }
  .service-detail-facts { grid-template-columns: 1fr; }
  .service-detail-facts div { padding: 14px 16px; }
  .chat-messages { min-height: 350px; }
  .order-flow-view { width: 100%; }
  .flow-summary { align-items: flex-start; padding: 18px; }
  .flow-summary h2 { font-size: 20px; }
  .flow-price { min-width: 100px; }
  .flow-price strong { font-size: 20px; }
  .flow-action-card { padding: 18px; }
  .payment-method-option { grid-template-columns: 22px 40px minmax(0,1fr); }
  .payment-method-option b { display: none; }
  .flow-button-grid { grid-template-columns: 1fr; }
}

/* Shared Qelway city-glass system for authenticated and guest browsing views. */
body[data-screen="main"] { background: #e8f6f3; }
body[data-screen="main"] .app { position: relative; isolation: isolate; }
body[data-screen="main"] .app::before { content: ""; position: fixed; z-index: -2; inset: 60px 0 0; background: url("/assets/qelway-city-welcome.jpeg") center 46% / cover no-repeat; transform: scale(1.015); }
body[data-screen="main"] .app::after { content: ""; position: fixed; z-index: -1; inset: 60px 0 0; pointer-events: none; background: linear-gradient(180deg, rgba(248,244,234,.52) 0%, rgba(232,249,245,.34) 46%, rgba(246,238,223,.68) 100%); }
body[data-screen="main"] .topbar { border-bottom: 1px solid rgba(255,255,255,.48); background: rgba(255,255,255,.18); box-shadow: 0 8px 26px rgba(16,42,45,.045), inset 0 1px 0 rgba(255,255,255,.72); -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%); }
body[data-screen="main"] .main-screen { position: relative; z-index: 0; background: transparent; }
body[data-screen="main"] .glass-panel,
body[data-screen="main"] .form-card,
body[data-screen="main"] .order-detail-card,
body[data-screen="main"] .provider-detail,
body[data-screen="main"] .offer-card,
body[data-screen="main"] .list-item,
body[data-screen="main"] .order-item,
body[data-screen="main"] .operation-item,
body[data-screen="main"] .settings-list button,
body[data-screen="main"] .profile-hub-item,
body[data-screen="main"] .profile-disclosure summary,
body[data-screen="main"] .favorite-provider-card,
body[data-screen="main"] .provider-profile-body,
body[data-screen="main"] .home-quick-grid button,
body[data-screen="main"] .support-actions button,
body[data-screen="main"] .notification-day-group,
body[data-screen="main"] .courier-setup,
body[data-screen="main"] .courier-profile-summary,
body[data-screen="main"] .courier-route-card,
body[data-screen="main"] .courier-status-panel,
body[data-screen="main"] .courier-location-panel,
body[data-screen="main"] .courier-evidence-panel,
body[data-screen="main"] .courier-code-panel,
body[data-screen="main"] .courier-return-panel,
body[data-screen="main"] .courier-empty,
body[data-screen="main"] .courier-job-card,
body[data-screen="main"] .provider-job-card,
body[data-screen="main"] .provider-offer-card,
body[data-screen="main"] .provider-work-card,
body[data-screen="main"] .provider-finance-grid article,
body[data-screen="main"] .provider-metric,
body[data-screen="main"] .rating-picker span,
body[data-screen="main"] .service-example-grid div,
body[data-screen="main"] .service-detail-facts div,
body[data-screen="main"] .payment-method-option,
body[data-screen="main"] .selected-provider-block,
body[data-screen="main"] .next-step-panel,
body[data-screen="main"] .order-price-panel,
body[data-screen="main"] .completed-panel { border-color: rgba(255,255,255,.62); background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(238,250,246,.1)); box-shadow: 0 14px 38px rgba(20,58,54,.07), inset 0 1px 0 rgba(255,255,255,.72); -webkit-backdrop-filter: blur(22px) saturate(145%); backdrop-filter: blur(22px) saturate(145%); }
body[data-screen="main"] .search-box { border-color: rgba(255,255,255,.58); background: rgba(213,248,239,.24); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 12px 32px rgba(20,58,54,.055); -webkit-backdrop-filter: blur(22px) saturate(145%); backdrop-filter: blur(22px) saturate(145%); }
body[data-screen="main"] .icon-button,
body[data-screen="main"] .header-notification-button,
body[data-screen="main"] .language-label,
body[data-screen="main"] .providers-all-button,
body[data-screen="main"] .notification-filters button:not(.active),
body[data-screen="main"] .provider-workspace-tabs button:not(.active),
body[data-screen="main"] .secondary-button { border-color: rgba(255,255,255,.58); background: rgba(255,255,255,.16); box-shadow: 0 7px 22px rgba(20,58,54,.055), inset 0 1px 0 rgba(255,255,255,.7); -webkit-backdrop-filter: blur(18px) saturate(145%); backdrop-filter: blur(18px) saturate(145%); }
body[data-screen="main"] .profile-hub-provider,
body[data-screen="main"] .profile-hub-bonus,
body[data-screen="main"] .bonus-hero,
body[data-screen="main"] .provider-finance-grid .provider-finance-net,
body[data-screen="main"] .courier-job-card.active-job { background: linear-gradient(135deg, rgba(201,244,234,.3), rgba(255,255,255,.12)); }
body[data-screen="main"] .provider-metric-mint { background: linear-gradient(135deg, rgba(193,241,226,.32), rgba(255,255,255,.1)); }
body[data-screen="main"] .provider-metric-sky { background: linear-gradient(135deg, rgba(196,230,241,.3), rgba(255,255,255,.1)); }
body[data-screen="main"] .provider-metric-champagne { background: linear-gradient(135deg, rgba(239,218,174,.3), rgba(255,255,255,.1)); }
body[data-screen="main"] .provider-metric-lilac { background: linear-gradient(135deg, rgba(220,209,238,.28), rgba(255,255,255,.1)); }
body[data-screen="main"] .notification-feed-item.unread { background: rgba(190,242,229,.22); }
body[data-screen="main"] .payment-method-option.selected,
body[data-screen="main"] .completed-panel { background: linear-gradient(135deg, rgba(190,242,229,.28), rgba(255,255,255,.12)); }
body[data-screen="main"] .provider-swipe-card.has-photo .swipe-card-body { border-color: rgba(255,255,255,.62); background: rgba(255,255,255,.26); box-shadow: 0 14px 34px rgba(9,37,35,.14), inset 0 1px 0 rgba(255,255,255,.66); -webkit-backdrop-filter: blur(22px) saturate(145%); backdrop-filter: blur(22px) saturate(145%); }
body[data-screen="main"] .chat-composer,
body[data-screen="main"] .courier-work-actions { border-color: rgba(255,255,255,.66); background: rgba(255,255,255,.16); box-shadow: 0 16px 40px rgba(16,42,45,.13), inset 0 1px 0 rgba(255,255,255,.76); -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%); }
body[data-screen="main"] .chat-message > div { border-color: rgba(255,255,255,.58); background: rgba(255,255,255,.26); box-shadow: 0 8px 24px rgba(20,58,54,.055), inset 0 1px 0 rgba(255,255,255,.62); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
body[data-screen="main"] .chat-message.own > div { background: rgba(195,241,230,.34); }
body[data-screen="main"] .bottom-nav { border-color: rgba(255,255,255,.62); background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(34px) saturate(165%); backdrop-filter: blur(34px) saturate(165%); }
body[data-screen="main"] input,
body[data-screen="main"] textarea,
body[data-screen="main"] select { border-color: rgba(255,255,255,.64); background: rgba(255,255,255,.56); box-shadow: inset 0 1px 0 rgba(255,255,255,.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

@media (max-width: 600px) {
  body[data-screen="main"] .app::before { background-position: center 46%; }
  body[data-screen="main"] .app::after { background: linear-gradient(180deg, rgba(248,244,234,.55) 0%, rgba(232,249,245,.28) 44%, rgba(246,238,223,.72) 100%); }
}

/* Category imagery keeps the eight nearby-service cards recognizable at a glance. */
.category-card.category-card-image { isolation: isolate; min-height: 132px; color: #fff; background-color: #d9eee9; background-image: linear-gradient(180deg, rgba(9,37,35,.03) 22%, rgba(9,37,35,.18) 52%, rgba(9,37,35,.82) 100%), var(--category-image); background-position: center; background-size: cover; box-shadow: 0 14px 34px rgba(17,58,54,.12); }
.category-card.category-card-image::after { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); pointer-events: none; }
.category-card.category-card-image > span { position: relative; z-index: 1; }
.category-card.category-card-image .category-card-icon { color: #075f59; background: rgba(255,252,246,.82); box-shadow: 0 8px 20px rgba(9,37,35,.1); backdrop-filter: blur(10px); }
.category-card.category-card-image strong { color: #fff; text-shadow: 0 2px 10px rgba(9,37,35,.42); }
.category-card.category-card-image small,
.category-card.category-card-image:nth-child(1) small { color: rgba(255,255,255,.86); text-shadow: 0 2px 8px rgba(9,37,35,.5); }
.category-card.category-card-image:nth-child(1),
.category-card.category-card-image:nth-child(2),
.category-card.category-card-image:nth-child(3),
.category-card.category-card-image:nth-child(4),
.category-card.category-card-image:nth-child(5),
.category-card.category-card-image:nth-child(6),
.category-card.category-card-image:nth-child(7),
.category-card.category-card-image:nth-child(8) { background-color: #d9eee9; background-image: linear-gradient(180deg, rgba(9,37,35,.03) 22%, rgba(9,37,35,.18) 52%, rgba(9,37,35,.82) 100%), var(--category-image); }
body[data-screen="main"] .bento-grid { grid-auto-rows: 140px; }

@media (max-width: 760px) {
  body[data-screen="main"] .bento-grid { grid-auto-rows: 132px; }
  .category-card.category-card-image { padding: 13px; }
}

/* Home category carousel: light WebP photos, calm snap scrolling and a visible next card. */
.categories-all-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 68px; min-height: 34px; border: 1px solid rgba(8,115,106,.12); border-radius: 999px; padding: 0 11px; background: rgba(252,248,240,.62); box-shadow: 0 4px 14px rgba(25,55,54,.04); backdrop-filter: blur(14px); }
#category-grid.bento-grid { display: grid; grid-template-columns: none; grid-template-rows: 270px; grid-auto-flow: column; grid-auto-columns: clamp(148px,38vw,174px); gap: 11px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 1px; overscroll-behavior-inline: contain; padding: 2px max(14vw,52px) 12px 1px; margin-inline: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#category-grid.bento-grid::-webkit-scrollbar { display: none; }
#category-grid .category-card { grid-column: auto; grid-row: auto; min-height: 270px; scroll-snap-align: start; scroll-snap-stop: normal; border-radius: 8px; padding: 14px; transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease; }
#category-grid .category-card:active { transform: scale(.985); }
#category-grid .category-card > span:last-child { align-self: end; }
#category-grid .category-card strong { display: block; font-size: 17px; line-height: 1.18; }
#category-grid .category-card small { display: none; }
#category-grid .category-card-icon { width: 38px; height: 38px; }
.category-carousel-dots { display: flex; justify-content: center; align-items: center; gap: 5px; min-height: 15px; margin-top: 1px; }
.category-carousel-dot { width: 6px; height: 6px; border: 0; border-radius: 999px; padding: 0; background: rgba(8,91,85,.2); transition: width .24s ease, background .24s ease; }
.category-carousel-dot.is-active { width: 20px; background: #0f9f91; }

@media (min-width: 720px) {
  #category-grid.bento-grid { grid-auto-columns: 174px; padding-right: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  #category-grid .category-card,
  .category-carousel-dot { transition: none; }
}

/* All top providers move together around one calm, glass-edged orbit. */
#nearby-providers.provider-orbit-deck { overflow: hidden; padding: 12px 0 20px; }
#nearby-providers .provider-orbit-stage { width: min(calc(100% - 42px),440px); height: 454px; perspective: 1200px; isolation: isolate; }
#nearby-providers .provider-orbit-stage .provider-swipe-card { visibility: visible; border: 1px solid rgba(255,255,255,.68); background: rgba(255,252,245,.5); box-shadow: inset 0 0 0 1px rgba(15,159,145,.08), 0 20px 46px rgba(16,61,56,.1); backdrop-filter: blur(16px) saturate(118%); transition: transform 1.05s cubic-bezier(.22,1,.36,1), opacity .9s ease, filter .9s ease, box-shadow .9s ease; will-change: transform, opacity; }
#nearby-providers .provider-orbit-stage .provider-swipe-card[data-position="0"] { z-index: 7; visibility: visible; opacity: 1; filter: none; transform: translate3d(0,0,80px) rotateY(0) scale(1); pointer-events: auto; }
#nearby-providers .provider-orbit-stage .provider-swipe-card[data-position="1"] { z-index: 5; visibility: visible; opacity: .68; filter: saturate(.86) brightness(.96); transform: translate3d(48%,-4%,10px) rotateY(-11deg) scale(.61); pointer-events: auto; }
#nearby-providers .provider-orbit-stage .provider-swipe-card[data-position="2"] { z-index: 3; visibility: visible; opacity: .3; filter: saturate(.72) brightness(.94); transform: translate3d(72%,4%,-70px) rotateY(-18deg) scale(.4); pointer-events: auto; }
#nearby-providers .provider-orbit-stage .provider-swipe-card[data-position="3"] { z-index: 1; visibility: visible; opacity: .13; filter: saturate(.58) brightness(.9); transform: translate3d(0,-8%,-130px) rotateY(0) scale(.31); pointer-events: auto; }
#nearby-providers .provider-orbit-stage .provider-swipe-card[data-position="4"] { z-index: 2; visibility: visible; opacity: .3; filter: saturate(.72) brightness(.94); transform: translate3d(-72%,4%,-70px) rotateY(18deg) scale(.4); pointer-events: auto; }
#nearby-providers .provider-orbit-stage .provider-swipe-card[data-position="5"] { z-index: 4; visibility: visible; opacity: .68; filter: saturate(.86) brightness(.96); transform: translate3d(-48%,-4%,10px) rotateY(11deg) scale(.61); pointer-events: auto; }
#nearby-providers .provider-orbit-stage .provider-swipe-card:not([data-position="0"]) .swipe-card-body,
#nearby-providers .provider-orbit-stage .provider-swipe-card:not([data-position="0"]) .provider-state,
#nearby-providers .provider-orbit-stage .provider-swipe-card:not([data-position="0"]) .swipe-verified,
#nearby-providers .provider-orbit-stage .provider-swipe-card:not([data-position="0"]) .swipe-provider-count { pointer-events: none; }
#nearby-providers .provider-orbit-stage .provider-swipe-card.opening-profile { opacity: 0 !important; }

@media (max-width: 430px) {
  #nearby-providers .provider-orbit-stage { width: calc(100% - 34px); height: 438px; }
  #nearby-providers .provider-orbit-stage .provider-swipe-card[data-position="1"] { transform: translate3d(44%,-4%,10px) rotateY(-10deg) scale(.58); }
  #nearby-providers .provider-orbit-stage .provider-swipe-card[data-position="5"] { transform: translate3d(-44%,-4%,10px) rotateY(10deg) scale(.58); }
}

/* Provider copy stays crisp on yellow, photo and city-glass backgrounds. */
body[data-screen="main"] .provider-swipe-card.has-photo .swipe-card-body {
  border-color: rgba(255,255,255,.78);
  background: linear-gradient(135deg, rgba(255,252,244,.68), rgba(232,249,244,.52));
  box-shadow: 0 16px 36px rgba(9,37,35,.18), inset 0 1px 0 rgba(255,255,255,.88);
}
body[data-screen="main"] .provider-card-copy strong,
body[data-screen="main"] .swipe-provider-heading h3,
body[data-screen="main"] .favorite-provider-heading h2,
body[data-screen="main"] .offer-card h2 {
  color: #102e2b;
  font-weight: 850;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
body[data-screen="main"] .provider-rating {
  color: #644b00;
  font-weight: 850;
  text-shadow: 0 1px 0 rgba(255,255,255,.72);
}
body[data-screen="main"] .swipe-provider-price,
body[data-screen="main"] .provider-card-price,
body[data-screen="main"] .offer-footer > strong {
  color: #045f58;
  font-weight: 850;
}
body[data-screen="main"] .swipe-provider-location,
body[data-screen="main"] .provider-location,
body[data-screen="main"] .favorite-provider-body .provider-location {
  color: #304b47;
  font-weight: 700;
}
body[data-screen="main"] .provider-tags span {
  border-color: rgba(8,115,106,.12);
  color: #174b45;
  background: rgba(218,246,238,.7);
  font-weight: 760;
}
body[data-screen="main"] .provider-state,
body[data-screen="main"] .swipe-provider-count,
body[data-screen="main"] .swipe-verified {
  color: #214d48;
  font-weight: 800;
}
body[data-screen="main"] .provider-state.available {
  color: #045f58;
}
body[data-screen="main"] .provider-profile-cover-meta .provider-rating {
  color: #fff2b5;
  text-shadow: 0 2px 5px rgba(0,0,0,.78), 0 0 16px rgba(0,0,0,.46);
}
body[data-screen="main"] .provider-profile-cover-meta .provider-location {
  color: #fff;
  font-weight: 750;
  text-shadow: 0 2px 5px rgba(0,0,0,.8), 0 0 16px rgba(0,0,0,.5);
}

/* Search uses the same calm crystal language as the bottom navigation. */
body[data-screen="main"] .search-box,
body[data-screen="main"] .search-input-wrap {
  border: 1px solid rgba(255,255,255,.66);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(19,32,31,.1), 0 0 24px rgba(18,190,174,.14), inset 0 1px 0 rgba(255,255,255,.84), inset 0 -1px 0 rgba(15,105,96,.05);
  -webkit-backdrop-filter: blur(34px) saturate(165%);
  backdrop-filter: blur(34px) saturate(165%);
}
body[data-screen="main"] .search-box {
  min-height: 62px;
  color: #234d48;
  animation: crystal-search-breathe 4s ease-in-out infinite;
}
body[data-screen="main"] .search-box span:last-child {
  font-weight: 760;
}
body[data-screen="main"] .search-input-wrap {
  min-height: 60px;
  margin-top: 20px;
  padding: 0 20px;
}
body[data-screen="main"] .search-input-wrap input {
  color: #173c38;
  font-weight: 720;
}
body[data-screen="main"] .search-input-wrap input::placeholder {
  color: #526b67;
  opacity: 1;
}
body[data-screen="main"] .search-input-wrap:focus-within {
  border-color: rgba(15,159,145,.5);
  box-shadow: 0 17px 42px rgba(13,91,82,.12), 0 0 30px rgba(18,190,174,.2), inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 4px rgba(15,159,145,.08);
}
body[data-screen="main"] .search-input-wrap input:focus-visible {
  outline: 0;
}
body[data-screen="main"] .search-box .search-icon,
body[data-screen="main"] .search-input-wrap .search-icon {
  flex: 0 0 20px;
  color: #08736a;
}
body[data-screen="main"] #search-results {
  gap: 9px;
  margin-top: 14px;
}
body[data-screen="main"] #search-results .empty-state {
  border-color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
}
@keyframes crystal-search-breathe {
  50% {
    border-color: rgba(190,245,231,.88);
    background: rgba(207,247,237,.2);
    box-shadow: 0 17px 42px rgba(13,91,82,.12), 0 0 34px rgba(18,190,174,.2), inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 5px rgba(15,159,145,.045);
  }
}

/* Ratings use a restrained golden light while keeping strong text contrast. */
body[data-screen="main"] .provider-card .provider-rating,
body[data-screen="main"] .swipe-card-body .provider-rating,
body[data-screen="main"] .favorite-provider-card .provider-rating,
body[data-screen="main"] .offer-card .provider-rating {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin: 0;
  border: 1px solid rgba(171,119,0,.24);
  border-radius: 999px;
  padding: 3px 8px;
  color: #5e4300;
  background: linear-gradient(135deg, rgba(255,235,167,.78), rgba(255,215,102,.56));
  box-shadow: 0 0 16px rgba(255,196,52,.3), inset 0 1px 0 rgba(255,255,255,.7);
  font-weight: 850;
  text-shadow: 0 1px 0 rgba(255,255,255,.74);
}
body[data-screen="main"] .provider-profile-cover-meta .provider-rating {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(255,226,135,.58);
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff4c5;
  background: rgba(45,34,4,.48);
  box-shadow: 0 0 18px rgba(255,196,52,.32), inset 0 1px 0 rgba(255,255,255,.18);
  text-shadow: 0 2px 5px rgba(0,0,0,.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
body[data-screen="main"] .client-location-manual {
  border-color: rgba(255,255,255,.64);
  background: rgba(255,255,255,.14);
  box-shadow: 0 14px 34px rgba(20,58,54,.07), inset 0 1px 0 rgba(255,255,255,.74);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
}

@media (max-width: 520px) {
  .client-location-bar { align-items: flex-start; }
  .client-location-actions { max-width: 190px; }
  .client-location-actions .secondary-button { min-height: 34px; padding: 0 9px; font-size: 10px; }
  .client-location-manual { grid-template-columns: 1fr; }
  .client-location-manual label,
  .client-location-manual p { grid-column: auto; }
  .client-location-manual .primary-button { width: 100%; }
}

/* Search suggestions and every client-order step share one readable glass system. */
body[data-screen="main"] #search-results > .list-item,
body[data-screen="main"] #matches-list > .offer-card,
body[data-screen="main"] #view-new-order .form-card,
body[data-screen="main"] #view-orders .order-item,
body[data-screen="main"] #view-order-detail .order-detail-card,
body[data-screen="main"] #view-order-detail .selected-provider-block,
body[data-screen="main"] #view-order-detail .order-price-panel,
body[data-screen="main"] #view-order-detail .next-step-panel,
body[data-screen="main"] .order-flow-view .glass-panel,
body[data-screen="main"] .order-flow-view .flow-action-card,
body[data-screen="main"] .order-flow-view .payment-method-option,
body[data-screen="main"] .order-flow-view .info-note {
  border-color: rgba(255,255,255,.68);
  background: linear-gradient(135deg, rgba(255,255,255,.24), rgba(225,248,242,.13));
  box-shadow: 0 15px 38px rgba(16,56,52,.085), inset 0 1px 0 rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(26px) saturate(152%);
  backdrop-filter: blur(26px) saturate(152%);
}
body[data-screen="main"] #search-results > .list-item,
body[data-screen="main"] #matches-list > .offer-card {
  animation: floating-panel-in .34s cubic-bezier(.22,1,.36,1) both;
}
body[data-screen="main"] #search-results > :nth-child(2),
body[data-screen="main"] #matches-list > :nth-child(2) { animation-delay: .045s; }
body[data-screen="main"] #search-results > :nth-child(3),
body[data-screen="main"] #matches-list > :nth-child(3) { animation-delay: .09s; }
body[data-screen="main"] #search-results > :nth-child(n+4),
body[data-screen="main"] #matches-list > :nth-child(n+4) { animation-delay: .12s; }
body[data-screen="main"] #search-results .list-item h3,
body[data-screen="main"] #matches-list .offer-card h2,
body[data-screen="main"] #view-new-order .form-card label > span,
body[data-screen="main"] #view-order-detail h2,
body[data-screen="main"] .order-flow-view h2,
body[data-screen="main"] .order-flow-view strong {
  color: #153833;
  font-weight: 820;
}
body[data-screen="main"] #search-results .list-item p,
body[data-screen="main"] #matches-list .offer-message,
body[data-screen="main"] #view-order-detail .next-step-panel p,
body[data-screen="main"] .order-flow-view .muted,
body[data-screen="main"] .order-flow-view .flow-action-card > p,
body[data-screen="main"] .order-flow-view small {
  color: #405a55;
  font-weight: 650;
}
body[data-screen="main"] #view-new-order input,
body[data-screen="main"] #view-new-order textarea,
body[data-screen="main"] .order-flow-view input,
body[data-screen="main"] .order-flow-view textarea,
body[data-screen="main"] .order-flow-view select {
  border-color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}
body[data-screen="main"] .order-flow-view .payment-method-option.selected,
body[data-screen="main"] .order-flow-view .completed-panel {
  border-color: rgba(67,190,164,.38);
  background: linear-gradient(135deg, rgba(190,242,229,.38), rgba(255,255,255,.16));
}
body[data-screen="main"] #view-order-detail .order-price-panel,
body[data-screen="main"] .order-flow-view .flow-price,
body[data-screen="main"] .order-flow-view .completion-total {
  color: #075f59;
}
body[data-screen="main"] #view-order-detail .next-step-panel,
body[data-screen="main"] .order-flow-view .flow-safety-note,
body[data-screen="main"] .order-flow-view .completion-check {
  border-left: 3px solid rgba(15,159,145,.62);
  background: rgba(211,246,237,.24);
}
@keyframes floating-panel-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Home delivery map: approximate activity only, never a courier's exact live position. */
.home-courier-section { margin-top: 30px; }
.home-courier-heading { align-items: end; }
.home-courier-privacy {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 999px;
  padding: 0 11px;
  color: #315e58;
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
  font-size: 10px;
  font-weight: 780;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
.home-courier-widget {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(128px, .72fr);
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(7,121,111,.46);
  border-radius: 20px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.24), rgba(213,246,238,.12));
  box-shadow: 0 20px 54px rgba(13,62,56,.1), inset 0 1px 0 rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
}
.home-courier-map {
  position: relative;
  min-height: 226px;
  overflow: hidden;
  border: 1px solid rgba(7,121,111,.42);
  border-radius: 15px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.76) 0 8%, transparent 9%),
    linear-gradient(140deg, rgba(213,244,238,.74), rgba(239,247,236,.68) 54%, rgba(198,235,230,.64));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 12px 28px rgba(24,77,69,.08);
}
.home-courier-map::before,
.home-courier-map::after {
  position: absolute;
  content: "";
  border-radius: 44% 56% 63% 37%;
  background: rgba(60,170,151,.1);
}
.home-courier-map::before { width: 118px; height: 74px; right: -22px; top: 56px; transform: rotate(-16deg); }
.home-courier-map::after { width: 96px; height: 66px; left: -18px; bottom: 20px; transform: rotate(18deg); }
.home-courier-streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-courier-streets path {
  fill: none;
  stroke: rgba(255,255,255,.84);
  stroke-width: 8;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 0 rgba(43,135,122,.12));
}
.home-courier-streets .street-main { stroke-width: 15; }
.home-courier-map-topline {
  position: absolute;
  top: 11px;
  right: 11px;
  left: 11px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.home-courier-map-topline > span,
.home-courier-map-topline > small {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  padding: 0 9px;
  color: #1d514b;
  background: rgba(255,255,255,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
  font-size: 10px;
  font-weight: 800;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.home-courier-map-topline > small i {
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #11a98f;
  box-shadow: 0 0 0 4px rgba(17,169,143,.12);
}
.home-client-map-pin {
  position: absolute;
  z-index: 4;
  left: 47%;
  top: 48%;
  width: 28px;
  height: 28px;
  border: 5px solid rgba(255,255,255,.9);
  border-radius: 50% 50% 50% 8px;
  background: #087b70;
  box-shadow: 0 7px 18px rgba(8,92,84,.25);
  transform: translate(-50%, -50%) rotate(-45deg);
}
.home-client-map-pin i {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}
.home-courier-marker {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 11px;
  color: #076b62;
  background: rgba(255,255,255,.76);
  box-shadow: 0 8px 20px rgba(18,95,84,.18), inset 0 1px 0 #fff;
}
.home-courier-marker svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-courier-marker .qelway-courier-icon { width: 22px; height: 22px; stroke-width: 1.45; }
.courier-marker-one { left: 15%; top: 31%; animation: home-courier-drift-one 10s ease-in-out infinite alternate; }
.courier-marker-two { right: 15%; top: 33%; animation: home-courier-drift-two 12s ease-in-out infinite alternate; }
.courier-marker-three { left: 25%; bottom: 17%; animation: home-courier-drift-three 11s ease-in-out infinite alternate; }
.courier-marker-four { right: 28%; bottom: 14%; animation: home-courier-drift-four 13s ease-in-out infinite alternate; }
.home-courier-map > p {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 8px;
  left: 10px;
  margin: 0;
  color: #52726d;
  font-size: 8px;
  font-weight: 680;
  text-align: center;
}
.home-courier-actions { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.home-courier-action {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 2px 9px;
  min-width: 0;
  border: 1px solid rgba(7,121,111,.38);
  border-radius: 15px;
  padding: 13px 11px;
  color: #174a45;
  background: rgba(255,255,255,.2);
  box-shadow: 0 12px 26px rgba(20,69,63,.075), inset 0 1px 0 rgba(255,255,255,.84);
  cursor: pointer;
  text-align: left;
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
  transition: transform .24s ease, background .24s ease, box-shadow .24s ease;
}
.home-courier-action:hover { transform: translateY(-2px); background: rgba(255,255,255,.38); box-shadow: 0 16px 32px rgba(20,69,63,.11), inset 0 1px 0 rgba(255,255,255,.9); }
.home-courier-action.primary { color: #fff; background: linear-gradient(145deg, rgba(8,128,117,.9), rgba(7,97,89,.94)); box-shadow: 0 14px 30px rgba(7,103,94,.22), inset 0 1px 0 rgba(255,255,255,.28); }
.home-courier-action > span { grid-row: 1 / 3; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #08766c; background: rgba(222,249,242,.82); }
.home-courier-action.primary > span { color: #078f84; background: rgba(240,255,251,.9); }
.home-courier-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-courier-action strong { min-width: 0; font-size: 12px; line-height: 1.15; }
.home-courier-action small { overflow: hidden; color: #54716d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.home-courier-action.primary small { color: rgba(255,255,255,.72); }
.home-courier-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.home-courier-stats > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(7,121,111,.34);
  border-radius: 13px;
  padding: 9px 11px;
  background: rgba(255,255,255,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
.home-courier-stats p { min-width: 0; margin: 0; }
.home-courier-stats small { display: block; color: #52706b; font-size: 9px; }
.home-courier-stats strong { display: block; margin-top: 2px; color: #154a44; font-size: 12px; }
.courier-online-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: #13ad91; box-shadow: 0 0 0 6px rgba(19,173,145,.11), 0 0 16px rgba(19,173,145,.35); }
.courier-time-icon { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: #08766c; background: rgba(215,247,239,.65); }
.courier-time-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@keyframes home-courier-drift-one { to { transform: translate(26px, 18px) rotate(4deg); } }
@keyframes home-courier-drift-two { to { transform: translate(-22px, 26px) rotate(-5deg); } }
@keyframes home-courier-drift-three { to { transform: translate(34px, -16px) rotate(5deg); } }
@keyframes home-courier-drift-four { to { transform: translate(-26px, -18px) rotate(-4deg); } }

@media (max-width: 430px) {
  .home-courier-widget { grid-template-columns: minmax(0, 1.22fr) minmax(112px, .78fr); gap: 9px; padding: 9px; }
  .home-courier-map { min-height: 214px; }
  .home-courier-map-topline > small { display: none; }
  .home-courier-action { grid-template-columns: 28px minmax(0,1fr); gap: 2px 7px; padding: 10px 8px; }
  .home-courier-action > span { width: 28px; height: 28px; border-radius: 9px; }
  .home-courier-action svg { width: 17px; height: 17px; }
  .home-courier-action strong { font-size: 10px; }
  .home-courier-action small { font-size: 8px; }
  .home-courier-stats > div { gap: 8px; padding: 8px 9px; }
  .home-courier-stats small { font-size: 8px; }
  .home-courier-stats strong { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-screen="main"] #search-results > .list-item,
  body[data-screen="main"] #matches-list > .offer-card,
  .home-courier-marker { animation: none; }
}
