:root { --ink:#1a3433; --muted:#657773; --green:#173d3b; --lime:#d8f36a; --line:#dce4df; --bg:#f3f5f0; --white:#fff; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; -webkit-font-smoothing:antialiased; }
button,input,select { font:inherit; }
button { cursor:pointer; touch-action:manipulation; }
button:disabled { cursor:default; }
button:focus-visible,select:focus-visible,input:focus-visible { outline:3px solid #72a6a0; outline-offset:3px; }
[hidden] { display:none !important; }
.icon { width:20px; height:20px; flex-shrink:0; vertical-align:middle; }
.app { max-width:1120px; margin:auto; }
.topbar { background:var(--green); color:white; padding:max(20px,env(safe-area-inset-top)) 24px 16px; }
.toprow,.brand { display:flex; align-items:center; gap:12px; }
.toprow { justify-content:space-between; }
.eyebrow { font-size:10px; font-weight:750; letter-spacing:.14em; }
.brand .eyebrow { color:var(--lime); margin-bottom:5px; }
h1.title { font-size:21px; letter-spacing:-.6px; line-height:1.1; margin:0; font-weight:700; }
.icon-btn { height:44px; width:44px; border:1px solid #53706a; background:#ffffff09; border-radius:14px; display:grid; place-items:center; }
.icon-btn .icon { filter:brightness(0) invert(1); }
.icon-btn:disabled { opacity:.5; }
.header-bottom { display:flex; align-items:center; gap:7px; margin-top:20px; }
.status-dot { width:6px; height:6px; background:var(--lime); border-radius:50%; flex-shrink:0; }
.subtitle { color:#c8d6d1; font-size:11px; line-height:1.5; }
.intro { padding:28px 24px 24px; display:flex; justify-content:space-between; align-items:center; gap:15px; }
.intro .eyebrow { color:#6c7d71; font-size:9px; }
.intro h2 { margin:8px 0; font-size:28px; line-height:1.1; letter-spacing:-1px; font-weight:700; }
.intro p { font-size:12px; color:var(--muted); margin:0; line-height:1.5; }
.controls { padding:0 24px; }
.filter-grid { display:grid; grid-template-columns:1fr 1.5fr; gap:12px; }
.field label { font-size:10px; font-weight:700; color:#586d67; display:flex; align-items:center; gap:5px; margin-bottom:7px; }
.field label .icon { width:14px; height:14px; }
.field select,.field input { width:100%; min-width:0; height:46px; background:var(--white); border:1px solid #d4dfd6; border-radius:12px; padding:0 12px; color:var(--ink); font-size:14px; }
.field input::placeholder { color:#89958e; }
.day-strip { display:flex; gap:8px; overflow-x:auto; padding:18px 24px 16px; scrollbar-width:none; }
.day-strip::-webkit-scrollbar { display:none; }
.chip { white-space:nowrap; min-height:42px; padding:0 16px; background:transparent; border:1px solid #d7e0d7; border-radius:12px; font-size:12px; color:#62766b; font-weight:600; }
.chip.active { background:var(--green); border-color:var(--green); color:white; }
.install-help { padding:0 24px; font-size:11px; color:var(--muted); }
.install-help button { padding:10px 12px; min-height:44px; border:1px solid #b9c9b9; border-radius:10px; background:#eaf0df; color:var(--green); }
.summary { padding:8px 24px 16px; display:flex; justify-content:space-between; align-items:center; gap:10px; font-size:11px; color:var(--muted); }
.banner { display:none; margin:0 24px 16px; padding:13px 15px; font-size:13px; line-height:1.5; border-radius:12px; }
.banner.show { display:block; }
.banner.error { color:#9b251d; background:#ffebe7; border:1px solid #f6c8c0; }
.banner.offline { color:#735017; background:#fff2d6; border:1px solid #e5d4a1; }
.banner.success { color:var(--green); background:#e3eecf; border:1px solid #cadbae; }
.content { padding:0 24px; }
.day-group { margin-bottom:26px; }
.day-heading { display:flex; justify-content:space-between; align-items:center; margin:0 0 12px; gap:10px; font-size:14px; font-weight:700; letter-spacing:-.2px; }
.day-heading span:last-child { font-size:10px; color:var(--muted); font-weight:500; }
.cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.card { border:1px solid #dbe4da; border-radius:20px; background:white; overflow:hidden; box-shadow:0 3px 4px #20392c03,0 12px 28px #20392c03; }
.card.completed { opacity:.7; }
.card-top { padding:18px 18px 0; display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.driver { font-size:11px; font-weight:650; color:#496955; background:#eff4eb; border:1px solid #e4ebdd; padding:6px 9px; border-radius:8px; display:flex; align-items:center; gap:5px; max-width:100%; overflow-wrap:anywhere; }
.driver .icon { height:13px; width:13px; }
h3.equipment { font-size:20px; letter-spacing:-.6px; margin:16px 18px 18px; line-height:1.3; overflow-wrap:anywhere; font-weight:700; }
.route { background:#f7f9f4; margin:0 18px; border:1px solid #edf0e8; border-radius:13px; padding:16px; }
.route-stop { display:grid; grid-template-columns:14px minmax(0,1fr); gap:11px; position:relative; }
.route-stop.origin { padding-bottom:22px; }
.route-stop.origin:before { content:""; position:absolute; width:1px; top:13px; bottom:-1px; left:5px; border-left:1px dashed #adbdab; }
.route-marker { width:11px; height:11px; border:2px solid #92a99a; border-radius:50%; margin-top:3px; }
.destination .route-marker { background:#2b5950; border-color:#2b5950; border-radius:3px; }
.route-label { color:#7a8d7d; font-size:9px; font-weight:700; letter-spacing:.08em; }
.route-value { margin-top:4px; font-size:14px; line-height:1.4; font-weight:650; overflow-wrap:anywhere; }
.meta { display:grid; grid-template-columns:1fr; gap:12px; padding:18px; }
.meta-box { display:flex; gap:7px; align-items:flex-start; min-width:0; }
.meta-box .icon { width:17px; height:17px; margin-top:1px; opacity:.7; }
.meta-label { font-size:10px; color:var(--muted); margin-bottom:5px; }
.meta-value { font-size:12px; font-weight:650; line-height:1.5; overflow-wrap:anywhere; }
.notes { margin:0 18px; padding:12px; border-radius:10px; background:#fbf5e6; display:flex; gap:9px; color:#78612d; font-size:12px; line-height:1.5; }
.notes .icon { width:16px; height:16px; margin-top:2px; }
.notes strong { font-size:10px; font-weight:700; }
.notes p { margin:3px 0 0; overflow-wrap:anywhere; white-space:pre-line; }
.actions { padding:18px; }
.complete-btn { display:flex; justify-content:center; align-items:center; gap:8px; width:100%; min-height:50px; border:0; border-radius:12px; background:var(--lime); color:var(--green); font-size:14px; font-weight:750; transition:background .15s,transform .15s; }
.complete-btn:hover:not(:disabled) { background:#cbea54; }
.complete-btn:active:not(:disabled) { transform:scale(.985); }
.complete-btn:disabled { opacity:.55; }
.complete-btn.done { background:#edf4e4; opacity:1; }
.row-error { font-size:12px; line-height:1.5; color:#a72e20; margin-top:8px; }
.row-error:empty { margin:0; }
.empty { text-align:center; background:#ffffff80; border:1px dashed #cad8c7; border-radius:18px; padding:42px 20px; font-size:13px; color:var(--muted); line-height:1.6; }
.empty>.icon { display:block; width:40px; height:40px; background:#e9f2d6; padding:8px; border-radius:50%; margin:0 auto 12px; }
.empty strong { display:block; color:var(--green); font-size:20px; margin-bottom:5px; }
.footer { display:flex; align-items:center; justify-content:center; gap:6px; font-size:10px; color:#819081; padding:6px 24px calc(28px + env(safe-area-inset-bottom)); }
.footer .icon { width:14px; height:14px; opacity:.6; }
.footer span { margin-left:6px; }
.skeleton { height:380px; border:1px solid var(--line); border-radius:20px; background:linear-gradient(100deg,#e7ece2 20%,#f7f9f4 50%,#e7ece2 80%); background-size:200% 100%; animation:shimmer 1.5s infinite; }
.spin { animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes shimmer { to { background-position:-200% 0; } }
@media (max-width:600px) {
 .cards { grid-template-columns:1fr; }
 .topbar { padding-left:20px; padding-right:20px; }
 .intro { padding:26px 20px 22px; }
 .intro h2 { font-size:25px; }
 .intro p { max-width:220px; font-size:11px; }
 .controls { padding:0 20px; }
 .filter-grid { grid-template-columns:1fr; gap:14px; }
 .field input,.field select { font-size:16px; }
 .day-strip { padding-left:20px; padding-right:20px; }
 .content { padding:0 14px; }
 .summary { padding-left:20px; padding-right:20px; }
 .day-heading { padding:0 5px; }
 .banner { margin-left:14px; margin-right:14px; }
}
@media (min-width:900px) { .app { padding:24px 0; } .topbar { border-radius:20px; } .intro { padding-top:32px; } .filter-grid { grid-template-columns:1fr 2fr; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; } }

.card-label { display:flex; align-items:center; gap:6px; font-size:9px; letter-spacing:.08em; color:var(--muted); font-weight:650; }
.card-label .icon { width:16px; height:16px; opacity:.7; }
.stop-time { display:flex; align-items:center; gap:6px; margin-top:8px; color:var(--green); font-size:14px; font-weight:700; }
.stop-time .icon { width:15px; height:15px; opacity:.75; }
.route-value { font-size:16px; }
.complete-btn.confirm { background:var(--green); color:white; }
.complete-btn.confirm .icon { filter:brightness(0) invert(1); }
.complete-btn.confirm:hover:not(:disabled) { background:#245551; }
.confirm-help { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:4px; font-size:11px; color:var(--muted); }
.confirm-help button { border:0; background:none; color:var(--green); padding:10px; min-height:44px; font-size:12px; font-weight:650; text-decoration:underline; text-underline-offset:3px; }
