:root {
  --ink: #172421;
  --muted: #66746f;
  --line: #dfe6e3;
  --line-soft: #edf1ef;
  --surface: #ffffff;
  --canvas: #f3f6f5;
  --sidebar: #1d2d2a;
  --sidebar-2: #273936;
  --red: #d9363e;
  --red-dark: #b9252e;
  --red-soft: #fff0f1;
  --teal: #187b68;
  --teal-soft: #e8f5f1;
  --blue: #2f6e9f;
  --blue-soft: #eaf2f8;
  --amber: #c47a16;
  --amber-soft: #fff6e7;
  --shadow: 0 8px 24px rgba(30, 51, 45, .07);
}

* { box-sizing: border-box; }
dialog { width: min(500px, calc(100vw - 32px)); padding: 0; border: 1px solid #dfe6e3; border-radius: 6px; color: var(--ink); }
dialog::backdrop { background: rgba(20, 35, 30, .4); }
dialog > header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
dialog h2 { margin: 0; font-size: 16px; }
dialog dl { padding: 10px 18px; }
dialog dl > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
dialog dt { color: var(--muted); }
dialog dd { margin: 0; overflow-wrap: anywhere; }
.empty-state { text-align: center; padding: 50px 10px; color: var(--muted); }
.page-gap { display: grid; place-items: center; padding: 0 4px; }
.util-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 7px; }
.util-row i.held { background: #949c99; }
.alert-tabs > span { padding: 10px 16px; color: var(--muted); font-size: 10px; }
.alert-tabs > span:first-child { color: var(--red); }
.alert-tabs > span b { margin-left: 4px; }
html { background: var(--canvas); }
.lane-canvas .flow-lines { height: 100%; }
.flow-lines > path { fill: none; stroke-width: 1.7; marker-end: url(#arrowNormal); }
.flow-lines defs path { stroke: none; marker-end: none; }
.flow-lines #arrowNormal path { fill: #526a64; }
.flow-lines #arrowRed path { fill: #d9363e; }
.lane-canvas .exception-node { width: 130px; left: calc(91.6667% - 65px); top: 540px; right: auto; }
.lane-canvas .fallback-node { width: 130px; left: calc(25% - 65px); top: 540px; bottom: auto; right: auto; }
.workflow-shell .swimlane { min-height: 630px; }
.lane-labels > div.exception-lane-label { height: 110px; background: #fff7f2; }
.map-float small span { display: inline; color: inherit; font-weight: inherit; font-size: inherit; }
.map-legend .legend-dot.station { border-color: #547e70; border-radius: 2px; }
.utilization-chart .util-row > div { background: repeating-linear-gradient(90deg, #edf1ef 0, #edf1ef calc(33.3333% - 1px), #dfe6e3 calc(33.3333% - 1px), #dfe6e3 33.3333%); }
.lane-canvas .exception-node small, .lane-canvas .fallback-node small { line-height: 1.5; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; letter-spacing: 0; }
button, input { font: inherit; }
button { color: inherit; }
svg { display: block; }
.nav-item, .icon-btn, .primary-btn, .secondary-btn, .filter, .text-btn, .row-action, .terminal-switch button, .segmented button { transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(47,110,159,.28); outline-offset: 2px; }
.primary-btn:hover, .secondary-btn:hover, .icon-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 12px rgba(22,43,37,.09); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 226px minmax(0, 1fr); }

.sidebar { position: sticky; top: 0; height: 100vh; padding: 23px 14px 16px; display: flex; flex-direction: column; background: var(--sidebar); color: #fff; z-index: 20; }
.brand { min-height: 56px; display: flex; align-items: center; gap: 11px; padding: 0 10px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; background: var(--red); box-shadow: 0 6px 15px rgba(217, 54, 62, .24); }
.brand-mark svg { width: 22px; height: 22px; }
.brand strong { display: block; font-size: 17px; }
.brand span { display: block; margin-top: 4px; color: #aebcb8; font-size: 10px; }
.nav-list { margin-top: 28px; display: grid; gap: 4px; }
.nav-item { height: 44px; border: 0; border-radius: 6px; padding: 0 12px; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; color: #b9c6c3; background: transparent; cursor: pointer; text-align: left; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: var(--sidebar-2); box-shadow: inset 3px 0 var(--red); }
.nav-item svg { width: 18px; height: 18px; }
.nav-item b { min-width: 23px; padding: 2px 6px; border-radius: 10px; color: #dce6e3; background: rgba(255,255,255,.08); font-size: 10px; text-align: center; }
.nav-item .warning-count { color: #fff; background: var(--red); }
.sidebar-foot { margin-top: auto; }
.network-status { margin: 0 9px 12px; color: #aebcb8; font-size: 11px; }
.network-status span { width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: #36c18f; box-shadow: 0 0 0 4px rgba(54,193,143,.12); }
.user-card { width: 100%; min-height: 58px; border: 1px solid rgba(255,255,255,.08); border-radius: 6px; padding: 8px; display: grid; grid-template-columns: 34px 1fr 15px; align-items: center; gap: 9px; color: #fff; background: rgba(255,255,255,.035); text-align: left; cursor: pointer; }
.user-card .avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f1cf87; color: #283531; font-weight: 700; }
.user-card strong, .user-card small { display: block; }
.user-card strong { font-size: 12px; }
.user-card small { margin-top: 3px; color: #9eada9; font-size: 9px; }
.user-card svg { width: 14px; color: #80908c; }

.main-area { min-width: 0; }
.topbar { height: 78px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); }
.topbar h1 { margin: 0; font-size: 21px; line-height: 1.2; }
.topbar p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.scenario-select { height: 36px; padding: 0 11px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #334440; font-size: 11px; }
.scenario-select svg { width: 15px; height: 15px; color: var(--red); }
.scenario-select svg:last-child { color: var(--muted); width: 13px; }
.icon-btn { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 5px; display: grid; place-items: center; background: #fff; cursor: pointer; }
.icon-btn svg { width: 17px; height: 17px; }
.notification { position: relative; }
.notification span { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: var(--red); }
.simulation-badge { height: 36px; padding: 0 11px; display: flex; align-items: center; gap: 6px; border-radius: 5px; color: #7b5914; background: #fff4d9; font-size: 11px; font-weight: 700; }
.simulation-badge svg { width: 15px; }

.view { display: none; padding: 18px 22px 24px; }
.view.active { display: block; animation: viewIn .22s cubic-bezier(.2,.7,.2,1); }
@keyframes viewIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }
.status-strip { height: 46px; display: flex; align-items: center; border: 1px solid var(--line); background: var(--surface); }
.status-strip > div { height: 100%; min-width: 150px; padding: 0 15px; display: flex; align-items: center; gap: 7px; border-right: 1px solid var(--line-soft); font-size: 10px; }
.status-strip svg { width: 15px; color: var(--blue); }
.status-strip span { color: var(--muted); }
.status-strip strong { font-size: 11px; }
.text-good { color: var(--teal) !important; }
.status-strip button { height: 100%; margin-left: auto; padding: 0 16px; border: 0; border-left: 1px solid var(--line-soft); display: flex; align-items: center; gap: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; }
.status-strip button:hover { color: var(--ink); background: #fafbfb; }

.kpi-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi-card { min-height: 124px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: 0 3px 12px rgba(30,51,45,.03); }
.kpi-card.featured { border-top: 3px solid var(--red); padding-top: 13px; }
.kpi-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.kpi-head svg { width: 18px; color: #8da09b; }
.kpi-card > strong { display: inline-block; margin-top: 13px; font-size: 27px; line-height: 1; }
.kpi-card > em { margin-left: 4px; color: var(--muted); font-size: 11px; font-style: normal; }
.kpi-card p { margin: 10px 0 0; color: #89948f; font-size: 9px; }
.up, .down { margin-right: 3px; color: var(--teal); font-weight: 700; }

.overview-grid { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 12px; }
.panel { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow); }
.panel-head { min-height: 62px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.panel-head h2, .section-heading h2, .terminal-intro h2 { margin: 0; font-size: 14px; }
.panel-head p, .section-heading p, .terminal-intro p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.segmented, .terminal-switch { padding: 3px; display: flex; border: 1px solid var(--line); border-radius: 5px; background: #f7f9f8; }
.segmented button, .terminal-switch button { min-width: 48px; height: 25px; border: 0; border-radius: 3px; color: var(--muted); background: transparent; cursor: pointer; font-size: 9px; }
.segmented button.active, .terminal-switch button.active { color: var(--ink); background: #fff; box-shadow: 0 1px 4px rgba(20,40,34,.1); font-weight: 700; }
.map-canvas { position: relative; height: 397px; overflow: hidden; background: #f5f8f7; }
.map-canvas > svg { width: 100%; height: 100%; }
.terrain { fill: none; stroke: #e7eeeb; stroke-width: 25; opacity: .9; }
.terrain.second { stroke-width: 17; }
.road-shadow { stroke: #d7dfdc !important; stroke-width: 10 !important; }
.road { fill: none; stroke: #5f706c; stroke-width: 4; stroke-linecap: round; }
.road.branch { stroke-width: 3; }
.flight { fill: none; stroke: var(--red); stroke-width: 2.1; stroke-dasharray: 7 6; }
.flight-dot { fill: #fff; stroke: var(--red); stroke-width: 2; }
.d1 { animation: fly1 5s linear infinite; }
.d2 { animation: pulse 1.7s infinite; }
.d3 { animation: pulse 1.7s .5s infinite; }
@keyframes pulse { 50% { r: 8; opacity: .4; } }
@keyframes fly1 { 0% { transform: translate(0,0); } 50% { transform: translate(78px,38px); } 100% { transform: translate(0,0); } }
.hub circle { fill: var(--sidebar); }
.hub path { fill: none; stroke: #fff; stroke-width: 1.8; }
.station circle { fill: #fff; stroke: var(--red); stroke-width: 3; }
.station path { fill: none; stroke: var(--red); stroke-width: 1.5; }
.village circle { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.village.urgent circle { fill: var(--red); }
.nodes text { fill: #3c4c48; font-size: 11px; font-weight: 700; }
.vehicle rect { fill: var(--teal); }
.vehicle circle { fill: var(--sidebar); }
.map-legend { position: absolute; left: 14px; bottom: 13px; height: 31px; padding: 0 10px; display: flex; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.94); color: var(--muted); font-size: 8px; }
.map-legend span { display: flex; align-items: center; gap: 5px; }
.legend-line { width: 18px; height: 0; display: block; border-top: 3px solid #5f706c; }
.legend-line.air { border-top: 2px dashed var(--red); }
.legend-dot { width: 8px; height: 8px; display: block; border-radius: 50%; background: #fff; border: 2px solid var(--red); }
.legend-dot.urgent { background: var(--red); }
.map-float { position: absolute; right: 14px; top: 14px; width: 150px; padding: 10px 11px; border: 1px solid #dbe3e0; border-left: 3px solid var(--teal); border-radius: 4px; background: rgba(255,255,255,.96); }
.map-float span { display: block; color: var(--teal); font-size: 8px; font-weight: 700; }
.map-float strong { display: block; margin-top: 4px; font-size: 10px; }
.map-float small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }

.text-btn { border: 0; padding: 5px; color: var(--blue); background: transparent; cursor: pointer; font-size: 9px; }
.event-list { padding: 4px 12px 0; }
.event { width: 100%; min-height: 67px; padding: 10px 0; display: grid; grid-template-columns: 32px 1fr 16px; align-items: center; gap: 9px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; text-align: left; cursor: pointer; }
.event-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 4px; }
.event.warning .event-icon { color: var(--amber); background: var(--amber-soft); }
.event.info .event-icon { color: var(--blue); background: var(--blue-soft); }
.event.good .event-icon { color: var(--teal); background: var(--teal-soft); }
.event svg { width: 15px; }
.event > span:nth-child(2) strong, .event > span:nth-child(2) small { display: block; }
.event strong { font-size: 10px; }
.event small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.event > svg { color: #9da9a5; }
.resource-mini { margin: 12px; padding: 12px; background: #f7f9f8; border-radius: 5px; }
.resource-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.resource-title strong { font-size: 10px; }
.resource-title span { color: var(--teal); font-size: 8px; font-weight: 700; }
.resource-row { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; margin-top: 9px; font-size: 8px; }
.resource-row span { display: flex; align-items: center; gap: 5px; color: var(--muted); }
.resource-row span svg { width: 13px; }
.resource-row b { font-size: 8px; }
.resource-row div { grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 2px; background: #dfe7e4; }
.resource-row div i { height: 100%; display: block; background: var(--teal); }

.bottom-grid { margin-top: 12px; display: grid; grid-template-columns: .9fr 1.18fr 1fr; gap: 12px; }
.compact-panel { min-height: 210px; }
.compact-panel .panel-head { min-height: 55px; padding-top: 10px; padding-bottom: 10px; }
.algorithm-tag { padding: 4px 7px; border-radius: 3px; color: var(--blue); background: var(--blue-soft); font-size: 8px; font-weight: 700; }
.allocation-content { padding: 14px 17px; display: flex; align-items: center; justify-content: center; gap: 28px; }
.donut { width: 105px; height: 105px; padding: 12px; border-radius: 50%; background: conic-gradient(var(--teal) 0 66.7%, var(--red) 66.7% 100%); }
.donut > div { width: 100%; height: 100%; display: grid; place-content: center; border-radius: 50%; background: #fff; text-align: center; }
.donut strong { font-size: 21px; }
.donut span { margin-top: 2px; color: var(--muted); font-size: 7px; }
.allocation-list { min-width: 120px; }
.allocation-list > div { padding: 9px 0; display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; border-bottom: 1px solid var(--line-soft); }
.allocation-list > div:last-child { border: 0; }
.allocation-list span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; }
.allocation-list strong { font-size: 11px; }
.allocation-list small { grid-column: 2; color: #89958f; font-size: 7px; }
.dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }
.dot.ground { background: var(--teal); }.dot.air { background: var(--red); }
.bar-compare { padding: 13px 16px; }
.bar-compare > div { display: grid; grid-template-columns: 112px 1fr 61px; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 8px; }
.bar-compare span { color: var(--muted); }
.bar-compare div > div { height: 9px; overflow: hidden; background: #edf1ef; }
.bar-compare div > div i { height: 100%; display: block; background: #8a9995; }
.bar-compare .best span, .bar-compare .best strong { color: var(--red); font-weight: 700; }
.bar-compare .best div i { background: var(--red); }
.bar-compare strong { text-align: right; font-size: 9px; }
.distance-numbers { padding: 15px 16px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.distance-numbers > div { padding: 10px; display: grid; grid-template-columns: 25px 1fr; align-items: center; border: 1px solid var(--line-soft); background: #fafbfb; }
.distance-numbers svg { grid-row: 1 / 3; width: 18px; color: var(--blue); }
.distance-numbers span { color: var(--muted); font-size: 7px; }
.distance-numbers strong { margin-top: 3px; font-size: 13px; }
.distance-numbers small { color: var(--muted); font-size: 7px; }
.distance-note { margin: 0 16px; min-height: 37px; padding: 0 9px; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 6px; color: var(--teal); background: var(--teal-soft); font-size: 8px; }
.distance-note svg { width: 14px; }.distance-note strong { font-size: 11px; }

.primary-btn, .secondary-btn { height: 34px; padding: 0 12px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-size: 9px; font-weight: 700; }
.primary-btn { border: 1px solid var(--red); color: #fff; background: var(--red); }
.primary-btn:hover { background: var(--red-dark); }
.secondary-btn { border: 1px solid var(--line); background: #fff; }
.primary-btn svg, .secondary-btn svg { width: 14px; }
.button-spinner { width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.42); border-top-color: #fff; border-radius: 50%; animation: buttonSpin .7s linear infinite; }
@keyframes buttonSpin { to { transform: rotate(360deg); } }
.dispatch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 12px; }
.dispatch-main { min-height: 735px; }
.dispatch-actions { display: flex; align-items: center; gap: 12px; }
.saved { display: flex; align-items: center; gap: 4px; color: var(--teal); font-size: 8px; }
.saved svg { width: 13px; }
.stepper { height: 92px; padding: 16px 28px; display: flex; align-items: flex-start; border-bottom: 1px solid var(--line-soft); background: #fafbfb; }
.stepper > div { width: 105px; display: grid; grid-template-columns: 26px 1fr; gap: 1px 7px; }
.stepper > div > span { grid-row: 1 / 3; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #cfd9d5; border-radius: 50%; color: var(--muted); background: #fff; font-size: 9px; font-weight: 700; }
.stepper strong { font-size: 9px; white-space: nowrap; }.stepper small { color: var(--muted); font-size: 7px; white-space: nowrap; }
.stepper > i { flex: 1; height: 1px; margin: 13px 9px 0; background: #ced8d5; }
.stepper .done > span { border-color: var(--teal); color: #fff; background: var(--teal); }
.stepper .active > span { border-color: var(--red); color: #fff; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.dispatch-map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; min-height: 578px; }
.simple-map { position: relative; overflow: hidden; border-right: 1px solid var(--line-soft); }
.simple-map svg { width: 100%; height: 100%; }
.route-a { fill: none; stroke: #4f6560; stroke-width: 7; stroke-linecap: round; }
.route-b { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 8 7; }
.map-stops circle { fill: #fff; stroke: var(--red); stroke-width: 3; }
.map-stops circle:first-child { fill: var(--sidebar); stroke: var(--sidebar); }
.map-labels { fill: #43544f; font-size: 10px; font-weight: 700; }
.map-toolbar { position: absolute; left: 12px; top: 12px; display: flex; gap: 4px; }
.map-toolbar button { width: 30px; height: 30px; border: 1px solid var(--line); display: grid; place-items: center; background: #fff; cursor: pointer; }
.map-toolbar button.active { color: var(--red); }.map-toolbar svg { width: 14px; }
.route-list { padding: 10px; }
.route-list-head { height: 38px; display: flex; align-items: center; justify-content: space-between; font-size: 9px; }
.route-list-head span { color: var(--muted); font-size: 8px; }
.route-item { width: 100%; min-height: 64px; margin-bottom: 7px; padding: 8px; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; border: 1px solid var(--line-soft); border-radius: 4px; background: #fff; text-align: left; cursor: pointer; }
.route-item.active { border-color: #efb5b8; background: var(--red-soft); }
.route-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 4px; color: var(--teal); background: var(--teal-soft); }.route-icon.air { color: var(--red); background: var(--red-soft); }
.route-icon svg { width: 15px; }
.route-item strong, .route-item small { display: block; }.route-item strong { font-size: 9px; }.route-item small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.route-item em { grid-column: 2; color: var(--teal); font-size: 7px; font-style: normal; }
.dispatch-side { display: grid; align-content: start; gap: 12px; }
.result-card { overflow: hidden; }
.result-head { padding: 15px; display: flex; align-items: center; gap: 9px; color: #fff; background: var(--sidebar); }
.result-head > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); }.result-head svg { width: 17px; color: #61d2aa; }
.result-head strong, .result-head small { display: block; }.result-head strong { font-size: 10px; }.result-head small { margin-top: 4px; color: #aebcb8; font-size: 7px; }
.result-score { padding: 16px; display: flex; align-items: flex-end; justify-content: space-between; }.result-score span { color: var(--muted); font-size: 8px; }.result-score strong { font-size: 24px; }
.result-card dl, .task-detail dl { margin: 0; padding: 0 16px; }.result-card dl > div, .task-detail dl > div { min-height: 34px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-soft); font-size: 8px; }.result-card dt, .task-detail dt { color: var(--muted); }.result-card dd, .task-detail dd { margin: 0; font-weight: 700; }
.result-foot { margin-top: 10px; padding: 11px 14px; display: flex; align-items: flex-start; gap: 7px; color: var(--teal); background: var(--teal-soft); font-size: 7px; line-height: 1.45; }.result-foot svg { width: 14px; flex: 0 0 auto; }
.priority { display: inline-flex; align-items: center; padding: 4px 6px; border-radius: 3px; font-size: 7px; font-weight: 700; }.priority.critical { color: #b4222b; background: var(--red-soft); }.priority.high { color: #8a5a0e; background: var(--amber-soft); }.priority.normal { color: #52605d; background: #eef2f1; }
.decision { margin: 14px; padding: 11px; display: flex; align-items: center; gap: 10px; border-left: 3px solid var(--red); background: var(--red-soft); }.decision svg { width: 20px; color: var(--red); }.decision small, .decision strong { display: block; }.decision small { color: var(--muted); font-size: 7px; }.decision strong { margin-top: 4px; font-size: 9px; }
.reason { margin: 0 14px 14px; display: flex; align-items: flex-start; gap: 6px; color: var(--muted); font-size: 8px; line-height: 1.55; }.reason svg { width: 14px; flex: 0 0 auto; color: var(--amber); }

.table-panel { min-height: 0; }
.table-head { min-height: 72px; padding: 15px 18px; flex-wrap: wrap; gap: 12px; }
.task-export-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.task-export-actions #export-tasks { min-width: 128px; }
.task-export-actions .icon-btn { width: 34px; height: 34px; }
.task-export-actions button:disabled:hover { transform: none; box-shadow: none; }
.filters { min-height: 57px; padding: 10px 17px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line-soft); }
.filters label { width: 235px; height: 33px; padding: 0 9px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 4px; }.filters label svg { width: 14px; color: #84918d; }.filters input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 9px; }
.filter { height: 31px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; display: flex; align-items: center; gap: 5px; color: var(--muted); background: #fff; cursor: pointer; font-size: 8px; }.filter.active { border-color: #efb5b8; color: var(--red); background: var(--red-soft); font-weight: 700; }.filter:last-child { margin-left: auto; }.filter svg { width: 13px; }
.data-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th { height: 42px; padding: 0 10px; color: #65736f; background: #f7f9f8; text-align: left; font-size: 8px; font-weight: 700; }
td { height: 63px; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); font-size: 9px; vertical-align: middle; }
th:first-child, td:first-child { width: 42px; text-align: center; } th:nth-child(2) { width: 185px; } th:nth-child(3) { width: 100px; } th:nth-child(4) { width: 90px; } th:nth-child(5) { width: 105px; } th:nth-child(6) { width: 90px; } th:nth-child(7) { width: 90px; } th:nth-child(8) { width: 90px; } th:last-child { width: 42px; }
td strong, td small { display: block; } td small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.mode { display: inline-flex; align-items: center; gap: 5px; font-size: 8px; font-weight: 700; }.mode svg { width: 14px; }.mode.air { color: var(--red); }.mode.ground { color: var(--teal); }
.status { display: inline-flex; padding: 4px 7px; border-radius: 10px; font-size: 7px; font-weight: 700; }.status.running { color: #236896; background: var(--blue-soft); }.status.done { color: var(--teal); background: var(--teal-soft); }.status.wait { color: #916216; background: var(--amber-soft); }
.row-action { width: 28px; height: 28px; border: 0; display: grid; place-items: center; background: transparent; cursor: pointer; }.row-action svg { width: 15px; }
.pagination { min-height: 58px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 8px; }.pagination div { display: flex; gap: 4px; }.pagination button { width: 28px; height: 28px; border: 1px solid var(--line); display: grid; place-items: center; background: #fff; cursor: pointer; font-size: 8px; }.pagination button.active { border-color: var(--red); color: #fff; background: var(--red); }.pagination button:disabled { opacity: .45; }.pagination svg { width: 13px; }

.resource-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 14px; }
.section-heading { min-height: 56px; display: flex; align-items: center; justify-content: space-between; }
.fleet-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.fleet-card { min-height: 280px; padding: 15px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: var(--shadow); }
.fleet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }.asset-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 5px; }.asset-icon.truck { color: var(--teal); background: var(--teal-soft); }.asset-icon.drone { color: var(--red); background: var(--red-soft); }.asset-icon svg { width: 21px; }
.fleet-card > strong, .fleet-card > small { display: block; }.fleet-card > strong { font-size: 12px; }.fleet-card > small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.fleet-card dl { margin: 17px 0 15px; padding: 12px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }.fleet-card dl div { text-align: center; border-right: 1px solid var(--line-soft); }.fleet-card dl div:last-child { border: 0; }.fleet-card dt { color: var(--muted); font-size: 7px; }.fleet-card dd { margin: 5px 0 0; font-size: 9px; font-weight: 700; }
.battery { display: grid; grid-template-columns: 1fr auto; gap: 7px; font-size: 8px; }.battery span { color: var(--muted); }.battery div { grid-column: 1/-1; height: 6px; overflow: hidden; border-radius: 3px; background: #e6ecea; }.battery div i { height: 100%; display: block; background: var(--teal); }.battery.charging div i { background: var(--blue); }
.station-panel { margin-top: 56px; }
.station-list { padding: 6px 13px; }.station-list button { width: 100%; min-height: 68px; padding: 9px 0; display: grid; grid-template-columns: 36px 1fr auto 15px; align-items: center; gap: 9px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; text-align: left; cursor: pointer; }.station-pin { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #edb8bb; border-radius: 50%; color: var(--red); background: var(--red-soft); font-size: 9px; font-weight: 700; }.station-list strong, .station-list small { display: block; }.station-list strong { font-size: 10px; }.station-list small { margin-top: 5px; color: var(--muted); font-size: 7px; }.station-list em { color: var(--teal); font-size: 7px; font-style: normal; font-weight: 700; }.station-list em.attention { color: var(--amber); }.station-list svg { width: 14px; color: #9ba7a3; }
.station-summary { margin: 13px; padding: 12px; display: grid; grid-template-columns: repeat(3,1fr); background: #f7f9f8; }.station-summary div { text-align: center; border-right: 1px solid var(--line); }.station-summary div:last-child { border: 0; }.station-summary span { display: block; color: var(--muted); font-size: 7px; }.station-summary strong { display: block; margin-top: 6px; font-size: 14px; }.station-summary small { margin-left: 2px; color: var(--muted); font-size: 7px; }
.resource-insights { margin-top:12px; }.resource-insights .panel-head { min-height:54px; }.resource-insight-body { min-height:176px; display:grid; grid-template-columns:minmax(0,1.4fr) minmax(235px,.8fr); }.utilization-chart { position:relative; padding:31px 18px 12px; border-right:1px solid var(--line-soft); }.time-axis { position:absolute; top:10px; left:56px; right:42px; display:flex; justify-content:space-between; color:#8b9995; font-size:7px; }.util-row { min-height:26px; display:grid; grid-template-columns:28px 1fr 32px; align-items:center; gap:8px; }.util-row > strong { color:#52615d; font-size:8px; }.util-row > em { color:var(--muted); font-size:7px; font-style:normal; text-align:right; }.util-row > div { height:10px; position:relative; overflow:hidden; background:repeating-linear-gradient(90deg,#edf1ef 0,#edf1ef calc(25% - 1px),#dfe6e3 calc(25% - 1px),#dfe6e3 25%); }.util-row i { height:100%; position:absolute; top:0; display:block; background:var(--teal); }.util-row i.air { background:var(--red); }.util-row i.planned { opacity:.55; }.util-row i.service { background:var(--amber); }.service-queue { padding:12px 14px; }.service-queue > div { display:flex; justify-content:space-between; margin-bottom:3px; }.service-queue > div strong { font-size:9px; }.service-queue > div span { color:var(--muted); font-size:7px; }.service-queue article { min-height:43px; display:grid; grid-template-columns:22px 1fr auto; align-items:center; gap:7px; border-bottom:1px solid var(--line-soft); }.service-queue article:last-child { border:0; }.service-queue article > svg { width:14px; color:var(--blue); }.service-queue article strong,.service-queue article small { display:block; }.service-queue article strong { font-size:8px; }.service-queue article small { margin-top:3px; color:var(--muted); font-size:6px; }.service-queue article em { color:var(--teal); font-size:6px; font-style:normal; }

.alerts-layout { display: grid; grid-template-columns: minmax(0,1fr) 315px; gap: 14px; }
.alert-center { min-height: 700px; }.alert-tabs { height: 48px; padding: 0 16px; display: flex; align-items: end; gap: 20px; border-bottom: 1px solid var(--line-soft); }.alert-tabs button { height: 100%; padding: 0 3px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; cursor: pointer; font-size: 9px; }.alert-tabs button.active { border-bottom-color: var(--red); color: var(--ink); font-weight: 700; }.alert-tabs b { margin-left: 3px; color: var(--red); }
.incident { margin: 16px; padding: 17px; border: 1px solid var(--line); border-radius: 5px; }.active-incident { border-left: 4px solid var(--amber); background: #fffdfa; }.incident-line { display: flex; align-items: center; justify-content: space-between; }.incident-level { padding: 4px 7px; color: #9a600b; background: var(--amber-soft); font-size: 7px; font-weight: 700; }.incident-level.low { color: #326f99; background: var(--blue-soft); }.incident time { color: var(--muted); font-size: 8px; }.incident h3 { margin: 13px 0 7px; font-size: 13px; }.incident > p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.65; }
.incident-actions { margin-top: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.incident-actions button { min-height: 65px; padding: 10px; display: grid; grid-template-columns: 24px 1fr 15px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 4px; background: #fff; text-align: left; cursor: pointer; }.incident-actions button.recommended { border-color: #e9b2b5; background: var(--red-soft); }.incident-actions svg { width: 16px; color: var(--red); }.incident-actions strong, .incident-actions small { display: block; }.incident-actions strong { font-size: 9px; }.incident-actions small { margin-top: 4px; color: var(--muted); font-size: 7px; line-height: 1.35; }
.incident-footer { margin-top: 15px; display: flex; gap: 7px; }.incident.compact { min-height: 75px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; background: #fff; }.incident.compact strong, .incident.compact small { display: block; }.incident.compact strong { font-size: 9px; }.incident.compact small { margin-top: 5px; color: var(--muted); font-size: 7px; }
.control-panel { align-self: start; }.rule-row { min-height: 48px; margin: 0 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); font-size: 8px; }.rule-row span { display: flex; align-items: center; gap: 7px; color: var(--muted); }.rule-row svg { width: 15px; }.rule-row strong { font-size: 8px; }.fallback-card { margin: 15px; padding: 13px; display: flex; gap: 10px; color: var(--teal); background: var(--teal-soft); }.fallback-card > svg { width: 20px; flex: 0 0 auto; }.fallback-card strong { font-size: 9px; }.fallback-card p { margin: 6px 0 0; color: #58736d; font-size: 7px; line-height: 1.5; }
.control-summary { margin:0 15px 15px; padding:11px 0; display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }.control-summary > div { text-align:center; border-right:1px solid var(--line); }.control-summary > div:last-child { border:0; }.control-summary span,.control-summary strong { display:block; }.control-summary span { color:var(--muted); font-size:6px; }.control-summary strong { margin-top:5px; font-size:13px; }
.alert-closure { margin:16px; padding:14px 16px; border:1px solid var(--line); background:#f9fbfa; }.closure-head { display:flex; align-items:center; justify-content:space-between; }.closure-head strong,.closure-head small { display:block; }.closure-head strong { font-size:10px; }.closure-head small { margin-top:4px; color:var(--muted); font-size:7px; }.closure-head > span { color:var(--teal); font-size:8px; font-weight:700; }.closure-steps { margin-top:15px; display:flex; align-items:flex-start; }.closure-steps > div { width:88px; text-align:center; }.closure-steps > i { flex:1; height:1px; margin:16px 5px 0; background:#d2dcd8; }.closure-steps > div > span { width:32px; height:32px; margin:0 auto; display:grid; place-items:center; border:1px solid #ccd7d3; border-radius:50%; color:#84948f; background:#fff; }.closure-steps svg { width:14px; }.closure-steps strong,.closure-steps small { display:block; }.closure-steps strong { margin-top:7px; font-size:7px; }.closure-steps small { margin-top:4px; color:var(--muted); font-size:6px; }.closure-steps .done > span { border-color:var(--teal); color:#fff; background:var(--teal); }.closure-steps .active > span { border-color:var(--red); color:#fff; background:var(--red); box-shadow:0 0 0 4px var(--red-soft); }

.terminal-intro { min-height: 60px; display: flex; align-items: center; justify-content: space-between; }
.phones-stage { min-height: 720px; padding: 16px 28px 30px; display: flex; align-items: flex-start; justify-content: center; gap: clamp(24px,4vw,62px); border: 1px solid var(--line); background: #e8eeec; background-image: linear-gradient(#dfe7e4 1px, transparent 1px), linear-gradient(90deg,#dfe7e4 1px,transparent 1px); background-size: 32px 32px; }
.phone-wrap { transition: opacity .2s, transform .2s; }.phone-wrap.hidden { display: none; }
.phone-label { width: 286px; min-height: 50px; display: flex; align-items: center; gap: 9px; }.phone-label > svg { width: 18px; color: var(--red); }.phone-label strong, .phone-label small { display: block; }.phone-label strong { font-size: 11px; }.phone-label small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.phone { width: 286px; height: 615px; position: relative; overflow: hidden; border: 8px solid #17201e; border-radius: 28px; background: #f7f9f8; box-shadow: 0 20px 45px rgba(23,36,33,.18); }
.phone::before { content:""; position: absolute; z-index: 8; top: 5px; left: 50%; width: 78px; height: 17px; transform: translateX(-50%); border-radius: 0 0 11px 11px; background: #17201e; }
.phone-status { height: 28px; padding: 7px 15px 0; display: flex; align-items: center; justify-content: space-between; background: #fff; font-size: 7px; font-weight: 700; }.phone-status > span:last-child { display: flex; align-items: center; gap: 3px; }.phone-status svg { width: 10px; height: 10px; }
.phone-body { height: calc(100% - 78px); overflow: hidden; padding: 13px 13px 8px; }.phone-body header { min-height: 45px; display: flex; align-items: center; justify-content: space-between; }.phone-body header small, .phone-body header strong { display: block; }.phone-body header small { color: var(--muted); font-size: 7px; }.phone-body header strong { margin-top: 3px; font-size: 13px; }.phone-body header button { width: 30px; height: 30px; position: relative; border: 0; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(20,40,34,.08); }.phone-body header button svg { width: 14px; }.phone-body header button span { position: absolute; right: 6px; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.delivery-card { min-height: 185px; margin-top: 6px; padding: 14px; border-radius: 8px; color: #fff; background: var(--sidebar); }.mini-tag { display: inline-block; padding: 3px 6px; border-radius: 3px; color: #18352e; background: #78d6b6; font-size: 6px; font-weight: 700; }.delivery-card h3 { margin: 10px 0 5px; font-size: 12px; }.delivery-card p { margin: 0; color: #b7c5c1; font-size: 7px; }.delivery-time { margin-top: 15px; display: flex; align-items: flex-end; gap: 7px; }.delivery-time strong { font-size: 25px; }.delivery-time span { padding-bottom: 3px; color: #aebcb8; font-size: 7px; }.progress { margin-top: 15px; display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; }.progress i { height: 3px; background: rgba(255,255,255,.22); }.progress i:nth-child(-n+3) { background: #61d2aa; }.progress-label { margin-top: 6px; display: flex; justify-content: space-between; color: #aebcb8; font-size: 5px; }
.quick-grid { margin-top: 11px; display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }.quick-grid button { height: 62px; padding: 7px 2px; border: 0; border-radius: 5px; display: grid; place-items: center; gap: 2px; background: #fff; font-size: 6px; }.quick-grid svg { width: 18px; color: var(--red); }
.recent { margin-top: 13px; }.recent > div, .station-task-head, .dispatch-queue > div { display: flex; align-items: center; justify-content: space-between; }.recent > div strong, .station-task-head strong, .dispatch-queue > div strong { font-size: 9px; }.recent button, .station-task-head button, .dispatch-queue button { padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 6px; }.recent article { margin-top: 8px; padding: 9px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 7px; border-radius: 5px; background: #fff; }.package-icon { width: 30px; height: 30px; display: grid; place-items: center; color: var(--teal); background: var(--teal-soft); }.package-icon svg { width: 16px; }.recent article strong, .recent article small { display: block; }.recent article strong { font-size: 8px; }.recent article small { margin-top: 4px; color: var(--muted); font-size: 6px; }.recent article em { color: var(--teal); font-size: 6px; font-style: normal; }
.phone-nav { height: 50px; position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); background: #fff; }.phone-nav button { border: 0; display: grid; place-items: center; align-content: center; gap: 2px; color: #84928e; background: transparent; font-size: 6px; }.phone-nav button.active { color: var(--red); }.phone-nav svg { width: 15px; }
.online-dot { padding: 4px 7px; border-radius: 10px; color: var(--teal); background: var(--teal-soft); font-size: 6px; font-weight: 700; }.station-kpis { margin: 7px 0 10px; display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }.station-kpis div { padding: 9px 5px; border-radius: 5px; background: #fff; text-align: center; }.station-kpis span { display: block; color: var(--muted); font-size: 6px; }.station-kpis strong { display: block; margin-top: 4px; font-size: 14px; }.warn { color: var(--red) !important; }.scan-button { width: 100%; height: 58px; padding: 9px; display: grid; grid-template-columns: 32px 1fr 12px; align-items: center; gap: 7px; border: 0; border-radius: 6px; color: #fff; background: var(--red); text-align: left; }.scan-button > svg:first-child { width: 25px; }.scan-button > svg:last-child { width: 12px; }.scan-button strong, .scan-button small { display: block; }.scan-button strong { font-size: 9px; }.scan-button small { margin-top: 3px; color: #ffe5e6; font-size: 6px; }.station-task-head { margin: 13px 0 7px; }
.mobile-task { margin-bottom: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }.mobile-task.urgent { border-left: 3px solid var(--red); }.mobile-task > div { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 6px; }.task-num { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 4px; color: var(--red); background: var(--red-soft); font-size: 7px; font-weight: 700; }.mobile-task strong, .mobile-task small { display: block; }.mobile-task strong { font-size: 7px; }.mobile-task small { margin-top: 3px; color: var(--muted); font-size: 6px; }.mobile-task em { color: var(--red); font-size: 6px; font-style: normal; font-weight: 700; }.mobile-task footer { margin-top: 7px; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-soft); }.mobile-task footer span { display: flex; align-items: center; gap: 3px; color: var(--muted); font-size: 6px; }.mobile-task footer svg { width: 10px; }.mobile-task footer button { height: 20px; border: 0; border-radius: 3px; color: #fff; background: var(--red); font-size: 6px; }.weather-note { padding: 8px; display: flex; align-items: center; gap: 7px; color: #8a5a0e; background: var(--amber-soft); }.weather-note > svg { width: 16px; }.weather-note strong, .weather-note small { display: block; }.weather-note strong { font-size: 7px; }.weather-note small { margin-top: 3px; font-size: 5px; }
.operator-map { position: relative; height: 165px; margin: 5px -13px 0; overflow: hidden; }.operator-map svg { width: 100%; height: 100%; }.operator-map > span { position: absolute; right: 9px; top: 9px; padding: 5px 7px; display: flex; align-items: center; gap: 4px; border-radius: 3px; color: var(--red); background: rgba(255,255,255,.92); font-size: 6px; font-weight: 700; }.operator-map > span svg { width: 11px; }.operator-summary { margin: 10px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }.operator-summary div { padding: 8px 4px; background: #fff; text-align: center; }.operator-summary span { display: block; color: var(--muted); font-size: 6px; }.operator-summary strong { display: block; margin-top: 4px; font-size: 12px; }.mobile-alert { padding: 8px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 7px; color: #80530c; background: var(--amber-soft); }.mobile-alert > span { width: 27px; height: 27px; display: grid; place-items: center; background: #ffe9bd; }.mobile-alert svg { width: 14px; }.mobile-alert strong, .mobile-alert small { display: block; }.mobile-alert strong { font-size: 7px; }.mobile-alert small { margin-top: 3px; font-size: 6px; }.mobile-alert button { height: 22px; border: 0; border-radius: 3px; color: #fff; background: var(--amber); font-size: 6px; }.dispatch-queue { margin-top: 12px; }.dispatch-queue article { margin-top: 7px; padding: 8px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 7px; background: #fff; }.mini-asset { width: 28px; height: 28px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); }.mini-asset.ground { color: var(--teal); background: var(--teal-soft); }.mini-asset svg { width: 15px; }.dispatch-queue article strong, .dispatch-queue article small { display: block; }.dispatch-queue article strong { font-size: 7px; }.dispatch-queue article small { margin-top: 3px; color: var(--muted); font-size: 6px; }.dispatch-queue article em { color: var(--teal); font-size: 6px; font-style: normal; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; min-width: 190px; height: 42px; padding: 0 14px; display: flex; align-items: center; gap: 8px; border: 1px solid #b9e2d5; border-radius: 5px; color: var(--teal); background: #fff; box-shadow: 0 10px 30px rgba(25,45,39,.16); font-size: 9px; font-weight: 700; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; }.toast.show { opacity: 1; transform: translateY(0); }.toast svg { width: 16px; }
.loading .stepper .active > span { animation: spinPulse .8s infinite alternate; }.loading .result-card { opacity: .55; }.loading .saved { visibility: hidden; }
@keyframes spinPulse { to { box-shadow: 0 0 0 8px rgba(217,54,62,.08); } }

/* Command screen */
#view-bigscreen { padding: 12px 16px 18px; background: #0e1b19; }
.command-board { min-height: calc(100vh - 108px); position:relative; color: #eef6f3; background: #10211e; border: 1px solid #31524b; box-shadow: inset 0 0 70px rgba(41,100,86,.12); }
.board-exit { width:34px; height:34px; position:fixed; z-index:100; right:12px; top:12px; display:none; place-items:center; border:1px solid #42655d; border-radius:4px; color:#d9e8e4; background:rgba(16,33,30,.86); cursor:pointer; opacity:.12; transition:opacity .18s ease, background-color .18s ease; }.board-exit:hover,.board-exit:focus-visible { opacity:1; background:#1a3630; }.board-exit svg { width:16px; }
.board-head { height: 70px; padding: 0 18px; display: grid; grid-template-columns: 220px 1fr 220px; align-items: center; border-bottom: 1px solid #2a4942; background: #142824; }
.board-brand { display: flex; align-items: center; gap: 9px; }.board-brand > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 4px; background: var(--red); }.board-brand svg { width: 19px; }.board-brand strong, .board-brand small { display: block; }.board-brand strong { font-size: 15px; }.board-brand small { margin-top: 3px; color: #739088; font: 7px Consolas, monospace; }
.board-title { text-align: center; }.board-title h2 { margin: 0; font-size: 20px; }.board-title p { margin: 5px 0 0; color: #8fa8a1; font-size: 9px; }.board-clock { text-align: right; }.board-clock strong, .board-clock small { display: block; }.board-clock strong { font: 21px Consolas, monospace; color: #77dbc0; }.board-clock small { margin-top: 4px; color: #739088; font-size: 8px; }
.board-kpis { height: 92px; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #2a4942; }.board-kpis > div { position: relative; padding: 15px 20px; border-right: 1px solid #28463f; }.board-kpis > div:last-child { border: 0; }.board-kpis > div::before { content:""; position:absolute; left:0; top:20px; width:2px; height:48px; background:#3c7166; }.board-kpis > div:last-child::before { background: var(--red); }.board-kpis span { display: block; color: #87a29b; font-size: 9px; }.board-kpis strong { display: inline-block; margin-top: 7px; font: 28px Consolas, monospace; }.board-kpis em { margin-left: 4px; color: #8fa8a1; font-size: 9px; font-style: normal; }.board-kpis small { float: right; margin-top: 18px; color: #63c9ad; font-size: 8px; }
.board-grid { min-height: 514px; padding: 12px; display: grid; grid-template-columns: 225px minmax(0,1fr) 225px; gap: 10px; }.board-column { display: grid; grid-template-rows: 1.06fr .7fr; gap: 10px; }.board-panel, .board-map { min-width:0; border: 1px solid #29473f; background: #142824; }.board-panel > header { height: 40px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #29473f; color: #dfece8; font-size: 10px; font-weight: 700; }.board-panel > header b { color: #63d4b4; font: 10px Consolas, monospace; }.priority-list { padding: 4px 11px; }.priority-list article { min-height: 63px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 7px; border-bottom: 1px solid #244039; }.priority-list article:last-child { border:0; }.priority-list time { color:#65cbb0; font: 9px Consolas, monospace; }.priority-list strong, .priority-list small { display:block; }.priority-list strong { font-size:9px; }.priority-list small { margin-top:5px; color:#769088; font-size:7px; }.priority-list em { color:#ff777d; font-size:7px; font-style:normal; }
.fleet-stat { padding: 9px 12px; display:grid; gap:8px; }.fleet-stat > div { min-height:34px; display:grid; grid-template-columns:24px 1fr auto; align-items:center; gap:6px; color:#8ea59f; font-size:8px; }.fleet-stat svg { width:16px; color:#60c8ac; }.fleet-stat strong { color:#edf5f2; font:9px Consolas, monospace; }
.board-map { position:relative; overflow:hidden; }.board-map > svg { width:100%; height:calc(100% - 36px); }.board-map-head { height:36px; padding:0 11px; display:flex; align-items:center; gap:15px; border-bottom:1px solid #29473f; color:#78928b; font-size:7px; }.board-map-head span { display:flex; align-items:center; gap:5px; }.board-map-head span i { width:13px; height:2px; display:block; background:#7ea39a; }.board-map-head span:nth-child(2) i { background:var(--red); }.board-map-head span:nth-child(3) i { width:6px; height:6px; border-radius:50%; background:var(--red); }.board-map-head strong { margin-left:auto; display:flex; align-items:center; gap:5px; color:#65cbb0; font-size:7px; }.board-map-head svg { width:12px; }.board-stations circle { fill:#132824; stroke:#ff5961; stroke-width:2.5; }.board-stations path { fill:none; stroke:#ff5961; stroke-width:1.5; }.board-stations text, .board-villages text, .board-assets text { fill:#c5d7d2; font-size:10px; font-weight:700; }.board-villages circle { fill:#ff5961; stroke:#ffd4d6; stroke-width:2; }.board-assets rect { fill:#63cbb0; }.board-assets circle { fill:#10211e; }.drone-pulse circle { fill:rgba(255,89,97,.16); stroke:#ff5961; stroke-width:2; animation:boardPulse 1.8s infinite; }.drone-pulse path { stroke:#ff5961; stroke-width:1.5; }.board-weather { position:absolute; left:12px; right:12px; bottom:10px; min-height:34px; padding:0 10px; display:flex; align-items:center; justify-content:space-around; border:1px solid #315048; background:rgba(18,39,35,.93); }.board-weather span { display:flex; align-items:center; gap:6px; color:#82a098; font-size:7px; }.board-weather svg { width:13px; color:#5ecbad; }.board-weather strong { color:#d9e8e4; font-size:8px; }
@keyframes boardPulse { 50% { r:22; opacity:.45; } }
.ring-wrap { padding:12px 0 7px; display:grid; place-items:center; }.board-ring { width:112px; height:112px; padding:10px; border-radius:50%; background:conic-gradient(#61d0b2 0 60.96%,#263f39 60.96% 100%); }.board-ring > span { width:100%; height:100%; display:grid; place-content:center; border-radius:50%; background:#142824; text-align:center; }.board-ring strong, .board-ring small { display:block; }.board-ring strong { font:18px Consolas,monospace; }.board-ring small { margin-top:4px; color:#78948d; font-size:6px; }.metric-pair { padding:7px 10px 12px; display:grid; grid-template-columns:1fr 1fr; gap:6px; }.metric-pair > div { padding:8px; border:1px solid #29473f; }.metric-pair span, .metric-pair strong { display:block; }.metric-pair span { color:#78938c; font-size:6px; }.metric-pair strong { margin-top:5px; font:11px Consolas,monospace; }.metric-pair small { color:#78938c; font-size:6px; }.board-alerts article { min-height:55px; margin:0 10px; display:flex; align-items:center; gap:8px; border-bottom:1px solid #29453e; }.board-alerts article:last-child { border:0; }.board-alerts article > svg { width:15px; color:#ffbd56; }.board-alerts strong,.board-alerts small { display:block; }.board-alerts strong { font-size:8px; }.board-alerts small { margin-top:4px; color:#78918a; font-size:6px; }.board-foot { min-height:36px; padding:0 16px; display:flex; align-items:center; gap:24px; border-top:1px solid #29473f; color:#78918a; font-size:7px; }.board-foot span { display:flex; align-items:center; gap:5px; }.board-foot svg { width:12px; color:#62c9ad; }.board-foot strong { margin-left:auto; color:#ffbd56; font-size:7px; }

.board-turnaround { margin: 0 12px; padding: 8px 0; border-top: 1px solid #29473f; display: flex; align-items: center; gap: 8px; }
.board-turnaround > svg { width: 16px; flex-shrink: 0; color: #60c8ac; }
.board-turnaround strong, .board-turnaround small { display: block; }
.board-turnaround strong { font-size: 8px; font-weight: 500; }
.board-turnaround small { margin-top: 4px; color: #8ea59f; font-size: 7px; }

/* Business workflow */
.workflow-shell { border:1px solid var(--line); background:#fff; box-shadow:var(--shadow); }.workflow-head { min-height:95px; padding:17px 20px; display:flex; align-items:flex-start; justify-content:space-between; border-bottom:1px solid var(--line); }.section-index { display:block; margin-bottom:6px; color:var(--red); font:8px Consolas,monospace; font-weight:700; }.workflow-head h2 { margin:0; font-size:19px; }.workflow-head p { margin:7px 0 0; color:var(--muted); font-size:9px; }.flow-legend { align-self:center; display:flex; gap:16px; color:var(--muted); font-size:8px; }.flow-legend span { display:flex; align-items:center; gap:6px; }.flow-legend i { width:22px; height:2px; background:#526a64; }.flow-legend span:last-child i { background:var(--red); }
.swimlane { min-height:560px; display:grid; grid-template-columns:190px minmax(0,1fr); }.lane-labels { border-right:1px solid var(--line); background:#f6f8f7; }.lane-labels > div { height:130px; padding:0 18px; display:flex; align-items:center; gap:10px; border-bottom:1px solid var(--line); }.lane-labels > div:last-child { border:0; }.lane-labels svg { width:20px; color:var(--red); }.lane-labels strong,.lane-labels small { display:block; }.lane-labels strong { font-size:10px; }.lane-labels small { margin-top:5px; color:var(--muted); font-size:7px; }
.lane-canvas { position:relative; min-width:0; overflow:hidden; }.lane-row { height:130px; position:relative; display:grid; grid-template-columns:repeat(6,1fr); align-items:center; border-bottom:1px solid var(--line-soft); }.lane-row:last-of-type { border:0; }.lane-row:nth-child(even) { background:#fbfcfc; }.flow-card { width:130px; min-height:75px; z-index:2; justify-self:center; grid-column:var(--col); padding:9px 10px; border:1px solid #d8e0dd; border-top:3px solid #516a64; background:#fff; box-shadow:0 4px 12px rgba(28,48,42,.06); }.flow-card > span { float:right; color:#a0aaa7; font:7px Consolas,monospace; }.flow-card > svg { width:16px; color:var(--teal); }.flow-card strong,.flow-card small { display:block; }.flow-card strong { margin-top:5px; font-size:9px; }.flow-card small { margin-top:4px; color:var(--muted); font-size:6px; line-height:1.35; }.flow-card.accent { border-color:#efb5b8; border-top-color:var(--red); background:var(--red-soft); }.flow-card.accent > svg { color:var(--red); }.flow-card.split { border-top-color:var(--teal); }
.flow-lines { position:absolute; inset:0; width:100%; height:520px; z-index:1; pointer-events:none; }.flow-lines path { fill:none; stroke-width:2; marker-end:url(#arrowNormal); }.normal-flow { stroke:#526a64; }.exception-flow,.return-flow { stroke:var(--red); stroke-dasharray:7 6; marker-end:url(#arrowRed)!important; }.exception-node,.fallback-node { position:absolute; z-index:3; padding:9px 11px; display:flex; align-items:center; gap:8px; border:1px solid #efc8a2; background:#fff9ef; }.exception-node { right:18px; top:278px; }.fallback-node { right:18px; bottom:15px; border-color:#efb7ba; background:var(--red-soft); }.exception-node > svg,.fallback-node > svg { width:16px; color:var(--amber); }.fallback-node > svg { color:var(--red); }.exception-node strong,.exception-node small,.fallback-node strong,.fallback-node small { display:block; }.exception-node strong,.fallback-node strong { font-size:8px; }.exception-node small,.fallback-node small { margin-top:3px; color:var(--muted); font-size:6px; }
.workflow-foot { min-height:70px; padding:11px 18px; display:grid; grid-template-columns:1fr 25px 1fr 25px 1fr; align-items:center; gap:8px; border-top:1px solid var(--line); background:#f7f9f8; }.workflow-foot > div { min-width:0; }.workflow-foot span { display:block; color:var(--red); font:7px Consolas,monospace; font-weight:700; }.workflow-foot strong { display:block; margin-top:5px; font-size:8px; line-height:1.45; }.workflow-foot > svg { width:16px; color:#97a49f; }

/* Full-bleed presentation mode for review and document capture */
.presentation-mode { overflow:hidden; background:#10211e; }
.presentation-mode .app-shell { display:block; min-height:100vh; }
.presentation-mode .sidebar, .presentation-mode .topbar { display:none; }
.presentation-mode .main-area { min-height:100vh; }
.presentation-mode .view { display:none !important; }
.presentation-mode #view-bigscreen { height:100vh; padding:0; display:block !important; }
.presentation-mode .command-board { min-height:100vh; border:0; }
.presentation-mode .board-grid { height:calc(100vh - 198px); min-height:0; }
.presentation-mode .board-column, .presentation-mode .board-panel, .presentation-mode .board-map, .presentation-mode .board-map > svg { min-height:0; }
.presentation-mode .board-exit { display:grid; }

@media (max-width: 1180px) {
  .overview-grid { grid-template-columns: minmax(0,1fr) 275px; }
  .bottom-grid { grid-template-columns: 1fr 1fr; }.distance-panel { grid-column: 1 / -1; }
  .phones-stage { gap: 18px; padding-left: 14px; padding-right: 14px; overflow-x: auto; justify-content: flex-start; }
  .fleet-grid { grid-template-columns: 1fr 1fr; }.resource-layout { grid-template-columns: 1fr; }.station-panel { margin-top: 0; }
  .board-grid { grid-template-columns:200px minmax(0,1fr) 200px; }.board-head { grid-template-columns:190px 1fr 190px; }
  .swimlane { grid-template-columns:155px minmax(0,1fr); }.flow-card { width:110px; }
}

@media (max-width: 1050px) and (min-width: 821px) {
  .dispatch-layout { grid-template-columns: 1fr; }
  .dispatch-side { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .app-shell { grid-template-columns: 64px minmax(0,1fr); }.sidebar { padding-left: 8px; padding-right: 8px; }.brand { padding: 0; justify-content: center; }.brand > div:last-child, .nav-item span, .nav-item b, .sidebar-foot { display: none; }.nav-item { grid-template-columns: 1fr; place-items: center; padding: 0; }.nav-item.active { box-shadow: inset 2px 0 var(--red); }
  .topbar { height: 70px; padding: 0 14px; }.topbar h1 { font-size: 17px; }.scenario-select, .simulation-badge, .topbar p { display: none; }.view { padding: 12px; }
  .status-strip > div:nth-child(n+3) { display: none; }.status-strip > div { min-width: 130px; }.kpi-grid { grid-template-columns: 1fr 1fr; }.overview-grid, .dispatch-layout, .alerts-layout { grid-template-columns: 1fr; }.event-panel { display: none; }.bottom-grid { grid-template-columns: 1fr; }.distance-panel { grid-column: auto; }
  .dispatch-map-wrap { grid-template-columns: 1fr; }.route-list { display: none; }.dispatch-side { grid-template-columns: 1fr 1fr; }.stepper { overflow-x: auto; }.stepper > div { flex: 0 0 95px; }
  .filters { overflow-x: auto; }.filters label { min-width: 180px; }.fleet-grid { grid-template-columns: 1fr; }
  #view-bigscreen { overflow-x:auto; }.command-board { min-width:1050px; }.workflow-shell { min-width:1050px; }.view#view-workflow { overflow-x:auto; }
}

@media (max-width: 540px) {
  .app-shell { display: block; }.sidebar, .topbar { display: none; }.view { display: none !important; padding: 0; }.view#view-terminals.active { display: block !important; }.terminal-intro { min-height: 58px; padding: 0 14px; background: #fff; }.terminal-switch { display: none; }.phones-stage { min-height: 100vh; padding: 14px 0 26px; display: block; background: #dfe7e4; }.phone-wrap { width: 100%; }.phone-label { margin: 0 auto; }.phone { margin: 0 auto; }
  .phone-wrap.hidden { display: none; }
}

/* Operational workspace and service forms share the existing palette and spacing. */
.nav-list { min-height: 0; overflow-y: auto; margin-bottom: 18px; flex-shrink: 1; }
.brand, .sidebar-foot { flex-shrink: 0; }
.simulation-badge { color: var(--blue); background: var(--blue-soft); }
.board-kpis small span { display: inline; color: inherit; font: inherit; }
.board-ring { background: conic-gradient(#61d0b2 0 var(--completion, 0%), #263f39 var(--completion, 0%) 100%); }
.progress-summary { display: grid; gap: 13px; padding: 8px 18px 20px; }
.progress-summary > div { display: grid; grid-template-columns: 90px minmax(30px, 1fr) 34px; align-items: center; gap: 12px; font-size: 11px; }
.progress-summary strong { text-align: right; font-size: 13px; }
.progress-summary small { margin-left: 4px; color: var(--muted); font-size: 9px; font-weight: 400; }
.progress-summary progress { width: 100%; height: 6px; border: 0; border-radius: 0; accent-color: var(--blue); }
.progress-summary progress::-webkit-progress-bar { background: var(--line-soft); }
.progress-summary progress::-webkit-progress-value { background: var(--blue); }
.progress-summary .done::-webkit-progress-value { background: var(--teal); }
.progress-summary .held::-webkit-progress-value { background: var(--red); }
.progress-summary .waiting::-webkit-progress-value { background: #87958f; }
.work-queue { padding: 0 16px 12px; }
.work-queue > button { display: grid; grid-template-columns: 18px minmax(0, 1fr) 24px 12px; gap: 8px; align-items: center; width: 100%; min-height: 39px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; text-align: left; font-size: 11px; cursor: pointer; }
.work-queue svg { width: 15px; color: var(--muted); }
.work-queue strong { text-align: right; color: var(--red); }
.work-queue > button:hover { background: var(--canvas); }
.business-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border-block: 1px solid var(--line); margin: 16px 0 20px; }
.business-strip > div { min-width: 0; padding: 20px 22px; border-right: 1px solid var(--line); }
.business-strip > div:last-child { border: 0; }
.business-strip span { display: block; color: var(--muted); font-size: 12px; }
.business-strip strong { display: block; margin-top: 10px; font-size: 27px; font-variant-numeric: tabular-nums; }
.business-strip small { margin-left: 7px; font-size: 12px; font-weight: 400; color: var(--muted); }
.business-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.business-tabs button { min-height: 44px; padding: 0 6px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; cursor: pointer; font-size: 13px; }
.business-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); font-weight: 700; }
.business-tabs b { margin-left: 6px; font-size: 11px; }
#view-orders .data-table-wrap, #view-records .data-table-wrap, #view-analysis .data-table-wrap { background: #fff; }
#view-orders table, #view-records table, #view-analysis table { table-layout: auto; min-width: 720px; }
#view-orders th, #view-records th, #view-analysis th { width: auto; white-space: nowrap; font-size: 11px; }
#view-orders td:first-child, #view-records td:first-child, #view-analysis td:first-child { width: auto; text-align: left; }
#order-batches th:first-child { width: 190px; }
#order-batches td:first-child { white-space: nowrap; }
#view-records table { min-width: 1000px; }
#view-records th:first-child { width: 105px; }
#view-records th:nth-child(2) { width: 90px; }
#view-records th:nth-child(3) { width: 150px; }
#view-records th:nth-child(4) { width: 180px; }
#view-records th:last-child { width: auto; }
#view-analysis th:first-child { width: 180px; }
#view-orders td small, #view-records td small { font-size: 10px; }
.mode-rules { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.mode-rules > strong { margin-right: 6px; }
.mode-rules > button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 11px; }
.mode-rules svg { width: 16px; }
.simple-map { background: #f5f8f7; }
.result-score strong > small { font-size: 12px; font-weight: 400; }
#view-orders td, #view-records td, #view-analysis td { font-size: 12px; line-height: 1.7; }
#view-orders td:first-child { overflow-wrap: anywhere; max-width: 230px; }
#view-records td { white-space: normal; overflow-wrap: anywhere; max-width: 340px; }
#view-orders .request-summary { white-space: normal; overflow-wrap: anywhere; min-width: 190px; max-width: 370px; }
#view-orders .filters, #view-records .filters { padding-inline: 0; }
#view-orders .filters > span { font-size: 12px; color: var(--muted); }
#view-records .filters { justify-content: space-between; }
.archive-footer { display: flex; align-items: center; gap: 10px; padding: 18px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.archive-footer > svg { width: 18px; flex-shrink: 0; color: var(--teal); }
.archive-footer > button { margin-left: auto; white-space: nowrap; }
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; background: #fff; border-block: 1px solid var(--line); margin-bottom: 24px; }
.analysis-grid > section { min-width: 0; }
.analysis-grid .panel-head { padding: 18px; }
.analysis-grid .panel-head > span { font-size: 11px; color: var(--muted); }
.analysis-grid .bar-compare { padding: 16px 18px 32px; }
.analysis-config { margin: 0; padding: 0 18px 18px; }
.analysis-config > div { display: grid; grid-template-columns: 85px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; line-height: 1.5; }
.analysis-config dt { color: var(--muted); }
.analysis-config dd { margin: 0; }
.analysis-note { color: var(--muted); font-size: 12px; line-height: 1.8; }
#business-form { padding: 18px; }
#business-fields { display: grid; gap: 16px; }
#business-fields label { display: grid; gap: 8px; font-size: 13px; }
#business-fields input, #business-fields select, #business-fields textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); padding: 9px 10px; font: inherit; }
#business-fields input[readonly] { background: var(--canvas); }
#business-fields textarea { min-height: 100px; resize: vertical; }
#business-fields .check-field { display: flex; align-items: flex-start; line-height: 1.7; }
#business-fields .check-field input { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-state { margin: 0; padding: 12px; background: var(--canvas); color: var(--muted); font-size: 12px; line-height: 1.8; }
#business-error { font-size: 12px; color: var(--red); min-height: 18px; margin-bottom: 14px; }
#business-form footer { display: flex; justify-content: flex-end; gap: 12px; }
button:disabled { cursor: not-allowed; opacity: .55; }
select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(47,110,159,.28); outline-offset: 2px; }
@media (max-width: 1180px) { .business-strip > div { padding: 18px 14px; } .business-strip strong { font-size: 23px; } }
@media (max-width: 820px) { .analysis-grid { grid-template-columns: 1fr; gap: 0; } .business-strip { grid-template-columns: 1fr 1fr; } .business-strip > div:nth-child(2) { border-right: 0; } .business-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 540px) { #business-form { padding: 16px; } .archive-footer { flex-wrap: wrap; } }

.service-count { margin-left: auto; align-self: center; color: var(--muted); font-size: 12px; }
.service-result { color: var(--teal); overflow-wrap: anywhere; }
.phone-body { overflow-y: auto; }
.station-services { margin: 12px 0; border-block: 1px solid var(--line); padding: 8px 0; }
.station-services > header { min-height: 24px; }
.station-services > header strong { font-size: 10px; }
.station-services > header span { font-size: 10px; color: var(--red); }
#station-service-list { max-height: 145px; overflow-y: auto; }
#station-service-list p { margin: 5px 0; color: var(--muted); font-size: 9px; }
#station-service-list article { padding: 8px 0; border-top: 1px solid var(--line-soft); }
#station-service-list article > strong { display: block; font-size: 9px; }
#station-service-list article > small { display: block; margin-top: 5px; font-size: 9px; line-height: 1.6; overflow-wrap: anywhere; }
#station-service-list article > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 9px; padding-top: 7px; }
#detail-actions { padding: 0 18px 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
#detail-actions[hidden] { display: none; }
#detail-status { margin: 0 18px 14px; color: var(--red); font-size: 12px; line-height: 1.6; }
#detail-status:empty { display: none; }
dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
@media (max-width: 540px) {
  .terminal-intro { display: grid; gap: 10px; padding: 12px 16px; }
  .terminal-intro h2 { font-size: 16px; }
  .terminal-intro p { display: none; }
  .terminal-switch { display: flex; width: 100%; }
  .terminal-switch button { flex: 1; padding: 8px 6px; font-size: 12px; }
  .terminal-switch [data-phone="all"] { display: none; }
  .phone-wrap:not(.hidden) { display: block; }
  .phones-stage { min-height: 0; }
}

@media print {
  .sidebar, .topbar, .board-exit { display:none !important; }
  .app-shell { display:block; }
  .view { padding:0; }
  .panel, .workflow-shell { box-shadow:none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}
