.resource-cockpit { margin: 0 0 26px; border: 1px solid #dce5dd; border-radius: 14px; background: #fff; overflow: hidden; }
.cockpit-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 24px; border-bottom: 1px solid #e7ece6; }
.cockpit-heading h2 { display: flex; align-items: center; gap: 9px; }
.cockpit-heading .icon { width: 19px; height: 19px; color: #587665; }
.cockpit-scope { color: #738276; font-size: 11px; white-space: nowrap; }
.cockpit-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: #e7ece6; }
.cockpit-cell { padding: 20px 24px 16px; min-width: 0; background: #fff; }
.cockpit-cell-heading { display: flex; align-items: center; gap: 8px; color: #56705e; }
.cockpit-cell-heading>.icon { width: 18px; height: 18px; }
.cockpit-cell h3 { margin: 0; color: #2a483b; font-size: 14px; font-weight: 600; }
.cockpit-reading { display: flex; align-items: center; gap: 23px; margin: 16px 0; }
.cockpit-gauge { display: grid; place-items: center; flex: none; position: relative; width: 88px; height: 88px; border-radius: 50%; padding: 0; background: transparent; }
.cockpit-dial { display: block; width: 100%; height: 100%; }
.cockpit-dial circle { fill: none; stroke-width: 6; }
.cockpit-dial-track { stroke: #e8eee8; }
.cockpit-dial-value { stroke: #438b70; stroke-linecap: round; }
.cockpit-gauge-value { display: flex; align-items: baseline; gap: 1px; position: absolute; font: 25px/1 Ops,"Microsoft YaHei",sans-serif; color: #3c6953; font-variant-numeric: tabular-nums; }
.cockpit-gauge-value small { font: 10px/1 "Microsoft YaHei",sans-serif; color: #748a78; }
.is-empty .cockpit-gauge-value { color: #a1ada2; }
.cockpit-counts { min-width: 0; flex: 1; }
.dashboard .cockpit-total { display: flex; align-items: baseline; gap: 6px; min-height: 0; width: 100%; padding: 0 0 7px; border: 0; border-radius: 0; background: transparent; }
.dashboard .cockpit-total .number { color: #203c31; font: 34px/1 Ops,"Microsoft YaHei",sans-serif; margin: 0; font-variant-numeric: tabular-nums; }
.cockpit-unit { font-size: 11px; font-weight: 400; color: #788979; }
.dashboard .cockpit-total .label { font-size: 11px; color: #788979; margin-left: 4px; font-weight: 400; }
.cockpit-total-arrow { margin-left: auto; font-size: 20px; color: #9ead9e; }
.cockpit-available { display: flex; align-items: center; gap: 6px; padding: 6px 0 0; background: transparent; color: #4a725a; font-size: 12px; font-weight: 400; text-align: left; }
.cockpit-available strong { font-weight: 600; }
.cockpit-dot { width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor; }
.cockpit-states { display: flex; flex-wrap: wrap; gap: 8px 13px; padding-top: 12px; border-top: 1px solid #eef2ec; min-height: 35px; align-content: flex-start; }
.cockpit-state { display: flex; align-items: center; gap: 5px; background: transparent; min-height: 28px; padding: 2px 0; border-radius: 2px; font-size: 11px; font-weight: 400; color: #788376; white-space: nowrap; }
.cockpit-state strong { margin-left: 2px; font-size: 12px; font-variant-numeric: tabular-nums; }
.cockpit-state.is-danger { color: #bd593d; }
.cockpit-state.is-warn { color: #a07831; }
.cockpit-state.is-muted { color: #6e7d71; }
.cockpit-state.zero { color: #95a294; }
.resource-cockpit button:hover { filter: none; background: #f5f8f1; }
.resource-cockpit button:focus-visible { outline: 2px solid #cb683e; outline-offset: 3px; }
.dashboard-flight-only .dashboard-flight-row { margin-top: 0; }
@media(max-width:1200px) { .cockpit-cell { padding: 18px; } .cockpit-reading { gap: 15px; } .cockpit-gauge { width: 76px; height: 76px; } }
@media(max-width:1050px) { .cockpit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) {
 .cockpit-heading { padding: 17px 16px; }
 .cockpit-cell { padding: 16px 12px 12px; }
 .cockpit-reading { flex-direction: column; gap: 12px; margin: 13px 0; align-items: stretch; }
 .cockpit-gauge { width: 78px; height: 78px; align-self: center; }
 .cockpit-gauge-value { font-size: 24px; }
 .dashboard .cockpit-total .number { font-size: 29px; }
 .dashboard .cockpit-total .label { display: none; }
 .cockpit-states { gap: 8px 10px; }
 .cockpit-state { font-size: 10px; }
 .cockpit-state .cockpit-dot { display: none; }
}
