/* ============================================================
   A · 知识资产驾驶舱
   ============================================================ */
.cockpit {
  max-width: 1360px;
  margin: 0 auto;
  padding: 34px 28px 90px;
}
.cockpit-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}
.cockpit-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--blue);
  text-transform: uppercase;
}
.cockpit-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--orange);
}
.cockpit-head h1 {
  margin-top: 10px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
}
.cockpit-head .lead {
  margin-top: 8px;
  max-width: 62ch;
  font-size: 14.5px;
  color: var(--muted);
}
.cockpit-head .lead b { color: var(--ink-2); font-weight: 600; }
.head-side {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  padding-bottom: 2px;
}
.stamp {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* A/B switch */
.version-switch {
  display: inline-flex;
  padding: 3px;
  background: #eef1f5;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.version-switch a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  transition: background .18s, color .18s;
}
.version-switch a:hover { color: var(--ink); }
.version-switch a.on {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 2px 6px rgba(14, 42, 71, .22);
}

/* ---------- 资产总览 ---------- */
.asset-vault {
  position: relative;
  overflow: hidden;
  padding: 26px 30px 22px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(118deg, #0a203a 0%, #123a6b 56%, #1b4f8f 100%);
  box-shadow: 0 18px 44px rgba(14, 42, 71, .18);
}
.asset-vault::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(480px 240px at 88% -20%, rgba(245, 138, 0, .28), transparent 70%),
    radial-gradient(620px 320px at 12% 120%, rgba(92, 156, 255, .24), transparent 70%);
}
.asset-vault::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(700px 420px at 70% 0, #000 10%, transparent 78%);
  mask-image: radial-gradient(700px 420px at 70% 0, #000 10%, transparent 78%);
}
.asset-vault > * { position: relative; z-index: 1; }
.vault-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .64);
}
.vault-top .live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .86);
  font-weight: 600;
}
.vault-top .live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #37d39b;
  box-shadow: 0 0 0 4px rgba(55, 211, 155, .16);
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}
.asset {
  min-width: 0;
  padding: 0 26px;
  border-left: 1px solid rgba(255, 255, 255, .13);
}
.asset:first-child { padding-left: 0; border-left: none; }
.asset-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .66);
}
.asset-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--tone, #7fb0ff);
}
.asset-value {
  margin-top: 5px;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.asset-value small {
  margin-left: 5px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .58);
}
.asset-meta {
  min-height: 36px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .6);
}
.asset-meter {
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .14);
  overflow: hidden;
}
.asset-meter i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #7fb0ff, #f5b45a);
}
.vault-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
  color: rgba(255, 255, 255, .58);
}
.vault-foot .chip {
  padding: 3px 11px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
}
.vault-foot .chip b { color: #fff; font-weight: 600; }
.vault-foot .spacer { margin-left: auto; }

/* ---------- 通用面板 ---------- */
.cockpit-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.cockpit-grid.wide { grid-template-columns: 1fr; }
.cockpit-grid.trend-grid { grid-template-columns: 1.45fr 1fr; }
.panel-block { margin-top: 16px; }
.cockpit-panel {
  min-width: 0;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(14, 42, 71, .03);
}
.panel-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}
.panel-head h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.panel-head .hint {
  margin-left: auto;
  text-align: right;
  font-size: 11.5px;
  color: var(--muted);
}
.panel-head .hint b { color: var(--ink-2); font-weight: 600; }

/* ---------- 知识链路 ---------- */
.coverage-chain {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2px;
  margin: 8px 0 6px;
}
.coverage-step {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.coverage-ring {
  --p: 0;
  --rc: var(--blue);
  width: 78px;
  height: 78px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--rc) calc(var(--p) * 1%), #edf1f6 0);
  position: relative;
}
.coverage-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--surface);
}
.coverage-ring b {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.coverage-arrow {
  flex: none;
  margin-top: 30px;
  color: #c3cdd8;
  font-size: 14px;
}
.coverage-step .c-label {
  font-size: 12.5px;
  color: var(--muted);
}
.coverage-step .c-count {
  margin-top: 2px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.coverage-step .c-count small {
  margin-left: 2px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
}
.coverage-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.coverage-bar {
  display: grid;
  grid-template-columns: 112px 1fr 46px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.coverage-bar .track {
  height: 6px;
  border-radius: 3px;
  background: #eef1f5;
  overflow: hidden;
}
.coverage-bar .track i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--c, var(--blue));
}
.coverage-bar b {
  text-align: right;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.coverage-note {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}
.coverage-note.warn {
  padding: 9px 12px;
  border-radius: 8px;
  color: #8a5200;
  background: var(--orange-tint);
}

/* ---------- 法规结构 ---------- */
.law-visual {
  display: flex;
  align-items: center;
  gap: 26px;
}
.law-donut {
  flex: none;
  width: 150px;
  height: 150px;
}
.law-donut .total {
  font-size: 26px;
  font-weight: 700;
  fill: var(--ink);
  font-variant-numeric: tabular-nums;
}
.law-donut .unit { font-size: 11px; fill: var(--muted); }
.law-legend {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 16px;
}
.law-legend .item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.law-legend .sw {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 3px;
}
.law-legend b {
  margin-left: auto;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.law-status {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.law-status .track {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: #eef1f5;
}
.law-status .track i { display: block; height: 100%; }
.law-status .legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--muted);
}
.law-status .legend b { color: var(--text); font-weight: 600; }
.law-articles {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6f9fd;
  font-size: 12px;
  color: var(--muted);
}
.law-articles b { font-size: 20px; color: var(--ink); font-weight: 700; }
.law-articles .sep { color: #c7d2df; }

/* ---------- 行业矩阵 ---------- */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.matrix-cell {
  position: relative;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfd;
  font: inherit;
  text-align: left;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.matrix-cell:hover {
  border-color: #b9cbe4;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(14, 42, 71, .07);
}
.matrix-cell.on {
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  border-color: var(--ink);
  box-shadow: 0 10px 22px rgba(14, 42, 71, .18);
}
.matrix-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.matrix-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.matrix-cell.on .matrix-name { color: #fff; }
.matrix-badge {
  flex: none;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: #a05a00;
  background: var(--orange-tint);
}
.matrix-cell.on .matrix-badge {
  color: #ffc478;
  background: rgba(245, 138, 0, .18);
}
.matrix-num {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.matrix-cell.on .matrix-num { color: #fff; }
.matrix-num small {
  margin-left: 3px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
}
.matrix-cell.on .matrix-num small { color: rgba(255, 255, 255, .6); }
.matrix-sub {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.matrix-cell.on .matrix-sub { color: rgba(255, 255, 255, .66); }
.matrix-bar {
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: #edf1f5;
  overflow: hidden;
}
.matrix-cell.on .matrix-bar { background: rgba(255, 255, 255, .16); }
.matrix-bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--blue);
}
.matrix-cell.on .matrix-bar i { background: var(--orange); }

/* ---------- 领域知识地图 ---------- */
.domain-map {
  position: relative;
  height: 368px;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f7fb;
}
.domain-tile {
  position: absolute;
  overflow: hidden;
  padding: 14px 16px;
  border-radius: 8px;
  color: #23486f;
  transition: filter .18s;
}
.domain-tile:hover { filter: brightness(1.04) saturate(1.05); }
.domain-tile .dt-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.domain-tile .dt-count {
  margin-top: 3px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.domain-tile .dt-count small {
  margin-left: 2px;
  font-size: 10.5px;
  font-weight: 500;
  opacity: .62;
}
.domain-tile .dt-sub {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.45;
  opacity: .72;
}
.domain-tile .dt-rates {
  margin-top: 7px;
  font-size: 10.5px;
  line-height: 1.45;
  opacity: .62;
}
.domain-tile .dt-meter {
  display: flex;
  gap: 4px;
  margin-top: 9px;
}
.domain-tile .dt-meter i {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  opacity: .28;
}
.domain-tile .dt-meter i.law { opacity: .78; }
.domain-tile.cov-0 { background: #eef3f9; color: #4c6076; }
.domain-tile.cov-1 { background: #dbe7f6; color: #23486f; }
.domain-tile.cov-2 { background: #adc9ea; color: #123a6b; }
.domain-tile.cov-3 { background: #164a86; color: #fff; }
.domain-tile.cov-3 .dt-sub,
.domain-tile.cov-3 .dt-count small { opacity: .72; }
.domain-tile.small { padding: 10px 12px; }
.domain-tile.small .dt-name { font-size: 12.5px; }
.domain-tile.small .dt-count { font-size: 22px; }
.domain-tile.small .dt-sub { display: none; }
.domain-tile.small .dt-rates { display: none; }
.domain-tile.tiny { padding: 8px 10px; }
.domain-tile.tiny .dt-name { font-size: 11.5px; }
.domain-tile.tiny .dt-count { font-size: 18px; margin-top: 1px; }
.domain-tile.tiny .dt-sub,
.domain-tile.tiny .dt-rates,
.domain-tile.tiny .dt-meter { display: none; }
.domain-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--muted);
}
.domain-legend .ramp {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.domain-legend .ramp i {
  width: 18px;
  height: 7px;
  border-radius: 2px;
}
.domain-legend .ramp span { margin: 0 2px; }

/* ---------- 新法 / 高影响法规 ---------- */
.law-track { display: flex; flex-direction: column; }
.law-track-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.law-track-item:first-child { border-top: none; padding-top: 0; }
.law-date {
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.law-date b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.law-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.law-title:hover { color: var(--blue); }
.law-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}
.law-meta .tag {
  padding: 1px 7px;
  border-radius: 999px;
  background: #eef3fa;
  color: var(--ink-2);
  font-size: 10.5px;
}
.law-hits {
  flex: none;
  text-align: right;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}
.law-hits b {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.law-hits.pending b {
  font-size: 11.5px;
  font-weight: 600;
  color: #a0acba;
  padding: 3px 8px;
  border: 1px dashed #d8e0e9;
  border-radius: 999px;
}
.impact-list { display: flex; flex-direction: column; }
.impact-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.impact-item:first-child { border-top: none; padding-top: 0; }
.impact-rank {
  font-size: 11px;
  font-weight: 700;
  color: #a3afbd;
  font-variant-numeric: tabular-nums;
}
.impact-item:first-child .impact-rank { color: var(--orange); }
.impact-body { min-width: 0; }
.impact-name {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.impact-name:hover { color: var(--blue); }
.impact-bar {
  height: 4px;
  margin-top: 6px;
  border-radius: 2px;
  background: #edf1f5;
  overflow: hidden;
}
.impact-bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--ink-2));
}
.impact-item:first-child .impact-bar i {
  background: linear-gradient(90deg, var(--orange), #d97400);
}
.impact-hits {
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.impact-hits small {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- 趋势 / 高关联风险 ---------- */
.trend-chart {
  display: block;
  width: 100%;
  height: 236px;
}
.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--muted);
}
.trend-legend span { display: inline-flex; align-items: center; gap: 7px; }
.trend-legend .sw {
  width: 16px;
  height: 3px;
  border-radius: 2px;
}
.trend-legend b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.trend-note {
  margin-top: 10px;
  font-size: 11px;
  color: #93a0ae;
}
.risk-rank-list { display: flex; flex-direction: column; }
.risk-rank-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.risk-rank-item:first-child { border-top: none; padding-top: 0; }
.risk-rank {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #eef3f9;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.risk-rank-item:first-child .risk-rank {
  color: #fff;
  background: var(--orange);
}
.risk-r-body { min-width: 0; }
.risk-r-name {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.risk-r-name:hover { color: var(--blue); }
.risk-r-meta {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.risk-r-score {
  text-align: right;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.risk-r-score b {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* ---------- 风险清单 ---------- */
.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.table-filter {
  flex: 0 1 320px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.table-filter:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.table-filter svg { flex: none; color: #9aa8b7; }
.table-filter input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--text);
}
.table-count {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.risk-table-wrap { overflow-x: auto; }
table.risk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.risk-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}
table.risk-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  white-space: nowrap;
}
table.risk-table tr:last-child td { border-bottom: none; }
table.risk-table tbody tr:hover td { background: #fafcfd; }
table.risk-table .t-title {
  max-width: 460px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: var(--ink);
}
table.risk-table .t-title a:hover { color: var(--blue); }
table.risk-table .num { font-variant-numeric: tabular-nums; }
table.risk-table .t-empty { color: #b4c0cc; }
table.risk-table a.ext {
  font-weight: 600;
  color: var(--ink-2);
}
table.risk-table a.ext:hover { color: var(--orange); }
table.risk-table .empty-row td {
  padding: 34px 12px;
  text-align: center;
  color: var(--muted);
}

/* ---------- 加载 / 错误 ---------- */
.cockpit-state {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 48px 24px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
.cockpit-state[hidden] { display: none; }
.cockpit-state .spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 14px;
  border: 2px solid #e3e9f1;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: cockpit-spin .8s linear infinite;
}
.cockpit-state.error { color: var(--red); }
.cockpit-state button {
  margin-top: 16px;
  padding: 8px 18px;
  border: none;
  border-radius: var(--r-ctl);
  background: var(--ink-2);
  color: #fff;
  font-size: 13px;
}
@keyframes cockpit-spin { to { transform: rotate(360deg); } }

@media (max-width: 1120px) {
  .cockpit { padding: 30px 22px 80px; }
  .asset-grid { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .asset:nth-child(3) { padding-left: 0; border-left: none; }
  .matrix-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .cockpit-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .head-side { flex-direction: row; align-items: center; width: 100%; }
  .stamp { margin-left: auto; }
  .cockpit-grid { grid-template-columns: 1fr; }
  .cockpit-head h1 { font-size: 27px; }
  .matrix-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .law-visual { gap: 20px; }
}
@media (max-width: 680px) {
  .cockpit { padding: 24px 16px 64px; }
  .cockpit-head h1 { font-size: 23px; }
  .cockpit-head .lead { font-size: 13.5px; }
  .head-side { flex-wrap: wrap; }
  .stamp { width: 100%; margin-left: 0; }
  .asset-vault { padding: 22px 20px 18px; border-radius: 16px; }
  .asset-grid { grid-template-columns: 1fr; gap: 0; }
  .asset { padding: 18px 0; border-left: none; border-top: 1px solid rgba(255, 255, 255, .12); }
  .asset:first-child { padding-top: 0; border-top: none; }
  .asset:last-child { padding-bottom: 0; }
  .asset-value { font-size: 34px; }
  .asset-meta { min-height: 0; }
  .vault-foot { gap: 8px; }
  .vault-foot .spacer { display: none; }
  .cockpit-panel { padding: 20px 18px; }
  .panel-head { flex-wrap: wrap; }
  .panel-head .hint { width: 100%; margin-left: 0; text-align: left; }
  .coverage-arrow { display: none; }
  .coverage-chain { flex-wrap: wrap; gap: 18px 0; }
  .coverage-step { flex: 0 0 50%; }
  .law-visual { flex-direction: column; align-items: flex-start; gap: 14px; }
  .law-donut { width: 132px; height: 132px; }
  .law-legend { width: 100%; }
  .matrix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .domain-map { height: 470px; }
  .law-track-item { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; }
  .table-filter { flex-basis: 100%; }
  .table-count { margin-left: 0; }
}
@media (max-width: 420px) {
  .coverage-step { flex-basis: 100%; }
  .matrix-grid { grid-template-columns: 1fr; }
}
