:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-strong: #eef3fb;
  --text: #1d2129;
  --muted: #6b7785;
  --line: #e5e6eb;
  --primary: #165dff;
  --primary-dark: #0e42d2;
  --primary-soft: #e8f0ff;
  --accent: #ff7d00;
  --accent-soft: #fff3e4;
  --blue: #165dff;
  --blue-soft: #e8f0ff;
  --danger: #f53f3f;
  --danger-soft: #fff0f0;
  --success: #00b42a;
  --success-soft: #e8ffea;
  --shadow: 0 18px 48px rgba(29, 33, 41, 0.1);
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(22, 93, 255, 0.07), transparent 34%),
    linear-gradient(225deg, rgba(0, 180, 42, 0.05), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
}

body.dashboard-screen {
  background:
    radial-gradient(circle at 50% 8%, rgba(20, 199, 217, 0.2), transparent 34%),
    radial-gradient(circle at 14% 84%, rgba(18, 121, 142, 0.2), transparent 30%),
    linear-gradient(180deg, #092734, #03151C 72%);
  overflow: hidden;
}

.login-screen {
  align-items: center;
  background: #061324;
  display: grid;
  inset: 0;
  justify-content: center;
  overflow: hidden;
  position: fixed;
  z-index: 50;
}

.login-screen.hidden {
  animation: loginFade 0.45s ease forwards;
  pointer-events: none;
}

.login-stage {
  inset: 0;
  position: absolute;
}

.login-intro-video {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 1;
  position: absolute;
  transition: opacity 0.55s ease, transform 0.75s ease;
  width: 100%;
}

.login-video-shade {
  background:
    radial-gradient(circle at 50% 45%, rgba(70, 188, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(1, 7, 20, 0.18), rgba(1, 7, 20, 0.72));
  inset: 0;
  position: absolute;
}

.login-intro-copy {
  color: #eaf9ff;
  left: 50%;
  position: absolute;
  text-align: center;
  top: 62%;
  transform: translate(-50%, -50%);
  transition: opacity 0.38s ease, transform 0.45s ease;
  width: min(760px, calc(100vw - 40px));
}

.login-intro-copy p,
.login-intro-copy span {
  color: #9bdaf1;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  margin: 0;
}

.login-intro-copy h2 {
  font-size: clamp(34px, 5vw, 68px);
  letter-spacing: 8px;
  margin: 16px 0;
  text-shadow: 0 0 22px rgba(96, 210, 255, 0.8);
}

.skip-intro-button {
  background: rgba(5, 25, 58, 0.74);
  border: 1px solid rgba(126, 226, 255, 0.36);
  border-radius: 999px;
  color: #dff7ff;
  font-size: 13px;
  font-weight: 900;
  min-height: 34px;
  padding: 0 16px;
  position: absolute;
  right: 24px;
  top: 22px;
  z-index: 2;
}

.login-card {
  background: rgba(7, 29, 67, 0.86);
  border: 1px solid rgba(108, 212, 255, 0.34);
  border-radius: 8px;
  box-shadow: 0 0 42px rgba(51, 165, 255, 0.28);
  color: #e9f9ff;
  display: grid;
  gap: 14px;
  opacity: 0;
  padding: 28px;
  pointer-events: none;
  position: relative;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
  width: min(390px, calc(100vw - 36px));
  z-index: 1;
}

.login-screen.intro-complete .login-intro-video {
  opacity: 0.28;
  transform: scale(1.04);
}

.login-screen.intro-complete .login-intro-copy,
.login-screen.intro-complete .skip-intro-button {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -42%);
}

.login-screen.intro-complete .login-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.login-card h2 {
  font-size: 28px;
  letter-spacing: 2px;
  margin: 0 0 6px;
}

.login-card label {
  display: grid;
  gap: 7px;
}

.login-option-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: -4px;
}

.login-card .login-password-toggle {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-self: start;
}

.login-card .login-password-toggle input {
  accent-color: #2f88ff;
  cursor: pointer;
  height: 16px;
  margin: 0;
  width: 16px;
}

.login-card .login-password-toggle span {
  color: rgba(233, 249, 255, 0.78);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.login-card span,
.login-hint {
  color: #9bdaf1;
  font-size: 13px;
  font-weight: 800;
}

.login-hint {
  margin: 0;
  text-align: center;
}

.login-error {
  background: rgba(255, 77, 79, 0.12);
  border: 1px solid rgba(255, 77, 79, 0.34);
  border-radius: 8px;
  color: #ffd5d5;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
  margin: -2px 0 0;
  padding: 9px 11px;
  text-align: center;
}

@keyframes loginFade {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

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

button {
  cursor: pointer;
}

[hidden],
.nav-item[hidden],
.bigscreen-footer button[hidden] {
  display: none !important;
}

table {
  background: #fff;
  width: 100%;
  border-collapse: collapse;
}

tbody tr:nth-child(even) {
  background: #f7f9fc;
}

tbody tr {
  transition: background 0.18s ease, transform 0.18s ease;
}

tbody tr:hover {
  background: #eef4ff;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #59665f;
  font-size: 13px;
  font-weight: 700;
  background: #f8faf8;
  position: sticky;
  top: 0;
  z-index: 1;
}

td {
  font-size: 14px;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #18251f;
  color: #f8fbf8;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, #2fb579, #d19437);
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-size: 22px;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.brand h1 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}

.brand p {
  color: #b6c7bd;
  font-size: 12px;
  margin: 4px 0 0;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #d8e5dc;
  display: flex;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-dot {
  background: #7fbfa5;
  border-radius: 99px;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.nav-item.active .nav-dot {
  background: #f0b45d;
}

.main-content {
  min-width: 0;
  padding: 24px;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.topbar h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 4px 0 0;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.topbar-actions,
.form-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.ghost-button,
.danger-button,
.link-button,
.file-button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  text-decoration: none;
}

.primary-button {
  background: var(--primary);
  color: #fff;
}

.primary-button:hover {
  background: var(--primary-dark);
}

.ghost-button,
.file-button {
  background: var(--surface-strong);
  color: var(--text);
}

.ghost-button:hover,
.file-button:hover {
  background: #e5ece7;
}

.danger-button {
  background: var(--danger);
  color: #fff;
}

.link-button {
  background: transparent;
  color: var(--primary);
  min-height: 34px;
  padding: 0 8px;
}

.compact {
  min-height: 34px;
  padding: 0 12px;
}

.view {
  display: none;
  opacity: 0;
  transform: translateY(6px);
}

.view.active {
  animation: viewEnter 0.22s ease forwards;
  display: block;
}

@keyframes viewEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bigscreen-topbar,
.bigscreen-footer {
  display: none;
}

body.dashboard-screen .app-shell {
  display: block;
  min-height: 100vh;
}

body.dashboard-screen .sidebar,
body.dashboard-screen .topbar {
  display: none;
}

body.dashboard-screen .main-content {
  background:
    radial-gradient(circle at 50% 8%, rgba(42, 169, 255, 0.32), transparent 26%),
    linear-gradient(180deg, #061936, #031026);
  min-height: 100vh;
  padding: 0;
}

body.dashboard-screen #dashboardView.active {
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr) 46px;
  height: 100vh;
  overflow: hidden;
  padding: 6px;
}

body.dashboard-screen .dashboard-support-grid {
  display: none;
}

body.dashboard-screen .bigscreen-topbar {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(15, 80, 153, 0.12), rgba(27, 134, 244, 0.38), rgba(15, 80, 153, 0.12));
  border: 1px solid rgba(92, 202, 255, 0.28);
  border-bottom-color: rgba(92, 202, 255, 0.12);
  border-radius: 8px 8px 0 0;
  box-shadow: inset 0 -18px 28px rgba(22, 116, 222, 0.18);
  color: #d8f5ff;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  min-height: 48px;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

body.dashboard-screen .bigscreen-topbar::before,
body.dashboard-screen .bigscreen-topbar::after {
  background: linear-gradient(90deg, transparent, rgba(89, 217, 255, 0.86), transparent);
  content: "";
  height: 1px;
  position: absolute;
  top: 7px;
  width: 34%;
}

body.dashboard-screen .bigscreen-topbar::before {
  left: 4%;
}

body.dashboard-screen .bigscreen-topbar::after {
  right: 4%;
}

.bigscreen-topbar h2 {
  color: #f4fbff;
  font-size: 29px;
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 1;
  margin: 0;
  text-shadow: 0 0 12px rgba(92, 202, 255, 0.78), 0 0 24px rgba(92, 202, 255, 0.4);
}

.screen-meta,
.screen-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.screen-meta {
  font-size: 11px;
  font-weight: 800;
}

.screen-actions {
  justify-content: flex-end;
}

.screen-actions button {
  background: rgba(9, 38, 85, 0.72);
  border: 1px solid rgba(102, 211, 255, 0.2);
  border-radius: 4px;
  color: #beeaff;
  font-size: 11px;
  font-weight: 900;
  min-height: 25px;
  padding: 0 9px;
}

body.dashboard-screen .bigscreen-footer {
  align-items: center;
  background: linear-gradient(180deg, rgba(7, 33, 74, 0.96), rgba(4, 18, 42, 0.98));
  border: 1px solid rgba(92, 202, 255, 0.24);
  border-radius: 0 0 8px 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 46px;
  padding: 5px 8px;
}

.bigscreen-footer button {
  background: rgba(10, 43, 95, 0.66);
  border: 1px solid rgba(92, 202, 255, 0.14);
  border-radius: 4px;
  color: #98cce2;
  font-size: 13px;
  font-weight: 900;
  min-height: 34px;
}

.bigscreen-footer button.active,
.bigscreen-footer button:hover {
  background: linear-gradient(135deg, rgba(27, 148, 255, 0.92), rgba(7, 57, 125, 0.92));
  border-color: rgba(121, 226, 255, 0.68);
  color: #fff;
  box-shadow: 0 0 18px rgba(72, 194, 255, 0.38);
}

.metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  margin-bottom: 18px;
}

.metric-scope-toggle {
  background: #f2f5fb;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
}

.metric-scope-toggle button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #4e5969;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  min-height: 30px;
}

.metric-scope-toggle button.active {
  background: #fff;
  box-shadow: 0 6px 16px rgba(22, 93, 255, 0.12);
  color: var(--primary);
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 112px;
  padding: 16px;
}

.metric-card.metric-orange {
  border-left-color: var(--accent);
}

.metric-card.metric-green {
  border-left-color: var(--success);
}

.metric-card.metric-red {
  border-left-color: var(--danger);
}

.metric-card strong {
  display: block;
  font-size: 25px;
  line-height: 1.25;
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-card em {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  margin-top: 8px;
}

.command-dashboard {
  background:
    linear-gradient(180deg, rgba(29, 130, 206, 0.18), rgba(6, 17, 38, 0)),
    linear-gradient(135deg, #071a3a, #0b2554 44%, #071421);
  border: 1px solid rgba(79, 193, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(7, 20, 33, 0.24);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(270px, 0.72fr) minmax(430px, 1.42fr) minmax(285px, 0.78fr);
  margin-bottom: 18px;
  overflow: hidden;
  padding: 12px;
  position: relative;
}

body.dashboard-screen .command-dashboard {
  border-radius: 0;
  border-top: 0;
  border-bottom: 0;
  box-shadow: inset 0 0 60px rgba(34, 143, 255, 0.16);
  gap: 8px;
  grid-template-columns: minmax(232px, 0.74fr) minmax(520px, 1.82fr) minmax(250px, 0.82fr);
  margin: 0;
  min-height: 0;
  overflow: hidden;
  padding: 8px;
}

.command-dashboard::before {
  background:
    linear-gradient(90deg, rgba(81, 214, 255, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(81, 214, 255, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  position: absolute;
}

.cockpit-column,
.cockpit-map-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

body.dashboard-screen .cockpit-column {
  align-content: stretch;
  gap: 8px;
  grid-auto-rows: minmax(0, auto);
  min-height: 0;
  overflow: hidden;
}

.cockpit-panel {
  background: rgba(8, 31, 71, 0.78);
  border: 1px solid rgba(75, 191, 255, 0.24);
  box-shadow: inset 0 0 28px rgba(46, 161, 255, 0.08), 0 16px 38px rgba(2, 10, 22, 0.22);
  color: #eaf7ff;
}

body.dashboard-screen .cockpit-panel {
  border-radius: 4px;
  min-height: 0;
  overflow: hidden;
  padding: 9px;
}

.cockpit-panel .eyebrow,
.cockpit-panel .muted,
.cockpit-panel .small {
  color: #80bdd6;
}

.cockpit-panel .section-heading {
  margin-bottom: 12px;
}

body.dashboard-screen .cockpit-panel .section-heading {
  border-bottom: 1px solid rgba(83, 200, 255, 0.16);
  margin-bottom: 8px;
  padding-bottom: 6px;
}

.cockpit-panel .section-heading h3 {
  color: #f2fbff;
  font-size: 17px;
}

body.dashboard-screen .cockpit-panel .section-heading h3 {
  font-size: 14px;
}

.cockpit-panel .count-pill,
.cockpit-panel .amount-pill {
  background: rgba(50, 195, 255, 0.12);
  color: #9be9ff;
}

.cockpit-metrics {
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

body.dashboard-screen .cockpit-metrics {
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.dashboard-screen .overview-panel .section-heading {
  margin-bottom: 5px;
}

body.dashboard-screen .overview-panel .eyebrow {
  display: none;
}

.cockpit-metrics .metric-scope-toggle {
  background: rgba(5, 39, 54, 0.86);
  border-color: rgba(95, 236, 245, 0.18);
}

.cockpit-metrics .metric-scope-toggle button {
  color: #9ed7ec;
  min-height: 19px;
}

.cockpit-metrics .metric-scope-toggle button.active {
  background: linear-gradient(135deg, rgba(22, 199, 217, 0.92), rgba(8, 125, 150, 0.92));
  box-shadow: none;
  color: #ffffff;
}

.cockpit-metrics .metric-card {
  background: rgba(6, 45, 61, 0.82);
  border-color: rgba(95, 236, 245, 0.24);
  box-shadow: none;
  min-height: 94px;
  padding: 12px;
}

body.dashboard-screen .cockpit-metrics .metric-card {
  align-content: center;
  border-radius: 8px;
  min-height: 58px;
  padding: 8px;
}

body.dashboard-screen .cockpit-metrics .metric-card.metric-blue,
body.dashboard-screen .cockpit-metrics .metric-card.metric-green,
body.dashboard-screen .cockpit-metrics .metric-card.metric-orange {
  background: linear-gradient(180deg, rgba(13, 157, 176, 0.58), rgba(4, 55, 72, 0.94));
  border-color: rgba(120, 246, 255, 0.46);
  box-shadow: inset 0 0 18px rgba(80, 232, 245, 0.18), 0 0 14px rgba(22, 199, 217, 0.18);
}

.cockpit-metrics .metric-card span {
  color: #90cce2;
  font-size: 12px;
}

.cockpit-metrics .metric-card strong {
  color: #f8fdff;
  font-size: 20px;
  margin-top: 8px;
}

body.dashboard-screen .cockpit-metrics .metric-card strong {
  font-size: 16px;
  line-height: 1.05;
  margin-top: 4px;
}

.cockpit-metrics .metric-card em {
  color: #7fb5c9;
}

body.dashboard-screen .cockpit-metrics .metric-card span,
body.dashboard-screen .cockpit-metrics .metric-card em {
  font-size: 9px;
  line-height: 1.15;
}

body.dashboard-screen .cockpit-metrics .metric-card em {
  margin-top: 3px;
}

.map-panel {
  margin-bottom: 18px;
}

.cockpit-map-panel {
  margin-bottom: 0;
}

body.dashboard-screen .cockpit-map-panel {
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.cockpit-map-panel .section-heading {
  margin-bottom: 10px;
}

.cockpit-map-layout {
  grid-template-columns: 1fr;
}

.map-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(420px, 1.35fr) minmax(300px, 0.65fr);
  align-items: stretch;
}

.map-stage {
  background:
    radial-gradient(circle at 65% 18%, rgba(45, 111, 159, 0.18), transparent 30%),
    radial-gradient(circle at 24% 74%, rgba(192, 119, 35, 0.14), transparent 28%),
    linear-gradient(145deg, #edf5ef, #f9fbf8);
  border: 1px solid #d9e4dd;
  border-radius: 8px;
  min-height: 430px;
  overflow: hidden;
  padding: 26px;
  perspective: 1100px;
  position: relative;
}

.satellite-stage {
  background: #061B24;
  border-color: rgba(95, 236, 245, 0.34);
  min-height: 678px;
  padding: 0;
}

body.dashboard-screen .satellite-stage {
  background: #061B24;
  border: 1px solid rgba(95, 236, 245, 0.32);
  box-shadow: inset 0 0 0 1px rgba(95, 236, 245, 0.08), inset 0 0 28px rgba(12, 174, 196, 0.12);
  height: 100%;
  min-height: 0;
}

.map-stage::after {
  background: radial-gradient(ellipse at center, rgba(31, 43, 37, 0.2), transparent 64%);
  bottom: 26px;
  content: "";
  height: 38px;
  left: 12%;
  position: absolute;
  right: 12%;
}

.satellite-stage::after {
  display: none;
}

.earth-canvas {
  display: block;
  height: 100%;
  min-height: 570px;
  position: relative;
  touch-action: none;
  width: 100%;
  z-index: 1;
}

.echarts-gl-map,
.echarts-flat-map {
  background:
    linear-gradient(90deg, rgba(55, 130, 145, 0.2) 1px, transparent 1px),
    linear-gradient(0deg, rgba(55, 130, 145, 0.2) 1px, transparent 1px),
    #061B24;
  background-size: 48px 48px;
  border-radius: 8px;
  overflow: hidden;
}

.map-label-overlay {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 8;
}

.map-dom-label {
  background: rgba(2, 18, 26, 0.18);
  border: 1px solid rgba(116, 255, 255, 0.08);
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 3px 6px;
  position: absolute;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 8px rgba(15, 23, 42, 0.9);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.map-label-line {
  background: linear-gradient(90deg, rgba(49, 242, 255, 0.72), rgba(255, 255, 255, 0.24));
  height: 1px;
  position: absolute;
  transform-origin: 0 50%;
}

.map-label-overlay.level-province .map-dom-label {
  font-size: 13px;
}

.map-label-overlay.level-county .map-dom-label {
  font-size: 11px;
  padding: 2px 5px;
}

.cockpit-map-panel .earth-canvas {
  min-height: 678px;
}

body.dashboard-screen .cockpit-map-panel .earth-canvas {
  height: 100%;
  min-height: 0;
}

body.dashboard-screen .cockpit-map-layout,
body.dashboard-screen .map-layout {
  height: 100%;
  min-height: 0;
}

body.dashboard-screen .earth-canvas {
  background:
    linear-gradient(90deg, rgba(55, 130, 145, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(55, 130, 145, 0.18) 1px, transparent 1px),
    #061B24;
  background-size: 44px 44px;
  border-radius: 6px;
}

.earth-toolbar {
  align-items: center;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  left: 14px;
  padding: 8px;
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
}

body.dashboard-screen .earth-toolbar {
  align-items: stretch;
  background: rgba(6, 18, 42, 0.46);
  border: 1px solid rgba(122, 197, 255, 0.18);
  flex-direction: column;
  left: auto;
  right: 10px;
  top: 92px;
  padding: 5px;
  width: 36px;
}

body.dashboard-screen .earth-toolbar .segmented-control,
body.dashboard-screen .earth-toolbar .zoom-control {
  display: grid;
  gap: 7px;
}

body.dashboard-screen .earth-toolbar .map-mode,
body.dashboard-screen .earth-toolbar .icon-button,
body.dashboard-screen .earth-toolbar .ghost-button {
  align-items: center;
  background: rgba(6, 18, 42, 0.48);
  border-color: rgba(122, 197, 255, 0.18);
  border-radius: 999px;
  display: flex;
  font-size: 10px;
  height: 28px;
  justify-content: center;
  min-height: 28px;
  padding: 0;
  width: 28px;
}

body.dashboard-screen .earth-toolbar .map-mode:hover,
body.dashboard-screen .earth-toolbar .icon-button:hover,
body.dashboard-screen .earth-toolbar .ghost-button:hover {
  background: rgba(22, 93, 255, 0.62);
  border-color: rgba(135, 218, 255, 0.62);
  box-shadow: 0 0 10px rgba(58, 185, 255, 0.28);
}

body.dashboard-screen .earth-toolbar .map-mode {
  line-height: 1;
  writing-mode: vertical-rl;
}

body.dashboard-screen .earth-toolbar .zoom-control input {
  display: none;
}

.segmented-control,
.zoom-control {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.map-mode,
.icon-button {
  background: rgba(36, 59, 97, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 900;
  min-height: 32px;
  padding: 0 11px;
}

.map-mode.active,
.icon-button:hover {
  background: linear-gradient(135deg, #16C7D9, #087D96);
  color: #FFFFFF;
}

.icon-button {
  font-size: 18px;
  line-height: 1;
  width: 34px;
}

.zoom-control input {
  accent-color: var(--primary);
  background: transparent;
  min-height: 24px;
  padding: 0;
  width: 128px;
}

.earth-toolbar .ghost-button {
  background: rgba(36, 59, 97, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #FFFFFF;
}

.earth-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.region-focus-list {
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  left: 14px;
  position: absolute;
  right: 14px;
  max-height: 92px;
  overflow: auto;
  z-index: 3;
}

body.dashboard-screen .region-focus-list {
  bottom: 10px;
  justify-content: center;
  left: 10px;
  right: 10px;
}

.region-focus-list button {
  align-items: center;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  min-height: 31px;
  padding: 0 9px;
}

.region-focus-list button:hover {
  background: rgba(36, 59, 97, 0.92);
  border-color: rgba(255, 255, 255, 0.64);
  color: #FFFFFF;
}

.region-focus-list button.active {
  background: linear-gradient(135deg, #16C7D9, #087D96);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.region-focus-list button.empty {
  opacity: 0.58;
}

.region-focus-list span {
  background: #16C7D9;
  box-shadow: 0 0 8px rgba(22, 93, 255, 0.8);
  border-radius: 99px;
  height: 8px;
  width: 8px;
}

.region-focus-list strong {
  color: inherit;
}

.map-plane {
  aspect-ratio: 760 / 520;
  filter: drop-shadow(0 26px 24px rgba(36, 52, 43, 0.22));
  max-width: 100%;
  position: relative;
  transform: rotateX(52deg) rotateZ(-8deg);
  transform-origin: center;
  width: 100%;
  z-index: 1;
}

.regional-map,
.map-markers {
  inset: 0;
  position: absolute;
}

.regional-map {
  height: 100%;
  width: 100%;
}

.region-shape {
  stroke: rgba(255, 255, 255, 0.76);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.region-inner {
  fill: url("#regionAmber");
}

.region-heilongjiang,
.region-liaoning {
  fill: url("#regionGreen");
}

.region-jilin {
  fill: url("#regionBlue");
}

.region-beijing,
.region-tianjin {
  fill: url("#regionSlate");
}

.region-label {
  fill: #fff;
  font-size: 25px;
  font-weight: 900;
  paint-order: stroke;
  pointer-events: none;
  stroke: rgba(22, 37, 31, 0.34);
  stroke-width: 5px;
}

.small-label {
  font-size: 18px;
}

.map-marker {
  align-items: center;
  background: transparent;
  border: 0;
  display: flex;
  height: 24px;
  justify-content: center;
  padding: 0;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 24px;
  z-index: 4;
}

.marker-dot {
  background: #f6fbff;
  border: 4px solid #d6422f;
  border-radius: 999px;
  box-shadow: 0 7px 14px rgba(38, 38, 38, 0.28);
  display: block;
  height: 18px;
  width: 18px;
  z-index: 2;
}

.marker-pulse {
  animation: pulse 1.7s ease-out infinite;
  background: rgba(214, 66, 47, 0.28);
  border-radius: 999px;
  height: 28px;
  position: absolute;
  width: 28px;
}

.marker-label {
  background: rgba(24, 37, 31, 0.92);
  border-radius: 8px;
  bottom: 26px;
  box-shadow: 0 10px 22px rgba(21, 31, 27, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  left: 50%;
  line-height: 1.2;
  max-width: 138px;
  opacity: 0;
  overflow: hidden;
  padding: 7px 9px;
  pointer-events: none;
  position: absolute;
  text-overflow: ellipsis;
  transform: translateX(-50%);
  transition: 0.18s ease;
  white-space: nowrap;
}

.map-marker:hover .marker-label,
.map-marker.active .marker-label {
  opacity: 1;
}

.map-marker.active .marker-dot {
  border-color: #1b6d4e;
  transform: scale(1.18);
}

.map-detail {
  min-width: 0;
}

.map-detail-card {
  background: rgba(5, 24, 56, 0.88);
  border: 1px solid rgba(109, 211, 255, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  min-height: 100%;
  padding: 16px;
}

.map-detail-card h4 {
  color: #f4fbff;
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.map-detail-topline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.map-detail-grid div {
  background: rgba(11, 45, 92, 0.72);
  border: 1px solid rgba(109, 211, 255, 0.16);
  border-radius: 8px;
  padding: 10px;
}

.map-detail-grid span,
.map-profile span {
  color: #8ccbe3;
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
}

.map-detail-grid strong {
  color: #f8fdff;
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.map-profile {
  background: rgba(11, 45, 92, 0.72);
  border: 1px solid rgba(109, 211, 255, 0.16);
  border-radius: 8px;
  padding: 12px;
}

.map-profile p {
  color: #e8f6ff;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

.map-empty {
  min-height: 100%;
}

.collection-trend,
.donut-card {
  display: grid;
  gap: 12px;
}

.trend-chart {
  background: rgba(247, 250, 255, 0.92);
  border: 1px solid rgba(134, 144, 156, 0.18);
  border-radius: 8px;
  height: 138px;
  width: 100%;
}

body.dashboard-screen .trend-chart {
  background: rgba(247, 250, 255, 0.96);
  border-color: rgba(22, 93, 255, 0.14);
  height: 110px;
}

.trend-grid line {
  stroke: rgba(134, 144, 156, 0.22);
  stroke-width: 0.45;
}

.trend-chart .trend-area {
  stroke: none;
}

.trend-sale-area {
  fill: rgba(255, 125, 0, 0.14);
}

.trend-paid-area {
  fill: rgba(0, 180, 42, 0.14);
}

.trend-chart .trend-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.trend-sale-line {
  stroke: #ff7d00;
}

.trend-paid-line {
  stroke: #00b42a;
}

.trend-chart circle {
  stroke: #fff;
  stroke-width: 0.9;
}

.trend-empty-label {
  fill: rgba(185, 199, 220, 0.78);
  font-size: 7px;
  font-weight: 800;
  text-anchor: middle;
}

.trend-sale-point {
  fill: #ff7d00;
}

.trend-paid-point {
  fill: #00b42a;
}

.trend-axis-label {
  fill: #86909c;
  font-size: 5px;
  font-weight: 800;
  text-anchor: middle;
}

.trend-bars {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-height: 94px;
}

body.dashboard-screen .trend-bars {
  min-height: 62px;
}

.trend-month {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 7px;
  font: inherit;
  min-width: 0;
  padding: 0;
  transition: transform 0.16s ease;
}

.trend-month:hover,
.trend-month:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.trend-month:hover .trend-columns,
.trend-month:focus-visible .trend-columns {
  border-color: rgba(103, 232, 249, 0.56);
  box-shadow: inset 0 0 18px rgba(91, 203, 255, 0.12), 0 0 18px rgba(91, 203, 255, 0.12);
}

.trend-columns {
  align-items: end;
  background: rgba(242, 245, 251, 0.92);
  border: 1px solid rgba(134, 144, 156, 0.14);
  border-radius: 8px;
  display: flex;
  gap: 4px;
  height: 68px;
  justify-content: center;
  padding: 7px 5px;
}

body.dashboard-screen .trend-columns {
  height: 46px;
  padding: 5px 3px;
}

body.dashboard-screen .trend-month strong,
body.dashboard-screen .trend-legend,
body.dashboard-screen .donut-list span {
  color: #c9d8ef;
}

.trend-columns span {
  border-radius: 999px 999px 3px 3px;
  display: block;
  min-height: 5px;
  width: 8px;
}

.trend-sale {
  background: #ff7d00;
}

.trend-paid {
  background: #00b42a;
}

.trend-month strong {
  color: #6b7785;
  font-size: 12px;
  text-align: center;
}

.trend-drill-dialog {
  max-width: 1240px;
  width: min(94vw, 1240px);
}

.trend-drill-body {
  display: grid;
  gap: 16px;
  max-height: calc(min(86vh, 920px) - 82px);
  overflow: auto;
  padding: 18px 22px 22px;
}

.trend-drill-summary {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(5, 18, 42, 0.82));
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 12px;
  display: grid;
  gap: 5px;
  padding: 14px 16px;
}

.trend-drill-summary.inline {
  flex: 1;
}

.trend-drill-summary span,
.trend-calendar-card span {
  color: rgba(224, 247, 255, 0.66);
  font-size: 12px;
  font-weight: 900;
}

.trend-drill-summary strong,
.trend-calendar-card strong {
  color: #67e8f9;
  font-size: 22px;
  line-height: 1.2;
}

.trend-drill-summary em,
.trend-calendar-card em,
.trend-calendar-card small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.trend-drill-toolbar {
  align-items: stretch;
  display: flex;
  gap: 12px;
}

.trend-calendar-grid {
  display: grid;
  gap: 12px;
}

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

.trend-day-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.trend-calendar-card {
  appearance: none;
  background: linear-gradient(145deg, rgba(8, 31, 58, 0.9), rgba(5, 18, 42, 0.88));
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 12px;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 7px;
  min-height: 138px;
  padding: 14px;
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.trend-calendar-card:hover,
.trend-calendar-card:focus-visible {
  border-color: rgba(103, 232, 249, 0.6);
  box-shadow: inset 0 0 18px rgba(91, 203, 255, 0.12), 0 0 22px rgba(91, 203, 255, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.trend-day-card {
  cursor: default;
  min-height: 220px;
}

.trend-day-card:hover {
  transform: none;
}

.trend-day-list {
  border-top: 1px solid rgba(125, 211, 252, 0.14);
  display: grid;
  gap: 8px;
  margin-top: 4px;
  max-height: 130px;
  overflow: auto;
  padding-top: 8px;
}

.trend-day-list div {
  display: grid;
  gap: 3px;
}

.trend-day-list b {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1.35;
}

.trend-day-list span {
  color: rgba(224, 247, 255, 0.6);
  font-size: 11px;
  font-weight: 800;
}

.trend-legend,
.donut-list span {
  align-items: center;
  color: #4e5969;
  display: flex;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
}

.trend-legend {
  justify-content: flex-end;
}

.trend-legend i,
.donut-list i {
  border-radius: 999px;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.legend-sale {
  background: #ff7d00;
}

.legend-paid {
  background: #00b42a;
}

.legend-unpaid {
  background: #f16c6c;
}

.donut {
  align-items: center;
  background: conic-gradient(#51F6FF 0%, #16C7D9 calc(var(--paid) * 1%), rgba(230, 169, 66, 0.92) 0);
  border-radius: 50%;
  display: grid;
  height: 148px;
  justify-self: center;
  place-items: center;
  position: relative;
  width: 148px;
}

.donut-note {
  color: #9ed7ec;
  font-size: 12px;
  font-weight: 900;
  margin: 0;
  text-align: center;
}

body.dashboard-screen .donut {
  height: 94px;
  width: 94px;
}

.donut::after {
  background: #071b40;
  border-radius: 50%;
  content: "";
  height: 96px;
  position: absolute;
  width: 96px;
}

body.dashboard-screen .donut::after {
  height: 58px;
  width: 58px;
}

.donut strong,
.donut span {
  position: relative;
  z-index: 1;
}

.donut strong {
  color: #f8fdff;
  font-size: 28px;
}

body.dashboard-screen .donut strong {
  font-size: 20px;
}

.donut span {
  color: #8fcce7;
  font-size: 12px;
  font-weight: 900;
  margin-top: 34px;
  position: absolute;
}

body.dashboard-screen .donut span {
  font-size: 10px;
  margin-top: 24px;
}

body.dashboard-screen .donut-note {
  font-size: 11px;
  margin-top: -2px;
}

body.dashboard-screen .donut-card {
  gap: 4px;
}

.donut-list {
  display: grid;
  gap: 8px;
}

body.dashboard-screen .donut-list {
  display: none;
}

.donut-list div {
  align-items: center;
  background: rgba(11, 45, 92, 0.64);
  border: 1px solid rgba(109, 211, 255, 0.14);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
}

body.dashboard-screen .donut-list div {
  padding: 7px;
}

body.dashboard-screen .pipeline-bars,
body.dashboard-screen .rank-list,
body.dashboard-screen .expiry-rank-list,
body.dashboard-screen .map-detail-card {
  gap: 7px;
}

body.dashboard-screen .cockpit-column > .cockpit-panel {
  display: grid;
  gap: 8px;
}

body.dashboard-screen .cockpit-column > .cockpit-panel .section-heading {
  margin-bottom: 0;
}

body.dashboard-screen .pipeline-meta,
body.dashboard-screen .rank-meta {
  font-size: 12px;
}

body.dashboard-screen .bar-track {
  height: 8px;
}

body.dashboard-screen .map-detail-card {
  padding: 9px;
}

body.dashboard-screen .map-detail-card h4 {
  font-size: 16px;
}

body.dashboard-screen .map-detail-grid,
body.dashboard-screen .map-profile .analysis-grid {
  grid-template-columns: 1fr;
}

body.dashboard-screen .map-profile:nth-of-type(2),
body.dashboard-screen .map-profile:nth-of-type(3),
body.dashboard-screen .map-detail-card .row-actions {
  display: none;
}

.donut-list strong {
  color: #f8fdff;
  font-size: 13px;
}

.screen-alert-list {
  display: grid;
  gap: 7px;
}

.expiry-setting-panel {
  background: rgba(11, 45, 92, 0.64);
  border: 1px solid rgba(109, 211, 255, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.expiry-setting-panel label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 900;
}

.expiry-setting-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(72px, 1fr) auto;
}

.expiry-setting-row input {
  background: rgba(5, 20, 45, 0.78);
  border: 1px solid rgba(91, 203, 255, 0.28);
  border-radius: 8px;
  color: #f8fdff;
  font-size: 20px;
  font-weight: 900;
  height: 40px;
  padding: 0 10px;
}

.expiry-setting-row span,
.expiry-setting-panel p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  margin: 0;
}

.expiry-countdown-card {
  min-height: 154px;
}

.expiry-countdown,
.expiry-countdown-empty {
  background:
    radial-gradient(circle at 82% 18%, rgba(91, 203, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(10, 60, 125, 0.82), rgba(4, 20, 48, 0.9));
  border: 1px solid rgba(91, 203, 255, 0.24);
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 22px rgba(34, 136, 255, 0.18);
  min-height: 154px;
  padding: 14px;
}

.expiry-countdown {
  display: grid;
  gap: 8px;
}

.expiry-countdown.warning {
  border-color: rgba(240, 198, 90, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 22px rgba(240, 198, 90, 0.14);
}

.expiry-countdown.danger {
  border-color: rgba(255, 77, 79, 0.45);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 22px rgba(255, 77, 79, 0.16);
}

.expiry-countdown-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.expiry-countdown-top span,
.expiry-countdown-top em {
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 4px 8px;
}

.expiry-countdown-top span {
  background: rgba(91, 203, 255, 0.16);
  color: #c8f2ff;
}

.expiry-countdown.warning .expiry-countdown-top span {
  background: rgba(240, 198, 90, 0.18);
  color: #f6d475;
}

.expiry-countdown.danger .expiry-countdown-top span {
  background: rgba(255, 77, 79, 0.16);
  color: #ff8580;
}

.expiry-countdown-top em {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.68);
}

.expiry-countdown h4 {
  color: #f8fdff;
  font-size: 17px;
  line-height: 1.25;
  margin: 0;
}

.expiry-countdown-days {
  align-items: baseline;
  display: flex;
  gap: 6px;
}

.expiry-countdown-days strong {
  color: #5BCBFF;
  font-size: 42px;
  font-weight: 950;
  line-height: 0.95;
  text-shadow: 0 0 16px rgba(91, 203, 255, 0.26);
}

.expiry-countdown.warning .expiry-countdown-days strong {
  color: #f6d475;
  text-shadow: 0 0 16px rgba(240, 198, 90, 0.24);
}

.expiry-countdown.danger .expiry-countdown-days strong {
  color: #ff8580;
  text-shadow: 0 0 16px rgba(255, 77, 79, 0.22);
}

.expiry-countdown-days span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 900;
}

.expiry-countdown p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
  margin: 0;
}

.expiry-countdown-empty {
  align-content: center;
  display: grid;
  gap: 8px;
  text-align: center;
}

.expiry-countdown-empty strong {
  color: #f8fdff;
  font-size: 16px;
}

.expiry-countdown-empty span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.expiry-rank-list {
  display: grid;
  gap: 7px;
}

.expiry-rank-item {
  align-items: center;
  background: rgba(11, 45, 92, 0.64);
  border: 1px solid rgba(109, 211, 255, 0.14);
  border-left: 3px solid rgba(91, 203, 255, 0.78);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  grid-template-columns: 24px 1fr auto;
  min-height: 48px;
  padding: 8px;
}

.expiry-rank-item.warning {
  border-left-color: #f0c65a;
}

.expiry-rank-item.danger {
  border-left-color: #ff5d4d;
}

.expiry-rank-item > strong {
  align-items: center;
  background: rgba(66, 215, 255, 0.16);
  border-radius: 4px;
  color: #c8f2ff;
  display: flex;
  font-size: 12px;
  height: 24px;
  justify-content: center;
}

.expiry-rank-item span {
  color: #f2fbff;
  display: block;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expiry-rank-item p {
  color: #86c4de;
  font-size: 11px;
  margin: 3px 0 0;
}

.expiry-rank-item em {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #f2fbff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 5px 7px;
  white-space: nowrap;
}

.expiry-rank-item.warning em {
  color: #f6d475;
}

.expiry-rank-item.danger em {
  color: #ff7b70;
}

.screen-alert {
  align-items: center;
  background: rgba(11, 45, 92, 0.64);
  border: 1px solid rgba(109, 211, 255, 0.14);
  border-left: 3px solid #16C7D9;
  border-radius: 4px;
  display: grid;
  gap: 8px;
  grid-template-columns: 24px 1fr auto;
  min-height: 44px;
  padding: 7px;
}

.screen-alert.danger {
  border-left-color: #ff5d4d;
}

.screen-alert.warning {
  border-left-color: #f0c65a;
}

.screen-alert strong {
  align-items: center;
  background: rgba(66, 215, 255, 0.16);
  border-radius: 4px;
  color: #c8f2ff;
  display: flex;
  font-size: 12px;
  height: 23px;
  justify-content: center;
}

.screen-alert span {
  color: #f2fbff;
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.screen-alert p {
  color: #86c4de;
  font-size: 11px;
  margin: 3px 0 0;
}

.screen-alert em {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  color: #f2fbff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 4px 6px;
}

.empty-alert {
  display: block;
  grid-template-columns: 1fr;
  min-height: 52px;
  text-align: center;
}

body.dashboard-screen .selected-customer-panel .map-detail {
  display: none;
}

body.dashboard-screen .cockpit-map-layout {
  grid-template-columns: 1fr;
}

body.dashboard-screen .cockpit-map-layout .satellite-stage {
  width: 100%;
}

body.dashboard-screen .cockpit-metrics {
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.dashboard-screen .cockpit-metrics .metric-card {
  align-content: center;
  min-height: 58px;
  padding: 8px;
}

body.dashboard-screen .cockpit-metrics .metric-card span {
  font-size: 9px;
}

body.dashboard-screen .cockpit-metrics .metric-card strong {
  font-size: 16px;
  margin-top: 4px;
}

body.dashboard-screen .cockpit-metrics .metric-card em {
  font-size: 9px;
  margin-top: 3px;
}

@keyframes pulse {
  0% {
    opacity: 0.85;
    transform: scale(0.65);
  }

  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

.dashboard-grid,
.workspace-grid,
.wechat-layout,
.finance-layout,
.report-grid,
.data-grid,
.system-grid {
  display: grid;
  gap: 18px;
}

.dashboard-grid,
.report-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.workspace-grid {
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.2fr);
  align-items: start;
}

.follow-grid,
.wechat-layout,
.finance-layout,
.contract-layout,
.data-grid,
.system-grid {
  grid-template-columns: minmax(360px, 0.8fr) minmax(520px, 1.2fr);
}

.order-management-tabs {
  background: rgba(14, 26, 53, 0.58);
  border: 1px solid rgba(100, 160, 255, 0.16);
  border-radius: 10px;
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px;
}

.order-tab {
  background: rgba(5, 18, 42, 0.56);
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.64);
  cursor: pointer;
  flex: 1;
  font: inherit;
  font-weight: 900;
  min-height: 42px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.order-tab:hover,
.order-tab.active {
  background: linear-gradient(135deg, rgba(34, 136, 255, 0.88), rgba(14, 116, 210, 0.58));
  border-color: rgba(125, 211, 252, 0.46);
  color: #fff;
  transform: translateY(-1px);
}

.order-tab-panel {
  display: none;
}

.order-tab-panel.active {
  display: block;
}

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

.renewal-row {
  align-items: stretch;
  background: rgba(7, 24, 54, 0.56);
  border: 1px solid rgba(125, 211, 252, 0.15);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1.2fr) minmax(130px, 0.75fr) minmax(150px, 0.9fr) minmax(120px, 0.75fr) auto;
  padding: 12px;
}

.renewal-row.danger {
  border-color: rgba(255, 77, 79, 0.34);
}

.renewal-cell {
  background: rgba(2, 12, 28, 0.22);
  border: 1px solid rgba(125, 211, 252, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px 10px;
}

.renewal-customer-cell {
  background: rgba(14, 165, 233, 0.08);
}

.renewal-row strong {
  color: rgba(255, 255, 255, 0.92);
  display: block;
  font-size: 14px;
  font-weight: 950;
}

.renewal-row p,
.renewal-row em {
  color: rgba(255, 255, 255, 0.55);
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  margin: 4px 0 0;
}

.renewal-row span {
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 950;
}

.renewal-pager {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.renewal-pager-top {
  justify-content: space-between;
  margin: 0 0 12px;
}

.renewal-pager label {
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
}

.renewal-pager select {
  background: rgba(2, 12, 28, 0.56);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  min-height: 34px;
  padding: 0 8px;
}

.renewal-pager > span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.renewal-page-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.renewal-page-buttons button {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  min-height: 30px;
  min-width: 30px;
}

.renewal-page-buttons button.active,
.renewal-page-buttons button:hover {
  background: rgba(14, 165, 233, 0.34);
  border-color: rgba(125, 211, 252, 0.42);
  color: #fff;
}

.system-grid .span-two {
  grid-column: 1 / -1;
}

.import-actions {
  align-items: center;
  background: #f7f9fc;
  border: 1px dashed #c9d6eb;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
}

.compact-file {
  display: inline-flex;
  font-size: 12px;
  min-height: 32px;
  padding: 0 12px;
  width: auto;
}

.photo-ocr-button {
  background: linear-gradient(135deg, rgba(22, 199, 217, 0.2), rgba(22, 93, 255, 0.22));
  border-color: rgba(91, 217, 255, 0.38);
}

.photo-ocr-hint {
  color: rgba(255, 255, 255, 0.55);
  flex: 1 1 100%;
  font-size: 12px;
  line-height: 1.5;
}

.enterprise-verify-entry {
  align-items: center;
  background: linear-gradient(135deg, rgba(25, 130, 255, 0.12), rgba(5, 17, 42, 0.52));
  border: 1px solid rgba(91, 203, 255, 0.22);
  border-radius: 12px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.enterprise-verify-entry strong {
  color: #eafaff;
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.enterprise-verify-entry span {
  color: rgba(255, 255, 255, 0.58);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 3px;
}

.enterprise-name-row {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.enterprise-name-row label {
  min-width: 0;
}

.enterprise-verify-inline-button {
  align-items: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(37, 99, 235, 0.12));
  border: 1px solid rgba(91, 203, 255, 0.34);
  border-radius: 12px;
  color: #eafaff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
  height: 42px;
  justify-content: center;
  padding: 0 14px;
  white-space: nowrap;
}

.enterprise-verify-inline-button:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.32), rgba(37, 99, 235, 0.2));
  border-color: rgba(125, 211, 252, 0.62);
  box-shadow: 0 0 20px rgba(91, 203, 255, 0.16);
}

.mobile-camera-button {
  align-items: center;
  background: linear-gradient(135deg, rgba(43, 188, 242, 0.88), rgba(12, 95, 166, 0.78));
  border: 1px solid rgba(125, 226, 255, 0.52);
  border-radius: 14px;
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.1), 0 0 14px rgba(91, 217, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  display: none;
  font-size: 22px;
  justify-content: center;
  min-height: 50px;
  width: 56px;
}

.scan-corner-icon {
  color: #f8fcff;
  display: inline-block;
  height: 26px;
  position: relative;
  width: 26px;
}

.scan-corner-icon i {
  border-color: currentColor;
  border-style: solid;
  height: 8px;
  opacity: 0.96;
  position: absolute;
  width: 8px;
}

.scan-corner-icon i:nth-child(1) {
  border-width: 2px 0 0 2px;
  left: 2px;
  top: 2px;
}

.scan-corner-icon i:nth-child(2) {
  border-width: 2px 2px 0 0;
  right: 2px;
  top: 2px;
}

.scan-corner-icon i:nth-child(3) {
  border-width: 0 0 2px 2px;
  bottom: 2px;
  left: 2px;
}

.scan-corner-icon i:nth-child(4) {
  border-width: 0 2px 2px 0;
  bottom: 2px;
  right: 2px;
}

.mobile-camera-button:hover .scan-corner-icon,
.mobile-camera-button:active .scan-corner-icon {
  filter: drop-shadow(0 0 7px rgba(125, 226, 255, 0.72));
}

.enterprise-mini-logo,
.enterprise-title-logo,
.enterprise-card-icon,
.enterprise-search-badge {
  align-items: center;
  background: linear-gradient(135deg, #2aa8ff, #0e5dff);
  border: 1px solid rgba(164, 230, 255, 0.42);
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(91, 203, 255, 0.22);
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  justify-content: center;
}

.enterprise-mini-logo {
  height: 24px;
  width: 24px;
}

.finance-supplement-upload {
  align-items: center;
  background: linear-gradient(90deg, rgba(10, 56, 104, 0.74), rgba(6, 28, 58, 0.62));
  border: 1px dashed rgba(91, 203, 255, 0.38);
  border-radius: 10px;
  box-shadow: inset 0 0 18px rgba(91, 203, 255, 0.08);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 12px 14px;
}

.finance-supplement-upload div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.finance-supplement-upload strong {
  color: #eaf9ff;
  font-size: 14px;
  font-weight: 950;
}

.finance-supplement-upload span {
  color: rgba(210, 235, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.supplement-upload-progress-list {
  display: grid;
  gap: 8px;
}

.supplement-upload-progress-list[hidden] {
  display: none;
}

.supplement-upload-progress {
  align-items: center;
  background: rgba(3, 15, 29, 0.46);
  border: 1px solid rgba(91, 203, 255, 0.18);
  border-radius: 9px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.3fr) minmax(120px, 1fr) 52px;
  padding: 9px 11px;
}

.supplement-upload-progress div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.supplement-upload-progress strong {
  color: rgba(244, 251, 255, 0.94);
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplement-upload-progress span,
.supplement-upload-progress em {
  color: rgba(210, 235, 255, 0.68);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.supplement-progress-track {
  background: rgba(132, 205, 255, 0.12);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.supplement-progress-track i {
  background: linear-gradient(90deg, #2288ff, #5bcbff);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 0.24s ease;
}

.supplement-upload-progress.failed {
  border-color: rgba(255, 77, 79, 0.42);
}

.supplement-upload-progress.failed .supplement-progress-track i {
  background: linear-gradient(90deg, #ff4d4f, #ff9c9c);
}

.inline-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field-hint {
  color: rgba(255, 255, 255, 0.55);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 6px;
}

.amount-edit-control {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.amount-link {
  background: transparent;
  border: 0;
  color: #67e8f9;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  padding: 0;
  text-align: left;
}

.amount-link:hover {
  color: #fff;
  text-decoration: underline;
}

.calculation-strip {
  background: linear-gradient(90deg, #e8f0ff, #e8ffea);
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  color: #0e42d2;
  font-size: 15px;
  font-weight: 900;
  padding: 12px 14px;
}

.compact-table {
  margin-top: 14px;
  max-height: 260px;
  overflow: auto;
}

.settings-split {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-wide {
  grid-column: 1 / -1;
}

.settings-split h4 {
  color: var(--text);
  font-size: 15px;
  margin: 0 0 12px;
}

.settings-form {
  background: linear-gradient(180deg, #f8fbff, #f3f8fb);
  border: 1px solid #dce8ef;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 12px;
}

.settings-import {
  margin-bottom: 12px;
}

.product-settings-layout {
  grid-template-columns: minmax(0, 1fr);
}

.product-settings-main {
  min-width: 0;
}

.product-library-list {
  display: grid;
  gap: 10px;
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

.product-library-card {
  align-items: stretch;
  background: linear-gradient(135deg, rgba(14, 43, 79, 0.72), rgba(5, 18, 37, 0.68));
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1.15fr) minmax(360px, 1.7fr) auto;
  padding: 12px;
}

.product-library-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.product-library-main strong {
  color: #fff;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.product-library-main span,
.product-library-meta span {
  color: rgba(224, 247, 255, 0.58);
  font-size: 12px;
  font-weight: 900;
}

.product-library-meta {
  display: grid;
  gap: 8px;
  grid-template-columns: 120px 100px minmax(0, 1fr);
  min-width: 0;
}

.product-library-meta div {
  background: rgba(8, 18, 38, 0.46);
  border: 1px solid rgba(125, 211, 252, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px 10px;
}

.product-library-meta strong {
  color: #5BCBFF;
  font-size: 14px;
}

.product-library-remark p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  max-height: 4.4em;
  overflow: auto;
  overflow-wrap: anywhere;
}

.product-library-actions {
  align-content: center;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.compact-actions {
  justify-content: flex-start;
}

.contract-items-box {
  background: #f8fbff;
  border: 1px dashed #cfe0ec;
  border-radius: 8px;
  overflow: hidden;
}

.contract-items-box .empty-state {
  margin: 0;
}

.contract-items-table {
  width: 100%;
}

.contract-items-table th,
.contract-items-table td {
  font-size: 12px;
  padding: 9px 10px;
}

.table-action {
  background: #eef6ff;
  border: 1px solid #d7e8f7;
  border-radius: 6px;
  color: #1769a8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  min-height: 28px;
  padding: 0 8px;
}

.table-action + .table-action {
  margin-left: 6px;
}

.table-action.danger {
  background: var(--danger-soft);
  border-color: #ffd6d6;
  color: var(--danger);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 18px;
}

.dashboard-support-grid {
  align-items: start;
}

.cockpit-panel .table-wrap {
  border-color: rgba(109, 211, 255, 0.14);
}

.cockpit-panel th {
  background: rgba(5, 25, 58, 0.96);
  color: #9ed7ec;
}

.cockpit-panel td {
  border-bottom-color: rgba(109, 211, 255, 0.12);
  color: #e8f6ff;
}

.cockpit-panel .empty-state,
.cockpit-panel .reminder-item,
.cockpit-panel .rank-item,
.cockpit-panel .pipeline-row {
  background: rgba(11, 45, 92, 0.66);
  border-color: rgba(109, 211, 255, 0.14);
}

.cockpit-panel .bar-track {
  background: rgba(127, 218, 255, 0.13);
}

.cockpit-panel .bar-fill {
  background: linear-gradient(90deg, #16C7D9, #F0C65A);
}

.compact-rank .rank-item {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.contract-layout {
  display: grid;
  gap: 18px;
}

.contract-template-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.contract-template-item {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}

.contract-template-item strong,
.contract-template-item span {
  display: block;
}

.contract-template-item strong {
  color: var(--text);
  font-size: 13px;
}

.contract-template-item span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.contract-template-item button {
  background: var(--danger-soft);
  border: 0;
  border-radius: 6px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 900;
  min-height: 28px;
  padding: 0 10px;
}

.strategy-panel,
.contract-preview {
  display: grid;
  gap: 14px;
}

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

.strategy-grid article,
.strategy-copy,
.generated-contract {
  background: #f8faf8;
  border: 1px solid #e1e9e4;
  border-radius: 8px;
  padding: 14px;
}

.strategy-grid span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.strategy-grid strong {
  display: block;
  font-size: 20px;
  margin-top: 6px;
}

.strategy-grid p,
.strategy-copy p,
.generated-contract p {
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0 0;
}

.strategy-copy strong,
.generated-contract h3,
.generated-contract h4 {
  margin: 0;
}

.generated-contract {
  white-space: pre-wrap;
}

body.dashboard-screen .panel.cockpit-panel,
body.dashboard-screen .panel.cockpit-map-panel {
  background: linear-gradient(180deg, rgba(5, 52, 70, 0.94), rgba(3, 24, 32, 0.97));
  border: 1px solid rgba(75, 222, 236, 0.38);
  border-radius: 6px;
  box-shadow: inset 0 0 24px rgba(56, 226, 240, 0.18), inset 0 0 0 1px rgba(123, 244, 255, 0.07), 0 0 22px rgba(11, 144, 164, 0.18);
  color: #dff7ff;
  padding: 9px;
}

body.dashboard-screen .panel.cockpit-map-panel {
  background: radial-gradient(circle at 50% 42%, rgba(22, 199, 217, 0.22), transparent 36%), rgba(3, 23, 31, 0.95);
}

body.dashboard-screen .cockpit-panel .section-heading,
body.dashboard-screen .cockpit-map-panel .section-heading {
  border-bottom: 1px solid rgba(83, 226, 238, 0.22);
  color: #e8f9ff;
  margin-bottom: 8px;
  padding-bottom: 7px;
}

body.dashboard-screen .cockpit-panel .eyebrow,
body.dashboard-screen .cockpit-map-panel .eyebrow {
  color: #5EF1FF;
}

body.dashboard-screen .cockpit-panel h3,
body.dashboard-screen .cockpit-map-panel h3 {
  color: #f4fbff;
  text-shadow: 0 0 12px rgba(75, 235, 245, 0.34);
}

body.dashboard-screen .cockpit-metrics .metric-card,
body.dashboard-screen .rank-item,
body.dashboard-screen .pipeline-row,
body.dashboard-screen .screen-alert,
body.dashboard-screen .donut-list div,
body.dashboard-screen .trend-columns,
body.dashboard-screen .empty-state {
  background: linear-gradient(180deg, rgba(7, 76, 98, 0.82), rgba(4, 38, 55, 0.88));
  border: 1px solid rgba(95, 236, 245, 0.24);
  color: #e8f9ff;
}

body.dashboard-screen .bigscreen-footer button {
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

body.dashboard-screen .bigscreen-footer button:hover {
  background: linear-gradient(135deg, rgba(22, 199, 217, 0.82), rgba(7, 93, 114, 0.9));
  border-color: rgba(128, 245, 255, 0.72);
  box-shadow: inset 0 0 14px rgba(85, 232, 245, 0.2), 0 0 14px rgba(72, 221, 235, 0.24);
}

body.dashboard-screen .bigscreen-topbar {
  background:
    linear-gradient(90deg, rgba(4, 34, 46, 0.34), rgba(19, 157, 177, 0.28), rgba(4, 34, 46, 0.34)),
    linear-gradient(180deg, rgba(95, 236, 245, 0.12), rgba(3, 20, 28, 0.04));
  border-color: rgba(95, 236, 245, 0.18);
  border-bottom-color: rgba(95, 236, 245, 0.08);
  box-shadow: inset 0 -18px 28px rgba(21, 177, 198, 0.1), 0 8px 26px rgba(0, 20, 28, 0.16);
}

body.dashboard-screen .bigscreen-footer {
  background:
    linear-gradient(180deg, rgba(8, 76, 92, 0.28), rgba(2, 18, 26, 0.58)),
    rgba(4, 28, 38, 0.42);
  border-color: rgba(95, 236, 245, 0.14);
  box-shadow: inset 0 0 20px rgba(58, 225, 240, 0.07), 0 -10px 28px rgba(0, 18, 24, 0.18);
}

body.dashboard-screen .command-dashboard {
  background:
    radial-gradient(circle at 50% 46%, rgba(35, 235, 248, 0.18), transparent 42%),
    linear-gradient(90deg, rgba(8, 82, 98, 0.22), rgba(2, 22, 30, 0.08) 22%, rgba(2, 22, 30, 0.08) 78%, rgba(8, 82, 98, 0.22)),
    linear-gradient(180deg, rgba(20, 199, 217, 0.09), rgba(4, 20, 28, 0.05)),
    rgba(3, 18, 25, 0.58);
  border-color: rgba(95, 236, 245, 0.12);
  box-shadow: inset 0 0 64px rgba(20, 199, 217, 0.08);
}

body.dashboard-screen .panel.cockpit-panel,
body.dashboard-screen .panel.cockpit-map-panel {
  background:
    linear-gradient(180deg, rgba(11, 86, 104, 0.42), rgba(2, 22, 30, 0.64)),
    rgba(5, 35, 47, 0.34);
  border-color: rgba(95, 236, 245, 0.16);
  box-shadow: inset 0 0 20px rgba(56, 226, 240, 0.09), inset 0 0 0 1px rgba(123, 244, 255, 0.03), 0 0 18px rgba(11, 144, 164, 0.08);
  backdrop-filter: blur(2px);
}

body.dashboard-screen .panel.cockpit-map-panel {
  background:
    radial-gradient(circle at 50% 48%, rgba(49, 242, 255, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(8, 74, 86, 0.22), rgba(2, 18, 25, 0.58)),
    rgba(2, 18, 25, 0.36);
}

body.dashboard-screen .satellite-stage {
  background:
    radial-gradient(circle at 50% 52%, rgba(19, 191, 210, 0.16), transparent 42%),
    linear-gradient(90deg, rgba(55, 130, 145, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(55, 130, 145, 0.08) 1px, transparent 1px),
    #04171D;
  background-size: auto, 48px 48px, 48px 48px, auto;
  border-color: rgba(95, 236, 245, 0.14);
  box-shadow: inset 0 0 0 1px rgba(95, 236, 245, 0.04), inset 0 0 34px rgba(12, 174, 196, 0.1), 0 0 20px rgba(0, 20, 28, 0.2);
}

body.dashboard-screen .cockpit-metrics .metric-card,
body.dashboard-screen .rank-item,
body.dashboard-screen .pipeline-row,
body.dashboard-screen .screen-alert,
body.dashboard-screen .donut-list div,
body.dashboard-screen .trend-columns,
body.dashboard-screen .empty-state {
  background:
    linear-gradient(180deg, rgba(13, 118, 138, 0.3), rgba(3, 30, 42, 0.46)),
    rgba(4, 35, 48, 0.24);
  border-color: rgba(95, 236, 245, 0.13);
}

body.dashboard-screen .bigscreen-footer button {
  background: rgba(5, 45, 60, 0.42);
  border-color: rgba(95, 236, 245, 0.14);
}

body.dashboard-screen .region-focus-list button {
  align-items: center;
  line-height: 1;
}

body.dashboard-screen .region-focus-list span {
  flex: 0 0 auto;
  margin-top: 0;
}

body.dashboard-screen {
  background: #050505;
  color: #ffffff;
}

body.dashboard-screen .app-shell,
body.dashboard-screen .main-content,
body.dashboard-screen #dashboardView.active {
  background: #050505;
}

body.dashboard-screen .command-dashboard {
  background: #050505;
  border-color: rgba(220, 220, 220, 0.18);
  box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.42);
}

body.dashboard-screen .command-dashboard::before {
  opacity: 0;
}

body.dashboard-screen .bigscreen-topbar {
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(5, 5, 5, 0.92));
  border-color: rgba(220, 220, 220, 0.18);
  border-bottom-color: rgba(220, 220, 220, 0.14);
  box-shadow: inset 0 -14px 24px rgba(230, 200, 117, 0.05);
}

body.dashboard-screen .bigscreen-topbar::before,
body.dashboard-screen .bigscreen-topbar::after {
  background: linear-gradient(90deg, transparent, rgba(230, 200, 117, 0.62), transparent);
}

body.dashboard-screen .bigscreen-topbar h2,
body.dashboard-screen .cockpit-metrics .metric-card strong,
body.dashboard-screen .donut strong,
body.dashboard-screen .cockpit-panel h3,
body.dashboard-screen .cockpit-map-panel h3 {
  color: #E6C875;
  text-shadow: 0 0 12px rgba(230, 200, 117, 0.18);
}

body.dashboard-screen .screen-meta,
body.dashboard-screen .cockpit-panel .eyebrow,
body.dashboard-screen .cockpit-map-panel .eyebrow,
body.dashboard-screen .cockpit-metrics .metric-card span,
body.dashboard-screen .cockpit-metrics .metric-card em,
body.dashboard-screen .trend-axis-label,
body.dashboard-screen .trend-legend,
body.dashboard-screen .donut-list span,
body.dashboard-screen .pipeline-meta,
body.dashboard-screen .rank-meta {
  color: rgba(255, 255, 255, 0.55);
}

body.dashboard-screen .screen-actions button {
  background: rgba(18, 18, 18, 0.58);
  border-color: rgba(220, 220, 220, 0.18);
  color: rgba(255, 255, 255, 0.72);
}

body.dashboard-screen .screen-actions button:hover {
  border-color: rgba(230, 200, 117, 0.48);
  color: #E6C875;
}

body.dashboard-screen .bigscreen-footer {
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.92), rgba(5, 5, 5, 0.98));
  border-color: rgba(220, 220, 220, 0.18);
  box-shadow: inset 0 0 18px rgba(230, 200, 117, 0.04);
}

body.dashboard-screen .bigscreen-footer button {
  background: rgba(18, 18, 18, 0.66);
  border-color: rgba(220, 220, 220, 0.16);
  color: rgba(255, 255, 255, 0.62);
}

body.dashboard-screen .bigscreen-footer button.active,
body.dashboard-screen .bigscreen-footer button:hover {
  background: linear-gradient(135deg, rgba(230, 200, 117, 0.88), rgba(138, 112, 72, 0.9));
  border-color: rgba(230, 200, 117, 0.72);
  color: #050505;
  box-shadow: 0 0 16px rgba(230, 200, 117, 0.26);
}

body.dashboard-screen .panel.cockpit-panel,
body.dashboard-screen .panel.cockpit-map-panel,
body.dashboard-screen .cockpit-metrics .metric-card,
body.dashboard-screen .rank-item,
body.dashboard-screen .pipeline-row,
body.dashboard-screen .screen-alert,
body.dashboard-screen .donut-list div,
body.dashboard-screen .trend-columns,
body.dashboard-screen .empty-state,
body.dashboard-screen .map-detail-card {
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(10, 10, 10, 0.98));
  border-color: rgba(220, 220, 220, 0.18);
  box-shadow: inset 0 0 18px rgba(230, 200, 117, 0.035), 0 0 18px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

body.dashboard-screen .panel.cockpit-map-panel {
  background: radial-gradient(circle at 50% 48%, rgba(230, 200, 117, 0.08), transparent 42%), #121212;
}

body.dashboard-screen .cockpit-panel .section-heading,
body.dashboard-screen .cockpit-map-panel .section-heading {
  border-bottom-color: rgba(220, 220, 220, 0.18);
}

body.dashboard-screen .cockpit-metrics .metric-card.metric-blue,
body.dashboard-screen .cockpit-metrics .metric-card.metric-green,
body.dashboard-screen .cockpit-metrics .metric-card.metric-orange {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, rgba(24, 24, 24, 0.98), rgba(8, 8, 8, 0.98));
  border-color: rgba(230, 200, 117, 0.28);
  box-shadow: inset 0 0 16px rgba(230, 200, 117, 0.08);
}

body.dashboard-screen .cockpit-metrics .metric-scope-toggle {
  background: rgba(18, 18, 18, 0.8);
  border-color: rgba(220, 220, 220, 0.18);
}

body.dashboard-screen .cockpit-metrics .metric-scope-toggle button {
  color: rgba(255, 255, 255, 0.66);
}

body.dashboard-screen .cockpit-metrics .metric-scope-toggle button.active {
  background: linear-gradient(135deg, #E6C875, #8A7048);
  color: #050505;
}

body.dashboard-screen .satellite-stage,
body.dashboard-screen .earth-canvas,
.echarts-flat-map {
  background: #121212;
  border-color: rgba(220, 220, 220, 0.18);
  box-shadow: inset 0 0 0 1px rgba(220, 220, 220, 0.06), inset 0 0 28px rgba(230, 200, 117, 0.06);
}

body.dashboard-screen .earth-toolbar {
  background: rgba(5, 5, 5, 0.56);
  border-color: rgba(220, 220, 220, 0.18);
}

body.dashboard-screen .earth-toolbar .map-mode,
body.dashboard-screen .earth-toolbar .icon-button,
body.dashboard-screen .earth-toolbar .ghost-button {
  background: rgba(5, 5, 5, 0.62);
  border-color: rgba(230, 200, 117, 0.28);
  color: #E6C875;
}

body.dashboard-screen .earth-toolbar .map-mode:hover,
body.dashboard-screen .earth-toolbar .icon-button:hover,
body.dashboard-screen .earth-toolbar .ghost-button:hover {
  background: rgba(230, 200, 117, 0.18);
  border-color: rgba(230, 200, 117, 0.66);
  box-shadow: 0 0 12px rgba(230, 200, 117, 0.22);
}

body.dashboard-screen .region-focus-list button {
  background: rgba(18, 18, 18, 0.74);
  border-color: rgba(220, 220, 220, 0.18);
  color: rgba(255, 255, 255, 0.68);
}

body.dashboard-screen .region-focus-list button.active,
body.dashboard-screen .region-focus-list button:hover {
  border-color: rgba(230, 200, 117, 0.58);
  color: #E6C875;
  box-shadow: 0 0 12px rgba(230, 200, 117, 0.16);
}

body.dashboard-screen .region-focus-list span,
body.dashboard-screen .trend-legend i,
body.dashboard-screen .donut-list i {
  background: #E6C875;
  box-shadow: 0 0 8px rgba(230, 200, 117, 0.36);
}

body.dashboard-screen .trend-grid line {
  stroke: rgba(220, 220, 220, 0.12);
}

body.dashboard-screen .trend-sale-line,
body.dashboard-screen .trend-paid-line {
  stroke: #E6C875;
}

body.dashboard-screen .trend-sale-area,
body.dashboard-screen .trend-paid-area {
  fill: rgba(230, 200, 117, 0.12);
}

body.dashboard-screen .trend-sale-point,
body.dashboard-screen .trend-paid-point {
  fill: #E6C875;
  stroke: #050505;
}

body.dashboard-screen .trend-sale,
body.dashboard-screen .trend-paid,
body.dashboard-screen .bar-fill {
  background: linear-gradient(180deg, #E6C875, #8A7048);
}

body.dashboard-screen .donut {
  background: conic-gradient(#E6C875 calc(var(--paid) * 1%), rgba(220, 220, 220, 0.12) 0);
}

body.dashboard-screen .donut::after {
  background: #121212;
}

body.dashboard-screen .donut-note,
body.dashboard-screen .donut-list strong {
  color: #E6C875;
}

body.dashboard-screen .screen-alert.danger,
body.dashboard-screen .screen-alert.warning {
  color: #C94545;
  border-color: rgba(201, 69, 69, 0.36);
}

.profile-analysis {
  background: linear-gradient(180deg, #f6fbff, #eef7fb);
  border: 1px solid #cfe0e8;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.analysis-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.analysis-head span {
  color: #496274;
  font-size: 13px;
  font-weight: 900;
}

.analysis-head strong {
  background: #12335d;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  padding: 7px 10px;
  white-space: nowrap;
}

.analysis-radar-wrap {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  display: grid;
  justify-content: center;
  min-height: 220px;
  padding: 8px;
}

.analysis-radar {
  max-width: 280px;
  width: 100%;
}

.radar-rings polygon {
  fill: none;
  stroke: rgba(134, 144, 156, 0.28);
  stroke-width: 0.8;
}

.radar-axis line {
  stroke: rgba(134, 144, 156, 0.2);
  stroke-width: 0.8;
}

.radar-fill {
  fill: rgba(22, 93, 255, 0.16);
}

.radar-line {
  fill: none;
  stroke: #165dff;
  stroke-linejoin: round;
  stroke-width: 2;
}

.analysis-radar circle {
  fill: #ff7d00;
  stroke: #fff;
  stroke-width: 1;
}

.analysis-radar text {
  fill: #4e5969;
  font-size: 10px;
  font-weight: 900;
  text-anchor: middle;
}

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

.analysis-item {
  background: #fff;
  border: 1px solid #d9e6ed;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.analysis-label {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.analysis-label span,
.analysis-label strong {
  color: #21334a;
  font-size: 13px;
  font-weight: 900;
}

.analysis-track {
  background: #e7eef2;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.analysis-track i {
  background: #165dff;
  border-radius: inherit;
  display: block;
  height: 100%;
}

.analysis-item.high .analysis-track i {
  background: #ff7d00;
}

.analysis-item.low .analysis-track i {
  background: #00b42a;
}

.analysis-item p {
  color: #5b6d7b;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.ai-suggestion {
  background: #fff9ed;
  border: 1px solid #ffe0ad;
  border-radius: 8px;
  padding: 12px 14px;
}

.ai-suggestion strong {
  color: #9a4f00;
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
}

.ai-suggestion p {
  color: #4e5969;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0;
}

.map-profile .analysis-head {
  align-items: flex-start;
  flex-direction: column;
}

.map-profile .analysis-head span,
.map-profile .analysis-label span,
.map-profile .analysis-label strong,
.map-profile .analysis-item p {
  color: #d9f3ff;
}

.map-profile .analysis-grid {
  grid-template-columns: 1fr;
}

.map-profile .analysis-radar-wrap {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(109, 211, 255, 0.12);
  min-height: 180px;
}

.map-profile .analysis-radar text,
.map-profile .analysis-radar circle {
  fill: #d9f3ff;
}

.map-profile .radar-rings polygon,
.map-profile .radar-axis line {
  stroke: rgba(217, 243, 255, 0.22);
}

.map-profile .radar-fill {
  fill: rgba(22, 93, 255, 0.18);
}

.map-profile .analysis-item {
  background: rgba(5, 24, 56, 0.72);
  border-color: rgba(109, 211, 255, 0.14);
}

.map-profile .analysis-track {
  background: rgba(127, 218, 255, 0.13);
}

.section-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-heading h3 {
  font-size: 19px;
  line-height: 1.2;
  margin: 4px 0 0;
}

.heading-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

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

.form-grid.single,
.form-grid.compact-grid {
  grid-template-columns: 1fr;
}

.form-grid.compact-grid.paired-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid label {
  display: grid;
  gap: 7px;
}

.form-grid span {
  color: #46534c;
  font-size: 13px;
  font-weight: 800;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  background: #fbfcfb;
  border: 1px solid #cad5ce;
  border-radius: 8px;
  color: var(--text);
  min-height: 40px;
  outline: none;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  line-height: 1.5;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(32, 122, 89, 0.14);
}

.toolbar {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(230px, 1fr) 160px 160px;
  margin-bottom: 14px;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 560px;
  overflow: auto;
}

.customer-name {
  color: var(--text);
  font-weight: 900;
}

.customer-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.status-pill,
.count-pill,
.amount-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 7px 9px;
  white-space: nowrap;
}

.status-pill.done {
  background: #eef1f4;
  color: #6b7280;
}

.count-pill {
  background: var(--blue-soft);
  color: var(--blue);
}

.status-pill {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.status-pill.warning,
.amount-pill.warning {
  background: var(--accent-soft);
  color: #8a4d10;
}

.status-pill.success {
  background: rgba(35, 197, 137, 0.18);
  color: #0e7a50;
}

.status-pill.danger,
.amount-pill.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.amount-pill {
  background: var(--success-soft);
  color: #008a22;
}

#financeView [data-order-tab-panel="payment"] .table-wrap table {
  table-layout: fixed;
  min-width: 1040px;
}

#financeView [data-order-tab-panel="payment"] .table-wrap th:first-child,
#financeView [data-order-tab-panel="payment"] .table-wrap td:first-child {
  width: 14%;
}

#financeView [data-order-tab-panel="payment"] .table-wrap th:nth-child(2),
#financeView [data-order-tab-panel="payment"] .table-wrap td:nth-child(2) {
  width: 10%;
}

#financeView [data-order-tab-panel="payment"] .table-wrap th:nth-child(3),
#financeView [data-order-tab-panel="payment"] .table-wrap td:nth-child(3) {
  width: 34%;
}

#financeView [data-order-tab-panel="payment"] .table-wrap th:nth-child(n+4),
#financeView [data-order-tab-panel="payment"] .table-wrap td:nth-child(n+4) {
  width: 10.5%;
}

.finance-order-items {
  display: grid;
  gap: 7px;
}

.finance-order-item {
  background: rgba(14, 165, 233, 0.07);
  border: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 7px 8px;
}

.finance-order-item strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.finance-order-item span,
.finance-order-items em,
.finance-order-empty {
  color: rgba(210, 235, 255, 0.62);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
}

.row-actions button {
  background: #eef3ef;
  border: 0;
  border-radius: 8px;
  color: #253129;
  font-size: 13px;
  font-weight: 800;
  min-height: 32px;
  padding: 0 10px;
}

.row-actions button:hover {
  background: #dfe8e2;
}

.row-actions button.danger-text {
  background: var(--danger-soft);
  color: var(--danger);
}

.customer-link-button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline;
  font: inherit;
  padding: 0;
  text-align: left;
}

.customer-link-button:hover {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.customer-detail-modal[hidden] {
  display: none;
}

.customer-detail-modal {
  inset: 0;
  position: fixed;
  z-index: 80;
}

.customer-detail-backdrop {
  backdrop-filter: blur(8px);
  background: rgba(2, 6, 23, 0.68);
  inset: 0;
  position: absolute;
}

.customer-detail-dialog {
  background: linear-gradient(145deg, rgba(8, 18, 38, 0.96), rgba(8, 31, 58, 0.92));
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), inset 0 0 24px rgba(59, 130, 246, 0.08);
  color: #fff;
  left: 50%;
  max-height: min(86vh, 920px);
  max-width: 1120px;
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 1120px);
}

.customer-detail-head {
  align-items: center;
  border-bottom: 1px solid rgba(125, 211, 252, 0.14);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 20px 22px 16px;
}

.customer-detail-head h3 {
  font-size: 24px;
  line-height: 1.2;
  margin: 4px 0 0;
}

.customer-detail-body {
  max-height: calc(min(86vh, 920px) - 78px);
  overflow: auto;
  padding: 18px 22px 22px;
}

.enterprise-verify-dialog {
  max-width: 1180px;
  width: min(94vw, 1180px);
}

#enterpriseVerifyModal {
  z-index: 120;
}

.enterprise-verify-title {
  align-items: center;
  display: flex;
  gap: 10px;
}

.enterprise-title-logo {
  border-radius: 14px;
  font-size: 18px;
  height: 42px;
  width: 42px;
}

.enterprise-verify-body {
  display: grid;
  gap: 16px;
}

.enterprise-verify-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 0.9fr 1.05fr 1.15fr;
}

.enterprise-verify-card {
  background: linear-gradient(145deg, rgba(12, 38, 78, 0.72), rgba(5, 18, 42, 0.66));
  border: 1px solid rgba(91, 203, 255, 0.2);
  border-radius: 14px;
  box-shadow: inset 0 0 18px rgba(91, 203, 255, 0.08);
  display: grid;
  gap: 12px;
  padding: 16px;
}

.enterprise-verify-card-title {
  align-items: center;
  color: #eafaff;
  display: flex;
  font-size: 16px;
  font-weight: 900;
  gap: 9px;
}

.enterprise-card-icon {
  background: linear-gradient(135deg, rgba(91, 203, 255, 0.28), rgba(37, 99, 235, 0.18));
  border-radius: 9px;
  color: #9feaff;
  font-size: 13px;
  height: 28px;
  width: 28px;
}

.enterprise-verify-card label {
  display: grid;
  gap: 7px;
}

.enterprise-verify-card label span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.enterprise-verify-card input {
  background: rgba(2, 12, 28, 0.62);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 10px;
  color: #fff;
  font: inherit;
  min-height: 40px;
  outline: none;
  padding: 10px 12px;
}

.enterprise-verify-card input:focus {
  border-color: rgba(56, 189, 248, 0.68);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.enterprise-search-actions {
  display: grid;
  gap: 12px;
}

.enterprise-search-button {
  align-items: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(37, 99, 235, 0.1));
  border: 1px solid rgba(91, 203, 255, 0.34);
  border-radius: 12px;
  color: #eafaff;
  display: flex;
  font-weight: 900;
  gap: 12px;
  justify-content: flex-start;
  min-height: 50px;
  padding: 0 14px;
  position: relative;
  text-decoration: none;
}

.enterprise-search-button::after {
  content: ">";
  color: #7de2ff;
  font-size: 20px;
  margin-left: auto;
}

.enterprise-search-logo {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.enterprise-search-logo svg {
  display: block;
  filter: drop-shadow(0 0 14px rgba(91, 203, 255, 0.2));
  height: 42px;
  width: 42px;
}

.logo-gsxt svg {
  filter: drop-shadow(0 0 13px rgba(255, 199, 76, 0.28));
}

.enterprise-search-button:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.28), rgba(37, 99, 235, 0.16));
  border-color: rgba(125, 211, 252, 0.62);
  box-shadow: 0 0 24px rgba(91, 203, 255, 0.14);
}

.enterprise-verify-note {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  margin: 0;
}

.customer-detail-summary {
  align-items: center;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.customer-detail-summary strong {
  color: #bfdbfe;
}

.customer-detail-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-detail-section {
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  padding: 14px;
}

.customer-detail-section h4 {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  margin: 0 0 12px;
}

.detail-list {
  display: grid;
  gap: 10px 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.detail-list.multiline {
  grid-template-columns: 1fr;
}

.detail-list div {
  min-width: 0;
}

.detail-list dt {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  margin-bottom: 4px;
}

.detail-list dd {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
}

.order-payment-section {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.deal-summary-section {
  position: relative;
}

.deal-total-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(30, 64, 175, 0.18));
  border: 1px solid rgba(125, 211, 252, 0.26);
  border-radius: 10px;
  box-shadow: inset 0 0 18px rgba(56, 189, 248, 0.08), 0 10px 26px rgba(2, 8, 23, 0.2);
  color: rgba(255, 255, 255, 0.86);
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.deal-total-card:hover {
  border-color: rgba(125, 211, 252, 0.48);
  box-shadow: inset 0 0 22px rgba(56, 189, 248, 0.13), 0 12px 30px rgba(14, 165, 233, 0.13);
}

.deal-total-card span,
.deal-total-card em {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.deal-total-card strong {
  color: #67e8f9;
  font-size: 24px;
  line-height: 1.15;
}

.deal-summary-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.usage-overview-title {
  margin-top: 4px !important;
}

.usage-summary-meta {
  margin-top: -2px;
}

.deal-year-popover {
  background: rgba(2, 8, 23, 0.86);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  max-height: 260px;
  overflow: auto;
  padding: 8px;
}

.deal-year-popover[hidden] {
  display: none;
}

.deal-year-table th,
.deal-year-table td {
  white-space: nowrap;
}

.deal-years-dialog {
  max-width: 720px;
}

.order-history-dialog {
  max-width: min(1120px, calc(100vw - 64px));
}

.report-metric-dialog {
  max-width: min(1120px, calc(100vw - 64px));
}

.modal-total-card {
  margin-bottom: 12px;
}

.report-detail-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.report-detail-summary-grid button {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.13), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.report-detail-summary-grid button.active,
.report-detail-summary-grid button:hover {
  border-color: rgba(91, 203, 255, 0.56);
  box-shadow: inset 0 0 22px rgba(91, 203, 255, 0.1), 0 0 18px rgba(91, 203, 255, 0.14);
  transform: translateY(-1px);
}

.report-detail-summary-grid span,
.report-detail-summary-grid em {
  color: rgba(224, 247, 255, 0.68);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.report-detail-summary-grid strong {
  color: #5BCBFF;
  font-size: 22px;
  overflow-wrap: anywhere;
  text-shadow: 0 0 12px rgba(91, 203, 255, 0.22);
}

.report-detail-toolbar {
  align-items: center;
  border-top: 1px solid rgba(125, 211, 252, 0.12);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-top: 12px;
}

.report-period-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-period-tabs button,
.report-custom-range button {
  background: rgba(14, 43, 79, 0.62);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-weight: 900;
  padding: 8px 12px;
}

.report-period-tabs button.active,
.report-period-tabs button:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(37, 99, 235, 0.22));
  border-color: rgba(91, 203, 255, 0.52);
  color: #fff;
}

.report-custom-range {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.report-custom-range label {
  display: grid;
  gap: 4px;
}

.report-custom-range span {
  color: rgba(224, 247, 255, 0.58);
  font-size: 11px;
  font-weight: 900;
}

.report-custom-range input {
  background: rgba(8, 18, 38, 0.8);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 8px;
  color: #fff;
  font: inherit;
  padding: 7px 9px;
}

.report-detail-total {
  margin-bottom: 12px;
}

.report-detail-table {
  max-height: min(46vh, 460px);
}

.report-detail-mobile-list {
  display: none;
}

.report-detail-mobile-card {
  background: linear-gradient(180deg, rgba(18, 55, 98, 0.82), rgba(5, 21, 45, 0.86));
  border: 1px solid rgba(91, 203, 255, 0.2);
  border-radius: 14px;
  box-shadow: inset 0 0 18px rgba(91, 203, 255, 0.06);
  display: grid;
  gap: 8px;
  padding: 13px;
}

.report-detail-mobile-card strong {
  color: #fff;
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.report-detail-mobile-card span,
.report-detail-mobile-card em {
  color: rgba(224, 247, 255, 0.62);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.report-detail-mobile-card b {
  color: #5BCBFF;
  font-size: 24px;
  line-height: 1.1;
  text-shadow: 0 0 12px rgba(91, 203, 255, 0.18);
}

.order-history-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.order-history-summary div {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 9px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
}

.order-history-summary span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 800;
}

.order-history-summary strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.order-history-table-wrap {
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
}

.order-history-table {
  min-width: 0;
}

.order-history-table th,
.order-history-table td {
  padding: 8px 10px;
}

.order-history-table td {
  line-height: 1.22;
}

.order-history-table th:first-child,
.order-history-table td:first-child {
  width: 13%;
}

.order-history-table th:nth-child(2),
.order-history-table td:nth-child(2) {
  width: 15%;
}

.order-history-table th:nth-child(3),
.order-history-table td:nth-child(3) {
  width: 32%;
}

.order-history-table th:nth-child(4),
.order-history-table td:nth-child(4) {
  width: 8%;
}

.order-history-table th:nth-child(5),
.order-history-table td:nth-child(5),
.order-history-table th:nth-child(6),
.order-history-table td:nth-child(6) {
  width: 16%;
  white-space: nowrap;
}

.order-history-list {
  display: grid;
  gap: 10px;
  max-height: min(44vh, 420px);
  overflow: auto;
  padding-right: 4px;
}

.order-history-card {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 10px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.order-history-card.voided {
  opacity: 0.68;
}

.order-history-card-main {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.order-history-card-title {
  color: rgba(255, 255, 255, 0.96);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.order-history-card-meta {
  color: rgba(224, 247, 255, 0.62);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  margin-top: 6px;
}

.order-history-card-amount {
  display: grid;
  gap: 6px;
  justify-items: end;
  min-width: 120px;
}

.order-history-card-amount strong {
  color: #fbbf24;
  font-size: 18px;
  line-height: 1.1;
  white-space: nowrap;
}

.order-history-card-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.finance-product-dialog {
  max-width: min(1560px, calc(100vw - 44px));
}

.finance-product-list {
  display: grid;
  gap: 16px;
  max-height: 58vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 8px 26px 0;
}

.finance-product-row {
  background: rgba(2, 12, 28, 0.42);
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  padding: 12px;
}

.finance-product-picker-row,
.finance-product-metrics-row {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.finance-product-picker-row {
  align-items: end;
  grid-template-columns: minmax(0, 1fr);
}

.finance-product-metrics-row {
  align-items: end;
  grid-template-columns: 82px 118px minmax(138px, 0.86fr) 118px minmax(138px, 0.86fr) minmax(330px, 1.55fr) 116px;
}

.finance-product-picker-row > *,
.finance-product-metrics-row > * {
  min-width: 0;
}

.finance-product-picker-row .product-quick-tags {
  align-self: end;
}

.product-search-field {
  min-width: 0;
}

.product-quick-tags {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.product-quick-tag {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  min-height: 28px;
  padding: 0 10px;
}

.product-quick-tag:hover {
  background: rgba(56, 189, 248, 0.26);
  border-color: rgba(103, 232, 249, 0.58);
  color: #fff;
}

.product-quick-tag.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.42), rgba(22, 93, 255, 0.3));
  border-color: rgba(125, 211, 252, 0.78);
  box-shadow: 0 0 18px rgba(91, 203, 255, 0.18);
  color: #fff;
}

.product-candidate-list {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.product-candidate-button,
.product-candidate-empty {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(2, 12, 28, 0.52));
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 9px;
  color: #fff;
  min-height: 52px;
  min-width: 0;
  padding: 8px 10px;
}

.product-candidate-button {
  cursor: pointer;
  display: grid;
  gap: 4px;
  text-align: left;
}

.product-candidate-button strong {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-candidate-button span,
.product-candidate-empty {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.product-candidate-button:hover,
.product-candidate-button.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.34), rgba(22, 93, 255, 0.22));
  border-color: rgba(103, 232, 249, 0.64);
  box-shadow: inset 0 0 18px rgba(91, 203, 255, 0.12), 0 0 18px rgba(91, 203, 255, 0.14);
}

.product-candidate-button:disabled {
  cursor: default;
  opacity: 0.68;
}

.finance-product-row label {
  min-width: 0;
}

.finance-product-row select,
.finance-product-row input {
  background: rgba(2, 12, 28, 0.62);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 9px;
  color: #fff;
  font: inherit;
  min-height: 38px;
  outline: none;
  padding: 8px 10px;
  width: 100%;
}

.product-cascade-field select {
  color: rgba(255, 255, 255, 0.9);
}

.product-stepper {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
  max-width: 680px;
  min-width: 0;
}

.product-step-path {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.product-step-chip {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  min-height: 28px;
  max-width: 220px;
  overflow: hidden;
  padding: 0 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-step-chip:hover {
  background: rgba(56, 189, 248, 0.28);
  border-color: rgba(125, 211, 252, 0.72);
  color: #fff;
}

.product-step-chip:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.42);
  content: ">";
  margin-left: 8px;
}

.product-step-chip:disabled {
  cursor: default;
  opacity: 0.72;
}

.product-step-field {
  max-width: 680px;
  min-width: 0;
}

.finance-product-paid-control {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(86px, 1fr) 68px minmax(112px, 0.85fr);
}

.finance-product-paid-control .ghost-button {
  min-height: 38px;
  padding-left: 8px;
  padding-right: 8px;
}

.finance-product-paid-commission-inline {
  min-height: 38px;
  padding: 6px 8px;
}

.finance-product-row select:disabled,
.finance-product-row input:disabled {
  opacity: 0.72;
}

.finance-product-total,
.finance-product-commission {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 9px;
  display: grid;
  gap: 2px;
  min-height: 38px;
  padding: 7px 9px;
}

.finance-product-row span,
.finance-product-total span,
.finance-product-commission span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.finance-product-total strong,
.finance-product-commission strong,
.finance-product-summary {
  color: #5BCBFF;
  font-weight: 950;
}

.finance-product-summary {
  border-top: 1px solid rgba(125, 211, 252, 0.14);
  margin-top: 12px;
  padding-top: 12px;
  text-align: right;
}

.order-payment-meta {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-payment-meta div {
  background: rgba(14, 165, 233, 0.07);
  border: 1px solid rgba(125, 211, 252, 0.13);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 9px;
}

.order-payment-meta span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 800;
}

.order-payment-meta strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.usage-jump-card {
  appearance: none;
  background: rgba(14, 165, 233, 0.07);
  border: 1px solid rgba(125, 211, 252, 0.13);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 9px;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.usage-jump-card span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 800;
}

.usage-jump-card strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.usage-jump-card em {
  color: rgba(91, 203, 255, 0.78);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.usage-jump-card:hover {
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(91, 203, 255, 0.48);
  box-shadow: 0 0 18px rgba(14, 165, 233, 0.18);
  transform: translateY(-1px);
}

.usage-jump-card:hover em {
  opacity: 1;
}

.jump-focus-highlight {
  animation: jump-focus-pulse 1.65s ease;
  border-color: rgba(91, 203, 255, 0.78) !important;
  box-shadow: 0 0 0 3px rgba(91, 203, 255, 0.16), 0 0 26px rgba(91, 203, 255, 0.26) !important;
}

@keyframes jump-focus-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(91, 203, 255, 0), 0 0 0 rgba(91, 203, 255, 0);
  }
  28%,
  72% {
    box-shadow: 0 0 0 3px rgba(91, 203, 255, 0.18), 0 0 28px rgba(91, 203, 255, 0.32);
  }
}

.detail-table-wrap {
  max-height: 240px;
  overflow: auto;
}

.detail-order-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.detail-order-table th,
.detail-order-table td {
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}

.detail-order-table th {
  background: rgba(14, 165, 233, 0.1);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.detail-order-table td {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.detail-order-table th:first-child,
.detail-order-table td:first-child {
  width: 30%;
}

.detail-order-table th:nth-child(2),
.detail-order-table td:nth-child(2) {
  width: 9%;
}

.detail-order-table th:nth-child(3),
.detail-order-table td:nth-child(3),
.detail-order-table th:nth-child(4),
.detail-order-table td:nth-child(4),
.detail-order-table th:nth-child(5),
.detail-order-table td:nth-child(5),
.detail-order-table th:nth-child(6),
.detail-order-table td:nth-child(6) {
  width: 15%;
}

.detail-log-item {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding: 10px 0 0;
}

.detail-log-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.detail-log-item strong {
  color: #bfdbfe;
  display: block;
  margin-bottom: 6px;
}

.detail-log-item p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  margin: 0 0 6px;
  white-space: pre-wrap;
}

.contract-original-archive {
  grid-column: 1 / -1;
}

.contract-original-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.contract-original-head h4 {
  margin: 0;
}

.contract-original-head span {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
  padding: 4px 10px;
}

.system-service-section {
  grid-column: 1 / -1;
}

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

.system-service-form label {
  display: grid;
  gap: 6px;
}

.system-service-form .system-expiry-field {
  grid-column: span 2;
}

.system-service-form label span,
.system-service-total span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.system-service-form input,
.system-service-form select {
  background: rgba(2, 12, 28, 0.56);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  min-height: 40px;
  padding: 0 10px;
}

.expiry-date-control {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.expiry-shortcuts {
  display: flex;
  gap: 8px;
}

.finance-expiry-field {
  background: rgba(14, 165, 233, 0.06);
  border: 1px dashed rgba(125, 211, 252, 0.22);
  border-radius: 12px;
  padding: 12px;
}

.finance-expiry-control .expiry-shortcuts {
  flex-wrap: wrap;
}

.expiry-shortcuts button {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 8px;
  color: #bfdbfe;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  min-height: 40px;
  padding: 0 12px;
}

.expiry-shortcuts button:hover {
  background: rgba(14, 165, 233, 0.22);
  border-color: rgba(125, 211, 252, 0.42);
  color: #fff;
}

.system-service-form .wide,
.system-service-total {
  grid-column: 1 / -1;
}

.system-service-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.system-service-summary div {
  background: rgba(2, 12, 28, 0.46);
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 10px;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.system-service-summary span,
.system-service-summary em {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.system-service-summary strong {
  color: #7dd3fc;
  font-size: 16px;
  font-weight: 950;
}

.system-service-total {
  align-items: center;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.18), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
}

.system-service-total div {
  display: grid;
  gap: 4px;
}

.system-service-total strong {
  color: #7dd3fc;
  font-size: 22px;
  font-weight: 950;
}

.contract-original-list {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.archived-contract-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr) 62px;
  min-width: 0;
  padding: 10px 4px;
}

.archived-contract-card + .archived-contract-card {
  margin-top: 0;
}

.contract-file-index {
  align-items: center;
  background: linear-gradient(180deg, #71a7ff, #487ce8);
  border-radius: 4px;
  color: #fff;
  display: flex;
  font-size: 11px;
  font-weight: 950;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.contract-file-main {
  min-width: 0;
}

.contract-file-link {
  background: transparent;
  border: 0;
  color: #58a6ff;
  cursor: pointer;
  display: block;
  font-size: 15px;
  font-weight: 850;
  margin-bottom: 4px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.contract-file-link:hover {
  color: #8cc4ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.archived-contract-card p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.contract-file-preview-button {
  background: rgba(88, 166, 255, 0.12);
  border: 1px solid rgba(88, 166, 255, 0.42);
  border-radius: 8px;
  color: rgba(226, 242, 255, 0.92);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  min-height: 32px;
  padding: 0 10px;
}

.contract-file-preview-button:hover {
  background: rgba(88, 166, 255, 0.22);
  border-color: rgba(125, 211, 252, 0.72);
}

.archived-contract-preview {
  grid-column: 1 / -1;
  margin: 4px 0 0;
}

.compact-empty {
  min-height: 72px;
  padding: 20px;
}

.customer-detail-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

.contract-review-dialog {
  max-width: 980px;
  width: min(92vw, 980px);
}

.contract-preview-dialog {
  background: #f3f4f6;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #1f2937;
  height: 100vh;
  left: 0;
  max-height: none;
  max-width: none;
  top: 0;
  transform: none;
  width: 100vw;
}

.contract-preview-dialog + * {
  display: none;
}

.contract-viewer-head {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  height: 58px;
  justify-content: space-between;
  padding: 0 16px 0 18px;
}

.contract-viewer-file {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.contract-viewer-icon {
  align-items: center;
  background: linear-gradient(180deg, #6ca4ff, #477be8);
  border-radius: 4px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 950;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.contract-viewer-head h3 {
  color: #374151;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  margin: 0;
  max-width: min(52vw, 680px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-viewer-close {
  background: transparent;
  border: 0;
  color: #4b5563;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  min-height: 38px;
  padding: 0 8px;
}

.contract-viewer-close:hover {
  color: #111827;
}

.contract-preview-body {
  background: #f4f5f7;
  border: 0;
  border-radius: 0;
  height: calc(100vh - 58px);
  margin: 0;
  overflow: hidden;
}

.contract-preview-toolbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
  min-height: 50px;
  padding: 8px 14px;
}

.contract-preview-toolbar strong {
  color: #374151;
  font-size: 15px;
  text-align: center;
}

.contract-preview-tools {
  align-items: center;
  display: flex;
  gap: 10px;
}

.contract-preview-toolbar .ghost-button {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #4b5563;
}

.contract-preview-toolbar .ghost-button:hover {
  background: #eef2ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.contract-preview-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.contract-preview-stage {
  align-items: start;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.9), rgba(246, 247, 249, 0.76)),
    #f4f5f7;
  display: flex;
  height: calc(100vh - 108px);
  justify-content: center;
  overflow: auto;
  padding: 42px 28px 64px;
}

.contract-preview-stage img {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  display: block;
  height: auto;
  max-height: calc(100vh - 170px);
  max-width: min(100%, 1060px);
  min-width: 0;
  object-fit: contain;
  width: auto;
}

.contract-preview-stage iframe {
  background: #fff;
  border: 1px solid #d1d5db;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  height: calc(100vh - 148px);
  max-width: 1280px;
  width: min(100%, 1180px);
}

.contract-preview-stage img[hidden],
.contract-preview-stage iframe[hidden],
.contract-preview-stage pre[hidden] {
  display: none !important;
}

.contract-preview-body pre {
  color: #374151;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  max-height: min(76vh, 820px);
  overflow: auto;
  padding: 16px;
  white-space: pre-wrap;
}

.contract-preview-stage pre {
  align-self: center;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  max-width: 620px;
  min-height: auto;
  text-align: center;
  width: min(100%, 620px);
}

.contract-preview-stage pre.contract-preview-text-page {
  align-self: flex-start;
  border-radius: 0;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  max-height: none;
  max-width: min(100%, 900px);
  min-height: 1120px;
  padding: 56px 68px;
  text-align: left;
  white-space: pre-wrap;
  width: min(100%, 900px);
}

.contract-preview-stage pre.contract-preview-message {
  color: #4b5563;
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

.contract-review-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contract-review-grid label {
  display: grid;
  gap: 7px;
}

.contract-review-grid label.wide {
  grid-column: 1 / -1;
}

.contract-review-products {
  background: rgba(4, 18, 42, 0.58);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  padding: 12px;
}

.contract-review-products-head {
  align-items: center;
  backdrop-filter: blur(8px);
  background: rgba(4, 18, 42, 0.86);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: -4px -4px 0;
  padding: 4px;
  position: sticky;
  top: 0;
  z-index: 2;
}

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

.review-product-add-inline {
  justify-self: start;
  margin-top: 2px;
}

.review-product-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  min-width: 1060px;
  padding: 2px 0;
}

.review-product-cascade-row,
.review-product-metrics-row {
  align-items: end;
  display: grid;
  gap: 10px;
}

.review-product-cascade-row {
  grid-template-columns: minmax(0, 1fr);
}

.review-product-metrics-row {
  grid-template-columns: 92px 132px 126px minmax(148px, 0.9fr) minmax(148px, 0.9fr) auto;
}

.review-product-row label {
  min-width: 0;
}

.review-product-row select {
  background: rgba(2, 12, 28, 0.62);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 10px;
  color: #fff;
  font: inherit;
  min-height: 40px;
  outline: none;
  padding: 10px 12px;
  width: 100%;
}

.review-product-row input {
  background: rgba(2, 12, 28, 0.62);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 10px;
  color: #fff;
  font: inherit;
  min-height: 40px;
  outline: none;
  padding: 10px 12px;
  width: 100%;
}

.review-product-total,
.review-product-commission {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 10px;
  display: grid;
  gap: 2px;
  min-height: 40px;
  padding: 7px 10px;
}

.review-product-total strong,
.review-product-commission strong,
.review-product-summary {
  color: #5BCBFF;
  font-weight: 900;
}

.review-product-total span,
.review-product-commission span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.review-product-summary {
  border-top: 1px solid rgba(125, 211, 252, 0.12);
  padding-top: 10px;
  text-align: right;
}

.contract-review-grid span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.contract-review-grid input,
.contract-review-grid textarea {
  background: rgba(2, 12, 28, 0.62);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 10px;
  color: #fff;
  font: inherit;
  min-height: 40px;
  outline: none;
  padding: 10px 12px;
  resize: vertical;
}

.contract-review-grid textarea {
  line-height: 1.55;
}

.contract-review-grid input:focus,
.contract-review-grid textarea:focus {
  border-color: rgba(56, 189, 248, 0.68);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.contract-review-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 10px;
  color: rgba(255, 244, 214, 0.92);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
  padding: 11px 13px;
}

.contract-original-button {
  margin-bottom: 12px;
}

.contract-original-preview {
  background: rgba(2, 12, 28, 0.62);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}

.contract-original-preview-head {
  align-items: center;
  border-bottom: 1px solid rgba(125, 211, 252, 0.14);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.contract-original-preview-head strong {
  color: #fff;
  font-size: 14px;
}

.contract-original-preview-head span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.contract-original-preview iframe {
  background: #fff;
  border: 0;
  display: block;
  height: min(58vh, 560px);
  width: 100%;
}

.contract-original-preview pre {
  color: rgba(255, 255, 255, 0.9);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  max-height: min(58vh, 560px);
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

body.modal-open {
  overflow: hidden;
}

.stack-list,
.template-list,
.rank-list,
.timeline,
.pipeline-bars {
  display: grid;
  gap: 10px;
}

.empty-state {
  align-items: center;
  background: #f8faf8;
  border: 1px dashed #c9d5cf;
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-weight: 700;
  justify-content: center;
  min-height: 94px;
  padding: 20px;
  text-align: center;
}

.reminder-item,
.template-item,
.rank-item,
.timeline-item {
  background: #f8faf8;
  border: 1px solid #e1e9e4;
  border-radius: 8px;
  padding: 12px;
}

.reminder-item {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
}

.reminder-title,
.template-title,
.rank-title,
.timeline-title {
  font-weight: 900;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.pipeline-row,
.rank-row {
  display: grid;
  gap: 10px;
}

.pipeline-meta,
.rank-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
}

.bar-track {
  background: #e8eee9;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.bar-fill {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: inherit;
  height: 100%;
}

.timeline-item {
  border-left: 4px solid var(--primary);
}

.timeline-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  margin-top: 5px;
}

.timeline-content {
  line-height: 1.6;
  margin: 10px 0 0;
  white-space: pre-wrap;
}

.template-item {
  display: grid;
  gap: 8px;
}

.template-actions {
  display: flex;
  gap: 8px;
}

.template-actions button {
  background: #eef3ef;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  min-height: 32px;
  padding: 0 10px;
}

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

.file-button {
  position: relative;
}

.file-button input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.danger-panel {
  background: #fffafa;
}

.span-two {
  grid-column: 1 / -1;
}

.data-clean-toolbar {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 1fr) 160px 190px auto auto;
}

.data-health-result {
  background: rgba(5, 18, 42, 0.38);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 12px;
  box-shadow: inset 0 0 18px rgba(56, 189, 248, 0.08);
  color: rgba(255, 255, 255, 0.78);
  margin-top: 14px;
  padding: 14px;
}

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

.data-health-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(8, 18, 44, 0.82));
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 10px;
  padding: 12px;
}

.data-health-action-card {
  appearance: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.data-health-action-card:hover,
.data-health-action-card:focus-visible {
  border-color: rgba(103, 232, 249, 0.58);
  box-shadow: inset 0 0 18px rgba(91, 203, 255, 0.12), 0 0 22px rgba(91, 203, 255, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.data-health-action-card:disabled {
  cursor: default;
  opacity: 0.58;
  transform: none;
}

.data-health-card.single {
  margin-bottom: 12px;
  max-width: 220px;
}

.data-health-card span {
  color: rgba(255, 255, 255, 0.62);
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.data-health-card strong {
  color: #67e8f9;
  display: block;
  font-size: 24px;
  margin-top: 4px;
}

.data-health-card em {
  color: rgba(255, 255, 255, 0.52);
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.5;
  margin-top: 6px;
}

.formal-audit-edit-dialog {
  max-width: 1180px;
  width: min(94vw, 1180px);
}

.formal-audit-edit-body {
  display: grid;
  gap: 12px;
  max-height: calc(min(86vh, 920px) - 150px);
  overflow: auto;
  padding: 18px 22px 6px;
}

.formal-audit-edit-help {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 10px;
  color: rgba(224, 247, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  margin: 0;
  padding: 10px 12px;
}

.formal-audit-edit-list {
  display: grid;
  gap: 10px;
}

.formal-audit-edit-row {
  background: linear-gradient(135deg, rgba(8, 31, 58, 0.78), rgba(5, 18, 42, 0.76));
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 0.85fr) minmax(360px, 1.4fr);
  padding: 12px;
}

.formal-audit-customer {
  display: grid;
  gap: 5px;
}

.formal-audit-customer strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  line-height: 1.35;
}

.formal-audit-customer span {
  color: rgba(224, 247, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

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

.formal-audit-fields label {
  color: rgba(224, 247, 255, 0.72);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
}

.formal-audit-fields input,
.formal-audit-fields select {
  background: rgba(8, 28, 56, 0.88);
  border: 1px solid rgba(125, 211, 252, 0.26);
  border-radius: 9px;
  color: #fff;
  font: inherit;
  font-size: 14px;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

.formal-audit-fields input:focus,
.formal-audit-fields select:focus {
  border-color: rgba(103, 232, 249, 0.68);
  box-shadow: 0 0 0 3px rgba(91, 203, 255, 0.12);
  outline: none;
}

.formal-audit-edit-footer {
  border-top: 1px solid rgba(125, 211, 252, 0.14);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 22px 18px;
}

.data-health-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

.data-health-row {
  align-items: start;
  background: rgba(15, 35, 68, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 10px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.data-health-row strong {
  color: #fff;
}

.data-health-row span,
.data-health-note {
  color: rgba(255, 255, 255, 0.6);
}

.data-health-note {
  font-size: 13px;
  font-weight: 700;
  margin: 12px 0 0;
}

.toast {
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background:
    linear-gradient(135deg, rgba(29, 142, 255, 0.22), rgba(7, 19, 46, 0.78)),
    rgba(4, 12, 30, 0.72);
  border: 1px solid rgba(100, 215, 255, 0.38);
  border-radius: 999px;
  box-shadow:
    0 0 28px rgba(64, 194, 255, 0.24),
    0 14px 34px rgba(0, 0, 0, 0.42),
    inset 0 0 18px rgba(92, 213, 255, 0.12);
  color: #eafaff;
  font-size: 15px;
  font-weight: 900;
  left: 50%;
  opacity: 0;
  letter-spacing: 0;
  line-height: 1.35;
  max-width: min(680px, calc(100vw - 40px));
  min-width: min(360px, calc(100vw - 40px));
  padding: 13px 24px;
  pointer-events: none;
  position: fixed;
  text-align: center;
  text-shadow: 0 0 12px rgba(100, 215, 255, 0.28);
  top: auto;
  bottom: calc(34px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 18px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 12000;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .workspace-grid,
  .follow-grid,
  .wechat-layout,
  .finance-layout,
  .contract-layout,
  .map-layout,
  .dashboard-grid,
  .report-grid,
  .data-grid,
  .system-grid,
  .settings-split {
    grid-template-columns: 1fr;
  }

  .enterprise-verify-grid {
    grid-template-columns: 1fr;
  }

  .enterprise-name-row {
    grid-template-columns: 1fr;
  }

  .map-stage {
    min-height: 360px;
  }

  .satellite-stage,
  .earth-canvas {
    min-height: 500px;
  }
}

@media (max-width: 860px) {
  body.dashboard-screen {
    overflow: auto;
  }

  body.dashboard-screen #dashboardView.active {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding: 8px;
  }

  body.dashboard-screen .bigscreen-topbar {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 12px;
    text-align: center;
  }

  body.dashboard-screen .bigscreen-topbar::before,
  body.dashboard-screen .bigscreen-topbar::after {
    display: none;
  }

  body.dashboard-screen .bigscreen-topbar h2 {
    font-size: 24px;
    letter-spacing: 1px;
    white-space: normal;
  }

  body.dashboard-screen .screen-meta,
  body.dashboard-screen .screen-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  body.dashboard-screen .command-dashboard {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  body.dashboard-screen .cockpit-column {
    overflow: visible;
  }

  body.dashboard-screen .cockpit-map-panel .earth-canvas,
  body.dashboard-screen .earth-canvas {
    min-height: 460px;
  }

  body.dashboard-screen .earth-toolbar {
    align-items: center;
    flex-direction: row;
    left: 12px;
    right: 12px;
    top: 12px;
    width: auto;
  }

  body.dashboard-screen .earth-toolbar .segmented-control,
  body.dashboard-screen .earth-toolbar .zoom-control {
    display: flex;
  }

  body.dashboard-screen .earth-toolbar .map-mode {
    writing-mode: horizontal-tb;
  }

  body.dashboard-screen .earth-toolbar .map-mode,
  body.dashboard-screen .earth-toolbar .icon-button,
  body.dashboard-screen .earth-toolbar .ghost-button {
    border-radius: 8px;
    width: auto;
    min-width: 34px;
    padding: 0 10px;
  }

  body.dashboard-screen .bigscreen-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    margin-top: 8px;
    position: static;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    position: static;
  }

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

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-content {
    padding: 16px;
  }

  .metric-grid,
  .form-grid,
  .toolbar,
  .map-detail-grid,
  .analysis-grid,
  .button-grid {
    grid-template-columns: 1fr;
  }

  .map-stage {
    min-height: 300px;
    padding: 16px;
  }

  .satellite-stage {
    min-height: 430px;
    padding: 0;
  }

  .earth-canvas {
    min-height: 430px;
  }

  .earth-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .region-focus-list {
    max-height: 76px;
  }

  .segmented-control,
  .zoom-control {
    width: 100%;
  }

  .map-mode,
  .zoom-control input {
    flex: 1;
  }

  .map-plane {
    transform: rotateX(38deg) rotateZ(-6deg);
  }
}

@media (max-width: 560px) {
  .nav-list {
    grid-template-columns: 1fr;
  }

  .topbar h2 {
    font-size: 24px;
  }

  th,
  td {
    padding: 10px;
  }
}

body.dashboard-screen {
  background:
    radial-gradient(circle at 50% 16%, rgba(14, 94, 143, 0.28), transparent 34%),
    linear-gradient(180deg, #071421 0%, #020811 100%);
  color: #eaf8ff;
}

body.dashboard-screen .app-shell,
body.dashboard-screen .main-content,
body.dashboard-screen #dashboardView.active {
  background: transparent;
}

body.dashboard-screen .command-dashboard {
  background:
    radial-gradient(circle at 52% 38%, rgba(19, 106, 151, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(5, 25, 43, 0.72), rgba(2, 9, 18, 0.92));
  border-color: rgba(73, 194, 255, 0.22);
  box-shadow: inset 0 0 70px rgba(20, 116, 177, 0.12), 0 0 38px rgba(0, 0, 0, 0.3);
}

body.dashboard-screen .command-dashboard::before {
  background:
    linear-gradient(90deg, rgba(58, 169, 228, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(58, 169, 228, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.32;
}

body.dashboard-screen .bigscreen-topbar {
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(31, 149, 212, 0.26) 34%, rgba(31, 149, 212, 0.26) 66%, transparent 82%),
    linear-gradient(180deg, rgba(8, 40, 66, 0.86), rgba(4, 16, 31, 0.92));
  border-color: rgba(73, 194, 255, 0.34);
  border-bottom-color: rgba(73, 194, 255, 0.22);
  box-shadow: inset 0 -16px 26px rgba(26, 139, 208, 0.14), 0 0 24px rgba(23, 113, 170, 0.16);
}

body.dashboard-screen .bigscreen-topbar::before,
body.dashboard-screen .bigscreen-topbar::after {
  background: linear-gradient(90deg, transparent, rgba(90, 218, 255, 0.88), transparent);
}

body.dashboard-screen .bigscreen-topbar h2 {
  color: #eaf8ff;
  text-shadow: 0 0 14px rgba(81, 213, 255, 0.72), 0 0 28px rgba(32, 145, 214, 0.34);
}

body.dashboard-screen .screen-meta,
body.dashboard-screen .screen-actions button,
body.dashboard-screen .cockpit-panel .eyebrow,
body.dashboard-screen .cockpit-map-panel .eyebrow {
  color: rgba(224, 247, 255, 0.74);
}

body.dashboard-screen .screen-actions button {
  background: rgba(8, 35, 57, 0.56);
  border-color: rgba(79, 198, 255, 0.28);
}

body.dashboard-screen .screen-actions button:hover {
  color: #75ddff;
  border-color: rgba(117, 221, 255, 0.72);
  box-shadow: 0 0 10px rgba(117, 221, 255, 0.2);
}

body.dashboard-screen .bigscreen-footer {
  background: linear-gradient(180deg, rgba(5, 22, 40, 0.78), rgba(2, 10, 20, 0.92));
  border-color: rgba(73, 194, 255, 0.3);
  box-shadow: inset 0 0 20px rgba(29, 139, 209, 0.12);
}

body.dashboard-screen .bigscreen-footer button {
  background: rgba(8, 35, 57, 0.52);
  border-color: rgba(73, 194, 255, 0.22);
  color: rgba(224, 247, 255, 0.72);
}

body.dashboard-screen .bigscreen-footer button.active,
body.dashboard-screen .bigscreen-footer button:hover {
  background: linear-gradient(135deg, rgba(28, 141, 214, 0.82), rgba(8, 54, 91, 0.92));
  border-color: rgba(117, 221, 255, 0.72);
  color: #ffffff;
  box-shadow: inset 0 0 18px rgba(104, 220, 255, 0.18), 0 0 16px rgba(45, 177, 242, 0.28);
}

body.dashboard-screen .panel.cockpit-panel,
body.dashboard-screen .panel.cockpit-map-panel {
  background:
    linear-gradient(180deg, rgba(9, 42, 67, 0.74), rgba(3, 17, 32, 0.88));
  border: 1px solid rgba(73, 194, 255, 0.32);
  border-radius: 7px;
  box-shadow: inset 0 0 26px rgba(59, 184, 241, 0.09), 0 0 24px rgba(3, 12, 24, 0.28);
  color: #eaf8ff;
  position: relative;
}

body.dashboard-screen .panel.cockpit-panel::before,
body.dashboard-screen .panel.cockpit-map-panel::before {
  background:
    linear-gradient(90deg, #5bd9ff 0 24px, transparent 24px calc(100% - 24px), #5bd9ff calc(100% - 24px) 100%) top / 100% 1px no-repeat,
    linear-gradient(90deg, #5bd9ff 0 24px, transparent 24px calc(100% - 24px), #5bd9ff calc(100% - 24px) 100%) bottom / 100% 1px no-repeat,
    linear-gradient(180deg, #5bd9ff 0 18px, transparent 18px calc(100% - 18px), #5bd9ff calc(100% - 18px) 100%) left / 1px 100% no-repeat,
    linear-gradient(180deg, #5bd9ff 0 18px, transparent 18px calc(100% - 18px), #5bd9ff calc(100% - 18px) 100%) right / 1px 100% no-repeat;
  border-radius: 7px;
  content: "";
  inset: 0;
  opacity: 0.62;
  pointer-events: none;
  position: absolute;
}

body.dashboard-screen .panel.cockpit-map-panel {
  background:
    radial-gradient(circle at 50% 44%, rgba(44, 166, 229, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(7, 32, 54, 0.62), rgba(2, 10, 20, 0.84));
}

body.dashboard-screen .cockpit-panel .section-heading,
body.dashboard-screen .cockpit-map-panel .section-heading {
  border-bottom-color: rgba(73, 194, 255, 0.2);
}

body.dashboard-screen .cockpit-panel h3,
body.dashboard-screen .cockpit-map-panel h3,
body.dashboard-screen .cockpit-metrics .metric-card strong,
body.dashboard-screen .donut strong {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(89, 218, 255, 0.35);
}

body.dashboard-screen .cockpit-metrics .metric-card,
body.dashboard-screen .rank-item,
body.dashboard-screen .pipeline-row,
body.dashboard-screen .screen-alert,
body.dashboard-screen .donut-list div,
body.dashboard-screen .trend-columns,
body.dashboard-screen .empty-state,
body.dashboard-screen .map-detail-card {
  background: linear-gradient(180deg, rgba(8, 42, 67, 0.66), rgba(3, 21, 38, 0.82));
  border-color: rgba(73, 194, 255, 0.26);
  box-shadow: inset 0 0 18px rgba(70, 196, 255, 0.08);
}

body.dashboard-screen .cockpit-metrics .metric-card.metric-blue,
body.dashboard-screen .cockpit-metrics .metric-card.metric-green,
body.dashboard-screen .cockpit-metrics .metric-card.metric-orange {
  background:
    repeating-linear-gradient(135deg, rgba(110, 220, 255, 0.03) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, rgba(10, 60, 91, 0.72), rgba(3, 21, 38, 0.9));
  border-color: rgba(91, 217, 255, 0.38);
  box-shadow: inset 0 0 18px rgba(91, 217, 255, 0.1), 0 0 12px rgba(34, 143, 213, 0.16);
}

body.dashboard-screen .cockpit-metrics .metric-scope-toggle {
  background: rgba(4, 24, 43, 0.78);
  border-color: rgba(73, 194, 255, 0.26);
}

body.dashboard-screen .cockpit-metrics .metric-scope-toggle button {
  color: rgba(224, 247, 255, 0.7);
}

body.dashboard-screen .cockpit-metrics .metric-scope-toggle button.active {
  background: linear-gradient(135deg, #1aa6e0, #0a4675);
  color: #ffffff;
}

body.dashboard-screen .satellite-stage,
body.dashboard-screen .earth-canvas,
.echarts-flat-map {
  background:
    radial-gradient(circle at 50% 50%, rgba(32, 128, 188, 0.12), transparent 44%),
    #061421;
  border-color: rgba(73, 194, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(91, 217, 255, 0.07), inset 0 0 34px rgba(34, 143, 213, 0.12);
}

body.dashboard-screen .earth-toolbar {
  background: rgba(3, 15, 29, 0.62);
  border-color: rgba(73, 194, 255, 0.28);
}

body.dashboard-screen .earth-toolbar .map-mode,
body.dashboard-screen .earth-toolbar .icon-button,
body.dashboard-screen .earth-toolbar .ghost-button {
  background: rgba(5, 28, 49, 0.68);
  border-color: rgba(91, 217, 255, 0.28);
  color: #7de2ff;
}

body.dashboard-screen .earth-toolbar .map-mode:hover,
body.dashboard-screen .earth-toolbar .icon-button:hover,
body.dashboard-screen .earth-toolbar .ghost-button:hover {
  background: rgba(31, 147, 218, 0.38);
  border-color: rgba(125, 226, 255, 0.72);
  box-shadow: 0 0 12px rgba(91, 217, 255, 0.28);
}

body.dashboard-screen .region-focus-list button {
  background: rgba(5, 28, 49, 0.74);
  border-color: rgba(73, 194, 255, 0.24);
  color: rgba(224, 247, 255, 0.72);
}

body.dashboard-screen .region-focus-list button.active,
body.dashboard-screen .region-focus-list button:hover {
  border-color: rgba(125, 226, 255, 0.72);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(91, 217, 255, 0.22);
}

body.dashboard-screen .region-focus-list span,
body.dashboard-screen .trend-legend i,
body.dashboard-screen .donut-list i {
  background: #39d5ff;
  box-shadow: 0 0 8px rgba(57, 213, 255, 0.42);
}

body.dashboard-screen .trend-grid line {
  stroke: rgba(91, 217, 255, 0.12);
}

body.dashboard-screen .trend-sale-line,
body.dashboard-screen .trend-paid-line {
  stroke: #39d5ff;
}

body.dashboard-screen .trend-sale-area,
body.dashboard-screen .trend-paid-area {
  fill: rgba(57, 213, 255, 0.1);
}

body.dashboard-screen .trend-sale-point,
body.dashboard-screen .trend-paid-point {
  fill: #39d5ff;
  stroke: #031321;
}

body.dashboard-screen .trend-sale,
body.dashboard-screen .trend-paid,
body.dashboard-screen .bar-fill {
  background: linear-gradient(180deg, #39d5ff, #0b5f9b);
}

body.dashboard-screen .donut {
  background: conic-gradient(#39d5ff calc(var(--paid) * 1%), rgba(91, 217, 255, 0.12) 0);
}

body.dashboard-screen .donut::after {
  background: #061421;
}

body.dashboard-screen .donut-note,
body.dashboard-screen .donut-list strong {
  color: #7de2ff;
}

body.dashboard-screen {
  background: radial-gradient(circle at 50% 38%, rgba(35, 112, 190, 0.34) 0%, rgba(7, 16, 32, 0.96) 46%, #071020 100%);
}

body.dashboard-screen #dashboardView.active {
  background: transparent;
}

body.dashboard-screen .command-dashboard {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  position: relative;
}

body.dashboard-screen .command-dashboard::before {
  display: none;
}

body.dashboard-screen .command-dashboard::after {
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 136, 255, 0.22), transparent 44%),
    linear-gradient(90deg, rgba(100, 160, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(100, 160, 255, 0.06) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

body.dashboard-screen .cockpit-column,
body.dashboard-screen .cockpit-map-panel {
  z-index: 1;
}

body.dashboard-screen .cockpit-map-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0;
  z-index: 0;
}

body.dashboard-screen .cockpit-map-panel::before {
  display: none;
}

body.dashboard-screen .cockpit-map-panel > .section-heading {
  background: transparent;
  border-bottom: 1px solid rgba(100, 160, 255, 0.15);
  margin: 0 10px 6px;
  padding: 0 4px 7px;
  position: relative;
  z-index: 3;
}

body.dashboard-screen .cockpit-map-layout,
body.dashboard-screen .map-layout,
body.dashboard-screen .satellite-stage,
body.dashboard-screen .earth-canvas,
.echarts-flat-map {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.dashboard-screen .satellite-stage {
  overflow: visible;
}

body.dashboard-screen .earth-canvas {
  filter: drop-shadow(0 18px 28px rgba(2, 9, 18, 0.42));
}

body.dashboard-screen .panel.cockpit-panel {
  background: rgba(14, 26, 53, 0.65);
  backdrop-filter: blur(8px);
  border: 0;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(100, 160, 255, 0.15), 0 16px 34px rgba(0, 0, 0, 0.2);
}

body.dashboard-screen .panel.cockpit-panel::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  border-radius: 8px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

body.dashboard-screen .cockpit-panel .section-heading {
  border-bottom-color: rgba(100, 160, 255, 0.15);
}

body.dashboard-screen .cockpit-panel h3,
body.dashboard-screen .cockpit-map-panel h3 {
  color: rgba(255, 255, 255, 0.86);
}

body.dashboard-screen .bigscreen-topbar,
body.dashboard-screen .bigscreen-footer {
  background: rgba(6, 18, 36, 0.68);
  backdrop-filter: blur(8px);
  border-color: rgba(100, 160, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(100, 160, 255, 0.08);
}

body.dashboard-screen .bigscreen-topbar h2 {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(90, 190, 255, 0.72), 0 0 18px rgba(70, 150, 255, 0.38);
}

body.dashboard-screen .screen-meta {
  color: rgba(255, 255, 255, 0.55);
}

body.dashboard-screen .screen-actions button {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(100, 160, 255, 0.15);
  color: rgba(255, 255, 255, 0.62);
}

body.dashboard-screen .screen-actions button:hover {
  background: rgba(34, 136, 255, 0.18);
  color: #ffffff;
}

body.dashboard-screen .bigscreen-footer button {
  background: rgba(0, 0, 0, 0.16);
  border-color: rgba(100, 160, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
}

body.dashboard-screen .bigscreen-footer button.active,
body.dashboard-screen .bigscreen-footer button:hover {
  background: rgba(34, 136, 255, 0.72);
  border-color: rgba(120, 200, 255, 0.62);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(34, 136, 255, 0.28);
}

body.dashboard-screen .cockpit-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.dashboard-screen .cockpit-metrics .metric-card {
  background: rgba(9, 22, 45, 0.56);
  border: 0;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(100, 160, 255, 0.12);
  min-height: 54px;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.dashboard-screen .cockpit-metrics .metric-card:hover {
  background: rgba(18, 42, 82, 0.72);
  box-shadow: inset 0 0 0 1px rgba(120, 200, 255, 0.26), 0 8px 18px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

body.dashboard-screen .cockpit-metrics .metric-card.metric-priority {
  grid-column: span 2;
  min-height: 70px;
}

body.dashboard-screen .cockpit-metrics .metric-card.metric-priority strong {
  color: #5BCBFF;
  font-size: 22px;
}

body.dashboard-screen .cockpit-metrics .metric-card strong {
  color: #ffffff;
  font-weight: 950;
}

body.dashboard-screen .eyebrow {
  display: none !important;
}

body.dashboard-screen .cockpit-metrics .metric-card span,
body.dashboard-screen .cockpit-metrics .metric-card em,
body.dashboard-screen .cockpit-panel .eyebrow,
body.dashboard-screen .cockpit-panel .muted,
body.dashboard-screen .cockpit-panel .small,
body.dashboard-screen .trend-axis-label,
body.dashboard-screen .trend-legend,
body.dashboard-screen .donut-list span,
body.dashboard-screen .pipeline-meta,
body.dashboard-screen .rank-meta {
  color: rgba(255, 255, 255, 0.55);
}

body.dashboard-screen .cockpit-metrics .metric-scope-toggle {
  background: rgba(4, 14, 31, 0.55);
  border-color: rgba(100, 160, 255, 0.15);
}

body.dashboard-screen .cockpit-metrics .metric-scope-toggle button {
  color: rgba(255, 255, 255, 0.48);
}

body.dashboard-screen .cockpit-metrics .metric-scope-toggle button.active {
  background: rgba(34, 136, 255, 0.42);
  box-shadow: 0 0 12px rgba(34, 136, 255, 0.34), inset 0 0 0 1px rgba(120, 200, 255, 0.4);
  color: #ffffff;
}

body.dashboard-screen .trend-sale-line,
body.dashboard-screen .trend-paid-line {
  stroke: #5BCBFF;
}

body.dashboard-screen .trend-sale-area,
body.dashboard-screen .trend-paid-area {
  fill: rgba(91, 203, 255, 0.12);
}

body.dashboard-screen .trend-sale,
body.dashboard-screen .trend-paid,
body.dashboard-screen .bar-fill {
  background: linear-gradient(180deg, #73D7FF, #2288FF);
}

body.dashboard-screen .donut {
  background:
    radial-gradient(circle, transparent 56%, rgba(91, 203, 255, 0.18) 57% 63%, transparent 64%),
    conic-gradient(#73D7FF calc(var(--paid) * 1%), rgba(100, 160, 255, 0.13) 0);
}

body.dashboard-screen .donut::after {
  background: rgba(14, 26, 53, 0.88);
}

body.dashboard-screen .donut strong,
body.dashboard-screen .donut-note,
body.dashboard-screen .donut-list strong {
  color: #5BCBFF;
}

body.dashboard-screen .compact-rank .rank-item:first-child {
  border-color: rgba(91, 203, 255, 0.36);
  box-shadow: inset 0 0 0 1px rgba(91, 203, 255, 0.18), 0 0 14px rgba(34, 136, 255, 0.16);
}

body.dashboard-screen .compact-rank .rank-item:first-child::before {
  color: #5BCBFF;
  content: "TOP1";
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

body.dashboard-screen .screen-alert {
  border-left: 3px solid rgba(255, 206, 86, 0.8);
}

body.dashboard-screen .screen-alert.danger {
  border-left-color: #FF4D4F;
  color: #FF4D4F;
}

body.dashboard-screen .earth-toolbar {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(100, 160, 255, 0.15);
  padding: 4px;
  right: 8px;
  top: 82px;
  width: 30px;
}

body.dashboard-screen .earth-toolbar .map-mode,
body.dashboard-screen .earth-toolbar .icon-button,
body.dashboard-screen .earth-toolbar .ghost-button {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(100, 160, 255, 0.15);
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  height: 23px;
  min-height: 23px;
  width: 23px;
}

body.dashboard-screen .earth-toolbar .map-mode:hover,
body.dashboard-screen .earth-toolbar .icon-button:hover,
body.dashboard-screen .earth-toolbar .ghost-button:hover {
  border-color: rgba(120, 200, 255, 0.7);
  box-shadow: 0 0 10px rgba(91, 203, 255, 0.28);
  color: #ffffff;
}

body.dashboard-screen .region-focus-list button {
  background: rgba(14, 26, 53, 0.58);
  border-color: rgba(100, 160, 255, 0.15);
}

body.dashboard-screen .region-focus-list span,
body.dashboard-screen .trend-legend i,
body.dashboard-screen .donut-list i {
  background: #5BCBFF;
  box-shadow: 0 0 8px rgba(91, 203, 255, 0.42);
}

/* Home overview metrics: tidy 6-card operating summary */
body.dashboard-screen .overview-panel .cockpit-metrics {
  align-items: stretch;
  display: grid;
  gap: 8px;
  grid-auto-rows: 66px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.dashboard-screen .cockpit-column:first-child {
  align-content: start;
  grid-auto-rows: auto;
  overflow: visible;
}

body.dashboard-screen .overview-panel {
  align-self: start;
}

body.dashboard-screen .overview-panel .cockpit-metrics .metric-scope-toggle {
  background: rgba(4, 24, 43, 0.72);
  border: 1px solid rgba(100, 160, 255, 0.18);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 42px;
  padding: 6px;
}

body.dashboard-screen .overview-panel .cockpit-metrics .metric-scope-toggle button {
  border-radius: 9px;
  color: rgba(224, 247, 255, 0.76);
  font-size: 14px;
  min-height: 28px;
}

body.dashboard-screen .overview-panel .cockpit-metrics .metric-scope-toggle button.active {
  background: linear-gradient(135deg, rgba(28, 141, 214, 0.9), rgba(8, 54, 91, 0.95));
  box-shadow: inset 0 0 18px rgba(104, 220, 255, 0.16), 0 0 14px rgba(45, 177, 242, 0.18);
  color: #ffffff;
}

body.dashboard-screen .overview-panel .cockpit-metrics .metric-card,
body.dashboard-screen .overview-panel .cockpit-metrics .metric-card.metric-priority {
  align-content: start;
  background:
    linear-gradient(180deg, rgba(10, 55, 95, 0.64), rgba(5, 23, 47, 0.82));
  border: 1px solid rgba(91, 217, 255, 0.22);
  border-radius: 10px;
  box-shadow: inset 0 0 18px rgba(70, 196, 255, 0.08), 0 0 12px rgba(34, 143, 213, 0.1);
  grid-column: auto;
  height: 66px;
  min-height: 66px;
  overflow: hidden;
  padding: 8px;
}

body.dashboard-screen .overview-panel .cockpit-metrics .metric-card:hover {
  background:
    linear-gradient(180deg, rgba(17, 72, 124, 0.74), rgba(7, 30, 59, 0.9));
  border-color: rgba(120, 200, 255, 0.42);
  transform: translateY(-2px);
}

body.dashboard-screen .overview-panel .cockpit-metrics .metric-card span {
  color: rgba(224, 247, 255, 0.72);
  display: block;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

body.dashboard-screen .overview-panel .cockpit-metrics .metric-card strong,
body.dashboard-screen .overview-panel .cockpit-metrics .metric-card.metric-priority strong {
  color: #ffffff;
  display: block;
  font-size: 17px;
  line-height: 1.05;
  margin-top: 5px;
  overflow-wrap: anywhere;
  text-shadow: 0 0 10px rgba(89, 218, 255, 0.28);
}

body.dashboard-screen .overview-panel .cockpit-metrics .metric-card.metric-priority strong {
  color: #5BCBFF;
}

body.dashboard-screen .overview-panel .cockpit-metrics .metric-card em {
  color: rgba(224, 247, 255, 0.58);
  display: block;
  font-size: 10px;
  font-style: normal;
  line-height: 1.25;
  margin-top: 4px;
}

/* Home map as the base layer: panels float above it */
body.dashboard-screen .command-dashboard {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(520px, 1.7fr) minmax(280px, 0.74fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  padding: 0;
}

body.dashboard-screen .command-dashboard::after {
  opacity: 0.36;
  z-index: 0;
}

body.dashboard-screen .cockpit-map-panel {
  display: block;
  inset: 0;
  pointer-events: auto;
  position: absolute;
  z-index: 1;
}

body.dashboard-screen .cockpit-map-panel > .section-heading {
  display: none;
}

body.dashboard-screen .cockpit-map-layout,
body.dashboard-screen .cockpit-map-panel .map-layout,
body.dashboard-screen .satellite-stage,
body.dashboard-screen .earth-canvas,
body.dashboard-screen .echarts-flat-map {
  height: 100%;
  inset: 0;
  min-height: 0;
  position: absolute;
  width: 100%;
}

body.dashboard-screen .satellite-stage,
body.dashboard-screen .earth-canvas,
body.dashboard-screen .echarts-flat-map {
  border-radius: 0 !important;
  filter: none;
  overflow: hidden;
}

body.dashboard-screen .cockpit-column {
  pointer-events: auto;
  position: relative;
  z-index: 4;
}

body.dashboard-screen .cockpit-column:first-child {
  grid-column: 1;
  grid-row: 1;
  margin: 10px 0 10px 10px;
}

body.dashboard-screen .cockpit-column:last-child {
  align-content: start;
  grid-column: 3;
  grid-row: 1;
  margin: 10px 10px 10px 0;
  overflow: visible;
}

body.dashboard-screen .panel.cockpit-panel {
  background: rgba(14, 26, 53, 0.54);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 0 0 1px rgba(100, 160, 255, 0.13),
    0 12px 30px rgba(0, 0, 0, 0.18);
}

body.dashboard-screen .panel.cockpit-panel::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), transparent 62%);
}

/* Shared cockpit skin for non-home modules */
body:not(.dashboard-screen) {
  background:
    radial-gradient(circle at 50% 18%, rgba(35, 112, 190, 0.28), transparent 36%),
    radial-gradient(circle at 8% 88%, rgba(20, 199, 217, 0.14), transparent 30%),
    linear-gradient(180deg, #071020 0%, #04101f 56%, #020814 100%);
  color: rgba(255, 255, 255, 0.88);
}

body:not(.dashboard-screen)::before {
  background:
    linear-gradient(90deg, rgba(100, 160, 255, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(100, 160, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

body:not(.dashboard-screen) .app-shell {
  background: transparent;
}

body:not(.dashboard-screen) .sidebar {
  background: rgba(6, 18, 36, 0.72);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(100, 160, 255, 0.15);
  box-shadow: inset -1px 0 0 rgba(91, 203, 255, 0.06), 16px 0 38px rgba(0, 0, 0, 0.18);
}

body:not(.dashboard-screen) .brand-mark {
  background: linear-gradient(135deg, #1aa6e0, #0a4675);
  box-shadow: inset 0 0 16px rgba(125, 226, 255, 0.24), 0 0 18px rgba(45, 177, 242, 0.24);
}

body:not(.dashboard-screen) .brand h1,
body:not(.dashboard-screen) .topbar h2,
body:not(.dashboard-screen) .section-heading h3,
body:not(.dashboard-screen) .settings-split h4,
body:not(.dashboard-screen) .customer-name {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(89, 218, 255, 0.24);
}

body:not(.dashboard-screen) .brand p,
body:not(.dashboard-screen) .eyebrow,
body:not(.dashboard-screen) .customer-sub,
body:not(.dashboard-screen) .inline-hint,
body:not(.dashboard-screen) .muted,
body:not(.dashboard-screen) .small {
  color: rgba(255, 255, 255, 0.55);
}

body:not(.dashboard-screen) .nav-item {
  color: rgba(224, 247, 255, 0.7);
}

body:not(.dashboard-screen) .nav-item:hover,
body:not(.dashboard-screen) .nav-item.active {
  background: linear-gradient(135deg, rgba(28, 141, 214, 0.52), rgba(8, 54, 91, 0.66));
  border-color: rgba(117, 221, 255, 0.46);
  box-shadow: inset 0 0 18px rgba(104, 220, 255, 0.12), 0 0 16px rgba(45, 177, 242, 0.16);
}

body:not(.dashboard-screen) .nav-dot,
body:not(.dashboard-screen) .nav-item.active .nav-dot {
  background: #5BCBFF;
  box-shadow: 0 0 8px rgba(91, 203, 255, 0.46);
}

body:not(.dashboard-screen) .main-content {
  background: transparent;
}

body:not(.dashboard-screen) .topbar {
  background: rgba(6, 18, 36, 0.58);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(100, 160, 255, 0.15);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(100, 160, 255, 0.08), 0 16px 34px rgba(0, 0, 0, 0.16);
  padding: 14px 16px;
}

body:not(.dashboard-screen) .panel,
body:not(.dashboard-screen) .customer-detail-dialog,
body:not(.dashboard-screen) .contract-template-item,
body:not(.dashboard-screen) .generated-contract,
body:not(.dashboard-screen) .profile-analysis,
body:not(.dashboard-screen) .timeline,
body:not(.dashboard-screen) .follow-ai-panel,
body:not(.dashboard-screen) .qr-panel {
  background: rgba(14, 26, 53, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(100, 160, 255, 0.15);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(100, 160, 255, 0.07), 0 16px 34px rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.86);
}

body:not(.dashboard-screen) .panel {
  position: relative;
}

body:not(.dashboard-screen) .panel::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  border-radius: 8px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

body:not(.dashboard-screen) #reportsView .metric-grid {
  gap: 16px;
}

body:not(.dashboard-screen) #reportsView .metric-card {
  background:
    radial-gradient(circle at 18% 0%, rgba(91, 203, 255, 0.22), transparent 42%),
    linear-gradient(145deg, rgba(14, 43, 79, 0.86), rgba(5, 18, 37, 0.78));
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-left: 3px solid #5BCBFF;
  box-shadow: inset 0 0 24px rgba(91, 203, 255, 0.08), 0 18px 34px rgba(0, 0, 0, 0.24);
  color: rgba(255, 255, 255, 0.86);
  position: relative;
}

body:not(.dashboard-screen) #reportsView .metric-card::after {
  background: linear-gradient(90deg, rgba(91, 203, 255, 0.46), transparent);
  bottom: 0;
  content: "";
  height: 2px;
  left: 16px;
  position: absolute;
  right: 16px;
}

body:not(.dashboard-screen) #reportsView .metric-card.metric-orange {
  border-left-color: #FFB15C;
}

body:not(.dashboard-screen) #reportsView .metric-card.metric-green {
  border-left-color: #63F2B0;
}

body:not(.dashboard-screen) #reportsView .metric-card.metric-red {
  border-left-color: #FF6B7A;
}

body:not(.dashboard-screen) #reportsView .metric-card strong {
  color: #5BCBFF;
  font-size: 26px;
  text-shadow: 0 0 12px rgba(91, 203, 255, 0.24);
}

body:not(.dashboard-screen) #reportsView .metric-drill-card {
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body:not(.dashboard-screen) #reportsView .metric-drill-card:hover {
  border-color: rgba(91, 203, 255, 0.58);
  box-shadow: inset 0 0 24px rgba(91, 203, 255, 0.12), 0 20px 38px rgba(0, 0, 0, 0.28), 0 0 22px rgba(91, 203, 255, 0.16);
  transform: translateY(-2px);
}

body:not(.dashboard-screen) #reportsView .metric-card small {
  color: rgba(91, 203, 255, 0.72);
  display: block;
  font-size: 11px;
  font-weight: 900;
  margin-top: 8px;
}

body:not(.dashboard-screen) #reportsView .metric-card span,
body:not(.dashboard-screen) #reportsView .metric-card em {
  color: rgba(224, 247, 255, 0.72);
}

body:not(.dashboard-screen) #reportsView .rank-item {
  background: linear-gradient(135deg, rgba(14, 43, 79, 0.76), rgba(3, 15, 31, 0.7));
  border-color: rgba(125, 211, 252, 0.16);
  box-shadow: inset 0 0 18px rgba(91, 203, 255, 0.06);
}

body:not(.dashboard-screen) #reportsView .rank-meta {
  color: rgba(255, 255, 255, 0.82);
}

body:not(.dashboard-screen) #reportsView .rank-meta span {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

body:not(.dashboard-screen) #reportsView .rank-meta strong {
  color: #5BCBFF;
  font-size: 15px;
  white-space: nowrap;
}

body:not(.dashboard-screen) #reportsView .rank-index {
  background: rgba(91, 203, 255, 0.14);
  border: 1px solid rgba(91, 203, 255, 0.24);
  border-radius: 999px;
  color: #7DE2FF;
  flex: 0 0 auto;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  padding: 3px 7px;
}

body:not(.dashboard-screen) #reportsView .bar-track {
  background: rgba(255, 255, 255, 0.08);
  height: 12px;
}

body:not(.dashboard-screen) #reportsView .bar-fill {
  background: linear-gradient(90deg, #1C78FF, #5BCBFF, #FFB15C);
  box-shadow: 0 0 14px rgba(91, 203, 255, 0.26);
}

body:not(.dashboard-screen) .section-heading {
  border-bottom: 1px solid rgba(100, 160, 255, 0.15);
  margin-bottom: 16px;
  padding-bottom: 12px;
}

body:not(.dashboard-screen) input,
body:not(.dashboard-screen) select,
body:not(.dashboard-screen) textarea,
body:not(.dashboard-screen) .search-input {
  background: rgba(3, 15, 29, 0.56);
  border-color: rgba(100, 160, 255, 0.2);
  color: #ffffff;
  box-shadow: inset 0 0 16px rgba(70, 196, 255, 0.04);
}

body:not(.dashboard-screen) input::placeholder,
body:not(.dashboard-screen) textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

body:not(.dashboard-screen) input:focus,
body:not(.dashboard-screen) select:focus,
body:not(.dashboard-screen) textarea:focus {
  border-color: rgba(125, 226, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(91, 203, 255, 0.14), inset 0 0 18px rgba(70, 196, 255, 0.08);
}

body:not(.dashboard-screen) .form-grid span,
body:not(.dashboard-screen) label span {
  color: rgba(224, 247, 255, 0.74);
}

body:not(.dashboard-screen) .primary-button {
  background: linear-gradient(135deg, #1aa6e0, #0a4675);
  border: 1px solid rgba(117, 221, 255, 0.42);
  box-shadow: inset 0 0 18px rgba(104, 220, 255, 0.14), 0 0 14px rgba(45, 177, 242, 0.18);
  color: #ffffff;
}

body:not(.dashboard-screen) .primary-button:hover {
  background: linear-gradient(135deg, #2bbcf2, #0d5d95);
}

body:not(.dashboard-screen) .ghost-button,
body:not(.dashboard-screen) .file-button,
body:not(.dashboard-screen) .link-button,
body:not(.dashboard-screen) .table-action,
body:not(.dashboard-screen) .row-actions button {
  background: rgba(5, 28, 49, 0.68);
  border: 1px solid rgba(91, 217, 255, 0.24);
  color: rgba(224, 247, 255, 0.82);
}

body:not(.dashboard-screen) .ghost-button:hover,
body:not(.dashboard-screen) .file-button:hover,
body:not(.dashboard-screen) .link-button:hover,
body:not(.dashboard-screen) .table-action:hover,
body:not(.dashboard-screen) .row-actions button:hover {
  background: rgba(31, 147, 218, 0.34);
  border-color: rgba(125, 226, 255, 0.62);
  box-shadow: 0 0 12px rgba(91, 217, 255, 0.2);
  color: #ffffff;
}

body:not(.dashboard-screen) .danger-button,
body:not(.dashboard-screen) .table-action.danger,
body:not(.dashboard-screen) .row-actions button.danger-text {
  background: rgba(255, 77, 79, 0.16);
  border-color: rgba(255, 77, 79, 0.34);
  color: #ffb4b5;
}

body:not(.dashboard-screen) .import-actions,
body:not(.dashboard-screen) .settings-form,
body:not(.dashboard-screen) .contract-items-box,
body:not(.dashboard-screen) .calculation-strip {
  background: rgba(3, 15, 29, 0.42);
  border-color: rgba(100, 160, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
}

body:not(.dashboard-screen) .table-wrap {
  background: rgba(3, 15, 29, 0.34);
  border-color: rgba(100, 160, 255, 0.15);
  box-shadow: inset 0 0 18px rgba(70, 196, 255, 0.04);
}

body:not(.dashboard-screen) table {
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
}

body:not(.dashboard-screen) th {
  background: rgba(5, 25, 58, 0.96);
  color: rgba(158, 215, 236, 0.92);
}

body:not(.dashboard-screen) td {
  border-bottom-color: rgba(100, 160, 255, 0.12);
}

body:not(.dashboard-screen) tbody tr:nth-child(even) {
  background: rgba(100, 160, 255, 0.035);
}

body:not(.dashboard-screen) tbody tr:hover {
  background: rgba(91, 203, 255, 0.08);
}

body:not(.dashboard-screen) .status-pill,
body:not(.dashboard-screen) .count-pill,
body:not(.dashboard-screen) .amount-pill {
  background: rgba(57, 213, 255, 0.12);
  border: 1px solid rgba(91, 217, 255, 0.24);
  color: #7de2ff;
}

body:not(.dashboard-screen) .status-pill.warning,
body:not(.dashboard-screen) .amount-pill.warning {
  background: rgba(255, 180, 75, 0.14);
  border-color: rgba(255, 180, 75, 0.28);
  color: #ffd28b;
}

body:not(.dashboard-screen) .status-pill.success {
  background: rgba(47, 214, 147, 0.14);
  border-color: rgba(47, 214, 147, 0.3);
  color: #7ff0be;
}

body:not(.dashboard-screen) .status-pill.danger,
body:not(.dashboard-screen) .amount-pill.danger {
  background: rgba(255, 77, 79, 0.14);
  border-color: rgba(255, 77, 79, 0.28);
  color: #ffb4b5;
}

body:not(.dashboard-screen) .empty-state {
  background: rgba(3, 15, 29, 0.46);
  border-color: rgba(100, 160, 255, 0.2);
  color: rgba(255, 255, 255, 0.55);
}

body:not(.dashboard-screen) .customer-detail-section,
body:not(.dashboard-screen) .customer-detail-summary,
body:not(.dashboard-screen) .detail-log-item {
  background: rgba(3, 15, 29, 0.36);
  border-color: rgba(100, 160, 255, 0.14);
}

body:not(.dashboard-screen) .detail-list dt {
  color: rgba(255, 255, 255, 0.52);
}

body:not(.dashboard-screen) .detail-list dd,
body:not(.dashboard-screen) .detail-log-item p {
  color: rgba(255, 255, 255, 0.86);
}

/* Brighter cockpit tone for non-home modules */
body:not(.dashboard-screen) {
  background:
    radial-gradient(circle at 50% 14%, rgba(52, 154, 255, 0.38), transparent 38%),
    radial-gradient(circle at 10% 86%, rgba(42, 213, 255, 0.2), transparent 32%),
    linear-gradient(180deg, #0a1830 0%, #07182f 54%, #041020 100%);
  color: rgba(255, 255, 255, 0.93);
}

body:not(.dashboard-screen)::before {
  background:
    linear-gradient(90deg, rgba(120, 190, 255, 0.075) 1px, transparent 1px),
    linear-gradient(0deg, rgba(120, 190, 255, 0.065) 1px, transparent 1px);
}

body:not(.dashboard-screen) .sidebar,
body:not(.dashboard-screen) .topbar,
body:not(.dashboard-screen) .panel,
body:not(.dashboard-screen) .customer-detail-dialog,
body:not(.dashboard-screen) .contract-template-item,
body:not(.dashboard-screen) .generated-contract,
body:not(.dashboard-screen) .profile-analysis,
body:not(.dashboard-screen) .timeline,
body:not(.dashboard-screen) .follow-ai-panel,
body:not(.dashboard-screen) .qr-panel {
  background: rgba(20, 42, 78, 0.74);
  border-color: rgba(132, 205, 255, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(132, 205, 255, 0.1),
    0 16px 34px rgba(0, 0, 0, 0.16);
}

body:not(.dashboard-screen) .panel::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 68%);
}

body:not(.dashboard-screen) .brand p,
body:not(.dashboard-screen) .eyebrow,
body:not(.dashboard-screen) .customer-sub,
body:not(.dashboard-screen) .inline-hint,
body:not(.dashboard-screen) .muted,
body:not(.dashboard-screen) .small {
  color: rgba(235, 248, 255, 0.68);
}

body:not(.dashboard-screen) .nav-item {
  color: rgba(235, 248, 255, 0.82);
}

body:not(.dashboard-screen) input,
body:not(.dashboard-screen) select,
body:not(.dashboard-screen) textarea,
body:not(.dashboard-screen) .search-input {
  background: rgba(12, 35, 67, 0.72);
  border-color: rgba(132, 205, 255, 0.3);
  color: #ffffff;
}

body:not(.dashboard-screen) input::placeholder,
body:not(.dashboard-screen) textarea::placeholder {
  color: rgba(235, 248, 255, 0.48);
}

body:not(.dashboard-screen) .form-grid span,
body:not(.dashboard-screen) label span {
  color: rgba(235, 248, 255, 0.86);
}

body:not(.dashboard-screen) .import-actions,
body:not(.dashboard-screen) .settings-form,
body:not(.dashboard-screen) .contract-items-box,
body:not(.dashboard-screen) .calculation-strip,
body:not(.dashboard-screen) .table-wrap,
body:not(.dashboard-screen) .empty-state,
body:not(.dashboard-screen) .customer-detail-section,
body:not(.dashboard-screen) .customer-detail-summary,
body:not(.dashboard-screen) .detail-log-item {
  background: rgba(12, 35, 67, 0.58);
  border-color: rgba(132, 205, 255, 0.24);
}

body:not(.dashboard-screen) th {
  background: rgba(13, 47, 88, 0.98);
  color: rgba(221, 246, 255, 0.96);
}

body:not(.dashboard-screen) tbody tr:nth-child(even) {
  background: rgba(120, 190, 255, 0.06);
}

body:not(.dashboard-screen) tbody tr:hover {
  background: rgba(91, 203, 255, 0.13);
}

body:not(.dashboard-screen) td {
  color: rgba(255, 255, 255, 0.9);
}

/* Final mobile overrides: keep these last so the desktop cockpit skin cannot override them. */
@media (max-width: 860px) {
  body.dashboard-screen {
    overflow: auto;
  }

  body.dashboard-screen .app-shell,
  body.dashboard-screen .main-content,
  body.dashboard-screen #dashboardView.active {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  body.dashboard-screen #dashboardView.active {
    display: block;
    padding: 8px;
  }

  body.dashboard-screen .command-dashboard {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 0;
  }

  body.dashboard-screen .cockpit-column,
  body.dashboard-screen .cockpit-column:first-child,
  body.dashboard-screen .cockpit-column:last-child,
  body.dashboard-screen .cockpit-map-panel {
    grid-column: auto;
    grid-row: auto;
    margin: 0;
    overflow: visible;
    position: relative;
    width: 100%;
  }

  body.dashboard-screen .cockpit-map-panel {
    height: auto;
    inset: auto;
    min-height: 420px;
  }

  body.dashboard-screen .cockpit-map-layout,
  body.dashboard-screen .cockpit-map-panel .map-layout,
  body.dashboard-screen .satellite-stage,
  body.dashboard-screen .earth-canvas,
  body.dashboard-screen .echarts-flat-map {
    height: auto;
    inset: auto;
    min-height: 420px;
    position: relative;
    width: 100%;
  }

  body.dashboard-screen .panel.cockpit-panel,
  body.dashboard-screen .panel.cockpit-map-panel {
    width: 100%;
  }

  body.dashboard-screen .bigscreen-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    margin-top: 10px;
    position: static;
  }

  body.dashboard-screen .earth-toolbar {
    bottom: auto;
    flex-direction: row;
    left: 10px;
    right: 10px;
    top: 10px;
    width: auto;
  }

  body.dashboard-screen .earth-toolbar .segmented-control,
  body.dashboard-screen .earth-toolbar .zoom-control {
    display: flex;
  }

  body.dashboard-screen .earth-toolbar .map-mode,
  body.dashboard-screen .earth-toolbar .icon-button,
  body.dashboard-screen .earth-toolbar .ghost-button {
    min-width: 34px;
    padding: 0 8px;
    width: auto;
    writing-mode: horizontal-tb;
  }

  body.dashboard-screen .overview-panel .cockpit-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .customer-detail-dialog {
    max-height: 92vh;
    width: calc(100vw - 18px);
  }

	  .customer-detail-grid,
	  .detail-list,
	  .system-service-form,
	  .form-grid.compact-grid.paired-grid,
	  .review-product-row,
	  .review-product-cascade-row,
	  .review-product-metrics-row {
	    grid-template-columns: 1fr;
	  }

  .system-service-form .system-expiry-field {
    grid-column: 1;
  }

  .expiry-date-control {
    grid-template-columns: 1fr;
  }

  .expiry-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-service-total {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 1180px) {
  .order-payment-meta {
    grid-template-columns: 1fr;
  }

  .contract-original-list {
    grid-template-columns: 1fr;
  }

.detail-order-table th,
  .detail-order-table td {
    padding: 6px;
  }
}

.donut.business-donut,
body.dashboard-screen .donut.business-donut {
  background:
    radial-gradient(circle, transparent 56%, rgba(91, 203, 255, 0.16) 57% 63%, transparent 64%),
    var(--business-gradient);
}

.business-donut-list i {
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

body:not(.dashboard-screen) .finance-supplement-upload {
  background: linear-gradient(90deg, rgba(12, 47, 88, 0.72), rgba(4, 22, 45, 0.58));
  border-color: rgba(132, 205, 255, 0.3);
}

.voice-toggle-field {
  align-content: start;
  display: grid;
  gap: 8px;
}

.voice-toggle-field > span {
  color: rgba(235, 248, 255, 0.86);
  font-size: 13px;
  font-weight: 900;
}

.switch-check {
  align-items: center;
  background: rgba(6, 22, 47, 0.66);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 10px;
  cursor: pointer;
  display: flex !important;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
}

.switch-check input {
  accent-color: #1C78FF;
  height: 18px;
  width: 18px;
}

.switch-check em {
  color: rgba(224, 247, 255, 0.78);
  font-style: normal;
  font-weight: 900;
}

/* Report ranking showcase */
body:not(.dashboard-screen) #reportsView .rank-list {
  gap: 14px;
}

body:not(.dashboard-screen) #reportsView .rank-showcase {
  display: grid;
  gap: 12px;
}

body:not(.dashboard-screen) #reportsView .rank-runner-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:not(.dashboard-screen) #reportsView .rank-compact-list {
  display: grid;
  gap: 8px;
}

body:not(.dashboard-screen) #reportsView .rank-card {
  overflow: hidden;
  position: relative;
}

body:not(.dashboard-screen) #reportsView .rank-card::before {
  background: radial-gradient(circle, rgba(91, 203, 255, 0.32), transparent 58%);
  content: "";
  height: 120px;
  opacity: 0.54;
  pointer-events: none;
  position: absolute;
  right: -42px;
  top: -58px;
  width: 160px;
}

body:not(.dashboard-screen) #reportsView .rank-card > * {
  position: relative;
  z-index: 1;
}

body:not(.dashboard-screen) #reportsView .rank-champion {
  background:
    radial-gradient(circle at 84% 12%, rgba(91, 203, 255, 0.32), transparent 38%),
    linear-gradient(135deg, rgba(15, 66, 119, 0.98), rgba(5, 22, 48, 0.92));
  border-color: rgba(91, 203, 255, 0.38);
  box-shadow: inset 0 0 30px rgba(91, 203, 255, 0.12), 0 0 22px rgba(91, 203, 255, 0.08);
  padding: 16px;
}

body:not(.dashboard-screen) #reportsView .rank-champion .rank-meta {
  align-items: flex-start;
  gap: 18px;
}

body:not(.dashboard-screen) #reportsView .rank-champion .rank-meta strong {
  font-size: 24px;
  line-height: 1;
}

body:not(.dashboard-screen) #reportsView .rank-champion .rank-index {
  background: linear-gradient(135deg, rgba(255, 177, 92, 0.95), rgba(91, 203, 255, 0.86));
  border-color: rgba(255, 255, 255, 0.26);
  color: #061324;
}

body:not(.dashboard-screen) #reportsView .rank-runner {
  padding: 12px;
}

body:not(.dashboard-screen) #reportsView .rank-runner .rank-meta {
  align-items: flex-start;
  flex-direction: column;
}

body:not(.dashboard-screen) #reportsView .rank-runner .rank-meta strong {
  font-size: 18px;
}

body:not(.dashboard-screen) #reportsView .rank-compact {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
}

body:not(.dashboard-screen) #reportsView .rank-compact .rank-meta strong {
  font-size: 14px;
}

body:not(.dashboard-screen) #reportsView .rank-subline {
  color: rgba(224, 247, 255, 0.62);
  font-size: 12px;
  font-weight: 850;
  margin: 6px 0 8px;
  overflow-wrap: anywhere;
}

body:not(.dashboard-screen) #reportsView .rank-subline b {
  background: rgba(91, 203, 255, 0.15);
  border: 1px solid rgba(91, 203, 255, 0.22);
  border-radius: 999px;
  color: #7DE2FF;
  display: inline-flex;
  font-size: 11px;
  margin-right: 8px;
  padding: 2px 7px;
}

body:not(.dashboard-screen) #reportsView .rank-settled .rank-subline b {
  background: rgba(70, 255, 180, 0.15);
  border-color: rgba(70, 255, 180, 0.24);
  color: #9BFFD7;
}

body:not(.dashboard-screen) #reportsView .rank-tracking .rank-subline b {
  background: rgba(91, 203, 255, 0.15);
  border-color: rgba(91, 203, 255, 0.24);
  color: #7DE2FF;
}

body:not(.dashboard-screen) #reportsView .rank-risk .rank-subline b {
  background: rgba(255, 77, 79, 0.14);
  border-color: rgba(255, 77, 79, 0.26);
  color: #FFB4B5;
}

body:not(.dashboard-screen) #reportsView .rank-card:hover {
  border-color: rgba(91, 203, 255, 0.48);
  box-shadow: inset 0 0 24px rgba(91, 203, 255, 0.11), 0 0 20px rgba(91, 203, 255, 0.12);
}

@media (max-width: 1180px) {
  body:not(.dashboard-screen) #reportsView .rank-runner-grid {
    grid-template-columns: 1fr;
  }
}

/* 2026-07-26: targeted readability fixes from order report doc */
.report-detail-table,
body.dashboard-screen .report-detail-table {
  background: rgba(3, 15, 29, 0.72);
  border-color: rgba(91, 203, 255, 0.24);
  box-shadow: inset 0 0 22px rgba(91, 203, 255, 0.06);
}

.report-detail-table table,
body.dashboard-screen .report-detail-table table {
  background: transparent;
  color: rgba(236, 248, 255, 0.94);
}

.report-detail-table th,
body.dashboard-screen .report-detail-table th {
  background: rgba(8, 34, 66, 0.96);
  border-bottom-color: rgba(132, 205, 255, 0.24);
  color: rgba(224, 247, 255, 0.94);
  position: sticky;
  top: 0;
  z-index: 1;
}

.report-detail-table td,
body.dashboard-screen .report-detail-table td {
  border-bottom-color: rgba(100, 160, 255, 0.13);
  color: rgba(255, 255, 255, 0.9);
}

.report-detail-table tbody tr:nth-child(even),
body.dashboard-screen .report-detail-table tbody tr:nth-child(even) {
  background: rgba(91, 203, 255, 0.055);
}

.report-detail-table tbody tr:hover,
body.dashboard-screen .report-detail-table tbody tr:hover {
  background: rgba(91, 203, 255, 0.13);
}

body.dashboard-screen .trend-chart {
  background:
    radial-gradient(circle at 72% 22%, rgba(91, 203, 255, 0.11), transparent 38%),
    linear-gradient(180deg, rgba(5, 24, 49, 0.9), rgba(3, 13, 29, 0.92));
  border-color: rgba(91, 203, 255, 0.22);
  box-shadow: inset 0 0 18px rgba(91, 203, 255, 0.08);
}

body.dashboard-screen .trend-grid line {
  stroke: rgba(120, 190, 255, 0.16);
}

body.dashboard-screen .trend-axis-label,
body.dashboard-screen .trend-empty-label {
  fill: rgba(224, 247, 255, 0.66);
}

body.dashboard-screen .trend-chart circle {
  stroke: rgba(2, 10, 20, 0.92);
}

/* 2026-07-31: mobile APP operation layout */
@media (max-width: 980px) {
  html,
  body,
  body.dashboard-screen {
    width: 100%;
    min-width: 0;
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: radial-gradient(circle at 50% 8%, rgba(34, 136, 255, 0.2), transparent 34%),
      #071020;
  }

  body,
  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }

  .app-shell,
  body.dashboard-screen .app-shell {
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 100dvh;
    overflow: visible;
    padding: 10px 10px 84px;
  }

  .sidebar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 900;
    width: 100%;
    height: 72px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border: 1px solid rgba(91, 203, 255, 0.22);
    border-width: 1px 0 0;
    background: linear-gradient(180deg, rgba(4, 16, 34, 0.76), rgba(3, 11, 24, 0.96));
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(91, 203, 255, 0.18);
    backdrop-filter: blur(16px);
  }

  body.dashboard-screen .sidebar {
    display: block !important;
  }

  .sidebar .brand,
  .sidebar .nav-label,
  .sidebar .nav-item:not([data-view="dashboard"]):not([data-view="customers"]):not([data-view="finance"]):not([data-view="system"]) {
    display: none;
  }

  .sidebar nav,
  .nav-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .sidebar .nav-item {
    min-width: 0;
    min-height: 52px;
    padding: 7px 4px;
    justify-content: center;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.15;
    color: rgba(235, 248, 255, 0.72);
  }

  .sidebar .nav-item::before {
    width: 7px;
    height: 7px;
    margin: 0 auto 5px;
  }

  .sidebar .nav-item.active {
    color: #fff;
    background: linear-gradient(180deg, rgba(40, 165, 238, 0.55), rgba(16, 82, 164, 0.48));
    border-color: rgba(91, 203, 255, 0.46);
    box-shadow: inset 0 0 18px rgba(91, 203, 255, 0.14), 0 0 18px rgba(91, 203, 255, 0.14);
  }

  .sidebar .nav-item[data-view="finance"] {
    font-size: 0;
  }

  .sidebar .nav-item[data-view="finance"]::after {
    content: "订单回款";
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
  }

  .main-content,
  body.dashboard-screen .main-content {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto !important;
    overflow: visible;
    padding: 0;
  }

  .view,
  body.dashboard-screen .view {
    display: none;
    width: 100%;
    height: auto !important;
    min-height: calc(100dvh - 94px);
    overflow: visible;
  }

  .view.active,
  body.dashboard-screen .view.active {
    display: block;
  }

  .topbar,
  .bigscreen-topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(13, 38, 75, 0.88), rgba(5, 18, 38, 0.86));
    backdrop-filter: blur(14px);
  }

  .bigscreen-topbar .screen-meta {
    gap: 10px;
    font-size: 12px;
  }

  .bigscreen-title,
  .topbar h1,
  .hero-title h1 {
    font-size: clamp(24px, 8vw, 34px);
    line-height: 1.1;
    letter-spacing: 0;
  }

  .bigscreen-topbar .screen-actions,
  .topbar-actions {
    display: none;
  }

  .command-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    height: auto !important;
    min-height: 0;
    padding: 10px 0 0;
    overflow: visible;
  }

  .cockpit-column,
  .cockpit-center,
  .cockpit-map-panel,
  .dashboard-support-grid {
    width: 100%;
    min-width: 0;
  }

  .cockpit-column:first-child {
    order: 1;
  }

  .cockpit-column:last-child {
    order: 2;
  }

  .cockpit-map-panel {
    order: 3;
    min-height: 300px;
    height: 340px;
    border-radius: 16px;
  }

  .dashboard-support-grid {
    order: 4;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .overview-panel,
  .collection-panel,
  .finance-panel,
  .pipeline-panel,
  .ranking-panel,
  .realtime-panel,
  .dashboard-support-grid .panel,
  .panel {
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(20, 48, 88, 0.76), rgba(8, 25, 51, 0.7));
    border: 1px solid rgba(91, 203, 255, 0.2);
    box-shadow: inset 0 0 24px rgba(91, 203, 255, 0.08), 0 14px 32px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
  }

  .section-heading,
  .overview-head {
    gap: 10px;
    align-items: center;
    padding-bottom: 10px;
  }

  .section-heading h2,
  .section-heading h3,
  .overview-title h2 {
    font-size: 20px;
    line-height: 1.2;
  }

  .eyebrow {
    font-size: 11px;
  }

  .overview-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
  }

  .overview-tab {
    min-height: 44px;
    font-size: 16px;
    border-radius: 12px;
  }

  .cockpit-metrics,
  #metricGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .metric-card,
  .metric-tile {
    min-height: 94px;
    padding: 12px;
    border-radius: 13px;
  }

  .metric-card strong,
  .metric-value,
  .stat-number {
    font-size: clamp(24px, 8vw, 34px);
    line-height: 1.05;
    word-break: break-word;
  }

  .trend-chart {
    height: 128px;
  }

  .trend-bars {
    display: grid;
    grid-template-columns: repeat(6, minmax(42px, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .trend-month {
    min-width: 46px;
  }

  .map-stage,
  #customerMap,
  .map-canvas,
  .echarts-map {
    height: 100% !important;
    min-height: 300px;
  }

  .map-tools {
    right: 8px;
    gap: 6px;
    transform: scale(0.88);
    transform-origin: right center;
  }

  .map-legend,
  .province-stat-list {
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    justify-content: flex-start;
    padding: 8px;
  }

  .bigscreen-footer {
    display: none;
  }

  .workspace-grid,
  .finance-layout,
  .renewal-layout,
  .dashboard-grid,
  .settings-split,
  .rank-runner-grid,
  .reports-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .form-grid,
  .compact-grid,
  .paired-grid,
  .enterprise-name-row {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .form-grid .wide,
  .wide {
    grid-column: auto !important;
  }

  label span,
  .field-label {
    font-size: 13px;
  }

  input,
  select,
  textarea,
  .primary-button,
  .ghost-button,
  .file-button,
  button {
    min-height: 44px;
  }

  .primary-button,
  .ghost-button,
  .file-button {
    border-radius: 12px;
  }

  .form-actions,
  .import-actions,
  .toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .table-wrap {
    overflow: visible;
  }

  #customersView .table-wrap table,
  #customersView .table-wrap thead,
  #customersView .table-wrap tbody,
  #customersView .table-wrap tr,
  #customersView .table-wrap td,
  #financeView .table-wrap table,
  #financeView .table-wrap thead,
  #financeView .table-wrap tbody,
  #financeView .table-wrap tr,
  #financeView .table-wrap td {
    display: block;
    width: 100%;
  }

  #customersView .table-wrap thead,
  #financeView .table-wrap thead {
    display: none;
  }

  #customerRows tr,
  #financeRows tr {
    margin: 0 0 10px;
    padding: 13px;
    border: 1px solid rgba(91, 203, 255, 0.2);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(17, 51, 91, 0.68), rgba(6, 22, 46, 0.72));
    box-shadow: inset 0 0 18px rgba(91, 203, 255, 0.06);
  }

  #customerRows td,
  #financeRows td {
    padding: 5px 0;
    border: 0;
  }

  #customerRows td:last-child,
  #financeRows td:last-child {
    padding-top: 10px;
  }

  .row-actions,
  .actions-cell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .row-actions button,
  .actions-cell button {
    width: 100%;
  }

  .customer-detail-dialog,
  .finance-product-dialog,
  .contract-preview-dialog,
  .trend-drill-dialog,
  .report-detail-dialog,
  .enterprise-verify-dialog {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    inset: 0 !important;
    border-radius: 0 !important;
  }

  .customer-detail-body,
  .finance-product-body,
  .contract-preview-body,
  .trend-drill-body,
  .report-detail-body,
  .enterprise-verify-body {
    max-height: calc(100dvh - 116px) !important;
    overflow-y: auto;
    padding: 12px;
  }

  .detail-grid,
  .customer-detail-grid,
  .order-product-grid,
  .enterprise-verify-grid,
  .trend-drill-summary {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .product-entry,
  .finance-product-row,
  .contract-product-row {
    grid-template-columns: 1fr !important;
    gap: 10px;
    padding: 12px;
  }

  .product-picker-grid {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .product-choice-list {
    grid-template-columns: 1fr !important;
  }

  .mobile-hide,
  .desktop-only {
    display: none !important;
  }

  .toast,
  .app-toast {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(84px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    border-radius: 14px;
  }

  .login-card,
  .login-panel {
    width: min(92vw, 430px);
    padding: 28px 22px;
  }

  .login-card h1,
  .login-panel h1 {
    font-size: 32px;
  }
}

body.mobile-app-layout {
  width: 100%;
  min-width: 0;
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: radial-gradient(circle at 50% 8%, rgba(34, 136, 255, 0.2), transparent 34%), #071020;
}

body.mobile-app-layout .app-shell {
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 100dvh;
  overflow: visible;
  padding: 10px 10px calc(112px + env(safe-area-inset-bottom));
}

body.mobile-app-layout .sidebar,
body.dashboard-screen.mobile-app-layout .sidebar {
  display: block !important;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 900;
  width: 100%;
  height: 72px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border: 1px solid rgba(91, 203, 255, 0.22);
  border-width: 1px 0 0;
  background: linear-gradient(180deg, rgba(4, 16, 34, 0.76), rgba(3, 11, 24, 0.96));
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(91, 203, 255, 0.18);
  backdrop-filter: blur(16px);
}

body.mobile-app-layout .sidebar .brand,
body.mobile-app-layout .sidebar .nav-label,
body.mobile-app-layout .sidebar .nav-item:not([data-view="dashboard"]):not([data-view="customers"]):not([data-view="finance"]):not([data-view="system"]) {
  display: none !important;
}

body.mobile-app-layout .sidebar nav,
body.mobile-app-layout .nav-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  height: 100%;
  margin: 0;
}

body.mobile-app-layout .sidebar .nav-item {
  min-width: 0;
  min-height: 52px;
  padding: 7px 4px;
  justify-content: center;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.15;
}

body.mobile-app-layout .sidebar .nav-item[data-view="finance"] {
  font-size: 0;
}

body.mobile-app-layout .sidebar .nav-item[data-view="finance"]::after {
  content: "订单回款";
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}

body.mobile-app-layout .main-content,
body.dashboard-screen.mobile-app-layout .main-content {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto !important;
  overflow: visible;
  padding: 0;
}

body.mobile-app-layout .view,
body.dashboard-screen.mobile-app-layout .view {
  display: none;
  width: 100%;
  height: auto !important;
  min-height: calc(100dvh - 94px);
  overflow: visible;
}

body.mobile-app-layout .view.active,
body.dashboard-screen.mobile-app-layout .view.active {
  display: block;
}

body.dashboard-screen.mobile-app-layout #dashboardView .cockpit-map-panel,
body.dashboard-screen.mobile-app-layout #dashboardView .map-panel,
body.dashboard-screen.mobile-app-layout #dashboardView .map-tools,
body.dashboard-screen.mobile-app-layout #dashboardView .earth-toolbar,
body.dashboard-screen.mobile-app-layout #dashboardView .map-legend,
body.dashboard-screen.mobile-app-layout #dashboardView .province-stat-list,
body.dashboard-screen.mobile-app-layout #dashboardView .bigscreen-footer,
body.dashboard-screen.mobile-app-layout #dashboardView .cockpit-column:first-child .selected-customer-panel,
body.dashboard-screen.mobile-app-layout #dashboardView .cockpit-column:last-child > .cockpit-panel:first-child {
  display: none !important;
}

body.dashboard-screen.mobile-app-layout #dashboardView .command-dashboard,
body.mobile-app-layout .workspace-grid,
body.mobile-app-layout .finance-layout,
body.mobile-app-layout .renewal-layout,
body.mobile-app-layout .dashboard-grid,
body.mobile-app-layout .settings-split,
body.mobile-app-layout .rank-runner-grid,
body.mobile-app-layout .reports-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 12px;
}

/* Mobile APP home: keep the phone workflow focused, no dashboard map. */
@media (max-width: 980px) {
  body.dashboard-screen #dashboardView .cockpit-map-panel,
  body.dashboard-screen #dashboardView .map-panel,
  body.dashboard-screen #dashboardView .map-tools,
  body.dashboard-screen #dashboardView .earth-toolbar,
  body.dashboard-screen #dashboardView .map-legend,
  body.dashboard-screen #dashboardView .province-stat-list,
  body.dashboard-screen #dashboardView .bigscreen-footer {
    display: none !important;
  }

  body.dashboard-screen #dashboardView .cockpit-column:first-child .selected-customer-panel,
  body.dashboard-screen #dashboardView .cockpit-column:last-child > .cockpit-panel:first-child {
    display: none !important;
  }

  body.dashboard-screen #dashboardView .command-dashboard {
    grid-template-columns: 1fr !important;
  }

  body.dashboard-screen #dashboardView .cockpit-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .customer-detail-modal {
    z-index: 1200;
  }

  .customer-detail-dialog,
  .finance-product-dialog,
  .contract-preview-dialog,
  .trend-drill-dialog,
  .report-detail-dialog,
  .enterprise-verify-dialog,
  .report-metric-dialog {
    inset: 0 !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
  }

  .report-metric-dialog {
    display: flex;
    flex-direction: column;
  }

  .report-metric-dialog .customer-detail-head {
    flex: 0 0 auto;
    padding: 14px 14px 12px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(9, 28, 58, 0.98), rgba(7, 21, 44, 0.94));
  }

  .report-metric-dialog .customer-detail-head h3 {
    font-size: 20px;
    line-height: 1.25;
  }

  .report-metric-dialog .customer-detail-body {
    flex: 1 1 auto;
    max-height: none !important;
    overflow-y: auto;
    padding: 12px 12px 92px;
  }

  .report-detail-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(118px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .report-detail-summary-grid button {
    min-width: 118px;
    min-height: 74px;
    padding: 10px;
  }

  .report-detail-summary-grid strong {
    font-size: 17px;
  }

  .report-detail-toolbar {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
  }

  .report-period-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .report-period-tabs button {
    min-height: 40px;
    padding: 8px 4px;
  }

  .report-custom-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .report-custom-range button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .report-detail-total {
    margin-bottom: 10px;
    padding: 12px;
  }

  .report-detail-total strong {
    font-size: 28px;
  }

  .report-detail-table {
    display: none !important;
  }

  .report-detail-mobile-list {
    display: grid;
    gap: 10px;
  }
}

/* Mobile APP refinements: login must own the screen before authentication. */
.login-screen {
  z-index: 3000 !important;
}

.login-screen:not(.hidden) + .app-shell .sidebar {
  display: none !important;
}

body.mobile-app-layout .toast {
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 3100;
}

body.mobile-app-layout .view {
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
}

body.mobile-app-layout .panel {
  border-radius: 14px;
}

body.mobile-app-layout #systemView {
  padding-bottom: calc(124px + env(safe-area-inset-bottom));
}

body.mobile-app-layout #systemView .system-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 12px;
}

body.mobile-app-layout #systemView .panel {
  padding: 14px;
}

body.mobile-app-layout #systemView .section-heading {
  align-items: flex-start;
  gap: 10px;
}

body.mobile-app-layout #systemView .section-heading h3 {
  font-size: 22px;
  line-height: 1.2;
}

body.mobile-app-layout #systemView .form-grid.single {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 10px;
}

body.mobile-app-layout #systemView label input,
body.mobile-app-layout #systemView label select,
body.mobile-app-layout #systemView label textarea {
  min-height: 48px;
  font-size: 15px;
}

body.mobile-app-layout #systemView .compact-table {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

body.mobile-app-layout #systemView .compact-table table {
  min-width: 480px;
}

body.mobile-app-layout #systemView .settings-split {
  grid-template-columns: 1fr !important;
}

body.mobile-app-layout #systemView .product-settings-layout {
  max-height: none;
  overflow: visible;
}

body.mobile-app-layout #financeView {
  padding-bottom: calc(124px + env(safe-area-inset-bottom));
}

body.mobile-app-layout #financeView .table-wrap {
  max-height: none;
  overflow: visible;
  border: 0;
}

body.mobile-app-layout #financeView .table-wrap table,
body.mobile-app-layout #financeView .table-wrap tbody,
body.mobile-app-layout #financeRows,
body.mobile-app-layout #financeRows tr,
body.mobile-app-layout #financeRows td {
  display: block;
  width: 100%;
}

body.mobile-app-layout #financeView .table-wrap thead {
  display: none !important;
}

body.mobile-app-layout #financeRows tr {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid rgba(91, 203, 255, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 15% 8%, rgba(77, 199, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(17, 51, 91, 0.76), rgba(5, 18, 39, 0.86));
  box-shadow: inset 0 0 22px rgba(91, 203, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.2);
}

body.mobile-app-layout #financeRows td {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(91, 203, 255, 0.14);
  border-radius: 12px;
  background: rgba(7, 24, 50, 0.72);
  color: rgba(255, 255, 255, 0.92);
  overflow-wrap: anywhere;
}

body.mobile-app-layout #financeRows td::before {
  display: block;
  margin-bottom: 5px;
  color: rgba(194, 224, 255, 0.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

body.mobile-app-layout #financeRows td:nth-child(1)::before {
  content: "客户";
}

body.mobile-app-layout #financeRows td:nth-child(2)::before {
  content: "协议编号";
}

body.mobile-app-layout #financeRows td:nth-child(3)::before {
  content: "产品明细";
}

body.mobile-app-layout #financeRows td:nth-child(4)::before {
  content: "销售金额";
}

body.mobile-app-layout #financeRows td:nth-child(5)::before {
  content: "已回款";
}

body.mobile-app-layout #financeRows td:nth-child(6)::before {
  content: "未回款";
}

body.mobile-app-layout #financeRows td:nth-child(7)::before {
  content: "提成";
}

body.mobile-app-layout #financeRows td:nth-child(1),
body.mobile-app-layout #financeRows td:nth-child(3) {
  grid-column: 1 / -1;
}

body.mobile-app-layout #financeRows .customer-link-button {
  width: 100%;
  padding: 0;
  text-align: left;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
}

body.mobile-app-layout #financeRows .amount-link,
body.mobile-app-layout #financeRows .amount-pill,
body.mobile-app-layout #financeRows td:nth-child(7) {
  color: #5bcbff;
  font-size: 18px;
  font-weight: 950;
}

body.mobile-app-layout #financeRows .amount-pill {
  justify-content: flex-start;
  padding: 0;
  background: transparent;
}

body.mobile-app-layout #financeRows .amount-pill.warning {
  color: #ffd36b;
}

body.mobile-app-layout #financeRows .finance-order-items {
  gap: 7px;
}

body.mobile-app-layout #financeRows .finance-order-item {
  padding: 9px 10px;
  border-radius: 11px;
}

body.mobile-app-layout #financeRows .finance-order-item strong {
  font-size: 14px;
}

body.mobile-app-layout #financeRows .finance-order-item span,
body.mobile-app-layout #financeRows .finance-order-items em,
body.mobile-app-layout #financeRows .finance-order-empty {
  font-size: 12px;
}

body.mobile-app-layout #customerForm {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px;
}

body.mobile-app-layout #customerForm .wide,
body.mobile-app-layout #customerForm .enterprise-name-row,
body.mobile-app-layout #customerForm .import-actions,
body.mobile-app-layout #customerForm .form-actions {
  grid-column: 1 / -1 !important;
}

body.mobile-app-layout #customerForm .enterprise-name-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end;
  gap: 8px;
}

body.mobile-app-layout #customersView .enterprise-verify-inline-button {
  display: none !important;
}

body.mobile-app-layout #customersView .mobile-camera-button {
  display: inline-flex;
}

body.mobile-app-layout #customersView .mobile-camera-button:active {
  transform: scale(0.96);
  filter: brightness(1.12);
}

body.mobile-app-layout #customerForm .contact-field,
body.mobile-app-layout #customerForm .phone-field {
  grid-column: auto !important;
}

body.mobile-app-layout #customerForm label span {
  font-size: 12px;
}

body.mobile-app-layout #customerForm input,
body.mobile-app-layout #customerForm select,
body.mobile-app-layout #customerForm textarea {
  font-size: 15px;
  min-height: 48px;
}

body.mobile-app-layout #customerForm .import-actions {
  position: relative;
}

body.mobile-app-layout #customerForm .photo-ocr-button {
  height: 1px;
  left: -9999px;
  min-height: 1px;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 1px;
}

body.mobile-app-layout #customerForm .photo-ocr-hint {
  display: none;
}

body.mobile-app-layout #customerForm .compact-file:not(.photo-ocr-button) {
  width: 100%;
}
