:root{font:16px/1.5 system-ui;color:#17352b;background:#edf4ef}*{box-sizing:border-box}body{margin:0}header{background:#103f31;color:#fff;padding:22px max(18px,calc((100% - 1160px)/2))}header small{color:#c7e5d5}h1,h2,h3,p{margin:0 0 .5em}h1{font-size:clamp(2rem,5vw,3.25rem);line-height:1.1;margin:.16em 0}main{max-width:1200px;margin:auto;padding:16px}.split{display:grid;grid-template-columns:1fr 1.2fr;gap:14px;align-items:start}section{background:#fff;border:1px solid #c6dace;border-radius:12px;padding:16px;margin-bottom:14px;min-width:0}.strip{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.fleet,form{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:9px;margin:10px 0}.fleet button{color:#17352b;text-align:left;background:linear-gradient(90deg,#a5cdd8 0 var(--base,0%),#f4cf9e var(--base,0%) var(--used,0%),#d3ead7 var(--used,0%) 100%)}.fleet button[aria-pressed=true]{outline:2px solid #236247;outline-offset:1px}.fleet strong,.fleet span{display:block}.wide{grid-column:1/-1}input,select,textarea,button{width:100%;font:inherit;padding:7px 9px;border-radius:7px;border:1px solid #8da598;min-height:42px}button{cursor:pointer;background:#215741;color:white;font-weight:650;align-self:end}summary{cursor:pointer;font-weight:650}small{color:#425f50}.map{position:relative;margin-bottom:5px}.map img,.map svg{width:100%;display:block;border-radius:7px}.map svg{position:absolute;inset:0}.result,.stop{padding:10px;border:1px solid #c6dace;border-radius:8px;margin-top:8px}.result.active{background:#e9f5ec}.result button{width:auto;margin:5px 5px 0 0}.result .secondary{color:#184c37;background:#fff}.unavailable{color:#823d21}.floor{height:24px;margin:6px 0 2px;background:linear-gradient(90deg,#a5cdd8 0 var(--base),#f4cf9e var(--base) var(--used),#d3ead7 var(--used) 100%);border:1px solid #648977;border-radius:4px}#trip{margin-top:14px}@media(max-width:750px){.split{grid-template-columns:1fr}}
.account-actions:not([hidden]){display:flex;gap:8px;flex-wrap:wrap}.account-actions button{width:auto}

.dimensions{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:9px;margin:10px 0}
fieldset{border:1px solid #c6dace;border-radius:8px;min-width:0}
.check input{width:auto;min-height:auto}.driver-print{width:auto}.driver-print[hidden]{display:none}
#driver-sheet{display:none}.load-grid{display:flex;gap:3px;margin:.35em 0;max-width:100%}.load-grid div{background:#f4cf9e;border:1px solid #8e5928;min-height:24px;flex:0 1 26px;text-align:center}
@media print{body:has(#driver-sheet:not(:empty)){background:white;color:black}body:has(#driver-sheet:not(:empty))>header,body:has(#driver-sheet:not(:empty))>main{display:none}#driver-sheet:not(:empty){display:block;border:0;margin:0;padding:0}#driver-sheet article{break-inside:avoid;margin:12px 0;border-bottom:1px solid #999;padding-bottom:8px}}

.offer-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:10px}
.offer-card{display:flex;flex-direction:column;padding:13px;border:1px solid #c6dace;border-radius:8px;background:#f6faf7}
.offer-card button{margin-top:auto}
#offer-selection{padding:8px 10px;background:#e9f5ec;border-radius:7px;font-weight:650}

#street-map{height:clamp(320px,48vh,510px);border:1px solid #c6dace;border-radius:8px;background:#e5eff5;isolation:isolate}
.map-actions:not([hidden]){display:flex;gap:8px;margin:8px 0;flex-wrap:wrap}.map-actions button{width:auto;background:#eef5ef;color:#1d4536}
.route-pin{display:grid;place-items:center;color:#fff;background:#1a644a;border:2px solid white;border-radius:50%;font:700 14px system-ui;box-shadow:0 1px 5px #17352b80}
.route-pin.highlight{background:#aa4e18}.leaflet-popup-content p{margin:.25em 0}.leaflet-popup-content button{width:auto;min-height:34px}
.stop.highlighted{border-color:#aa4e18;outline:2px solid #f3cda8}#map-status:empty{display:none}#map-status{color:#853a21}

:root{
  color-scheme:light;
  --ink:#22352a;--muted:#516176;--line:#e1dbc9;--paper:#fffaf0;--ground:#f5efe3;
  --navy:#122e24;--navy-2:#234b37;--gold:#eee0b7;--accent:#235b43;
  font:16px/1.5 "Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);background:var(--ground);
}
html{scroll-behavior:smooth}body{background:var(--ground)}[hidden]{display:none!important}
.masthead{position:relative;overflow:hidden;padding:0;background:var(--navy);color:white}
.masthead::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 80% 110%,#446a4c 0,transparent 63%),linear-gradient(105deg,#122e24 20%,#28503b 95%);pointer-events:none}
.masthead-inner,.hero{position:relative;max-width:1240px;margin:auto;padding-inline:24px}
.masthead-inner{display:flex;min-height:66px;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid #ffffff25}
.brand,.masthead nav a,.hero-link{text-decoration:none}
.masthead .brand{display:flex;align-items:center;gap:10px;color:white;font-weight:760;letter-spacing:.085em;white-space:nowrap}
.brand-mark{display:grid;place-items:center;width:30px;height:30px;border:1px solid #d8c596;border-radius:7px;color:var(--gold);font:700 19px Georgia,serif}
.masthead .brand small{color:var(--gold);font-size:.72rem;letter-spacing:.15em}
.masthead nav{display:flex;flex-wrap:wrap;gap:8px 19px}.masthead nav a{font-size:.87rem;font-weight:580;color:#d7e2ef;padding-block:10px}
.masthead nav a:hover{color:white;text-decoration:underline}
.hero{display:flex;align-items:end;justify-content:space-between;gap:16px;padding-top:36px;padding-bottom:47px}
.hero h1{font-family:"Instrument Serif",Georgia,serif;font-weight:500;font-size:clamp(2.65rem,6.8vw,5.2rem);letter-spacing:-.055em;line-height:1;margin:0 0 12px}
.hero p{color:#d6e2ef;margin:0;max-width:45ch;font-size:clamp(.98rem,2vw,1.12rem)}
.masthead .hero-link{white-space:nowrap;align-self:end;background:var(--gold);color:#192238;border-radius:9px;padding:11px 15px;font-weight:750}
.hero-link span{margin-left:.3em}
main{max-width:1240px;padding:20px 24px}section{scroll-margin-top:12px;background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:clamp(16px,2.6vw,28px);margin-bottom:16px;box-shadow:0 5px 18px #21374808}
h2{font-size:clamp(1.22rem,2.4vw,1.55rem);letter-spacing:-.025em;line-height:1.25}
h3{font-size:1rem;letter-spacing:-.012em}small{color:var(--muted)}.strip{align-items:center}
.search-panel{position:relative;margin-top:-40px;border-top:3px solid #a48a54;box-shadow:0 12px 32px #162c4918}
form{gap:12px;margin:14px 0}.search-panel form{grid-template-columns:repeat(6,minmax(0,1fr));align-items:end}
label{color:#283b55;font-size:.85rem;font-weight:650}label input,label select,label textarea{margin-top:5px}
input,select,textarea,button{border-color:#b5c5d7;border-radius:8px;min-height:45px}
input,select,textarea{background:#fafcff;color:var(--ink);font-weight:500}
button{background:var(--navy-2);border:1px solid var(--navy-2);color:white;font-weight:690}
button:hover{filter:brightness(1.14)}button:disabled{opacity:.62;cursor:wait}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,textarea:focus-visible{outline:3px solid #559173;outline-offset:2px}
.route-submit{grid-column:1/-1;justify-self:start;width:auto;background:var(--accent);padding-inline:20px}
details{padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:#fdf8ed}
details[open]{padding-bottom:11px}summary{color:#2a533f;font-size:.89rem}.route-options{margin-top:1px}
#fleet-panel>details{margin-top:9px}
#storage-mode{border:1px solid var(--line);padding:4px 9px;border-radius:999px;background:#f6efe0;font-size:.79rem}
#fleet{margin:14px 0;gap:12px}
.fleet button{min-height:91px;padding:13px 12px;border-color:#8faab9;color:var(--ink);background:linear-gradient(90deg,#bdd5ec 0 var(--base,0%),#f6d7a7 var(--base,0%) var(--used,0%),#d8eddf var(--used,0%) 100%)}
.fleet button[aria-pressed=true]{outline-color:var(--accent)}
.fleet button strong{font-size:1.05rem}.fleet button span{font-size:.87rem}
.offer-board{gap:12px}.offer-card{padding:14px;background:#fdf8ed;border-color:var(--line);border-radius:11px}.offer-card small{margin-bottom:10px}.offer-card button{width:100%}
.result,.stop{border-color:var(--line);border-radius:11px;padding:12px}.result.active,#offer-selection{background:#f8f1e2}.result.unavailable{background:#fff8f3;color:#783d23}
.floor{background:linear-gradient(90deg,#bdd5ec 0 var(--base),#f6d7a7 var(--base) var(--used),#d8eddf var(--used) 100%);border-color:#93a5b3}
.split{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:16px}
#street-map{height:clamp(320px,49vh,580px);border-radius:12px;border-color:var(--line)}
.map-actions button,.driver-print,.result .secondary{background:#f4eddd;color:#285141;border-color:#bdcddd}
.route-pin{background:#235b43}.route-pin.highlight{background:#9b551d}
#corridor-status:empty,#match-status:empty,#unmapped-stops:empty,#connect-status:empty,#fleet-status:empty{display:none}
@media(max-width:1020px){.search-panel form{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:750px){main{padding:17px 14px}.masthead-inner,.hero{padding-inline:15px}.hero{padding-top:27px;padding-bottom:41px}.search-panel{margin-top:-35px}.split{grid-template-columns:minmax(0,1fr)}}
@media(max-width:490px){.masthead-inner{min-height:55px;gap:7px}.masthead nav{gap:0 10px}.masthead nav a{font-size:.79rem}.brand-mark{display:none}.masthead .brand{font-size:.87rem;gap:0}.hero{display:block}.hero-link{display:none}.search-panel form{grid-template-columns:repeat(2,minmax(0,1fr))}.route-submit{width:100%}.fleet{grid-template-columns:repeat(2,minmax(0,1fr))}.fleet button{min-height:82px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{body:has(#driver-sheet:not(:empty)){background:white;color:#000}#driver-sheet:not(:empty){box-shadow:none}}


/* Midnight blue with burgundy actions; trailer colors still denote cargo state. */
:root{--ink:#1b263a;--muted:#4e5c70;--line:#cbd5df;--paper:#fff;--ground:#eef1f4;--navy:#10213b;--navy-2:#263d5b;--gold:#dbe5f0;--accent:#811f3b}
.masthead{background:#10213b;color:#fff}.masthead::before{background:none}
.masthead-inner{border-bottom-color:#516279}
.masthead .brand,.masthead nav a{color:#fff}
.brand-mark,.masthead .brand small{color:#dbe5f0;border-color:#dbe5f0}
.masthead nav a:hover{color:#dbe5f0}
.hero h1{color:#fff}.hero p{color:#e2edf9}
.masthead .hero-link,.route-submit{background:#811f3b;color:#fff;border-color:#811f3b}
.search-panel{border-top-color:#811f3b;background:#fff}
#fleet-panel{background:#e7edf3}
#fleet-panel>details,#storage-mode,.offer-card{background:#fff}
.offer-card button,#find>button:first-of-type{background:#811f3b;border-color:#811f3b}

.demo-mode{background:#eef1f4;color:#1b263a}
.demo-mode .hero{padding-bottom:44px}
.demo-mode .sample-badge{font-size:.9rem;color:#dbe5f0;margin-top:8px}
.demo-mode .mock-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:12px;margin:15px 0}
.demo-mode fieldset{margin:0;padding:0;border:0}
.demo-mode legend{font-weight:750;font-size:1.03rem;margin-bottom:12px}
.demo-mode label.option{display:block;position:relative;cursor:pointer;background:#e7edf3;border:1px solid #cbd5df;color:#1b263a;border-radius:10px;padding:12px}
.demo-mode label.option span{display:block;font-weight:500}
.demo-mode input[type=radio]{position:absolute;width:1px;min-height:1px;opacity:0;margin:0}
.demo-mode input[type=radio]:focus-visible+label{outline:3px solid #5f88b7;outline-offset:2px}
.demo-mode input[type=radio]:checked+label{border:2px solid #811f3b;padding:11px;background:#fff}
.demo-mode .truck-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}
.demo-mode .trip-sample{display:none}
.demo-mode #truck-01:checked~.trip-one,.demo-mode #truck-02:checked~.trip-two{display:block;grid-column:1/-1}
.demo-mode .preview-map{width:100%;height:auto;display:block;border-radius:10px;border:1px solid #ccd9df}
.demo-mode .route-submit{display:inline-flex;text-decoration:none;color:white;border-radius:9px;padding:10px 17px;font-weight:700}
.demo-mode .floor-key{margin-top:6px}
.demo-mode #vysledek{scroll-margin-top:12px}
@media(max-width:480px){.demo-mode .truck-options{grid-template-columns:1fr}}
.demo-mode .floor-one{--base:77.94%;--used:98.16%}
.demo-mode .floor-two{--base:58%;--used:58%}

.demo-mode .road-panel{min-width:0}
.demo-mode #preview-road{height:clamp(300px,48vh,480px);border:1px solid #cad5df;border-radius:12px;background:#e5eef4;isolation:isolate}
.demo-mode .road-marker{font:700 14px system-ui;color:white;background:#183958;border:2px solid white;border-radius:50%;display:grid;place-items:center}
.demo-mode .road-marker.pickup{background:#811f3b}
