*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { border: 0; background: none; }
button:disabled { cursor: not-allowed; }
img, svg { max-width: 100%; }
img { display: block; }
fieldset { min-width: 0; }
legend { padding-inline: 0; }
h1, h2, h3, p { margin-block-start: 0; }
a { color: inherit; }
textarea { resize: vertical; }
[hidden] { display: none !important; }
#main:focus-visible, dialog.task-flow:focus-visible, #modal-heading:focus-visible { outline: none; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 15px;
  --bg: #21352d;
  --surface: #14251f;
  --ink: #f4f7f1;
  --muted: #a9b8af;
  --line: #ffffff1a;
  --accent: #d6f47a;
  --focus-ring: #91c7df;
  --accent-ink: #26381b;
  --nav: #172522;
  --soft: #1a3027;
  --secondary-action-bg: #20384d;
  --secondary-action-ink: #c8e0ff;
  --support-action-bg: #392c48;
  --support-action-ink: #ead6ff;
  --negative-action-bg: #44232c;
  --negative-action-ink: #ffb4bb;
  --status-active: #4ad982;
  --status-expired: #ef6565;
  --status-completed: #080a09;
  --status-completed-ink: #d8e2dc;
  --status-processing: #f0a33a;
  --status-reported: #80baff;
  --shadow: 0 12px 40px #13291a0d;
}
html[data-theme="light"] {
  color-scheme: light;
  --focus-ring: #24617f;
  --bg: #edf2eb;
  --surface: #fff;
  --ink: #172920;
  --muted: #4c6155;
  --line: #16302230;
  --soft: #e5eee3;
  --nav: #f7faf5;
  --secondary-action-bg: #e5eeff;
  --secondary-action-ink: #244d88;
  --support-action-bg: #f3eafa;
  --support-action-ink: #69408a;
  --negative-action-bg: #fce8eb;
  --negative-action-ink: #a32336;
  --status-active: #24773e;
  --status-expired: #b32d3b;
  --status-completed-ink: #080a09;
}

body { background: var(--bg); color: var(--ink); padding-bottom: max(96px, env(safe-area-inset-bottom)); }
p { line-height: 1.65; }
h1 { font-size: clamp(1.8rem, 2.3vw, 2.5rem); font-weight: 600; letter-spacing: -1.3px; line-height: 1.2; }
h2 { font-size: 1.6rem; letter-spacing: -0.5px; }
h3 { font-size: 21px; font-weight: 600; line-height: 1.4; }
.topbar { height: 68px; padding: 10px 30px; display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-bottom: 1px solid var(--line); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 20px; }
.brand-mark { display: block; width: 30px; height: 30px; border-radius: 8px; }
.header-city { color: var(--accent); font-size: 14px; font-weight: 600; text-align: end; overflow-wrap: anywhere; }
html[data-theme="light"] .header-city { color: var(--accent-ink); }
.bottom-nav { position: fixed; bottom: max(12px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; width: min(680px, calc(100% - 28px)); min-height: 68px; padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: var(--nav); }
.nav-btn { text-decoration: none; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px; min-width: 0; border-radius: 12px; color: var(--muted); font-size: 11px; }
.nav-btn.selected { background: var(--accent); color: var(--accent-ink); font-weight: 650; }
.nav-unread { position: absolute; top: 0; inset-inline-end: 8px; }
.icon { width: 21px; height: 21px; flex-shrink: 0; vertical-align: middle; }
.requests-page { max-width: 1440px; margin-inline: auto; padding: 28px 24px; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.heading h1 { margin-bottom: 10px; }
.task-view-label, .hint { color: var(--muted); font-size: 12px; line-height: 1.6; }
.public-content { max-width: 900px; margin-inline: auto; padding: 36px 24px; }
.public-content h2 { margin-top: 36px; }
.public-content li { margin-bottom: 14px; line-height: 1.65; }
.public-links { display: flex; flex-wrap: wrap; gap: 20px; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-200%); padding: 12px 18px; background: var(--accent); color: var(--accent-ink); z-index: 1000; border-radius: 8px; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); z-index: 150; max-width: min(480px, calc(100% - 24px)); padding: 14px 20px; border-radius: 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--accent); box-shadow: 0 8px 30px #0005; font-size: 13px; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state h2 { font-size: 20px; color: var(--ink); }
@media (max-width: 720px) {
  .topbar { height: 68px; padding-inline: 16px; }
  .requests-page { padding: 24px 10px; }
}

.experience-home { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100dvh - 164px); display: grid; place-items: center; padding: 32px 20px; background: #0e1c17; }
#home-map { position: absolute; inset: 0; z-index: -2; opacity: .78; }
.home-map .maplibregl-canvas-container { pointer-events: none; }
.home-map .maplibregl-ctrl-bottom-right { bottom: 8px; right: 8px; }
.home-map .maplibregl-ctrl-attrib { font-size: 10px; background: #14251fcc; color: #c0cbc5; }
.home-map .maplibregl-ctrl-attrib a { color: inherit; }
.experience-home::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--bg) 40%, transparent), transparent 75%), linear-gradient(0deg, var(--bg), transparent 22%, transparent 80%, color-mix(in srgb, var(--bg) 50%, transparent)); }
.home-map-pins { position: absolute; inset: 0; pointer-events: none; }
.home-map-pin { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #a9aa8b55; background: #192b2266; color: #b6b39a; opacity: .32; }
.home-map-pin::after { content: ''; position: absolute; width: 3px; height: 3px; bottom: -9px; left: 19.5px; border-radius: 50%; background: #b6b39a; }
.home-map-pin .icon { width: 22px; height: 22px; stroke-width: 1.55; }
.home-map-pin:nth-child(1) { left: 20%; top: 12%; }
.home-map-pin:nth-child(2) { left: 38%; top: 24%; }
.home-map-pin:nth-child(3) { right: 20%; top: 22%; }
.home-map-pin:nth-child(4) { left: 9%; top: 31%; }
.home-map-pin:nth-child(5) { right: 11%; bottom: 27%; }
.home-map-pin:nth-child(6) { left: 20%; bottom: 24%; }
.home-map-pin:nth-child(7) { left: 45%; bottom: 28%; }
.home-map-pin:nth-child(8) { right: 22%; bottom: 23%; }
.experience-options { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 276px)); justify-content: center; gap: 22px; width: 100%; }
.experience-card { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 100px; padding: 24px; border: 1px solid #b3d96e; background: var(--soft); border-radius: 19px; font-size: 22px; font-weight: 750; box-shadow: 0 10px 30px #0003; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.experience-card:last-child { background: var(--surface); }
.experience-card > .icon { width: 30px; height: 30px; color: var(--accent); stroke-width: 2.5; }
.experience-card:hover > .icon { color: inherit; }
@media (hover: hover) {
  .experience-card:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); transform: translateY(-3px); }
}
.experience-card:active { transform: scale(.98); }
@media (max-width: 640px) {
  .experience-options { gap: 16px; }
  .experience-card { min-height: 88px; gap: 10px; padding: 18px 10px; font-size: 17px; }
}
@media (max-height: 520px) {
  .home-map-pin:nth-child(-n+4) { top: 8px; }
  .home-map-pin:nth-child(n+5) { bottom: 8px; }
}

button, .button { min-height: 44px; }
button:disabled { opacity: 0.55; }
.primary, .secondary, .outline, .danger { border-radius: 10px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600; font-size: 13px; line-height: 1.4; text-decoration: none; }
.primary { background: var(--accent); color: var(--accent-ink); }
.primary:hover { background: #c6e66b; }
.outline { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.secondary { border: 1px solid currentColor; background: var(--support-action-bg); color: var(--support-action-ink); }
.danger, .decline-action { border: 1px solid currentColor; color: var(--negative-action-ink); background: var(--negative-action-bg); }
.wide-button { width: 100%; }
.text-button { font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.icon-button { width: 42px; height: 42px; padding: 0; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); position: relative; }
.icon-button:is(.close, .unified-close) { width: 44px; height: 44px; min-height: 44px; border-color: #d664644d; background: #9b3338; color: #fff; font-size: 25px; line-height: 1; }
.unified-close { position: static; }
input, select, textarea { width: 100%; padding: 13px 14px; min-height: 46px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); }
input, select { font-size: 16px; }
textarea { min-height: 100px; }
input[type="checkbox"] { width: 19px; min-height: 19px; accent-color: #527c2a; }
input[type="radio"] { width: auto; min-height: 18px; }
label { font-size: 0.86rem; font-weight: 600; display: grid; gap: 8px; }
label.checkbox-label { display: flex; align-items: start; gap: 10px; line-height: 1.5; }
label.checkbox-label input { margin-top: 1px; flex: 0 0 19px; }
.stack { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid > * { min-width: 0; }
.form-error { color: #ffb4bb; font-size: 13px; margin: 0; line-height: 1.5; }
.form-error:empty { display: none; }
html[data-theme="light"] .form-error { color: #a32336; }
fieldset { padding: 20px; margin: 0; border: 1px solid var(--line); border-radius: 14px; }
.choice-row { display: flex; gap: 10px; }
.choice { position: relative; flex: 1; min-width: 0; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: flex; align-items: center; justify-content: center; padding: 12px 8px; min-height: 48px; border: 2px solid var(--line); border-radius: 11px; background: var(--surface); text-align: center; font-size: 12.9px; }
.choice input:checked + span { background: var(--support-action-bg); color: var(--support-action-ink); border-color: currentColor; font-weight: 800; }
.choice input:checked + span::before { content: "✓"; margin-inline-end: 6px; }
.choice:has(input:focus-visible) span { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.amount-control { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 11px; padding-inline-end: 12px; }
.amount-control input { border: 0; background: transparent; min-width: 0; }
.amount-control:has(input:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.amount-control input:focus-visible { outline: none; }
.payment-basis .choice span { min-height: 56px; height: 100%; }
.star-picker { text-align: center; border: 0; padding: 6px; min-width: 0; }
.star-options { display: flex; justify-content: center; gap: 4px; margin-block: 8px; direction: ltr; }
.star-choice { position: relative; cursor: pointer; min-width: 40px; min-height: 48px; display: grid; place-items: center; }
.star-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.star-choice span { font-size: 36px; line-height: 1; color: #82958c; }
.star-choice.is-filled span { color: #e9ac39; }
.star-choice:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 8px; }
.star-selection { display: block; min-height: 20px; font-size: 12px; }
.unread-badge, .section-unread { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 3px 7px; border-radius: 999px; background: #c52f44; color: white; font-size: 13px; vertical-align: middle; }
@media (max-width: 400px) { .form-grid { grid-template-columns: 1fr; } }

.request-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; align-items: start; }
@property --opportunity-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.opportunity-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; gap: 4px 16px; align-items: center; width: 100%; min-width: 0; padding: 14px 18px; text-align: start; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.opportunity-card.is-arriving { animation: opportunity-border 3s linear 1; }
.opportunity-title { grid-area: 1 / 1; font-size: 17px; overflow-wrap: anywhere; }
.opportunity-status { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); box-shadow: 0 0 0 3px var(--surface); }
.opportunity-description { grid-area: 2 / 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 13px; }
.opportunity-city { grid-area: 3 / 1; color: var(--muted); font-size: 11px; }
.opportunity-price { grid-area: 1 / 2 / 4; place-self: center end; }
.opportunity-card:hover { border-color: var(--muted); }
.opportunity-card:is(:hover, :focus-visible) { animation-play-state: paused; }
@keyframes opportunity-border {
  from { --opportunity-angle: 0deg; border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--opportunity-angle), var(--line) 0deg 342deg, var(--accent) 354deg 358deg, var(--line) 360deg) border-box; }
  to { --opportunity-angle: 360deg; border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--opportunity-angle), var(--line) 0deg 342deg, var(--accent) 354deg 358deg, var(--line) 360deg) border-box; }
}
@media (prefers-reduced-motion: reduce) { .opportunity-card.is-arriving { animation: none; } }
.request-group-heading { grid-column: 1 / -1; font-size: 16px; margin: 18px 0 0; color: var(--ink); letter-spacing: 0; }
.request-item, .task-card, .task-activity { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; min-height: 0; height: auto; }
.request-item { position: relative; overflow: visible; }
.task-card { padding: 18px; }
.unified-card { position: relative; display: block; width: 100%; text-align: start; }
.request-open { position: relative; display: block; width: 100%; border-radius: 20px; }
.request-item .unified-card { border: 0; box-shadow: none; margin: 0; }
.unified-top { display: flex; direction: ltr; align-items: center; justify-content: space-between; min-height: 32px; gap: 12px; margin-bottom: 12px; }
.post-age { font-size: 12px; font-weight: 600; color: #ffaa45; }
.status-dot { display: inline-block; flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; border: 1px solid #8e9e9277; }
.status-active { background: var(--status-active); }
.status-expired { background: var(--status-expired); }
.status-completed { background: var(--status-completed); border-color: #a5b1a7; }
.status-text-active { color: var(--status-active); }
.status-text-expired { color: var(--status-expired); }
.status-text-completed { color: var(--status-completed-ink); }
.unified-body { display: grid; direction: ltr; grid-template-columns: minmax(0, 1fr) minmax(90px, auto); grid-template-rows: repeat(5, auto); gap: 6px 16px; align-items: center; }
.unified-body h3 { grid-area: 1 / 1 / auto / -1; margin: 0; text-align: start; overflow-wrap: anywhere; }
.unified-description { grid-area: 2 / 1; margin: 0; text-align: start; font-size: 11px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.unified-duration, .unified-schedule { grid-column: 1; text-align: start; overflow-wrap: anywhere; font-size: 10px; }
.unified-duration { grid-row: 3; color: #e5bd78; }
.unified-schedule { grid-row: 4; color: var(--muted); }
.unified-city { grid-area: 5 / 1; margin: 0; text-align: start; color: #89bda5; font-size: 10px; }
.unified-price { grid-area: 2 / 2 / 5; }
.price-badge { display: inline-flex; flex-direction: column; gap: 4px; place-self: center end; max-width: 100%; min-width: 0; text-align: center; border-radius: 11px; padding: 10px 11px; background: #213a2d; color: #e0f5b1; }
.price-badge strong { font-size: 28px; font-weight: 900; line-height: 1.1; white-space: nowrap; }
.price-badge small { font-size: 11px; font-weight: 400; line-height: 1.25; color: #bdcbbd; }
.unified-progress { direction: ltr; width: 100%; height: 4px; border-radius: 5px; overflow: hidden; background: var(--line); margin: 18px 0 12px; }
.unified-progress > span { display: block; height: 100%; background: var(--status-active); border-radius: inherit; transition: width 0.3s; }
.unified-footer { display: grid; direction: ltr; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; font-size: 12px; }
.unified-footer > :first-child { text-align: left; }
.unified-footer > :nth-child(2) { text-align: center; }
.unified-footer > :last-child { text-align: right; }
.unified-footer > * { overflow-wrap: anywhere; }
.unified-footer .person { display: block; color: var(--ink); }
.unified-message { color: #91c7df; }
.request-action-copy { padding: 0 18px 16px; }
.request-card-open-hit { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border-radius: inherit; }
.request-card-open-hit:focus-visible { outline-offset: -2px; }
.unified-badge { position: absolute; left: 50%; top: -1px; transform: translate(-50%, -50%); width: max-content; z-index: 3; pointer-events: none; }
.has-unread { animation: unread-glow 2.8s ease-in-out infinite; }
.is-completed { background: color-mix(in srgb, var(--surface) 92%, var(--muted)); }
.request-item.is-completed .task-card { background: transparent; }
.task-card.is-completed .unified-top, .task-card.is-completed .unified-body > :not(.unified-rating-slot), .task-card.is-completed .unified-progress, .task-card.is-completed .unified-footer { opacity: 0.85; }
.unified-rating-slot { grid-area: 2 / 2 / 4; position: relative; z-index: 2; place-self: center end; max-width: 130px; }
.inline-rating-request { width: 100%; padding: 10px; font-size: 12px; line-height: 1.4; white-space: normal; }
.received-stars { white-space: nowrap; letter-spacing: 2px; color: #91c7df; font-size: 16px; }
.owner-completion-card, .owner-rating-card { padding: 18px; }
.owner-completion-card h3, .owner-rating-card h3 { margin: 12px 0; }
.owner-completion-card p { margin: 8px 0; line-height: 1.5; }
.owner-rating-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; }
.owner-rating-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.owner-rating-copy { display: grid; gap: 6px; min-width: 0; }
.owner-rating-copy p { margin: 0; font-size: 13px; line-height: 1.5; }
.owner-rating-copy time { color: var(--muted); font-size: 12px; }
.owner-rating-copy .unified-city { grid-area: auto; }
.owner-rating-card .star-options { gap: 0; }
.owner-rating-card .star-choice { min-width: 30px; width: 30px; min-height: 44px; }
.owner-rating-card .star-choice span { font-size: 26px; }
.worker-profile-link { position: relative; z-index: 2; padding: 0; text-decoration: underline; font: inherit; min-height: 44px; }
.request-view-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-block: 12px; }
.request-view-tabs button { min-width: 0; min-height: 48px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.request-view-tabs [aria-pressed="true"] { background: var(--support-action-bg); color: var(--support-action-ink); border-color: currentColor; font-weight: 700; }
.search-filters { margin: 20px 0 40px; }
.search-filters summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 650; min-height: 44px; }
.new-request { position: fixed; z-index: 30; bottom: 104px; inset-inline-end: 30px; border-radius: 50%; width: 64px; height: 64px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 5px 18px #0003; }
.new-request .icon { width: 32px; height: 32px; }
html[data-theme="light"] .unified-duration { color: #8a5b1d; }
html[data-theme="light"] .unified-city { color: #32665a; }
html[data-theme="light"] .unified-message, html[data-theme="light"] .received-stars { color: #24617f; }
@keyframes unread-glow { 0%, 100% { box-shadow: 0 0 0 1px transparent; } 50% { box-shadow: 0 0 0 2px #609675; } }
@media (max-width: 720px) { .request-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 380px) { .unified-body { column-gap: 10px; grid-template-columns: minmax(0, 1fr) auto; } .unified-footer { font-size: 11px; gap: 5px; } }

dialog.task-flow { width: min(540px, calc(100% - 28px)); max-width: calc(100% - 20px); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 24px; overflow: auto; overscroll-behavior: contain; scroll-padding-block: 24px; }
dialog::backdrop { background: #07171199; backdrop-filter: blur(5px); }
.task-flow > .close { position: absolute; top: 20px; right: 20px; z-index: 2; }
.task-flow h2 { min-height: 44px; padding-right: 58px; margin: 0 0 18px; font-size: 24px; }
.task-flow:has(.unified-close) > .close { display: none; }
.task-detail-modal .task-card { border: 0; padding: 0; background: transparent; }
.wizard-progress { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.task-wizard progress { direction: ltr; appearance: none; width: 100%; height: 5px; border: 0; border-radius: 5px; overflow: hidden; background: #eee; color: var(--accent); display: block; margin-bottom: 20px; }
.task-wizard progress::-webkit-progress-bar { background: #eee; }
.task-wizard progress::-webkit-progress-value { background: var(--accent); }
.task-wizard progress::-moz-progress-bar { background: var(--accent); }
.task-composer { gap: 22px; }
.profession-picker { min-width: 0; }
.profession-picker label { margin-bottom: 8px; }
.profession-options { max-height: min(200px, 30dvh); margin-top: 5px; overflow-y: auto; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.profession-options [role="option"] { display: block; padding: 10px 12px; min-height: 44px; border-radius: 8px; color: var(--ink); font-size: 13px; font-weight: 600; text-align: start; cursor: pointer; }
.profession-options [role="option"]:hover, .profession-options [aria-selected="true"] { background: var(--soft); }
.profession-empty { margin: 0; padding: 10px 12px; color: var(--muted); font-size: 13px; }
.wizard-close { min-height: 46px; padding: 12px 20px; border: 1px solid #c45656; border-radius: 8px; background: #a63737; color: #fff; font-size: 13px; font-weight: 600; }
.wizard-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px; padding-top: 10px; margin-top: 36px; }
.wizard-actions > * { min-width: 0; }
.wizard-actions .outline { background: var(--secondary-action-bg); color: var(--secondary-action-ink); border-color: currentColor; }
.wizard-payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.wizard-payment-grid > * { min-width: 0; }
.wizard-payment-grid label { display: grid; grid-template-rows: minmax(44px, auto) auto; align-items: end; }
.schedule-shortcuts { display: flex; gap: 8px; margin-top: 12px; }
.schedule-fields { display: grid; gap: 12px; margin-top: 12px; }
.schedule-shortcuts .outline { background: var(--secondary-action-bg); color: var(--secondary-action-ink); padding: 8px 10px; }
.unified-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.unified-actions > :only-child { grid-column: 1 / -1; }
.management-menu { display: grid; gap: 10px; }
.management-menu button { width: 100%; }
.modal-back { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.modal-back button { width: 100%; color: var(--secondary-action-ink); }
.applicant-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.applicant-identity { display: flex; align-items: center; gap: 12px; }
.applicant-avatar, .profile-avatar { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; padding: 0; border-radius: 50%; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.applicant-avatar img, .profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.applicant-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.public-profile { text-align: center; }
.public-profile .profile-avatar { margin: 0 auto 16px; width: 80px; height: 80px; }
.public-profile h2 { padding-inline: 0; }
.profile-rating { font-size: 30px; color: #e9ac39; }
.task-activity { padding: 14px; margin: 16px 0; }
.task-activity summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; font-weight: 700; }
.coordination-current { color: #40976a; }
.coordination-status { margin: 10px 0 0; font-size: 13px; }
.coordination-stack { margin: 20px 0 0; padding: 5px 8px; list-style: none; max-height: 360px; overflow: auto; }
.coordination-stack > li { position: relative; padding: 0 12px 24px 22px; margin: 0; font-size: 13px; color: var(--muted); }
.coordination-stack > li::before { content: ""; position: absolute; left: -4px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #609675; box-shadow: 0 0 0 3px var(--surface); z-index: 1; }
.coordination-stack > li::after { content: ""; position: absolute; left: -1px; top: 9px; bottom: -9px; width: 2px; background: #609675; }
.coordination-stack > li:last-child::after { content: none; }
.coordination-stack .timeline-future { opacity: 0.75; }
.coordination-stack .timeline-future::before, .coordination-stack .timeline-future::after { background: #34483e; }
.next-label { color: var(--accent); font-weight: 700; }
.timeline-copy { display: grid; gap: 5px; }
.timeline-copy small { font-size: 10px; line-height: 1.5; }
.coordination-stack .is-current { color: var(--ink); background: var(--soft); border-radius: 8px; }
.coordination-stack .is-current::before { left: -6px; top: 3px; width: 12px; height: 12px; background: #61da8c; }
.summary-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block: 18px; padding: 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }
.summary-facts dt { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.summary-facts dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; }
@media (max-width: 360px) { dialog.task-flow { padding: 18px; } .wizard-payment-grid { grid-template-columns: 1fr; } }

.publish-feedback { text-align: center; padding: 28px 6px 12px; }
.publish-feedback h3 { margin: 20px 0 32px; font-size: 24px; line-height: 1.2; }
.publish-feedback .hint { margin-bottom: 14px; }
.publish-spinner { display: inline-block; width: 58px; height: 58px; border: 4px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: publish-spin 1s linear infinite; }
.publish-success { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.publish-success .icon { width: 36px; height: 36px; }
.publish-location-note { margin-bottom: 8px; color: var(--muted); font-size: 11px; }
@keyframes publish-spin { to { transform: rotate(360deg); } }

.map-view { position: relative; min-height: calc(100dvh - 78px); }
#map { position: absolute; inset: 0; background: #10251d; }
.today-tasks { position: absolute; top: 16px; left: 16px; background: var(--surface); border-color: var(--support-action-ink); font-size: 12px; z-index: 1; }
.map-city-label { position: absolute; top: 70px; left: 16px; z-index: 1; margin: 0; padding: 6px 10px; border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 12px; }
.map-list-link { position: absolute; top: 16px; right: 16px; background: var(--surface); z-index: 1; }
.availability-toggle { position: absolute; bottom: 104px; left: 50%; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border: 2px solid #c4d8c6; border-radius: 32px; min-height: 52px; color: white; background: #ad383e; box-shadow: 0 0 0 6px #192b2277; }
.availability-toggle[aria-pressed="true"] { background: #197c49; }
.map-fallback { position: absolute; top: 116px; left: 16px; right: 16px; padding: 20px; background: var(--surface); border-radius: 16px; max-width: 440px; }
.maplibregl-ctrl-bottom-right, .maplibregl-ctrl-bottom-left { bottom: 92px !important; }
.maplibregl-ctrl-attrib { font-size: 10px; }
.task-map-marker { width: 20px; height: 20px; min-height: 20px; padding: 0; border: 3px solid white; border-radius: 50%; background: #4ad982; box-shadow: 0 0 0 5px #4ad98233; }
.alert-card { position: fixed; bottom: max(104px, calc(92px + env(safe-area-inset-bottom))); right: max(16px, env(safe-area-inset-right)); width: min(400px, calc(100vw - 32px)); max-height: calc(100dvh - 140px); overflow: auto; overscroll-behavior: contain; padding: 20px; background: var(--surface); border: 1px solid #365b44; z-index: 60; box-shadow: 0 12px 40px #0003; }
.alert-card.is-arriving { animation: alert-arrive 500ms ease-out; }
.alert-card.is-leaving { animation: alert-leave 650ms ease-in forwards; pointer-events: none; }
.alert-card .unified-actions { margin-top: 18px; }
.alert-rotation { display: block; margin: 10px auto -4px; min-height: 32px; font-size: 11px; color: var(--muted); text-decoration: underline; }
.compact-alert { padding: 12px 14px 6px; border-radius: 18px; isolation: isolate; }
.compact-alert-open { display: flex; align-items: center; gap: 16px; width: 100%; padding: 4px 0; text-align: start; }
.compact-alert-open::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; cursor: pointer; }
.compact-alert-open:focus-visible::after { outline: 3px solid var(--focus-ring); outline-offset: -4px; }
.compact-alert-copy { display: grid; gap: 5px; flex: 1; min-width: 0; }
.compact-alert-copy > strong { font-size: 17px; }
.compact-alert-copy > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 13px; }
.compact-alert-price { display: grid; gap: 4px; flex-shrink: 0; max-width: 42%; text-align: end; }
.compact-alert-price strong { color: var(--accent); font-size: 22px; }
.compact-alert-price small { color: var(--muted); font-size: 11px; }
.compact-alert-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.compact-alert-controls button { position: relative; z-index: 2; min-height: 44px; padding: 6px 0; color: var(--muted); font-size: 11px; }
@keyframes alert-arrive { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes alert-leave { to { opacity: 0; transform: translateX(calc(-100vw - 400px)); } }
@media (max-width: 720px) { .map-view { min-height: calc(100dvh - 70px); } }

.settings-page { max-width: 1008px; margin-inline: auto; padding: 28px 24px; }
.profile-heading { text-align: center; padding: 18px 0 26px; }
.profile-identity { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; padding: 0; color: var(--ink); }
.profile-portrait { width: 88px; height: 88px; display: grid; place-items: center; background: var(--soft); border: 2px solid var(--line); border-radius: 50%; overflow: hidden; }
.profile-portrait img { width: 100%; height: 100%; object-fit: cover; }
.profile-portrait .icon { width: 36px; height: 36px; }
.profile-name { font-size: 25px; font-weight: 700; line-height: 1.2; }
.profile-rating { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.settings-menu { display: grid; gap: 8px; }
.settings-group { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.settings-group > summary, .settings-menu-row { display: flex; align-items: center; gap: 12px; min-height: 58px; width: 100%; padding: 16px; color: var(--ink); text-align: start; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.settings-group > summary::-webkit-details-marker { display: none; }
.settings-menu-row { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.settings-group > summary > .icon:last-child, .settings-menu-row > .icon:last-child { margin-inline-start: auto; width: 15px; }
.settings-group > summary > .icon:last-child { transition: transform 0.2s; }
.settings-group[open] > summary > .icon:last-child { transform: rotate(90deg); }
html[dir="rtl"] .settings-group:not([open]) > summary > .icon:last-child, html[dir="rtl"] .settings-menu-row > .icon:last-child { transform: rotate(180deg); }
.settings-content { padding: 16px; }
.settings-content summary { padding-block: 12px; cursor: pointer; }
.settings-content .choice-row { margin-bottom: 14px; }
.settings-more { margin-top: 22px; }
.settings-more > summary { min-height: 66px; padding: 22px; }
.settings-actions { display: grid; gap: 10px; }
.profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.profile-field { display: grid; align-content: start; gap: 8px; min-width: 0; }
.profile-field-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.profile-form :is(input, select, textarea) { background: var(--soft); color: var(--ink); font-size: 16px; font-weight: 400; }
.profile-field .hint { margin: 0; font-weight: 400; }
.profile-form input[type="file"] { padding: 8px; font-size: 13px; }
.profile-form input[type="file"]::file-selector-button { padding: 8px 10px; margin-inline-end: 8px; border: 0; border-radius: 6px; background: var(--secondary-action-bg); color: var(--secondary-action-ink); font: inherit; cursor: pointer; }
dialog.device-setup-modal { width: min(440px, calc(100% - 28px)); }
.permission-dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.device-permissions { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.device-permissions > section + section { border-top: 1px solid var(--line); }
.device-permission { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 8px 14px; }
.device-permission h3 { margin: 0; font-size: clamp(12px, 3.4vw, 14px); line-height: 1.3; white-space: nowrap; }
.permission-switch { display: grid; place-items: center; flex: 0 0 52px; width: 52px; min-height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; }
.permission-switch-track { position: relative; display: block; width: 52px; height: 30px; border-radius: 30px; background: #ad383e; direction: ltr; }
.permission-switch-thumb { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 160ms ease; }
.permission-switch[aria-checked="true"] .permission-switch-track { background: #197c49; }
.permission-switch[aria-checked="true"] .permission-switch-thumb { transform: translateX(22px); }
.permission-switch:disabled { opacity: 1; cursor: not-allowed; }
.permission-switch:disabled .permission-switch-track { border: 1px dashed #fff8; }
.ringtone-setting { display: grid; gap: 10px; }
.ringtone-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ringtone-actions select { flex: 1; min-width: 120px; }
.ringtone-actions button { flex-shrink: 0; }
.device-address-notice { margin-bottom: 12px; padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.device-address-notice p { margin: 0; font-size: 12px; }
.device-address-notice p + p { margin-top: 8px; }
.device-local-link { display: inline-block; padding-block: 8px; color: var(--ink); text-decoration: underline; font-weight: 600; }
.setup-feedback:empty { display: none; }
.setup-feedback { padding: 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.setup-feedback.is-error { color: var(--ink); border-color: #cf7474; }
@media (max-width: 720px) {
  .settings-page { padding: 24px 16px; }
  .profile-fields { grid-template-columns: 1fr; gap: 18px; }
}

.usage-page { max-width: 1000px; margin-inline: auto; padding: 48px 24px 32px; }
.usage-intro { max-width: 620px; margin-bottom: 30px; }
.usage-eyebrow { display: inline-block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.usage-intro h1 { margin-bottom: 14px; }
.usage-intro p { color: var(--muted); font-size: 17px; margin: 0; }
.usage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.usage-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.usage-number { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; margin-bottom: 18px; }
.usage-card h2 { font-size: 19px; font-weight: 600; margin: 0 0 10px; }
.usage-card p { color: var(--muted); margin: 0; font-size: 14px; }
.usage-preview { background: var(--soft); display: flex; flex-direction: column; justify-content: center; }
.usage-footer { margin-top: 28px; }
@media (max-width: 640px) {
  .usage-page { padding: 30px 16px 24px; }
  .usage-grid { grid-template-columns: 1fr; gap: 12px; }
  .usage-card { padding: 20px; }
}



