/* Warm workspace identity. Functional layout and module styles remain the base. */
:root {
  color-scheme: light;
  --bg: #f4f3ed;
  --panel: #fffefa;
  --panel2: #f6f5ef;
  --surface-soft: #f7f6f0;
  --line: #dedfd6;
  --line-soft: #eeeee6;
  --ink: #292b27;
  --muted: #6a6d63;
  --mint: #296c50;
  --amber: #845918;
  --red: #ae3642;
  --blue: #355f85;
  --accent: #b54722;
  --accent-hover: #963818;
  --accent-soft: #fff0e3;
  --success-soft: #edf6ef;
  --warning-soft: #fff8e7;
  --error-soft: #fff0f0;
  --blue-soft: #edf3f8;
  --card-shadow: 0 3px 14px rgb(58 51 31 / 2%);
}

body { background: var(--bg); color: var(--ink); }
/* Batch controls keep the current task visible; management stays in a dialog. */
.batch-picker select { max-width: min(340px, 100%); min-width: 210px; font-size: 13px; }
.batch-management-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 17px; background: var(--accent-soft); border: 1px solid #edd5be; border-radius: 13px; }
.batch-management-summary strong { font-size: 15px; }
.batch-management-summary span { color: #8b5129; font-size: 12px; }
.batch-intro { margin: 15px 0; line-height: 1.7; }
.batch-management-list { display: grid; gap: 10px; margin: 16px 0; }
.batch-management-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.batch-management-row.current { border-color: #ddb392; background: #fffaf4; }
.batch-management-info { min-width: 0; }
.batch-management-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.batch-management-heading strong { font-size: 16px; overflow-wrap: anywhere; }
.batch-management-info p { margin: 8px 0 4px; font-size: 13px; color: var(--ink); }
.batch-management-info small { display: block; color: var(--muted); line-height: 1.7; font-size: 12px; }
.batch-status, .batch-current-tag { font-size: 11px; padding: 4px 8px; border-radius: 7px; background: #f0f1ec; color: var(--muted); }
.batch-status.is-empty { background: #fff0df; color: #995523; }
.batch-status.is-issued { background: var(--blue-soft); color: var(--blue); }
.batch-type-tag { font-size: 11px; padding: 4px 8px; border-radius: 7px; white-space: nowrap; }
.batch-type-tag.is-live { color: #326356; background: #eef7f0; }
.batch-type-tag.is-test { color: #975d24; background: #fff2df; }
.batch-reuse-caption { font-size: 13px; color: var(--muted); margin: 0; }
.batch-current-tag { color: #9a4826; background: #ffe7cd; }
.batch-management-actions { display: flex; gap: 7px; flex-shrink: 0; }
.batch-delete-target { display: grid; gap: 7px; padding: 18px; margin-bottom: 18px; border: 1px solid #eccac6; background: #fff7f4; border-radius: 14px; }
.batch-delete-target strong { font-size: 19px; }
.batch-delete-target span { color: var(--muted); font-size: 13px; }
@media (max-width: 600px) {
  .batch-picker select { min-width: 0; width: 100%; max-width: none; }
  .batch-management-summary, .batch-management-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .batch-management-row { padding: 15px; }
  .batch-management-actions { width: 100%; }
  .batch-management-actions .button { flex: 1; min-height: 42px; }
}
::selection { color: #57311d; background: #ffe1bd; }
.shell { grid-template-columns: 232px minmax(0, 1fr); gap: 18px; margin: 14px auto; padding: 0 14px; max-width: 2000px; min-height: calc(100dvh - 28px); }
.sidebar { position: sticky; top: 14px; height: calc(100dvh - 28px); overflow: hidden; padding: 24px 14px 17px; gap: 21px; border: 1px solid var(--line); border-radius: 23px; background: #fff; }
.sidebar .jyt-brand { padding-inline: 10px; gap: 8px; }
.sidebar .jyt-logo { width: 172px; }
.sidebar .jyt-product-name { color: var(--muted); font-size: 11px; letter-spacing: .3px; }
.nav { gap: 20px; min-height: 0; overflow-y: auto; align-content: start; flex: 1; scrollbar-width: thin; scrollbar-color: #d2d3c8 transparent; margin-inline: -4px; padding-inline: 4px; }
.nav-group-items { gap: 4px; }
.nav-group-label { color: #74766b; font-size: 11px; font-weight: 550; letter-spacing: .6px; padding: 0 12px 7px; }
.nav button { min-height: 43px; border-radius: 12px; color: #62665b; padding: 10px 12px; font-size: 14px; }
.nav button:hover { color: var(--ink); background: #f5f5ee; }
.nav button.active, .nav button.active:hover { color: #913d1e; background: #fff0df; box-shadow: inset 3px 0 0 #e98655; font-weight: 700; }
.nav button.active svg { color: #b94d22; }
.nav .pill { background: #f0f1e9; color: #64685b; min-width: 23px; text-align: center; border-radius: 7px; font-size: 11px; }
.nav button.active .pill { background: #ffe0c1; color: #853a1f; }
.sidebar-note { border-color: var(--line-soft); padding: 17px 9px 0; margin-top: 0; color: var(--muted); font-size: 12px; }
.sidebar-note b { color: var(--ink); }
.sidebar-note .button { background: #fafaf5; border-color: var(--line); border-radius: 10px; }
main { padding: 23px 17px 36px 4px; margin: 0; max-width: none; }
.topbar:has(.page-heading) { align-items: flex-start; margin-bottom: 19px; gap: 18px 22px; }
.page-heading { min-width: 0; }
.page-heading h1 { font-size: 34px; font-weight: 760; letter-spacing: -1px; line-height: 1.25; color: var(--ink); }
.eyebrow { color: #8d6746; font-size: 11px; font-weight: 550; letter-spacing: 1.2px; margin-bottom: 8px; }
.page-description { margin-top: 9px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.page-tools { padding-top: 3px; gap: 8px; }
.page-tools .date-picker { gap: 9px; color: var(--muted); }
.date-picker input { background: #fffefa; border-color: #d7d9ce; border-radius: 12px; }
.page-aux-actions > summary { background: #fffefa; border-color: var(--line); border-radius: 12px; color: #53584c; }
.page-aux-menu { background: #fffefa; border-color: var(--line); border-radius: 16px; box-shadow: 0 16px 44px rgb(46 44 34 / 12%); }
.context-bar, .module-context { background: #eaece3; border-color: #e2e4d9; border-radius: 12px; padding: 10px 14px; margin-bottom: 20px; color: #64685c; }
.context-main strong { color: #4e5548; }
.context-bar .saved-state { color: #5c725b; }

/* Primary actions stand out; status colors keep their existing meanings. */
.button { border-radius: 12px; border-color: #dcded2; background: #fffefa; color: #42473b; min-height: 42px; font-size: 13px; font-weight: 600; padding: 10px 16px; }
.button:hover:not(:disabled) { background: #f0f1e8; border-color: #c6cbbb; filter: none; }
.button.primary { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: none; }
.button.primary:hover:not(:disabled) { color: #fff; background: var(--accent-hover); border-color: var(--accent-hover); }
.button.danger { color: var(--red); background: #fff4f2; border-color: #eccac6; }
.button.danger:hover:not(:disabled) { background: #ffeae7; border-color: #dbaea8; }
.button.small { min-height: 35px; border-radius: 9px; padding: 7px 11px; font-size: 12px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #ba6336; outline-offset: 3px; }
input, select, textarea { border-color: #d6d9cc; background: #fff; color: var(--ink); border-radius: 11px; }
input:focus, select:focus, textarea:focus { border-color: #bc6037; outline: 2px solid #f6c9a8; outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: #797d70; }
input:disabled, select:disabled, textarea:disabled, input[readonly] { background: #f1f2eb; color: #6c7165; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
.pill { border-radius: 7px; }
.notice { border-color: #e6d7ad; color: #79591d; background: var(--warning-soft); }
.notice.success { border-color: #c9dfcf; background: var(--success-soft); color: #286044; }
.notice.error { border-color: #e6c4c5; background: var(--error-soft); color: #a5333e; }
.toast { border-radius: 14px; box-shadow: 0 12px 36px rgb(46 53 36 / 14%); }

/* Quiet card surfaces keep the working content ahead of decorative framing. */
.panel, .metric, .vehicle, .manual-route-card, .monitor-route-card, .monitor-alerts, .monitor-unassigned { background: var(--panel); border-color: var(--line); border-radius: 20px; box-shadow: var(--card-shadow); }
.panel-head { padding: 18px 21px; border-color: var(--line-soft); }
.panel-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -.35px; }
.panel-head small { color: var(--muted); }
.panel-body { padding: 20px 21px; }
.empty { padding: 40px 22px; }
.empty svg { color: #b96538; }
.empty strong { font-size: 16px; }
.footer { color: #767b6d; font-size: 11px; }
.orders-compact-summary { border-radius: 18px; border-color: var(--line); background: #fffefa; margin-bottom: 18px; }
.orders-compact-summary > div { padding: 15px 21px; border-color: var(--line-soft); }
.orders-compact-summary dt { color: var(--muted); font-size: 12px; }
.orders-compact-summary dd { font-size: 27px; color: var(--ink); }
.orders-filter-section { background: #fafaf5; border-color: var(--line-soft); }
.orders-panel .order-queue-tabs { gap: 6px; }
.order-queue-tab { border-radius: 9px; color: #656b5c; }
.order-queue-tab:hover { background: #f0f1e8; }
.order-queue-tab.is-active { background: #fff0df; border-color: #ead2b9; color: #9a4722; }
.orders-more-actions > summary, .order-row-more > summary, .manual-stop-more > summary { color: #62685a; border-color: var(--line); background: #fffefa; border-radius: 9px; }
.orders-more-actions[open] > summary, .order-row-more[open] > summary, .manual-stop-more[open] > summary { color: #9a4722; border-color: #e3c6a9; background: #fff2e4; }
.table-toolbar, .orders-panel .order-queue-filters { border-color: var(--line-soft); }
.table-toolbar input, .orders-panel .orders-search #search { background: #fff; }
table { color: #41483c; }
th, .orders-panel .orders-table th { background: #f3f4ec; color: #68705e; }
td, .orders-panel .orders-table td { border-color: var(--line-soft); }
tr:hover td { background: #fbfaf1; }
.order-full-address, .manual-order .manual-address, .manual-stops .manual-address { color: #5a6451; }
.orders-field-notes { background: #fcfcf7; border-color: var(--line-soft); }
.orders-next-step { background: var(--surface-soft); }
.page-workspace .fleet-summary { background: #f7f7ef; border-color: var(--line-soft); padding: 16px 21px; }
.fleet-summary b, .vehicle-details b { color: var(--ink); }
.vehicle { padding: 21px; }
.vehicle.off { background: #f8f8f2; }
.driver-binding, .vehicle-bottom { border-color: var(--line-soft); }
.settings-jump a { border-color: var(--line); background: #fffefa; border-radius: 10px; color: #62685a; }
.settings-jump a:hover { color: var(--accent); background: var(--accent-soft); border-color: #e3c6a9; }
.permission-role-card, .account-summary, .account-filters { border-color: var(--line); background: #fafbf5; }

.manual-workspace-toolbar { background: #fffefa; border-color: var(--line); border-radius: 17px; padding: 14px 18px; }
.manual-stats > div { background: #fffefa; border-color: var(--line); border-radius: 14px; }
.manual-stats strong { color: var(--ink); }
.manual-workflow-steps { color: #6a715f; }
.manual-workflow-steps li.is-current { color: #9e4924; }
.manual-workflow-steps li.is-current > span { color: #9e4924; background: #fff0dc; border-color: #e4c3a1; }
.manual-search { background: #f7f8f0; }
.manual-order { background: #fffefa; border-color: var(--line-soft); }
.manual-order:hover { background: #fafaf1; }
.manual-order:has(input:checked) { background: #fff1df; }
.manual-order:focus-within { background: #fff8eb; box-shadow: inset 3px 0 0 var(--accent); }
.manual-selection-bar { background: #fff2df; border-color: #ecdcc1; color: #76502b; }
.manual-sequence { background: #fff1df; border-color: #e8d1b4; color: #9d5125; }
.manual-help { background: #f7f8f0; border-color: var(--line); }
.manual-help summary { color: #616c56; }
.manual-stops li, .monitor-alert { border-color: var(--line-soft); }
.manual-estimate-summary { background: #f0f5f7; border-color: #d9e2e3; color: #576a71; }
.matrix-test-entry > summary { cursor: pointer; list-style: none; }
.matrix-test-entry > summary::-webkit-details-marker { display: none; }
.matrix-test-entry > summary::after { content: '⌄'; color: #7b826f; font-size: 20px; line-height: 1; flex-shrink: 0; }
.matrix-test-entry[open] > summary::after { content: '⌃'; }
.monitor-controls, .monitor-metric { background: #fffefa; border-color: var(--line); border-radius: 16px; }
.monitor-route-header { border-color: var(--line-soft); }
.route-card { background: #fffefa; border-color: var(--line); border-left-color: var(--route-color); }
.route-foot { background: #f7f8f0; color: #69715f; }
.load-bar { background: #e9ece1; }
.map { background: #eff2e9; }
.map-key, .map-foot { background: #fffefa; color: #6a7161; }
.map-placeholder { background: #f5f6ee; color: var(--accent); }
.map-load-note { background: #f8f9f2; border-color: var(--line); color: #67705d; }

/* Keep only the actual form footer sticky; customer search has nested actions. */
dialog { background: #fffefa; border-color: #d8daca; border-radius: 24px; box-shadow: 0 25px 90px rgb(46 43 30 / 18%); }
dialog::backdrop { background: rgb(40 43 33 / 30%); backdrop-filter: blur(4px); }
dialog .dialog-head { background: #fffefa; border-color: var(--line-soft); padding: 19px 24px; }
dialog .dialog-head h2 { color: var(--ink); font-size: 23px; }
dialog .dialog-head [data-close] { border-radius: 12px; background: #f3f4eb; border-color: var(--line); }
dialog .dialog-body { padding: 22px 24px 0; }
dialog .form-grid { gap: 18px 20px; }
dialog .form-grid label { color: #646b5a; font-size: 13px; }
dialog .dialog-actions { position: static; margin: 0; padding: 16px 0 0; border: 0; box-shadow: none; background: transparent; }
dialog .dialog-body > .dialog-actions, dialog .dialog-body > form > .dialog-actions { position: sticky; bottom: 0; z-index: 3; background: #fffefa; margin: 21px -24px 0; padding: 14px 24px; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgb(55 57 41 / 4%); }
.customer-order-picker { background: #faf7e9; border-color: #e7dfc4; border-radius: 14px; }
.customer-order-picker .form-grid > label { min-width: 0; }
.customer-order-picker .searchable-select-list { background: #fffefa; border-color: #dedfd6; box-shadow: 0 9px 26px rgb(51 42 21 / 12%); }
.customer-order-picker .searchable-select-option.is-active,
.customer-order-picker .searchable-select-option:hover { background: #fff0e3; }
.customer-order-picker .searchable-select-option[aria-selected=true] { color: #a7411f; }
.order-unloading-fields { background: #f6f8ef; border-color: #dfe4d1; }
.geocode-result { background: #f4f7ee; color: #56634b; }
.dialog-pending { background: #fff0dc; color: #81502a; }
.dialog-discard { background: #fff5df; border-color: #e5d2a6; color: #735729; }
dialog .dialog-discard .button { background: #fffefa; border-color: #d9ceaf; }
.auth-card { border-color: var(--line); background: #fffefa; border-radius: 26px; box-shadow: 0 20px 60px rgb(71 61 37 / 7%); }
.suggestion-learning { padding: 17px; margin: 16px 0; border: 1px solid #dfe2d3; border-radius: 16px; background: #f7f8f0; }
.suggestion-learning-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.suggestion-learning-heading strong { font-size: 15px; color: var(--ink); }
.suggestion-learning-heading p { margin: 5px 0 0; color: #68705d; font-size: 12px; line-height: 1.6; }
.suggestion-learning-heading .actions { flex-shrink: 0; gap: 6px; }
.suggestion-field-evidence { display: block; min-height: 48px; line-height: 1.55; font-size: 11px; margin-top: 6px; color: #737768; }
.suggestion-field-evidence b { display: block; font-weight: 650; color: #667059; }
.suggestion-field-evidence .is-history { color: #3d7047; }
.suggestion-field-evidence .is-manual { color: #9b541f; }
.suggestion-field-evidence span { display: block; }
.suggestion-learning .suggestion-learning-hint { margin: 7px 0 0; font-size: 12px; line-height: 1.65; }

@media (min-width: 1600px) {
  .shell { grid-template-columns: 244px minmax(0, 1fr); gap: 24px; }
  main { padding-inline: 6px 24px; }
  .page-heading h1 { font-size: 36px; }
}
@media (max-width: 1190px) and (min-width: 761px) {
  .shell { grid-template-columns: 206px minmax(0, 1fr); gap: 15px; }
  .sidebar { padding: 21px 10px 16px; }
  .sidebar .jyt-logo { width: 158px; }
  main { padding: 23px 8px 32px 0; }
  .page-heading h1 { font-size: 31px; }
}
@media (max-width: 760px) {
  .suggestion-learning { padding: 13px; }
  .suggestion-learning-heading { flex-direction: column; }
  .suggestion-field-evidence { min-height: 0; }
  .shell { display: block; margin: 0; padding: 0; }
  .sidebar { position: relative; top: 0; height: auto; overflow: visible; border: 0; border-bottom: 1px solid var(--line); border-radius: 0 0 20px 20px; padding: 15px 17px; gap: 14px; }
  .sidebar .jyt-brand { padding: 0; }
  .sidebar .jyt-logo { width: 135px; }
  .navigation-toggle { min-height: 43px; border-radius: 11px; background: #f7f7ef; font-size: 13px; }
  .nav { gap: 17px; overflow: visible; flex: initial; margin-inline: 0; padding-inline: 0; }
  .nav button { min-height: 44px; font-size: 13px; }
  .nav-group-label { font-size: 11px; }
  .navigation-open .sidebar-note { padding: 13px 4px 0; }
  main { padding: 22px 15px 34px; }
  .topbar:has(.page-heading) { margin-bottom: 17px; gap: 13px; }
  .page-heading h1 { font-size: 29px; letter-spacing: -.7px; }
  .page-description { font-size: 13px; margin-top: 7px; }
  .page-tools { padding-top: 0; }
  .page-tools .button, .page-aux-actions > summary { min-height: 43px; }
  .context-bar, .module-context { padding: 10px 12px; margin-bottom: 17px; gap: 7px; }
  .panel { border-radius: 17px; }
  .panel-head, .panel-body { padding: 17px; }
  .orders-compact-summary > div { padding: 13px 16px; }
  .orders-compact-summary dd { font-size: 25px; }
  .orders-panel .orders-table td { border: 0; }
  .orders-panel .orders-table tr { border-color: var(--line); }
  input, select, textarea, .orders-panel .orders-search #search { font-size: 16px; }
  dialog { border-radius: 20px; }
  dialog .dialog-head { padding: 16px 18px; }
  dialog .dialog-head h2 { font-size: 21px; }
  dialog .dialog-body { padding: 18px 18px 0; }
  dialog .dialog-body > .dialog-actions, dialog .dialog-body > form > .dialog-actions { margin-inline: -18px; padding: 13px 18px calc(13px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  button, input, select, textarea { transition: none; }
}

/* Monitor: aligned vehicle cards and a quiet, compact execution hierarchy. */
.dispatch-monitor { gap: 18px; }
.dispatch-monitor > .panel,
.dispatch-monitor .monitor-routes > .monitor-route-card { margin: 0; }
.dispatch-monitor .monitor-routes { gap: 18px; align-items: start; }
.dispatch-monitor .monitor-alerts { display: grid; grid-template-columns: 160px minmax(0, 1fr); border-radius: 16px; }
.dispatch-monitor .monitor-alerts > .panel-head { padding: 18px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; border-bottom: 0; border-right: 1px solid var(--line-soft); background: #faf9f4; }
.dispatch-monitor .monitor-alerts h2 { font-size: 15px; }
.dispatch-monitor .monitor-alerts .panel-head small { font-size: 11px; line-height: 1.6; margin-top: 5px; }
.dispatch-monitor .monitor-alerts .pill { font-size: 11px; padding: 3px 8px; }
.dispatch-monitor .monitor-alerts > .panel-body { display: flex; flex-direction: column; justify-content: center; }
.dispatch-monitor .monitor-alert { padding: 16px 20px; gap: 12px; }
.dispatch-monitor .monitor-alert-count { width: 28px; height: 28px; border-radius: 50%; font-size: 12px; }
.dispatch-monitor .monitor-alert-copy h3 { color: var(--ink); font-size: 14px; line-height: 1.5; margin: 0 0 4px; }
.dispatch-monitor .monitor-alert-copy p { font-size: 12px; line-height: 1.65; }
.dispatch-monitor .monitor-alert > .hint { flex: 0 0 auto; max-width: 148px; color: #777a70; font-size: 11px; line-height: 1.6; }
.dispatch-monitor .monitor-route-card { border-radius: 18px; box-shadow: 0 3px 14px rgb(58 51 31 / 2%); }
.dispatch-monitor .monitor-route-header { padding: 18px 20px; align-items: flex-start; gap: 12px; }
.dispatch-monitor .monitor-route-header > div { min-width: 0; }
.dispatch-monitor .monitor-route-header h2 { font-size: 20px; line-height: 1.35; letter-spacing: -.4px; overflow-wrap: anywhere; }
.dispatch-monitor .monitor-route-header small { margin-top: 5px; font-size: 12px; }
.dispatch-monitor .monitor-route-header .pill { font-size: 11px; padding: 4px 8px; border-radius: 7px; margin-top: 3px; }
.dispatch-monitor .monitor-route-progress { padding: 16px 20px 0; font-size: 12px; }
.dispatch-monitor .monitor-route-progress strong { color: var(--ink); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.dispatch-monitor .monitor-route-progress > div > span { color: #777a70; font-size: 11px; }
.dispatch-monitor .monitor-route-progress progress { height: 5px; margin: 10px 0 0; background: #eceee6; }
.dispatch-monitor .monitor-route-progress progress::-webkit-progress-bar { background: #eceee6; }
.dispatch-monitor .monitor-route-milestones { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding: 19px 15px 17px; counter-reset: monitor-stage; }
.dispatch-monitor .monitor-milestone { position: relative; padding: 0 4px; border: 0; background: transparent; border-radius: 0; font-size: 10px; color: #777a70; counter-increment: monitor-stage; }
.dispatch-monitor .monitor-milestone::before { content: counter(monitor-stage); position: relative; z-index: 1; display: grid; place-items: center; width: 23px; height: 23px; margin: 0 auto 8px; border: 1px solid #e2e4da; border-radius: 50%; background: #f5f6ef; color: #7e8276; font-size: 10px; font-weight: 600; }
.dispatch-monitor .monitor-milestone:not(:last-child)::after { content: ''; position: absolute; height: 1px; background: #e6e8df; width: calc(100% - 29px); top: 11px; left: calc(50% + 15px); }
.dispatch-monitor .monitor-milestone strong { color: #62675b; font-size: 11px; font-weight: 550; line-height: 1.5; }
.dispatch-monitor .monitor-milestone small { font-size: 10px; line-height: 1.55; margin-top: 3px; overflow-wrap: anywhere; }
.dispatch-monitor .monitor-milestone.is-done::before { content: '✓'; color: #296c50; background: #edf6ef; border-color: #c9decf; }
.dispatch-monitor .monitor-milestone.is-done strong { color: #296c50; }
.dispatch-monitor .monitor-milestone.is-current::before { color: #9c421e; background: #fff0e3; border-color: #e9bd9f; box-shadow: 0 0 0 3px #fff8f1; }
.dispatch-monitor .monitor-milestone.is-current strong { color: #9c421e; font-weight: 650; }
.dispatch-monitor .monitor-milestone.is-legacy::before { border-style: dashed; }
.dispatch-monitor .monitor-next-stop { display: block; margin: 0 20px 17px; padding: 13px 15px; border: 0; border-left: 3px solid #dcc5ad; border-radius: 0 10px 10px 0; background: #f7f6f0; line-height: 1.6; }
.dispatch-monitor .monitor-next-stop small { display: block; color: #777a70; font-size: 10px; letter-spacing: .4px; margin-bottom: 4px; }
.dispatch-monitor .monitor-next-stop strong { color: var(--ink); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.dispatch-monitor .monitor-next-stop p { font-size: 12px; color: #6a6d63; margin: 3px 0 8px; overflow-wrap: anywhere; }
.dispatch-monitor .monitor-next-stop > div > span { color: #6e7266; font-size: 11px; }
.dispatch-monitor .monitor-next-stop > .hint { display: block; border-top: 1px solid #e9e9df; margin-top: 9px; padding-top: 8px; color: #777a70; font-size: 11px; }
.dispatch-monitor .monitor-stops { border-color: var(--line-soft); }
.dispatch-monitor .monitor-stops > summary { padding: 13px 20px; color: #646c5e; font-size: 12px; font-weight: 500; min-height: 44px; }
.dispatch-monitor .monitor-stops > summary:hover { color: var(--accent); background: #faf9f4; }
.dispatch-monitor .monitor-stops > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: 4px; }
.dispatch-monitor .monitor-metric { padding: 16px 18px; border-radius: 15px; }
.dispatch-monitor .monitor-metric strong { font-size: 28px; margin: 7px 0 4px; }
.dispatch-monitor .monitor-metric p { margin: 0; font-size: 11px; line-height: 1.6; }
.dispatch-monitor .monitor-snapshot { font-size: 11px; }
.dispatch-monitor .monitor-snapshot p { font-size: 11px; }
@media (max-width: 760px) {
  .dispatch-monitor .monitor-alerts { grid-template-columns: minmax(0, 1fr); }
  .dispatch-monitor .monitor-alerts > .panel-head { flex-direction: row; align-items: center; justify-content: space-between; padding: 13px 16px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .dispatch-monitor .monitor-alerts .panel-head small { margin-top: 3px; }
  .dispatch-monitor .monitor-alert { padding: 14px 16px; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; }
  .dispatch-monitor .monitor-alert-copy { min-width: 0; }
  .dispatch-monitor .monitor-alert > .hint { grid-column: 2; max-width: none; }
  .dispatch-monitor .monitor-route-header { padding: 16px; }
  .dispatch-monitor .monitor-route-header h2 { font-size: 19px; }
  .dispatch-monitor .monitor-route-header .pill { white-space: normal; text-align: right; max-width: 46%; }
  .dispatch-monitor .monitor-route-progress { padding: 15px 16px 0; }
  .dispatch-monitor .monitor-route-milestones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 0; padding: 18px 12px; }
  .dispatch-monitor .monitor-milestone:nth-child(3)::after { display: none; }
  .dispatch-monitor .monitor-milestone strong { font-size: 12px; }
  .dispatch-monitor .monitor-milestone small { font-size: 11px; }
  .dispatch-monitor .monitor-next-stop { margin: 0 16px 16px; }
  .dispatch-monitor .monitor-stops > summary { padding-inline: 16px; }
}
