:root {
  color-scheme: light;
  --page: #f3f6f6;
  --paper: #fff;
  --ink: #183638;
  --muted: #617779;
  --line: #dfe8e7;
  --soft: #f4f8f7;
  --accent: #086c64;
  --accent-soft: #eaf6f2;
  --deep: #0d3b3e;
  --lime: #d7f786;
  --shadow: 0 6px 28px rgb(18 58 57 / 4%);
  font-family: -apple-system, BlinkMacSystemFont, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16px;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--page); color: var(--ink); line-height: 1.5; }
button, input, select { font: inherit; }
button, input, select, summary, a { -webkit-tap-highlight-color: transparent; }
button, summary, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .38; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
input, select { min-width: 0; width: 100%; color: var(--ink); }
fieldset { min-width: 0; }
[hidden] { display: none !important; }
button, a, summary { transition: background-color .16s, border-color .16s, box-shadow .16s, color .16s; }
button:active:enabled { transform: scale(.98); }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #47a99c; outline-offset: 3px; }
input[aria-invalid=true] { border-color: #c54040 !important; background: #fff3f2 !important; box-shadow: inset 0 0 0 1px #c54040; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -90px; left: 18px; z-index: 100; background: white; padding: 12px 20px; border-radius: 12px; }
.skip:focus { top: 12px; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.masthead { max-width: 1248px; margin: auto; padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 1.375rem; letter-spacing: -.055em; font-weight: 750; white-space: nowrap; }
.monogram { background: var(--deep); color: var(--lime); display: grid; place-items: center; width: 44px; height: 44px; font-size: 1.6rem; letter-spacing: -.09em; border-radius: 15px; padding: 0 3px 3px 0; }
.header-end { display: flex; gap: 22px; align-items: center; }
.header-end > span { font-size: .8125rem; color: var(--muted); }
.quiet-button { display: flex; align-items: center; justify-content: center; gap: 9px; background: white; border: 1px solid var(--line); border-radius: 50px; padding: 11px 17px; min-height: 46px; font-size: .875rem; font-weight: 600; }
.quiet-button .icon { width: 18px; height: 18px; }
.quiet-button:hover { background: var(--accent-soft); border-color: #bad7cf; }
.workspace { max-width: 1248px; margin: auto; padding: 18px 32px 0; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 3px 0 28px; }
h1 { font-size: clamp(2rem, 3vw, 2.7rem); font-weight: 750; letter-spacing: -.055em; line-height: 1.15; }
h1 > span { color: var(--accent); }
.intro p { font-size: 1rem; margin-top: 10px; color: var(--muted); }
.intro-note { color: var(--muted); font-size: .875rem; padding-bottom: 4px; }
.boot-status { padding: 16px 20px; background: #fff6df; border: 1px solid #ead49c; border-radius: 16px; margin-bottom: 20px; font-size: .9375rem; }
.mobile-nav { display: none; }
.calculator { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 28px; }
.form-column { display: grid; gap: 20px; min-width: 0; }
.chapter { padding: 26px; border: 1px solid var(--line); background: var(--paper); border-radius: 26px; box-shadow: var(--shadow); min-width: 0; scroll-margin-top: 24px; }
.chapter-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.chapter-number { display: grid; place-items: center; width: 34px; height: 34px; background: var(--accent-soft); color: var(--accent); border-radius: 12px; font-size: .875rem; font-weight: 750; flex-shrink: 0; }
.chapter h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.035em; }
.chapter-aside { color: var(--muted); font-size: .75rem; font-weight: 500; background: var(--soft); border-radius: 50px; padding: 5px 9px; margin-left: auto; white-space: nowrap; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: .875rem; font-weight: 600; min-width: 0; }
.field > input, .field > select, .unit-input { background: var(--soft); border: 1px solid #d8e3e1; border-radius: 14px; min-height: 54px; }
.field > input, .field > select { padding: 14px; line-height: 1.4; font-size: 1rem; font-weight: 500; }
.field > select { padding-right: 9px; }
.field > input::placeholder { font-weight: 400; color: #6b7e80; opacity: 1; }
.field > input:focus, .field > select:focus { background: #fff; border-color: var(--accent); }
.field > input:focus-visible, .field > select:focus-visible { outline-width: 2px; outline-offset: 2px; }
.unit-input { display: flex; align-items: center; overflow: hidden; }
.unit-input input { flex: 1; width: 0; border: 0; min-height: 52px; padding: 13px 6px 13px 14px; font-size: 1.0625rem; background: transparent; font-weight: 600; font-variant-numeric: tabular-nums; outline: none; }
.unit-input:focus-within { background: white; border-color: var(--accent); box-shadow: 0 0 0 2px #1c91852b; }
.unit-input input:focus-visible { outline: none; }
.unit-input > span { flex-shrink: 0; padding-right: 12px; font-size: .8125rem; font-weight: 400; color: var(--muted); }
.city-pair { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 10px; align-items: end; }
.city-pair .field > label { display: flex; align-items: center; gap: 7px; }
.city-pair .field > label::before { content: ""; width: 8px; height: 8px; border: 2px solid var(--accent); border-radius: 50%; }
.city-pair .field:last-child > label::before { background: var(--accent); }
.city-pair .field > input { font-weight: 600; }
.swap-button { height: 48px; width: 44px; margin-bottom: 3px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--accent); }
.swap-button .icon { transform: rotate(90deg); width: 20px; height: 20px; }
.swap-button:hover { background: var(--accent-soft); border-color: #a8cdc5; }
.route-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.route-options button { display: flex; flex-direction: column; gap: 7px; min-width: 0; min-height: 91px; text-align: left; padding: 16px; border: 1.5px solid var(--line); border-radius: 17px; background: white; position: relative; }
.route-options button > span { font-size: .9375rem; font-weight: 650; padding-right: 16px; }
.route-options button > span::after { content: ""; position: absolute; right: 13px; top: 18px; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid #b5c6c4; }
.route-options button > small { font-size: .8125rem; font-variant-numeric: tabular-nums; color: var(--muted); line-height: 1.6; }
.route-options button.selected { background: var(--accent-soft); border-color: var(--accent); }
.route-options button.selected > span { color: #06554f; }
.route-options button.selected > span::after { border: 4px solid var(--accent); background: #fff; }
.route-feedback { display: flex; align-items: start; justify-content: space-between; gap: 10px; margin: 12px 0 18px; }
.route-feedback p { font-size: .8125rem; line-height: 1.6; color: var(--muted); padding-top: 7px; }
.link-button { border: 0; background: none; padding: 9px 3px; min-height: 40px; font-size: .875rem; font-weight: 600; text-align: left; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; white-space: normal; border-radius: 6px; }
.link-button:hover { color: #003b38; }
.route-feedback .link-button, .toll-note-row .link-button { flex-shrink: 0; }
.two-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-note { font-size: .875rem; font-weight: 400; color: var(--muted); line-height: 1.6; }
.toll-note-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; }
.toll-note-row > .field-note { flex: 1; font-size: .8125rem; }
.disclosure { margin-top: 18px; }
.disclosure > summary { cursor: pointer; font-size: .875rem; color: var(--muted); list-style: none; min-height: 44px; padding: 11px 25px 11px 0; position: relative; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
.disclosure > summary::after, .extras > summary::after, .method > summary::after { content: "+"; position: absolute; right: 2px; top: 8px; font-size: 1.125rem; line-height: 1.5; font-weight: 400; color: var(--accent); }
details[open] > summary::after { content: "−"; }
.detail-content { margin-top: 10px; display: grid; gap: 14px; }
.detail-content.two-fields { display: grid; grid-template-columns: 1fr 1fr; }
.inline-links { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: .875rem; }
.inline-links a { color: var(--accent); padding: 8px 0; }
.car-numbers { margin-top: 20px; }
.car-numbers + .two-fields { margin-top: 16px; }
.chapter > #vehicle-note { margin-top: 10px; font-size: .8125rem; }
.span-all { grid-column: 1/-1; }
.people-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.control-label { font-size: .9375rem; font-weight: 650; }
.people-row .field-note { margin-top: 3px; font-size: .8125rem; }
.stepper { display: grid; grid-template-columns: 44px 34px 44px; align-items: center; flex-shrink: 0; min-height: 50px; padding: 3px; border-radius: 50px; background: var(--soft); border: 1px solid var(--line); }
.stepper button { display: grid; place-items: center; width: 44px; height: 44px; background: white; border: 1px solid #e1eae8; border-radius: 50%; font-size: 1.35rem; line-height: 1; color: var(--accent); }
.stepper output { font-size: 1.0625rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.stepper button:hover:enabled { background: var(--accent); border-color: var(--accent); color: white; }
.goal-options { margin: 22px 0 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.goal-options label { display: flex; align-items: center; gap: 13px; padding: 16px; border: 1.5px solid var(--line); background: white; cursor: pointer; border-radius: 17px; min-height: 81px; }
.goal-options label.selected { border-color: var(--accent); background: var(--accent-soft); }
.goal-options input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.goal-options label > span { display: flex; flex-direction: column; gap: 5px; }
.goal-options strong { font-size: .9375rem; font-weight: 650; }
.goal-options small { font-size: .875rem; line-height: 1.5; color: var(--muted); }
.surplus-field { padding: 16px; background: var(--accent-soft); border: 1px solid #bedbcf; border-radius: 17px; margin-top: 12px; }
.surplus-field .unit-input { max-width: 190px; background: white; }
.expected-people { margin-top: 24px; }
.objective-chapter > .disclosure { padding-top: 11px; border-top: 1px solid var(--line); margin-top: 24px; }
.result-column { min-width: 0; }
.ticket { background: white; border: 1px solid #dce6e4; border-radius: 28px; box-shadow: 0 12px 36px rgb(18 58 57 / 7%); scroll-margin-top: 24px; overflow: hidden; }
.ticket-overview { background: var(--deep); color: white; padding: 26px 28px 28px; }
.ticket-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .8125rem; color: #c4dcd9; }
.ticket-top > span:last-child { background: #234e50; color: #e2efeb; border-radius: 30px; padding: 5px 10px; font-size: .75rem; white-space: nowrap; }
.ticket-route { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 1.25rem; font-weight: 650; letter-spacing: -.035em; margin-top: 24px; }
.ticket-arrow { color: var(--lime); }
.ticket-route > span:not(.ticket-arrow) { overflow-wrap: anywhere; }
.ticket-meta { font-size: .8125rem; color: #b4cfcd; margin-top: 7px; line-height: 1.6; }
.quote-block { padding-top: 26px; }
.quote-label { font-size: .75rem; letter-spacing: .06em; font-weight: 650; color: var(--lime); }
.quote-number { display: flex; align-items: baseline; gap: 9px; margin: 10px 0 13px; font-variant-numeric: tabular-nums; }
.quote-number > strong { font-size: clamp(3.6rem, 5.8vw, 5.4rem); font-weight: 700; line-height: 1.06; letter-spacing: -.065em; min-width: 0; overflow-wrap: anywhere; }
.quote-number > span { font-size: 2rem; font-weight: 500; line-height: 1.1; flex-shrink: 0; }
.quote-number small { display: block; font-size: .875rem; color: #b4cfcd; margin-top: 5px; white-space: nowrap; }
.quote-number.compact > strong { font-size: clamp(2.4rem, 4vw, 3.6rem); }
.quote-explanation { font-size: .875rem; color: #c4dcd9; line-height: 1.65; }
#quote-pending h3 { font-size: 1.8rem; font-weight: 650; line-height: 1.2; letter-spacing: -.04em; margin: 14px 0 11px; }
#quote-pending p { color: #c4dcd9; font-size: .9375rem; line-height: 1.65; }
.action-button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; min-height: 48px; border: 1px solid var(--accent); background: var(--accent); color: white; border-radius: 50px; font-size: .9375rem; font-weight: 650; }
.action-button:hover { background: #04594f; border-color: #04594f; }
#quote-pending .action-button { margin-top: 20px; background: var(--lime); color: var(--deep); border-color: var(--lime); }
#quote-pending .action-button:hover { background: #e5ffac; border-color: #e5ffac; }
.ticket-body { padding: 22px 28px 24px; }
.ticket-costs { display: flex; flex-direction: column; gap: 12px; }
.ticket-costs > div { display: flex; justify-content: space-between; gap: 14px; font-size: .9375rem; }
.ticket-costs > div > span { color: var(--muted); }
.ticket-costs strong { font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.ticket-costs .cost-total { padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line); }
.cost-total > span { font-weight: 650; color: var(--ink) !important; }
.cost-total strong { font-weight: 750; font-size: 1.125rem; }
.expected-result { padding: 18px; border-radius: 17px; background: var(--soft); margin-top: 22px; }
.expected-result > p:first-child { font-size: .8125rem; color: var(--muted); margin-bottom: 14px; }
.expected-result > div { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.expected-result > div > span { font-size: .8125rem; display: flex; flex-direction: column; gap: 7px; color: var(--muted); }
.expected-result strong { display: block; font-size: 1.5rem; color: var(--ink); font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.expected-result > div > span:last-child strong { color: var(--accent); }
.expected-result.is-covered { background: var(--accent-soft); }
#goal-message { margin-top: 12px; font-size: .8125rem; }
.custom-price { margin-top: 14px; }
.custom-price > .detail-content { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.custom-price .link-button { font-size: .8125rem; }
.ticket-footnote { font-size: .75rem; color: var(--muted); line-height: 1.65; margin-top: 10px; }
.occupancy { margin-top: 20px; border: 1px solid var(--line); padding: 24px; background: white; border-radius: 24px; box-shadow: var(--shadow); }
.small-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.small-heading h2 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -.025em; }
.small-heading > span { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.table-wrap { width: 100%; }
table { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: 100%; font-variant-numeric: tabular-nums; }
th, td { font-size: .875rem; text-align: right; padding: 13px 7px; border-bottom: 1px solid #eaf0ee; overflow-wrap: anywhere; }
thead th { font-size: .8125rem; font-weight: 500; color: var(--muted); padding-top: 0; padding-bottom: 12px; vertical-align: bottom; }
th:first-child, td:first-child { text-align: left; width: 30%; }
tbody th { font-weight: 500; }
tbody td { font-weight: 550; }
tbody tr.expected { background: var(--accent-soft); }
tbody tr.expected > th { border-radius: 10px 0 0 10px; color: var(--accent); font-weight: 700; }
tbody tr.expected > td:last-child { border-radius: 0 10px 10px 0; color: var(--accent); font-weight: 700; }
tbody tr:last-child > * { border-bottom: none; }
.occupancy > .field-note { margin-top: 16px; font-size: .8125rem; }
.table-empty { text-align: left; font-size: .875rem; color: var(--muted); line-height: 1.6; padding: 18px 0 4px; font-weight: 400; }
.context-note { font-size: .75rem; line-height: 1.7; color: var(--muted); padding: 14px 8px 0; }
.autocomplete { position: relative; }
.autocomplete > input { padding-right: 43px; }
.autocomplete:focus-within { z-index: 15; }
.clear-search { position: absolute; right: 5px; bottom: 5px; display: grid; place-items: center; width: 44px; height: 44px; border: none; background: transparent; border-radius: 50%; color: #617779; }
.clear-search .icon { width: 17px; height: 17px; }
.clear-search:hover { background: #dfebe7; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.suggestions { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 0; max-height: 320px; max-height: min(320px, calc(var(--visible-height, 100dvh) * .48)); overflow: auto; overscroll-behavior: contain; touch-action: pan-y; border: 1px solid #d3e2df; border-radius: 18px; background: white; box-shadow: 0 14px 36px #123a3924; padding: 6px; }
.autocomplete-option { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 13px 12px; min-height: 65px; cursor: pointer; border-radius: 12px; }
.autocomplete-option strong { font-size: .9375rem; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.autocomplete-option small { font-size: .8125rem; color: var(--muted); font-weight: 400; }
.autocomplete-option[aria-selected=true] { background: var(--accent-soft); }
.autocomplete-empty { font-size: .875rem; font-weight: 400; padding: 13px; color: var(--muted); line-height: 1.6; }
.extras { margin-top: 28px; background: white; border: 1px solid var(--line); border-radius: 24px; padding: 6px 26px; box-shadow: var(--shadow); }
.extras > summary { cursor: pointer; font-size: 1rem; list-style: none; position: relative; padding: 18px 26px 18px 0; min-height: 62px; }
.extras > summary::after { top: 17px; }
.extras > summary > span { font-weight: 650; }
.extras > summary > small { display: block; font-size: .875rem; color: var(--muted); margin-top: 5px; font-weight: 400; }
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 8px 0 22px; }
.extras-grid h2 { font-size: 1.125rem; font-weight: 650; letter-spacing: -.025em; margin-bottom: 12px; }
.extras-grid section > p.field-note { margin-bottom: 16px; }
.passenger-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .9375rem; }
.passenger-row > label { flex: 1; }
.passenger-row .unit-input { width: 125px; }
.remove-passenger { height: 44px; width: 44px; background: #f2f6f5; border: none; border-radius: 50%; font-size: 1.375rem; color: var(--muted); }
.outline-button { display: inline-flex; justify-content: center; align-items: center; background: white; border: 1px solid #bdcfcb; border-radius: 50px; padding: 12px 18px; font-size: .875rem; font-weight: 600; min-height: 48px; }
.outline-button:hover { background: var(--soft); }
.booking-total { font-size: .9375rem; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.booking-total strong { font-weight: 650; font-variant-numeric: tabular-nums; }
.detour-verdict { font-size: 1rem; margin-top: 20px; font-weight: 650; }
.detour-verdict + .field-note { margin-top: 8px; }
.method { padding: 4px 12px; margin-top: 14px; }
.method > summary { font-size: .875rem; cursor: pointer; list-style: none; color: var(--muted); position: relative; min-height: 48px; padding: 12px 28px 12px 0; }
.method > summary::after { top: 10px; }
.method > div { display: flex; flex-direction: column; gap: 14px; font-size: .875rem; line-height: 1.7; color: var(--muted); padding: 12px 0 10px; max-width: 95ch; }
.method strong { color: var(--ink); font-weight: 650; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 28px 8px 38px; color: var(--muted); }
.footer-brand { font-size: 1.125rem; text-decoration: none; letter-spacing: -.04em; color: var(--ink); font-weight: 700; }
footer > p { font-size: .8125rem; line-height: 1.6; text-align: center; }
footer > a:last-child { font-size: .8125rem; padding: 12px 0; }
.notice { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; max-width: calc(100vw - 28px); width: max-content; background: var(--deep); color: white; padding: 14px 20px; border-radius: 18px; font-size: .9375rem; box-shadow: 0 9px 30px #123a3925; }
dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid var(--line); padding: 28px; border-radius: 26px; background: white; color: var(--ink); box-shadow: 0 25px 90px #051f3033; }
dialog::backdrop { background: #122f35a3; backdrop-filter: blur(5px); }
dialog h2 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.04em; font-weight: 700; }
dialog p { margin: 16px 0 25px; color: var(--muted); line-height: 1.65; font-size: .9375rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.mobile-result { display: none; }
@media (hover: hover) { .autocomplete-option:hover { background: var(--accent-soft); } .route-options button:not(.selected):hover, .goal-options label:not(.selected):hover { border-color: #8bb8ae; background: #fafcfb; } }
@media (min-width: 1000px) and (min-height: 1000px) { .result-column { position: sticky; top: 24px; } }
@media (min-width: 1000px) and (max-width: 1160px) {
  .workspace, .masthead { padding-left: 24px; padding-right: 24px; }
  .calculator { gap: 20px; }
  .chapter { padding: 22px; }
  .city-pair { grid-template-columns: minmax(0, 1fr) 44px; gap: 14px 12px; align-items: center; }
  .city-pair > .field:first-child { grid-column: 1; grid-row: 1; }
  .city-pair > .field:last-child { grid-column: 1; grid-row: 2; }
  .swap-button { grid-column: 2; grid-row: 1 / 3; margin-top: 20px; }
  .swap-button .icon { transform: none; }
  .ticket-overview, .ticket-body { padding-left: 22px; padding-right: 22px; }
  .occupancy { padding: 20px; }
}
@media (max-width: 999px) {
  body { padding-bottom: calc(98px + env(safe-area-inset-bottom)); }
  .masthead { max-width: 800px; padding: 20px 28px 12px; }
  .workspace { max-width: 800px; padding: 18px 28px 0; }
  .intro { margin-bottom: 20px; }
  h1 { font-size: 2.15rem; }
  .intro-note { display: none; }
  .header-end > span { display: none; }
  .calculator { display: flex; flex-direction: column; gap: 22px; }
  .form-column, .result-column { width: 100%; }
  .chapter { padding: 26px; scroll-margin-top: 82px; }
  .ticket { scroll-margin-top: 82px; }
  .mobile-nav { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 5px; padding: 10px 0 12px; margin: 0 0 10px; background: var(--page); }
  .mobile-nav > a { display: inline-flex; flex: 1; gap: 6px; align-items: center; justify-content: center; border-radius: 50px; padding: 10px 8px; min-height: 44px; text-decoration: none; font-size: .875rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
  .mobile-nav > a > span { font-size: .75rem; color: var(--muted); }
  .mobile-nav > a .icon { width: 15px; height: 15px; }
  .mobile-nav > a.active { background: var(--deep); color: white; box-shadow: 0 3px 8px #123a3912; }
  .mobile-nav > a.active > span { color: var(--lime); }
  .ticket-overview { padding: 28px 30px; }
  .ticket-body { padding: 24px 30px; }
  .quote-number > strong { font-size: 5rem; }
  .quote-number.compact > strong { font-size: 3.5rem; }
  .quote-explanation { max-width: 52ch; font-size: .9375rem; }
  .expected-result { padding: 20px; }
  .expected-result strong { font-size: 1.75rem; }
  .occupancy { padding: 26px; }
  .extras-grid { grid-template-columns: 1fr; gap: 28px; }
  .mobile-result { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px max(24px, calc((100vw - 744px) / 2)) calc(14px + env(safe-area-inset-bottom)); background: white; color: var(--ink); text-decoration: none; z-index: 50; border: 1px solid #dfe8e7; border-bottom: none; border-radius: 24px 24px 0 0; box-shadow: 0 -5px 30px #123a3910; }
  .mobile-price { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .mobile-price small { font-size: .8125rem; color: var(--muted); }
  .mobile-price strong { font-size: 1.25rem; font-weight: 750; letter-spacing: -.035em; line-height: 1.3; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
  .mobile-result-action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--deep); color: white; padding: 13px 18px; min-height: 48px; border-radius: 50px; flex-shrink: 0; font-size: .875rem; font-weight: 600; }
  .mobile-result-action .icon { width: 18px; height: 18px; }
  .keyboard-open .mobile-result { display: none; }
  .notice { bottom: calc(105px + env(safe-area-inset-bottom)); }
}
@media (max-width: 599px) {
  .masthead { padding: 18px 18px 10px; gap: 12px; }
  .wordmark { gap: 9px; font-size: 1.25rem; }
  .monogram { width: 40px; height: 40px; border-radius: 14px; font-size: 1.5rem; }
  .quiet-button { font-size: .8125rem; gap: 7px; padding: 10px 13px; min-height: 44px; }
  .quiet-button .icon { width: 16px; height: 16px; }
  .workspace { padding: 17px 14px 0; }
  .intro { padding: 0 4px; margin-bottom: 13px; }
  h1 { font-size: 1.9375rem; }
  .intro p { margin-top: 8px; font-size: .9375rem; }
  .mobile-nav { gap: 3px; padding: 10px 0 11px; margin-bottom: 7px; }
  .mobile-nav > a { font-size: .8125rem; gap: 5px; padding: 10px 5px; }
  .mobile-nav > a > span { font-size: .75rem; }
  .form-column { gap: 16px; }
  .chapter { padding: 22px 18px 16px; border-radius: 23px; }
  .chapter-heading { margin-bottom: 20px; gap: 10px; }
  .chapter h2 { font-size: 1.25rem; }
  .city-pair { grid-template-columns: minmax(0, 1fr) 44px; gap: 15px 11px; align-items: center; }
  .city-pair > .field:first-child { grid-column: 1; grid-row: 1; }
  .city-pair > .field:last-child { grid-column: 1; grid-row: 2; }
  .swap-button { grid-column: 2; grid-row: 1 / 3; margin-top: 23px; }
  .swap-button .icon { transform: none; }
  .city-pair .suggestions { right: -55px; }
  .field { font-size: .875rem; gap: 7px; }
  .field > input, .field > select, .unit-input input { font-size: 1rem; }
  .route-options { gap: 9px; margin-top: 22px; }
  .route-options button { padding: 14px 12px; min-height: 98px; }
  .route-options button > span { font-size: .875rem; padding-right: 13px; }
  .route-options button > span::after { width: 11px; height: 11px; right: 10px; top: 17px; }
  .route-options button.selected > span::after { border-width: 3px; }
  .route-options button > small { font-size: .8125rem; }
  .route-feedback { margin-bottom: 17px; gap: 8px; }
  .route-feedback .link-button { font-size: .8125rem; }
  .two-fields, .detail-content.two-fields { gap: 12px; }
  .unit-input input { padding-left: 12px; }
  .unit-input > span { padding-right: 10px; font-size: .75rem; }
  .toll-note-row { align-items: start; }
  .toll-note-row .field-note { padding-top: 8px; }
  .toll-note-row .link-button { font-size: .8125rem; }
  .people-row { gap: 12px; }
  .control-label { font-size: .9375rem; }
  .people-row .field-note { font-size: .8125rem; }
  .goal-options label { padding: 15px 13px; gap: 11px; }
  .goal-options strong { font-size: .9375rem; }
  .goal-options small { font-size: .8125rem; }
  .ticket { border-radius: 25px; }
  .ticket-overview { padding: 22px; }
  .ticket-body { padding: 22px; }
  .ticket-route { font-size: 1.25rem; margin-top: 22px; }
  .quote-label { font-size: .75rem; line-height: 1.65; }
  .quote-number > strong { font-size: 4.5rem; }
  .quote-number.compact > strong { font-size: 2.75rem; }
  .quote-number > span { font-size: 1.75rem; }
  .quote-number small { font-size: .8125rem; }
  .quote-explanation { font-size: .875rem; }
  .expected-result { padding: 16px; }
  .expected-result strong { font-size: 1.5rem; }
  .expected-result > div > span { font-size: .8125rem; }
  .occupancy { border-radius: 23px; padding: 22px 16px; margin-top: 16px; }
  .small-heading { margin-bottom: 20px; }
  .small-heading h2 { font-size: 1rem; }
  th, td { padding: 13px 6px; font-size: .875rem; }
  thead th { font-size: .8125rem; }
  .context-note { padding: 14px 6px 0; }
  .extras { margin-top: 22px; border-radius: 23px; padding: 4px 18px; }
  .extras > summary > small { font-size: .8125rem; }
  .extras > summary { font-size: .9375rem; }
  .method { padding-left: 6px; padding-right: 6px; }
  footer { flex-wrap: wrap; gap: 14px; padding: 24px 6px 30px; }
  footer > p { text-align: right; font-size: .75rem; }
  footer > a:last-child { width: 100%; text-align: center; }
  .mobile-result { padding: 13px 18px calc(13px + env(safe-area-inset-bottom)); gap: 10px; }
  .mobile-price strong { font-size: 1.125rem; }
  .mobile-price small { font-size: .75rem; }
  .mobile-result-action { padding: 13px 16px; font-size: .8125rem; gap: 7px; }
  dialog { padding: 24px; }
}
@media (max-width: 359px) {
  .masthead { padding-left: 13px; padding-right: 13px; }
  .wordmark { font-size: 1.125rem; gap: 7px; }
  .quiet-button { padding: 10px; }
  .quiet-button .icon { display: none; }
  .workspace { padding-left: 10px; padding-right: 10px; }
  h1 { font-size: 1.75rem; }
  .chapter { padding-left: 15px; padding-right: 15px; }
  .route-options { grid-template-columns: 1fr; }
  .route-options button { min-height: 78px; }
  .people-row { flex-wrap: wrap; gap: 12px; }
  .people-row > div:first-child { flex: 1; min-width: 116px; }
  .ticket-overview, .ticket-body { padding-left: 18px; padding-right: 18px; }
  .mobile-result-action { padding-left: 12px; padding-right: 12px; }
  .mobile-result-action .icon { display: none; }
  .mobile-price strong { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
