:root {
  color-scheme: light;
  --bg: #eef2ff;
  --surface: #ffffff;
  --surface-soft: #f7f9ff;
  --ink: #101828;
  --muted: #667085;
  --line: #d8deef;
  --line-strong: #c7d0e8;
  --navy: #070b3f;
  --indigo: #4f46e5;
  --blue: #2563eb;
  --cyan: #0891b2;
  --teal: #0f766e;
  --green: #148a55;
  --amber: #d97706;
  --orange: #c05621;
  --red: #c2413a;
  --rose: #e11d48;
  --violet: #7c3aed;
  --shadow: 0 18px 44px rgba(46, 62, 118, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0, rgba(244, 244, 238, 0) 380px),
    var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

button,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  font-size: 15px;
  line-height: 1.35;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.nav-list a {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.nav-list a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.nav-list a.is-active {
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal);
  font-weight: 800;
}

.nav-list a span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--line-strong);
}

.nav-list a.is-active span {
  background: var(--teal);
}

.main {
  min-width: 0;
  padding: 22px clamp(14px, 2.4vw, 34px) 36px;
}

.section {
  scroll-margin-top: 16px;
  padding: 18px 0 28px;
  border-bottom: 1px solid rgba(196, 204, 191, 0.74);
}

.section:last-of-type {
  border-bottom: 0;
}

.first-screen {
  padding-top: 0;
}

.page-head,
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 16px;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.pill,
.tag,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #445047;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pill.danger {
  border-color: rgba(194, 65, 58, 0.28);
  background: rgba(194, 65, 58, 0.08);
  color: var(--red);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 800;
}

.lead {
  max-width: 880px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.version-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(118px, 1fr));
  gap: 8px;
  width: min(410px, 100%);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.version-box div {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(212, 218, 205, 0.74);
  border-radius: 7px;
  background: var(--surface-soft);
}

.version-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.version-box strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.entry-card {
  position: relative;
  min-width: 0;
  min-height: 188px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.entry-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.38);
  background: #ffffff;
}

.entry-card.primary {
  background: #164e63;
  color: #ffffff;
}

.entry-card span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.entry-card.primary span {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.entry-card strong {
  display: block;
  margin-top: 36px;
  font-size: 18px;
  line-height: 1.35;
}

.entry-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.entry-card.primary p {
  color: rgba(255, 255, 255, 0.78);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.segment {
  min-width: 58px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.segment[aria-pressed="true"] {
  color: #ffffff;
  background: #164e63;
}

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

.field {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 13px;
}

.field select {
  max-width: 150px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

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

.kpi {
  position: relative;
  min-width: 0;
  min-height: 126px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.kpi strong {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.kpi small,
.status-strip small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.kpi p {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.kpi b {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.status-strip div {
  min-width: 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.84);
}

.status-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.status-strip strong {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-top: 5px;
  font-size: 18px;
}

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

.position-grid article,
.architecture-board div,
.stage-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.position-grid article {
  padding: 16px;
}

.position-grid h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.35;
}

.position-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

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

.chain span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.chain span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 10px;
  height: 2px;
  background: var(--line-strong);
}

.architecture-board {
  display: grid;
  gap: 10px;
}

.architecture-board div {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
}

.architecture-board strong,
.stage-grid strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
}

.architecture-board span,
.stage-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.section-head {
  align-items: end;
}

.section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.25;
}

.section-head p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  text-align: right;
}

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

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.span-4 {
  grid-column: span 4;
}

.span-6 {
  grid-column: span 6;
}

.span-8 {
  grid-column: span 8;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(212, 218, 205, 0.76);
}

.panel-head h3 {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 1.35;
}

.panel-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--accent);
  flex: 0 0 auto;
}

.panel-body {
  padding: 12px 14px 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(190px, 0.82fr);
  gap: 12px;
  align-items: stretch;
}

.chart {
  width: 100%;
  min-height: 300px;
}

.chart.short {
  min-height: 268px;
}

.metric-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.metric-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(212, 218, 205, 0.74);
  border-radius: 7px;
  background: var(--surface-soft);
}

.metric-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.metric-list strong {
  font-size: 18px;
}

.todo-list {
  display: grid;
  border: 1px solid rgba(212, 218, 205, 0.78);
  border-radius: 8px;
  overflow: hidden;
}

.todo-list.standalone {
  box-shadow: var(--shadow);
}

.todo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-bottom: 1px solid rgba(212, 218, 205, 0.78);
  background: var(--surface);
}

.todo:last-child {
  border-bottom: 0;
}

.todo b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
}

.todo strong,
.todo span {
  display: block;
}

.todo strong {
  font-size: 14px;
  line-height: 1.45;
}

.todo span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.todo em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-align: right;
  white-space: nowrap;
}

.table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.table th,
.table td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(212, 218, 205, 0.78);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.table th {
  color: var(--muted);
  font-weight: 800;
  background: var(--surface-soft);
}

.table tr:last-child td {
  border-bottom: 0;
}

.badge {
  min-width: 46px;
}

.badge.red {
  border-color: rgba(194, 65, 58, 0.24);
  background: rgba(194, 65, 58, 0.1);
  color: var(--red);
}

.badge.orange {
  border-color: rgba(192, 86, 33, 0.24);
  background: rgba(192, 86, 33, 0.1);
  color: var(--orange);
}

.badge.amber {
  border-color: rgba(183, 121, 31, 0.24);
  background: rgba(183, 121, 31, 0.1);
  color: var(--amber);
}

.badge.green {
  border-color: rgba(20, 138, 85, 0.24);
  background: rgba(20, 138, 85, 0.1);
  color: var(--green);
}

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

.flow.compact div {
  min-height: 118px;
}

.flow div,
.normalization-grid div,
.schema-card,
.agent-grid article,
.timeline li {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.flow div {
  position: relative;
  min-height: 142px;
  padding: 13px;
}

.flow div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 10px;
  height: 2px;
  background: var(--line-strong);
}

.flow strong,
.normalization-grid b,
.schema-card h3,
.agent-grid h3,
.timeline strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.35;
}

.flow span,
.normalization-grid span,
.schema-card p,
.agent-grid p,
.timeline span {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.normalization-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.normalization-grid div {
  padding: 12px;
}

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

.schema-card {
  padding: 14px;
}

.schema-card h3 {
  margin-top: 0;
}

.wide-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
}

.field-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.field-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.07);
  color: #155e59;
  font-size: 12px;
  font-weight: 700;
}

.wide-table,
.rules-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.agent-grid article {
  padding: 16px;
}

.agent-grid h3 {
  margin-top: 0;
  color: var(--teal);
}

.agent-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  position: relative;
  padding: 44px 12px 12px;
  counter-increment: step;
}

.timeline li::before {
  content: counter(step);
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--teal);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

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

.stage-grid div {
  padding: 14px;
}

.stage-grid span {
  display: block;
  margin-top: 6px;
}

.footer {
  padding: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.empty-chart {
  display: grid;
  place-items: center;
  min-height: inherit;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1320px) {
  .entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .flow,
  .timeline,
  .chain,
  .stage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 1120px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    z-index: 5;
    height: auto;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    display: none;
  }

  .nav-list {
    display: flex;
    gap: 6px;
    margin: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-list a {
    grid-template-columns: 8px max-content;
    white-space: nowrap;
  }

  .main {
    padding-top: 16px;
  }

  .span-4,
  .span-6,
  .span-8 {
    grid-column: span 6;
  }

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

@media (max-width: 820px) {
  .page-head,
  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head p {
    max-width: none;
    text-align: left;
  }

  .version-box,
  .entry-grid,
  .kpi-grid,
  .status-strip,
  .position-grid,
  .normalization-grid,
  .schema-grid,
  .agent-grid,
  .stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .span-4,
  .span-6,
  .span-8 {
    grid-column: 1 / -1;
  }

  .split,
  .flow,
  .timeline,
  .chain {
    grid-template-columns: 1fr;
  }

  .flow div:not(:last-child)::after,
  .chain span:not(:last-child)::after {
    left: 50%;
    right: auto;
    top: auto;
    bottom: -10px;
    width: 2px;
    height: 10px;
  }

  .architecture-board div {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .filters,
  .field,
  .segmented {
    width: 100%;
  }

  .segment {
    flex: 1 1 0;
  }

  .field {
    justify-content: space-between;
  }
}

@media (max-width: 540px) {
  .main {
    padding-inline: 10px;
  }

  .version-box,
  .entry-grid,
  .kpi-grid,
  .status-strip,
  .position-grid,
  .normalization-grid,
  .schema-grid,
  .agent-grid,
  .stage-grid {
    grid-template-columns: 1fr;
  }

  .kpi strong {
    font-size: 24px;
  }

  .panel-head,
  .todo {
    display: grid;
    grid-template-columns: 1fr;
  }

  .todo em {
    text-align: left;
  }

  .chart {
    min-height: 260px;
  }
}

/* Figma dashboard implementation for pages/data-platform.html */
.figma-body {
  background: #f5f7fb;
  color: #101828;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.figma-body svg {
  display: block;
}

.figma-body svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.figma-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0, rgba(99, 102, 241, 0.14), transparent 34%),
    linear-gradient(180deg, #eef2ff 0, #f7f9ff 42%, #f5f7fb 100%);
}

.figma-workspace {
  min-width: 0;
  background: transparent;
}

.figma-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto auto auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  min-height: 65px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(199, 210, 254, 0.7);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(32, 41, 94, 0.08);
  backdrop-filter: blur(18px);
}

.figma-logo {
  display: inline-grid;
  grid-template-columns: 32px auto;
  gap: 8px;
  align-items: center;
  min-width: max-content;
}

.figma-logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #ffffff;
  background: #0f766e;
}

.figma-logo-mark svg {
  width: 19px;
  height: 19px;
}

.figma-logo strong {
  color: #101828;
  font-size: 18px;
  line-height: 1;
  font-weight: 750;
}

.figma-user-entry {
  display: inline-grid;
  grid-template-columns: 32px auto;
  gap: 8px;
  align-items: center;
  min-width: 142px;
  min-height: 44px;
  padding: 6px 12px 6px 8px;
  border: 0;
  border-radius: 12px;
  background: #070b3f;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(7, 11, 63, 0.18);
}

.user-avatar-mini {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #615fff, #8b5cf6);
  color: #ffffff;
}

.user-avatar-mini svg {
  width: 17px;
  height: 17px;
}

.figma-user-entry strong,
.figma-user-entry small {
  display: block;
  white-space: nowrap;
}

.figma-user-entry strong {
  font-size: 16px;
  line-height: 1.1;
  font-weight: 760;
}

.figma-user-entry small {
  margin-top: 3px;
  color: #c7d2fe;
  font-size: 12px;
  line-height: 1.1;
}

.figma-nav {
  display: flex;
  gap: 3px;
  align-items: center;
  min-width: max-content;
  padding: 3px;
  border: 1px solid #d9def8;
  border-radius: 12px;
  background: #eef2ff;
  color: #475467;
  font-size: 13px;
}

.figma-nav a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.figma-nav a.active {
  background: linear-gradient(135deg, #4338ca, #2563eb);
  color: #ffffff;
  font-weight: 760;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.figma-nav svg {
  width: 17px;
  height: 17px;
}

.figma-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  height: 38px;
  min-width: 178px;
  max-width: 320px;
  padding: 0 10px;
  justify-self: end;
  border: 1px solid #d9def8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(99, 102, 241, 0.04);
  color: #6b7280;
}

.figma-search svg {
  width: 17px;
  height: 17px;
}

.figma-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #101828;
  font-size: 14px;
}

.figma-search input::placeholder {
  color: #697586;
}

.figma-search kbd {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 22px;
  padding: 0 5px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background: #ffffff;
  color: #697586;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
}

.figma-primary,
.figma-icon-button,
.table-actions button,
.pager button {
  border: 0;
  cursor: pointer;
}

.figma-primary {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.figma-primary svg {
  width: 16px;
  height: 16px;
}

.figma-icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eef2ff;
  color: #475467;
}

.figma-icon-button svg {
  width: 20px;
  height: 20px;
}

.figma-icon-button.has-dot::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #fb2c36;
}

.figma-main {
  min-width: 0;
  padding: 28px 24px 34px;
}

.spa-views {
  position: relative;
  min-width: 0;
}

.spa-view {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.spa-view.is-active {
  opacity: 1;
  transform: translateY(0);
}

.spa-view[hidden] {
  display: none;
}

@supports (view-transition-name: none) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 180ms;
    animation-timing-function: ease;
  }
}

.figma-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  min-width: 0;
  min-height: 0;
  padding: 24px;
  border: 1px solid #d9def8;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.94)),
    #ffffff;
  color: #101828;
  box-shadow: var(--shadow);
}

.figma-hero.system-hero,
.figma-hero.compact-hero {
  grid-template-columns: minmax(360px, 0.9fr) minmax(360px, 0.8fr);
}

.figma-hero.compact-hero {
  min-height: 0;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.22;
  color: #101828;
  font-weight: 800;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: #475467;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: none;
  margin-top: 28px;
}

.hero-mini-grid article {
  position: relative;
  min-height: 76px;
  padding: 13px 90px 12px 13px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.hero-mini-grid article:nth-child(1) {
  background: linear-gradient(135deg, #312e81, #615fff);
  color: #ffffff;
}

.hero-mini-grid article:nth-child(2) {
  background: linear-gradient(135deg, #047857, #14b8a6);
  color: #ffffff;
}

.hero-mini-grid article:nth-child(3) {
  background: linear-gradient(135deg, #b45309, #f59e0b);
  color: #ffffff;
}

.hero-mini-grid article:nth-child(4) {
  background: linear-gradient(135deg, #be123c, #fb7185);
  color: #ffffff;
}

.hero-mini-grid span,
.hero-mini-grid strong,
.hero-mini-grid em {
  display: block;
}

.hero-mini-grid span {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.hero-mini-grid article:nth-child(-n + 4) span,
.hero-mini-grid article:nth-child(-n + 4) strong,
.hero-mini-grid article:nth-child(-n + 4) em {
  color: #ffffff;
}

.hero-mini-grid strong {
  margin-top: 4px;
  color: #101828;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
}

.hero-mini-grid em,
.figma-card em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.hero-mini-grid em {
  position: absolute;
  top: 14px;
  right: 14px;
}

.up {
  color: #059669;
}

.down {
  color: #dc2626;
}

.hero-chart {
  min-width: 0;
  padding: 18px 20px 14px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  box-shadow: none;
}

.hero-chart.revenue-panel {
  border-color: rgba(219, 226, 239, 0.95);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 12px 28px rgba(15, 23, 42, 0.16);
}

.figma-hero-panel {
  min-width: 0;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid #d9def8;
  background: #f7f9ff;
}

.figma-hero-panel h2 {
  margin: 0 0 14px;
  color: #101828;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 760;
}

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

.figma-step-list span {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 35px;
  padding: 7px 12px 7px 32px;
  border-radius: 9px;
  border: 1px solid #dce3f5;
  background: #ffffff;
  color: #344054;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.figma-step-list span::before {
  content: "";
  position: absolute;
  left: 13px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #1d4ed8;
}

.figma-step-list span:nth-child(1) {
  background: #eef4ff;
}

.figma-step-list span:nth-child(1)::before {
  background: #2563eb;
}

.figma-step-list span:nth-child(2) {
  background: #ecfdf5;
}

.figma-step-list span:nth-child(2)::before {
  background: #059669;
}

.figma-step-list span:nth-child(3) {
  background: #f7f0ff;
}

.figma-step-list span:nth-child(3)::before {
  background: #7c3aed;
}

.figma-step-list span:nth-child(4) {
  background: #fff7ed;
}

.figma-step-list span:nth-child(4)::before {
  background: #f97316;
}

.figma-step-list span:nth-child(5) {
  background: #ecfeff;
}

.figma-step-list span:nth-child(5)::before {
  background: #0891b2;
}

.figma-step-list span:nth-child(6) {
  background: #fff1f2;
}

.figma-step-list span:nth-child(6)::before {
  background: #e11d48;
}

.hero-chart h2 {
  margin: 0 0 12px;
  color: #101828;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 760;
}

.hero-chart.revenue-panel h2 {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.hero-chart svg {
  width: 100%;
  height: 216px;
  overflow: visible;
}

.figma-body .grid-lines path {
  stroke: #d7dee8;
  stroke-dasharray: 3 4;
  stroke-width: 1;
}

.figma-body .trend-line {
  fill: none;
  stroke: #1d4ed8;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.axis text {
  fill: #475569;
  stroke: none;
  font-size: 12px;
}

.figma-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.overview-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.overview-metrics .figma-card {
  min-height: 176px;
  padding: 20px 18px 18px;
}

.overview-metrics .metric-icon {
  width: 34px;
  height: 34px;
}

.overview-metrics .metric-icon svg {
  width: 19px;
  height: 19px;
}

.overview-metrics .metric-head em {
  color: #0f766e;
  font-size: 11px;
  opacity: 0.88;
}

.overview-metrics .metric-head em.down {
  color: #dc2626;
}

.overview-metrics .figma-card p {
  margin: 18px 0 7px;
  color: #5f6b7c;
  font-size: 13px;
  font-weight: 650;
}

.overview-metrics .figma-card strong {
  color: #07111f;
  font-size: clamp(34px, 2.6vw, 42px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 850;
}

.overview-metrics .figma-card .card-desc {
  margin-top: 12px;
  color: #7a8495;
  font-size: 12px;
  line-height: 1.45;
}

.figma-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 20px 21px;
  border: 1px solid #dce3f5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(38, 51, 100, 0.08);
}

.figma-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.figma-metrics .figma-card:nth-child(4n + 1) {
  background: linear-gradient(180deg, #ffffff, #eef4ff);
  border-color: #cbd7ff;
}

.figma-metrics .figma-card:nth-child(4n + 1)::before {
  background: linear-gradient(90deg, #2563eb, #615fff);
}

.figma-metrics .figma-card:nth-child(4n + 2) {
  background: linear-gradient(180deg, #ffffff, #ecfdf5);
  border-color: #bfecd7;
}

.figma-metrics .figma-card:nth-child(4n + 2)::before {
  background: linear-gradient(90deg, #059669, #14b8a6);
}

.figma-metrics .figma-card:nth-child(4n + 3) {
  background: linear-gradient(180deg, #ffffff, #f7f0ff);
  border-color: #ddd1ff;
}

.figma-metrics .figma-card:nth-child(4n + 3)::before {
  background: linear-gradient(90deg, #7c3aed, #c026d3);
}

.figma-metrics .figma-card:nth-child(4n) {
  background: linear-gradient(180deg, #ffffff, #fff7ed);
  border-color: #fed7aa;
}

.figma-metrics .figma-card:nth-child(4n)::before {
  background: linear-gradient(90deg, #f97316, #e11d48);
}

.figma-card.link-card {
  color: inherit;
}

.figma-card.link-card:hover {
  border-color: rgba(21, 93, 252, 0.28);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}

.figma-card .card-desc {
  display: block;
  margin-top: 12px;
  color: #697586;
  font-size: 13px;
  line-height: 1.55;
}

.agent-cards .figma-card {
  min-height: 210px;
}

.metric-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 23px;
  font-weight: 500;
}

.metric-icon svg {
  width: 22px;
  height: 22px;
}

.metric-icon.blue {
  background: linear-gradient(135deg, #dbeafe, #c7d2fe);
  color: #1d4ed8;
}

.metric-icon.green {
  background: linear-gradient(135deg, #dcfce7, #ccfbf1);
  color: #047857;
}

.metric-icon.purple {
  background: linear-gradient(135deg, #f3e8ff, #e0e7ff);
  color: #7c3aed;
}

.metric-icon.orange {
  background: linear-gradient(135deg, #ffedd5, #ffe4e6);
  color: #ea580c;
}

.figma-card p {
  margin: 14px 0 4px;
  color: #4a5565;
  font-size: 14px;
  line-height: 1.45;
}

.figma-card strong {
  display: block;
  color: #101828;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 780;
}

.figma-table-card {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid #dce3f5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(38, 51, 100, 0.08);
}

.figma-table-card > header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e4e9f6;
  background: linear-gradient(180deg, #ffffff, #f8faff);
}

.figma-table-card h2 {
  margin: 0 0 5px;
  color: #101828;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 760;
}

.figma-table-card header p {
  margin: 0;
  color: #697586;
  font-size: 14px;
  line-height: 1.45;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}

.table-actions button,
.table-actions a {
  background: transparent;
  color: #4a5565;
  font-size: 14px;
}

.table-actions a {
  font-weight: 650;
}

.figma-table-wrap {
  overflow-x: auto;
}

.figma-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: fixed;
}

.figma-table th,
.figma-table td {
  padding: 14px 24px;
  border-bottom: 1px solid #f1f2f4;
  text-align: left;
  vertical-align: middle;
}

.figma-table th {
  background: #f4f6ff;
  color: #4a5565;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: 0.06em;
}

.figma-table td {
  color: #4a5565;
  font-size: 14px;
  line-height: 1.45;
}

.figma-table tbody tr:nth-child(even) td {
  background: #fbfcff;
}

.figma-table tbody tr:hover td {
  background: #eef4ff;
}

.figma-table td:first-child {
  color: #101828;
  font-size: 16px;
  font-weight: 650;
}

.figma-table td a {
  color: #155dfc;
  font-size: 14px;
  font-weight: 650;
}

.status,
.priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.status.in-progress {
  background: #dbeafe;
  color: #155dfc;
  box-shadow: inset 0 0 0 1px #bfdbfe;
}

.status.planning {
  background: #f8fafc;
  color: #475569;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.status.completed {
  background: #dcfce7;
  color: #008236;
  box-shadow: inset 0 0 0 1px #bbf7d0;
}

.status.review {
  background: #f3e8ff;
  color: #9810fa;
  box-shadow: inset 0 0 0 1px #e9d5ff;
}

.priority.high {
  background: #ffe2e2;
  color: #e7000b;
  box-shadow: inset 0 0 0 1px #fecaca;
}

.priority.medium {
  background: #fef9c2;
  color: #ca8a04;
  box-shadow: inset 0 0 0 1px #fde68a;
}

.priority.low {
  background: #dcfce7;
  color: #008236;
  box-shadow: inset 0 0 0 1px #bbf7d0;
}

.figma-table td:nth-child(6) {
  display: flex;
  gap: 24px;
  align-items: center;
}

.progress {
  display: inline-flex;
  width: 32px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.figma-table td b {
  color: #4a5565;
  font-size: 13px;
  font-weight: 500;
}

.figma-table-card > footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  color: #4a5565;
  font-size: 14px;
}

.figma-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.overview-module-grid {
  grid-template-columns: repeat(3, minmax(320px, 1fr));
}

.overview-module-grid .module-card:nth-child(1) > header {
  background: linear-gradient(135deg, #eef4ff, #ffffff);
  border-top: 4px solid #2563eb;
}

.overview-module-grid .module-card:nth-child(2) > header {
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
  border-top: 4px solid #059669;
}

.overview-module-grid .module-card:nth-child(3) > header {
  background: linear-gradient(135deg, #f7f0ff, #ffffff);
  border-top: 4px solid #7c3aed;
}

.overview-module-grid .module-card:nth-child(4) > header {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border-top: 4px solid #f97316;
}

.overview-module-grid .module-card:nth-child(5) > header {
  background: linear-gradient(135deg, #ecfeff, #ffffff);
  border-top: 4px solid #0891b2;
}

.overview-module-grid .module-card:nth-child(6) > header {
  background: linear-gradient(135deg, #fff1f2, #ffffff);
  border-top: 4px solid #e11d48;
}

.overview-table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 24px;
}

.overview-table-grid .figma-table-card {
  display: flex;
  flex-direction: column;
  min-height: 316px;
  margin-top: 0;
}

.overview-table-grid .figma-table-wrap {
  flex: 1;
}

.overview-table-grid .compact-table {
  height: 100%;
}

.overview-table-grid .figma-table-card:nth-child(1) > header {
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
  border-top: 4px solid #059669;
}

.overview-table-grid .figma-table-card:nth-child(2) > header {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border-top: 4px solid #f97316;
}

.module-card {
  margin-top: 0;
}

.module-body {
  padding: 14px;
}

.module-body .chart {
  min-height: 310px;
}

.module-body .chart.short {
  min-height: 280px;
}

.decision-feed {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.decision-feed a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid #dce3f5;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f8faff);
}

.decision-feed b {
  color: #101828;
  font-size: 14px;
  line-height: 1.35;
}

.decision-feed em {
  grid-column: 2;
  color: #667085;
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.todo-module-card .decision-feed {
  min-height: 280px;
  align-content: start;
}

.pager {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pager button {
  min-width: 83px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  color: #4a5565;
  font-size: 14px;
}

.pager button.active {
  min-width: 56px;
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
}

.vehicle-filter-card {
  overflow: visible;
}

.vehicle-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 24px 22px;
}

.vehicle-filters label {
  display: grid;
  gap: 8px;
  color: #4a5565;
  font-size: 13px;
  font-weight: 650;
}

.vehicle-filters input,
.vehicle-filters select {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d9def8;
  border-radius: 9px;
  outline: 0;
  background: #ffffff;
  color: #101828;
  font: inherit;
}

.vehicle-filter-card > header {
  background: linear-gradient(135deg, #eef4ff, #ffffff);
  border-top: 4px solid #2563eb;
}

.vehicle-list-card > header {
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
  border-top: 4px solid #059669;
}

.vehicle-detail-card > header {
  background: linear-gradient(135deg, #fff1f2, #ffffff);
  border-top: 4px solid #e11d48;
}

.vehicle-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
  margin-top: 24px;
}

.vehicle-admin-grid .figma-table-card {
  margin-top: 0;
}

.vehicle-table {
  min-width: 900px;
}

.vehicle-table th,
.vehicle-table td {
  padding-right: 16px;
  padding-left: 16px;
}

.vehicle-table th:first-child,
.vehicle-table td:first-child,
.vehicle-table th:nth-child(4),
.vehicle-table td:nth-child(4),
.vehicle-table th:nth-child(6),
.vehicle-table td:nth-child(6),
.vehicle-table th:nth-child(7),
.vehicle-table td:nth-child(7),
.vehicle-table th:nth-child(8),
.vehicle-table td:nth-child(8) {
  white-space: nowrap;
}

.vehicle-table tr.selected td {
  background: #eef4ff;
}

.vehicle-table td:nth-child(6) {
  display: table-cell;
}

.vehicle-detail-card {
  overflow: hidden;
}

.vehicle-detail-card > header {
  align-items: flex-start;
}

.vehicle-detail {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.vehicle-plate-card {
  padding: 16px;
  border: 1px solid #c7d2fe;
  background: linear-gradient(135deg, #1e1b4b, #4338ca);
  color: #ffffff;
}

.vehicle-plate-card strong,
.vehicle-plate-card span {
  display: block;
}

.vehicle-plate-card strong {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 780;
}

.vehicle-plate-card span {
  margin-top: 7px;
  color: #c7d2fe;
  font-size: 13px;
}

.vehicle-detail dl {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  overflow: hidden;
}

.vehicle-detail dl div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 13px;
  border-bottom: 1px solid #eef0f3;
  background: #ffffff;
}

.vehicle-detail dl div:last-child {
  border-bottom: 0;
}

.vehicle-detail dt,
.vehicle-detail dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.vehicle-detail dt {
  color: #697586;
}

.vehicle-detail dd {
  color: #101828;
  font-weight: 650;
}

.risk-text {
  color: #e7000b !important;
}

.vehicle-action-box {
  padding: 15px;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff1f2, #ffffff);
}

.vehicle-action-box b {
  display: block;
  color: #101828;
  font-size: 14px;
}

.vehicle-action-box p {
  margin: 8px 0 14px;
  color: #4a5565;
  font-size: 13px;
  line-height: 1.55;
}

.vehicle-action-box div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vehicle-action-box button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  background: #ffffff;
  color: #364153;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.vehicle-action-box button:first-child {
  border-color: #e11d48;
  background: #e11d48;
  color: #ffffff;
}

.vehicle-detail-actions {
  display: flex;
  justify-content: flex-end;
}

.vehicle-detail-actions button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(54, 163, 255, 0.34);
  border-radius: 10px;
  background: rgba(54, 163, 255, 0.1);
  color: #8ecbff;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.boss-hero .figma-hero-panel {
  align-self: stretch;
}

.boss-metrics .figma-card,
.agent-cards .figma-card {
  min-height: 186px;
}

.boss-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 24px;
}

.boss-summary-grid .figma-table-card {
  margin-top: 0;
}

.boss-insights {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.boss-insights div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #ffffff;
}

.boss-insights b,
.boss-insights p {
  min-width: 0;
}

.boss-insights b {
  color: #101828;
  font-size: 15px;
  line-height: 1.35;
}

.boss-insights p {
  grid-column: 2;
  margin: 0;
  color: #4a5565;
  font-size: 13px;
  line-height: 1.55;
}

.assistant-brief,
.assistant-report {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.assistant-brief {
  min-height: calc(100% - 70px);
  align-content: start;
  background: linear-gradient(135deg, #eef4ff 0%, #ffffff 100%);
}

.assistant-brief strong,
.assistant-report b {
  color: #101828;
  font-size: 18px;
  line-height: 1.35;
}

.assistant-brief p,
.assistant-report p {
  margin: 0;
  color: #4a5565;
  font-size: 14px;
  line-height: 1.65;
}

.assistant-brief a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
}

.boss-table {
  min-width: 980px;
}

.compact-table {
  min-width: 560px;
}

.boss-table td:first-child {
  font-size: 15px;
}

.boss-table td {
  vertical-align: top;
}

.support-entry-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.support-entry-grid a {
  display: grid;
  gap: 7px;
  min-height: 92px;
  padding: 15px;
  border: 1px solid #dce3f5;
  border-radius: 12px;
  background: #ffffff;
}

.support-entry-grid a:nth-child(1) {
  background: linear-gradient(135deg, #eef4ff, #ffffff);
}

.support-entry-grid a:nth-child(2) {
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.support-entry-grid a:nth-child(3) {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.support-entry-grid a:nth-child(4) {
  background: linear-gradient(135deg, #f7f0ff, #ffffff);
}

.support-entry-grid a:nth-child(5) {
  background: linear-gradient(135deg, #ecfeff, #ffffff);
}

.support-entry-grid a:hover {
  border-color: rgba(21, 93, 252, 0.35);
  background: #ffffff;
}

.support-entry-grid b {
  color: #101828;
  font-size: 15px;
}

.support-entry-grid span {
  color: #697586;
  font-size: 13px;
  line-height: 1.45;
}

.system-architecture-card {
  margin-top: 24px;
}

.system-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
}

.system-map a {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 112px;
  padding: 15px;
  border: 1px solid #dce3f5;
  border-radius: 12px;
  background: #ffffff;
}

.system-map a:nth-child(1) {
  background: linear-gradient(135deg, #eef4ff, #ffffff);
}

.system-map a:nth-child(2) {
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.system-map a:nth-child(3) {
  background: linear-gradient(135deg, #f7f0ff, #ffffff);
}

.system-map a:nth-child(4) {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.system-map a:nth-child(5) {
  background: linear-gradient(135deg, #ecfeff, #ffffff);
}

.system-map a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 10px;
  height: 1px;
  background: #cbd5e1;
}

.system-map a:last-child::after {
  display: none;
}

.system-map a:hover {
  border-color: rgba(29, 78, 216, 0.32);
  background: #ffffff;
}

.system-map span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px #c7d2fe;
  font-size: 12px;
  font-weight: 800;
}

.system-map b {
  color: #101828;
  font-size: 15px;
  line-height: 1.3;
}

.system-map em {
  color: #697586;
  font-size: 13px;
  font-style: normal;
  line-height: 1.4;
}

.flow-lane,
.chain-flow {
  display: grid;
  gap: 10px;
}

.flow-lane a,
.chain-flow div {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
}

.chain-flow div {
  border-color: #dce3f5;
  background: #ffffff;
}

.chain-flow div:nth-child(1) {
  background: linear-gradient(135deg, #eef4ff, #ffffff);
}

.chain-flow div:nth-child(2) {
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.chain-flow div:nth-child(3) {
  background: linear-gradient(135deg, #f7f0ff, #ffffff);
}

.chain-flow div:nth-child(4) {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.chain-flow div:nth-child(5) {
  background: linear-gradient(135deg, #ecfeff, #ffffff);
}

.flow-lane span,
.chain-flow span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.chain-flow span {
  background: #ffffff;
  color: #155dfc;
  box-shadow: inset 0 0 0 1px #c7d2fe;
}

.flow-lane b,
.chain-flow b {
  min-width: 0;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.25;
}

.chain-flow b {
  color: #101828;
}

.flow-lane em,
.chain-flow em {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.chain-flow em {
  color: #697586;
}

.focus-list,
.decision-card-grid,
.task-card-grid,
.phase-card-grid,
.source-chip-grid {
  display: grid;
  gap: 12px;
  padding: 18px;
}

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

.focus-list a,
.decision-card-grid a,
.task-card-grid a,
.phase-card-grid article {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 106px;
  padding: 15px;
  border: 1px solid #dce3f5;
  border-radius: 12px;
  background: #ffffff;
}

.focus-list a:nth-child(1),
.decision-card-grid a:nth-child(1),
.task-card-grid a:nth-child(1),
.phase-card-grid article:nth-child(1) {
  background: linear-gradient(135deg, #eef4ff, #ffffff);
}

.focus-list a:nth-child(2),
.decision-card-grid a:nth-child(2),
.task-card-grid a:nth-child(2),
.phase-card-grid article:nth-child(2) {
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.focus-list a:nth-child(3),
.decision-card-grid a:nth-child(3),
.task-card-grid a:nth-child(3),
.phase-card-grid article:nth-child(3) {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.decision-card-grid a:nth-child(4),
.task-card-grid a:nth-child(4),
.phase-card-grid article:nth-child(4) {
  background: linear-gradient(135deg, #f7f0ff, #ffffff);
}

.focus-list b,
.decision-card-grid b,
.task-card-grid b,
.phase-card-grid b {
  color: #101828;
  font-size: 16px;
  line-height: 1.3;
}

.focus-list em,
.decision-card-grid em,
.task-card-grid em,
.phase-card-grid em {
  color: #697586;
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.decision-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.decision-card-grid a span,
.phase-card-grid article > span {
  color: #155dfc;
  font-size: 13px;
  font-weight: 800;
}

.chain-flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 18px 18px 8px;
}

.chain-flow div {
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
}

.chain-flow em {
  grid-column: 2;
}

.source-chip-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 6px;
}

.source-chip-grid span {
  display: block;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dce3f5;
  border-radius: 999px;
  background: #ffffff;
  color: #364153;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
}

.source-chip-grid span:nth-child(1) {
  background: #eef4ff;
}

.source-chip-grid span:nth-child(2) {
  background: #ecfdf5;
}

.source-chip-grid span:nth-child(3) {
  background: #fff7ed;
}

.source-chip-grid span:nth-child(4) {
  background: #f7f0ff;
}

.data-landing-card {
  overflow: hidden;
}

.data-guide-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.data-guide-strip article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  border: 1px solid #dce3f5;
  border-radius: 12px;
  background: #ffffff;
}

.data-guide-strip span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eef4ff;
  color: #155dfc;
  font-size: 12px;
  font-weight: 900;
}

.data-guide-strip b {
  color: #101828;
  font-size: 15px;
  line-height: 1.25;
}

.data-guide-strip em {
  color: #697586;
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.schema-window-card {
  overflow: hidden;
}

.schema-window-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

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

.data-window {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dce3f5;
  border-radius: 14px;
  background: #ffffff;
}

.featured-window {
  grid-column: span 2;
}

.window-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.window-title-row span {
  color: #101828;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.window-title-row em {
  color: #697586;
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
  text-align: right;
}

.data-window p {
  margin: 0;
  color: #697586;
  font-size: 13px;
  line-height: 1.55;
}

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

.window-meta b {
  color: #364153;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.field-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.field-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid #e5e9f2;
  border-radius: 999px;
  background: #f8fafc;
  color: #364153;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.window-open {
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #dce3f5;
  border-radius: 10px;
  background: #f8fafc;
  color: #155dfc;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.data-window.is-selected {
  border-color: #155dfc;
  box-shadow: 0 0 0 1px rgba(21, 93, 252, 0.2);
}

.table-viewer-card {
  scroll-margin-top: 96px;
}

.table-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 18px 4px;
}

.table-switcher button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dce3f5;
  border-radius: 999px;
  background: #ffffff;
  color: #364153;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.table-switcher button.is-active {
  border-color: #155dfc;
  background: #155dfc;
  color: #ffffff;
}

.data-preview-wrap {
  padding-top: 10px;
}

.data-preview-table {
  width: max-content !important;
  min-width: 100% !important;
  table-layout: auto !important;
}

.data-preview-table th,
.data-preview-table td {
  min-width: 108px;
  white-space: nowrap;
}

.data-preview-table th:first-child,
.data-preview-table td:first-child {
  min-width: 132px;
}

body[data-route="data"] .schema-window-card .data-window > .field-list {
  display: none;
}

body[data-route="data"] .schema-window-card .data-window {
  align-content: start;
}

.agent-flow span {
  background: #ecfdf5;
  color: #008236;
}

.task-card-grid,
.phase-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.task-card-grid a {
  min-height: 118px;
}

.phase-card-grid article {
  min-height: 138px;
}

.phase-card-grid .status {
  width: fit-content;
  margin-top: auto;
}

.assistant-brief.compact {
  min-height: 0;
}

.approval-table {
  min-width: 1120px;
}

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

.approval-actions button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  background: #ffffff;
  color: #364153;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.approval-actions button:first-child {
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
}

.rule-stack {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.rule-stack span {
  position: relative;
  display: block;
  min-height: 38px;
  padding: 10px 12px 10px 31px;
  border: 1px solid #dce3f5;
  border-radius: 10px;
  background: #ffffff;
  color: #364153;
  font-size: 14px;
  line-height: 1.35;
}

.rule-stack span:nth-child(3n + 1) {
  background: linear-gradient(135deg, #eef4ff, #ffffff);
}

.rule-stack span:nth-child(3n + 2) {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.rule-stack span:nth-child(3n) {
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.rule-stack span::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 14px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #155dfc;
}

.assistant-report-card {
  overflow: hidden;
}

.assistant-report {
  background: linear-gradient(135deg, #ffffff, #f8faff);
}

.figma-hero,
.hero-chart,
.figma-hero-panel,
.figma-card,
.figma-table-card,
.hero-mini-grid article,
.figma-search,
.figma-primary,
.figma-icon-button,
.support-entry-grid a,
.system-map a,
.flow-lane a,
.chain-flow div,
.focus-list a,
.decision-card-grid a,
.task-card-grid a,
.phase-card-grid article,
.rule-stack span,
.vehicle-plate-card,
.vehicle-action-box {
  border-radius: 8px;
}

/* Ningquan brand system consolidation. */
:root {
  --nq-brand: #2438d8;
  --nq-brand-strong: #111858;
  --nq-brand-soft: #eef3ff;
  --nq-cyan: #0f9f9a;
  --nq-success: #0f8f5f;
  --nq-warning: #d97706;
  --nq-danger: #d92d4a;
  --nq-purple: #7c3aed;
  --nq-ink: #111827;
  --nq-muted: #64748b;
  --nq-line: #dbe4f5;
  --nq-panel: #ffffff;
  --nq-shadow: 0 14px 34px rgba(25, 35, 90, 0.1);
}

.figma-dashboard {
  background:
    radial-gradient(circle at 0 0, rgba(36, 56, 216, 0.12), transparent 30%),
    radial-gradient(circle at 92% 4%, rgba(15, 159, 154, 0.1), transparent 28%),
    linear-gradient(180deg, #eef3ff 0%, #f7f9ff 42%, #f5f7fb 100%);
}

.figma-topbar {
  min-height: 66px;
  border-bottom: 1px solid rgba(219, 228, 245, 0.92);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(25, 35, 90, 0.08);
}

.figma-user-entry {
  border-radius: 12px;
  background: var(--nq-brand-strong);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(17, 24, 88, 0.18);
}

.user-avatar-mini {
  background: linear-gradient(135deg, var(--nq-brand), var(--nq-cyan));
}

.figma-nav {
  border-color: var(--nq-line);
  background: #f4f7ff;
}

.figma-nav a {
  color: #344054;
}

.figma-nav a.active {
  background: var(--nq-brand);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(36, 56, 216, 0.22);
}

.figma-search,
.figma-icon-button {
  border: 1px solid var(--nq-line);
  background: rgba(255, 255, 255, 0.94);
}

.figma-primary,
.assistant-brief a,
.pager button.active,
.approval-actions button:first-child {
  border-color: var(--nq-brand);
  background: var(--nq-brand);
  box-shadow: 0 12px 24px rgba(36, 56, 216, 0.2);
}

.figma-hero,
.figma-card,
.figma-table-card {
  border-color: var(--nq-line);
  border-radius: 14px;
  background: var(--nq-panel);
  box-shadow: var(--nq-shadow);
}

.figma-hero {
  position: relative;
  overflow: hidden;
}

.figma-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--nq-brand), var(--nq-cyan));
}

.figma-table-card > header {
  border-bottom-color: var(--nq-line);
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.figma-card {
  background: #ffffff;
}

.figma-card::before {
  height: 4px;
  background: var(--nq-brand);
}

.figma-metrics .figma-card:nth-child(n) {
  border-color: var(--nq-line);
  background: #ffffff;
}

.figma-metrics .figma-card:nth-child(4n + 1)::before {
  background: var(--nq-brand);
}

.figma-metrics .figma-card:nth-child(4n + 2)::before {
  background: var(--nq-success);
}

.figma-metrics .figma-card:nth-child(4n + 3)::before {
  background: var(--nq-purple);
}

.figma-metrics .figma-card:nth-child(4n)::before {
  background: var(--nq-warning);
}

.metric-icon {
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.metric-icon.blue {
  background: #e7edff;
  color: var(--nq-brand);
}

.metric-icon.green {
  background: #e7f8f2;
  color: var(--nq-success);
}

.metric-icon.purple {
  background: #f0e9ff;
  color: var(--nq-purple);
}

.metric-icon.orange {
  background: #fff0dd;
  color: var(--nq-warning);
}

.overview-module-grid .module-card > header,
.overview-table-grid .figma-table-card > header,
.vehicle-filter-card > header,
.vehicle-list-card > header,
.vehicle-detail-card > header {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.overview-module-grid .module-card:nth-child(1) > header,
.vehicle-filter-card > header {
  border-top-color: var(--nq-brand);
}

.overview-module-grid .module-card:nth-child(2) > header,
.overview-table-grid .figma-table-card:nth-child(1) > header,
.vehicle-list-card > header {
  border-top-color: var(--nq-success);
}

.overview-module-grid .module-card:nth-child(3) > header {
  border-top-color: var(--nq-purple);
}

.overview-module-grid .module-card:nth-child(4) > header,
.overview-table-grid .figma-table-card:nth-child(2) > header {
  border-top-color: var(--nq-warning);
}

.overview-module-grid .module-card:nth-child(5) > header {
  border-top-color: var(--nq-cyan);
}

.overview-module-grid .module-card:nth-child(6) > header,
.vehicle-detail-card > header {
  border-top-color: var(--nq-danger);
}

.figma-table th {
  background: #f3f6ff;
  color: #475569;
}

.figma-table tbody tr:hover td {
  background: #eef3ff;
}

.status.in-progress,
.system-map span,
.chain-flow span {
  color: var(--nq-brand);
}

.priority.high {
  color: var(--nq-danger);
}

.priority.medium {
  color: var(--nq-warning);
}

.priority.low {
  color: var(--nq-success);
}

/* Data cockpit skin: only for the operation overview page. */
.data-cockpit {
  position: relative;
  padding: 28px;
  background:
    linear-gradient(rgba(83, 117, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 117, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 8% 0, rgba(36, 56, 216, 0.28), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(15, 159, 154, 0.2), transparent 34%),
    linear-gradient(180deg, #09113a 0%, #0c1434 48%, #101827 100%);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  color: #e5edff;
}

.data-cockpit::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(78, 106, 255, 0.26), transparent 22%, transparent 78%, rgba(15, 159, 154, 0.2)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 18%);
}

.data-cockpit > * {
  position: relative;
  z-index: 1;
}

.data-cockpit .figma-hero {
  border-color: rgba(135, 158, 255, 0.34);
  background:
    radial-gradient(circle at 100% 0, rgba(15, 159, 154, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(28, 43, 112, 0.94), rgba(12, 20, 52, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.28);
}

.data-cockpit .figma-hero::before {
  height: 2px;
  background: linear-gradient(90deg, transparent, #7aa2ff, #14d8c8, transparent);
}

.data-cockpit .hero-copy h1 {
  color: #ffffff;
  text-shadow: 0 0 24px rgba(120, 160, 255, 0.4);
}

.data-cockpit .hero-copy p {
  color: #c7d7ff;
}

.data-cockpit .hero-mini-grid article {
  border-color: rgba(157, 178, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(36, 56, 216, 0.72), rgba(15, 159, 154, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.data-cockpit .overview-metrics .figma-card,
.data-cockpit .figma-module-grid .figma-table-card,
.data-cockpit .overview-table-grid .figma-table-card {
  border-color: rgba(128, 151, 236, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 18px 42px rgba(3, 7, 30, 0.22);
}

.data-cockpit .overview-metrics .figma-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 58px;
  height: 22px;
  opacity: 0.22;
  background:
    linear-gradient(90deg, transparent 0 14%, currentColor 14% 22%, transparent 22% 38%, currentColor 38% 48%, transparent 48% 64%, currentColor 64% 78%, transparent 78%);
}

.data-cockpit .overview-metrics .figma-card strong {
  font-size: clamp(38px, 3.1vw, 50px);
  color: #07111f;
}

.data-cockpit .overview-metrics .figma-card p,
.data-cockpit .overview-metrics .figma-card .card-desc {
  color: #64748b;
}

.data-cockpit .figma-table-card > header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 245, 255, 0.94));
}

.data-cockpit .module-body {
  background:
    linear-gradient(rgba(36, 56, 216, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 56, 216, 0.04) 1px, transparent 1px),
    #ffffff;
  background-size: 22px 22px;
}

.data-cockpit .chart {
  border-radius: 10px;
}

.data-cockpit .decision-feed a {
  border-color: rgba(128, 151, 236, 0.28);
  background: rgba(255, 255, 255, 0.82);
}

/* Global dark blue technology theme. */
:root {
  --tech-bg: #070d24;
  --tech-bg-2: #0b1437;
  --tech-panel: rgba(13, 24, 60, 0.86);
  --tech-panel-2: rgba(17, 31, 74, 0.92);
  --tech-line: rgba(83, 132, 255, 0.34);
  --tech-line-strong: rgba(96, 165, 250, 0.68);
  --tech-blue: #4f8cff;
  --tech-blue-2: #22d3ee;
  --tech-green: #16d6a0;
  --tech-orange: #f59e0b;
  --tech-red: #fb7185;
  --tech-purple: #a78bfa;
  --tech-text: #eaf2ff;
  --tech-muted: #9fb2de;
  --tech-dim: #7186b8;
  --tech-shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
}

html,
body.figma-body {
  background: var(--tech-bg);
}

.figma-dashboard,
.figma-workspace {
  background:
    linear-gradient(rgba(71, 122, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 122, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 8% 0, rgba(79, 140, 255, 0.22), transparent 32%),
    radial-gradient(circle at 92% 6%, rgba(34, 211, 238, 0.14), transparent 30%),
    linear-gradient(180deg, #070d24 0%, #091233 48%, #060b1c 100%);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  color: var(--tech-text);
}

.figma-topbar {
  border-bottom-color: rgba(83, 132, 255, 0.32);
  background: rgba(7, 13, 36, 0.88);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.figma-user-entry {
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: linear-gradient(135deg, #0b1437, #172554);
  box-shadow: 0 0 28px rgba(79, 140, 255, 0.18);
}

.figma-user-entry strong,
.figma-logo strong,
.figma-table-card h2,
.support-entry-grid b,
.system-map b,
.focus-list b,
.decision-card-grid b,
.task-card-grid b,
.phase-card-grid b,
.boss-insights b,
.assistant-brief strong,
.assistant-report b {
  color: var(--tech-text);
}

.figma-user-entry small,
.figma-table-card header p,
.support-entry-grid span,
.system-map em,
.chain-flow em,
.focus-list em,
.decision-card-grid em,
.task-card-grid em,
.phase-card-grid em,
.boss-insights p,
.assistant-brief p,
.assistant-report p,
.figma-card .card-desc,
.vehicle-plate-card span {
  color: var(--tech-muted);
}

.user-avatar-mini,
.figma-logo-mark {
  background: linear-gradient(135deg, var(--tech-blue), var(--tech-blue-2));
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.28);
}

.figma-nav {
  border-color: var(--tech-line);
  background: rgba(13, 24, 60, 0.84);
}

.figma-nav a {
  color: var(--tech-muted);
}

.figma-nav a.active {
  background: linear-gradient(135deg, var(--tech-blue), #3158e8);
  color: #ffffff;
  box-shadow: 0 0 22px rgba(79, 140, 255, 0.34);
}

.figma-search,
.figma-icon-button {
  border-color: var(--tech-line);
  background: rgba(13, 24, 60, 0.78);
  color: var(--tech-muted);
}

.figma-search input {
  color: var(--tech-text);
}

.figma-search input::placeholder,
.figma-search kbd {
  color: var(--tech-muted);
}

.figma-search kbd {
  border-color: var(--tech-line);
  background: rgba(7, 13, 36, 0.78);
}

.figma-primary,
.assistant-brief a,
.pager button.active,
.approval-actions button:first-child,
.vehicle-action-box button:first-child {
  border-color: rgba(96, 165, 250, 0.72);
  background: linear-gradient(135deg, var(--tech-blue), #3158e8);
  box-shadow: 0 0 24px rgba(79, 140, 255, 0.34);
}

.figma-main,
.data-cockpit {
  background: transparent;
  color: var(--tech-text);
}

  .figma-hero,
  .figma-card,
  .figma-table-card,
  .hero-chart,
  .figma-hero-panel,
  .data-guide-strip article,
  .support-entry-grid a,
.system-map a,
.chain-flow div,
.focus-list a,
.decision-card-grid a,
.task-card-grid a,
.phase-card-grid article,
  .rule-stack span,
  .data-window,
  .decision-feed a,
.vehicle-action-box,
.vehicle-detail dl,
.vehicle-detail dl div,
.assistant-report,
  .assistant-brief {
  border-color: var(--tech-line);
  background:
    linear-gradient(180deg, rgba(18, 33, 78, 0.9), rgba(10, 19, 50, 0.92));
  color: var(--tech-text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    var(--tech-shadow);
}

.data-window,
.data-window:hover {
  border-color: var(--ui-line) !important;
  background: var(--ui-surface) !important;
  color: var(--ui-text) !important;
  box-shadow: none !important;
}

.data-window:hover {
  transform: translateY(-2px);
  border-color: var(--ui-line-strong) !important;
  background: var(--ui-surface-strong) !important;
  box-shadow: var(--ui-shadow) !important;
}

.window-title-row span,
.window-meta b {
  color: var(--ui-text) !important;
}

.window-title-row em,
.data-window p {
  color: var(--ui-muted) !important;
}

.field-list span {
  border-color: var(--ui-line) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: var(--ui-muted) !important;
}

.data-guide-strip article {
  border-color: var(--ui-line) !important;
  background: var(--ui-surface) !important;
}

.data-guide-strip span {
  background: rgba(54, 163, 255, 0.14) !important;
  color: var(--ui-blue) !important;
}

.data-guide-strip b {
  color: var(--ui-text) !important;
}

.data-guide-strip em {
  color: var(--ui-muted) !important;
}

.figma-hero,
.data-cockpit .figma-hero {
  background:
    radial-gradient(circle at 100% 0, rgba(34, 211, 238, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(19, 36, 94, 0.96), rgba(8, 14, 38, 0.98));
}

.figma-hero::before,
.figma-card::before,
.data-cockpit .figma-hero::before {
  background: linear-gradient(90deg, transparent, var(--tech-blue), var(--tech-blue-2), transparent);
}

.hero-copy h1,
.data-cockpit .hero-copy h1 {
  color: #ffffff;
  text-shadow: 0 0 28px rgba(79, 140, 255, 0.44);
}

.hero-copy p,
.data-cockpit .hero-copy p {
  color: #c7d7ff;
}

.hero-mini-grid article,
.data-cockpit .hero-mini-grid article {
  border-color: rgba(96, 165, 250, 0.42);
  background:
    linear-gradient(135deg, rgba(79, 140, 255, 0.64), rgba(34, 211, 238, 0.18));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 28px rgba(79, 140, 255, 0.16);
}

.hero-mini-grid article span,
.hero-mini-grid article strong,
.hero-mini-grid article em {
  color: #ffffff;
}

.figma-card,
.data-cockpit .overview-metrics .figma-card {
  background:
    linear-gradient(180deg, rgba(20, 38, 88, 0.92), rgba(9, 17, 49, 0.94));
  border-color: var(--tech-line);
}

.figma-card strong,
.data-cockpit .overview-metrics .figma-card strong {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(79, 140, 255, 0.28);
}

.figma-card p,
.data-cockpit .overview-metrics .figma-card p {
  color: #c7d7ff;
}

.metric-icon.blue {
  background: rgba(79, 140, 255, 0.16);
  color: #8fb2ff;
}

.metric-icon.green {
  background: rgba(22, 214, 160, 0.14);
  color: var(--tech-green);
}

.metric-icon.purple {
  background: rgba(167, 139, 250, 0.16);
  color: var(--tech-purple);
}

.metric-icon.orange {
  background: rgba(245, 158, 11, 0.14);
  color: var(--tech-orange);
}

.figma-table-card > header,
.data-cockpit .figma-table-card > header,
.overview-module-grid .module-card > header,
.overview-table-grid .figma-table-card > header,
.vehicle-filter-card > header,
.vehicle-list-card > header,
.vehicle-detail-card > header {
  border-bottom-color: var(--tech-line);
  background: linear-gradient(180deg, rgba(26, 47, 108, 0.92), rgba(13, 24, 60, 0.92));
}

.module-body,
.data-cockpit .module-body {
  background:
    linear-gradient(rgba(96, 165, 250, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.055) 1px, transparent 1px),
    rgba(5, 11, 31, 0.52);
  background-size: 22px 22px;
}

.figma-table {
  color: var(--tech-text);
}

.figma-table th,
.figma-table td {
  border-bottom-color: rgba(83, 132, 255, 0.16);
}

.figma-table th {
  background: rgba(16, 30, 72, 0.96);
  color: #9fb2de;
}

.figma-table td,
.figma-table td:first-child,
.figma-table td b {
  color: #dbe7ff;
}

.figma-table tbody tr:nth-child(even) td {
  background: rgba(15, 28, 68, 0.48);
}

.figma-table tbody tr:hover td {
  background: rgba(79, 140, 255, 0.14);
}

.table-actions a,
.figma-table td a {
  color: #8fb2ff;
}

.vehicle-filters input,
.vehicle-filters select,
.approval-actions button,
.vehicle-action-box button,
.pager button {
  border-color: var(--tech-line);
  background: rgba(7, 13, 36, 0.72);
  color: var(--tech-text);
}

.vehicle-detail dt {
  color: var(--tech-muted);
}

.vehicle-detail dd {
  color: var(--tech-text);
}

.vehicle-table tr.selected td {
  background: rgba(79, 140, 255, 0.16);
}

.vehicle-plate-card {
  border-color: rgba(96, 165, 250, 0.52);
  background:
    radial-gradient(circle at 100% 0, rgba(34, 211, 238, 0.2), transparent 42%),
    linear-gradient(135deg, #10235d, #0a1336);
}

.system-map span,
.chain-flow span {
  background: rgba(79, 140, 255, 0.14);
  color: #9db8ff;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.34);
}

.source-chip-grid span {
  border-color: var(--tech-line);
  background: rgba(13, 24, 60, 0.8);
  color: #dbe7ff;
}

.progress {
  background: rgba(96, 165, 250, 0.16);
}

.up {
  color: var(--tech-green);
}

.down,
.risk-text {
  color: var(--tech-red) !important;
}

.status.in-progress {
  background: rgba(79, 140, 255, 0.15);
  color: #9db8ff;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.36);
}

.status.planning {
  background: rgba(148, 163, 184, 0.12);
  color: #c7d7ff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.24);
}

.status.completed,
.priority.low {
  background: rgba(22, 214, 160, 0.14);
  color: var(--tech-green);
  box-shadow: inset 0 0 0 1px rgba(22, 214, 160, 0.28);
}

.status.review {
  background: rgba(167, 139, 250, 0.14);
  color: var(--tech-purple);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.28);
}

.priority.high {
  background: rgba(251, 113, 133, 0.14);
  color: var(--tech-red);
  box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.3);
}

.priority.medium {
  background: rgba(245, 158, 11, 0.14);
  color: var(--tech-orange);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.3);
}

.empty-chart {
  color: var(--tech-muted);
}

.hero-chart h2,
.hero-chart.revenue-panel h2 {
  color: var(--tech-text);
}

.figma-body .grid-lines path {
  stroke: rgba(125, 154, 255, 0.24);
}

.figma-body .trend-line {
  stroke: var(--tech-blue-2);
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.28));
}

.axis text {
  fill: var(--tech-muted);
}

.figma-table-wrap {
  scrollbar-color: rgba(96, 165, 250, 0.58) rgba(7, 13, 36, 0.72);
}

.figma-table-wrap::-webkit-scrollbar {
  height: 10px;
}

.figma-table-wrap::-webkit-scrollbar-track {
  background: rgba(7, 13, 36, 0.72);
}

.figma-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid rgba(7, 13, 36, 0.72);
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.62);
}

.table-actions button {
  border: 1px solid var(--tech-line);
  border-radius: 8px;
  background: rgba(79, 140, 255, 0.1);
  color: #9db8ff;
}

.vehicle-filters label {
  color: var(--tech-muted);
}

.vehicle-filters select option {
  background: #0b1437;
  color: var(--tech-text);
}

.metric-head em {
  color: #9db8ff;
}

.metric-head em.up {
  color: var(--tech-green);
}

.metric-head em.down {
  color: var(--tech-red);
}

.module-body .chart,
.chart {
  background:
    radial-gradient(circle at 50% 0, rgba(79, 140, 255, 0.1), transparent 42%),
    rgba(5, 11, 31, 0.28);
}

.flow-lane a {
  border-color: var(--tech-line);
  background: rgba(13, 24, 60, 0.78);
}

.flow-lane span {
  background: rgba(79, 140, 255, 0.16);
  color: #9db8ff;
}

.flow-lane b {
  color: var(--tech-text);
}

.flow-lane em {
  color: var(--tech-muted);
}

/* Normalized deep-blue brand palette. */
:root {
  --brand-bg: #071225;
  --brand-bg-soft: #0b1730;
  --brand-panel: rgba(11, 23, 48, 0.94);
  --brand-panel-soft: rgba(15, 30, 62, 0.92);
  --brand-line: rgba(73, 116, 190, 0.34);
  --brand-line-strong: rgba(96, 147, 229, 0.58);
  --brand-blue: #2f80ed;
  --brand-blue-soft: #60a5fa;
  --brand-blue-glow: rgba(47, 128, 237, 0.28);
  --brand-cyan: #38bdf8;
  --brand-text: #e7efff;
  --brand-muted: #9db0d2;
  --brand-dim: #7184a8;
  --state-success: #2dd4bf;
  --state-warning: #f6a524;
  --state-danger: #ff5d73;
  --state-neutral: #8ea4c8;
}

.figma-dashboard,
.figma-workspace {
  background:
    linear-gradient(rgba(79, 128, 237, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 128, 237, 0.038) 1px, transparent 1px),
    radial-gradient(circle at 8% 0, rgba(47, 128, 237, 0.18), transparent 30%),
    radial-gradient(circle at 90% 0, rgba(56, 189, 248, 0.1), transparent 28%),
    linear-gradient(180deg, #071225 0%, #08152b 52%, #060d1d 100%);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
}

.figma-topbar {
  border-bottom-color: var(--brand-line);
  background: rgba(7, 18, 37, 0.9);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

.figma-user-entry {
  border-color: var(--brand-line);
  background: linear-gradient(135deg, #0a1731, #10244a);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.user-avatar-mini,
.figma-logo-mark {
  background: var(--brand-blue);
  box-shadow: 0 0 18px var(--brand-blue-glow);
}

.figma-nav,
.figma-search,
.figma-icon-button {
  border-color: var(--brand-line);
  background: rgba(11, 23, 48, 0.86);
}

.figma-nav a,
.figma-search input::placeholder,
.figma-search kbd {
  color: var(--brand-muted);
}

.figma-nav a.active,
.figma-primary,
.assistant-brief a,
.pager button.active,
.approval-actions button:first-child,
.vehicle-action-box button:first-child {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 0 18px var(--brand-blue-glow);
}

.figma-hero,
.figma-card,
.figma-table-card,
.hero-chart,
.figma-hero-panel,
.support-entry-grid a,
.system-map a,
.chain-flow div,
.focus-list a,
.decision-card-grid a,
.task-card-grid a,
.phase-card-grid article,
.rule-stack span,
.decision-feed a,
.vehicle-action-box,
.vehicle-detail dl,
.vehicle-detail dl div,
.assistant-report,
.assistant-brief {
  border-color: var(--brand-line);
  background: linear-gradient(180deg, var(--brand-panel-soft), var(--brand-panel));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 16px 34px rgba(0, 0, 0, 0.24);
}

.figma-hero,
.data-cockpit .figma-hero {
  background:
    radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.1), transparent 36%),
    linear-gradient(135deg, #10234a, #08152c 72%);
}

.figma-hero::before,
.figma-card::before,
.data-cockpit .figma-hero::before {
  background: linear-gradient(90deg, transparent, var(--brand-blue), var(--brand-cyan), transparent);
}

.hero-copy h1,
.data-cockpit .hero-copy h1,
.figma-card strong,
.figma-table-card h2,
.figma-table td:first-child,
.figma-table td,
.figma-table td b,
.support-entry-grid b,
.system-map b,
.chain-flow b,
.focus-list b,
.decision-card-grid b,
.task-card-grid b,
.phase-card-grid b,
.assistant-report b,
.assistant-brief strong {
  color: var(--brand-text);
}

.hero-copy p,
.data-cockpit .hero-copy p,
.figma-card p,
.figma-card .card-desc,
.figma-table-card header p,
.support-entry-grid span,
.system-map em,
.chain-flow em,
.focus-list em,
.decision-card-grid em,
.task-card-grid em,
.phase-card-grid em,
.assistant-report p,
.assistant-brief p,
.vehicle-detail dt {
  color: var(--brand-muted);
}

.hero-mini-grid article,
.data-cockpit .hero-mini-grid article {
  border-color: var(--brand-line-strong);
  background: linear-gradient(135deg, rgba(47, 128, 237, 0.42), rgba(11, 23, 48, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.figma-metrics .figma-card:nth-child(n),
.figma-card,
.data-cockpit .overview-metrics .figma-card {
  border-color: var(--brand-line);
  background: linear-gradient(180deg, rgba(15, 30, 62, 0.94), rgba(9, 19, 42, 0.96));
}

.figma-metrics .figma-card:nth-child(n)::before {
  background: var(--brand-blue);
}

.figma-metrics .figma-card:nth-child(4n + 2)::before,
.overview-module-grid .module-card:nth-child(2) > header,
.overview-table-grid .figma-table-card:nth-child(1) > header,
.vehicle-list-card > header {
  border-top-color: var(--state-success);
}

.figma-metrics .figma-card:nth-child(4n)::before,
.overview-module-grid .module-card:nth-child(4) > header,
.overview-table-grid .figma-table-card:nth-child(2) > header {
  border-top-color: var(--state-warning);
}

.overview-module-grid .module-card:nth-child(6) > header,
.vehicle-detail-card > header {
  border-top-color: var(--state-danger);
}

.overview-module-grid .module-card:nth-child(1) > header,
.overview-module-grid .module-card:nth-child(3) > header,
.overview-module-grid .module-card:nth-child(5) > header,
.vehicle-filter-card > header {
  border-top-color: var(--brand-blue);
}

.metric-icon.blue,
.metric-icon.purple {
  background: rgba(47, 128, 237, 0.14);
  color: var(--brand-blue-soft);
}

.metric-icon.green {
  background: rgba(45, 212, 191, 0.12);
  color: var(--state-success);
}

.metric-icon.orange {
  background: rgba(246, 165, 36, 0.13);
  color: var(--state-warning);
}

.figma-table-card > header,
.data-cockpit .figma-table-card > header,
.overview-module-grid .module-card > header,
.overview-table-grid .figma-table-card > header,
.vehicle-filter-card > header,
.vehicle-list-card > header,
.vehicle-detail-card > header {
  background: linear-gradient(180deg, rgba(17, 34, 70, 0.96), rgba(11, 23, 48, 0.96));
}

.figma-table th {
  background: rgba(10, 22, 48, 0.98);
  color: var(--brand-muted);
}

.figma-table tbody tr:nth-child(even) td {
  background: rgba(12, 25, 54, 0.48);
}

.figma-table tbody tr:hover td {
  background: rgba(47, 128, 237, 0.12);
}

.table-actions a,
.figma-table td a,
.system-map span,
.chain-flow span {
  color: var(--brand-blue-soft);
}

  .source-chip-grid span,
  .window-open,
  .table-switcher button,
  .vehicle-filters input,
.vehicle-filters select,
.approval-actions button,
.vehicle-action-box button,
.pager button {
  border-color: var(--brand-line);
  background: rgba(7, 18, 37, 0.74);
  color: var(--brand-text);
}

.module-body,
.data-cockpit .module-body,
.module-body .chart,
.chart {
  background:
    linear-gradient(rgba(79, 128, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 128, 237, 0.04) 1px, transparent 1px),
    rgba(7, 18, 37, 0.42);
  background-size: 24px 24px;
}

.up,
.status.completed,
.priority.low {
  color: var(--state-success);
}

.down,
.risk-text,
.priority.high {
  color: var(--state-danger) !important;
}

.priority.medium {
  color: var(--state-warning);
}

.status.in-progress {
  color: var(--brand-blue-soft);
}

@media (max-width: 1180px) {
  .figma-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  }

  .figma-nav {
    display: none;
  }

  .figma-search {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 920px) {
  .figma-topbar {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    min-height: auto;
    padding: 12px;
  }

  .figma-logo,
  .figma-user-entry {
    grid-column: 1 / -1;
  }

  .figma-search {
    grid-column: 1 / -1;
  }

  .figma-primary {
    grid-column: 1 / -1;
    width: 100%;
  }

  .figma-topbar .figma-icon-button {
    display: none;
  }

  .figma-hero {
    grid-template-columns: 1fr;
  }

  .figma-hero.system-hero,
  .figma-hero.compact-hero,
  .figma-module-grid,
  .vehicle-admin-grid,
  .vehicle-filters,
  .boss-summary-grid,
  .overview-table-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy p {
    max-width: none;
  }

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

  .overview-metrics,
  .overview-module-grid,
  .overview-table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .focus-list,
  .decision-card-grid,
  .task-card-grid,
  .phase-card-grid,
  .source-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .system-map a::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .figma-main {
    padding: 14px;
  }

  .figma-primary {
    min-width: 0;
    padding: 0 12px;
  }

  .figma-hero {
    padding: 18px;
  }

  .hero-mini-grid,
  .figma-metrics {
    grid-template-columns: 1fr;
  }

  .overview-metrics,
  .overview-module-grid {
    grid-template-columns: 1fr;
  }

  .hero-mini-grid article {
    padding-right: 84px;
  }

  .figma-table-card > header,
  .figma-table-card > footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .boss-insights div,
  .boss-insights p {
    grid-column: 1 / -1;
  }

  .support-entry-grid {
    grid-template-columns: 1fr;
  }

  .focus-list,
  .decision-card-grid,
  .task-card-grid,
  .phase-card-grid,
  .source-chip-grid,
  .system-map,
  .chain-flow {
    grid-template-columns: 1fr;
  }

  .flow-lane a {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .flow-lane em {
    grid-column: 2;
  }
}

/* Ningquan brand dashboard final pass: dark-blue system palette. */
:root {
  --nq-bg: #050d1f;
  --nq-bg-2: #08152b;
  --nq-panel: rgba(11, 24, 48, 0.96);
  --nq-panel-2: rgba(14, 31, 61, 0.96);
  --nq-panel-3: rgba(8, 19, 40, 0.96);
  --nq-line: rgba(88, 132, 214, 0.3);
  --nq-line-strong: rgba(96, 165, 250, 0.58);
  --nq-blue: #2f80ed;
  --nq-blue-2: #60a5fa;
  --nq-cyan: #38bdf8;
  --nq-text: #edf5ff;
  --nq-text-2: #b8c8e8;
  --nq-text-3: #7890b6;
  --nq-success: #2dd4bf;
  --nq-warning: #f6a524;
  --nq-danger: #ff5d73;
  --nq-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

html,
body.figma-body {
  background: var(--nq-bg);
  color: var(--nq-text);
}

.figma-dashboard,
.figma-workspace {
  color: var(--nq-text);
  background:
    linear-gradient(rgba(96, 165, 250, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.032) 1px, transparent 1px),
    radial-gradient(circle at 18% 0, rgba(47, 128, 237, 0.2), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(56, 189, 248, 0.12), transparent 30%),
    linear-gradient(180deg, #050d1f 0%, #08152b 48%, #050b19 100%);
  background-size: 40px 40px, 40px 40px, auto, auto, auto;
}

.figma-topbar {
  min-height: 72px;
  border-bottom: 1px solid var(--nq-line);
  background: rgba(5, 13, 31, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.figma-user-entry,
.figma-nav,
.figma-search,
.figma-icon-button {
  border: 1px solid var(--nq-line);
  background: rgba(9, 22, 45, 0.82);
  color: var(--nq-text-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.figma-user-entry {
  background: linear-gradient(135deg, #071326, #10244a);
}

.figma-user-entry strong,
.figma-logo strong {
  color: var(--nq-text);
}

.figma-user-entry small,
.figma-nav a,
.figma-search input::placeholder,
.figma-search kbd {
  color: var(--nq-text-2);
}

.figma-search input {
  color: var(--nq-text);
}

.figma-search kbd {
  border-color: var(--nq-line);
  background: rgba(5, 13, 31, 0.72);
}

.user-avatar-mini,
.figma-logo-mark {
  background: linear-gradient(135deg, var(--nq-blue), var(--nq-cyan));
  box-shadow: 0 0 24px rgba(47, 128, 237, 0.36);
}

.figma-nav a.active,
.figma-primary,
.assistant-brief a,
.pager button.active,
.approval-actions button:first-child,
.vehicle-action-box button:first-child {
  border-color: rgba(96, 165, 250, 0.7);
  background: linear-gradient(135deg, #1f6feb, #2f80ed 62%, #2563eb);
  color: #ffffff;
  box-shadow: 0 0 22px rgba(47, 128, 237, 0.28);
}

.figma-main,
.data-cockpit {
  background: transparent;
  color: var(--nq-text);
}

.figma-hero,
.figma-card,
.figma-table-card,
.hero-chart,
.figma-hero-panel,
.support-entry-grid a,
.system-map a,
.chain-flow div,
.focus-list a,
.decision-card-grid a,
.task-card-grid a,
.phase-card-grid article,
.rule-stack span,
.decision-feed a,
.vehicle-action-box,
.vehicle-detail dl,
.vehicle-detail dl div,
.assistant-report,
.assistant-brief {
  border: 1px solid var(--nq-line);
  background: linear-gradient(180deg, var(--nq-panel-2), var(--nq-panel));
  color: var(--nq-text);
  box-shadow: var(--nq-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.figma-hero,
.data-cockpit .figma-hero {
  border-color: rgba(96, 165, 250, 0.38);
  background:
    linear-gradient(90deg, rgba(47, 128, 237, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(14, 31, 61, 0.96), rgba(7, 18, 39, 0.98));
}

.figma-hero::before,
.figma-card::before,
.data-cockpit .figma-hero::before {
  background: linear-gradient(90deg, transparent, var(--nq-blue), var(--nq-cyan), transparent);
}

.hero-copy h1,
.data-cockpit .hero-copy h1,
.figma-card strong,
.figma-table-card h2,
.figma-table td:first-child,
.figma-table td,
.figma-table td b,
.support-entry-grid b,
.system-map b,
.chain-flow b,
.focus-list b,
.decision-card-grid b,
.task-card-grid b,
.phase-card-grid b,
.assistant-report b,
.assistant-brief strong,
.vehicle-detail dd {
  color: var(--nq-text);
}

.hero-copy h1,
.data-cockpit .hero-copy h1 {
  text-shadow: 0 0 22px rgba(47, 128, 237, 0.22);
}

.hero-copy p,
.data-cockpit .hero-copy p,
.figma-card p,
.figma-card .card-desc,
.figma-table-card header p,
.support-entry-grid span,
.system-map em,
.chain-flow em,
.focus-list em,
.decision-card-grid em,
.task-card-grid em,
.phase-card-grid em,
.assistant-report p,
.assistant-brief p,
.vehicle-detail dt,
.vehicle-plate-card span {
  color: var(--nq-text-2);
}

.hero-mini-grid article,
.data-cockpit .hero-mini-grid article {
  border: 1px solid rgba(96, 165, 250, 0.34);
  background: linear-gradient(180deg, rgba(15, 38, 75, 0.94), rgba(9, 24, 50, 0.96));
  box-shadow: inset 0 3px 0 rgba(96, 165, 250, 0.72);
}

.hero-mini-grid article span,
.data-cockpit .hero-mini-grid article span {
  color: var(--nq-text-2);
}

.hero-mini-grid article strong,
.data-cockpit .hero-mini-grid article strong {
  color: #ffffff;
}

.figma-metrics .figma-card:nth-child(n),
.figma-card,
.data-cockpit .overview-metrics .figma-card {
  border-color: rgba(88, 132, 214, 0.34);
  background:
    linear-gradient(180deg, rgba(13, 31, 64, 0.96), rgba(8, 20, 43, 0.98));
}

.figma-metrics .figma-card:nth-child(n)::before,
.overview-module-grid .module-card:nth-child(n) > header,
.overview-table-grid .figma-table-card:nth-child(n) > header,
.vehicle-filter-card > header,
.vehicle-list-card > header,
.vehicle-detail-card > header {
  border-top-color: var(--nq-blue);
}

.overview-metrics .figma-card {
  min-height: 178px;
}

.overview-metrics .figma-card strong {
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 0 20px rgba(47, 128, 237, 0.2);
}

.overview-metrics .figma-card p {
  color: #d7e5ff;
  font-weight: 750;
}

.overview-metrics .figma-card .card-desc {
  color: var(--nq-text-3);
  font-size: 13px;
  line-height: 1.65;
}

.metric-icon,
.metric-icon.blue,
.metric-icon.green,
.metric-icon.purple,
.metric-icon.orange {
  background: rgba(47, 128, 237, 0.13);
  color: var(--nq-blue-2);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.24);
}

.figma-table-card > header,
.data-cockpit .figma-table-card > header,
.overview-module-grid .module-card > header,
.overview-table-grid .figma-table-card > header,
.vehicle-filter-card > header,
.vehicle-list-card > header,
.vehicle-detail-card > header {
  border-bottom: 1px solid var(--nq-line);
  background: linear-gradient(180deg, rgba(13, 31, 64, 0.98), rgba(9, 23, 48, 0.98));
  box-shadow: inset 0 3px 0 rgba(47, 128, 237, 0.72);
}

.module-body,
.data-cockpit .module-body,
.module-body .chart,
.chart {
  border-color: rgba(88, 132, 214, 0.2);
  background:
    linear-gradient(rgba(96, 165, 250, 0.036) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.036) 1px, transparent 1px),
    rgba(5, 13, 31, 0.5);
  background-size: 26px 26px;
}

.figma-table {
  color: var(--nq-text);
}

.figma-table th,
.figma-table td {
  border-bottom-color: rgba(88, 132, 214, 0.18);
}

.figma-table th {
  background: rgba(7, 18, 39, 0.98);
  color: #a8bbdd;
}

.figma-table tbody tr:nth-child(even) td {
  background: rgba(10, 25, 52, 0.44);
}

.figma-table tbody tr:hover td {
  background: rgba(47, 128, 237, 0.12);
}

.table-actions a,
.figma-table td a,
.system-map span,
.chain-flow span {
  color: var(--nq-blue-2);
}

.source-chip-grid span,
.window-open,
.table-switcher button,
.vehicle-filters input,
.vehicle-filters select,
.approval-actions button,
.vehicle-action-box button,
.pager button {
  border-color: var(--nq-line);
  background: rgba(5, 13, 31, 0.72);
  color: var(--nq-text);
}

.vehicle-filters select option {
  background: #08152b;
  color: var(--nq-text);
}

.up,
.status.completed,
.priority.low {
  color: var(--nq-success);
}

.down,
.risk-text,
.priority.high {
  color: var(--nq-danger) !important;
}

.priority.medium {
  color: var(--nq-warning);
}

.status.in-progress {
  color: var(--nq-blue-2);
}

.status.completed,
.priority.low {
  background: rgba(45, 212, 191, 0.12);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.28);
}

.priority.medium {
  background: rgba(246, 165, 36, 0.12);
  box-shadow: inset 0 0 0 1px rgba(246, 165, 36, 0.28);
}

.priority.high {
  background: rgba(255, 93, 115, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 93, 115, 0.3);
}

/* Force old light module headers out of the final dark cockpit theme. */
.figma-table-card > header,
.data-cockpit .figma-table-card > header,
.overview-module-grid .module-card:nth-child(1) > header,
.overview-module-grid .module-card:nth-child(2) > header,
.overview-module-grid .module-card:nth-child(3) > header,
.overview-module-grid .module-card:nth-child(4) > header,
.overview-module-grid .module-card:nth-child(5) > header,
.overview-module-grid .module-card:nth-child(6) > header,
.overview-table-grid .figma-table-card:nth-child(1) > header,
.overview-table-grid .figma-table-card:nth-child(2) > header,
.vehicle-filter-card > header,
.vehicle-list-card > header,
.vehicle-detail-card > header {
  border-top: 3px solid var(--nq-blue) !important;
  border-bottom: 1px solid var(--nq-line) !important;
  background: linear-gradient(180deg, rgba(13, 31, 64, 0.98), rgba(8, 22, 48, 0.98)) !important;
  box-shadow: none !important;
}

.data-window.is-selected {
  border-color: var(--ui-blue) !important;
  background: var(--ui-surface-strong) !important;
  box-shadow: inset 0 0 0 1px rgba(54, 163, 255, 0.2) !important;
}

.window-open {
  color: var(--ui-blue) !important;
}

.table-switcher button.is-active {
  border-color: var(--ui-blue) !important;
  background: rgba(54, 163, 255, 0.18) !important;
  color: var(--ui-text) !important;
}

.data-window.is-selected {
  border-color: var(--ui-blue) !important;
  background: var(--ui-surface-strong) !important;
  box-shadow: inset 0 0 0 1px rgba(54, 163, 255, 0.2) !important;
}

.window-open {
  color: var(--ui-blue) !important;
}

.table-switcher button.is-active {
  border-color: var(--ui-blue) !important;
  background: rgba(54, 163, 255, 0.18) !important;
  color: var(--ui-text) !important;
}

.figma-table-card > header h2,
.figma-table-card > header p {
  color: var(--nq-text) !important;
}

.figma-table-card > header p {
  color: var(--nq-text-2) !important;
}

/* Legibility correction: professional deep-blue cockpit, higher contrast. */
:root {
  --nq-bg: #06172d;
  --nq-bg-2: #09203d;
  --nq-panel: #0b2748;
  --nq-panel-2: #10335d;
  --nq-panel-3: #081f3c;
  --nq-line: rgba(111, 166, 255, 0.42);
  --nq-line-strong: rgba(125, 191, 255, 0.72);
  --nq-blue: #3b82f6;
  --nq-blue-2: #7dd3fc;
  --nq-cyan: #22d3ee;
  --nq-text: #f7fbff;
  --nq-text-2: #d6e6ff;
  --nq-text-3: #a9bedc;
  --nq-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

html,
body.figma-body,
.figma-dashboard,
.figma-workspace {
  background:
    radial-gradient(circle at 16% 0, rgba(59, 130, 246, 0.24), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(34, 211, 238, 0.14), transparent 26%),
    linear-gradient(180deg, #06172d 0%, #08203d 54%, #06172d 100%) !important;
  color: var(--nq-text) !important;
}

.figma-topbar {
  background: #06172d !important;
  border-bottom: 1px solid rgba(125, 191, 255, 0.32) !important;
}

.figma-main {
  padding-top: 28px;
}

.figma-hero,
.data-cockpit .figma-hero {
  border-color: var(--nq-line-strong) !important;
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.16), transparent 42%),
    linear-gradient(180deg, #123763 0%, #0a2648 100%) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24) !important;
}

.figma-hero::before,
.figma-card::before,
.data-cockpit .figma-hero::before {
  height: 3px !important;
  background: linear-gradient(90deg, var(--nq-blue), var(--nq-cyan)) !important;
}

.figma-card,
.data-cockpit .overview-metrics .figma-card,
.figma-table-card,
.data-cockpit .figma-module-grid .figma-table-card,
.data-cockpit .overview-table-grid .figma-table-card,
.hero-chart,
.figma-hero-panel,
.support-entry-grid a,
.system-map a,
.chain-flow div,
.focus-list a,
.decision-card-grid a,
.task-card-grid a,
.phase-card-grid article,
.rule-stack span,
.decision-feed a,
.vehicle-action-box,
.vehicle-detail dl,
.vehicle-detail dl div,
.assistant-report,
.assistant-brief {
  border-color: var(--nq-line) !important;
  background: linear-gradient(180deg, #10335d 0%, #0b2748 100%) !important;
  color: var(--nq-text) !important;
  box-shadow: var(--nq-shadow) !important;
}

.data-cockpit .overview-metrics .figma-card::after {
  display: none !important;
}

.overview-metrics .figma-card {
  min-height: 168px !important;
  padding: 20px 18px !important;
}

.figma-card p,
.overview-metrics .figma-card p {
  color: var(--nq-text-2) !important;
}

.figma-card .card-desc,
.overview-metrics .figma-card .card-desc,
.figma-table-card header p,
.hero-copy p,
.data-cockpit .hero-copy p {
  color: var(--nq-text-3) !important;
}

.figma-card strong,
.overview-metrics .figma-card strong,
.hero-copy h1,
.data-cockpit .hero-copy h1,
.figma-table-card h2 {
  color: #ffffff !important;
  text-shadow: none !important;
}

.overview-metrics .figma-card strong {
  font-size: clamp(38px, 3.4vw, 52px) !important;
  line-height: 1 !important;
}

.metric-icon,
.metric-icon.blue,
.metric-icon.green,
.metric-icon.purple,
.metric-icon.orange {
  background: rgba(125, 211, 252, 0.12) !important;
  color: #9be8ff !important;
  border: 1px solid rgba(125, 211, 252, 0.32) !important;
}

.figma-table-card > header,
.data-cockpit .figma-table-card > header,
.data-cockpit .figma-module-grid .figma-table-card > header,
.data-cockpit .overview-table-grid .figma-table-card > header,
.overview-module-grid .module-card:nth-child(1) > header,
.overview-module-grid .module-card:nth-child(2) > header,
.overview-module-grid .module-card:nth-child(3) > header,
.overview-module-grid .module-card:nth-child(4) > header,
.overview-module-grid .module-card:nth-child(5) > header,
.overview-module-grid .module-card:nth-child(6) > header,
.overview-table-grid .figma-table-card:nth-child(1) > header,
.overview-table-grid .figma-table-card:nth-child(2) > header {
  border-top: 3px solid #5db6ff !important;
  border-bottom: 1px solid rgba(125, 191, 255, 0.3) !important;
  background: #123763 !important;
  color: var(--nq-text) !important;
}

.module-body,
.data-cockpit .module-body,
.module-body .chart,
.chart {
  border-color: rgba(125, 191, 255, 0.24) !important;
  background:
    linear-gradient(rgba(125, 191, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 191, 255, 0.045) 1px, transparent 1px),
    #09213f !important;
  background-size: 26px 26px !important;
}

.figma-table {
  color: var(--nq-text) !important;
}

.figma-table th {
  background: #11355f !important;
  color: #d6e6ff !important;
}

.figma-table td,
.figma-table td:first-child,
.figma-table td b {
  color: #eef6ff !important;
}

.figma-table th,
.figma-table td {
  border-bottom-color: rgba(125, 191, 255, 0.2) !important;
}

.figma-table tbody tr:nth-child(even) td {
  background: rgba(18, 55, 99, 0.42) !important;
}

.figma-table tbody tr:hover td {
  background: rgba(59, 130, 246, 0.18) !important;
}

.overview-module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.decision-feed a,
.decision-feed a b,
.decision-feed a em {
  color: var(--nq-text) !important;
}

.decision-feed a em {
  color: var(--nq-text-2) !important;
}

.todo-module-card .decision-feed {
  min-height: 340px;
}

/* Linear-style enterprise SaaS visual pass. Keep layout, remove traditional BI glow. */
:root {
  --ui-bg: #07111f;
  --ui-surface: rgba(255, 255, 255, 0.03);
  --ui-surface-strong: rgba(255, 255, 255, 0.045);
  --ui-surface-soft: rgba(255, 255, 255, 0.022);
  --ui-line: rgba(255, 255, 255, 0.06);
  --ui-line-strong: rgba(255, 255, 255, 0.1);
  --ui-text: #f8fafc;
  --ui-muted: #b7c2d4;
  --ui-subtle: #79869a;
  --ui-blue: #36a3ff;
  --ui-violet: #6d5cff;
  --ui-green: #30d158;
  --ui-amber: #ffb545;
  --ui-red: #ff5a7a;
  --ui-gray: #7b8794;
  --ui-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

html,
body.figma-body,
.figma-dashboard,
.figma-workspace {
  background: var(--ui-bg) !important;
  color: var(--ui-text) !important;
}

.figma-topbar {
  min-height: 76px !important;
  border-bottom: 1px solid var(--ui-line) !important;
  background: rgba(7, 17, 31, 0.72) !important;
  backdrop-filter: blur(20px) saturate(145%) !important;
  box-shadow: none !important;
}

.figma-main {
  padding: 28px !important;
}

.figma-user-entry,
.figma-nav,
.figma-search,
.figma-icon-button {
  border: 1px solid var(--ui-line) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  box-shadow: none !important;
}

.figma-user-entry {
  min-height: 52px !important;
  padding: 7px 14px 7px 8px !important;
}

.figma-user-entry strong,
.figma-logo strong {
  color: var(--ui-text) !important;
}

.figma-user-entry small,
.figma-nav a,
.figma-search input::placeholder,
.figma-search kbd {
  color: var(--ui-muted) !important;
}

.figma-search {
  height: 48px !important;
  border-radius: 24px !important;
  padding: 0 14px !important;
}

.figma-search input {
  color: var(--ui-text) !important;
}

.figma-search kbd {
  border-color: var(--ui-line-strong) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.figma-nav {
  min-height: 48px !important;
  padding: 4px !important;
  border-radius: 14px !important;
}

.figma-nav a {
  border-radius: 10px !important;
}

.figma-nav a.active {
  border-color: transparent !important;
  background: rgba(255, 255, 255, 0.09) !important;
  color: var(--ui-text) !important;
  box-shadow: none !important;
}

.figma-primary,
.assistant-brief a,
.pager button.active,
.approval-actions button:first-child,
.vehicle-action-box button:first-child {
  border: 0 !important;
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.figma-primary {
  height: 48px !important;
  border-radius: 14px !important;
}

.user-avatar-mini,
.figma-logo-mark,
.metric-icon,
.metric-icon.blue,
.metric-icon.green,
.metric-icon.purple,
.metric-icon.orange {
  background: linear-gradient(135deg, var(--ui-blue), var(--ui-violet)) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
}

.user-avatar-mini {
  width: 36px !important;
  height: 36px !important;
}

.figma-hero,
.figma-card,
.figma-table-card,
.hero-chart,
.figma-hero-panel,
.support-entry-grid a,
.system-map a,
.chain-flow div,
.focus-list a,
.decision-card-grid a,
.task-card-grid a,
.phase-card-grid article,
.rule-stack span,
.decision-feed a,
.vehicle-action-box,
.vehicle-detail dl,
.vehicle-detail dl div,
.assistant-report,
.assistant-brief {
  border: 1px solid var(--ui-line) !important;
  background: var(--ui-surface) !important;
  color: var(--ui-text) !important;
  box-shadow: none !important;
}

.figma-hero,
.data-cockpit .figma-hero {
  background: var(--ui-surface-strong) !important;
}

.figma-hero-panel h2 {
  color: var(--ui-text) !important;
  font-size: 18px !important;
  font-weight: 760 !important;
}

.figma-step-list span {
  border: 1px solid var(--ui-line) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  color: var(--ui-text) !important;
}

.figma-hero::before,
.figma-card::before,
.data-cockpit .figma-hero::before {
  display: none !important;
}

.figma-card,
.figma-table-card,
.decision-feed a,
.system-map a,
.support-entry-grid a,
.task-card-grid a,
.phase-card-grid article,
.vehicle-action-box,
.assistant-report,
.assistant-brief {
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease !important;
}

.figma-card:hover,
.figma-table-card:hover,
.decision-feed a:hover,
.system-map a:hover,
.support-entry-grid a:hover,
.task-card-grid a:hover,
.phase-card-grid article:hover {
  transform: translateY(-2px);
  border-color: var(--ui-line-strong) !important;
  background: var(--ui-surface-strong) !important;
  box-shadow: var(--ui-shadow) !important;
}

.hero-copy h1,
.data-cockpit .hero-copy h1 {
  color: var(--ui-text) !important;
  font-size: 32px !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

.hero-copy p,
.data-cockpit .hero-copy p,
.figma-card .card-desc,
.figma-table-card header p,
.decision-feed a em,
.support-entry-grid span,
.system-map em,
.chain-flow em,
.focus-list em,
.decision-card-grid em,
.task-card-grid em,
.phase-card-grid em,
.assistant-report p,
.assistant-brief p,
.vehicle-detail dt {
  color: var(--ui-muted) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
}

.hero-mini-grid article,
.data-cockpit .hero-mini-grid article {
  border: 1px solid var(--ui-line) !important;
  background: rgba(255, 255, 255, 0.025) !important;
  box-shadow: none !important;
}

.hero-mini-grid article span,
.data-cockpit .hero-mini-grid article span,
.overview-metrics .figma-card p,
.figma-card p {
  color: var(--ui-muted) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  font-weight: 650 !important;
}

.hero-mini-grid article strong,
.data-cockpit .hero-mini-grid article strong,
.figma-card strong,
.overview-metrics .figma-card strong {
  color: var(--ui-text) !important;
  line-height: 0.96 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

.overview-metrics .figma-card {
  min-height: 204px !important;
  padding: 24px !important;
}

.overview-metrics .metric-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 16px !important;
}

.overview-metrics .metric-icon svg,
.metric-icon svg {
  width: 26px !important;
  height: 26px !important;
}

.overview-metrics .figma-card strong {
  margin-top: 12px !important;
  font-size: clamp(44px, 4vw, 64px) !important;
  font-weight: 760 !important;
  white-space: nowrap !important;
}

.overview-metrics .figma-card .card-desc {
  color: var(--ui-subtle) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.metric-head em {
  color: var(--ui-green) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.metric-head em.down,
.down,
.risk-text {
  color: var(--ui-red) !important;
}

.figma-table-card > header,
.data-cockpit .figma-table-card > header,
.data-cockpit .figma-module-grid .figma-table-card > header,
.data-cockpit .overview-table-grid .figma-table-card > header,
.overview-module-grid .module-card:nth-child(1) > header,
.overview-module-grid .module-card:nth-child(2) > header,
.overview-module-grid .module-card:nth-child(3) > header,
.overview-module-grid .module-card:nth-child(4) > header,
.overview-module-grid .module-card:nth-child(5) > header,
.overview-module-grid .module-card:nth-child(6) > header,
.overview-table-grid .figma-table-card:nth-child(1) > header,
.overview-table-grid .figma-table-card:nth-child(2) > header,
.vehicle-filter-card > header,
.vehicle-list-card > header,
.vehicle-detail-card > header {
  border-top: 0 !important;
  border-bottom: 1px solid var(--ui-line) !important;
  background: transparent !important;
  color: var(--ui-text) !important;
  box-shadow: none !important;
}

.figma-table-card h2,
.figma-table-card > header h2 {
  color: var(--ui-text) !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}

.figma-table-card > header p {
  color: var(--ui-muted) !important;
  font-size: 14px !important;
}

.module-body,
.data-cockpit .module-body,
.module-body .chart,
.chart {
  border-color: transparent !important;
  background: var(--ui-surface-soft) !important;
  background-image: none !important;
}

.figma-table {
  color: var(--ui-text) !important;
}

.figma-table th {
  background: rgba(255, 255, 255, 0.025) !important;
  color: var(--ui-subtle) !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
}

.figma-table td,
.figma-table td:first-child,
.figma-table td b {
  color: var(--ui-text) !important;
}

.figma-table th,
.figma-table td {
  border-bottom-color: var(--ui-line) !important;
}

.figma-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.018) !important;
}

.figma-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.035) !important;
}

.table-actions a,
.figma-table td a,
.system-map span,
.chain-flow span {
  color: var(--ui-blue) !important;
}

.priority,
.status {
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

.priority.low,
.status.completed {
  border-color: rgba(48, 209, 88, 0.28) !important;
  background: rgba(48, 209, 88, 0.1) !important;
  color: var(--ui-green) !important;
}

.priority.medium {
  border-color: rgba(255, 181, 69, 0.3) !important;
  background: rgba(255, 181, 69, 0.1) !important;
  color: var(--ui-amber) !important;
}

.priority.high {
  border-color: rgba(255, 90, 122, 0.32) !important;
  background: rgba(255, 90, 122, 0.1) !important;
  color: var(--ui-red) !important;
}

.source-chip-grid span,
.vehicle-filters input,
.vehicle-filters select,
.approval-actions button,
.vehicle-action-box button,
.pager button {
  border-color: var(--ui-line) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--ui-text) !important;
  box-shadow: none !important;
}

.data-cockpit {
  background: transparent !important;
}

.data-cockpit::before {
  display: none !important;
}

body.figma-body .data-cockpit .figma-hero,
body.figma-body .data-cockpit .overview-metrics .figma-card,
body.figma-body .data-cockpit .figma-module-grid .figma-table-card,
body.figma-body .data-cockpit .overview-table-grid .figma-table-card,
body.figma-body .data-cockpit .figma-card,
body.figma-body .data-cockpit .figma-table-card {
  border-color: var(--ui-line) !important;
  background: var(--ui-surface) !important;
  box-shadow: none !important;
}

body.figma-body .data-cockpit .figma-hero {
  background: var(--ui-surface-strong) !important;
}

body.figma-body .data-cockpit .figma-table-card > header,
body.figma-body .data-cockpit .figma-module-grid .figma-table-card > header,
body.figma-body .data-cockpit .overview-table-grid .figma-table-card > header,
body.figma-body .data-cockpit .overview-module-grid .module-card:nth-child(1) > header,
body.figma-body .data-cockpit .overview-module-grid .module-card:nth-child(2) > header,
body.figma-body .data-cockpit .overview-module-grid .module-card:nth-child(3) > header,
body.figma-body .data-cockpit .overview-module-grid .module-card:nth-child(4) > header,
body.figma-body .data-cockpit .overview-module-grid .module-card:nth-child(5) > header,
body.figma-body .data-cockpit .overview-module-grid .module-card:nth-child(6) > header {
  border-top: 0 !important;
  border-bottom-color: var(--ui-line) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.figma-body .data-cockpit .module-body,
body.figma-body .data-cockpit .module-body .chart,
body.figma-body .data-cockpit .chart {
  background: var(--ui-surface-soft) !important;
  background-image: none !important;
}

@media (max-width: 1100px) {
  .data-guide-strip,
  .schema-window-grid,
  .compact-window-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-window {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .data-guide-strip,
  .schema-window-grid,
  .compact-window-grid {
    grid-template-columns: 1fr;
  }

  .featured-window {
    grid-column: auto;
  }

  .table-switcher {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .table-switcher button {
    flex: 0 0 auto;
  }
}

/* Data platform readability pass: Linear / Vercel inspired database product style. */
:root {
  --ui-bg: #07111f;
  --ui-surface: rgba(255, 255, 255, 0.035);
  --ui-surface-strong: rgba(255, 255, 255, 0.055);
  --ui-surface-soft: rgba(255, 255, 255, 0.024);
  --ui-line: rgba(255, 255, 255, 0.065);
  --ui-line-strong: rgba(255, 255, 255, 0.12);
  --ui-text: #f8fafc;
  --ui-muted: #b8c3d5;
  --ui-subtle: #7f8ba0;
  --ui-blue: #36a3ff;
  --ui-violet: #6d5cff;
  --ui-green: #30d158;
  --ui-amber: #ffb545;
  --ui-red: #ff5a7a;
  --ui-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
}

html,
body.figma-body,
.figma-dashboard,
.figma-workspace {
  background:
    radial-gradient(circle at 50% -8%, rgba(54, 163, 255, 0.14), transparent 38%),
    radial-gradient(circle at 88% 8%, rgba(109, 92, 255, 0.08), transparent 28%),
    var(--ui-bg) !important;
}

.figma-topbar {
  grid-template-columns: auto auto minmax(320px, 540px) auto auto auto !important;
  min-height: 76px !important;
  border-bottom-color: var(--ui-line) !important;
  background: rgba(7, 17, 31, 0.76) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
}

.figma-search {
  justify-self: stretch !important;
  width: min(42vw, 540px) !important;
  max-width: 540px !important;
  height: 48px !important;
  border-radius: 24px !important;
}

.figma-table-card,
.figma-card,
.data-window {
  border-color: var(--ui-line) !important;
  background: var(--ui-surface) !important;
  box-shadow: none !important;
}

.figma-table-card:hover,
.figma-card:hover,
.data-window:hover {
  border-color: var(--ui-line-strong) !important;
  background: var(--ui-surface-strong) !important;
  box-shadow: var(--ui-shadow) !important;
}

body[data-route="data"] .figma-main {
  max-width: 1480px;
  margin: 0 auto;
}

body[data-route="data"] .data-landing-card {
  margin-top: 14px;
}

body[data-route="data"] .data-guide-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body[data-route="data"] .data-guide-strip article {
  min-height: 88px;
  border-color: var(--ui-line) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.026)) !important;
}

body[data-route="data"] .data-guide-strip span {
  background: rgba(54, 163, 255, 0.14) !important;
  color: var(--ui-blue) !important;
}

body[data-route="data"] .data-guide-strip b {
  color: var(--ui-text) !important;
}

body[data-route="data"] .data-guide-strip em {
  color: var(--ui-muted) !important;
}

body[data-route="data"] .schema-window-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch;
}

body[data-route="data"] .featured-window {
  grid-column: auto !important;
}

body[data-route="data"] .data-window {
  --table-accent: var(--ui-blue);
  position: relative;
  min-height: 172px;
  overflow: hidden;
  padding: 18px !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.046), rgba(255, 255, 255, 0.026)) !important;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

body[data-route="data"] .data-window::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--table-accent);
  opacity: 0.82;
}

body[data-route="data"] .data-window[data-table-card="vehicle_assets"] {
  --table-accent: var(--ui-blue);
}

body[data-route="data"] .data-window[data-table-card="renter_profiles"],
body[data-route="data"] .data-window[data-table-card="vehicle_operation_summary"] {
  --table-accent: var(--ui-green);
}

body[data-route="data"] .data-window[data-table-card="lease_records"],
body[data-route="data"] .data-window[data-table-card="payment_flows"] {
  --table-accent: var(--ui-amber);
}

body[data-route="data"] .data-window[data-table-card="maintenance_events"],
body[data-route="data"] .data-window[data-table-card="insurance_violation_events"] {
  --table-accent: var(--ui-violet);
}

body[data-route="data"] .data-window[data-table-card="risk_events"],
body[data-route="data"] .data-window[data-table-card="wecom_message_events"] {
  --table-accent: var(--ui-red);
}

body[data-route="data"] .data-window.is-selected {
  border-color: rgba(54, 163, 255, 0.54) !important;
  background: rgba(54, 163, 255, 0.08) !important;
  box-shadow: inset 0 0 0 1px rgba(54, 163, 255, 0.18) !important;
}

body[data-route="data"] .window-title-row span {
  color: var(--ui-text) !important;
  font-size: 17px;
}

body[data-route="data"] .window-title-row em {
  color: var(--ui-subtle) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body[data-route="data"] .schema-window-card .window-title-row em {
  display: none;
}

body[data-route="data"] .data-window p,
body[data-route="data"] .window-meta b {
  color: var(--ui-muted) !important;
}

body[data-route="data"] .window-open,
body[data-route="data"] .table-actions button,
body[data-route="data"] .table-actions a {
  min-height: 32px;
  border: 1px solid var(--ui-line) !important;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.028) !important;
  color: var(--ui-blue) !important;
  font-weight: 760;
}

body[data-route="data"] .window-open:hover,
body[data-route="data"] .table-actions button:hover,
body[data-route="data"] .table-actions a:hover {
  border-color: rgba(54, 163, 255, 0.38) !important;
  background: rgba(54, 163, 255, 0.1) !important;
}

body[data-route="data"] .status.in-progress {
  border-color: rgba(54, 163, 255, 0.3) !important;
  background: rgba(54, 163, 255, 0.1) !important;
  color: var(--ui-blue) !important;
}

body[data-route="data"] .status.completed {
  border-color: rgba(48, 209, 88, 0.3) !important;
  background: rgba(48, 209, 88, 0.1) !important;
  color: var(--ui-green) !important;
}

body[data-route="data"] .status.planning {
  border-color: rgba(255, 181, 69, 0.32) !important;
  background: rgba(255, 181, 69, 0.1) !important;
  color: var(--ui-amber) !important;
}

body[data-route="data"] .status.review {
  border-color: rgba(109, 92, 255, 0.34) !important;
  background: rgba(109, 92, 255, 0.12) !important;
  color: #a9a2ff !important;
}

body[data-route="data"] .table-viewer-card > header {
  background: transparent !important;
}

.data-viewer-shell {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  min-height: 430px;
}

.data-table-profile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-right: 1px solid var(--ui-line);
  background:
    radial-gradient(circle at 0 0, rgba(54, 163, 255, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.018);
}

.profile-kicker {
  width: fit-content;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(54, 163, 255, 0.24);
  border-radius: 999px;
  background: rgba(54, 163, 255, 0.1);
  color: var(--ui-blue);
  font-size: 12px;
  font-weight: 800;
}

.data-table-profile h3 {
  margin: 0;
  color: var(--ui-text);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 780;
}

.data-table-profile code {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
  color: var(--ui-muted);
  font-family: inherit;
  font-size: 12px;
}

.data-table-profile p {
  margin: 0;
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.65;
}

.data-table-profile dl {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
}

.data-table-profile dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 36px;
  padding: 8px 0;
  border-top: 1px solid var(--ui-line);
}

.data-table-profile dt,
.data-table-profile dd {
  margin: 0;
  line-height: 1.35;
}

.data-table-profile dt {
  color: var(--ui-subtle);
  font-size: 12px;
}

.data-table-profile dd {
  color: var(--ui-text);
  font-size: 13px;
  font-weight: 760;
}

.data-viewer-main {
  min-width: 0;
}

body[data-route="data"] .table-switcher {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ui-line);
}

body[data-route="data"] .table-switcher button {
  display: grid;
  gap: 5px;
  justify-items: start;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid transparent !important;
  border-radius: 12px;
  background: transparent !important;
  color: var(--ui-muted) !important;
  text-align: left;
}

body[data-route="data"] .table-switcher button:hover {
  border-color: var(--ui-line) !important;
  background: rgba(255, 255, 255, 0.032) !important;
}

body[data-route="data"] .table-switcher button.is-active {
  border-color: rgba(54, 163, 255, 0.74) !important;
  background: rgba(54, 163, 255, 0.15) !important;
  color: var(--ui-text) !important;
}

.table-switcher .tab-name {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  font-family: inherit;
  font-size: 13px;
  font-weight: 760;
}

.table-switcher .tab-name i {
  flex: 0 0 auto;
  width: 14px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 3px;
  opacity: 0.72;
}

.table-switcher small {
  color: var(--ui-subtle);
  font-size: 12px;
  font-weight: 700;
}

body[data-route="data"] .data-preview-wrap {
  padding: 0;
}

body[data-route="data"] .data-preview-table {
  min-width: 1180px !important;
  background: transparent;
}

body[data-route="data"] .data-preview-table th,
body[data-route="data"] .data-preview-table td {
  min-width: 118px;
  padding: 14px 18px;
  border-bottom-color: var(--ui-line) !important;
  vertical-align: top;
  white-space: nowrap;
}

body[data-route="data"] .data-preview-table th {
  background: rgba(255, 255, 255, 0.026) !important;
  color: var(--ui-subtle) !important;
  font-size: 12px !important;
}

body[data-route="data"] .data-preview-table td {
  color: var(--ui-muted) !important;
  font-size: 13px !important;
}

body[data-route="data"] .data-preview-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.034) !important;
}

body[data-route="data"] .data-preview-table td:first-child {
  min-width: 170px;
}

.cell-primary {
  display: block;
  color: var(--ui-text);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 780;
}

.cell-secondary {
  display: block;
  margin-top: 4px;
  color: var(--ui-subtle);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}

.cell-value {
  color: inherit;
}

body[data-route="data"] .table-viewer-card > footer {
  border-top: 1px solid var(--ui-line);
  color: var(--ui-subtle);
}

@media (max-width: 1180px) {
  .figma-topbar {
    grid-template-columns: auto auto minmax(220px, 1fr) auto auto auto !important;
  }

  .figma-search {
    width: auto !important;
  }

  body[data-route="data"] .schema-window-grid,
  body[data-route="data"] .data-guide-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .data-viewer-shell {
    grid-template-columns: 1fr;
  }

  .data-table-profile {
    border-right: 0;
    border-bottom: 1px solid var(--ui-line);
  }
}

@media (max-width: 760px) {
  body[data-route="data"] .schema-window-grid,
  body[data-route="data"] .data-guide-strip {
    grid-template-columns: 1fr !important;
  }

  body[data-route="data"] .table-switcher {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  body[data-route="data"] .table-switcher button {
    flex: 0 0 190px;
  }

  .data-table-profile dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* Total-to-detail information architecture for the six operation modules. */
.cockpit-total-hero {
  min-height: auto !important;
}

.today-workbench {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 0, rgba(54, 163, 255, 0.1), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.018));
}

.today-workbench > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--ui-line);
}

.today-workbench h2 {
  margin: 0;
  color: var(--ui-text);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 880;
}

.today-workbench p {
  margin: 7px 0 0;
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 1.6;
}

.today-workbench > header > a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(54, 163, 255, 0.26);
  border-radius: 999px;
  background: rgba(54, 163, 255, 0.1);
  color: #8ecbff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.today-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.today-action-card {
  --action-accent: var(--ui-blue);
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--action-accent) 23%, var(--ui-line));
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--action-accent) 16%, transparent), transparent 42%),
    rgba(255, 255, 255, 0.026);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.today-action-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--action-accent) 48%, var(--ui-line));
  background-color: rgba(255, 255, 255, 0.04);
}

.today-action-card.urgent { --action-accent: var(--ui-red); }
.today-action-card.warning { --action-accent: var(--ui-blue); }
.today-action-card.amber { --action-accent: var(--ui-amber); }
.today-action-card.cyan { --action-accent: #36d6e7; }

.today-action-card span {
  width: fit-content;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--action-accent) 13%, transparent);
  color: color-mix(in srgb, var(--action-accent) 78%, #ffffff);
  font-size: 12px;
  font-weight: 900;
}

.today-action-card strong {
  color: var(--ui-text);
  font-size: clamp(22px, 2.05vw, 30px);
  line-height: 1.12;
  font-weight: 880;
  letter-spacing: 0;
}

.today-action-card em {
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 1.55;
  font-style: normal;
  font-weight: 750;
}

.module-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.module-entry-card {
  --module-accent: var(--ui-blue);
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 246px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--module-accent) 22%, transparent), transparent 42%),
    var(--ui-surface);
  color: var(--ui-text);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.module-entry-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--module-accent);
  opacity: 0.9;
}

.module-entry-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--module-accent) 42%, var(--ui-line));
  background: var(--ui-surface-strong);
  box-shadow: var(--ui-shadow);
}

.module-entry-card.accent-blue,
.module-detail-hero.accent-blue {
  --module-accent: var(--ui-blue);
}

.module-entry-card.accent-green,
.module-detail-hero.accent-green {
  --module-accent: var(--ui-green);
}

.module-entry-card.accent-violet,
.module-detail-hero.accent-violet {
  --module-accent: var(--ui-violet);
}

.module-entry-card.accent-amber,
.module-detail-hero.accent-amber {
  --module-accent: var(--ui-amber);
}

.module-entry-card.accent-cyan,
.module-detail-hero.accent-cyan {
  --module-accent: #36d6e7;
}

.module-entry-card.accent-red,
.module-detail-hero.accent-red {
  --module-accent: var(--ui-red);
}

.module-index {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--module-accent) 34%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--module-accent) 13%, transparent);
  color: var(--module-accent);
  font-size: 13px;
  font-weight: 900;
}

.module-entry-card h2 {
  margin: 2px 0 0;
  color: var(--ui-text);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 800;
}

.module-entry-card p {
  margin: 0;
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.7;
}

.module-entry-card strong {
  align-self: end;
  margin-top: 8px;
  color: var(--ui-text);
  font-size: 40px;
  line-height: 0.95;
  font-weight: 780;
}

.module-entry-card em {
  color: var(--ui-subtle);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.module-detail-page {
  max-width: 1480px;
  margin: 0 auto;
}

.module-detail-hero {
  --module-accent: var(--ui-blue);
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--ui-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--module-accent) 18%, transparent), transparent 38%),
    var(--ui-surface);
}

.module-detail-hero > a {
  width: fit-content;
  color: var(--module-accent);
  font-size: 13px;
  font-weight: 800;
}

.module-detail-hero h1 {
  margin: 0;
  color: var(--ui-text);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 820;
}

.module-detail-hero p {
  max-width: 880px;
  margin: 0;
  color: var(--ui-muted);
  font-size: 16px;
  line-height: 1.75;
}

.module-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.module-kpi-strip article {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.026);
}

.module-kpi-strip span {
  display: block;
  color: var(--ui-subtle);
  font-size: 13px;
  font-weight: 700;
}

.module-kpi-strip strong {
  display: block;
  margin-top: 10px;
  color: var(--ui-text);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 0.98;
  font-weight: 780;
}

.module-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: start;
  margin-top: 20px;
}

.module-detail-layout .figma-table-card {
  margin-top: 0;
}

.detail-chart-card .module-body {
  padding: 18px;
}

.detail-chart-card .chart {
  min-height: 430px;
}

.detail-side-card .decision-feed {
  min-height: 0;
}

.detail-side-card .figma-table {
  min-width: 520px;
}

.detail-side-card .rule-stack {
  padding: 18px;
}

.detail-side-card .rule-stack span {
  border-color: var(--ui-line) !important;
  background: rgba(255, 255, 255, 0.026) !important;
  color: var(--ui-muted) !important;
}

.visual-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.visual-overview-card {
  --module-accent: var(--ui-blue);
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(178px, 1fr) auto;
  gap: 14px;
  min-height: 386px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--module-accent) 18%, transparent), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  color: var(--ui-text);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.visual-overview-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--module-accent) 46%, var(--ui-line));
  box-shadow: var(--ui-shadow);
}

.visual-overview-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--module-accent), transparent);
}

.visual-overview-card.accent-blue { --module-accent: var(--ui-blue); }
.visual-overview-card.accent-green { --module-accent: var(--ui-green); }
.visual-overview-card.accent-violet { --module-accent: var(--ui-violet); }
.visual-overview-card.accent-amber { --module-accent: var(--ui-amber); }
.visual-overview-card.accent-cyan { --module-accent: #36d6e7; }
.visual-overview-card.accent-red { --module-accent: var(--ui-red); }

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

.visual-overview-card h2 {
  margin: 0;
  color: var(--ui-text);
  font-size: 19px;
  line-height: 1.28;
  font-weight: 860;
}

.visual-overview-card p {
  margin: 6px 0 0;
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 1.55;
}

.visual-overview-card header em {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--module-accent) 32%, var(--ui-line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--module-accent) 10%, transparent);
  color: color-mix(in srgb, var(--module-accent) 76%, #ffffff);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.overview-visual {
  min-height: 178px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.024);
}

.visual-overview-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.visual-overview-card footer b {
  color: var(--ui-text);
  font-size: 18px;
  font-weight: 860;
}

.visual-overview-card footer span {
  color: color-mix(in srgb, var(--module-accent) 70%, var(--ui-muted));
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.vehicle-ring {
  display: grid;
  grid-template-columns: minmax(128px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1vw, 14px);
  min-width: 0;
  overflow: hidden;
}

.mini-donut {
  position: relative;
  justify-self: center;
  width: min(100%, 152px);
  max-width: 152px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: conic-gradient(var(--ui-blue) 0 237deg, var(--ui-amber) 237deg 269deg, var(--ui-red) 269deg 308deg, #64748b 308deg 360deg);
}

.mini-donut::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: inherit;
  background: var(--ui-bg);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.045);
}

.donut-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(58%, 86px);
  aspect-ratio: 1;
  border-radius: 999px;
  text-align: center;
  transform: translateZ(0);
}

.mini-donut strong {
  display: block;
  color: var(--ui-text);
  font-size: clamp(25px, 2.2vw, 31px);
  line-height: 1;
  font-weight: 880;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.mini-donut span {
  display: block;
  margin-top: 4px;
  color: var(--ui-muted);
  font-size: clamp(10px, 0.82vw, 12px);
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

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

.mini-legend span,
.visual-legend span {
  color: var(--ui-muted);
  font-size: 13px;
  font-weight: 800;
}

.mini-legend i,
.visual-legend span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 999px;
  vertical-align: 1px;
  background: var(--module-accent);
}

.mini-legend span:nth-child(2) i { background: var(--ui-amber); }
.mini-legend span:nth-child(3) i { background: var(--ui-red); }
.mini-legend span:nth-child(4) i { background: #64748b; }

.mini-revenue-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  padding-inline: 18px;
}

.mini-revenue-chart > span {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 5px;
  height: 132px;
}

.mini-revenue-chart > span::before,
.mini-revenue-chart > span::after {
  content: "";
  display: block;
  border-radius: 7px 7px 2px 2px;
}

.mini-revenue-chart > span::before {
  height: var(--h1);
  background: linear-gradient(to top, var(--ui-blue), #7dd3fc);
}

.mini-revenue-chart > span::after {
  height: var(--h2);
  background: linear-gradient(to top, var(--ui-green), #86efac);
}

.mini-revenue-chart > span i {
  position: absolute;
}

.visual-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: -4px;
}

.visual-legend span:nth-child(1)::before { background: var(--ui-blue); }
.visual-legend span:nth-child(2)::before { background: var(--ui-green); }
.visual-legend span:nth-child(3)::before { background: var(--ui-red); }

.mini-flow-chart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12px, 0.22fr) minmax(0, 1fr) minmax(12px, 0.22fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(5px, 0.68vw, 10px);
  min-width: 0;
  overflow: hidden;
  padding-inline: clamp(4px, 0.85vw, 12px);
}

.flow-node {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 100%;
  max-width: 116px;
  min-width: 0;
  min-height: clamp(62px, 6.4vw, 96px);
  padding: clamp(7px, 0.78vw, 13px) clamp(4px, 0.72vw, 12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: clamp(12px, 1.1vw, 16px);
  color: #fff;
  font-size: clamp(12px, 0.92vw, 17px);
  font-weight: 900;
  line-height: 1.34;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.flow-node.income { background: rgba(54, 163, 255, 0.18); }
.flow-node.cost { background: rgba(255, 181, 69, 0.16); }
.flow-node.profit { background: rgba(48, 209, 88, 0.16); }

.flow-line {
  width: 100%;
  min-width: 0;
  height: clamp(12px, 1.55vw, 24px);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(54, 163, 255, 0.8), rgba(255, 181, 69, 0.8));
}

.flow-line.profit {
  background: linear-gradient(90deg, rgba(255, 181, 69, 0.8), rgba(48, 209, 88, 0.8));
}

.mini-loss-bars,
.mini-todo-queue {
  display: grid;
  gap: 12px;
}

.mini-loss-bars span {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-loss-bars i {
  display: block;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ui-amber), var(--ui-red));
}

.mini-loss-bars em {
  color: #fecaca;
  font-style: normal;
  text-align: right;
}

.mini-radar {
  display: grid;
  grid-template-columns: minmax(108px, 0.86fr) minmax(128px, 1fr);
  align-items: center;
  gap: clamp(10px, 1.05vw, 16px);
  min-width: 0;
  overflow: hidden;
}

.mini-radar svg {
  justify-self: center;
  width: min(100%, 176px);
  height: auto;
  max-height: 150px;
  aspect-ratio: 180 / 150;
}

.risk-score-list {
  display: grid;
  gap: clamp(8px, 0.82vw, 11px);
  min-width: 0;
}

.risk-score-list span {
  display: grid;
  grid-template-columns: minmax(58px, 0.82fr) minmax(42px, 1fr) minmax(26px, auto);
  align-items: center;
  gap: clamp(6px, 0.66vw, 9px);
  min-width: 0;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  color: var(--ui-muted);
  font-size: clamp(11px, 0.82vw, 13px);
  font-weight: 800;
}

.risk-score-list b {
  min-width: 0;
  overflow: hidden;
  color: var(--ui-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-score-list i {
  position: relative;
  display: block;
  min-width: 38px;
  height: clamp(8px, 0.72vw, 11px);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.risk-score-list i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--score);
  border-radius: inherit;
  background: linear-gradient(90deg, #36d6e7, #36a3ff);
}

.risk-score-list em {
  color: var(--ui-text);
  font-style: normal;
  font-weight: 900;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.risk-score-list .risk-hot i::after {
  background: linear-gradient(90deg, #ff5a7a, #ff8fa3);
}

.risk-score-list .risk-warn i::after {
  background: linear-gradient(90deg, #ffb545, #ff7a45);
}

.risk-score-list .risk-stable i::after {
  background: linear-gradient(90deg, #36d6e7, #36a3ff);
}

.mini-todo-queue span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.026);
}

.mini-todo-queue b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 90, 122, 0.13);
  color: var(--ui-red);
  font-size: 13px;
}

.mini-todo-queue i {
  color: var(--ui-text);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.mini-todo-queue strong {
  color: #fff;
  font-size: 13px;
}

.report-screen {
  max-width: 1540px;
}

.report-screen .module-detail-hero {
  border-color: color-mix(in srgb, var(--module-accent) 24%, var(--ui-line));
  background:
    radial-gradient(circle at 92% 18%, color-mix(in srgb, var(--module-accent) 16%, transparent), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.report-screen .module-detail-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.75fr);
}

.report-screen .detail-chart-card .chart {
  min-height: 500px;
}

.report-screen .module-operating-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(380px, 1.05fr);
}

.report-screen .module-close-loop {
  grid-column: 1 / span 2;
}

.six-module-entry-grid {
  margin-top: 26px;
}

.six-module-entry-grid .module-entry-card {
  min-height: 300px;
  text-decoration: none;
}

.six-module-entry-grid .module-entry-card h2 {
  max-width: 10em;
}

.entry-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.entry-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--module-accent) 28%, var(--ui-line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--module-accent) 9%, transparent);
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 800;
}

.six-module-entry-grid .module-entry-card strong {
  letter-spacing: 0;
}

.six-module-entry-grid .module-entry-card em {
  color: color-mix(in srgb, var(--module-accent) 72%, var(--ui-muted));
}

.module-operating-grid {
  display: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(360px, 1.1fr);
  gap: 16px;
  margin-top: 18px;
}

.module-logic-card,
.module-detail-entry-panel,
.module-close-loop {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background: var(--ui-surface);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.module-logic-card {
  padding: 22px;
}

.module-logic-card::before,
.module-detail-entry-panel::before,
.module-close-loop::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(54, 163, 255, 0.64), rgba(48, 209, 88, 0.18), transparent);
}

.logic-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(54, 163, 255, 0.2);
  border-radius: 999px;
  background: rgba(54, 163, 255, 0.08);
  color: #8ecbff;
  font-size: 12px;
  font-weight: 900;
}

.module-logic-card h2,
.module-detail-entry-panel h2,
.module-close-loop h2 {
  margin: 14px 0 0;
  color: var(--ui-text);
  font-size: 20px;
  line-height: 1.32;
  font-weight: 850;
}

.module-logic-card p,
.module-detail-entry-panel p,
.module-close-loop p {
  margin: 10px 0 0;
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.75;
}

.module-rule-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.module-rule-list li {
  position: relative;
  padding: 12px 12px 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 1.6;
}

.module-rule-list li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 12px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #36a3ff;
  box-shadow: 0 0 16px rgba(54, 163, 255, 0.35);
}

.module-detail-entry-panel {
  grid-row: span 2;
}

.module-detail-entry-panel header,
.module-close-loop header {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--ui-line);
}

.module-detail-entry-panel header h2,
.module-close-loop header h2 {
  margin-top: 0;
}

.module-route-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.module-route-list a,
.module-route-list button {
  display: grid;
  gap: 7px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
  color: inherit;
  font: inherit;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.module-route-list a:hover,
.module-route-list button:hover {
  transform: translateY(-2px);
  border-color: rgba(54, 163, 255, 0.32);
  background: rgba(54, 163, 255, 0.07);
}

.module-route-list b {
  color: var(--ui-text);
  font-size: 15px;
  font-weight: 850;
}

.module-route-list span {
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 1.6;
}

.module-close-loop {
  grid-column: 1 / span 2;
}

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

.module-flowline span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 8px;
  border: 1px solid rgba(54, 163, 255, 0.16);
  border-radius: 12px;
  background: rgba(54, 163, 255, 0.06);
  color: var(--ui-text);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.module-flowline span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -11px;
  width: 10px;
  height: 1px;
  background: rgba(54, 163, 255, 0.38);
}

.module-inline-data {
  margin-top: 18px;
}

.module-inline-data > header {
  gap: 16px;
}

.module-inline-data.is-collapsed .compact-module-viewer {
  display: none;
}

.module-inline-data .table-actions button[data-module-detail-toggle] {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(54, 163, 255, 0.26);
  border-radius: 999px;
  background: rgba(54, 163, 255, 0.1);
  color: #8ecbff;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.module-inline-data.is-collapsed {
  background:
    radial-gradient(circle at 100% 0, rgba(54, 163, 255, 0.06), transparent 34%),
    var(--ui-surface);
}

.compact-module-viewer {
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
}

.compact-module-viewer .data-table-profile {
  min-height: 100%;
}

.module-hermes-grid {
  margin-top: 18px;
}

.data-governance-card {
  margin-top: 20px;
}

.module-data-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.module-data-map a {
  display: grid;
  gap: 9px;
  min-height: 150px;
  padding: 17px;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(54, 163, 255, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.026);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.module-data-map a:hover {
  transform: translateY(-2px);
  border-color: rgba(54, 163, 255, 0.32);
  background-color: rgba(54, 163, 255, 0.05);
}

.module-data-map span {
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(54, 163, 255, 0.1);
  color: #8ecbff;
  font-size: 12px;
  font-weight: 900;
}

.module-data-map b {
  color: var(--ui-text);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 860;
}

.module-data-map em {
  color: var(--ui-muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .visual-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .module-data-map,
  .compact-module-viewer {
    grid-template-columns: 1fr;
  }

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

  .module-detail-layout,
  .report-screen .module-detail-layout {
    grid-template-columns: 1fr;
  }

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

  .module-operating-grid,
  .report-screen .module-operating-grid {
    grid-template-columns: 1fr 1fr;
  }

  .module-detail-entry-panel,
  .module-close-loop,
  .report-screen .module-close-loop {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .visual-overview-grid,
  .module-entry-grid,
  .today-action-grid,
  .module-kpi-strip {
    grid-template-columns: 1fr;
  }

  .today-workbench > header {
    display: grid;
  }

  .visual-overview-card {
    min-height: 0;
  }

  .visual-overview-card header,
  .visual-overview-card footer,
  .vehicle-ring,
  .mini-radar,
  .mini-flow-chart {
    grid-template-columns: 1fr;
  }

  .mini-flow-chart {
    justify-items: stretch;
    gap: 8px;
  }

  .mini-flow-chart .flow-node {
    max-width: none;
    min-height: 64px;
  }

  .mini-flow-chart .flow-line {
    justify-self: center;
    width: 16px;
    min-width: 16px;
    height: 28px;
    background: linear-gradient(180deg, rgba(54, 163, 255, 0.8), rgba(255, 181, 69, 0.8));
  }

  .mini-flow-chart .flow-line.profit {
    background: linear-gradient(180deg, rgba(255, 181, 69, 0.8), rgba(48, 209, 88, 0.8));
  }

  .mini-radar {
    justify-items: stretch;
  }

  .mini-radar svg {
    width: min(78vw, 190px);
  }

  .risk-score-list span {
    grid-template-columns: minmax(68px, 0.7fr) minmax(0, 1fr) 32px;
  }

  .visual-overview-card header em,
  .visual-overview-card footer span {
    justify-self: start;
    text-align: left;
  }

  .vehicle-ring {
    justify-items: center;
  }

  .mini-donut {
    width: min(58vw, 172px);
  }

  .mini-legend {
    width: min(100%, 260px);
  }

  .module-entry-card {
    min-height: 210px;
  }

  .module-operating-grid,
  .report-screen .module-operating-grid,
  .module-flowline {
    grid-template-columns: 1fr;
  }

  .module-flowline span:not(:last-child)::after {
    display: none;
  }
}

/* Header grouping and responsive scaling. */
.figma-topbar {
  grid-template-columns: minmax(420px, max-content) minmax(260px, 1fr) auto auto !important;
}

.topbar-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.topbar-identity .figma-user-entry {
  flex: 0 0 auto;
}

.topbar-identity .figma-nav {
  display: flex !important;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.topbar-identity .figma-nav::-webkit-scrollbar {
  display: none;
}

.topbar-identity .figma-nav a {
  flex: 0 0 auto;
}

.total-module-grid .module-card {
  min-height: 402px;
}

.total-module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.total-module-grid .module-card .module-body {
  min-height: 306px;
}

.total-module-grid .todo-module-card .decision-feed {
  min-height: 306px;
}

@media (max-width: 1180px) {
  .total-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .figma-topbar {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    grid-auto-rows: auto;
    gap: 10px;
    padding-block: 10px !important;
  }

  .topbar-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-column: 1 / -1;
  }

  .topbar-identity .figma-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .figma-search {
    grid-column: 1;
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
  }

  .figma-primary,
  .figma-icon-button {
    align-self: center;
  }
}

@media (max-width: 760px) {
  .total-module-grid {
    grid-template-columns: 1fr !important;
  }

  .topbar-identity {
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-identity .figma-user-entry,
  .topbar-identity .figma-nav {
    width: 100%;
  }

  .figma-topbar {
    grid-template-columns: 1fr auto auto !important;
  }

  .figma-primary {
    min-width: 0 !important;
    padding-inline: 12px !important;
  }

  .total-module-grid .module-card,
  .total-module-grid .module-card .module-body,
  .total-module-grid .todo-module-card .decision-feed {
    min-height: 0;
  }
}

/* 2026-05: total-detail operating cockpit refinement. */
.figma-main {
  width: min(100%, 1480px);
}

.visual-overview-card {
  min-width: 0;
}

.visual-overview-card .overview-visual {
  min-width: 0;
  overflow: hidden;
}

.visual-overview-card .mini-flow-chart {
  grid-template-columns: minmax(70px, 1fr) minmax(18px, 0.28fr) minmax(70px, 1fr) minmax(18px, 0.28fr) minmax(70px, 1fr);
}

.visual-overview-card .flow-node {
  max-width: 100%;
  font-size: clamp(12px, 1vw, 16px);
}

.visual-overview-card .mini-radar {
  grid-template-columns: minmax(122px, 0.92fr) minmax(150px, 1fr);
}

.visual-overview-card .mini-radar svg {
  max-width: 164px;
}

.visual-overview-card .vehicle-ring {
  grid-template-columns: minmax(148px, 0.8fr) minmax(148px, 1fr);
}

.visual-overview-card .donut-center {
  width: 74px;
}

.visual-overview-card .mini-donut strong {
  font-size: clamp(27px, 2.4vw, 34px);
}

.report-screen {
  color: var(--ui-text);
}

.report-title-row {
  --module-accent: var(--ui-blue);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
  margin-top: 6px;
  padding: 16px 8px 24px;
}

.report-title-row.accent-blue { --module-accent: var(--ui-blue); }
.report-title-row.accent-green { --module-accent: var(--ui-green); }
.report-title-row.accent-violet { --module-accent: var(--ui-violet); }
.report-title-row.accent-amber { --module-accent: var(--ui-amber); }
.report-title-row.accent-cyan { --module-accent: #36d6e7; }
.report-title-row.accent-red { --module-accent: var(--ui-red); }

.report-no {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid color-mix(in srgb, var(--module-accent) 36%, var(--ui-line));
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0, color-mix(in srgb, var(--module-accent) 26%, transparent), transparent 62%),
    rgba(255, 255, 255, 0.03);
  color: color-mix(in srgb, var(--module-accent) 84%, #ffffff);
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 28px color-mix(in srgb, var(--module-accent) 10%, transparent);
}

.report-title-row a:not(.report-chip) {
  color: color-mix(in srgb, var(--module-accent) 78%, #ffffff);
  font-size: 13px;
  font-weight: 850;
}

.report-title-row h1 {
  max-width: 1120px;
  margin: 12px 0 0;
  color: var(--ui-text);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.report-title-row p {
  margin: 12px 0 0;
  color: var(--ui-muted);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
}

.report-chip {
  align-self: start;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid color-mix(in srgb, var(--module-accent) 34%, var(--ui-line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--module-accent) 10%, transparent);
  color: color-mix(in srgb, var(--module-accent) 80%, #ffffff);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.report-chart {
  min-height: 520px;
}

.report-chart-panel,
.loss-warning-panel,
.profit-filter-rail,
.profit-insight-panel,
.repair-loss-formula,
.risk-path-panel,
.abnormal-overview,
.priority-rank-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.018);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.report-chart-panel::before,
.loss-warning-panel::before,
.profit-filter-rail::before,
.profit-insight-panel::before,
.repair-loss-formula::before,
.risk-path-panel::before,
.abnormal-overview::before,
.priority-rank-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(54, 163, 255, 0.7), transparent);
}

.report-chart-panel header,
.figma-table-card.report-chart-panel header {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--ui-line);
}

.report-chart-panel .chart {
  margin: 0;
  padding: 0;
}

.fleet-state-board {
  display: grid;
  grid-template-columns: 270px minmax(420px, 1.25fr) minmax(360px, 0.8fr);
  gap: 16px;
}

.state-kpi-rail {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(54, 163, 255, 0.18);
  border-radius: 18px;
  background: rgba(54, 163, 255, 0.045);
}

.state-kpi-rail article,
.revenue-side-grid article,
.profit-filter-rail article,
.profit-kpi,
.risk-overview-strip article,
.repair-kpi-strip article,
.actions-summary-strip article,
.abnormal-overview article {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.026);
}

.state-kpi-rail article::before,
.revenue-side-grid article::before,
.profit-kpi::before,
.risk-overview-strip article::before,
.repair-kpi-strip article::before,
.actions-summary-strip article::before,
.abnormal-overview article::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 999px;
  background: var(--ui-blue);
}

.state-kpi-rail .good::before,
.revenue-side-grid .good::before,
.risk-overview-strip .good::before,
.repair-kpi-strip .good::before,
.actions-summary-strip .good::before { background: var(--ui-green); }

.state-kpi-rail .warn::before,
.revenue-side-grid .warn::before,
.profit-kpi.warn::before,
.risk-overview-strip .warn::before,
.repair-kpi-strip .warn::before,
.actions-summary-strip .warn::before { background: var(--ui-amber); }

.state-kpi-rail .danger::before,
.revenue-side-grid .danger::before,
.risk-overview-strip .danger::before,
.repair-kpi-strip .danger::before,
.actions-summary-strip .danger::before,
.abnormal-overview article::before { background: var(--ui-red); }

.actions-summary-strip .violet::before,
.profit-kpi.violet::before { background: var(--ui-violet); }

.state-kpi-rail span,
.revenue-side-grid span,
.profit-filter-rail span,
.profit-kpi span,
.risk-overview-strip span,
.repair-kpi-strip span,
.actions-summary-strip span,
.abnormal-overview span {
  color: var(--ui-muted);
  font-size: 13px;
  font-weight: 800;
}

.state-kpi-rail strong,
.revenue-side-grid strong,
.profit-kpi strong,
.risk-overview-strip strong,
.repair-kpi-strip strong,
.actions-summary-strip strong,
.abnormal-overview strong {
  color: var(--ui-text);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  font-weight: 900;
}

.state-kpi-rail em,
.revenue-side-grid em,
.profit-kpi em,
.risk-overview-strip em,
.repair-kpi-strip em,
.actions-summary-strip em,
.abnormal-overview em {
  color: var(--ui-subtle);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.loss-warning-panel {
  padding: 20px;
  border-color: rgba(255, 90, 122, 0.28);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 90, 122, 0.16), transparent 44%),
    rgba(255, 90, 122, 0.04);
}

.loss-warning-panel h2 {
  margin: 0;
  color: #ff7a8f;
  font-size: 25px;
}

.loss-warning-panel header strong {
  display: block;
  margin-top: 14px;
  color: #ff7a8f;
  font-size: 58px;
  line-height: 1;
}

.loss-warning-panel header span {
  color: var(--ui-muted);
  font-weight: 850;
}

.loss-cost-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.loss-cost-list article {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.026);
}

.loss-cost-list span,
.loss-cost-list em,
.loss-warning-panel footer span,
.loss-warning-panel footer em {
  display: block;
  color: var(--ui-muted);
  font-size: 13px;
  font-style: normal;
}

.loss-cost-list strong,
.loss-warning-panel footer strong {
  display: block;
  margin-top: 5px;
  color: #ff6b7d;
  font-size: 24px;
}

.loss-warning-panel footer {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 90, 122, 0.28);
  border-radius: 16px;
  background: rgba(255, 90, 122, 0.08);
}

.report-insight-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid rgba(54, 163, 255, 0.18);
  border-radius: 16px;
  background: rgba(54, 163, 255, 0.045);
}

.report-insight-row {
  margin: 0 20px 20px;
  justify-content: space-between;
}

.report-insight-row span {
  color: var(--ui-muted);
  font-weight: 850;
}

.report-insight-row .good {
  color: #61e89a;
}

.report-insight-row .danger {
  color: #ff7a8f;
}

.cash-flow-chain,
.repair-kpi-strip,
.risk-overview-strip,
.actions-summary-strip {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.cash-flow-chain {
  grid-template-columns: 1fr 1fr 1fr 1fr 1.42fr;
}

.cash-flow-chain article {
  position: relative;
  min-height: 94px;
  padding: 18px 22px;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.026);
}

.cash-flow-chain article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  z-index: 1;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--ui-blue), transparent);
}

.cash-flow-chain span {
  display: block;
  color: var(--ui-muted);
  font-size: 14px;
  font-weight: 800;
}

.cash-flow-chain strong {
  display: block;
  margin-top: 10px;
  color: var(--ui-text);
  font-size: 30px;
  line-height: 1;
}

.cash-flow-chain .good strong { color: #61e89a; }
.cash-flow-chain .warn strong { color: #ffb545; }
.cash-flow-chain .danger {
  border-color: rgba(255, 90, 122, 0.25);
  background: rgba(255, 90, 122, 0.07);
}
.cash-flow-chain .danger strong { color: #ff6b7d; font-size: 22px; line-height: 1.3; }

.revenue-board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.72fr);
  gap: 16px;
}

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

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

.report-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
  margin-top: 16px;
}

.cash-risk-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.024);
}

.cash-risk-flow span {
  min-height: 98px;
  padding: 18px;
  border: 1px solid rgba(54, 163, 255, 0.22);
  border-radius: 14px;
  color: var(--ui-muted);
  font-weight: 800;
  text-align: center;
}

.cash-risk-flow strong {
  color: var(--ui-text);
  font-size: 32px;
}

.cash-risk-flow .warn strong { color: #ffb545; }
.cash-risk-flow .danger strong { color: #ff5a7a; }
.cash-risk-flow i {
  display: none;
}

.report-action-note {
  padding: 20px;
  border: 1px solid rgba(255, 181, 69, 0.2);
  border-radius: 18px;
  background: rgba(255, 181, 69, 0.05);
}

.report-action-note b {
  color: #ffcf7a;
  font-size: 20px;
}

.report-action-note p {
  margin: 10px 0 0;
  color: var(--ui-muted);
  font-size: 15px;
  line-height: 1.8;
}

.profit-board-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 300px;
  gap: 16px;
}

.profit-filter-rail,
.profit-insight-panel,
.repair-loss-formula,
.risk-path-panel,
.abnormal-overview {
  padding: 18px;
}

.profit-filter-rail {
  display: grid;
  gap: 10px;
}

.profit-filter-rail article {
  min-height: 54px;
}

.profit-filter-rail strong {
  color: #8ecbff;
  font-size: 17px;
}

.health-score {
  padding: 18px;
  border: 1px solid rgba(48, 209, 88, 0.22);
  border-radius: 16px;
  background: rgba(48, 209, 88, 0.06);
}

.health-score span {
  color: var(--ui-muted);
  font-size: 14px;
  font-weight: 850;
}

.health-score strong {
  margin-top: 8px;
  color: #30d158;
  font-size: 42px;
}

.health-score em {
  color: var(--ui-muted);
  font-style: normal;
}

.health-score i {
  display: block;
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #30d158 72%, rgba(255, 255, 255, 0.08) 72%);
}

.profit-insight-panel h2,
.repair-loss-formula h2,
.risk-path-panel h2,
.abnormal-overview h2 {
  margin: 0 0 14px;
  color: var(--ui-text);
  font-size: 20px;
}

.profit-insight-panel article {
  padding: 16px 0;
  border-bottom: 1px solid var(--ui-line);
}

.profit-insight-panel article:last-child {
  border-bottom: 0;
}

.profit-insight-panel span,
.profit-insight-panel em {
  color: var(--ui-muted);
  font-size: 13px;
  font-style: normal;
}

.profit-insight-panel strong {
  display: block;
  margin: 5px 0;
  color: #30d158;
  font-size: 26px;
}

.repair-kpi-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.repair-board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(520px, 0.9fr);
  gap: 16px;
}

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

.formula-grid article {
  min-height: 140px;
  padding: 18px;
  border: 1px solid rgba(255, 181, 69, 0.18);
  border-radius: 14px;
  background: rgba(255, 181, 69, 0.045);
  text-align: center;
}

.formula-grid span {
  color: var(--ui-muted);
  font-size: 13px;
  font-weight: 800;
}

.formula-grid strong {
  display: block;
  margin-top: 18px;
  color: #ffb545;
  font-size: 22px;
}

.repair-loss-formula footer {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 181, 69, 0.24);
  border-radius: 14px;
  color: var(--ui-text);
  font-size: 24px;
  text-align: center;
}

.repair-loss-formula footer strong {
  color: #ffb545;
  font-size: 40px;
}

.repair-detail-table {
  margin-top: 16px;
}

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

.risk-board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
  gap: 16px;
}

.risk-path-panel {
  display: grid;
  gap: 14px;
}

.risk-path-panel article {
  display: grid;
  gap: 9px;
  padding: 20px;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.026);
}

.risk-path-panel article.blue { border-color: rgba(54, 163, 255, 0.24); }
.risk-path-panel article.amber { border-color: rgba(255, 181, 69, 0.24); }
.risk-path-panel article.green { border-color: rgba(48, 209, 88, 0.22); }

.risk-path-panel b {
  color: var(--ui-text);
  font-size: 20px;
}

.risk-path-panel span {
  color: var(--ui-muted);
  font-size: 15px;
  line-height: 1.7;
}

.risk-path-panel footer {
  margin-top: 6px;
  padding: 20px;
  border: 1px solid rgba(54, 163, 255, 0.22);
  border-radius: 16px;
  color: #8ecbff;
  font-size: 22px;
  font-weight: 900;
}

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

.actions-board-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
}

.risk-gauge {
  position: relative;
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 132px;
  margin-bottom: 14px;
  padding: 18px;
  overflow: visible;
  border: 1px solid rgba(255, 90, 122, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 90, 122, 0.14), transparent 52%),
    rgba(255, 255, 255, 0.022);
}

.risk-gauge::before {
  display: none;
}

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

.risk-gauge span {
  color: var(--ui-muted);
  font-size: 14px;
  font-weight: 850;
}

.risk-gauge strong {
  color: #ff5a7a;
  font-size: 34px;
  line-height: 1;
}

.risk-gauge i {
  position: relative;
  display: block;
  width: 100%;
  height: 10px;
  overflow: visible;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ui-green) 0 34%, var(--ui-amber) 34% 68%, var(--ui-red) 68% 100%);
}

.risk-gauge i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 82%;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--ui-red);
  box-shadow: 0 0 0 6px rgba(255, 90, 122, 0.16);
  transform: translate(-50%, -50%);
}

.exception-list {
  display: grid;
  gap: 12px;
  padding: 18px;
  max-height: 600px;
  overflow: auto;
}

.exception-list a {
  display: grid;
  grid-template-columns: minmax(132px, 0.62fr) minmax(260px, 1.45fr) minmax(176px, 0.78fr) minmax(104px, auto);
  gap: 14px;
  align-items: center;
  min-height: 98px;
  padding: 18px 20px;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.024);
  color: inherit;
}

.exception-list a.danger {
  border-color: rgba(255, 90, 122, 0.3);
  background: rgba(255, 90, 122, 0.055);
}

.exception-list a.warn {
  border-color: rgba(255, 181, 69, 0.25);
  background: rgba(255, 181, 69, 0.045);
}

.exception-list a.violet {
  border-color: rgba(139, 92, 246, 0.28);
  background: rgba(139, 92, 246, 0.05);
}

.exception-list b {
  color: var(--ui-text);
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
}

.exception-list span {
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.6;
}

.exception-list strong {
  color: #ff5a7a;
  font-size: 21px;
  line-height: 1.25;
}

.exception-list em {
  justify-self: end;
  min-width: 96px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 90, 122, 0.13);
  color: #ff9aad;
  font-style: normal;
  font-weight: 850;
  text-align: center;
}

.actions-report .module-hermes-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
}

.data-submit-hero,
.data-submit-queue,
.data-logic-card {
  border-color: var(--ui-line);
  background:
    radial-gradient(circle at 50% 0, rgba(54, 163, 255, 0.08), transparent 44%),
    rgba(255, 255, 255, 0.026);
}

.data-submit-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(360px, 1.05fr);
  gap: 16px;
  padding: 18px;
}

.wecom-ingest-card {
  display: grid;
  gap: 14px;
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(54, 163, 255, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0, rgba(54, 163, 255, 0.16), transparent 48%),
    rgba(54, 163, 255, 0.045);
}

.wecom-ingest-card > span {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(54, 163, 255, 0.12);
  color: #8ecbff;
  font-weight: 900;
}

.wecom-ingest-card > strong {
  max-width: 620px;
  color: var(--ui-text);
  font-size: clamp(22px, 2.05vw, 30px);
  line-height: 1.25;
}

.wecom-ingest-card > em {
  max-width: 640px;
  color: var(--ui-muted);
  font-style: normal;
  line-height: 1.7;
}

.wecom-message-feed {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.wecom-message-feed article {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.026);
}

.wecom-message-feed b {
  color: var(--ui-text);
  font-size: 13px;
}

.wecom-message-feed span {
  overflow: hidden;
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wecom-message-feed em {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(48, 209, 88, 0.1);
  color: #76e39a;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.hermes-match-panel {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
}

.match-score {
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px solid rgba(48, 209, 88, 0.22);
  border-radius: 18px;
  background: rgba(48, 209, 88, 0.055);
  text-align: center;
}

.match-score span,
.match-score em {
  color: var(--ui-muted);
  font-style: normal;
  font-weight: 800;
}

.match-score strong {
  color: #30d158;
  font-size: 52px;
  line-height: 1;
}

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

.agent-step-list span {
  display: grid;
  align-items: center;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.026);
  color: var(--ui-muted);
  font-weight: 800;
}

.agent-step-list b {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 999px;
  background: rgba(54, 163, 255, 0.12);
  color: #8ecbff;
}

.data-submit-table td strong,
.data-submit-table td span {
  display: block;
}

.data-submit-table td span:not(.status) {
  margin-top: 5px;
  color: var(--ui-muted);
  font-size: 12px;
}

.data-submit-table button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(54, 163, 255, 0.24);
  border-radius: 999px;
  background: rgba(54, 163, 255, 0.1);
  color: #8ecbff;
  font-weight: 850;
  cursor: pointer;
}

.data-submit-table th,
.data-submit-table td {
  min-width: 118px;
}

.data-submit-table th:first-child,
.data-submit-table td:first-child {
  min-width: 220px;
}

.data-submit-table th:last-child,
.data-submit-table td:last-child {
  min-width: 132px;
}

.data-logic-diagram {
  display: grid;
  gap: 20px;
  padding: 22px;
}

.logic-module-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.logic-module-row a,
.logic-source-row article {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 18px;
  border: 1px solid rgba(54, 163, 255, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0, rgba(54, 163, 255, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.026);
  color: inherit;
}

.logic-module-row span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(54, 163, 255, 0.15);
  color: #36a3ff;
  font-size: 18px;
  font-weight: 900;
}

.logic-module-row b,
.logic-source-row b {
  color: var(--ui-text);
  font-size: 18px;
}

.logic-module-row em,
.logic-source-row span {
  color: var(--ui-muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.logic-core-base {
  display: grid;
  place-items: center;
  min-height: 126px;
  border: 1px solid rgba(54, 163, 255, 0.28);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(54, 163, 255, 0.28), rgba(54, 163, 255, 0.06) 46%, transparent 72%),
    rgba(54, 163, 255, 0.035);
  text-align: center;
  box-shadow: 0 0 50px rgba(54, 163, 255, 0.12);
}

.logic-core-base strong {
  color: var(--ui-text);
  font-size: clamp(28px, 3vw, 42px);
}

.logic-core-base span {
  color: #8ecbff;
  font-weight: 850;
}

.logic-source-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.approval-workbench {
  max-width: 1540px;
}

.approval-stage-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.approval-stage-strip article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.026);
}

.approval-stage-strip article.active {
  border-color: rgba(54, 163, 255, 0.34);
  background:
    radial-gradient(circle at 0 50%, rgba(54, 163, 255, 0.16), transparent 54%),
    rgba(54, 163, 255, 0.055);
}

.approval-stage-strip span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(54, 163, 255, 0.13);
  color: #8ecbff;
  font-size: 13px;
  font-weight: 900;
}

.approval-stage-strip b {
  color: var(--ui-text);
  font-size: 16px;
}

.approval-stage-strip em {
  color: var(--ui-muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.approval-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.approval-queue-panel,
.approval-detail-panel,
.approval-policy-card {
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.022);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

.approval-queue-panel > header,
.approval-detail-panel > header,
.approval-policy-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--ui-line);
}

.approval-queue-panel h2,
.approval-detail-panel h2,
.approval-policy-card h2 {
  margin: 0;
  color: var(--ui-text);
  font-size: 22px;
  font-weight: 900;
}

.approval-queue-panel p,
.approval-detail-panel p,
.approval-policy-card p {
  margin: 8px 0 0;
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.6;
}

.approval-filter-group {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--ui-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.approval-filter-group button {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ui-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.approval-filter-group button.active {
  background: rgba(54, 163, 255, 0.16);
  color: #8ecbff;
}

.approval-card-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.approval-decision-card {
  display: grid;
  grid-template-columns: auto minmax(190px, 0.74fr) minmax(240px, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.026);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.approval-decision-card:hover,
.approval-decision-card.selected {
  transform: translateY(-1px);
  border-color: rgba(255, 90, 122, 0.35);
  background:
    linear-gradient(90deg, rgba(255, 90, 122, 0.08), rgba(255, 255, 255, 0.026));
}

.approval-decision-card b {
  color: var(--ui-text);
  font-size: 17px;
  line-height: 1.42;
}

.approval-decision-card em {
  color: var(--ui-muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.approval-decision-card strong {
  justify-self: end;
  color: #ffcf7a;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.approval-detail-panel {
  position: sticky;
  top: 92px;
}

.approval-detail-panel > header {
  align-items: flex-start;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 90, 122, 0.16), transparent 54%),
    rgba(255, 90, 122, 0.035);
}

.approval-detail-panel > header strong {
  color: #ff5a7a;
  font-size: 32px;
  line-height: 1;
  white-space: nowrap;
}

.approval-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}

.approval-detail-list div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--ui-line);
}

.approval-detail-list dt {
  color: var(--ui-subtle);
  font-size: 13px;
  font-weight: 850;
}

.approval-detail-list dd {
  margin: 0;
  color: var(--ui-text);
  font-size: 15px;
  line-height: 1.75;
}

.approval-action-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 10px;
  padding: 18px 24px 24px;
}

.approval-action-panel button {
  min-height: 44px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ui-text);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.approval-action-panel button.primary {
  border-color: rgba(54, 163, 255, 0.34);
  background: linear-gradient(135deg, #2563eb, #36a3ff);
  color: #fff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
}

.approval-support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.approval-rule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.approval-rule-list span {
  display: grid;
  gap: 7px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.026);
}

.approval-rule-list b {
  color: var(--ui-text);
  font-size: 16px;
}

.approval-rule-list em {
  color: var(--ui-muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

@media (max-width: 1280px) {
  .fleet-state-board,
  .profit-board-grid {
    grid-template-columns: 1fr;
  }

  .state-kpi-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .revenue-board-grid,
  .report-bottom-grid,
  .repair-board-grid,
  .risk-board-grid,
  .actions-board-grid,
  .data-submit-layout,
  .approval-layout,
  .approval-support-grid {
    grid-template-columns: 1fr;
  }

  .approval-detail-panel {
    position: static;
  }

  .profit-filter-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .profit-filter-rail .profit-kpi,
  .profit-filter-rail .health-score {
    grid-column: span 2;
  }

  .logic-module-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .logic-source-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .report-title-row {
    grid-template-columns: 1fr;
  }

  .report-no {
    width: 62px;
    height: 62px;
    font-size: 28px;
  }

  .state-kpi-rail,
  .cash-flow-chain,
  .revenue-side-grid,
  .repair-kpi-strip,
  .risk-overview-strip,
  .actions-summary-strip,
  .formula-grid,
  .logic-module-row,
  .logic-source-row,
  .approval-stage-strip,
  .approval-rule-list {
    grid-template-columns: 1fr 1fr;
  }

  .approval-decision-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .approval-decision-card em,
  .approval-decision-card strong {
    grid-column: 2;
    justify-self: start;
  }

  .approval-action-panel {
    grid-template-columns: 1fr;
  }

  .exception-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .exception-list em {
    justify-self: start;
  }

  .cash-flow-chain article:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .state-kpi-rail,
  .cash-flow-chain,
  .revenue-side-grid,
  .repair-kpi-strip,
  .risk-overview-strip,
  .actions-summary-strip,
  .formula-grid,
  .logic-module-row,
  .logic-source-row,
  .profit-filter-rail,
  .hermes-match-panel,
  .approval-stage-strip,
  .approval-rule-list {
    grid-template-columns: 1fr;
  }

  .wecom-message-feed article {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .wecom-message-feed span {
    white-space: normal;
  }

  .approval-queue-panel > header,
  .approval-detail-panel > header,
  .approval-policy-card > header {
    display: grid;
  }

  .approval-detail-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .profit-filter-rail .profit-kpi,
  .profit-filter-rail .health-score {
    grid-column: auto;
  }
}

/* 2026-05: profit-style overview and UE waterfall refinement. */
.cockpit-profit-style-board {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 286px;
  gap: 16px;
  align-items: stretch;
  margin-top: 24px;
}

.overview-filter-rail,
.overview-module-stage,
.overview-insight-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0, rgba(54, 163, 255, 0.08), transparent 46%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.018));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.overview-filter-rail,
.overview-insight-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.overview-filter-rail h2,
.overview-module-stage h2,
.overview-insight-panel h2 {
  margin: 0;
  color: var(--ui-text);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.overview-filter-rail article,
.overview-insight-panel article {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.026);
}

.overview-filter-rail span,
.overview-insight-panel span,
.overview-insight-panel em {
  color: var(--ui-muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.overview-filter-rail strong {
  color: var(--ui-text);
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.overview-filter-rail article em {
  color: var(--ui-blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.overview-insight-panel strong {
  color: var(--ui-text);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.overview-module-stage {
  padding: 18px;
}

.overview-module-stage > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.overview-module-stage > header p {
  margin: 7px 0 0;
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.65;
}

.overview-module-stage > header > span {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(54, 163, 255, 0.25);
  border-radius: 999px;
  background: rgba(54, 163, 255, 0.09);
  color: #8ecbff;
  font-size: 12px;
  font-weight: 900;
  line-height: 30px;
}

.overview-module-stage .visual-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.overview-module-stage .visual-overview-card {
  grid-template-rows: auto minmax(146px, 1fr) auto;
  min-height: 324px;
  padding: 16px;
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--module-accent) 15%, transparent), transparent 38%),
    rgba(255, 255, 255, 0.024);
}

.overview-module-stage .visual-overview-card h2 {
  font-size: 17px;
}

.overview-module-stage .visual-overview-card p {
  font-size: 12px;
  line-height: 1.5;
}

.overview-module-stage .visual-overview-card footer b {
  font-size: 16px;
}

.overview-module-stage .overview-visual {
  min-height: 146px;
}

.mini-profit-waterfall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 9px;
  min-height: 166px;
  padding: 18px 14px 14px;
}

.mini-profit-waterfall span {
  position: relative;
  display: grid;
  align-content: end;
  min-width: 0;
  height: var(--h);
  min-height: 42px;
  padding: 8px 6px;
  border-radius: 9px 9px 3px 3px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.mini-profit-waterfall .positive {
  background: linear-gradient(180deg, #31d88b, #11965f);
}

.mini-profit-waterfall .negative {
  background: linear-gradient(180deg, #ffb545, #ff7a1a);
}

.mini-profit-waterfall .result {
  background: linear-gradient(180deg, #8b6dff, #5b35d7);
}

.mini-profit-waterfall b,
.mini-profit-waterfall i {
  display: block;
  color: #f8fbff;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
}

.mini-profit-waterfall b {
  font-size: 12px;
}

.mini-profit-waterfall i {
  margin-top: 3px;
  font-size: clamp(11px, 0.9vw, 14px);
}

.profit-main-chart header {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.profit-dimension-tabs {
  display: inline-flex;
  gap: 10px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.profit-dimension-tabs span {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--ui-muted);
  font-size: 14px;
  font-weight: 900;
  line-height: 40px;
  white-space: nowrap;
}

.profit-dimension-tabs .active {
  border-color: rgba(54, 163, 255, 0.35);
  background: rgba(54, 163, 255, 0.12);
  color: #dcecff;
}

.profit-report .profit-main-chart .report-chart {
  min-height: 620px;
}

.profit-report .profit-insight-panel article {
  min-height: 104px;
}

.cockpit-value-bar {
  margin-bottom: 10px;
}

@media (max-width: 1380px) {
  .cockpit-profit-style-board {
    grid-template-columns: 1fr;
  }

  .overview-filter-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .overview-filter-rail h2 {
    grid-column: 1 / -1;
  }

  .overview-insight-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .overview-insight-panel h2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1180px) {
  .overview-module-stage .visual-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .overview-module-stage > header,
  .profit-main-chart header {
    display: grid !important;
  }

  .overview-module-stage .visual-overview-grid,
  .overview-filter-rail,
  .overview-insight-panel {
    grid-template-columns: 1fr;
  }

  .profit-dimension-tabs {
    width: 100%;
  }

  .profit-dimension-tabs span {
    flex: 1 1 0;
    padding-inline: 10px;
    text-align: center;
  }

  .mini-profit-waterfall {
    gap: 6px;
    padding-inline: 8px;
  }
}

/* 2026-05-31: enterprise shell spacing and compact user entry. */
:root {
  --app-content-max: 1320px;
  --app-page-gutter: clamp(44px, 7.2vw, 144px);
}

body.figma-body .figma-topbar,
body.figma-body .figma-main {
  width: min(var(--app-content-max), calc(100% - var(--app-page-gutter))) !important;
  max-width: var(--app-content-max) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.figma-body .figma-topbar {
  min-height: 68px !important;
  padding: 0 clamp(12px, 1.5vw, 20px) !important;
  border: 1px solid var(--ui-line) !important;
  border-top: 0 !important;
  border-radius: 0 0 18px 18px !important;
}

body.figma-body .figma-main {
  padding: 28px 0 56px !important;
}

body.figma-body .figma-user-entry {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 48px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
}

body.figma-body .figma-user-entry .user-entry-label {
  display: block;
  color: var(--ui-text);
  font-size: 14px;
  line-height: 1;
  font-weight: 860;
  white-space: nowrap;
}

body.figma-body .figma-user-entry strong,
body.figma-body .figma-user-entry small,
body.figma-body .figma-user-entry .user-avatar-mini {
  display: none !important;
}

@media (max-width: 1180px) {
  body.figma-body .figma-topbar,
  body.figma-body .figma-main {
    width: min(calc(100% - 32px), var(--app-content-max)) !important;
  }

  body.figma-body .figma-main {
    padding-top: 22px !important;
  }
}

@media (max-width: 760px) {
  body.figma-body .figma-topbar,
  body.figma-body .figma-main {
    width: min(calc(100% - 24px), var(--app-content-max)) !important;
  }

  body.figma-body .figma-topbar {
    border-radius: 0 0 14px 14px !important;
  }

  body.figma-body .figma-user-entry {
    justify-content: flex-start !important;
    width: 100% !important;
  }
}

/* 2026-05-31: home density cleanup and text-only user trigger. */
body.figma-body .topbar-identity .figma-user-entry {
  width: auto !important;
  min-width: 0 !important;
  min-height: 48px !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.figma-body .topbar-identity .figma-user-entry:hover {
  color: var(--ui-text) !important;
  background: transparent !important;
}

body.figma-body .topbar-identity .figma-user-entry .user-entry-label {
  font-size: 14px;
  line-height: 1;
  font-weight: 860;
  white-space: nowrap;
}

body.figma-body .hero-mini-grid article,
body.figma-body .data-cockpit .hero-mini-grid article {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 7px 12px;
  min-height: 92px !important;
  padding: 16px !important;
}

body.figma-body .hero-mini-grid article span,
body.figma-body .data-cockpit .hero-mini-grid article span,
body.figma-body .hero-mini-grid article strong,
body.figma-body .data-cockpit .hero-mini-grid article strong {
  grid-column: 1;
}

body.figma-body .hero-mini-grid article em,
body.figma-body .data-cockpit .hero-mini-grid article em {
  position: static !important;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #8ecbff !important;
  font-size: 12px !important;
}

body.figma-body .hero-mini-grid article em.down,
body.figma-body .data-cockpit .hero-mini-grid article em.down {
  color: #ff7a8f !important;
}

.kpi-progress {
  position: relative;
  display: block;
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.kpi-progress::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ui-blue), var(--ui-green));
}

.kpi-progress.danger::before {
  background: linear-gradient(90deg, var(--ui-amber), var(--ui-red));
}

.today-workbench {
  margin-top: 18px;
}

.today-workbench .today-action-grid {
  padding: 14px;
}

.cockpit-profit-style-board {
  grid-template-columns: minmax(0, 1fr) !important;
}

.overview-module-stage {
  width: 100%;
}

@media (max-width: 760px) {
  body.figma-body .topbar-identity .figma-user-entry {
    width: auto !important;
  }

  body.figma-body .hero-mini-grid article,
  body.figma-body .data-cockpit .hero-mini-grid article {
    grid-template-columns: 1fr;
  }

  body.figma-body .hero-mini-grid article em,
  body.figma-body .data-cockpit .hero-mini-grid article em {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

/* 2026-05-31: flatten home priority strip and tighten vehicle/data detail views. */
.data-cockpit .today-workbench {
  overflow: visible;
  margin-top: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.data-cockpit .today-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(54, 163, 255, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.022);
}

.data-cockpit .today-action-card {
  min-height: 92px;
  padding: 16px 18px;
  border: 0;
  border-right: 1px solid var(--ui-line);
  border-radius: 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--action-accent) 9%, transparent), transparent 72%),
    transparent;
  box-shadow: none;
}

.data-cockpit .today-action-card:last-child {
  border-right: 0;
}

.data-cockpit .today-action-card:hover {
  transform: none;
  background-color: rgba(255, 255, 255, 0.035);
}

.data-cockpit .today-action-card span {
  padding: 0;
  background: transparent;
}

.data-cockpit .today-action-card strong {
  font-size: clamp(20px, 1.9vw, 28px);
}

.vehicle-report .report-title-row {
  padding-bottom: 18px;
}

.vehicle-report .fleet-state-board {
  grid-template-columns: 218px minmax(390px, 1.25fr) minmax(300px, 0.82fr);
  align-items: stretch;
}

.vehicle-report .state-kpi-rail {
  grid-template-columns: 1fr;
  align-content: start;
}

.vehicle-report .state-kpi-rail article {
  min-height: 78px;
}

.vehicle-report .report-chart {
  min-height: 560px;
}

.vehicle-report .loss-warning-panel {
  display: grid;
  align-content: start;
}

.data-submit-hero .data-submit-layout {
  grid-template-columns: 1fr;
}

.data-submit-hero .wecom-ingest-card {
  min-height: auto;
}

@media (max-width: 1040px) {
  .vehicle-report .fleet-state-board {
    grid-template-columns: 1fr;
  }

  .vehicle-report .state-kpi-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .data-cockpit .today-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .data-cockpit .today-action-card:nth-child(2n) {
    border-right: 0;
  }

  .data-cockpit .today-action-card:nth-child(n + 3) {
    border-top: 1px solid var(--ui-line);
  }
}

@media (max-width: 620px) {
  .data-cockpit .today-action-grid,
  .vehicle-report .state-kpi-rail {
    grid-template-columns: 1fr;
  }

  .data-cockpit .today-action-card,
  .data-cockpit .today-action-card:nth-child(2n) {
    border-right: 0;
  }

  .data-cockpit .today-action-card + .today-action-card {
    border-top: 1px solid var(--ui-line);
  }
}
