:root { color-scheme:light; font:16px/1.5 Inter,Arial,sans-serif; color:#162e28; background:#f5f6f0 }
* { box-sizing:border-box }
body,h1,h2,p,dl,dd { margin:0 }
[hidden] { display:none !important }
header { background:#13382f; color:#fffefa }
.bar,main { max-width:42rem; margin:auto; padding:0 1.1rem }
.bar { display:flex; align-items:center; justify-content:space-between; min-height:4rem; gap:1rem }
.bar strong { font-size:1.18rem; letter-spacing:-.04em }
.bar span { color:#bfe58d }
main { padding-top:clamp(1.5rem,5vw,3rem); padding-bottom:4rem }
h1 { font-size:clamp(1.9rem,6vw,2.7rem); letter-spacing:-.055em; line-height:1.15; margin-bottom:1rem }
h2 { font-size:1.3rem; line-height:1.3; letter-spacing:-.025em }
label,dt,small { color:#506358 }
.card { background:#fffefa; border:1px solid #d6ded3; padding:1.2rem; border-radius:1rem }
.form,label { display:grid; gap:.35rem }
.form { gap:1rem }
input,button,a { font:inherit }
input,button { min-height:46px; border:1px solid #9eafa1; border-radius:.5rem; padding:.5rem .8rem }
input { width:100%; background:white }
button { background:#fffefa; color:#16392e; cursor:pointer }
button:disabled { opacity:.55; cursor:default }
.quiet { color:#fffefa; background:transparent; border-color:#759183 }
.primary { background:#174b3b; color:white; border-color:#174b3b; width:100%; font-weight:650 }
:focus-visible { outline:3px solid #c36624; outline-offset:2px }
nav,.summary { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.55rem; margin-bottom:.8rem }
#refresh { margin-left:auto }
.trip { display:block; color:inherit; text-decoration:none; margin-bottom:.8rem }
.trip:hover { border-color:#55755e }
.tag { display:inline-block; border-radius:1em; background:#e8eee4; color:#254533; padding:.2rem .7rem; font-weight:600; font-size:.88rem }
.tag[data-state="in_progress"] { background:#fff0cd; color:#724806 }
.tag[data-state="completed"] { background:#d6eccb }
.tag[data-state="cancelled"] { background:#f6dfd8; color:#7a3423 }
.preparation-result { background:#edf4e6; color:#264833; padding:.9rem; border-radius:.65rem }
.preparation-result ul { margin:.4rem 0; padding-left:1.35rem }
.preparation-result small { display:block }
.route { display:grid; gap:0; margin:1rem 0 1.2rem }
.stop { position:relative; padding:0 0 1rem 1.5rem }
.stop:last-child { padding-bottom:0 }
.stop::before { content:""; position:absolute; border:2px solid #496954; background:#fffefa; border-radius:50%; left:0; top:.5rem; width:.5rem; height:.5rem }
.stop:first-child::after { content:""; position:absolute; top:1.25rem; bottom:-.4rem; left:.34rem; border-left:1px solid #a5b8a5 }
dl { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr); align-items:baseline; gap:.55rem 1rem; border-top:1px solid #dbe1d6; padding-top:1rem }
dd { text-align:right; font-weight:600; overflow-wrap:anywhere }
.card .primary { margin-top:1.2rem }
.form .primary { margin:0 }
#message { color:#694219; margin-top:1rem }
.history { margin-top:1rem }
.history h2 { margin-bottom:.8rem }
.history ol { list-style:none; margin:0; padding:0 }
.history li { padding:.95rem 0; border-top:1px solid #d6ded3 }
.history li:last-child { padding-bottom:0 }
.history-heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:.4rem }
.history h3 { margin:0; font-size:1.05rem }
.history time { display:block; color:#506358; font-size:.85rem; margin:.2rem 0 .6rem }
.history p + p { margin-top:.25rem }
.history .tag[data-state="test_accepted"] { background:#d6eccb; color:#214921 }
.history .tag[data-state="test_rejected"] { background:#fbe3db; color:#802d1a }
.history-reference small,.history-reference code { display:block }
.history-reference { padding-top:.4rem }
.history-reference code,.document-change { overflow-wrap:anywhere; font-family:ui-monospace,monospace }
#open-control,.control-foot a { color:#174b3b; font-weight:650; text-underline-offset:.18em }
#control-filters { display:flex; gap:.5rem; margin:1rem 0 }
#control-filters button[aria-pressed="true"] { color:white; background:#174b3b; border-color:#174b3b }
.control-list { list-style:none; margin:0; padding:0 1.2rem }
.control-list li { padding:1.1rem 0 }
.control-list li + li { border-top:1px solid #d6ded3 }
.control-list h2 { font-size:1.1rem }
.control-list p { margin:.35rem 0; color:#506358 }
.control-foot { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.4rem }
.control-foot time { font-size:.85rem; color:#506358 }
.control-foot a { padding:.55rem 0 }
.control-list .tag[data-state="test_accepted"],.control-list .tag[data-state="accepted"] { background:#d6eccb; color:#214921 }
.control-list .tag[data-state="test_rejected"],.control-list .tag[data-state="rejected"] { background:#fbe3db; color:#802d1a }
.control-list .tag[data-state="unknown"] { background:#fff0cd; color:#724806 }
.control-action { color:#174b3b; border-color:#587a67; font-weight:650; margin-top:.35rem }
#control-correction { width:min(27rem,calc(100% - 2rem)); box-sizing:border-box; padding:1.3rem; border:1px solid #9eafa1; border-radius:1rem; color:inherit; background:#fffefa }
#control-correction::backdrop { background:rgb(13 37 29 / 56%) }
#correction-body form { display:grid; gap:.8rem; margin-top:1rem }
#correction-body [role="alert"]:empty,#message:empty { display:none }
#message:not(:empty) { margin:0 0 1rem; overflow-wrap:anywhere }
#field-dialog { width:min(42rem,calc(100% - 1.2rem)); max-height:92dvh; padding:1.2rem; border:1px solid #9eafa1; border-radius:1rem; color:inherit; background:#fffefa }
#field-dialog::backdrop { background:rgb(13 37 29 / 56%) }
#field-dialog header { background:transparent; color:inherit; display:flex; align-items:center; justify-content:space-between; margin-bottom:1rem }
#field-dialog fieldset { min-width:0; margin:0; padding:.8rem; border:1px solid #d6ded3; border-radius:.65rem }
#field-dialog legend { color:#174b3b; font-weight:650; padding:0 .35rem }
.field-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap:.7rem }
.passenger-import { border:1px solid var(--line,#d6ded3); border-radius:.65rem; padding:.6rem .8rem; background:#f5f8f1 }
.passenger-import summary { cursor:pointer; color:#174b3b; font-weight:650; padding:.35rem 0 }
.passenger-import[open] .form { margin-top:.6rem }
.passenger-import textarea { width:100%; resize:vertical; padding:.65rem; border:1px solid #9eafa1; border-radius:.5rem; background:white; color:inherit; font:inherit }
#field-dialog select { width:100%; min-height:46px; padding:.45rem; border:1px solid #9eafa1; border-radius:.5rem; background:white; color:inherit; font:inherit }
.passenger-list { display:grid; gap:.8rem }
.remove-passenger { margin-top:.6rem }
.scope-choice { display:flex; align-items:center; gap:.7rem; min-height:44px; cursor:pointer }
.scope-choice input { width:1.2rem; min-height:1.2rem }
#field-feedback:not(:empty) { margin-bottom:.7rem; color:#843c17 }
#field-feedback[role="status"] { color:#174b3b }
.registry-nav { justify-content:flex-start; margin:0 }
.registry-nav [aria-pressed="true"] { background:#174b3b; color:white; border-color:#174b3b }
.registry-list { list-style:none; margin:0; padding:0 }
.registry-list li { display:grid; gap:.15rem; padding:.65rem 0; border-bottom:1px solid #d6ded3; overflow-wrap:anywhere }
.fleet-toggle { justify-self:start; margin-top:.3rem }
#field-body h3 { margin:.3rem 0 }
#open-reservations,.reservation-list a { color:#174b3b; font-weight:650; text-underline-offset:.18em }
.reservation-list { display:grid; gap:.8rem }
.reservation-list article { display:grid; gap:.55rem }
.reservation-list article button,.reservation-list article a { justify-self:start }
article > .control-action { margin-right:.5rem }
#active-company { flex:1; font-size:.9rem; overflow-wrap:anywhere }
#open-program { color:#174b3b; font-weight:650; text-underline-offset:.18em }
.schedule-board,.schedule-panel { display:grid; gap:.8rem }
.schedule-panel { grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); align-items:end }
.schedule-choices,.schedule-counts { display:flex; flex-wrap:wrap; gap:.4rem }
.schedule-panel select { font:inherit; min-height:46px; border:1px solid #9eafa1; border-radius:.5rem; padding:.4rem; background:white; color:inherit }
.schedule-counts button { flex:1; min-width:5rem; display:grid; text-align:left }
.schedule-counts strong { font-size:1.35rem }
.schedule-counts span { font-size:.83rem }
.schedule-board [aria-pressed="true"] { background:#174b3b; color:white; border-color:#174b3b }
.schedule-trip { margin:0 }
