body { background:var(--bg); color:var(--ink); }
.services-page { min-height:100vh; min-height:100dvh; }
.services-shell { max-width:1120px; margin:auto; padding:clamp(16px,4vw,42px); }
.services-header { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:24px; }
.services-header > a:last-child { color:var(--teal); font-weight:700; }
.services-nav { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.services-nav[hidden] { display:none; }
.services-nav a { color:var(--muted); border:1px solid var(--line); border-radius:24px; padding:9px 14px; font-size:.9rem; font-weight:700; }
.services-nav a[aria-current=page] { color:var(--ink); background:var(--soft); }
.services-title { margin:12px 0 20px; }
.services-title h1 { margin:0; font-size:clamp(1.55rem,5vw,2.3rem); letter-spacing:-.035em; }
.services-title p { color:var(--muted); margin:8px 0 0; }
.services-status:empty { display:none; }
.services-status { color:var(--muted); overflow-wrap:anywhere; }
.services-status.error { color:var(--ink); background:var(--soft); padding:12px; border-radius:12px; }
.services-stack { display:grid; gap:14px; min-width:0; }
.services-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; align-items:start; }
.services-shell h2 { margin:0 0 10px; font-size:1.15rem; }
.services-shell h3 { margin:0 0 6px; font-size:1rem; }
.services-shell p { overflow-wrap:anywhere; }
.services-shell .card > :last-child { margin-bottom:0; }
.services-shell form { display:grid; gap:13px; }
.services-shell fieldset { min-width:0; border:1px solid var(--line); border-radius:12px; padding:12px; }
.services-shell legend { font-weight:700; }
.services-shell .row { flex-wrap:wrap; }
.services-shell .primary,.services-shell .secondary,.services-shell .danger { text-align:center; min-height:44px; }
.services-shell .muted { line-height:1.5; }
.services-shell .check { display:flex; align-items:center; gap:8px; }
.services-shell .check input { width:auto; accent-color:var(--teal); }
.service-location { display:grid; gap:6px; min-width:0; }
.services-shell [data-place] > .service-location + label,
.services-shell [data-place] > .service-position { margin-top:12px; }
.service-position { display:grid; gap:10px; justify-items:start; }
.service-position [role=status] { font-size:.875rem; }
.service-position [data-point-label]:empty,
.service-position [data-map-message]:empty,
.service-position [hidden] { display:none; }
.service-position-actions { display:flex; flex-wrap:wrap; gap:8px; }
.service-position-map { width:100%; height:210px; border:1px solid var(--line); border-radius:12px; isolation:isolate; }
.service-map-pin { background:#087a6d; border:3px solid #fff; border-radius:50%; box-shadow:0 1px 5px #0009; }
.service-place-description { display:grid; gap:6px; margin-top:14px; }
.service-place-examples { display:grid; gap:4px; }
.service-deposit-select { position:relative; min-width:0; }
.service-deposit-select select { appearance:none; padding-inline-end:40px; }
.service-deposit-select::after {
  content:''; position:absolute; inset-inline-end:16px; top:50%; width:8px; height:8px;
  border-right:2px solid var(--muted); border-bottom:2px solid var(--muted);
  transform:translateY(-70%) rotate(45deg); pointer-events:none;
}
@media(forced-colors:active) {
  .service-deposit-select select { appearance:auto; }
  .service-deposit-select::after { display:none; }
}
.service-suggestions { display:grid; gap:4px; max-height:180px; overflow:auto; }
.service-suggestions:empty { display:none; }
.service-suggestions button { text-align:left!important; }
.service-zones { display:flex; flex-wrap:wrap; gap:5px; }
.service-zones button { border:1px solid var(--line); background:var(--soft); color:var(--ink); border-radius:16px; padding:5px 10px; }
.service-status-pill { display:inline-block; background:var(--soft); color:var(--ink); border-radius:14px; padding:4px 10px; font-size:.82rem; font-weight:700; }
.service-thread { border:1px solid var(--line); padding:12px 14px; border-radius:12px; margin-top:10px; min-width:0; }
.service-thread > summary { margin:0; line-height:1.6; color:var(--ink); }
.service-thread > summary small { color:var(--muted); font-weight:600; margin-inline-start:8px; }
.service-thread[open] > summary { margin-bottom:12px; }
.service-thread .link { width:fit-content; min-height:44px; text-align:left; }
.service-case-option { border-color:var(--line); margin:0; padding:10px 0 0; }
.service-case-option > summary { margin:0; padding:5px 0; }
.service-case-option[open] > summary { margin-bottom:8px; }
.service-case-actions { align-items:stretch; }
.service-case-type { margin:0 0 6px; }
.service-case-card .secondary { display:inline-flex; align-items:center; }
.service-messages { display:grid; gap:7px; margin:0 0 12px; padding:0; list-style:none; max-height:330px; overflow:auto; }
.service-messages li { white-space:pre-wrap; overflow-wrap:anywhere; border:1px solid var(--line); padding:8px 10px; border-radius:12px; }
.service-messages li[data-event] { background:var(--soft); }
.service-messages small { display:block; color:var(--muted); margin-bottom:2px; }
.has-service-chat .services-shell { padding-bottom:96px; }
.service-chat-button { position:fixed; right:max(16px,env(safe-area-inset-right)); bottom:max(16px,env(safe-area-inset-bottom)); z-index:5; width:56px; height:56px; display:grid; place-items:center; border:0; border-radius:50%; background:#08796d; color:#fff; box-shadow:0 5px 20px #061a2060; touch-action:none; cursor:grab; }
.service-chat-button[hidden] { display:none; }
.service-chat-button.is-positioned { right:auto; bottom:auto; }
.service-chat-button:active { cursor:grabbing; }
.service-chat-badge { position:absolute; top:-5px; right:-4px; min-width:22px; min-height:22px; display:grid; place-items:center; padding:2px 4px; border:2px solid var(--card); border-radius:20px; background:#be263d; color:white; font-size:.72rem; font-weight:800; }
.service-chat-badge[hidden] { display:none; }
.service-chat-preview-backdrop { position:fixed; inset:0; z-index:4; pointer-events:none; opacity:0; background:#142d3e24; backdrop-filter:blur(3px); transition:opacity .18s ease; }
.has-chat-preview .service-chat-preview-backdrop { opacity:1; }
.service-chat-preview { position:fixed; z-index:6; width:min(285px,calc(100% - 24px)); display:grid; gap:4px; text-align:left; padding:12px 14px; border:1px solid var(--line); border-radius:14px; background:var(--card); color:var(--ink); box-shadow:0 8px 24px #081d2a40; opacity:0; visibility:hidden; pointer-events:none; transform:translateX(var(--preview-slide,20px)); transition:opacity .18s ease,transform .18s ease,visibility 0s .18s; }
.has-chat-preview .service-chat-preview { opacity:1; visibility:visible; pointer-events:auto; transform:none; transition-delay:0s; }
.service-chat-preview strong { font-size:.88rem; }
.service-chat-preview span { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; overflow-wrap:anywhere; font-size:.85rem; line-height:1.4; }
.service-chat { inset:auto max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) auto; margin:0; padding:0; border:1px solid var(--line); border-radius:20px; width:min(450px,calc(100% - 36px)); max-width:none; max-height:calc(100dvh - 36px); background:var(--card); color:var(--ink); box-shadow:0 18px 60px #07161b55; }
.service-chat::backdrop { background:#142d3e55; backdrop-filter:blur(5px); }
.service-chat-panel { display:flex; flex-direction:column; gap:10px; padding:16px; max-height:calc(100dvh - 38px); }
.service-chat-header { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.service-chat-header h2 { margin:0; font-size:1.2rem; }
.service-chat-header .close { width:44px; height:44px; flex:none; }
.service-chat-contact { margin:0; font-size:.9rem; color:var(--muted); }
.service-chat .service-messages { min-height:60px; max-height:min(38dvh,360px); margin:0; overscroll-behavior:contain; }
.service-chat .service-messages li p { margin:5px 0 0; }
.service-chat-status { margin:0; }
.service-chat-status:empty { display:none; }
.service-chat form { display:grid; gap:8px; }
.service-chat form[hidden],.service-chat label[hidden] { display:none; }
.service-chat textarea { min-height:64px; font-size:16px; }
.service-chat form button { min-height:44px; justify-self:end; }
.service-home-sos { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:16px 0 0; border-color:#d2804d; }
.service-home-sos .service-cta { color:#fff; background:#a93d29; flex-shrink:0; }
.service-home-sos p { margin:5px 0 0; color:var(--muted); }
.service-home-link { display:block; }
.service-home-link .iconbox { font-weight:800; }
.service-nav-back { display:inline-block; margin-bottom:12px; }
.service-pro-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:6px 0 12px; }
.service-pro-heading .services-title { margin:0; }
.service-live-status { display:inline-flex; align-items:center; gap:5px; flex:none; color:var(--muted); font-size:.8rem; margin:0; }
.service-live-status::before { content:''; display:inline-block; width:7px; height:7px; border-radius:50%; background:currentColor; }
.service-live-status.connected { color:#08796d; }
.dark .service-live-status.connected { color:#74e3bd; }
.service-alerts { margin-bottom:14px; }
.service-alert-switches { display:flex; flex-wrap:wrap; gap:6px 16px; }
.service-alerts .hint { margin:4px 0 0; }
.service-switch { display:inline-flex; align-items:center; gap:9px; min-height:44px; padding:4px 10px; border-radius:10px; border:1px solid var(--line); background:var(--card); color:var(--ink); font-size:.88rem; font-weight:700; }
.service-switch:disabled { opacity:.65; cursor:default; }
.service-switch-track { position:relative; flex:none; width:38px; height:22px; border-radius:20px; background:#667680; }
.service-switch-track::after { content:''; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#fff; transition:transform .15s ease; }
.service-switch[aria-checked=true] .service-switch-track { background:#16804f; }
.service-switch[aria-checked=true] .service-switch-track::after { transform:translateX(16px); }
.service-switch:focus-visible,.service-queue-filters button:focus-visible,.service-chat-button:focus-visible { outline:2px solid var(--teal); outline-offset:3px; }
.service-queue-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; margin-bottom:12px; padding:4px; border:1px solid var(--line); border-radius:14px; background:var(--card); }
.service-queue-filters button { display:flex; align-items:center; justify-content:center; gap:5px; min-height:44px; padding:4px 2px; border:0; border-radius:10px; color:var(--ink); background:transparent; font-weight:700; font-size:.85rem; line-height:1.2; }
.service-queue-filters button[aria-pressed=true] { background:var(--soft); }
.service-queue-filters span { min-width:1.35rem; padding:3px 4px; border-radius:12px; background:var(--bg); color:var(--ink); font-size:.72rem; }
.service-team-heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:4px 12px; }
.service-team-heading h2 { margin:0; }
.service-queue-empty { margin:0; padding:14px; background:var(--bg); border-radius:10px; }
.service-queue-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:10px; }
.service-team-availability { display:grid; gap:10px; padding:3px 0 5px; }
.service-directory-heading { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px 18px; margin:0 0 16px; }
.service-directory-heading .services-title { margin:0; }
.service-directory-heading .primary,.service-directory-card .secondary { display:inline-flex; align-items:center; justify-content:center; }
.service-directory-card h3 { margin:0; }
.service-directory-card p { margin:10px 0 12px; }
@media(max-width:700px) {
  .services-columns { grid-template-columns:minmax(0,1fr); }
  .service-home-sos { align-items:flex-start; flex-direction:column; }
  .services-header { margin-bottom:16px; }
  .services-nav { margin-bottom:14px; }
  .services-nav a { font-size:.82rem; padding:9px 11px; }
  .service-chat { inset:auto 0 0; width:100%; border-radius:20px 20px 0 0; }
  .service-chat-panel { padding-bottom:max(16px,env(safe-area-inset-bottom)); }
}
@media(prefers-reduced-motion:reduce) {
  .service-switch-track::after,.service-chat-preview,.service-chat-preview-backdrop { transition:none; }
}
.service-case-photo { display:block; max-width:100%; max-height:420px; border-radius:12px; object-fit:contain; }
.service-request-form,.service-request-directory { max-width:760px; }
.service-request-directory { margin-top:16px; }
.service-step-number { margin:0; color:var(--teal); font-weight:700; }
.service-request-form h2 { margin:0; }
.service-request-form h2:focus { outline:none; }
[data-request-step] { display:grid; gap:13px; min-width:0; }
[data-request-step][hidden],[data-transport-fallback][hidden] { display:none; }
.service-step-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.service-step-actions [type=submit] { flex:1 1 auto; min-width:0; }
.service-field-error { margin:0; color:var(--ink); background:var(--soft); border-inline-start:3px solid #c63849; border-radius:5px; padding:7px 9px; font-size:.84rem; }
.services-page [aria-invalid=true] { border-color:#c63849; }
.service-request-summary { display:grid; gap:0; margin:0; }
.service-request-summary div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 8px; padding:10px 0; border-bottom:1px solid var(--line); }
.service-request-summary dt { font-size:.8rem; color:var(--muted); }
.service-request-summary dd { grid-column:1; margin:0; overflow-wrap:anywhere; font-weight:650; }
.service-request-summary button { grid-column:2; grid-row:1 / span 2; min-height:44px; }
.service-progress { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); margin:8px 0 0; padding:0; list-style:none; text-align:center; }
.service-progress li { position:relative; display:grid; justify-items:center; align-content:start; gap:5px; min-width:0; padding:0 2px; color:var(--muted); font-size:.7rem; font-weight:600; }
.service-progress li+li::before { content:''; position:absolute; top:5px; right:50%; width:100%; height:2px; background:var(--line); }
.service-progress li span { z-index:1; width:12px; height:12px; border-radius:50%; background:var(--card); border:2px solid var(--muted); }
.service-progress li.is-complete span,.service-progress li[aria-current=step] span { background:var(--teal); border-color:var(--teal); }
.service-progress li.is-complete::before,.service-progress li[aria-current=step]::before { background:var(--teal); }
.service-progress li[aria-current=step] { color:var(--ink); font-weight:800; }
.service-emergency { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.service-emergency a { display:inline-flex; align-items:center; justify-content:center; }
.service-tow-assistance { display:grid; gap:10px; }
.service-tow-assistance[hidden] { display:none; }
.service-wait-heading { display:flex; align-items:center; gap:10px; }
.service-wait-bars { display:none; align-items:center; gap:3px; flex:none; color:#08796d; }
.dark .service-wait-bars { color:var(--teal); }
.service-tow-assistance[data-phase=waiting] .service-wait-bars { display:inline-flex; }
.service-wait-bars span { width:4px; height:16px; border-radius:3px; background:currentColor; animation:service-wait-pulse 1.35s ease-in-out infinite; }
.service-wait-bars span:nth-child(2) { animation-delay:.16s; }
.service-wait-bars span:nth-child(3) { animation-delay:.32s; }
@keyframes service-wait-pulse {
  0%,72%,100% { opacity:.45; transform:scaleY(.65); }
  30% { opacity:1; transform:scaleY(1); }
}
@media(prefers-reduced-motion:reduce) { .service-wait-bars span { animation:none; } }
.service-tow-assistance p { margin:4px 0 0; }
.service-tow-assistance p:empty { display:none; }
.service-tow-assistance details { padding-top:0; border:0; }
.service-tow-assistance summary { width:fit-content; margin:0; font-size:.9rem; }
.service-tow-assistance details[open] > summary { margin-bottom:10px; }
.service-tow-assistance.card { border-color:#d2804d; }
.callback-field { display:grid; gap:5px; }
