#dispatch-board {
  --dp-primary:#294c39; --dp-ink:#27392c; --dp-border:#d8dbcf; --dp-muted:#5e695e;
  --dp-paper:#fffdf7; --dp-green:#e7efdf; color:var(--dp-ink); scroll-margin-top:18px; margin:0 0 26px
}
.dispatch-frame {border:1px solid #cdd3c4;border-radius:17px;overflow:hidden;background:#f3f4ec;box-shadow:0 8px 28px #3a49320c}
.dispatch-bar,.dispatch-bar span,.dispatch-assignee,.dispatch-btn,.dispatch-location-head,.dispatch-phone-top,.dispatch-phone-top>span {display:flex;align-items:center;gap:8px}
.dispatch-bar {background:#294333;color:#fffdf0;padding:12px clamp(14px,2.4vw,28px);justify-content:space-between}
.dispatch-bar span {font-size:14px;font-weight:700}
.dispatch-bar small {font-size:11px;color:#e1e9d9}
.dispatch-bar svg,.dispatch-btn svg,.dispatch-assignee svg,.dispatch-location-head>svg,.dispatch-phone-top svg {width:17px;height:17px;flex:none}
.dispatch-intro {padding:20px clamp(14px,2.4vw,28px) 10px;display:flex;gap:12px;align-items:center;justify-content:space-between}
.dispatch-intro h3 {font:500 clamp(25px,3.1vw,38px)/1.1 var(--serif,Georgia,serif);letter-spacing:-.045em}
.dispatch-intro p,.dispatch-assignee {color:var(--dp-muted);font-size:.86rem;margin:5px 0 0}
.dispatch-frame button:focus-visible,.dispatch-summary:focus-visible {outline:3px solid #916037;outline-offset:3px}
.dispatch-filters {display:flex;flex-wrap:wrap;gap:6px;padding:3px clamp(14px,2.4vw,28px) 16px}
.dispatch-filter {min-height:37px;border:1px solid #d5dacb;color:#566351;border-radius:7px;padding:6px 10px;display:inline-flex;align-items:center;justify-content:space-between;gap:8px;background:#fbfbf5;font:600 .8rem/1.22 'Segoe UI',Arial,sans-serif}
.dispatch-filter strong {font:700 .72rem/1.4 'Segoe UI',Arial,sans-serif;min-width:1.45em;text-align:center;background:#e7ebdf;border-radius:4px;color:#40523c}
.dispatch-filter[aria-pressed=true] {background:#314d3a;color:white;border-color:#314d3a}
.dispatch-filter[aria-pressed=true] strong {background:#e5efda;color:#294b34}
.dispatch-workspace {display:grid;grid-template-columns:minmax(205px,.72fr) minmax(0,1.55fr);gap:14px;padding:0 clamp(14px,2.4vw,28px) 16px;align-items:start}
.dispatch-list {display:grid;gap:7px;min-width:0}
.dispatch-row {display:block;text-align:left;padding:12px 13px;background:var(--dp-paper);border:1px solid var(--dp-border);border-radius:9px;color:var(--dp-ink);width:100%;min-width:0}
.dispatch-row:hover {border-color:#7b9579}
.dispatch-row[aria-pressed=true] {border-color:#43654d;background:#e9f0e2;box-shadow:inset 3px 0 #41674d}
.dispatch-row-line {display:flex;align-items:center;justify-content:space-between;gap:5px}
.dispatch-row-line>strong {font-size:.94rem;line-height:1.36}
.dispatch-chip {display:inline-flex;align-items:center;justify-content:center;border-radius:20px;padding:4px 8px;font-size:.69rem;font-weight:700;line-height:1.22;white-space:nowrap}
.dispatch-chip:before {content:'';width:5px;height:5px;border-radius:50%;background:currentColor;margin-right:4px}
.dispatch-chip.active {background:#f6e4c9;color:#7a451c}
.dispatch-chip.planned {background:#e8ebed;color:#47545b}
.dispatch-chip.done {background:#dcebd9;color:#315238}
.dispatch-meta {margin:8px 0 6px;color:#566252;font-size:.76rem}
.dispatch-progress {display:block;border-radius:2px;overflow:hidden;height:4px;background:#dadecf}
.dispatch-progress i {height:100%;display:block;background:#638863}
.dispatch-row-next {display:block;margin-top:7px;color:#5b6657;font-size:.69rem;line-height:1.4}
.dispatch-row-next b {color:#354736;font-weight:600}
.dispatch-detail,.dispatch-empty {min-width:0;border-radius:11px;background:var(--dp-paper);border:1px solid var(--dp-border);padding:clamp(13px,2vw,24px)}
.dispatch-detail-head,.dispatch-phone-top,.dispatch-location-head {display:flex;align-items:center;justify-content:space-between;gap:9px}
.dispatch-eyebrow,.dispatch-phone-kicker {font:700 .65rem/1.4 'Segoe UI',Arial,sans-serif;text-transform:uppercase;letter-spacing:.12em}
.dispatch-eyebrow {color:#687562}
.dispatch-detail h4 {font:600 clamp(20px,2.1vw,29px)/1.16 var(--serif,Georgia,serif);margin:4px 0 0;color:var(--dp-ink)}
.dispatch-assignee {font-size:.79rem;margin:7px 0 12px}
.dispatch-summary {display:grid;grid-template-columns:.65fr 1.05fr 1.3fr;background:#eef1e7;border-radius:8px}
.dispatch-summary>div {padding:10px 12px;border-right:1px solid #d9ddcf;min-width:0}
.dispatch-summary>div:last-child {border:0}
.dispatch-summary small,.dispatch-summary strong,.dispatch-stops small,.dispatch-stops strong,.dispatch-location-head small,.dispatch-location-head strong {display:block}
.dispatch-summary small,.dispatch-stops small,.dispatch-location-head small {color:#5f695c;font-size:.72rem;line-height:1.4}
.dispatch-summary strong {font-size:.92rem;line-height:1.4;margin-top:2px;overflow-wrap:anywhere}
.dispatch-summary>div:first-child strong {font-size:1.17rem;line-height:1.2}
.dispatch-mainlink {margin:13px 0 5px}
.dispatch-btn {min-height:42px;padding:9px 12px;border-radius:6px;justify-content:center;font:650 .83rem/1.34 'Segoe UI',Arial,sans-serif;max-width:100%;text-align:left}
.dispatch-btn.major {background:#2e543e;color:#fff}
.dispatch-btn.major:hover {background:#203f2c}
.dispatch-btn.intro-action {border:1px solid #9cae98;color:#284c35;background:#fafbf3}
.dispatch-btn.text {color:#37583d;text-decoration:underline;text-underline-offset:3px;min-height:36px;padding:6px}
.dispatch-stops {list-style:none;padding:0;margin:14px 0 12px}
.dispatch-stops li {display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:8px;position:relative;padding:7px 0}
.dispatch-stops li:not(:last-child):before {content:'';position:absolute;left:11px;top:60%;bottom:-45%;width:2px;background:#d9dece}
.dispatch-point {position:relative;display:grid;place-items:center;background:#eceee3;color:#687361;width:24px;height:24px;border-radius:50%;font-size:.7rem;font-weight:700}
.dispatch-point svg {width:13px;height:13px}
.dispatch-stops .done .dispatch-point {background:#476d50;color:white}
.dispatch-stops .current .dispatch-point {border:1px solid #c78e58;background:#f6e5cc;color:#7a431b}
.dispatch-stops strong,.dispatch-location-head strong {font-size:.85rem;line-height:1.35}
.dispatch-stop-state {font-size:.72rem;font-weight:620;color:#606b5f}
.dispatch-location {border-top:1px solid var(--dp-border);padding-top:10px}
.dispatch-location-head {justify-content:start;flex-wrap:wrap;gap:7px}
.dispatch-location-head>svg {color:#7d866d}
.dispatch-location-head .dispatch-btn {margin-left:auto}
.dispatch-phone {background:#2d4838;border-radius:10px;color:#f9faef;margin:13px 0 5px;padding:0 14px}
.dispatch-phone-top {border-bottom:1px solid #6c806d;padding:3px 0}
.dispatch-phone-top>span {font-size:.85rem;font-weight:700}
.dispatch-phone-body {display:flex;flex-direction:column;align-items:start;gap:3px;padding:10px 0 13px}
.dispatch-phone-body>strong {font-size:1.03rem;font-weight:700}
.dispatch-phone-body>small {color:#dae6d7}
.dispatch-btn.light {background:#f6e3bb;color:#29382d;margin-top:6px}
.dispatch-btn.on-dark {min-height:32px;padding:5px 1px;color:#fff6da;text-decoration:underline;text-underline-offset:3px;font-size:.79rem}
.dispatch-foot {padding:10px clamp(14px,2.4vw,28px) 15px;border-top:1px solid #d8ddce;color:#596254;font-size:.76rem;line-height:1.5}
.dispatch-empty {font-size:.9rem}
@media(max-width:700px) {
  .dispatch-intro {flex-wrap:wrap}
  .dispatch-btn.intro-action {min-height:36px;font-size:.76rem;padding:7px 9px}
  .dispatch-workspace {grid-template-columns:1fr;gap:10px}
  .dispatch-list {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .dispatch-row {padding:9px 8px}
  .dispatch-row-line:first-child {flex-wrap:wrap;justify-content:start;gap:3px 6px}
  .dispatch-row-line>strong {font-size:.84rem}
  .dispatch-chip {font-size:.62rem;padding:3px 5px}
  .dispatch-meta {font-size:.68rem;margin:5px 0}
  .dispatch-filters {gap:4px;padding-bottom:12px}
  .dispatch-filter {padding:6px 7px;min-height:34px;font-size:.72rem;gap:4px}
  .dispatch-summary>div {padding:8px}
  .dispatch-summary strong {font-size:.82rem}
  .dispatch-bar {flex-wrap:wrap}
}
@media(max-width:379px) {
  .dispatch-bar small {font-size:.65rem}
  .dispatch-workspace {padding-inline:9px}
  .dispatch-filter {font-size:.69rem;padding:5px}
  .dispatch-summary>div {padding:6px}
  .dispatch-summary strong {font-size:.77rem}
  .dispatch-stop-state {font-size:.66rem}
  .dispatch-detail {padding:11px}
  .dispatch-meta {gap:2px}
}
@media print {#dispatch-board {display:none!important}}
.dispatch-fleet {margin:clamp(8px,1.1vw,14px) clamp(14px,2.4vw,28px) 0;border:1px solid #ccd4c3;border-radius:12px;overflow:hidden;background:#fbfcf5}
.dispatch-fleet-heading {display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 16px;border-bottom:1px solid #d7ddcf}
.dispatch-fleet-heading h4 {display:flex;gap:7px;align-items:center;font:650 1.02rem/1.3 'Segoe UI',Arial,sans-serif;margin:0}
.dispatch-fleet-heading h4 svg {width:19px;height:19px;color:#476444}
.dispatch-fleet-heading>span {display:inline-flex;align-items:center;gap:6px;color:#466147;font-size:.76rem;font-weight:650}
.dispatch-fleet-heading>span::before {content:'';width:7px;height:7px;border-radius:50%;background:#628164}
.dispatch-fleet-body {display:grid;grid-template-columns:minmax(0,1.9fr) minmax(205px,1fr);align-items:stretch}
.dispatch-fleet-map {background:#eeeddf;position:relative;min-height:180px;width:100%;min-width:0;aspect-ratio:500/210;max-height:280px;overflow:hidden;isolation:isolate}
.dispatch-base-map {position:absolute;width:100%;height:100%;inset:0;display:block}
.dispatch-map-depot {position:absolute;top:66%;left:14.2%;transform:translateX(-50%);font:700 .64rem/1.3 'Segoe UI',Arial,sans-serif;color:#40553f;padding:1px 4px;background:#fffdf0d9;border-radius:3px}
.dispatch-map-stop {position:absolute;transform:translate(-50%,7px);border-radius:3px;padding:1px 4px;background:#fffdf2e6;color:var(--vehicle);font:650 clamp(.54rem,.85vw,.7rem)/1.3 'Segoe UI',Arial,sans-serif;white-space:nowrap;pointer-events:none}
.dispatch-map-stop.stop-market {transform:translate(-50%,calc(-100% - 6px))}
.dispatch-vehicle {position:absolute;z-index:1;left:var(--x);top:var(--y);transform:translate(-15px,-50%);display:flex;align-items:center;gap:0;min-height:44px;padding:0;text-align:left;filter:drop-shadow(0 2px 2px #29362334);border:0;background:transparent}
.dispatch-vehicle-icon {border-radius:50%;display:grid;place-items:center;width:30px;height:30px;border:2px solid #fffdf7;color:white;background:var(--vehicle)}
.dispatch-vehicle-icon svg {width:16px;height:16px}
.dispatch-vehicle-name {border:1px solid var(--vehicle);border-radius:0 6px 6px 0;color:var(--vehicle);background:#fffdf7;font:700 .77rem/1.35 'Segoe UI',Arial,sans-serif;padding:3px 6px 3px 7px;margin-left:-3px;z-index:-1}
.dispatch-vehicle[aria-pressed=true] {z-index:2}
.dispatch-vehicle[aria-pressed=true] .dispatch-vehicle-icon {box-shadow:0 0 0 2px var(--vehicle)}
.dispatch-vehicle:hover .dispatch-vehicle-name {text-decoration:underline}
.dispatch-fleet-side {padding:7px 10px;display:flex;align-items:center;border-left:1px solid #d7ddcf;background:#fcfcf6}
.dispatch-fleet-legend {list-style:none;width:100%;margin:0;padding:0;display:grid;gap:5px}
.dispatch-fleet-legend button {width:100%;display:flex;text-align:left;align-items:start;gap:7px;border:1px solid transparent;border-radius:7px;font-family:inherit;padding:7px 8px;min-height:44px}
.dispatch-fleet-legend button[aria-pressed=true] {background:#eaf0e2;border-color:#cbd6c4}
.dispatch-fleet-legend button:hover {border-color:#a3b39b}
.dispatch-driver-dot {width:8px;height:8px;flex:none;border-radius:50%;margin-top:6px;background:var(--vehicle)}
.dispatch-fleet-legend strong,.dispatch-fleet-legend small,.dispatch-driver-next {display:block;line-height:1.4}
.dispatch-fleet-legend strong {font-size:.85rem}
.dispatch-fleet-legend small,.dispatch-driver-next,.dispatch-fleet-empty {color:#536050;font-size:.74rem}
.dispatch-driver-next {margin-top:2px}
.dispatch-driver-arrow {margin-left:auto;align-self:center;color:#52684c}
.dispatch-fleet-empty {margin:4px}
@media(max-width:700px){
  .dispatch-fleet-body {grid-template-columns:minmax(0,1fr)}
  .dispatch-fleet-map {min-height:176px;max-height:210px;aspect-ratio:500/205}
  .dispatch-fleet-heading {padding:10px}
  .dispatch-fleet-side {border-left:0;border-top:1px solid #d7ddcf;padding:5px}
  .dispatch-fleet-legend {grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:3px}
  .dispatch-fleet-legend button {padding:5px;gap:4px;height:100%}
  .dispatch-driver-arrow {display:none}
  .dispatch-fleet-legend strong {font-size:.76rem}
  .dispatch-fleet-legend small,.dispatch-driver-next {font-size:.69rem}
}
@media(max-width:379px){
  .dispatch-fleet {margin-inline:9px}
  .dispatch-fleet-heading h4 {font-size:.92rem}
  .dispatch-fleet-heading>span {font-size:.68rem}
}
