:root {
  --ground: #F6F4EF; --card: #FFFFFF; --ink: #15202B; --muted: #4A5561; --line: #8A949E;
  --blue: #1F4E8C; --blue-dark: #163A69; --yellow: #F2C230; --sun: #FDF1CC;
  --green: #1E7B3A; --amber: #A65F00; --red: #B3261E;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: 'Atkinson Hyperlegible', system-ui, sans-serif; font-size: 17px; line-height: 1.45; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.hero { background: var(--blue); color: #fff; padding: 28px 0 24px; }
.hero h1 { margin: 4px 0 8px; font-size: 30px; line-height: 1.15; }
.hero p { margin: 0; }
.kicker { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .9; }
main { padding-top: 20px; padding-bottom: 20px; }
.card { background: var(--card); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; }
label, legend { font-weight: 700; font-size: 17px; padding: 0; }
textarea, select, input[type=text] { font: inherit; font-size: 16px; padding: 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
textarea:focus, select:focus { outline: 3px solid var(--yellow); border-color: var(--blue); }
.row { display: flex; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input, .segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 2px solid var(--line); background: #fff; font-weight: 400; cursor: pointer; }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.chip input:focus-visible + span, .segmented input:focus-visible + span { outline: 3px solid var(--yellow); }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.segmented span { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-weight: 400; cursor: pointer; }
.segmented input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
button { font: inherit; cursor: pointer; }
.btn-primary { min-height: 56px; border: 0; border-radius: 14px; background: var(--yellow); color: var(--ink); font-size: 18px; font-weight: 700; }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-outline { min-width: 48px; min-height: 48px; border-radius: 12px; border: 2px solid var(--blue); background: #fff; color: var(--blue); display: flex; align-items: center; justify-content: center; }
.btn-link { background: none; border: 0; color: var(--blue); font-weight: 700; min-height: 44px; }
.status { margin: 0; color: var(--muted); min-height: 1.4em; }
.status.error { color: var(--red); font-weight: 700; }
.profile { display: flex; justify-content: space-between; gap: 12px; border: 2px solid var(--blue); }
.profile p { margin: 0; }
.label { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.big { font-size: 19px; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 14px; padding-bottom: 24px; }
.banner { background: var(--sun); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.stats div { background: #fff; border-radius: 12px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; }
.stats strong { font-size: 19px; }
.stats span { font-size: 13px; color: var(--muted); }
.warnings { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.warnings li { background: #fff; border-left: 0; border-radius: 12px; padding: 10px 14px; }
.warnings li::before { content: "⚠ "; color: var(--amber); }
.map { height: 380px; border-radius: 16px; overflow: hidden; margin-bottom: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; margin-bottom: 18px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 30px; height: 6px; border-radius: 3px; }
.sw.green { background: var(--green); }
.sw.amber { background: repeating-linear-gradient(90deg, var(--amber) 0 10px, transparent 10px 14px); }
.sw.red { background: repeating-linear-gradient(90deg, var(--red) 0 3px, transparent 3px 7px); }
.sw.lift { height: 3px; background: repeating-linear-gradient(90deg, var(--blue) 0 5px, transparent 5px 10px); }
h2 { font-size: 22px; margin: 8px 0 12px; }
.stops { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.stop { background: #fff; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.stop-head { display: flex; gap: 12px; align-items: flex-start; }
.num { width: 34px; height: 34px; border-radius: 17px; background: var(--blue); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stop h3 { margin: 0; font-size: 19px; }
.stop p { margin: 0; }
.tip { background: #E7EEF7; border-radius: 12px; padding: 10px 12px; }
.listen { align-self: flex-start; min-height: 48px; padding: 0 18px; border-radius: 24px; border: 0; background: var(--blue); color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.num-marker { background: var(--blue); color: #fff; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-weight: 700; border: 2px solid #fff; }
.num-marker.start { background: var(--ink); }
@media (max-width: 420px) { .stats strong { font-size: 16px; } .hero h1 { font-size: 26px; } }
