:root{font-family:system-ui,sans-serif;color:#102c3e;background:#edf3f5;line-height:1.5;--navy:#0b2134;--teal:#00685c;--line:#c9d8de}
*{box-sizing:border-box}
body{margin:0}
.wrap{width:min(100% - 2rem,48rem);margin:auto}
.mast{background:var(--navy);color:white;border-bottom:4px solid #37d5b0}
.mast .wrap{display:flex;gap:.85rem;align-items:center;padding:1.25rem 0}
.mast img{border-radius:12px}
.mast p{margin:0;color:#b5d6de}
h1,h2,h3{line-height:1.2}
h1{font-size:clamp(1.35rem,5vw,2rem);margin:0 0 .18rem}
h2{margin:0 0 1.15rem;font-size:1.45rem}
nav,.actions,.fields{display:flex;gap:.75rem;flex-wrap:wrap}
nav{margin:1.15rem 0}
nav button,.actions>*{flex:1 1 auto}
.fields>*{flex:1 1 14rem;min-width:0}
.panel{background:white;border:1px solid var(--line);border-radius:18px;padding:clamp(1rem,4vw,1.7rem);box-shadow:0 8px 25px #0b21340c}
label{display:block;font-weight:650;margin-bottom:1rem;min-width:0}
small,.muted,footer{color:#496575}
small{font-size:14px;font-weight:400}
input,textarea{appearance:none;display:block;width:100%;min-width:0;min-height:48px;margin:.3rem 0 0;padding:.65rem .75rem;border:1px solid #9fb5c0;border-radius:9px;background:#f8fbfc;color:inherit;font:inherit;font-weight:400;text-align:left}
textarea{resize:vertical}
button,.button{display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:48px;padding:.65rem 1rem;border:1px solid var(--line);border-radius:10px;background:white;color:inherit;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}
button[aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:white}
.primary{background:var(--teal);border-color:var(--teal);color:white}
button:disabled{background:#e5ecef;color:#506575;border-color:var(--line);cursor:default}
:focus-visible{outline:3px solid #007d9f;outline-offset:3px}
.summary{display:grid;grid-template-columns:1fr 1.5fr;gap:.6rem;margin-bottom:1rem}
.summary>div,.report{border-radius:10px;padding:.85rem;background:#e9f7f4}
.summary span,.summary strong{display:block}
.summary strong{font-size:clamp(1.1rem,5vw,1.55rem);overflow-wrap:anywhere}
.report{margin-top:1rem}.report p{margin:0 0 .6rem}
#trips{list-style:none;margin:0;padding:0}
.trip{border-top:1px solid var(--line);padding:1rem 0;overflow-wrap:anywhere}
.trip p{margin:.35rem 0}.trip .actions{margin-top:.6rem;max-width:15rem}
#status{background:#d9f1eb;border-radius:10px;padding:.75rem 1rem}
footer{margin:1.1rem 0;font-size:.9rem;text-align:center}
[hidden]{display:none!important}
@media(max-width:540px){.fields{display:block}#export{width:100%}nav{gap:.5rem}nav button{padding-inline:.45rem}}

body{background:radial-gradient(ellipse at 50% 0,#d8ebe9 0,transparent 32rem),#edf3f5}
.mast{background:linear-gradient(125deg,#091b2d,#10394a);border-bottom:3px solid #43e0b3;overflow:hidden}
.mast .hero{position:relative;justify-content:space-between;isolation:isolate;min-height:142px;padding:1.5rem 0}
.hero-copy{position:relative;z-index:2}
.mast h1{font-size:clamp(1.7rem,6vw,2.65rem);font-weight:850;letter-spacing:-.045em}
.mast p{font-weight:600;color:#b8eadf}
.road-scene{position:absolute;z-index:-1;right:0;bottom:7px;width:min(42%,17rem);height:100px;opacity:.85;overflow:hidden;mask-image:linear-gradient(to right,transparent,#000 17%,#000 88%,transparent)}
.road-moon{position:absolute;right:15%;top:4px;width:70px;height:70px;border-radius:50%;background:#55d5b526;box-shadow:0 0 36px #4bceaf23}
.road-track{position:absolute;bottom:9px;width:100%;height:16px;border-top:1px solid #8bc5c5;background:repeating-linear-gradient(90deg,#93c9c4 0 14px,transparent 14px 29px) 0 7px/auto 2px no-repeat;animation:road 1.6s linear infinite}
.truck{position:absolute;right:23%;bottom:24px;width:78px;height:38px;animation:truck 3.6s ease-in-out infinite;filter:drop-shadow(0 4px 6px #001622)}
.truck span{position:absolute;display:block}
.truck-bed{width:50px;height:26px;left:0;top:0;background:linear-gradient(#c8f5e9,#72cdbb);border-radius:4px}
.truck-cab{right:0;top:8px;width:26px;height:18px;background:#4ce0b4;clip-path:polygon(0 0,58% 0,100% 49%,100% 100%,0 100%)}
.truck-wheel{top:22px;width:13px;height:13px;border-radius:50%;background:#102337;border:3px solid #a7e2d8}
.rear{left:9px}.front{right:6px}
@keyframes road{to{background-position:-29px 7px}}
@keyframes truck{0%,100%{transform:translate(0,0)}50%{transform:translate(8px,-3px)}}
@media(prefers-reduced-motion:reduce){.road-track,.truck{animation:none}}
nav{padding:.28rem;background:#dbe7eb;border-radius:13px}
nav button{border:0}
.panel{border-radius:21px;box-shadow:0 12px 35px #102c3e12}
.schedule{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-bottom:1rem}
fieldset{min-width:0;margin:0;padding:.6rem .7rem .7rem;border:1px solid var(--line);border-radius:12px;background:#f5f9fa}
legend{font-weight:750;padding:0 .25rem}
.date-pair{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:.5rem}
.schedule label{font-size:.875rem;margin:0}
.schedule input{width:100%;max-width:100%;padding-inline:.5rem;background:white}
.schedule input::-webkit-date-and-time-value{min-width:0;text-align:left;margin:0}
.now{width:100%;margin-top:.55rem;color:#00584e;background:#d9f4eb;border-color:#b2dfd4;padding-inline:.6rem}
#save{min-height:54px}
@media(max-width:540px){.schedule{grid-template-columns:1fr}.road-scene{opacity:.42;right:-1rem}}

.draft-notice{margin:0 0 1rem;padding:.75rem .9rem;border-radius:10px;background:#e1f5ef;color:#00584e;border:1px solid #b2dfd4;font-weight:600}
#discard{color:#7c3333}

@media (prefers-reduced-motion: no-preference) {
  .panel:not([hidden]) { animation: panel-enter 240ms ease-out both; }
  .draft-notice:not([hidden]), #status:not([hidden]) {
    animation: feedback-enter 210ms ease-out both;
  }
  .report:not([hidden]) { animation: feedback-enter 210ms ease-out both; }
  .primary, .now { transition: box-shadow 150ms ease, transform 150ms ease; }
  .primary:active:not(:disabled), .now:active { transform: translateY(1px); }
  @keyframes panel-enter {
    from { opacity: .65; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes feedback-enter {
    from { opacity: .55; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (hover: hover) {
  .primary:hover:not(:disabled), .now:hover { box-shadow: 0 3px 10px #00685c25; }
}

.trip-progress{--position:0%;margin:0 0 .85rem;padding:.75rem 1rem .6rem;border:1px solid var(--line);border-radius:14px;background:white}
.trip-progress[data-stage="driving"]{--position:50%}
.trip-progress[data-stage="finished"]{--position:100%}
#progress-label{margin:0;color:var(--teal);font-size:.95rem;font-weight:750}
.progress-track{position:relative;height:28px;margin:0 16px}
.progress-line,.progress-fill{position:absolute;top:21px;left:0;height:3px;border-radius:3px}
.progress-line{width:100%;background:#cadbe0}
.progress-fill{width:var(--position);background:#008b75}
.progress-point{position:absolute;top:18px;width:9px;height:9px;border-radius:50%;border:2px solid #00685c;background:white;transform:translateX(-50%)}
.progress-point.start{left:0}
.progress-point.finish{left:100%}
.progress-truck{position:absolute;left:var(--position);top:3px;width:32px;height:20px;transform:translateX(-50%)}
.progress-truck span{position:absolute;display:block}
.mini-bed{top:1px;left:0;width:20px;height:12px;border-radius:3px;background:#00685c}
.mini-cab{top:4px;right:0;width:11px;height:9px;background:#008b75;clip-path:polygon(0 0,55% 0,100% 44%,100% 100%,0 100%)}
.mini-wheel{top:10px;width:7px;height:7px;border:1px solid white;border-radius:50%;background:#0b2134}
.mini-wheel.back{left:4px}
.mini-wheel.front{right:3px}
.progress-captions{display:flex;justify-content:space-between;color:#496575;font-size:.875rem}
@media(prefers-reduced-motion:no-preference){
  .trip-progress[data-animate="true"] .progress-truck{transition:left 640ms ease-in-out}
  .trip-progress[data-animate="true"] .progress-fill{transition:width 640ms ease-in-out}
}

.install-banner{margin:1rem 0 0;padding:.65rem .75rem .65rem .95rem;border:1px solid #b9ddd5;border-radius:14px;background:linear-gradient(120deg,#e7f7f2,#f9fcfd)}
.install-row{display:flex;align-items:center;justify-content:space-between;gap:.7rem}
.install-copy{min-width:0;line-height:1.25}
.install-copy strong,.install-copy span{display:block}
.install-copy strong{font-size:.9rem;color:#164637}
.install-copy span{margin-top:.2rem;color:#456271;font-size:.875rem}
.install-banner button{flex:none;color:white;background:var(--teal);border-color:var(--teal);padding-inline:.75rem}
.install-banner p{margin:.65rem 0 .1rem;padding:.65rem 0 0;border-top:1px solid #b9ddd5;color:#385665}
