:root {
  color-scheme: dark;
  --bg: #071715;
  --panel: rgba(8, 42, 39, .82);
  --panel-strong: rgba(12, 67, 61, .94);
  --line: rgba(88, 224, 211, .28);
  --line-strong: rgba(95, 241, 226, .68);
  --text: #ecfffb;
  --muted: #94c7bf;
  --cyan: #35e3d4;
  --green: #88f28d;
  --amber: #ffc857;
  --orange: #ff8a5b;
  --red: #ff5d73;
  --blue: #57a8ff;
  --ink: #06110f;
  --shadow: 0 18px 46px rgba(0, 0, 0, .34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .03) 25%, transparent 25%) 0 0 / 34px 34px,
    linear-gradient(225deg, rgba(255, 255, 255, .025) 25%, transparent 25%) 0 0 / 34px 34px,
    linear-gradient(145deg, #061412 0%, #082623 48%, #141c17 100%);
  color: var(--text);
  font-family: "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.screen {
  width: min(1920px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 22px 20px;
  position: relative;
}

.topbar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  margin-bottom: 12px;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.top-left,
.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.top-right {
  justify-content: flex-end;
}

.title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
  min-width: 560px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 0 16px rgba(53, 227, 212, .34));
}

h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.12;
  font-weight: 750;
  text-shadow: 0 0 24px rgba(53, 227, 212, .34);
}

.subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: rgba(53, 227, 212, .08);
  border-radius: 999px;
  white-space: nowrap;
}

.screen-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.app-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.tab-btn,
.mode-btn,
.command-btn,
.primary-btn,
.table-action {
  border: 1px solid rgba(88, 224, 211, .24);
  background: rgba(6, 28, 27, .78);
  color: var(--text);
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 12px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.tab-btn:hover,
.mode-btn:hover,
.command-btn:hover,
.primary-btn:hover,
.table-action:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.tab-btn.active,
.mode-btn.active,
.command-btn.active {
  color: var(--ink);
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-color: transparent;
  font-weight: 800;
}

.primary-btn {
  color: var(--ink);
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  border: 0;
  font-weight: 800;
}

.command-btn.danger {
  border-color: rgba(255, 93, 115, .44);
  color: #ffd6dc;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.layout {
  display: grid;
  grid-template-columns: minmax(310px, 24%) 1fr minmax(310px, 24%);
  gap: 16px;
}

.column {
  display: grid;
  gap: 14px;
  align-content: start;
}

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(10, 57, 53, .86), rgba(6, 30, 28, .74));
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 0 34px rgba(53, 227, 212, .035);
  border-radius: 8px;
  padding: 14px;
  overflow: hidden;
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  pointer-events: none;
}

.panel::before {
  left: 0;
  top: 0;
  border-left: 2px solid var(--cyan);
  border-top: 2px solid var(--cyan);
}

.panel::after {
  right: 0;
  bottom: 0;
  border-right: 2px solid rgba(255, 200, 87, .8);
  border-bottom: 2px solid rgba(255, 200, 87, .8);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 700;
}

.panel-title small {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}

.kpi-grid,
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-grid .command-btn {
  min-height: 44px;
}

.kpi {
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(78, 226, 218, .18);
  border-radius: 6px;
  background: rgba(1, 19, 18, .38);
}

.kpi .label {
  color: var(--muted);
  font-size: 13px;
}

.kpi .value {
  margin-top: 7px;
  font-family: "DIN Alternate", "Arial Narrow", sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
}

.unit {
  margin-left: 4px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.status-ok {
  color: var(--green);
}

.status-out {
  color: var(--amber);
}

.status-stock {
  color: var(--blue);
}

.status-risk,
.status-repair {
  color: var(--red);
}

.bar-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(88px, 150px) 1fr minmax(68px, auto);
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--text);
}

.track {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .06);
}

.fill {
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  box-shadow: 0 0 14px rgba(53, 227, 212, .42);
}

.money {
  color: var(--amber);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.timeline {
  display: grid;
  gap: 10px;
}

.event {
  display: grid;
  grid-template-columns: minmax(72px, 100px) 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(78, 226, 218, .14);
  background: rgba(255, 255, 255, .035);
  border-radius: 6px;
  font-size: 13px;
}

.event span:first-child {
  color: var(--muted);
}

.event strong {
  font-size: 13px;
  font-weight: 700;
}

.tag {
  min-width: 44px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--cyan);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.tag.warn {
  background: var(--amber);
}

.center {
  display: grid;
  gap: 14px;
  align-content: start;
}

.overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hero {
  min-height: 438px;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 280px;
  gap: 18px;
  align-items: center;
}

.radar-wrap {
  min-height: 394px;
  position: relative;
  display: grid;
  place-items: center;
}

.radar {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(53, 227, 212, .35);
  background:
    repeating-radial-gradient(circle, rgba(53, 227, 212, .18) 0 1px, transparent 1px 42px),
    linear-gradient(90deg, transparent 49.8%, rgba(53, 227, 212, .28) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(53, 227, 212, .28) 50%, transparent 50.2%);
  box-shadow: inset 0 0 40px rgba(53, 227, 212, .08), 0 0 34px rgba(53, 227, 212, .13);
}

.sweep {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, rgba(53, 227, 212, .34), transparent 62deg);
  animation: sweep 6s linear infinite;
  mask-image: radial-gradient(circle, transparent 0 28%, #000 29% 100%);
}

.core-number {
  position: absolute;
  text-align: center;
}

.core-number .label {
  color: var(--muted);
  font-size: 15px;
}

.core-number .num {
  margin-top: 6px;
  font-size: 66px;
  font-weight: 900;
  font-family: "DIN Alternate", "Arial Narrow", sans-serif;
  color: #fff;
  text-shadow: 0 0 28px rgba(53, 227, 212, .44);
}

.money-core {
  margin-top: 6px;
  color: var(--amber);
  font-size: 14px;
}

.floating-status {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.status-chip {
  position: absolute;
  min-width: 84px;
  padding: 8px 10px;
  border: 1px solid rgba(78, 226, 218, .22);
  border-radius: 999px;
  background: rgba(1, 19, 18, .72);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.status-chip strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 18px;
}

.status-chip:nth-child(1) { left: 9%; top: 16%; }
.status-chip:nth-child(2) { right: 10%; top: 18%; }
.status-chip:nth-child(3) { left: 8%; bottom: 19%; }
.status-chip:nth-child(4) { right: 10%; bottom: 18%; }
.status-chip:nth-child(5) { left: 43%; top: 5%; }
.status-chip:nth-child(6) { left: 43%; bottom: 4%; }

.side-stack {
  display: grid;
  gap: 12px;
}

.mini-card {
  border: 1px solid rgba(78, 226, 218, .16);
  border-radius: 7px;
  background: rgba(255, 255, 255, .04);
  padding: 12px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.row + .row,
.mini-card .track {
  margin-top: 9px;
}

.big {
  color: var(--amber);
  font-size: 26px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.region {
  min-height: 76px;
  padding: 10px;
  border: 1px solid rgba(78, 226, 218, .14);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(53, 227, 212, .12) var(--w), transparent var(--w)),
    rgba(255, 255, 255, .035);
}

.region-name {
  color: var(--muted);
  font-size: 12px;
}

.region-val {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
  font-family: "DIN Alternate", "Arial Narrow", sans-serif;
}

.legend {
  display: grid;
  gap: 9px;
}

.legend-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.legend-item strong {
  color: var(--text);
  font-weight: 700;
}

.swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}

.donut-area {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
}

.donut {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) 0 100%);
  position: relative;
  box-shadow: 0 0 28px rgba(53, 227, 212, .18);
}

.donut::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: #08221f;
  border: 1px solid rgba(255, 255, 255, .08);
}

.warning-list {
  display: grid;
  gap: 10px;
}

.warning {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: rgba(255, 255, 255, .035);
}

.level {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 24px;
  border-radius: 999px;
  background: rgba(87, 168, 255, .18);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.level.high {
  background: rgba(255, 93, 115, .18);
  color: var(--red);
}

.level.mid {
  background: rgba(255, 200, 87, .18);
  color: var(--amber);
}

.warn-title {
  font-size: 13px;
  font-weight: 700;
}

.warn-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(480px, 1.46fr) minmax(320px, .92fr);
  gap: 16px;
  margin-top: 14px;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(520px, 1.1fr) minmax(420px, .9fr);
  gap: 16px;
}

.command-panel {
  min-height: 560px;
}

.operation-modes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.stack-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(88, 224, 211, .22);
  border-radius: 8px;
  color: var(--text);
  background: rgba(2, 18, 17, .76);
  padding: 10px 11px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 227, 212, .12);
}

.wide {
  grid-column: span 2;
}

.form-side {
  display: grid;
  gap: 10px;
}

.stock-preview {
  min-height: 82px;
  border: 1px solid rgba(88, 224, 211, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.stock-preview strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.stock-preview span {
  display: block;
}

.is-hidden {
  display: none;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(160px, .7fr) minmax(160px, .7fr) minmax(260px, 1.2fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.search-field {
  min-width: 280px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid rgba(78, 226, 218, .14);
  border-radius: 6px;
}

.large-table {
  max-height: calc(100vh - 250px);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 10px 11px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 255, 255, .05);
  position: sticky;
  top: 0;
  z-index: 1;
}

td {
  color: var(--text);
}

.scroll-table {
  max-height: 246px;
  overflow: hidden;
}

.scroll-table tbody {
  animation: tableScroll 20s linear infinite;
}

.table-action {
  min-height: 30px;
  padding: 4px 8px;
  margin-right: 6px;
  font-size: 12px;
}

.masters-grid {
  display: grid;
  grid-template-columns: minmax(320px, .7fr) minmax(320px, .7fr) minmax(520px, 1.4fr);
  gap: 16px;
}

.master-table {
  min-width: 0;
}

.split-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.empty {
  color: var(--muted);
  padding: 12px;
  text-align: center;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 48px));
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(88, 224, 211, .36);
  background: rgba(5, 29, 27, .96);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  border-color: rgba(255, 93, 115, .6);
  color: #ffd6dc;
}

.demo-note {
  text-align: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tableScroll {
  0%, 15% {
    transform: translateY(0);
  }
  85%, 100% {
    transform: translateY(-42%);
  }
}

@media (max-width: 1440px) {
  h1 {
    font-size: 31px;
  }

  .topbar,
  .layout,
  .footer-grid,
  .workbench,
  .masters-grid {
    grid-template-columns: 1fr;
  }

  .title {
    min-width: 0;
    order: -1;
  }

  .top-left,
  .top-right {
    justify-content: center;
  }
}

@media (max-width: 920px) {
  .screen {
    padding: 14px;
  }

  .title {
    flex-direction: column;
    text-align: center;
  }

  h1 {
    font-size: 25px;
  }

  .app-tabs,
  .operation-modes,
  .overview,
  .split,
  .hero,
  .donut-area,
  .form-grid,
  .toolbar,
  .split-table {
    grid-template-columns: 1fr;
  }

  .region-grid,
  .kpi-grid,
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wide {
    grid-column: span 1;
  }

  .radar-wrap {
    min-height: 340px;
  }

  .radar,
  .sweep {
    width: 280px;
    height: 280px;
  }

  .core-number .num {
    font-size: 48px;
  }

  .status-chip {
    display: none;
  }

  .bar-row,
  .event {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 9px;
  }
}

@media (max-width: 560px) {
  .region-grid,
  .kpi-grid,
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }
}

/* Comprehensive command screen */
body {
  background:
    linear-gradient(90deg, rgba(55, 150, 188, .045) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(rgba(55, 150, 188, .045) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(145deg, #050d17 0%, #071b22 50%, #0d211e 100%);
  letter-spacing: 0;
}

.dashboard-screen {
  width: min(1920px, 100%);
  min-height: 100dvh;
  padding: 10px 14px 12px;
}

.command-topbar {
  display: grid;
  grid-template-columns: minmax(390px, 1.25fr) minmax(300px, .9fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 50px;
  margin-bottom: 8px;
  padding: 0 4px 7px;
  border-bottom: 1px solid rgba(88, 224, 211, .24);
}

.command-topbar::after {
  left: 27%;
  right: 27%;
}

.command-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.command-brand .brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.command-brand h1 {
  overflow: hidden;
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-brand .subtitle {
  margin-top: 2px;
  font-size: 11px;
}

.command-meta,
.command-actions {
  flex-wrap: nowrap;
  gap: 7px;
}

.command-meta .pill {
  min-height: 27px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
}

.command-actions {
  justify-content: flex-end;
  font-size: 12px;
}

.clock {
  color: #c5e5e1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.command-actions .screen-link {
  min-height: 29px;
  padding: 5px 10px;
  border: 1px solid rgba(88, 224, 211, .54);
  border-radius: 4px;
  background: rgba(26, 114, 117, .35);
  color: #edfffc;
  font-size: 12px;
  font-weight: 700;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.summary-card {
  position: relative;
  min-height: 72px;
  overflow: hidden;
  padding: 8px 10px 7px 12px;
  border: 1px solid rgba(91, 199, 220, .2);
  border-left: 3px solid var(--cyan);
  border-radius: 5px;
  background: linear-gradient(110deg, rgba(13, 52, 64, .92), rgba(7, 28, 34, .82));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.summary-card:nth-child(2),
.summary-card:nth-child(6) {
  border-left-color: var(--amber);
}

.summary-card:nth-child(4) {
  border-left-color: var(--red);
}

.summary-card .label {
  font-size: 11px;
}

.summary-card .value {
  overflow: hidden;
  margin-top: 2px;
  font-size: 24px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-card .unit {
  font-size: 11px;
}

.summary-card .note {
  overflow: hidden;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-grid {
  display: grid;
  grid-template-columns: minmax(210px, .7fr) minmax(420px, 1.48fr) minmax(250px, .84fr);
  gap: 8px;
  height: clamp(360px, calc(100dvh - 335px), 500px);
}

.command-column,
.command-center {
  display: grid;
  min-width: 0;
  min-height: 0;
  gap: 8px;
}

.command-column {
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.command-center {
  grid-template-rows: minmax(0, 1fr) 112px;
}

.command-right {
  grid-template-rows: 116px minmax(116px, .95fr) minmax(112px, .9fr);
}

.dashboard-screen .panel {
  min-width: 0;
  min-height: 0;
  padding: 10px;
  border-color: rgba(74, 192, 203, .24);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(10, 48, 55, .88), rgba(5, 25, 31, .82));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2), inset 0 0 24px rgba(53, 227, 212, .025);
}

.dashboard-screen .panel::before,
.dashboard-screen .panel::after {
  width: 18px;
  height: 18px;
  border-width: 1px;
}

.dashboard-screen .panel-title {
  min-height: 18px;
  margin-bottom: 7px;
  font-size: 14px;
  line-height: 1.2;
}

.dashboard-screen .panel-title small {
  overflow: hidden;
  max-width: 50%;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-panel .bar-list {
  gap: 4px;
}

.compact-panel .bar-row,
.efficiency-panel .bar-row {
  grid-template-columns: minmax(62px, 1fr) minmax(50px, 1.1fr) minmax(55px, auto);
  gap: 5px;
  min-height: 16px;
  font-size: 10px;
}

.compact-panel .bar-row > span:first-child,
.efficiency-panel .bar-row > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-panel .track,
.efficiency-panel .track {
  height: 6px;
}

.compact-panel .money,
.efficiency-panel .money {
  font-size: 9px;
}

.command-core-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.command-core {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, .62fr);
  gap: 8px;
  min-height: 0;
  padding: 0 2px;
  align-items: center;
}

.command-core .radar-wrap {
  min-height: 0;
  height: 100%;
}

.command-core .radar,
.command-core .sweep {
  width: min(178px, 75%);
  height: auto;
  aspect-ratio: 1;
}

.command-core .core-number {
  width: min(265px, 82%);
}

.command-core .core-number .label {
  font-size: 11px;
}

.command-core .core-number .num {
  margin-top: 2px;
  font-size: 42px;
  line-height: 1;
}

.command-core .money-core {
  overflow: hidden;
  margin-top: 5px;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-core .floating-status {
  display: none;
}

.command-core .side-stack {
  gap: 5px;
}

.command-core .mini-card {
  padding: 6px 7px;
  border-radius: 4px;
}

.command-core .row {
  gap: 6px;
  font-size: 10px;
}

.command-core .row + .row,
.command-core .mini-card .track {
  margin-top: 5px;
}

.command-core .track {
  height: 6px;
}

.command-core .big {
  font-size: 18px;
}

.operation-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}

.flow-kpi {
  min-height: 47px;
  padding: 5px 7px;
  border-radius: 4px;
}

.flow-kpi .label {
  font-size: 9px;
}

.flow-kpi .value {
  overflow: hidden;
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-kpi .unit {
  font-size: 9px;
}

.warehouse-overview-panel .region-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.warehouse-overview-panel .region {
  min-height: 31px;
  padding: 5px 7px;
  border-radius: 4px;
}

.warehouse-overview-panel .region-name {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warehouse-overview-panel .region-val {
  margin-top: 1px;
  font-size: 15px;
  line-height: 1.1;
}

.warehouse-overview-panel .note {
  overflow: hidden;
  margin-top: 1px;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-panel .donut-area {
  grid-template-columns: 66px 1fr;
  gap: 9px;
}

.operation-panel .donut {
  width: 66px;
  height: 66px;
}

.operation-panel .donut::after {
  inset: 14px;
}

.operation-panel .legend {
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
}

.operation-panel .legend-item {
  gap: 4px;
  font-size: 9px;
}

.operation-panel .swatch {
  width: 6px;
  height: 6px;
}

.alert-panel .warning-list {
  gap: 5px;
}

.alert-panel .warning {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 6px;
  padding: 5px 6px;
  border-radius: 4px;
}

.alert-panel .level {
  width: 28px;
  height: 20px;
  font-size: 9px;
}

.alert-panel .warn-title {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-panel .warn-meta {
  overflow: hidden;
  margin-top: 2px;
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-panel .timeline,
.todo-panel .timeline {
  gap: 5px;
}

.flow-panel .event,
.todo-panel .event {
  grid-template-columns: minmax(48px, 66px) minmax(0, 1fr) auto;
  gap: 5px;
  min-height: 25px;
  padding: 4px 5px;
  border-radius: 4px;
  font-size: 9px;
}

.flow-panel .event strong,
.todo-panel .event strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-panel .tag,
.todo-panel .tag {
  min-width: 32px;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 9px;
}

.command-bottom {
  display: grid;
  grid-template-columns: minmax(440px, 1.55fr) minmax(220px, .7fr) minmax(230px, .75fr);
  gap: 8px;
  height: clamp(148px, 18dvh, 190px);
  margin-top: 8px;
}

.inventory-detail-panel,
.todo-panel,
.efficiency-panel {
  min-height: 0;
}

.dashboard-screen .table-wrap {
  border-radius: 4px;
}

.dashboard-screen .scroll-table {
  max-height: calc(100% - 25px);
  overflow: auto;
}

.dashboard-screen .scroll-table tbody {
  animation: none;
}

.dashboard-screen table {
  font-size: 10px;
}

.dashboard-screen th,
.dashboard-screen td {
  padding: 5px 7px;
}

.efficiency-panel .bar-list {
  gap: 8px;
}

.efficiency-panel .bar-row {
  grid-template-columns: minmax(72px, 1fr) minmax(45px, .85fr) 34px;
}

.dashboard-screen .demo-note {
  margin-top: 6px;
  color: #6f9f9d;
  font-size: 9px;
  line-height: 1.25;
}

@media (min-width: 1600px) {
  .command-brand h1 {
    font-size: 27px;
  }

  .summary-card .value {
    font-size: 27px;
  }

  .compact-panel .bar-row,
  .efficiency-panel .bar-row {
    font-size: 11px;
  }

  .command-core .radar,
  .command-core .sweep {
    width: min(220px, 78%);
  }

  .command-core .core-number .num {
    font-size: 50px;
  }
}

@media (max-width: 1100px) {
  .command-topbar {
    grid-template-columns: minmax(340px, 1fr) auto;
  }

  .command-meta {
    display: none;
  }

  .summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .command-grid {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .command-center {
    grid-column: 1 / -1;
    grid-row: 1;
    grid-template-rows: auto auto;
  }

  .command-column {
    grid-template-rows: repeat(3, minmax(116px, auto));
  }

  .command-right {
    grid-template-rows: repeat(3, minmax(116px, auto));
  }

  .command-core {
    min-height: 200px;
  }

  .command-bottom {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .inventory-detail-panel {
    grid-column: 1 / -1;
    min-height: 190px;
  }

  .todo-panel,
  .efficiency-panel {
    min-height: 150px;
  }
}

@media (max-width: 720px) {
  .dashboard-screen {
    padding: 8px;
  }

  .command-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 48px;
  }

  .command-brand .brand-mark {
    width: 32px;
    height: 32px;
  }

  .command-brand h1 {
    font-size: 16px;
    white-space: normal;
  }

  .command-brand .subtitle,
  .command-actions .clock {
    display: none;
  }

  .command-actions .screen-link {
    min-height: 30px;
    padding: 4px 7px;
    font-size: 10px;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .summary-card {
    min-height: 68px;
  }

  .summary-card .value {
    font-size: 22px;
  }

  .command-grid,
  .command-bottom {
    grid-template-columns: minmax(0, 1fr);
  }

  .command-center,
  .inventory-detail-panel {
    grid-column: auto;
  }

  .command-center {
    grid-row: auto;
  }

  .command-left {
    order: 2;
  }

  .command-center {
    order: 1;
  }

  .command-right {
    order: 3;
  }

  .command-core {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .command-core .radar-wrap {
    min-height: 210px;
  }

  .command-core .radar,
  .command-core .sweep {
    width: 190px;
  }

  .operation-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .warehouse-overview-panel .region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-column {
    grid-template-rows: none;
  }

  .compact-panel {
    min-height: 130px;
  }

  .flow-panel .event,
  .todo-panel .event {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .inventory-detail-panel,
  .todo-panel,
  .efficiency-panel {
    min-height: 170px;
  }
}
