:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f4f7f4;background:#050806;--panel:#0d1510;--line:#2b3930;--muted:#9ca79f;--green:#8eea3c;--amber:#f4bd55;--red:#ff756d}
*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#050806,#07100a);min-height:100vh}button,select,input{font:inherit}button,select,input{border-radius:14px;border:1px solid var(--line);background:#111a14;color:#f4f7f4}button{cursor:pointer}button:disabled,select:disabled{opacity:.5;cursor:not-allowed}.hidden{display:none!important}
.topbar{position:sticky;top:0;z-index:20;padding:18px max(18px,env(safe-area-inset-left)) 14px;display:flex;justify-content:space-between;align-items:flex-start;background:rgba(5,8,6,.94);backdrop-filter:blur(12px);border-bottom:1px solid #17221a}.topbar h1{margin:3px 0;font-size:24px}.topbar p{margin:0;color:var(--muted)}.eyebrow,.stop-kicker{font-size:11px;letter-spacing:.12em;color:#8f9b93;font-weight:800}.icon-btn{width:44px;height:44px;font-size:19px}
main{max-width:760px;margin:auto;padding:18px 14px 40px}.panel{background:linear-gradient(180deg,#0d1510,#0a110d);border:1px solid var(--line);border-radius:20px;padding:18px;margin-bottom:14px;box-shadow:0 10px 30px rgba(0,0,0,.18)}h2{margin:4px 0 14px;font-size:22px}label{display:block;color:var(--muted);font-size:13px;margin:14px 0 6px}select,input{width:100%;padding:14px 15px;min-height:50px}.course-preview{margin-top:12px;padding:12px;border-radius:14px;background:#111b14;border:1px solid #334438}.setup-actions,.validation-actions{display:flex;gap:10px;margin-top:14px}.setup-actions button{flex:1}.primary,.secondary,.danger{min-height:48px;padding:11px 15px;font-weight:800}.primary{background:var(--green);color:#071006;border-color:var(--green)}.secondary{background:#121a15}.danger{background:#281412;border-color:#63312c;color:#ff9b92}.big{width:100%;min-height:58px;font-size:16px}
.status{min-height:20px;color:var(--muted);margin:10px 0 0;font-size:13px}.run-header{display:flex;justify-content:space-between;gap:10px;align-items:center}.run-header h2{margin-bottom:2px}.run-header p{margin:0;color:var(--muted)}
.current-stop-name{font-size:30px;font-weight:850;line-height:1.05;margin:8px 0 16px}.time-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.time-row div{border:1px solid var(--line);border-radius:14px;padding:10px}.time-row span{display:block;color:var(--muted);font-size:12px}.time-row strong{font-size:19px}.distance-box{margin-top:10px;border-radius:14px;padding:13px;background:#111a14;display:flex;justify-content:space-between;gap:12px;align-items:center}.distance-box span{color:var(--muted);font-size:13px}.distance-box strong{font-size:17px}
.counts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.count-control,.onboard{border:1px solid var(--line);border-radius:14px;padding:10px}.count-control>span{display:block;color:var(--muted);font-size:12px;margin-bottom:7px}.count-control>div{display:flex;align-items:center;justify-content:space-between}.count-control button{width:40px;height:38px;font-size:22px}.count-control strong{font-size:20px}.onboard{grid-column:1/-1;text-align:center;font-weight:800;color:#d8e3da}.validation-actions{display:block}.validation-actions button{margin-bottom:8px}.next-stop{display:flex;align-items:center;justify-content:space-between;gap:15px}.next-stop strong{font-size:19px}.next-stop>span:last-child{color:var(--muted);white-space:nowrap}
.section-title{display:flex;justify-content:space-between;margin-bottom:10px}.section-title span{font-weight:800}.section-title strong{color:var(--green)}.progress-list{display:grid;gap:6px;max-height:420px;overflow:auto}.progress-item{padding:10px 12px;border-radius:12px;border:1px solid #263229;display:flex;justify-content:space-between;gap:8px}.progress-item.current{border-color:var(--green);background:#101c12}.progress-item.done{opacity:.55}.progress-item span:last-child{color:var(--muted)}
.report-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:14px}.report-summary div{padding:12px;border:1px solid var(--line);border-radius:14px}.report-summary small{display:block;color:var(--muted)}.report-summary strong{font-size:18px}.report-table{overflow:auto}.report-table table{width:100%;border-collapse:collapse;font-size:13px}.report-table th,.report-table td{border-bottom:1px solid var(--line);padding:9px 6px;text-align:left;white-space:nowrap}.report-table th{color:var(--muted)}
dialog{border:0;padding:0;background:transparent;color:#fff;width:min(94vw,520px)}dialog::backdrop{background:rgba(0,0,0,.72)}.dialog-card{position:relative;background:#0b120e;border:1px solid var(--line);border-radius:20px;padding:20px}.close-btn{position:absolute;right:12px;top:12px;border:0;background:transparent;font-size:28px;color:#aaa}.help{font-size:13px;color:var(--muted);line-height:1.45}
@media(max-width:520px){main{padding:12px 10px 30px}.panel{padding:15px;border-radius:17px}.topbar h1{font-size:21px}.current-stop-name{font-size:27px}.time-row{grid-template-columns:1fr 1fr}.time-row div:last-child{grid-column:1/-1}.run-header{align-items:flex-start}.run-header .danger{min-height:42px;padding:8px 10px}.next-stop{align-items:flex-start;flex-direction:column;gap:5px}}