@font-face {
  font-family: Barlow;
  src: url('vendor/Barlow-SemiBold.ttf') format('truetype');
  font-weight: 600 800;
  font-display: swap;
}
:root {
  --ink: #182422;
  --soft: #516460;
  --paper: #fff;
  --page: #f3f5f2;
  --line: #d3dfd9;
  --active: #00645f;
  --mint: #dff5ed;
  --turquoise: #70cec0;
  --rose: #c93d79;
  --sand: #e9cb91;
  --alert: #91364a;
  --shadow: 0 8px 26px #142e2710;
  --gutter: clamp(16px, 3vw, 48px);
  --mast-height: 64px;
  --display: Barlow, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.5 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button, a { transition: background-color .15s, border-color .15s, color .15s; }
button:disabled { opacity: .55; cursor: default; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: #77cdbb35; }
:focus-visible { outline: 3px solid #23738a; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); overflow-wrap: break-word; }
h2 { font-size: clamp(24px, 2.25vw, 34px); letter-spacing: -.035em; line-height: 1.08; }
h3 { font-size: 21px; letter-spacing: -.025em; line-height: 1.16; }
small, .hint, .muted { font-size: 13px; line-height: 1.42; color: var(--soft); }
fieldset { min-inline-size: 0; }
a { color: var(--active); }
.ico { width: 19px; height: 19px; flex: none; display: inline-block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.skip { position: fixed; top: -100px; left: 10px; z-index: 1500; background: #fff; padding: 10px 18px; }
.skip:focus { top: 8px; }
.mast { background: #101716; color: #fff; border-bottom: 1px solid #2a3a36; position: sticky; top: 0; z-index: 650; }
.mast-inner, main, footer { width: min(1536px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.mast-inner { min-height: var(--mast-height); display: flex; align-items: center; gap: 19px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 700 34px/1 var(--display); letter-spacing: -.055em; text-decoration: none; color: var(--turquoise); }
/* The mark follows the short rounded bars and dot on the supplied vehicles. */
.brand-mark { display: inline-block; width: 46px; height: 22px; position: relative;
  background: radial-gradient(circle at 3.5px 17.5px, currentColor 3.5px, transparent 3.9px); }
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; height: 7px; border-radius: 8px; background: currentColor; }
.brand-mark::before { top: 3px; left: 0; width: 24px; }
.brand-mark::after { top: 3px; left: 28px; width: 14px; box-shadow: 1.5px 11px 0 1px currentColor; }
.edition { color: #d1dcd7; border-left: 1px solid #52605b; padding-left: 18px; font-size: 13px; }
.mast nav { margin-left: auto; display: flex; gap: 7px; align-items: center; }
.mast nav button { background: transparent; color: #e6eeeb; border: 1px solid transparent; padding: 9px 14px; min-height: 42px; border-radius: 9px; display: inline-flex; gap: 8px; align-items: center; font: 650 15px var(--display); }
.mast nav .nav-active { color: #94ddcf; background: #223430; border-color: #405750; }
.mast nav button:hover { background: #2b3c38; }
.mast :focus-visible, .hero :focus-visible { outline-color: #9ce7dc; }
.survey-action, .mast nav .survey-action {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; justify-content: center; align-items: center; gap: 9px;
  border: 1px solid #f59ebc; border-radius: 10px; min-height: 46px; padding: 11px 16px;
  background: linear-gradient(110deg,#a51f55,#d1356f 65%,#b92261); color: #fff; font: 700 17px/1.2 var(--display);
  box-shadow: 0 3px 12px #b8255826;
}
.survey-action:hover, .mast nav .survey-action:hover { background: linear-gradient(110deg,#8c1747,#bc265f 65%,#a71e55); }
.survey-action>* { position: relative; z-index: 1; }
.mast nav .survey-action { min-height: 44px; padding: 9px 17px; font-size: 16px; background: linear-gradient(110deg,#a51f55,#d1356f 65%,#b92261); border-color: #ef9dbb; color: #fff; box-shadow: 0 3px 14px #d1356f33; }
.mast nav .survey-action:hover { background: linear-gradient(110deg,#8c1747,#bc265f 65%,#a71e55); }
.mast nav .survey-action.nav-active { border-color: #fff; box-shadow: inset 0 0 0 1px #fff,0 3px 14px #d1356f33; }
main { padding-top: 20px; }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: center; overflow: hidden; padding: 18px clamp(20px, 2.5vw, 38px); min-height: 124px; color: #fff; background: #141c1a; border: 1px solid #22322d; border-radius: 16px; }
.hero-copy { position: relative; z-index: 1; }
.territory { display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .115em; font: 650 11px/1.3 var(--display); color: #b9d2c8; }
.territory>span:not(.route-glyph) { opacity: .65; }
.route-glyph { width: 30px; height: 8px; position: relative; display: inline-block; background: linear-gradient(var(--turquoise),var(--turquoise)) center/80% 2px no-repeat; }
.route-glyph::before, .route-glyph::after { content: ''; position: absolute; top: 0; width: 8px; height: 8px; border: 2px solid var(--turquoise); border-radius: 50%; background: #141c1a; }
.route-glyph::after { right: 0; }
.hero h1 { font-size: clamp(34px, 3.2vw, 48px); line-height: 1.06; letter-spacing: -.04em; margin: 5px 0 7px; }
.hero h1 em { font-style: normal; color: var(--turquoise); }
.hero-description { font-size: clamp(14px, 1.08vw, 17px); color: #e0e8e3; line-height: 1.4; text-wrap: pretty; }
.hero-art { position: absolute; z-index: -1; inset: 0 0 0 65%; overflow: hidden; isolation: isolate; background: #141c1a; }
.hero-lines { position: absolute; width: 100%; height: 100%; inset: 0; opacity: .62; stroke-width: 1.65; }
.hero-art::before { content: ''; position: absolute; inset: 0; opacity: .28; background-image: radial-gradient(#8fb9a8 .9px,transparent 1px); background-size: 13px 13px; mask-image: linear-gradient(90deg,transparent,#000 45%,#000); }
.hero-art .hero-bus { position: absolute; left: 8%; right: 7%; top: 15%; width: 85%; height: 78%; mix-blend-mode: lighten; }
body[data-tab=encuesta] .hero h1 em { color: #f0b0c1; }
.demo-note { display: flex; gap: 6px; flex-wrap: wrap; color: var(--soft); font-size: 12px; line-height: 1.4; width: fit-content; }
.demo-note strong { color: #795619; font-weight: 650; }
.hosted-demo { margin:8px 0; padding:7px 13px; border:1px solid #dfc58c; border-radius:8px; background:#fff6de; color:#604718; font-size:14px; }
.demo-note .text-btn { color: inherit; }
.actions, .row-actions, .route-actions, .links, .section-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.links, .section-head { justify-content: space-between; }
.section-head small { font-size: 12px; }
.geo-banner { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 7px 15px; margin-top: 11px; background: #e4f1e9; border: 1px solid #cadfd3; border-radius: 11px; font-size: 13px; }
.geo-copy { display: flex; align-items: center; gap: 9px; }
.geo-copy>.ico { color: var(--active); }
.geo-banner .actions { flex-wrap: nowrap; gap: 16px; }
.geo-banner .outline { white-space: nowrap; }
.workspace { margin-top: 16px; position: relative; display: grid; grid-template-columns: minmax(340px, 370px) minmax(0, 1fr); align-items: start; gap: 18px; scroll-margin-block-start: calc(var(--mast-height) + 16px); outline: none; }
.panel, .map-card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.panel { max-height: max(480px, calc(100dvh - 254px)); overflow: auto; scrollbar-width: thin; scrollbar-color: #a7beb4 transparent; scroll-padding-block: 20px; }
.workspace.surveying { grid-template-columns: minmax(380px, 450px) minmax(0, 1fr); }
.workspace.surveying .panel { max-height: max(520px, calc(100dvh - 254px)); }
.mobile-switch button { display: inline-flex; gap: 7px; align-items: center; justify-content: center; min-height: 40px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #475a54; font: 650 15px var(--display); }
.mobile-switch [aria-pressed=true] { color: var(--ink); background: white; border-color: #c9d7d0; box-shadow: 0 1px 3px #193f3112; }
.mobile-switch button:hover { color: var(--active); }
#panel-content { padding: 20px; }
.stack, .field { display: grid; min-width: 0; }
.stack { gap: 14px; }
.stack>* { min-width: 0; }
.field { gap: 6px; font-weight: 650; font-size: 14px; }
.input, .field input:not([type=radio],[type=checkbox]), .field select, .field textarea, select.control { appearance: auto; width: 100%; min-width: 0; padding: 10px 11px; min-height: 44px; border-radius: 8px; border: 1px solid #aebfb5; background: white; color: var(--ink); font: 400 15px/1.4 'Segoe UI',system-ui,sans-serif; }
.input::placeholder, textarea::placeholder, input::placeholder { color: #64746e; opacity: 1; }
.field textarea { min-height: 78px; resize: vertical; }
.field [aria-invalid=true], .input[aria-invalid=true] { border-color: var(--alert); }
.primary, .outline, .map-btn, .text-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; border-radius: 9px; border: 1px solid transparent; padding: 9px 14px; font: 650 16px/1.2 var(--display); }
.primary { background: var(--active); color: #fff; }
.primary:hover:not(:disabled) { background: #004e49; }
.outline, .map-btn { background: white; color: var(--ink); border-color: #bbcbc1; }
.outline:hover, .map-btn:hover { background: #eef7f1; border-color: #8eaaa0; }
.small { font-size: 14px; padding: 6px 10px; min-height: 36px; }
.text-btn { min-height: 34px; padding: 4px 1px; background: transparent; color: var(--active); font: 600 14px/1.35 'Segoe UI',system-ui,sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.search-button { width: 100%; min-height: 47px; justify-content: center; font-size: 17px; }
.search-button .ico { width: 18px; }
.trip-fields { position: relative; display: grid; gap: 14px; }
.trip-fields>.location-field>.field { padding-left: 17px; }
.trip-fields>.location-field>.field::before { content: ''; position: absolute; margin-left: -17px; margin-top: 6px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--active); }
.trip-fields>#destination>.field::before { background: #c93d79; border: 1px solid #ac2f64; border-radius: 2px; }
.trip-search-heading { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.swap { display: grid; place-items: center; flex: none; width: 39px; height: 39px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #f4f8f4; color: var(--active); }
.swap:hover { background: var(--mint); }
.location-field { position: relative; min-width: 0; }
.location-field>.field { margin-bottom: 5px; font-size: 14px; }
.pick-field { display: flex; align-items: stretch; background: white; border-radius: 10px; border: 1px solid #adbbb3; }
.pick-field:focus-within { border-color: var(--active); box-shadow: 0 0 0 2px #8bd9c94d; }
.pick-field .input { min-height: 48px; flex: 1; width: 0; border: 0; border-radius: 9px 0 0 9px; background: transparent; }
.pick-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.clear-location { display: grid; place-items: center; flex: 0 0 36px; width: 36px; padding: 0; border: 0; background: transparent; color: var(--soft); }
.clear-location .ico { width: 16px; height: 16px; }
.clear-location:hover { background: #e9f2ee; color: var(--ink); }
.pick-field:has([aria-invalid=true]) { border-color: var(--alert); }
.pick-map { display: flex; align-items: center; justify-content: center; gap: 4px; flex: none; min-width: 70px; border: 0; border-left: 1px solid var(--line); border-radius: 0 9px 9px 0; padding: 0 9px; color: var(--active); background: #f4f8f4; font: 650 14px var(--display); }
.pick-map .ico { width: 16px; height: 16px; }
.pick-map:hover { background: var(--mint); }
.suggestions { position: absolute; z-index: 30; inset: calc(100% + 5px) 0 auto; overflow: auto; overscroll-behavior: contain; max-height: 220px; border: 1px solid #b8cdc1; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px #18392b26; }
.suggestions.above { inset: auto 0 calc(100% + 5px); }
.suggestions.in-flow { position: relative; inset: auto; margin-top: 5px; }
.location-field>.form-error:not(:empty) { margin: 4px 0 6px; font-size: 13px; }
.suggestions [role=option] { padding: 7px 12px; min-height: 44px; cursor: pointer; border-bottom: 1px solid #e5ede8; }
.suggestions [role=option]:last-child { border: 0; }
.suggestions [role=option]:hover, .suggestions [aria-selected=true] { background: #e5f5ed; }
.suggestions strong, .suggestions small { display: block; }
.suggestions strong { font-size: 14px; font-weight: 600; }
.suggestions small { font-size: 12px; }
.no-places, .empty-state { padding: 12px; background: #f4f7f3; font-size: 14px; }
.no-places .text-btn { padding-inline: 0; }
.location-privacy { background: #edf6f0; border-left: 3px solid #57887a; border-radius: 4px; padding: 9px 12px; font-size: 14px; line-height: 1.45; color: #344c44; }
.selected-value { color: #06594f; }
.period-control { display: grid; border: 0; margin: 0; padding: 0; }
.period-control legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.period-group { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.period-group button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 6px 9px; border: 0; background: #fff; color: var(--soft); font: 650 15px var(--display); }
.period-group button+button { border-left: 1px solid var(--line); }
.period-group button[aria-pressed=true] { background: #dbefe6; color: #12554c; }
.period-group button[aria-pressed=true]::after { content: ''; width: 6px; height: 6px; border-radius: 100%; background: currentColor; }
.period-group button:focus-visible { outline-offset: -3px; }
.period-group .ico { width: 17px; height: 17px; }
.map-card { overflow: hidden; position: sticky; top: calc(var(--mast-height) + 16px); }
.map-head, .map-legend { display: flex; align-items: center; background: white; }
.map-head { justify-content: space-between; gap: 8px; padding: 11px 15px; border-bottom: 1px solid var(--line); }
.map-heading { display: flex; align-items: center; gap: 9px; }
.map-heading h2 { font-size: 18px; line-height: 1.2; letter-spacing: -.015em; }
.map-indicator { display: block; width: 9px; height: 9px; border-radius: 50%; background: #147f70; box-shadow: 0 0 0 4px #e4f4eb; margin: 3px; }
.map-period { flex: none; color: #3a5e53; background: #edf4ef; border: 1px solid #dae7df; border-radius: 6px; padding: 4px 8px; font-size: 12px; }
.map-viewport { position: relative; height: clamp(360px, calc(100dvh - 380px), 660px); background: #e9eeeb; }
#map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-btn { position: absolute; top: 12px; right: 12px; z-index: 550; box-shadow: 0 2px 8px #20394020; min-height: 36px; padding: 6px 10px; font-size: 14px; }
.map-btn .ico { width: 16px; }
.map-footer { display: flex; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding: 0 14px; gap: 0 10px; }
.map-legend { flex: 1; min-height: 44px; flex-wrap: wrap; gap: 5px 16px; padding: 7px 0; color: var(--soft); font-size: 12px; }
.map-legend span { display: inline-flex; gap: 6px; align-items: center; }
.route-spectrum { background: linear-gradient(90deg,#007d83 25%,#ce2d56 25% 50%,#6750b3 50% 75%,#b17a15 75%); }
.route-key { font-size: 13px; }
.route-key summary { cursor: pointer; color: var(--active); padding-block: 12px; min-height: 44px; }
.route-key[open] { flex-basis: 100%; border-top: 1px solid var(--line); }
.route-key[open]>summary { margin-bottom: 0; }
#map-route-count { display: inline-block; min-width: 22px; text-align: center; border-radius: 5px; background: #edf3ef; margin-left: 3px; font-size: 12px; }
#map-route-key { display: flex; flex-wrap: wrap; gap: 7px; padding: 7px 0; }
#map-route-key .route-badge { min-width: 44px; height: 40px; border: 2px solid transparent; font-size: 14px; }
#map-route-key .route-badge:hover { box-shadow: 0 0 0 2px #8b9f95; }
#map-route-key .route-badge[aria-pressed=true] { outline: 2px solid var(--ink); outline-offset: 2px; }
.map-help { padding: 9px 14px; background: #f8faf7; border-top: 1px solid #e4eae6; color: var(--soft); font-size: 12px; line-height: 1.4; }
.workspace.picking .map-footer, .workspace.picking .map-help { display: none; }
.swatch.walking { height: 0; border-top: 3px dotted #283e43; border-radius: 0; }
.swatch { width: 20px; height: 4px; border-radius: 4px; }
.swatch.point { width: 9px; height: 9px; }
.swatch.unmapped { display: inline-block; width: 24px; height: 0; border-top: 3px dashed #b92832; border-radius: 0; }
.access-note { padding: 9px 11px; background: #fff6f3; border: 1px solid #dfb7b0; border-radius: 9px; min-width: 0; }
.access-note summary { color: #84242a; cursor: pointer; font: 650 16px/1.3 var(--display); }
.access-note summary small { display: block; padding-left: 15px; margin-top: 3px; font: 400 12px 'Segoe UI',sans-serif; color: #84242a; }
.access-note[open] summary small { display: none; }
.access-note p { margin-top: 5px; font-size: 14px; }
.access-note .swatch { vertical-align: middle; margin-right: 2px; }
.access-note .row-actions,.empty-state .row-actions { margin-top: 6px; }
.uncertain-direction .direction-icon { background: #fae8e4; color: #a52a32; }
.trip-fields .pick-map { background: #e4f2ec; padding-inline: 9px; }
.picker { position: absolute; z-index: 600; left: 12px; right: 12px; bottom: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #8cb5a8; border-radius: 11px; padding: 12px; background: #fff; box-shadow: 0 3px 18px #1b463125; }
.picker strong, .picker small { display: block; }
.picker strong { font: 650 18px/1.2 var(--display); margin-bottom: 4px; }
.picker>.actions { flex-shrink: 0; }
.map-picking { cursor: crosshair !important; }
.mobile-switch, .mobile-only { display: none; }
.filter-list, .route-sequence { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.filter-list button { min-height: 36px; background: #fff; color: #43544d; padding: 5px 10px; border: 1px solid var(--line); border-radius: 20px; font: 650 13px var(--display); }
.filter-list button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.route-list, .stop-list { display: grid; grid-template-columns: minmax(0,1fr); }
.route-row, .stop-row { display: flex; min-width: 0; gap: 12px; align-items: center; padding: 13px 4px; border: 0; border-top: 1px solid var(--line); background: #fff; text-align: left; }
.route-row:hover, .stop-row:hover { background: #edf6f0; }
.route-row>.ico, .stop-row>.ico { margin-left: auto; color: #536a60; width: 16px; }
.route-text { min-width: 0; flex: 1; }
.route-text strong, .route-text small { display: block; }
.route-text strong { font: 650 17px var(--display); }
.route-text small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-meta { display: block; margin-top: 4px; color: var(--soft); font-size: 11px; }
.route-badge { display: inline-grid; place-items: center; min-width: 39px; height: 30px; padding-inline: 5px; border-radius: 7px; color: var(--route-ink,#fff); background: var(--route,var(--active)); font: 700 16px/1 var(--display); flex: none; }
.back-link { justify-self: start; }
.route-cover { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 85px; background: #141c1a; border-left: 6px solid var(--route); border-radius: 10px; color: white; padding: 12px; }
.route-cover p { color: #cfdfd6; font-size: 12px; }
.route-cover h2 { margin-top: 2px; font-size: 27px; }
.route-cover>.fleet-photo { width: 44%; flex: none; mix-blend-mode: lighten; }
.route-actions>* { flex: 1; }
.stop-row { min-height: 45px; }
.stop-text { min-width: 0; overflow-wrap: anywhere; }
.stop-text small { display: block; margin-top: 3px; font-size: 11px; }
.stop-order { display: inline-grid; place-items: center; min-width: 27px; height: 27px; border-radius: 50%; background: #e9f3ee; color: var(--active); font: 650 14px var(--display); }
.results:not(:empty) { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 17px; }
.result-card, .trip-card { text-align: left; border: 1px solid var(--line); border-radius: 10px; background: white; }
.trip-card { padding: 12px; }
.result-options { display: grid; gap: 10px; }
.result-card { display: grid; min-width: 0; }
.result-card:has(.result-choice[aria-pressed=true]) { border-color: var(--active); box-shadow: inset 0 0 0 1px var(--active); background: #edf8f2; }
.result-choice,.result-map-action { width: 100%; min-width: 0; padding-inline: 12px; border: 0; background: transparent; text-align: left; }
.result-choice { display: grid; gap: 8px; padding-block: 12px; border-radius: 9px 9px 0 0; }
.result-map-action { display: flex; align-items: center; gap: 8px; min-height: 44px; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; color: var(--active); font: 650 15px var(--display); }
.result-map-action .ico:last-child { margin-left: auto; width: 16px; }
.result-card button:hover { background-color: #00645f0a; }
.option-title { display: flex; justify-content: space-between; gap: 7px; align-items: center; }
.option-label { font-size: 12px; color: var(--soft); font-weight: 600; }
.selected-note { display: none; align-items: center; gap: 3px; font-size: 12px; color: var(--active); }
.selected-note .ico { width: 15px; height: 15px; }
.result-choice[aria-pressed=true] .selected-note { display: inline-flex; }
.result-stats { display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: 13px; }
.result-stats>span { display: inline-flex; align-items: center; gap: 4px; }
.result-stats .ico { width: 17px; height: 17px; }
.directions { list-style: none; padding: 0; margin: 0; }
.directions li { display: grid; grid-template-columns: 29px 1fr; gap: 9px; padding-bottom: 15px; position: relative; }
.directions li:not(:last-child)::before { content: ''; position: absolute; width: 2px; top: 29px; bottom: 0; left: 13px; background: #c6dcd2; }
.direction-icon { background: #e4f1ea; color: var(--active); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; }
.direction-icon .ico { width: 16px; height: 16px; }
.directions strong { font: 650 17px var(--display); }
.directions p { color: var(--soft); font-size: 14px; overflow-wrap: anywhere; }
.trip-invite { display: grid; gap: 10px; padding: 15px; border: 1px solid #e4bacd; border-radius: 12px; background: #fff0f6; }
.trip-invite-heading { display: flex; align-items: center; gap: 9px; color: #792347; }
.trip-invite h3 { font-size: 21px; }
.trip-invite p { font-size: 14px; color: #6b4456; }
.trip-invite .survey-action { width: 100%; justify-content: space-between; }
.welcome-dialog { border-top: 5px solid #d1356f; max-width: 500px; }
.welcome-dialog .modal-head h2 { font-size: clamp(26px,3vw,33px); }
.welcome-content { display: grid; gap: 16px; }
.welcome-emphasis { display: flex; align-items: center; gap: 10px; color: #8c1747; font-size: 12px; font-weight: 700; letter-spacing: .07em; }
.welcome-emphasis>.ico { width: 24px; height: 24px; }
.participate-banner>.survey-action { margin-left: auto; }
.welcome-primary { width: 100%; min-height: 54px; }
.welcome-primary>.ico:last-child { margin-left: auto; }
.welcome-links { display: grid; gap: 9px; }
.welcome-link { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 50px; border: 1px solid var(--line); border-radius: 10px; background: #f3f7f4; text-align: left; }
.welcome-link>.ico:last-child { margin-left: auto; width: 16px; }
.welcome-link:hover { background: #e7f1eb; }
.divider { border: 0; border-top: 1px solid var(--line); width: 100%; margin: 3px 0; }
.kicker { font: 650 13px var(--display); color: var(--active); }
.trip-search-heading .kicker, .directory-panel .kicker { font-size: 10px; letter-spacing: .1em; margin-bottom: 6px; }
.trip-search-heading h2, .directory-panel h2 { font-size: 29px; }
.search-hint { line-height: 1.4; }
.search-privacy { display: flex; align-items: flex-start; gap: 7px; margin-top: 12px; font-size: 12px; line-height: 1.45; color: var(--soft); }
.search-privacy .ico { width: 16px; height: 16px; margin-top: 1px; color: #668578; }
.journey-summary { display: grid; gap: 13px; }
.journey-summary .kicker { font-size: 11px; letter-spacing: .04em; }
.journey-summary .text-btn { font-size: 13px; }
.journey-summary+#search-editor:not([hidden]) { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.journey-endpoint { display: flex; align-items: center; gap: 10px; min-width: 0; }
.journey-endpoint p { min-width: 0; }
.journey-endpoint strong { display: block; font-size: 15px; overflow-wrap: anywhere; line-height: 1.3; }
.journey-endpoint small { display: block; font-size: 11px; margin-bottom: 2px; }
.endpoint-dot { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #e2f2eb; color: var(--active); font: 600 12px var(--display); }
.destination-dot { border-radius: 7px; background: #f8e7ef; color: #9b315e; }
.compact-help { color: var(--soft); font-size: 12px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.compact-help summary { min-height: 32px; padding-block: 6px; font-size: 13px; font-weight: 400; }
.compact-help p { line-height: 1.6; padding-bottom: 9px; }
.directory-count .text-btn { font-size: 12px; min-height: 30px; }
.directory-panel:has(.directory-empty) { gap: 10px; }
.directory-empty { display: grid; gap: 8px; text-align: center; justify-items: center; padding: 24px 15px; border-radius: 10px; }
.directory-empty>.ico { width: 30px; height: 30px; color: var(--soft); }
.empty-state { border-radius: 10px; }
.empty-state p { margin-top: 6px; }
.participate-banner { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 18px 22px; background: #faf5f6; border: 1px solid #e6dce0; border-radius: 14px; }
.participate-banner h2 { font-size: 21px; letter-spacing: -.02em; color: #603448; }
.participate-banner p { color: #745968; font-size: 13px; margin-top: 4px; }
.participate-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; color: #9c4267; background: #f3e4eb; }
.participate-banner>.outline { margin-left: auto; flex: none; border-color: #d2b1c1; color: #803756; font-size: 14px; }
.loading-state { display: grid; justify-items: center; text-align: center; gap: 15px; padding: 55px 8px; color: var(--soft); }
.loading-state h2 { color: var(--ink); font-size: 25px; }
.map-loading { position:absolute; inset:0; display:grid; align-content:center; justify-items:center; gap:12px; background:#e9eeeb; color:var(--soft); }
.map-card[data-loading] :is(.map-btn,.map-footer,.map-help) { visibility:hidden; }
.loading-ring { display: inline-block; flex: none; width: 23px; height: 23px; border: 2px solid #c7dfd5; border-top-color: var(--active); border-radius: 50%; animation: loading-turn .8s linear infinite; }
.search-progress { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--soft); }
@keyframes loading-turn { to { transform: rotate(360deg); } }
.two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.chipset, .survey-group, .review-group { border: 0; margin: 0; padding: 0; }
.chipset { display: flex; gap: 5px; flex-wrap: wrap; }
.chipset legend, .survey-group legend { padding: 0; font-weight: 650; margin-bottom: 6px; }
.chipset label, .choices label, .checkline { display: inline-flex; align-items: center; gap: 7px; min-height: 37px; font-size: 14px; cursor: pointer; }
.chipset label { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.chipset label:has(:checked) { background: var(--mint); border-color: var(--active); }
.choices { display: grid; gap: 4px; }
input:where([type=checkbox],[type=radio]) { accent-color: var(--active); }
.traffic-intro, .event-details { border-top: 1px solid var(--line); padding-top: 12px; }
.traffic-card, .review-card { min-width: 0; margin: 0; padding: 12px; border-radius: 9px; border: 1px solid var(--line); background: #f7faf6; }
summary { cursor: pointer; font-weight: 600; color: var(--active); padding-block: 5px; }
details[open]>summary { margin-bottom: 8px; }
.traffic-card summary .hint { display: block; font-size: 13px; }
.traffic-card [data-remove], .review-group>[data-add] { justify-self: start; }
.traffic-summary, .daily-head { font-size: 13px; color: var(--soft); }
.traffic-summary ul, .week-summary { margin: 5px 0; padding-left: 18px; }
.other-reason { margin-top: 8px; }
.daily-grid { display: grid; gap: 6px; }
.daily-row { display: grid; grid-template-columns: minmax(58px,.76fr) minmax(98px,1.15fr) minmax(58px,.75fr); align-items: center; gap: 5px; }
.daily-row .input { font-variant-numeric: tabular-nums; }
.week-summary { list-style: none; padding: 0; }
.week-summary li { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.review-card>legend { padding-inline: 5px; font-weight: 650; }
.review-card>[data-remove] { justify-self: end; }
.review-card [data-position]:empty, .event-hours [data-hours-hint]:empty, .form-error:empty { display: none; }
.event-hours { border: 0; padding: 0; margin: 0; }
.event-hours legend { padding: 0; font-weight: 650; margin-bottom: 6px; }
.error { color: var(--alert); font-size: 14px; }
.code { user-select: all; overflow-wrap: anywhere; background: var(--mint); padding: 4px 7px; font-family: monospace; }
.notice { position: fixed; z-index: 1100; bottom: max(16px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: min(570px,94vw); padding: 10px 16px; border-radius: 10px; background: #152d26; color: white; box-shadow: var(--shadow); }
footer { margin-block: 18px 12px; color: var(--soft); font-size: 13px; }
.footer-main { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.footer-main b { color: #879f91; margin: 0 4px; }
footer button { min-height: 37px; padding: 5px 0; background: none; border: 0; color: var(--soft); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.footer-main>div { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-main>.footer-identity { display: grid; gap: 4px; }
dialog { width: min(560px,94vw); max-height: 85dvh; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 16px; padding: 0 20px 20px; color: var(--ink); background: white; box-shadow: 0 14px 60px #07181344; }
dialog::backdrop { background: #0d1c1885; }
.modal-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; gap: 8px; background: white; padding: 10px 0; border-bottom: 1px solid var(--line); margin-bottom: 15px; }
.modal-head h2 { font-size: 25px; }
.close { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: #f2f6f2; font-size: 26px; line-height: 1; }
dialog:has(.subscribe-form) { width: min(480px,calc(100% - 24px)); max-width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-top: 4px solid var(--active); padding-inline: 20px; }
dialog:has(.subscribe-form) .modal-head { padding-block: 12px; margin-bottom: 16px; }
dialog:has(.subscribe-form) .close { min-width: 44px; min-height: 44px; }
.subscribe-form { gap: 18px; }
.subscribe-intro { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 10px; background: #e8f5ee; color: #36584b; font-size: 14px; line-height: 1.5; }
.subscribe-intro>span { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: white; color: var(--active); }
.subscribe-channels { min-width: 0; padding: 0; margin: 0; border: 0; }
.subscribe-channels legend { padding: 0; margin-bottom: 9px; font-size: 14px; font-weight: 650; }
.subscribe-channel-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.subscribe-channel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 12px; min-height: 85px; border: 1px solid #aebfb5; border-radius: 10px; cursor: pointer; background: white; }
.subscribe-channel>.ico { width: 22px; height: 22px; color: var(--active); }
.subscribe-channel input { margin: 0; width: 18px; height: 18px; }
.subscribe-channel>span { grid-column: 1/-1; font: 600 16px/1.3 var(--display); }
.subscribe-channel:hover { background: #f4faf6; }
.subscribe-channel:has(:checked) { border-color: var(--active); background: #e8f5ee; box-shadow: inset 0 0 0 1px var(--active); }
.subscribe-channel:has(:focus-visible) { outline: 3px solid #23738a; outline-offset: 3px; }
.subscribe-channel input:focus-visible { outline: 0; }
.subscribe-contact { display: grid; gap: 7px; }
.subscribe-contact .input { min-height: 52px; font-size: 16px; padding-inline: 13px; scroll-margin-block: 90px 20px; }
.subscribe-help { color: var(--soft); font-size: 12px; line-height: 1.45; }
.subscribe-permission { display: grid; gap: 6px; }
.subscribe-consent { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f7faf7; font-size: 13px; line-height: 1.5; cursor: pointer; }
.subscribe-consent input { flex: none; width: 20px; height: 20px; margin: 0; }
.subscribe-consent:has(:checked) { border-color: #8bb8a4; background: #edf7f0; }
.subscribe-consent:has([aria-invalid=true]) { border-color: var(--alert); }
.subscribe-form .error { font-size: 13px; line-height: 1.4; }
.subscribe-form .error:empty { display: none; }
.subscribe-submit { width: 100%; min-height: 52px; font-size: 18px; box-shadow: 0 3px 10px #00645f20; }
.subscribe-submit .ico { width: 18px; }
.subscribe-footnote { margin-top: -7px; color: var(--soft); text-align: center; font-size: 12px; line-height: 1.5; }
@media (max-width: 480px) {
  dialog:has(.subscribe-form) { padding-inline: 16px; }
  dialog:has(.subscribe-form) .modal-head h2 { font-size: 24px; }
  .subscribe-form { gap: 16px; }
  .subscribe-intro { padding: 10px; font-size: 13px; }
  .subscribe-channel { padding: 10px; }
}
@media (min-width: 1350px) {
  .workspace { grid-template-columns: minmax(370px, 29%) minmax(0,1fr); }
  .workspace.surveying { grid-template-columns: minmax(440px, 35%) minmax(0,1fr); }
  .hero { min-height: 132px; }
}
@media (max-width: 950px) {
  .mast-inner { gap: 12px; position: relative; }
  .edition { position: absolute; top: 46px; left: calc(var(--gutter) + 55px); border: 0; padding: 0; font-size: 10px; }
  .mast .brand { margin-top: -8px; font-size: 32px; }
  .mast nav button { padding-inline: 10px; }
  .workspace { grid-template-columns: minmax(320px,40%) minmax(0,1fr); gap: 12px; }
  .workspace.surveying { grid-template-columns: minmax(340px,43%) minmax(0,1fr); }
  .hero-art { left: 67%; }
  .hero-description { max-width: 49ch; }
  .geo-banner { align-items: start; }.geo-banner .actions { align-self: center; }
}
@media (max-width: 780px) {
  :root { --gutter: clamp(12px,3.5vw,24px); --mast-height: 100px; }
  .mast-inner { min-height: var(--mast-height); gap: 6px 10px; flex-wrap: wrap; padding-block: 7px; }
  .brand { font-size: 28px; gap: 3px; }
  .brand-mark { transform: scale(.77); width: 40px; transform-origin: left center; margin-right: -4px; }
  .edition { display: block; position: static; margin-left: auto; padding: 0; border: 0; font-size: 11px; }
  .mast nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; gap: 7px; }
  .mast nav button, .mast nav .survey-action { min-height: 44px; padding: 6px; gap: 4px; font-size: 14px; white-space: normal; line-height: 1.15; }
  .mast nav .ico { width: 16px; }
  .mast nav button:last-child .ico { display: none; }
  .mast .brand { align-self: center; margin-top: 0; font-size: 28px; }
  main { padding-top: 11px; }
  .hero { padding: 14px 16px; grid-template-columns: minmax(0,1fr); min-height: 108px; border-radius: 12px; }
  .territory { font-size: 10px; }
  .hero h1 { max-width: 100%; font-size: clamp(28px,6vw,38px); margin: 6px 0; }
  .hero-description { max-width: 100%; font-size: 13px; line-height: 1.4; }
  .hero-art { display: none; }.hero-lines { opacity: .4; }
  .hero-art .hero-bus { width: 100%; right: 0; left: 0; top: 25%; height: 58%; }
  .demo-note { font-size: 11px; }
  .geo-banner { flex-wrap: wrap; align-items: center; gap: 0 8px; margin-top: 8px; padding: 5px 10px; font-size: 12px; }
  .geo-copy { flex: 1 1 250px; gap: 8px; }
  .geo-banner .actions { margin-left: auto; gap: 9px; }
  .geo-banner button { min-height: 44px; font-size: 13px; }
  .geo-banner .outline { border: 0; padding: 4px; text-decoration: underline; background: none; color: var(--active); }
  .workspace, .workspace.surveying { display: block; margin-top: 12px; scroll-margin-top: calc(var(--mast-height) + 8px); }
  .mobile-switch { position: sticky; top: var(--mast-height); z-index: 10; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; border-radius: 11px; padding: 3px; margin-bottom: 10px; background: #e0e8e2; border: 1px solid #c1d2c7; }
  .mobile-switch button { min-height: 44px; }
  .mobile-only { display: inline-flex; }
  .panel, .workspace.surveying .panel { max-height: none; overflow: visible; }
  .panel, .map-card { border-radius: 12px; }
  #panel-content { padding: 18px; }
  .map-card { position: relative; top: auto; width: 100%; }
  .workspace[data-mobile-view=panel]:not(.picking) .map-card { position: absolute; top: 0; left: 0; visibility: hidden; pointer-events: none; }
  .workspace[data-mobile-view=map] .panel, .workspace.picking .panel, .workspace.picking .mobile-switch { display: none; }
  .map-viewport { height: clamp(320px,calc(100dvh - 260px),650px); }
  .workspace.picking .map-viewport { height: clamp(350px,calc(100dvh - 180px),730px); }
  .map-legend { min-height: 44px; gap: 4px 10px; font-size: 11px; padding: 7px 0; }
  .map-footer { padding-inline: 11px; }
  .map-head { padding: 9px 11px; }
  .picker { display: grid; grid-template-columns: minmax(0,1fr); gap: 7px; padding: 10px; left: 6px; right: 6px; bottom: 10px; }
  .picker .actions { justify-content: end; }
  .picker button,.map-btn,.period-group button,.filter-list button,.pick-map,.swap,.text-btn,.small,.close,.chipset label,.choices label,.checkline,footer button,summary { min-height: 44px; }
  .clear-location { flex-basis: 44px; width: 44px; }
  #map-route-key .route-badge { height: 44px; }
  .swap { width: 44px; }
  .picker strong { font-size: 17px; }.picker small { font-size: 12px; }
  .input, .field :is(input,select,textarea) { font-size: 16px; }
  .location-field .input { scroll-margin-block: calc(var(--mast-height) + 70px) 16px; }
  .suggestions { max-height: 190px; }
  .survey-panel h2, #result-heading { scroll-margin-top: calc(var(--mast-height) + 66px); }
  .map-card { scroll-margin-top: calc(var(--mast-height) + 62px); }
  .participate-banner { padding: 16px; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
  .participate-banner>div { flex: 1; min-width: 0; }
  .participate-banner h2 { font-size: 19px; }
  .participate-banner>.outline { width: 100%; justify-content: space-between; margin-left: 0; }
  .footer-main { align-items: start; gap: 2px; flex-direction: column; }
  dialog { width: min(calc(100% - 14px),520px); max-height: 90dvh; padding: 0 14px max(16px,env(safe-area-inset-bottom)); }
}
@media (max-width: 430px) {
  .mast nav .ico { display: none; }
  .map-legend .swatch { width: 14px; }.map-legend .point { width: 8px; }
  .two, .event-details .two { grid-template-columns: minmax(0,1fr); }
  .territory .route-glyph { width: 20px; }
}
@media (max-width: 360px) {
  .subscribe-submit { font-size: 16px; }
  .mast-inner { gap: 5px; padding-inline: 8px; }
  .mast .brand { font-size: 24px; }.brand-mark { width: 31px; transform: scale(.66); }
  .mast nav .ico { display: none; }.mast nav button, .mast nav .survey-action { padding-inline: 4px; font-size: 13px; }
  .hero h1 { max-width: 100%; font-size: 27px; }.hero-description { max-width: 100%; }
  #panel-content { padding: 12px; }
}
@media (max-width: 780px) and (max-height: 510px) {
  .mast { position: relative; }
  .mobile-switch { top: 0; }
  .workspace, .workspace.surveying, .map-card { scroll-margin-top: 8px; }
  .workspace.picking .map-viewport, .map-viewport { height: max(285px,78dvh); }
  .workspace.picking .map-head,.workspace.picking .map-legend { display: none; }
}
@media (min-width: 781px) and (max-width: 950px) and (max-height: 510px) {
  main { padding-top: 12px; }
  .hero { min-height: 90px; padding-block: 12px; }
  .hero h1 { font-size: 30px; }
  .hero-description { font-size: 12px; }
  .workspace { margin-top: 12px; }
  .panel, .workspace.surveying .panel { max-height: calc(100dvh - 92px); }
  .map-card { top: calc(var(--mast-height) + 8px); }
  .map-viewport { height: max(200px,calc(100dvh - 182px)); }
  .map-help { display: none; }
  .workspace.picking { grid-template-columns: minmax(0,1fr); }
  .workspace.picking .panel { display: none; }
  .workspace.picking .map-viewport { height: max(250px,calc(100dvh - 140px)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
