:root {
  --bg: #06111d;
  --bg2: #071b29;
  --panel: rgba(9, 29, 45, 0.84);
  --panel2: rgba(12, 39, 58, 0.72);
  --line: rgba(96, 196, 255, 0.24);
  --line-strong: rgba(95, 225, 255, 0.58);
  --text: #eef8ff;
  --muted: #8db2c4;
  --cyan: #34d9ff;
  --teal: #21e0b3;
  --amber: #ffbf4f;
  --red: #ff5d6c;
  --green: #52f0a8;
  --purple: #9f8cff;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 52% 18%, rgba(35, 176, 220, 0.18), transparent 28%),
    radial-gradient(circle at 8% 72%, rgba(33, 224, 179, 0.10), transparent 30%),
    linear-gradient(135deg, var(--bg), #031827 54%, #07101a);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(72, 202, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 202, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
}

button {
  font: inherit;
}

.ioc-shell {
  width: min(1920px, 100%);
  margin: 0 auto;
  padding: 22px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(330px, 1.05fr) minmax(500px, 1.75fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(52, 217, 255, 0.18), rgba(33, 224, 179, 0.08));
  box-shadow: inset 0 0 24px rgba(52, 217, 255, 0.28), 0 0 28px rgba(52, 217, 255, 0.14);
  border-radius: 8px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0;
}

h1, h2, p {
  margin: 0;
}

.brand h1 {
  font-size: clamp(22px, 1.8vw, 34px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.brand p,
.twin-toolbar span,
.panel-title span,
.metric-card small {
  color: var(--muted);
}

.brand p {
  margin-top: 6px;
  font-size: 13px;
}

.module-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(94px, 1fr));
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  background: rgba(5, 16, 26, 0.58);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.module-tab,
.layer-controls button {
  border: 1px solid transparent;
  color: #b7d6e7;
  background: transparent;
  border-radius: 7px;
  min-height: 38px;
  cursor: pointer;
  transition: 160ms ease;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.module-tab:hover,
.layer-controls button:hover {
  color: var(--text);
  border-color: rgba(52, 217, 255, 0.28);
}

.module-tab.active,
.layer-controls button.active {
  color: #06202b;
  border-color: rgba(83, 239, 255, 0.8);
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 0 28px rgba(52, 217, 255, 0.25);
}

.status-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  color: #b5d6e8;
  font-size: 13px;
}

.status-cluster strong,
.metric-card strong,
.twin-bottom strong {
  font-family: "IBM Plex Mono", Consolas, monospace;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(82, 240, 168, 0.14), 0 0 16px var(--green);
}

.hero-metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(6, minmax(128px, 1fr));
  gap: 12px;
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 38%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.metric-card {
  min-height: 94px;
  padding: 14px 16px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.metric-card span {
  display: block;
  color: #a8ccdc;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: clamp(21px, 1.65vw, 34px);
  color: var(--text);
  line-height: 1;
}

.dashboard-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(620px, 1.8fr) minmax(300px, 0.86fr);
  gap: 14px;
  align-items: stretch;
}

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

.panel {
  border-radius: 8px;
  padding: 16px;
  overflow: hidden;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.panel-title h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.panel-title span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.module-summary p {
  color: #b6d5e4;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 15px;
}

.kpi-list {
  display: grid;
  gap: 9px;
}

.kpi-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid rgba(117, 213, 255, 0.15);
  background: rgba(4, 14, 23, 0.44);
  border-radius: 6px;
}

.kpi-item span {
  color: #93bacd;
  font-size: 12px;
}

.kpi-item strong {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 14px;
  color: var(--cyan);
}

.flow-chart {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 86px 1fr 52px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: #b7d3e0;
}

.bar-row i {
  display: block;
  height: 9px;
  border-radius: 99px;
  background: rgba(116, 191, 221, 0.16);
  overflow: hidden;
}

.bar-row i::before {
  content: "";
  display: block;
  width: var(--v);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--cyan), #7c91ff);
  box-shadow: 0 0 14px rgba(52, 217, 255, 0.45);
}

.bar-row b {
  font-family: "IBM Plex Mono", Consolas, monospace;
  color: var(--text);
}

.alert-feed {
  display: grid;
  gap: 10px;
}

.alert-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  border-left: 3px solid var(--amber);
}

.alert-item.high {
  border-left-color: var(--red);
}

.alert-item.good {
  border-left-color: var(--green);
}

.alert-item i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  color: var(--amber);
  box-shadow: 0 0 12px currentColor;
}

.alert-item.high i {
  color: var(--red);
}

.alert-item.good i {
  color: var(--green);
}

.alert-item strong {
  display: block;
  font-size: 12px;
}

.alert-item span,
.alert-item time {
  color: var(--muted);
  font-size: 11px;
}

.twin-stage {
  min-height: 638px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(95, 225, 255, 0.34);
  background: rgba(4, 16, 26, 0.58);
  border-radius: 10px;
  box-shadow: var(--shadow), inset 0 0 52px rgba(52, 217, 255, 0.10);
  overflow: hidden;
}

.twin-toolbar,
.twin-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 18, 29, 0.78);
}

.twin-toolbar strong {
  display: block;
  font-size: 16px;
}

.twin-toolbar span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.layer-controls {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.layer-controls button {
  min-height: 30px;
  padding: 0 11px;
  font-size: 12px;
  border-color: rgba(117, 213, 255, 0.18);
}

.twin-map {
  min-height: clamp(360px, 36vw, 520px);
  position: relative;
  overflow: hidden;
  background: #071927;
}

.twin-map img {
  width: 100%;
  height: 100%;
  min-height: clamp(360px, 36vw, 520px);
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.02) brightness(0.82);
}

.twin-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(52, 217, 255, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(52, 217, 255, 0.13) 1px, transparent 1px),
    radial-gradient(circle at 52% 48%, transparent 28%, rgba(3, 14, 24, 0.56) 100%);
  background-size: 46px 46px, 46px 46px, auto;
  pointer-events: none;
  mix-blend-mode: screen;
}

.twin-map::after {
  content: attr(data-mode);
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 8px 11px;
  border: 1px solid rgba(95, 225, 255, 0.42);
  border-radius: 6px;
  background: rgba(4, 16, 25, 0.78);
  color: #dff8ff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  backdrop-filter: blur(12px);
}

.map-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0 32%, rgba(52, 217, 255, 0.42) 32.2%, transparent 32.6% 58%, rgba(52, 217, 255, 0.28) 58.2%, transparent 58.6%),
    linear-gradient(28deg, transparent 0 46%, rgba(33, 224, 179, 0.35) 46.2%, transparent 46.6%);
  opacity: 0.36;
}

.heat-zone {
  position: absolute;
  width: 185px;
  height: 118px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  mix-blend-mode: screen;
  opacity: 0.36;
}

.zone-a {
  left: 37%;
  top: 31%;
  background: radial-gradient(circle, rgba(52, 217, 255, 0.62), transparent 68%);
}

.zone-b {
  right: 18%;
  bottom: 18%;
  background: radial-gradient(circle, rgba(33, 224, 179, 0.52), transparent 68%);
}

.twin-map[data-mode="management"] .heat-zone {
  background: radial-gradient(circle, rgba(255, 191, 79, 0.56), transparent 68%);
}

.twin-map[data-mode="operation"] .heat-zone {
  background: radial-gradient(circle, rgba(255, 93, 108, 0.48), transparent 68%);
}

.twin-map[data-mode="service"] .heat-zone {
  background: radial-gradient(circle, rgba(82, 240, 168, 0.50), transparent 68%);
}

.twin-map[data-mode="industry"] .heat-zone {
  background: radial-gradient(circle, rgba(159, 140, 255, 0.50), transparent 68%);
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 20%;
  background: linear-gradient(90deg, transparent, rgba(52, 217, 255, 0.85), transparent);
  box-shadow: 0 0 22px rgba(52, 217, 255, 0.75);
  animation: scan 5s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  from { transform: translateY(-80px); }
  to { transform: translateY(520px); }
}

.map-pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(52, 217, 255, 0.44);
  color: #dff8ff;
  background: rgba(4, 16, 25, 0.74);
  backdrop-filter: blur(10px);
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.map-pin span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan), 0 0 0 5px rgba(52, 217, 255, 0.18);
}

.map-pin.active {
  color: #051924;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
}

.pin-a { left: 44%; top: 28%; }
.pin-b { left: 30%; top: 48%; }
.pin-c { left: 58%; top: 52%; }
.pin-d { right: 10%; top: 32%; }
.pin-e { left: 46%; bottom: 19%; }

.twin-map[data-mode="operation"] .map-pin span {
  background: var(--red);
  box-shadow: 0 0 14px var(--red), 0 0 0 5px rgba(255, 93, 108, 0.18);
}

.twin-map[data-mode="management"] .map-pin span {
  background: var(--amber);
  box-shadow: 0 0 14px var(--amber), 0 0 0 5px rgba(255, 191, 79, 0.18);
}

.twin-map[data-mode="service"] .map-pin span {
  background: var(--green);
  box-shadow: 0 0 14px var(--green), 0 0 0 5px rgba(82, 240, 168, 0.18);
}

.twin-map[data-mode="industry"] .map-pin span {
  background: var(--purple);
  box-shadow: 0 0 14px var(--purple), 0 0 0 5px rgba(159, 140, 255, 0.18);
}

body[data-module="management"] .module-tab.active,
body[data-module="management"] .layer-controls button.active,
.twin-map[data-mode="management"] .map-pin.active {
  background: linear-gradient(135deg, var(--amber), #ffe08a);
}

body[data-module="operation"] .module-tab.active,
body[data-module="operation"] .layer-controls button.active,
.twin-map[data-mode="operation"] .map-pin.active {
  background: linear-gradient(135deg, var(--red), #ffad70);
}

body[data-module="service"] .module-tab.active,
body[data-module="service"] .layer-controls button.active,
.twin-map[data-mode="service"] .map-pin.active {
  background: linear-gradient(135deg, var(--green), var(--teal));
}

body[data-module="industry"] .module-tab.active,
body[data-module="industry"] .layer-controls button.active,
.twin-map[data-mode="industry"] .map-pin.active {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
}

.selection-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: min(360px, calc(100% - 36px));
  padding: 14px;
  border: 1px solid rgba(95, 225, 255, 0.38);
  border-radius: 8px;
  background: rgba(5, 19, 31, 0.84);
  backdrop-filter: blur(18px);
}

.selection-card span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
}

.selection-card strong {
  display: block;
  margin: 6px 0;
  font-size: 22px;
}

.selection-card p {
  color: #b5d4e3;
  font-size: 12px;
  line-height: 1.45;
}

.twin-bottom {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.twin-bottom div {
  padding-left: 14px;
  border-left: 2px solid rgba(52, 217, 255, 0.34);
}

.twin-bottom span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
}

.twin-bottom strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

.gauge-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gauge {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #071c2b 0 54%, transparent 55%),
    conic-gradient(var(--cyan) calc(var(--p) * 1%), rgba(95, 225, 255, 0.14) 0);
  position: relative;
}

.gauge b {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 22px;
}

.gauge span {
  position: absolute;
  bottom: 22%;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 800;
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.ticket-grid div {
  padding: 12px 8px;
  border: 1px solid rgba(117, 213, 255, 0.15);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 6px;
  text-align: center;
}

.ticket-grid strong {
  display: block;
  font-family: "IBM Plex Mono", Consolas, monospace;
  color: var(--cyan);
  font-size: 20px;
}

.ticket-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
}

.mini-table td {
  padding: 9px 0;
  border-top: 1px solid rgba(117, 213, 255, 0.12);
  color: #c8e1eb;
  font-size: 12px;
}

.mini-table td:nth-child(2),
.mini-table td:nth-child(3) {
  text-align: right;
  font-family: "IBM Plex Mono", Consolas, monospace;
}

.good { color: var(--green) !important; }
.warn { color: var(--amber) !important; }
.severity { color: var(--amber) !important; }

.donut-block {
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 14px;
}

.donut {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) 0 31%, var(--teal) 31% 55%, var(--amber) 55% 73%, var(--purple) 73% 88%, #ff6b95 88% 100%);
  position: relative;
  box-shadow: 0 0 30px rgba(52, 217, 255, 0.18);
}

.donut::after {
  content: attr(data-center);
  position: absolute;
  inset: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #071c2b;
  color: var(--text);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.donut-block ul,
.insight-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.donut-block li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c1ddea;
  font-size: 12px;
  margin: 8px 0;
}

.donut-block i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

.c1 { background: var(--cyan); }
.c2 { background: var(--teal); }
.c3 { background: var(--amber); }
.c4 { background: var(--purple); }
.c5 { background: #ff6b95; }

.analysis-band {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 14px;
}

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

.pipeline div {
  position: relative;
  padding: 14px 12px;
  border: 1px solid rgba(117, 213, 255, 0.15);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 8px;
}

.pipeline div:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -11px;
  top: 50%;
  width: 11px;
  height: 2px;
  background: var(--cyan);
}

.pipeline strong {
  display: block;
  font-family: "IBM Plex Mono", Consolas, monospace;
  color: var(--cyan);
  font-size: 24px;
}

.pipeline span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

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

.insight-list li {
  padding: 11px 12px;
  border: 1px solid rgba(117, 213, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 7px;
  color: #c9e1ec;
  font-size: 12px;
  line-height: 1.42;
}

.insight-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 13px;
}

@media (max-width: 980px) {
  .topbar,
  .dashboard-grid,
  .analysis-band {
    grid-template-columns: 1fr;
  }

  .module-tabs,
  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .status-cluster {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .ioc-shell {
    padding: 12px;
  }

  .brand {
    align-items: flex-start;
  }

  .module-tabs,
  .hero-metrics,
  .twin-bottom,
  .pipeline,
  .insight-list {
    grid-template-columns: 1fr;
  }

  .ticket-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .donut-block {
    grid-template-columns: 1fr;
  }

  .twin-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-pin {
    font-size: 10px;
    padding: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scanline {
    animation: none;
  }
}

.module-workspace {
  margin-top: 14px;
}

.overview-layout,
.management-layout,
.operation-layout,
.service-layout,
.industry-layout {
  display: grid;
  gap: 14px;
}

.overview-layout {
  grid-template-columns: 0.82fr 1.8fr 0.82fr;
  grid-template-areas:
    "score twin alerts"
    "economy twin alerts"
    "funnel twin alerts";
}

.management-layout {
  grid-template-columns: 0.78fr 1.55fr 0.9fr;
  grid-template-areas:
    "register twin matrix"
    "kanban twin matrix"
    "health twin matrix";
}

.operation-layout {
  grid-template-columns: 0.82fr 1.65fr 0.9fr;
  grid-template-areas:
    "timeline twin traffic"
    "mix chain traffic";
}

.service-layout {
  grid-template-columns: 0.88fr 1.65fr 0.88fr;
  grid-template-areas:
    "journey twin tickets"
    "app twin trend";
}

.industry-layout {
  grid-template-columns: 1.05fr 1.48fr 0.92fr;
  grid-template-areas:
    "chain twin ranking"
    "playbook twin funnel";
}

.overview-command { grid-area: score; }
.overview-alerts { grid-area: alerts; }
.overview-economy { grid-area: economy; }
.overview-funnel { grid-area: funnel; }
.asset-register { grid-area: register; }
.floor-matrix-panel { grid-area: matrix; }
.maintenance-kanban { grid-area: kanban; }
.asset-health-panel { grid-area: health; }
.dispatch-timeline { grid-area: timeline; }
.traffic-board { grid-area: traffic; }
.incident-chain { grid-area: chain; }
.ops-mix { grid-area: mix; }
.journey-panel { grid-area: journey; }
.ticket-split { grid-area: tickets; }
.tenant-app { grid-area: app; }
.service-trend { grid-area: trend; }
.chain-map { grid-area: chain; }
.investor-ranking { grid-area: ranking; }
.attraction-playbook { grid-area: playbook; }
.conversion-funnel { grid-area: funnel; }
.twin-card { grid-area: twin; min-width: 0; }

.score-stack {
  display: grid;
  gap: 10px;
}

.score-stack div,
.corr-cards div,
.spark-card,
.service-sla,
.building-row,
.app-grid button {
  border: 1px solid rgba(117, 213, 255, 0.15);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 7px;
}

.score-stack div {
  padding: 14px;
}

.score-stack b,
.service-sla b,
.corr-cards b,
.spark-card strong {
  display: block;
  font-family: "IBM Plex Mono", Consolas, monospace;
  color: var(--cyan);
  font-size: 24px;
}

.score-stack span,
.spark-card span,
.spark-card small,
.service-sla span,
.corr-cards span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.radar-board {
  position: relative;
  height: 170px;
  margin-top: 14px;
  border: 1px solid rgba(117, 213, 255, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle, rgba(52, 217, 255, 0.12) 0 2px, transparent 3px),
    repeating-radial-gradient(circle at center, transparent 0 27px, rgba(52, 217, 255, 0.16) 28px 29px);
  background-size: 22px 22px, auto;
}

.radar-board i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px var(--green);
}

.balance-wheel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.wheel-slice {
  min-height: 92px;
  padding: 13px;
  border: 1px solid rgba(52, 217, 255, 0.20);
  background:
    radial-gradient(circle at 85% 15%, rgba(33, 224, 179, 0.18), transparent 36%),
    rgba(255, 255, 255, 0.035);
  border-radius: 8px;
}

.wheel-slice b {
  display: block;
  font-family: "IBM Plex Mono", Consolas, monospace;
  color: var(--cyan);
  font-size: 24px;
}

.wheel-slice span {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-weight: 800;
  font-size: 12px;
}

.wheel-slice small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

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

.spark-card {
  padding: 12px;
  min-height: 96px;
}

.spark-card i {
  display: block;
  height: 24px;
  margin-top: 10px;
  background: linear-gradient(135deg, transparent 10%, var(--cyan) 11% 14%, transparent 15% 32%, var(--teal) 33% 36%, transparent 37% 56%, var(--purple) 57% 60%, transparent 61%);
  opacity: 0.8;
}

.building-stack {
  display: grid;
  gap: 10px;
}

.lease-ring {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(117, 213, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.lease-ring div {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #071c2b 0 52%, transparent 53%),
    conic-gradient(var(--amber) var(--p), rgba(117, 213, 255, 0.15) 0);
}

.lease-ring b {
  font-family: "IBM Plex Mono", Consolas, monospace;
  color: var(--amber);
  font-size: 18px;
}

.lease-ring span,
.lease-ring li {
  color: var(--muted);
  font-size: 11px;
}

.lease-ring ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.lease-ring i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 6px;
}

.building-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 12px;
  color: var(--text);
  text-align: left;
}

.building-row b {
  font-family: "IBM Plex Mono", Consolas, monospace;
  color: var(--amber);
}

.building-row small,
.building-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.floor-matrix {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
}

.floor-matrix span {
  aspect-ratio: 1.18;
  border-radius: 4px;
  border: 1px solid rgba(117, 213, 255, 0.12);
  background: rgba(82, 240, 168, 0.56);
}

.floor-matrix .risk { background: rgba(255, 191, 79, 0.72); }
.floor-matrix .empty { background: rgba(52, 217, 255, 0.22); }

.legend {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  background: var(--green);
}

.legend .risk { background: var(--amber); }
.legend .empty { background: rgba(52, 217, 255, 0.45); }

.asset-bars,
.ops-kpis {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.kanban div {
  padding: 12px;
  border: 1px solid rgba(117, 213, 255, 0.15);
  background: rgba(4, 14, 23, 0.42);
  border-radius: 8px;
}

.kanban h3 {
  margin: 0 0 10px;
  font-size: 13px;
}

.kanban p {
  margin: 8px 0;
  padding: 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: #c8e1eb;
  font-size: 12px;
}

.timeline {
  display: grid;
  gap: 13px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 52px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(52, 217, 255, 0.28);
}

.timeline div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  position: relative;
  padding: 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.timeline time {
  color: var(--cyan);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
}

.timeline strong {
  font-size: 13px;
}

.timeline span {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}

.dual-chart {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(52, 217, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.dual-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--red), var(--amber));
  box-shadow: 0 0 16px rgba(255, 93, 108, 0.18);
}

.corr-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.corr-cards div {
  padding: 10px;
}

.chain {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.chain div {
  position: relative;
  padding: 15px 10px;
  text-align: center;
  border: 1px solid rgba(255, 93, 108, 0.26);
  background: rgba(255, 93, 108, 0.08);
  border-radius: 7px;
  font-weight: 800;
  font-size: 12px;
}

.mini-area {
  height: 92px;
  margin-top: 12px;
  display: flex;
  align-items: end;
  gap: 7px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 93, 108, 0.06);
}

.mini-area span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--red), var(--amber));
}

.journey {
  display: grid;
  gap: 12px;
}

.journey div {
  padding: 14px;
  border-left: 3px solid var(--green);
  background: rgba(82, 240, 168, 0.06);
  border-radius: 6px;
}

.journey b,
.playbook b {
  display: block;
  color: var(--green);
  margin-bottom: 5px;
}

.journey span,
.playbook span {
  color: var(--muted);
  font-size: 12px;
}

.service-sla {
  margin-top: 14px;
  padding: 16px;
}

.bubble-chart {
  min-height: 330px;
  position: relative;
}

.bubble-chart div {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,0.24), rgba(52, 217, 255, 0.20));
  border: 1px solid rgba(52, 217, 255, 0.34);
  color: var(--text);
  font-size: 12px;
}

.bubble-chart b {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 22px;
  color: var(--cyan);
}

.ticket-detail {
  display: grid;
  gap: 12px;
}

.ticket-row {
  display: grid;
  grid-template-columns: 1fr minmax(110px, 0.7fr) 46px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(82, 240, 168, 0.16);
  border-radius: 8px;
  background: rgba(82, 240, 168, 0.045);
}

.ticket-row strong {
  display: block;
  font-size: 13px;
}

.ticket-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.ticket-row i {
  height: 10px;
  border-radius: 99px;
  background: rgba(117, 213, 255, 0.13);
  overflow: hidden;
}

.ticket-row i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  min-width: 28px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.ticket-row b {
  font-family: "IBM Plex Mono", Consolas, monospace;
  color: var(--green);
  text-align: right;
}

.b1 { width: 148px; height: 148px; left: 14%; top: 6%; }
.b2 { width: 126px; height: 126px; right: 12%; top: 21%; }
.b3 { width: 102px; height: 102px; left: 8%; bottom: 10%; }
.b4 { width: 116px; height: 116px; right: 22%; bottom: 4%; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.app-grid button {
  min-height: 38px;
  color: #cce9f4;
  font-size: 12px;
}

.value-chain {
  min-height: 330px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 18px;
  align-items: center;
}

.chain-network {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  align-items: stretch;
  gap: 14px;
  min-height: 330px;
}

.chain-col,
.chain-core {
  border: 1px solid rgba(159, 140, 255, 0.24);
  background: rgba(159, 140, 255, 0.06);
  border-radius: 10px;
  padding: 14px;
}

.chain-col h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14px;
}

.chain-node {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
  padding: 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 10px;
}

.chain-node strong {
  font-size: 12px;
}

.chain-node span {
  color: var(--amber);
  font-size: 11px;
  font-weight: 800;
}

.chain-node small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
}

.chain-core {
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle, rgba(52, 217, 255, 0.18), transparent 58%),
    rgba(52, 217, 255, 0.06);
  border-color: rgba(52, 217, 255, 0.38);
}

.chain-core b {
  font-size: 24px;
  line-height: 1.1;
}

.chain-core span,
.chain-core small {
  color: var(--muted);
  line-height: 1.4;
}

.node {
  min-height: 170px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(159, 140, 255, 0.32);
  background: rgba(159, 140, 255, 0.08);
  color: #d8eaff;
  text-align: center;
}

.node b {
  font-size: 20px;
  color: var(--text);
}

.node small {
  color: var(--muted);
  line-height: 1.4;
}

.anchor {
  min-height: 225px;
  border-color: rgba(52, 217, 255, 0.44);
  background: radial-gradient(circle, rgba(52, 217, 255, 0.16), rgba(159, 140, 255, 0.08));
}

.gap-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gap-strip span {
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 191, 79, 0.10);
  border: 1px solid rgba(255, 191, 79, 0.28);
  color: #ffe0a3;
  font-size: 12px;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table td {
  padding: 14px 0;
  border-bottom: 1px solid rgba(117, 213, 255, 0.13);
  font-size: 13px;
}

.ranking-table small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.ranking-table td:nth-child(2),
.ranking-table td:nth-child(3) {
  text-align: right;
  font-family: "IBM Plex Mono", Consolas, monospace;
}

.ranking-table b {
  color: var(--purple);
  font-size: 20px;
}

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

.playbook div {
  min-height: 124px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(159, 140, 255, 0.24);
  background: rgba(159, 140, 255, 0.075);
}

.funnel-chart {
  display: grid;
  gap: 8px;
}

.funnel-step {
  width: var(--w);
  min-width: 46%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(52, 217, 255, 0.26);
  background: linear-gradient(90deg, rgba(52, 217, 255, 0.20), rgba(33, 224, 179, 0.06));
  border-radius: 6px;
}

.funnel-step b,
.score-bar b {
  font-family: "IBM Plex Mono", Consolas, monospace;
  color: var(--cyan);
}

.funnel-step span {
  color: var(--muted);
  font-size: 12px;
}

.line-grid,
.trend-lines {
  display: grid;
  gap: 10px;
}

.line-series {
  padding: 10px;
  border: 1px solid rgba(117, 213, 255, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.line-series div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}

.line-series span {
  font-family: "IBM Plex Mono", Consolas, monospace;
  color: var(--green);
}

.line-series svg {
  width: 100%;
  height: 54px;
  overflow: visible;
  background:
    linear-gradient(rgba(117, 213, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 213, 255, 0.06) 1px, transparent 1px);
  background-size: 100% 18px, 25% 100%;
}

.line-series polyline {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(52, 217, 255, 0.55));
}

.semi-donut {
  display: grid;
  gap: 9px;
}

.semi-donut i {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  align-items: center;
  color: #cce9f4;
  font-style: normal;
  font-size: 12px;
}

.semi-donut i::after {
  content: "";
  height: 11px;
  width: var(--p);
  min-width: 46px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--amber));
  box-shadow: 0 0 14px rgba(255, 93, 108, 0.26);
}

.score-bars {
  display: grid;
  gap: 12px;
}

.priority-board {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(117, 213, 255, 0.16);
  display: grid;
  gap: 12px;
}

.priority-board h3 {
  margin: 0;
  font-size: 14px;
}

.score-bar {
  display: grid;
  grid-template-columns: 130px 1fr 44px;
  gap: 10px;
  align-items: center;
  color: #cce9f4;
  font-size: 12px;
}

.score-bar i {
  display: block;
  height: 10px;
  border-radius: 99px;
  background: rgba(117, 213, 255, 0.13);
  overflow: hidden;
}

.score-bar i::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: inherit;
}

@media (max-width: 980px) {
  .overview-layout,
  .management-layout,
  .operation-layout,
  .service-layout,
  .industry-layout {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .overview-layout > *,
  .management-layout > *,
  .operation-layout > *,
  .service-layout > *,
  .industry-layout > * {
    grid-area: auto;
  }

  .playbook,
  .kanban,
  .value-chain {
    grid-template-columns: 1fr;
  }
}
