.dispatch-screen{color-scheme:light;scroll-padding-block:16px;scrollbar-gutter:stable}
.dispatch-screen body{min-width:0;min-height:100svh;margin:0;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.dispatch-screen :is(input:not([type=checkbox]),textarea,select){font-size:16px;max-inline-size:100%;line-height:1.5}
.dispatch-screen :is(button,.button){min-height:44px}
.dispatch-screen .page{min-width:0}
.dispatch-screen .dr-hero{border-radius:22px;isolation:isolate;background:#143a32;overflow:hidden;position:relative;color:white;min-height:165px;display:flex;align-items:center;padding:clamp(18px,4vw,36px);margin-bottom:18px}
.dr-hero>div{position:relative;z-index:1;max-width:74%}
.dr-hero>img{position:absolute;inset:0 auto 0 0;width:46%;height:100%;object-fit:cover;mask-image:linear-gradient(90deg,#000 40%,transparent);pointer-events:none}
.dr-hero h1{margin:0;font-size:clamp(30px,5vw,48px);line-height:1.35;color:white}
.dr-hero p{margin:7px 0 0;color:#e7f3eb;line-height:1.7}
.dr-hero .dr-wordmark{width:fit-content;font-family:system-ui,sans-serif;letter-spacing:.13em;color:#ccf79d;font-weight:700;font-size:12px}
.dr-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr);gap:16px;align-items:start}
.dr-grid>*{min-width:0}
.dr-grid .card{margin:0}
.dr-wizard{min-width:0}
.dr-wizard [hidden],.dr-active [hidden]{display:none!important}
.dr-progress{display:flex;gap:6px;list-style:none;padding:0;margin:0 0 18px;color:#596959}
.dr-progress li{flex:1;padding-top:6px;border-top:3px solid #d5dfd6;font-size:14px;font-weight:600}
.dr-progress [aria-current=step]{border-color:#006750;color:#064a3a}
.dr-progress .dr-done{border-color:#90bc75}
.dr-wizard form,.dr-wizard section,.dr-chat-form{min-width:0;margin:0}
.dr-wizard section>h2{margin:0 0 12px;font-size:clamp(21px,3vw,28px)}
.dr-wizard :is(h2,h3):focus{outline:none!important}
.dr-field{display:grid;gap:6px;font-size:15px;font-weight:650;min-width:0}
.dr-field :is(input,textarea,select){box-sizing:border-box;width:100%;min-width:0;min-height:46px;background:white;color:#142820;font-family:inherit;font-size:16px;font-weight:400;line-height:1.5;border:1px solid #9eafa4;border-radius:10px;padding:10px 12px}
.dr-field textarea{resize:vertical}
.dr-wizard section>.dr-field,.dr-wizard section>.dr-place{margin-bottom:12px}
.dr-wizard :is(details,.dr-place){background:#f5f8f3;border-radius:12px;padding:12px}
.dr-wizard details>summary{font-size:15px;font-weight:650;cursor:pointer}
.dr-wizard details>.dr-field,.dr-wizard .dr-turns:not(:empty){margin-top:10px}
.dr-location-actions,.dr-actions,.dr-quick{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.dr-location-actions{margin-top:6px}
.dr-quick button,.dr-location-actions button{color:#184c3b;background:white;border:1px solid #becfc4;border-radius:9px;font-weight:600;font-size:14px}
.dr-place small,.dr-chat-feedback,.dr-chat-connection{display:block;font-size:14px;color:#375343}
.dr-place [data-place-note]{margin-top:10px}
.dr-place input[readonly]{background:#eaf3ed;color:#184c3b;border-color:#9abcaa}
.dr-chat-connection{margin-block:8px}
.dr-place small:empty,.dr-wizard [data-error]:empty,.dr-chat-feedback:empty{display:none}
.dr-wizard [data-error]{color:#942c26;font-weight:650}
.dr-actions{margin:12px 0}
button.dr-primary,.dispatch-screen .mw-role button.dr-primary{background:#07553e;color:white;border:1px solid #07553e;font-weight:700;border-radius:10px;min-height:46px;padding:8px 19px}
button.dr-primary:hover,.dispatch-screen .mw-role button.dr-primary:hover{background:#063d2d;color:white}
.dr-summary{margin:0;padding:0}
.dr-summary>div{display:grid;grid-template-columns:minmax(80px,28%) 1fr;gap:10px;border-bottom:1px solid #d9e3dc;padding:9px 0}
.dr-summary dt{font-weight:650}.dr-summary dd{margin:0;overflow-wrap:anywhere}
.dr-request .dr-turns>*{margin:4px 0;overflow-wrap:anywhere}
.dr-active{margin-block:0 18px;border:1px solid #a7c8b4;background:white;border-radius:18px;padding:clamp(14px,3vw,23px);scroll-margin:18px}
.dr-active-header,.dr-chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dr-active-header{border-bottom:1px solid #d4dfd6;padding-bottom:11px;margin-bottom:12px}
.dr-active-header h2,.dr-chat-head h3,.dr-active h3{margin:0}
.dr-active-header .dr-state{margin:0 0 3px;font-size:14px;color:#145c41;font-weight:650}
.dr-chat-head p{margin:0;color:#42564c;font-size:14px}
.dr-active [data-picker]{margin:8px 0 14px}
.dr-chat-messages{background:#f1f5ee;border:1px solid #d5e1d6;border-radius:14px;display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-height:64px;max-height:32svh;overflow-y:auto;overscroll-behavior:contain;margin:10px 0;padding:10px;scrollbar-gutter:stable}
.dr-chat-messages>[data-empty]{font-size:15px;margin:8px 3px;color:#435849}
.dr-bubble{background:white;border:1px solid #d9e5da;padding:7px 10px;border-radius:12px 3px 12px 12px;overflow-wrap:anywhere;max-width:86%}
.dr-bubble.outgoing{align-self:flex-end;background:#d9efdc;border-radius:3px 12px 12px 12px}
.dr-bubble p{white-space:pre-line;margin:2px 0}
.dr-bubble small{font-size:12px;color:#3b5945}
.dr-active audio{max-inline-size:100%;display:block}
.dr-quick{margin-bottom:8px}
.dr-active [data-record-preview]{padding:6px;background:#f5f8f4;border-radius:10px}
.dr-active [data-tracking]{border-top:1px solid #d5e0d8;padding-top:14px;margin-top:14px}
.dr-active [data-tracking]>button{margin:7px 0}
.dr-active .mw-commands{display:flex;flex-wrap:wrap;gap:8px}
.dr-active [data-points] a{display:inline-block;color:#12573c;min-height:32px}
.dr-live-map{width:100%;height:clamp(220px,38svh,350px);border-radius:12px;margin-top:8px}
@media(max-width:720px){
  .dispatch-screen{scrollbar-gutter:auto}
  .dispatch-screen .page{width:100%;max-width:100%;margin:0;padding:12px max(12px,env(safe-area-inset-left)) max(24px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-right))}
  .dispatch-screen .dr-hero{min-height:126px;border-radius:14px;padding:15px}
  .dr-hero>div{max-width:84%}.dr-hero>img{width:42%;opacity:.7}
  .dr-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .dr-actions button.dr-primary{flex:1;text-align:center}
  .dispatch-screen .mw-role{padding:14px}
  .dispatch-screen .top{position:relative;top:auto}
  .dispatch-screen dialog{box-sizing:border-box;max-width:calc(100% - 16px);max-height:88dvh}
  .dispatch-screen .dr-active-header{align-items:flex-start;flex-wrap:wrap}
  .dispatch-screen :is(input:not([type=checkbox]),textarea,select),.dispatch-screen .mw-role :is(input:not([type=checkbox]),textarea,select){font-size:16px}
}

.dr-alerts{border:1px solid #c4d4c8;border-radius:10px;padding:9px 12px;margin:12px 0}
.dr-alerts legend{font-weight:650;padding:0 5px}.dr-alerts>label{display:flex;align-items:center;gap:9px;min-height:42px;font-size:15px}
.dr-alerts input[type=checkbox]{width:18px;height:18px;flex:none;accent-color:#07553e}
