* {
  box-sizing: border-box;
}

:root {
  --bg: #07101e;
  --panel: #101c2d;
  --panel-soft: #132338;
  --line: #203249;
  --line-soft: rgba(46, 69, 99, .55);
  --text: #f7fbff;
  --muted: #8ea2bd;
  --muted-dim: #66809d;
  --blue: #3b82f6;
  --blue-soft: #102d5f;
  --green: #10b981;
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --red: #ef4444;
  --violet: #8b5cf6;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--text);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 12px;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 190px 1fr;
  background:
    radial-gradient(circle at 18% 8%, rgba(31, 104, 184, .12), transparent 32%),
    #07101e;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #0b1524;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.brand {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1e8cff, #06b6d4);
  color: white;
  font-weight: 800;
  line-height: 1;
}

.brand-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav {
  padding: 12px 6px 8px;
  overflow: auto;
}

.nav-section {
  color: #6d83a0;
  font-size: 11px;
  margin: 7px 4px 6px;
}

.nav-item {
  height: 31px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: #a9bad1;
  text-decoration: none;
  border-radius: 3px;
  border-left: 3px solid transparent;
}

.nav-item svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.nav-item.active {
  color: #dcecff;
  background: #132b4f;
  border-left-color: var(--blue);
}

.nav-item:hover {
  background: rgba(32, 50, 73, .6);
}

.collapse-btn {
  height: 27px;
  margin: auto 9px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #0b1524;
  color: #9fb4cf;
  cursor: pointer;
}

.collapse-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace {
  min-width: 0;
}

.topbar {
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px 0 20px;
  background: #0d1828;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  color: #9eb1ca;
  font-size: 11px;
}

.breadcrumb span {
  color: #566a85;
  margin: 0 8px;
}

.breadcrumb strong {
  color: #eaf4ff;
  font-weight: 700;
}

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

.icon-btn,
.avatar {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-btn {
  position: relative;
  width: 20px;
  height: 20px;
  padding: 2px;
  color: #8da1bb;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn.dot::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.content {
  padding: 21px 13px 23px 20px;
}

.page-title {
  margin-bottom: 20px;
}

.page-title h1 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.page-title p {
  margin: 0;
  color: #b6c6d9;
  font-size: 11px;
}

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

.metric-card,
.panel {
  background: #101c2d;
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .015);
}

.metric-card {
  min-height: 104px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 16px 15px 17px;
}

.metric-card p {
  margin: 0 0 9px;
  color: #9db0ca;
}

.metric-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0;
}

.metric-card span {
  display: block;
  font-size: 11px;
}

.up {
  color: #00e0a4;
}

.down {
  color: #ff4d5e;
}

.metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  display: grid;
  place-items: center;
}

.metric-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-icon.blue { color: var(--blue); background: rgba(37, 99, 235, .25); }
.metric-icon.amber { color: var(--amber); background: rgba(245, 158, 11, .22); }
.metric-icon.green { color: var(--green); background: rgba(16, 185, 129, .23); }
.metric-icon.purple { color: var(--violet); background: rgba(124, 58, 237, .28); }
.metric-icon.cyan { color: var(--cyan); background: rgba(6, 182, 212, .22); }
.metric-icon.red { color: var(--red); background: rgba(239, 68, 68, .22); }

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-areas:
    "trend donut"
    "cases status";
  gap: 19px 12px;
}

.panel {
  min-width: 0;
  padding: 18px 16px;
}

.trend-panel {
  grid-area: trend;
  height: 312px;
}

.donut-panel {
  grid-area: donut;
  height: 312px;
}

.table-panel {
  grid-area: cases;
  height: 296px;
}

.status-panel {
  grid-area: status;
  height: 296px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.segmented {
  display: flex;
  gap: 5px;
}

.segmented button,
.ghost-btn {
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0e1b2c;
  color: #9fb4cf;
  cursor: pointer;
}

.segmented button {
  width: 31px;
}

.segmented .active {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

.legend {
  display: flex;
  align-items: center;
  color: #879ab4;
}

.line-legend {
  justify-content: center;
  gap: 20px;
  margin: 21px 0 4px;
  font-size: 10px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.line-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .18);
}

.line-dot.blue { background: var(--blue); }
.line-dot.green { background: var(--green); }

.line-chart {
  width: 100%;
  height: 224px;
}

.grid-lines path {
  fill: none;
  stroke: rgba(49, 70, 101, .42);
  stroke-dasharray: 3 3;
}

.axis-labels {
  fill: #7f93ad;
  font-size: 11px;
}

.area {
  pointer-events: none;
}

.blue-area {
  fill: url(#blueFill);
}

.green-area {
  fill: url(#greenFill);
}

.series {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blue-line {
  stroke: var(--blue);
}

.green-line {
  stroke: var(--green);
}

.points circle {
  stroke: rgba(255, 255, 255, .5);
  stroke-width: 1;
}

.blue-points circle {
  fill: var(--blue);
}

.green-points circle {
  fill: var(--green);
}

.donut-legend {
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 10px;
  flex-wrap: wrap;
}

.donut-legend i {
  width: 20px;
  height: 11px;
  border-radius: 2px;
  background: var(--c);
}

.donut-wrap {
  height: 226px;
  display: grid;
  place-items: center;
}

.donut {
  width: 360px;
  max-width: 100%;
  height: 230px;
}

.donut-base,
.arc {
  fill: none;
  stroke-width: 42;
}

.donut-base {
  stroke: #1d2b40;
}

.arc {
  stroke-linecap: butt;
}

.arc.red { stroke: var(--red); }
.arc.amber { stroke: var(--amber); }
.arc.blue { stroke: var(--blue); }
.arc.violet { stroke: var(--violet); }
.arc.cyan { stroke: var(--cyan); }
.arc.gray { stroke: #6b7280; }

.label-line {
  fill: none;
  stroke-width: 1.4;
}

.label-line.red { stroke: var(--red); }
.label-line.amber { stroke: var(--amber); }
.label-line.blue { stroke: var(--blue); }
.label-line.violet { stroke: var(--violet); }
.label-line.cyan { stroke: var(--cyan); }
.label-line.gray { stroke: #6b7280; }

.donut-labels text {
  fill: #879ab4;
  font-size: 11px;
}

.ghost-btn {
  padding: 0 10px;
  font-size: 11px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 17px;
}

th,
td {
  height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(32, 50, 73, .75);
  text-align: left;
  white-space: nowrap;
}

th {
  color: #7188a5;
  font-weight: 600;
}

td {
  color: #bcd0e8;
}

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

.badge,
.priority,
.status-row b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
}

.badge {
  min-width: 44px;
  height: 18px;
  padding: 0 8px;
  font-size: 11px;
}

.badge.blue { color: #65a3ff; background: rgba(37, 99, 235, .28); }
.badge.amber { color: #ffc247; background: rgba(245, 158, 11, .24); }
.badge.green { color: #16f0b1; background: rgba(16, 185, 129, .24); }
.badge.violet { color: #a78bfa; background: rgba(124, 58, 237, .26); }

.priority {
  min-width: 24px;
  height: 18px;
  font-size: 11px;
}

.priority.high { color: white; background: rgba(239, 68, 68, .72); }
.priority.mid { color: #ffe082; background: rgba(245, 158, 11, .45); }
.priority.low { color: #9ff6d2; background: rgba(16, 185, 129, .4); }

.status-list {
  margin-top: 14px;
}

.status-row,
.usage > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #879ab4;
}

.status-row {
  height: 31px;
}

.status-row b {
  min-width: 45px;
  height: 22px;
  background: rgba(16, 185, 129, .24);
  color: #12f0ad;
  font-size: 11px;
}

.status-row.is-unhealthy b,
.usage.is-unhealthy strong {
  color: #ff9ca5;
}

.status-row.is-unhealthy b {
  background: rgba(239, 68, 68, .22);
}

.usage.is-unhealthy .bar {
  background: var(--red);
}

.usage {
  margin-top: 13px;
}

.usage strong {
  color: white;
  font-size: 11px;
}

.track {
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: #0c1828;
  overflow: hidden;
}

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

.bar.blue { background: var(--blue); }
.bar.green { background: var(--green); }
.bar.amber { background: var(--amber); }

.case-page .app-shell {
  grid-template-columns: 240px 1fr;
}

.case-page .brand,
.case-page .topbar {
  height: 54px;
}

.case-page .brand {
  padding-left: 16px;
  gap: 12px;
}

.case-page .brand-mark {
  width: 26px;
  height: 32px;
  border-radius: 5px;
  font-size: 13px;
}

.case-page .brand-name {
  font-size: 14px;
}

.case-page .nav {
  padding: 18px 8px 8px;
}

.case-page .nav-section {
  margin: 4px 8px 10px;
  font-size: 12px;
}

.case-page .nav-item {
  height: 40px;
  gap: 12px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 4px;
}

.case-page .nav-item svg {
  width: 17px;
  height: 17px;
}

.case-page .topbar {
  padding: 0 16px 0 24px;
}

.case-page .breadcrumb {
  font-size: 13px;
}

.case-page .top-actions {
  gap: 21px;
}

.case-page .icon-btn {
  width: 21px;
  height: 21px;
}

.case-page .icon-btn svg {
  width: 18px;
  height: 18px;
}

.case-page .avatar {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.case-page .collapse-btn {
  height: 34px;
  margin: auto 12px 8px;
  font-size: 13px;
}

.cases-content {
  padding: 31px 20px 40px 24px;
}

.cases-title {
  margin-bottom: 27px;
}

.cases-title h1 {
  margin-bottom: 12px;
  font-size: 24px;
}

.cases-title p {
  font-size: 14px;
  color: #a9bad1;
}

.cases-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.case-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.case-summary-card {
  min-height: 86px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, .12), transparent 52%),
    #101c2d;
}

.case-summary-card span,
.case-summary-card em {
  display: block;
  color: #8fa4bf;
  font-style: normal;
}

.case-summary-card strong {
  display: block;
  margin: 8px 0 5px;
  color: #f8fbff;
  font-size: 24px;
  line-height: 1;
}

.search-field,
.select-field {
  height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #101c2d;
  color: #7188a5;
}

.search-field {
  width: 260px;
  padding: 0 11px;
  gap: 9px;
}

.search-field svg,
.select-field svg,
.primary-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-field svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

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

.search-field input::placeholder {
  color: #7489a6;
}

.select-field {
  position: relative;
  width: 140px;
}

.select-field.role-field {
  width: 132px;
}

.select-field select {
  width: 100%;
  height: 100%;
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  padding: 0 36px 0 13px;
  font: inherit;
  font-size: 14px;
}

.select-field svg {
  position: absolute;
  right: 12px;
  width: 14px;
  height: 14px;
  stroke-width: 2;
  color: #7188a5;
  pointer-events: none;
}

.primary-btn {
  height: 36px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 19px;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.primary-btn.compact {
  height: 30px;
  margin-left: 0;
  padding: 0 12px;
  font-size: 12px;
}

.primary-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.primary-btn:disabled {
  cursor: not-allowed;
  opacity: .42;
  filter: grayscale(.35);
}

.case-table-panel {
  padding: 0;
  overflow: auto;
}

.case-table {
  margin-top: 0;
  font-size: 14px;
}

.case-table th,
.case-table td {
  height: 54px;
  padding: 0 14px;
}

.case-table th {
  height: 40px;
  color: #7188a5;
  font-size: 13px;
}

.case-table th:first-child,
.case-table td:first-child {
  padding-left: 15px;
}

.case-table tbody tr {
  background: #101c2d;
}

.case-table tbody tr.selected {
  background: #162235;
}

.case-table tbody tr:hover {
  background: #142136;
}

.case-table td {
  color: #a9c8ee;
}

.case-table tr.selected td,
.case-table tr.selected .type-pill {
  color: white;
  font-weight: 700;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 25px;
  padding: 0 9px;
  border-radius: 4px;
  background: rgba(86, 104, 130, .25);
  color: #9fb4cf;
  font-size: 13px;
}

.case-table .badge,
.case-table .priority {
  height: 22px;
  font-size: 12px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  border-bottom: 1px solid rgba(32, 50, 73, .75);
}

.actions button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #101c2d;
  color: #a9c8ee;
  cursor: pointer;
}

.actions .danger {
  border-color: rgba(239, 68, 68, .18);
  background: rgba(239, 68, 68, .22);
  color: #ff414d;
  font-weight: 800;
}

.actions .danger.soft {
  background: rgba(239, 68, 68, .12);
}

.actions button:disabled,
.workflow-actions button:disabled,
.case-detail-panel button:disabled {
  cursor: not-allowed;
  opacity: .42;
  filter: grayscale(.4);
}

.case-empty {
  height: 96px;
  text-align: center;
  color: #7188a5;
}

.case-ops-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.25fr) minmax(250px, .75fr) minmax(260px, .8fr);
  gap: 12px;
  margin-top: 16px;
}

.case-detail-panel,
.case-permission-panel,
.case-audit-panel {
  min-height: 240px;
}

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

.case-detail-list div:last-child {
  grid-column: 1 / -1;
}

.case-detail-list dt {
  margin-bottom: 5px;
  color: #7188a5;
}

.case-detail-list dd {
  min-height: 18px;
  margin: 0;
  color: #d7e8ff;
  line-height: 1.55;
}

.case-permission-panel .panel-head span {
  height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .18);
  color: #9bc2ff;
  font-weight: 800;
}

.permission-grid {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.permission-grid div {
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  border: 1px solid rgba(32, 50, 73, .78);
  border-radius: 4px;
  background: rgba(11, 21, 36, .52);
}

.permission-grid span {
  color: #a8bad2;
}

.permission-grid b {
  font-size: 11px;
}

.permission-grid .allowed b {
  color: #10e4a5;
}

.permission-grid .denied b {
  color: #ff7380;
}

.case-audit-list {
  display: grid;
  gap: 9px;
  max-height: 166px;
  margin: 16px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.case-audit-list li {
  padding-left: 12px;
  border-left: 2px solid rgba(59, 130, 246, .75);
  color: #9fb4cf;
  line-height: 1.45;
}

.workflow-panel {
  margin-top: 40px;
  padding: 24px 20px 36px;
}

.case-ops-grid + .workflow-panel {
  margin-top: 16px;
}

.workflow-panel h2 {
  margin: 0 0 18px;
  font-size: 16px;
}

.workflow {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: auto;
  padding-bottom: 2px;
}

.workflow > i {
  display: block;
  flex: 1 1 44px;
  min-width: 38px;
  height: 1px;
  background: #10cda0;
}

.workflow > i.muted-line {
  background: #203249;
}

.workflow-step {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}

.workflow-step span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0f1d2f;
  border: 1px solid var(--line);
  color: #6f85a0;
  font-weight: 800;
}

.workflow-step b {
  color: #6f85a0;
  font-size: 14px;
}

.workflow-step.done span {
  border-color: #10cda0;
  background: #10b981;
  color: white;
}

.workflow-step.done b {
  color: #10e4a5;
}

.workflow-step.current span {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.workflow-step.current b {
  color: white;
}

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

.badge.gray {
  color: #b5c2d3;
  background: rgba(100, 116, 139, .28);
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 8, 15, .72);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.case-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.case-modal-card {
  width: min(760px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  border: 1px solid rgba(59, 130, 246, .36);
  border-radius: 6px;
  background: #101c2d;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .48);
  transform: translateY(10px) scale(.98);
  transition: transform .18s ease;
}

.case-modal.open .case-modal-card {
  transform: translateY(0) scale(1);
}

.case-modal-head {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.case-modal-head span {
  display: block;
  margin-bottom: 4px;
  color: #8fa4bf;
}

.case-modal-head strong {
  color: white;
  font-size: 16px;
}

.case-modal-head button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0b1524;
  color: #9fb4cf;
  cursor: pointer;
}

.case-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 13px;
  padding: 18px;
}

.case-form-grid label {
  display: grid;
  gap: 7px;
  color: #8fa4bf;
  font-weight: 700;
}

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

.case-form-grid input,
.case-form-grid select,
.case-form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0b1524;
  color: #dcecff;
  font: inherit;
  font-size: 13px;
  outline: 0;
}

.case-form-grid input,
.case-form-grid select {
  height: 36px;
  padding: 0 10px;
}

.case-form-grid textarea {
  resize: vertical;
  min-height: 88px;
  padding: 10px;
  line-height: 1.6;
}

.case-form-grid input[readonly] {
  color: #8fa4bf;
  background: #0e1b2c;
}

.case-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 0 18px 18px;
}

.import-content {
  padding: 25px 18px 36px 22px;
}

.import-title {
  margin-bottom: 28px;
}

.import-title h1 {
  margin-bottom: 10px;
  font-size: 22px;
}

.import-title p {
  font-size: 13px;
  color: #a9bad1;
}

.import-tabs {
  height: 37px;
  display: flex;
  align-items: flex-start;
  gap: 31px;
  border-bottom: 1px solid var(--line);
}

.import-tabs button {
  height: 37px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #a9bad1;
  padding: 0 18px;
  cursor: pointer;
}

.import-tabs button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.import-stepper {
  height: 52px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.import-stepper > i {
  display: block;
  height: 1px;
  background: #10cda0;
}

.import-stepper > i.muted-line {
  background: #203249;
}

.import-step {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.import-step span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #0f1d2f;
  color: #7287a1;
  font-weight: 800;
}

.import-step b {
  color: #7287a1;
  font-size: 13px;
}

.import-step.done span {
  border-color: #10cda0;
  background: #10b981;
  color: white;
}

.import-step.done b {
  color: #10e4a5;
}

.import-step.current span {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.import-step.current b {
  color: white;
}

.import-type-panel {
  min-height: 328px;
  padding: 22px 18px 18px;
}

.import-type-panel h2,
.upload-panel h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.data-type-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(112px, 1fr));
  gap: 12px;
  margin-top: 19px;
}

.data-type-card {
  height: 122px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0e1a2b;
  color: white;
  cursor: pointer;
}

.data-type-card.active {
  border-color: var(--blue);
  background: #152d52;
}

.data-icon {
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
}

.data-type-card b {
  font-size: 13px;
}

.data-type-card em {
  color: #607894;
  font-size: 11px;
  font-style: normal;
}

.upload-panel {
  margin-top: 22px;
  padding: 22px 18px 19px;
}

.dropzone {
  height: 168px;
  margin-top: 16px;
  border: 1px dashed rgba(54, 77, 111, .7);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6d83a0;
}

.dropzone svg {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  fill: none;
  stroke: #5d718c;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropzone p {
  margin: 0 0 7px;
  color: #9fb4cf;
  font-size: 13px;
}

.dropzone span {
  color: #607894;
  font-size: 11px;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.outline-btn {
  height: 34px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #07101e;
  color: #9fb4cf;
  cursor: pointer;
}

.wizard-actions .primary-btn {
  margin-left: 0;
  height: 34px;
  padding: 0 16px;
}

.import-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.import-kpi-grid article {
  min-height: 86px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, .11), transparent 54%),
    #101c2d;
}

.import-kpi-grid span,
.import-kpi-grid em {
  display: block;
  color: #8fa4bf;
  font-style: normal;
}

.import-kpi-grid strong {
  display: block;
  margin: 8px 0 5px;
  color: white;
  font-size: 24px;
  line-height: 1;
}

.import-source-panel,
.import-automation-panel,
.import-history-panel {
  margin-top: 16px;
}

.import-sync-state {
  height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .16);
  color: #9cc5ff;
  font-size: 11px;
  font-weight: 800;
}

.import-source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.import-source-card {
  min-height: 134px;
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-areas:
    "icon title"
    "icon desc"
    "tag tag";
  align-content: center;
  gap: 8px 12px;
  padding: 17px 15px 14px;
  border: 1px solid rgba(32, 50, 73, .9);
  border-radius: 6px;
  background: #0e1a2b;
  color: #dbeafe;
  text-align: left;
  cursor: pointer;
}

.import-source-card.active {
  border-color: rgba(59, 130, 246, .95);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, .18), transparent 56%),
    #12243a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.source-icon {
  grid-area: icon;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(59, 130, 246, .18);
  color: #7eb5ff;
}

.source-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.import-source-card b {
  grid-area: title;
  font-size: 14px;
}

.import-source-card em {
  grid-area: desc;
  color: #8fa4bf;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.import-source-card i {
  grid-area: tag;
  justify-self: start;
  height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, .16);
  color: #1de7ad;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.import-selected-source {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0 14px;
  border: 1px solid rgba(32, 50, 73, .75);
  border-radius: 5px;
  background: rgba(13, 24, 40, .66);
}

.import-selected-source span {
  color: #7188a5;
}

.import-selected-source strong {
  color: #eaf4ff;
  font-size: 14px;
}

.import-selected-source em {
  margin-left: auto;
  color: #89a4c6;
  font-style: normal;
}

.import-type-panel {
  min-height: 0;
}

.data-type-grid {
  grid-template-columns: repeat(6, minmax(132px, 1fr));
}

.data-type-card {
  height: 104px;
  align-items: flex-start;
  padding: 14px;
  gap: 7px;
}

.data-type-card.active {
  background:
    linear-gradient(135deg, rgba(59, 130, 246, .2), transparent 58%),
    #12243a;
}

.data-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(59, 130, 246, .17);
  color: #9cc5ff;
  font-size: 12px;
  font-weight: 900;
}

.data-icon::before {
  content: "数";
}

.data-icon.bank::before { content: "账"; }
.data-icon.call::before { content: "话"; }
.data-icon.intel::before { content: "情"; }
.data-icon.estate::before { content: "产"; }
.data-icon.track::before { content: "轨"; }
.data-icon.pay::before { content: "支"; }
.data-icon.wallet::before { content: "财"; }
.data-icon.tax::before { content: "税"; }
.data-icon.express::before { content: "递"; }
.data-icon.wealth::before { content: "理"; }
.data-icon.insure::before { content: "保"; }
.data-icon.edata::before { content: "取"; }

.upload-panel {
  margin-top: 16px;
}

.dropzone {
  height: 148px;
}

.import-option-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.import-option-row label {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(32, 50, 73, .8);
  border-radius: 4px;
  background: rgba(7, 16, 30, .58);
  color: #a9bad1;
}

.import-option-row input {
  accent-color: var(--blue);
}

.import-automation-panel {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(240px, .8fr) minmax(320px, 1.1fr);
  gap: 16px;
  align-items: start;
}

.import-automation-panel > h2 {
  grid-column: 1 / -1;
}

.import-pipeline {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.import-pipeline li {
  position: relative;
  min-height: 44px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 4px 10px;
  padding-left: 0;
}

.import-pipeline li::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 24px;
  bottom: -12px;
  width: 1px;
  background: rgba(32, 50, 73, .88);
}

.import-pipeline li:last-child::after {
  display: none;
}

.import-pipeline span {
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #0f1d2f;
}

.import-pipeline .done span {
  border-color: #10cda0;
  background: #10b981;
}

.import-pipeline .current span {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .13);
}

.import-pipeline b {
  color: #e4f1ff;
  font-size: 13px;
}

.import-pipeline em {
  color: #7188a5;
  font-style: normal;
  line-height: 1.4;
}

.decrypt-box,
.template-box {
  min-height: 148px;
  padding: 14px;
  border: 1px solid rgba(32, 50, 73, .78);
  border-radius: 5px;
  background: rgba(7, 16, 30, .42);
}

.decrypt-box label {
  display: block;
  margin-bottom: 10px;
  color: #a9bad1;
  font-weight: 800;
}

.decrypt-box div {
  display: flex;
  gap: 8px;
}

.decrypt-box input,
.template-box select {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0b1524;
  color: #d7e8ff;
  padding: 0 10px;
  outline: 0;
}

.template-box .panel-head h2 {
  font-size: 13px;
}

.mapping-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(32, 50, 73, .78);
  border-radius: 4px;
}

.mapping-preview span,
.mapping-preview b,
.mapping-preview em {
  min-height: 28px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  background: rgba(11, 21, 36, .86);
}

.mapping-preview span {
  color: #7188a5;
  font-weight: 800;
}

.mapping-preview b {
  color: #c7dcf5;
}

.mapping-preview em {
  color: #8ab6ff;
  font-style: normal;
}

.import-history-panel {
  padding: 0;
  overflow: auto;
}

.import-history-panel .panel-head {
  padding: 16px 16px 0;
}

.import-table {
  min-width: 860px;
  margin-top: 12px;
  font-size: 13px;
}

.import-table th,
.import-table td {
  height: 42px;
}

.governance-page .app-shell {
  grid-template-columns: 240px 1fr;
}

.governance-page .brand,
.governance-page .topbar {
  height: 54px;
}

.governance-page .brand {
  gap: 12px;
  padding: 0 12px 0 16px;
}

.governance-page .brand-mark {
  width: 26px;
  height: 32px;
  border-radius: 5px;
  font-size: 13px;
}

.governance-page .brand-name {
  font-size: 14px;
}

.governance-page .nav {
  padding: 18px 8px 8px;
}

.governance-page .nav-section {
  margin: 4px 8px 10px;
  font-size: 12px;
}

.governance-page .nav-item {
  height: 40px;
  gap: 12px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 4px;
}

.governance-page .nav-item svg {
  width: 17px;
  height: 17px;
}

.governance-page .collapse-btn {
  height: 34px;
  margin: auto 12px 8px;
  font-size: 13px;
}

.governance-page .topbar {
  padding: 0 16px 0 24px;
}

.governance-page .breadcrumb {
  font-size: 13px;
}

.governance-page .top-actions {
  gap: 21px;
}

.governance-page .icon-btn {
  width: 21px;
  height: 21px;
}

.governance-page .icon-btn svg {
  width: 18px;
  height: 18px;
}

.governance-page .avatar {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.governance-content {
  padding: 25px 18px 36px 22px;
}

.governance-title {
  margin-bottom: 28px;
}

.governance-title h1 {
  margin-bottom: 10px;
  font-size: 22px;
}

.governance-title p {
  font-size: 13px;
  color: #a9bad1;
}

.gov-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.gov-metric {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 13px;
  background: #101c2d;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.gov-metric p {
  margin: 0 0 8px;
  color: #9db0ca;
  font-size: 10px;
}

.gov-metric strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 22px;
  line-height: 1;
}

.gov-metric small {
  color: #7f93ad;
  font-size: 9px;
  font-weight: 600;
}

.gov-icon {
  width: 29px;
  height: 29px;
  border-radius: 6px;
  position: relative;
}

.gov-icon::before,
.gov-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}

.gov-icon::before {
  top: 8px;
  height: 6px;
}

.gov-icon::after {
  top: 13px;
  height: 6px;
}

.gov-icon.blue { color: var(--blue); background: rgba(37, 99, 235, .25); }
.gov-icon.green { color: var(--green); background: rgba(16, 185, 129, .23); }
.gov-icon.amber { color: var(--amber); background: rgba(245, 158, 11, .22); }
.gov-icon.red { color: var(--red); background: rgba(239, 68, 68, .22); }

.governance-console {
  display: grid;
  grid-template-columns: minmax(330px, 1.08fr) minmax(330px, 1.04fr) minmax(310px, .88fr);
  gap: 10px;
  margin-bottom: 16px;
}

.clean-algorithm-panel,
.llm-assist-panel,
.quality-label-panel {
  min-height: 336px;
}

.gov-state-pill {
  height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .16);
  color: #9bc2ff;
  font-size: 10px;
  font-weight: 800;
}

.clean-pipeline {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.clean-step {
  min-height: 55px;
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-areas:
    "num title"
    "num desc";
  gap: 3px 10px;
  padding: 10px 11px;
  border: 1px solid rgba(32, 50, 73, .82);
  border-radius: 5px;
  background: rgba(7, 16, 30, .46);
  color: #d6e7fb;
  text-align: left;
  cursor: pointer;
}

.clean-step.active {
  border-color: rgba(59, 130, 246, .95);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, .2), transparent 58%),
    #12243a;
}

.clean-step span {
  grid-area: num;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(59, 130, 246, .16);
  color: #8ab6ff;
  font-weight: 900;
}

.clean-step b {
  grid-area: title;
  font-size: 12px;
}

.clean-step em {
  grid-area: desc;
  color: #7f93ad;
  font-size: 10px;
  font-style: normal;
  line-height: 1.4;
}

.clean-progress {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(32, 50, 73, .75);
  border-radius: 5px;
  background: rgba(9, 19, 33, .45);
}

.clean-progress div,
.quality-label-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.clean-progress span,
.quality-label-grid span {
  color: #7188a5;
}

.clean-progress strong,
.quality-label-grid strong {
  color: #eaf4ff;
}

.clean-progress i,
.quality-label-grid i {
  height: 5px;
  display: block;
  margin-top: 9px;
  border-radius: 999px;
  background: #0b1524;
  overflow: hidden;
}

.clean-progress i b,
.quality-label-grid i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.clean-progress p {
  margin: 9px 0 0;
  color: #8fa4bf;
  font-size: 10px;
  line-height: 1.45;
}

.llm-summary {
  min-height: 56px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(16, 185, 129, .24);
  border-radius: 5px;
  background: rgba(16, 185, 129, .08);
}

.llm-summary strong,
.llm-summary span {
  display: block;
}

.llm-summary strong {
  margin-bottom: 6px;
  color: #16f0b1;
  font-size: 12px;
}

.llm-summary span {
  color: #8fa4bf;
  font-size: 10px;
  line-height: 1.45;
}

.correction-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.correction-card {
  padding: 10px;
  border: 1px solid rgba(32, 50, 73, .82);
  border-radius: 5px;
  background: rgba(7, 16, 30, .42);
}

.correction-card.active {
  border-color: rgba(59, 130, 246, .65);
}

.correction-card b,
.correction-card em {
  display: block;
}

.correction-card b {
  margin: 8px 0 5px;
  color: #e5f1ff;
  font-size: 12px;
}

.correction-card em {
  color: #8fa4bf;
  font-size: 10px;
  font-style: normal;
  line-height: 1.45;
}

.correction-card div {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}

.correction-card button {
  height: 24px;
  min-width: 52px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0e1b2c;
  color: #9fc5f5;
  cursor: pointer;
  font-size: 10px;
}

.correction-card button:first-child {
  border-color: rgba(16, 185, 129, .4);
  background: rgba(16, 185, 129, .14);
  color: #18e7ab;
}

.correction-card button:last-child:not(:first-child) {
  border-color: rgba(239, 68, 68, .38);
  background: rgba(127, 29, 29, .18);
  color: #fca5a5;
}

.governance-empty {
  padding: 18px 10px;
  color: #7188a5;
  text-align: center;
}

.issue-donut.is-empty .mini-arc,
.issue-donut.is-empty .issue-labels {
  opacity: .12;
}

.quality-label-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.quality-label-grid div {
  min-height: 62px;
  flex-direction: column;
  align-items: stretch;
  padding: 11px;
  border: 1px solid rgba(32, 50, 73, .78);
  border-radius: 5px;
  background: rgba(7, 16, 30, .42);
}

.quality-label-table {
  margin-top: 13px;
  font-size: 10px;
}

.quality-label-table th,
.quality-label-table td {
  height: 31px;
  padding: 0 8px;
}

.quality-label-table th {
  color: #7188a5;
}

.gov-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-areas:
    "quality issue"
    "anomalies log";
  gap: 16px 10px;
}

.quality-panel {
  grid-area: quality;
  height: 274px;
}

.issue-panel {
  grid-area: issue;
  height: 274px;
}

.anomalies-panel {
  grid-area: anomalies;
  height: 286px;
}

.log-panel {
  grid-area: log;
  height: 286px;
}

.governance-page .panel {
  padding: 17px 13px;
}

.governance-page .panel h2 {
  font-size: 12px;
}

.quality-score {
  height: 74px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 12px;
  background: rgba(9, 19, 33, .45);
}

.score-ring {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: #18f2ad;
  font-size: 18px;
  font-weight: 800;
}

.quality-score h3 {
  margin: 0 0 8px;
  font-size: 12px;
}

.quality-score p {
  margin: 0;
  color: #66809d;
  font-size: 10px;
}

.radar-chart {
  width: 100%;
  height: 170px;
  margin-top: 2px;
}

.radar-grid {
  fill: rgba(59, 130, 246, .04);
  stroke: rgba(59, 130, 246, .16);
}

.radar-axis {
  fill: none;
  stroke: rgba(59, 130, 246, .2);
}

.radar-area {
  fill: rgba(59, 130, 246, .28);
}

.radar-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
}

.radar-points circle {
  fill: var(--blue);
}

.radar-chart text {
  fill: #7f93ad;
  font-size: 9px;
  text-anchor: middle;
}

.radar-legend rect {
  fill: var(--blue);
  rx: 2px;
}

.radar-legend text {
  text-anchor: start;
}

.issue-legend {
  justify-content: center;
  gap: 9px;
  margin-top: 17px;
  font-size: 9px;
  flex-wrap: wrap;
}

.issue-legend i {
  width: 17px;
  height: 9px;
  border-radius: 2px;
  background: var(--c);
}

.issue-donut {
  width: 100%;
  height: 190px;
}

.mini-base,
.mini-arc {
  fill: none;
  stroke-width: 29;
}

.mini-base {
  stroke: #1d2b40;
}

.mini-arc.red { stroke: var(--red); }
.mini-arc.amber { stroke: var(--amber); }
.mini-arc.blue { stroke: var(--blue); }
.mini-arc.violet { stroke: var(--violet); }
.mini-arc.cyan { stroke: var(--cyan); }

.issue-labels text {
  fill: #879ab4;
  font-size: 9px;
}

.gov-table {
  margin-top: 16px;
  font-size: 10px;
}

.gov-table th,
.gov-table td {
  height: 33px;
  padding: 0 11px;
}

.gov-table th {
  font-size: 10px;
}

.gov-table .priority {
  min-width: 19px;
  height: 17px;
  font-size: 9px;
}

.log-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.log-item {
  position: relative;
  padding-left: 18px;
}

.log-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.log-item.blue { color: var(--blue); }
.log-item.green { color: var(--green); }
.log-item.amber { color: var(--amber); }

.log-item time {
  display: block;
  color: #7188a5;
  font-size: 10px;
  margin-bottom: 4px;
}

.log-item b {
  display: block;
  color: white;
  font-size: 11px;
  margin-bottom: 3px;
}

.log-item span {
  display: block;
  color: #a9c8ee;
  font-size: 10px;
}

.governance-actions {
  margin-top: 16px;
  min-height: 86px;
}

.governance-actions .panel-head span {
  color: #8fa4bf;
  font-size: 11px;
}

.clean-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.clean-actions .primary-btn,
.clean-actions .outline-btn,
.danger-btn {
  height: 28px;
  margin-left: 0;
  padding: 0 12px;
  font-size: 10px;
}

.danger-btn {
  border: 1px solid rgba(239, 68, 68, .2);
  border-radius: 4px;
  background: rgba(239, 68, 68, .25);
  color: #ff414d;
  font-weight: 700;
  cursor: pointer;
}

.portrait-page .app-shell {
  grid-template-columns: 176px 1fr;
}

.portrait-page .brand,
.portrait-page .topbar {
  height: 38px;
}

.portrait-page .brand {
  gap: 8px;
  padding: 0 8px;
}

.portrait-page .brand-mark {
  width: 25px;
  height: 25px;
  font-size: 12px;
}

.portrait-page .brand-name {
  font-size: 12px;
}

.portrait-page .nav {
  padding: 14px 5px 8px;
}

.portrait-page .nav-section {
  margin: 5px 4px 8px;
  font-size: 10px;
}

.portrait-page .nav-item {
  height: 30px;
  gap: 9px;
  padding: 0 12px;
  font-size: 12px;
}

.portrait-page .nav-item svg {
  width: 14px;
  height: 14px;
}

.portrait-page .collapse-btn {
  height: 25px;
  margin: auto 5px 4px;
  font-size: 10px;
}

.portrait-page .topbar {
  padding: 0 11px 0 18px;
}

.portrait-page .breadcrumb {
  font-size: 11px;
}

.portrait-page .top-actions {
  gap: 16px;
}

.portrait-page .icon-btn {
  width: 17px;
  height: 17px;
}

.portrait-page .icon-btn svg {
  width: 15px;
  height: 15px;
}

.portrait-page .avatar {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.portrait-content {
  padding: 22px 14px 32px 18px;
}

.portrait-title {
  margin-bottom: 25px;
}

.portrait-title h1 {
  margin-bottom: 8px;
  font-size: 17px;
}

.portrait-title p {
  font-size: 11px;
}

.portrait-tabs {
  height: 36px;
  display: flex;
  align-items: flex-start;
  gap: 42px;
  border-bottom: 1px solid var(--line);
}

.portrait-tabs button {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #a9bad1;
  cursor: pointer;
}

.portrait-tabs button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.person-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.person-card {
  height: 132px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #101c2d;
  overflow: hidden;
}

.person-head {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(32, 50, 73, .75);
}

.person-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  font-weight: 800;
}

.person-avatar.orange {
  background: linear-gradient(135deg, #ff7a2f, #ff4f28);
}

.person-avatar.gold {
  background: linear-gradient(135deg, #f4c45d, #64748b);
}

.person-avatar.blue {
  background: linear-gradient(135deg, #2aa7ff, #1591d8);
}

.person-head h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.person-head p {
  margin: 0;
  color: #9fb4cf;
  font-size: 11px;
}

.person-meta {
  height: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 16px;
}

.person-meta span {
  display: block;
  margin-bottom: 8px;
  color: #7188a5;
  font-size: 10px;
}

.person-meta b {
  color: white;
  font-size: 11px;
}

.person-meta em {
  font-style: normal;
}

.dimension-panel {
  margin-top: 18px;
  min-height: 241px;
  padding: 17px 16px 15px;
}

.dimension-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}

.dimension-head h2 {
  margin: 0;
  font-size: 12px;
}

.dimension-head > div {
  display: flex;
  gap: 8px;
}

.dimension-head .outline-btn,
.dimension-head .primary-btn {
  height: 25px;
  padding: 0 11px;
  font-size: 10px;
}

.dimension-head .primary-btn {
  margin-left: 0;
}

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

.dimension-card {
  height: 83px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0d1a2a;
}

.dimension-card.active,
.dimension-card.selected {
  border-color: var(--blue);
  background: #142f56;
}

.dimension-card span {
  font-size: 17px;
  line-height: 1;
}

.dimension-card b {
  color: white;
  font-size: 11px;
}

.dimension-card em {
  color: #607894;
  font-size: 10px;
  font-style: normal;
}

.distribution-panel {
  margin-top: 18px;
  height: 287px;
  padding: 17px 16px 14px;
}

.distribution-panel h2 {
  margin: 0;
  font-size: 12px;
}

.bar-chart {
  width: 100%;
  height: 245px;
  margin-top: 8px;
}

.bar-grid path {
  fill: none;
  stroke: rgba(49, 70, 101, .45);
  stroke-dasharray: 3 3;
}

.bar-axis text,
.bar-labels text {
  fill: #7188a5;
  font-size: 9px;
}

.bar-labels text {
  text-anchor: end;
}

.bars rect {
  fill: #12b6d5;
}

.assistant-content {
  min-height: calc(100vh - 38px);
  padding: 24px 17px 43px 18px;
  display: flex;
  flex-direction: column;
}

.assistant-title {
  margin-bottom: 24px;
}

.assistant-title h1 {
  margin-bottom: 8px;
  font-size: 17px;
}

.assistant-title p {
  font-size: 11px;
}

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

.assistant-brief article {
  min-height: 78px;
  padding: 13px 14px;
  border: 1px solid rgba(43, 67, 98, .86);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(21, 38, 61, .96), rgba(9, 18, 31, .98)),
    #101c2d;
  position: relative;
  overflow: hidden;
}

.assistant-brief article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(35, 152, 232, .12), transparent);
  transform: translateX(-120%);
  animation: scanner-sweep 5.6s ease-in-out infinite;
}

.assistant-brief span,
.assistant-brief em {
  display: block;
  color: #7188a5;
  font-size: 10px;
  font-style: normal;
}

.assistant-brief strong {
  display: block;
  margin: 7px 0 6px;
  color: #f5fbff;
  font-size: 16px;
}

.assistant-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 260px minmax(420px, 1fr) 340px;
  gap: 12px;
}

.chat-history,
.chat-panel,
.assistant-evidence {
  min-height: 0;
  padding: 20px 16px;
}

.chat-history {
  position: relative;
  display: flex;
  flex-direction: column;
}

.chat-history h2,
.chat-panel h2,
.assistant-evidence h2 {
  margin: 0;
  font-size: 13px;
}

.assistant-panel-head {
  min-height: 31px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.assistant-panel-head span {
  display: block;
  margin-top: 5px;
  color: #7188a5;
  font-size: 10px;
}

.history-list {
  margin-top: 18px;
  padding: 0;
}

.history-list article {
  min-height: 56px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(32, 50, 73, .75);
  border-radius: 4px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.history-list article:hover {
  background: rgba(59, 130, 246, .12);
  transform: translateX(3px);
}

.history-list h3 {
  margin: 0 0 9px;
  color: white;
  font-size: 11px;
}

.history-list time {
  color: #7188a5;
  font-size: 10px;
}

.assistant-context-box {
  margin: auto 0 12px;
  padding: 12px;
  border: 1px solid rgba(48, 76, 110, .75);
  border-radius: 6px;
  background: rgba(7, 17, 30, .72);
}

.assistant-context-box span,
.assistant-report-box span {
  display: block;
  margin-bottom: 6px;
  color: #7188a5;
  font-size: 10px;
}

.assistant-context-box strong,
.assistant-report-box strong {
  display: block;
  color: #f5fbff;
  font-size: 12px;
  line-height: 1.45;
}

.assistant-context-box p,
.assistant-report-box p {
  margin: 8px 0 0;
  color: #9aadc4;
  font-size: 10px;
  line-height: 1.55;
}

.new-chat-btn {
  height: 27px;
  margin: 0 0 5px;
  border: 0;
  border-radius: 3px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.chat-panel {
  display: flex;
  flex-direction: column;
}

.assistant-report-btn {
  height: 28px;
  padding: 0 12px;
  border-radius: 4px;
}

.chat-scroll {
  flex: 1;
  min-height: 0;
  padding: 18px 4px 18px 0;
  overflow: auto;
}

.assistant-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ai-bubble {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #209cf0;
  color: white;
  font-size: 11px;
  font-weight: 800;
  flex: none;
}

.message-card {
  width: min(620px, 100%);
  min-height: 98px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #101c2d;
}

.message-card p {
  margin: 0 0 13px;
  color: #c6d6ea;
  line-height: 1.45;
  font-size: 11px;
}

.message-card span {
  display: block;
  margin-bottom: 9px;
  color: #7188a5;
  font-size: 10px;
}

.prompt-chips {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}

.prompt-chips button {
  height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(59, 130, 246, .25);
  border-radius: 2px;
  background: #15376a;
  color: #9cc7ff;
  font-size: 10px;
  white-space: nowrap;
  cursor: pointer;
}

.assistant-answer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.assistant-answer-meta span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid rgba(59, 130, 246, .28);
  border-radius: 999px;
  background: rgba(59, 130, 246, .12);
  color: #9cc7ff;
  font-size: 10px;
}

.assistant-answer-trace {
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(36, 58, 85, .86);
  border-radius: 5px;
  background: rgba(6, 15, 27, .58);
}

.assistant-answer-trace b {
  display: block;
  margin-bottom: 6px;
  color: #dcecff;
  font-size: 10px;
}

.assistant-answer-trace ol,
.assistant-reasoning {
  margin: 0;
  padding-left: 17px;
  color: #9fb2ca;
  font-size: 10px;
  line-height: 1.6;
}

.chat-input-row {
  height: 47px;
  display: grid;
  grid-template-columns: 1fr 34px;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 0;
  border-top: 1px solid rgba(32, 50, 73, .75);
}

.chat-input-row input {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0c1727;
  color: #c6d6ea;
  padding: 0 12px;
  outline: 0;
  font: inherit;
  font-size: 10px;
}

.chat-input-row input::placeholder {
  color: #7188a5;
}

.chat-input-row button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  cursor: pointer;
}

.chat-input-row svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.assistant-evidence {
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow: auto;
}

.assistant-trace-block {
  padding-top: 2px;
}

.assistant-trace-block h3 {
  margin: 0 0 9px;
  color: #dcecff;
  font-size: 11px;
}

.assistant-source-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.assistant-source-list li {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(39, 62, 91, .82);
  border-radius: 5px;
  background: rgba(9, 20, 34, .68);
}

.assistant-source-list b {
  color: #eef7ff;
  font-size: 11px;
}

.assistant-source-list span {
  color: #8fa3bd;
  font-size: 10px;
  line-height: 1.45;
}

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

.assistant-clue-list article {
  padding: 10px 11px;
  border-left: 2px solid #16f0b1;
  border-radius: 5px;
  background: rgba(16, 185, 129, .09);
}

.assistant-clue-list span {
  display: block;
  margin-bottom: 5px;
  color: #16f0b1;
  font-size: 10px;
}

.assistant-clue-list strong {
  color: #dcecff;
  font-size: 11px;
  line-height: 1.5;
}

.assistant-report-box {
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(59, 130, 246, .34);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(15, 41, 80, .78), rgba(8, 19, 32, .9));
}

.bill-content {
  padding: 22px 19px 34px 18px;
}

.bill-title {
  margin-bottom: 22px;
}

.bill-title h1 {
  margin-bottom: 8px;
  font-size: 17px;
}

.bill-title p {
  font-size: 11px;
}

.bill-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.bill-metric {
  position: relative;
  height: 77px;
  padding: 17px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #101c2d;
}

.bill-metric p {
  margin: 0 0 9px;
  color: #9db0ca;
  font-size: 11px;
}

.bill-metric strong {
  font-size: 23px;
  line-height: 1;
}

.bill-metric strong.green { color: #10d69b; }
.bill-metric strong.red { color: #ff424e; }
.bill-metric strong.blue { color: var(--blue); }

.metric-symbol {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 33px;
  height: 33px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.metric-symbol.green { color: var(--green); background: rgba(16, 185, 129, .22); }
.metric-symbol.red { color: var(--red); background: rgba(239, 68, 68, .22); }
.metric-symbol.blue { color: var(--blue); background: rgba(37, 99, 235, .24); }
.metric-symbol.violet { color: var(--violet); background: rgba(124, 58, 237, .24); }

.bill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "flow month"
    "partner suspicious";
  gap: 18px 12px;
}

.flow-panel { grid-area: flow; height: 362px; }
.month-panel { grid-area: month; height: 362px; }
.partner-panel { grid-area: partner; height: 274px; }
.suspicious-panel { grid-area: suspicious; height: 274px; }

.bill-page .panel {
  padding: 17px 15px;
}

.bill-page .panel h2 {
  margin: 0;
  font-size: 12px;
}

.sankey-chart {
  width: 100%;
  height: 315px;
  margin-top: 12px;
}

.flow {
  fill: none;
  stroke-linecap: butt;
  opacity: .95;
}

.sankey-labels text {
  fill: white;
  font-size: 10px;
  font-weight: 700;
}

.bill-legend {
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  font-size: 10px;
}

.bill-dot {
  width: 18px;
  height: 10px;
  border-radius: 2px;
}

.bill-dot.in { background: var(--green); }
.bill-dot.out { background: var(--red); }

.month-chart {
  width: 100%;
  height: 292px;
  margin-top: 5px;
}

.month-grid path {
  fill: none;
  stroke: rgba(49, 70, 101, .45);
  stroke-dasharray: 3 3;
  animation: month-grid-drift 4.8s linear infinite;
}

.month-axis text {
  fill: #7188a5;
  font-size: 10px;
}

.month-bars .in {
  fill: var(--green);
}

.month-bars .out {
  fill: var(--red);
}

.bill-flow-live {
  transition: opacity .2s ease, filter .2s ease;
}

.sankey-chart:hover .bill-flow-live {
  opacity: .58;
}

.sankey-chart .bill-flow-live:hover {
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, .34));
}

.flow-fx-layer {
  pointer-events: none;
}

.flow-tracer {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 18 126;
  opacity: .92;
  filter: drop-shadow(0 0 9px currentColor);
  animation: bill-flow-run 2.8s linear infinite;
  mix-blend-mode: screen;
}

.flow-particle {
  filter: drop-shadow(0 0 8px currentColor);
  mix-blend-mode: screen;
}

.sankey-node-live {
  transform-box: fill-box;
  transform-origin: center;
  animation: sankey-node-breathe 2.6s ease-in-out infinite;
  animation-delay: var(--node-delay, 0ms);
}

.month-bar-live {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center bottom;
  animation:
    bill-bar-grow .82s cubic-bezier(.2, .8, .2, 1) both,
    bill-bar-breathe 3.2s ease-in-out infinite;
  animation-delay:
    var(--bar-delay, 0ms),
    calc(var(--bar-delay, 0ms) + 900ms);
  transition: filter .18s ease, opacity .18s ease, transform .18s ease;
}

.month-bars:hover .month-bar-live {
  opacity: .55;
}

.month-bars .month-bar-live:hover {
  opacity: 1;
  transform: scaleY(1.035);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, .18));
}

.month-chart {
  overflow: visible;
}

.month-chart::selection,
.sankey-chart::selection {
  background: transparent;
}

.chart-tooltip {
  position: fixed;
  z-index: 70;
  max-width: 220px;
  padding: 7px 9px;
  border: 1px solid rgba(95, 129, 176, .9);
  border-radius: 6px;
  background: rgba(7, 16, 30, .94);
  color: #eaf4ff;
  font-size: 11px;
  line-height: 1.4;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .34);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}

.chart-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.bill-table {
  margin-top: 16px;
  font-size: 11px;
}

.bill-table th,
.bill-table td {
  height: 36px;
  padding: 0 11px;
}

.bill-table th {
  color: #7188a5;
  font-size: 10px;
}

.bill-table td {
  color: #a9c8ee;
}

.bill-table b {
  color: #dcecff;
}

.badge.red {
  color: #ff6a73;
  background: rgba(239, 68, 68, .24);
}

.risk-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 3px;
  background: rgba(239, 68, 68, .26);
  color: #ff545f;
  font-size: 10px;
  font-weight: 700;
}

.amount-panel {
  height: 196px;
  margin-top: 18px;
  overflow: hidden;
}

.amount-panel h2 {
  margin: 0;
  font-size: 12px;
}

.amount-chart {
  width: 100%;
  height: 165px;
  margin-top: 8px;
}

.amount-grid path {
  fill: none;
  stroke: rgba(49, 70, 101, .42);
  stroke-dasharray: 3 3;
}

.amount-line {
  fill: none;
  stroke: var(--violet);
  stroke-width: 2.2;
}

.amount-points circle {
  fill: var(--violet);
  stroke: rgba(255, 255, 255, .55);
}

.bill-intel-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.bill-intel-strip article {
  min-height: 86px;
  padding: 13px 13px 12px;
  border: 1px solid rgba(59, 130, 246, .24);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(27, 49, 79, .84), rgba(10, 22, 38, .96)),
    #101c2d;
}

.bill-intel-strip span,
.bill-intel-strip em {
  display: block;
  color: #8fa4c0;
  font-size: 10px;
  font-style: normal;
  line-height: 1.45;
}

.bill-intel-strip strong {
  display: block;
  margin: 7px 0 5px;
  color: #e7f2ff;
  font-size: 20px;
  line-height: 1;
}

.bill-filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  margin-top: 18px;
  padding: 9px 12px;
  border: 1px solid rgba(59, 130, 246, .25);
  border-radius: 6px;
  background: rgba(11, 24, 42, .88);
}

.bill-filterbar b {
  display: block;
  margin-bottom: 3px;
  color: #eaf4ff;
  font-size: 12px;
}

.bill-filterbar span {
  color: #8fa4c0;
  font-size: 10px;
}

.bill-mode-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.bill-mode-group button {
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(83, 111, 153, .5);
  border-radius: 4px;
  background: rgba(15, 31, 54, .78);
  color: #9eb4cf;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.bill-mode-group button.active {
  border-color: rgba(56, 189, 248, .68);
  background: rgba(37, 99, 235, .28);
  color: #eaf4ff;
}

.bill-investigation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr);
  grid-template-areas:
    "cash holding"
    "cash ai";
  gap: 12px;
  margin-top: 12px;
}

.bill-cash-panel { grid-area: cash; min-height: 365px; }
.bill-holding-panel { grid-area: holding; min-height: 176px; }
.bill-ai-panel { grid-area: ai; min-height: 176px; }

.bill-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.bill-panel-head h2 {
  margin: 0;
}

.cash-collision-map {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 86px minmax(110px, 1fr) 86px minmax(110px, 1fr);
  align-items: center;
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(59, 130, 246, .22);
  border-radius: 6px;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, .2), transparent 62%), rgba(7, 17, 31, .72);
}

.cash-node {
  min-height: 88px;
  padding: 12px;
  border: 1px solid rgba(108, 139, 184, .35);
  border-radius: 6px;
  background: rgba(13, 27, 47, .92);
}

.cash-node b,
.cash-node span,
.cash-node em {
  display: block;
}

.cash-node b {
  color: #eff7ff;
  font-size: 12px;
}

.cash-node span {
  margin: 8px 0 5px;
  font-size: 13px;
  font-weight: 800;
}

.cash-node em {
  color: #8fa4c0;
  font-size: 10px;
  font-style: normal;
}

.cash-node.withdraw span { color: #ff6a73; }
.cash-node.deposit span { color: #10d69b; }
.cash-node.target span { color: #f9c74f; }

.cash-link {
  display: grid;
  place-items: center;
  gap: 7px;
  color: #8fbaff;
  font-size: 10px;
  text-align: center;
}

.cash-link i {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  box-shadow: 0 0 12px rgba(56, 189, 248, .5);
}

.cash-link.amber {
  color: #f9c74f;
}

.cash-link.amber i {
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
  box-shadow: 0 0 12px rgba(245, 158, 11, .46);
}

.collision-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.collision-list article {
  min-height: 96px;
  padding: 12px;
  border: 1px solid rgba(83, 111, 153, .3);
  border-radius: 6px;
  background: rgba(11, 24, 42, .72);
}

.collision-list span,
.collision-list em {
  display: block;
  color: #8fa4c0;
  font-size: 10px;
  font-style: normal;
  line-height: 1.45;
}

.collision-list strong {
  display: block;
  margin: 8px 0 6px;
  color: #eaf4ff;
  font-size: 21px;
}

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

.holding-signal-list article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 9px;
  border: 1px solid rgba(83, 111, 153, .3);
  border-radius: 6px;
  background: rgba(11, 24, 42, .74);
}

.holding-signal-list i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  background: rgba(37, 99, 235, .25);
  color: #9cc7ff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.holding-signal-list b,
.holding-signal-list span {
  display: block;
}

.holding-signal-list b {
  color: #eaf4ff;
  font-size: 11px;
}

.holding-signal-list span {
  margin-top: 3px;
  overflow: hidden;
  color: #8fa4c0;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holding-signal-list strong {
  color: #10d69b;
  font-size: 18px;
  text-align: right;
}

.ai-risk-stack {
  display: grid;
  gap: 8px;
}

.ai-risk-card {
  padding: 9px 10px;
  border: 1px solid rgba(83, 111, 153, .3);
  border-radius: 6px;
  background: rgba(11, 24, 42, .72);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.ai-risk-card.selected {
  border-color: rgba(239, 68, 68, .55);
  background: rgba(69, 24, 32, .44);
}

.ai-risk-card b,
.ai-risk-card span,
.ai-risk-card em {
  display: block;
}

.ai-risk-card b {
  color: #f2f7ff;
  font-size: 11px;
}

.ai-risk-card span {
  margin-top: 4px;
  color: #9eb4cf;
  font-size: 10px;
  line-height: 1.4;
}

.ai-risk-card em {
  margin-top: 7px;
  color: #ffb0b6;
  font-size: 10px;
  font-style: normal;
  line-height: 1.4;
}

.bill-hidden {
  display: none !important;
}

.bill-ai-pulse {
  animation: bill-ai-pulse .9s ease;
}

.call-content {
  padding: 23px 19px 36px 18px;
}

.call-title {
  margin-bottom: 19px;
}

.call-title h1 {
  margin-bottom: 8px;
  font-size: 17px;
}

.call-title p {
  color: #a9bad1;
  font-size: 11px;
}

.call-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.call-metric {
  height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #101c2d;
}

.call-metric p {
  margin: 0 0 10px;
  color: #9db0ca;
  font-size: 11px;
}

.call-metric strong {
  display: block;
  color: white;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

.call-metric-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.call-metric-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.call-metric-icon.blue { color: var(--blue); background: rgba(37, 99, 235, .25); }
.call-metric-icon.teal { color: var(--green); background: rgba(16, 185, 129, .18); }
.call-metric-icon.purple { color: var(--violet); background: rgba(124, 58, 237, .26); }
.call-metric-icon.amber { color: var(--amber); background: rgba(245, 158, 11, .22); }

.call-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "frequency time"
    "contacts circles";
  gap: 18px 12px;
}

.call-card {
  padding: 17px 15px;
}

.call-card h2,
.call-map-panel h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.call-frequency { grid-area: frequency; height: 288px; }
.call-time { grid-area: time; height: 288px; }
.call-contacts { grid-area: contacts; height: 319px; }
.call-circles { grid-area: circles; height: 319px; }

.call-bar-chart,
.call-line-chart {
  width: 100%;
  height: 238px;
  margin-top: 6px;
}

.call-grid-lines path {
  fill: none;
  stroke: rgba(49, 70, 101, .4);
  stroke-dasharray: 3 3;
  animation: call-grid-drift 4.6s linear infinite;
}

.call-axis text {
  fill: #7188a5;
  font-size: 10px;
}

.call-bars rect {
  fill: #3b82f6;
  rx: 1.5px;
}

.call-bar-live {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center bottom;
  animation:
    call-bar-rise .72s cubic-bezier(.2, .8, .2, 1) both,
    call-bar-breathe 3.1s ease-in-out infinite;
  animation-delay:
    var(--bar-delay, 0ms),
    calc(var(--bar-delay, 0ms) + 780ms);
  transition: filter .18s ease, opacity .18s ease, transform .18s ease;
}

.call-bars:hover .call-bar-live {
  opacity: .55;
}

.call-bars .call-bar-live:hover {
  opacity: 1;
  transform: scaleY(1.05);
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, .45));
}

.call-area {
  fill: url(#callCyanFill);
}

.call-line {
  fill: none;
  stroke: #06b6d4;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.call-line-live {
  filter: drop-shadow(0 0 7px rgba(6, 182, 212, .26));
}

.call-line-fx-layer {
  pointer-events: none;
}

.call-line-tracer {
  fill: none;
  stroke: #7dd3fc;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22 130;
  animation: call-line-run 2.7s linear infinite;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, .72));
  opacity: .86;
  mix-blend-mode: screen;
}

.call-line-particle {
  fill: #cffafe;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, .9));
}

.call-line-points circle {
  fill: #06b6d4;
  stroke: rgba(255, 255, 255, .5);
  stroke-width: 1;
}

.call-point-live {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  animation: call-point-pulse 2.4s ease-in-out infinite;
  animation-delay: var(--point-delay, 0ms);
}

.call-table {
  margin-top: 18px;
  font-size: 11px;
}

.call-table th,
.call-table td {
  height: 36px;
  padding: 0 11px;
}

.call-table th {
  color: #7188a5;
  font-size: 10px;
}

.call-table td {
  color: #a9c8ee;
}

.call-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 18px;
  padding: 0 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
}

.call-tag.red {
  color: #ff6a73;
  background: rgba(239, 68, 68, .24);
}

.call-tag.amber {
  color: #ffc247;
  background: rgba(245, 158, 11, .24);
}

.call-tag.blue {
  color: #9fb4cf;
  background: rgba(59, 130, 246, .16);
}

.call-donut-legend {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  color: #879ab4;
  font-size: 10px;
}

.call-donut-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.call-donut-legend i {
  width: 20px;
  height: 10px;
  border-radius: 2px;
  background: var(--c);
}

.call-donut-wrap {
  height: 124px;
  display: grid;
  place-items: center;
}

.call-donut {
  width: 190px;
  height: 150px;
}

.call-donut-base,
.call-donut-arc {
  fill: none;
  stroke-width: 24;
}

.call-donut-base {
  stroke: #1d2b40;
}

.call-donut-arc.red { stroke: var(--red); }
.call-donut-arc.blue { stroke: var(--blue); }
.call-donut-arc.green { stroke: var(--green); }
.call-donut-arc.gray { stroke: #6b7280; }

.call-donut-live {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  animation:
    call-donut-draw .9s cubic-bezier(.2, .8, .2, 1) both,
    call-donut-breathe 3.6s ease-in-out infinite;
  animation-delay:
    var(--arc-delay, 0ms),
    calc(var(--arc-delay, 0ms) + 940ms);
  transition: opacity .18s ease, filter .18s ease;
}

.call-donut:hover .call-donut-live {
  opacity: .62;
}

.call-donut .call-donut-live:hover {
  opacity: 1;
  filter: drop-shadow(0 0 10px currentColor);
}

.call-donut-sweep {
  fill: none;
  stroke: rgba(255, 255, 255, .72);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 18 252;
  animation: call-donut-scan 2.8s linear infinite;
  filter: drop-shadow(0 0 9px rgba(255, 255, 255, .45));
  pointer-events: none;
}

.circle-row-live {
  animation: timeline-rise .45s ease both;
  animation-delay: calc(var(--reveal-index, 0) * 70ms);
}

.circle-breakdown {
  margin-top: 3px;
}

.circle-breakdown div {
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(32, 50, 73, .75);
  color: #a9c8ee;
}

.circle-breakdown span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: white;
}

.circle-breakdown i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.circle-breakdown i.red { background: var(--red); }
.circle-breakdown i.blue { background: var(--blue); }
.circle-breakdown i.green { background: var(--green); }
.circle-breakdown i.gray { background: #6b7280; }

.circle-breakdown em {
  color: #879ab4;
  font-style: normal;
  font-size: 10px;
}

.call-map-panel {
  height: 220px;
  margin-top: 18px;
  padding: 17px 15px;
}

.map-placeholder {
  height: 156px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(10, 20, 34, .28);
}

.call-control-panel {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, .9fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px 16px;
}

.call-case-context span,
.call-selector-group span {
  display: block;
  margin-bottom: 6px;
  color: #7188a5;
  font-size: 10px;
  font-weight: 800;
}

.call-case-context strong {
  display: block;
  color: #f8fbff;
  font-size: 14px;
}

.call-case-context em {
  display: block;
  margin-top: 5px;
  color: #52d6b0;
  font-size: 10px;
  font-style: normal;
}

.call-selector-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.call-selector-group select {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(80, 104, 140, .7);
  border-radius: 5px;
  color: #dcecff;
  background: #0a1422;
  outline: none;
}

.call-action-group {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.call-action-group .primary-btn,
.call-action-group .outline-btn {
  height: 32px;
  white-space: nowrap;
}

.call-source-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.call-source-card {
  min-height: 82px;
  padding: 13px 14px;
  border: 1px solid rgba(43, 64, 94, .95);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(18, 31, 48, .96), rgba(10, 21, 36, .96)),
    #101c2d;
  position: relative;
  overflow: hidden;
}

.call-source-card::after {
  content: "";
  position: absolute;
  inset: auto 13px 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #52d6b0, #f59e0b);
  opacity: .72;
}

.call-source-card span,
.call-source-card em {
  display: block;
  color: #849ab7;
  font-size: 10px;
  font-style: normal;
}

.call-source-card strong {
  display: block;
  margin: 8px 0 6px;
  color: #f8fbff;
  font-size: 15px;
}

.call-source-card.active {
  border-color: rgba(82, 214, 176, .5);
  box-shadow: inset 0 0 0 1px rgba(82, 214, 176, .08);
}

.call-module-grid {
  display: grid;
  grid-template-columns: 1.25fr .9fr .95fr;
  grid-template-areas:
    "trajectory common change"
    "trajectory meeting layers"
    "ai ai layers";
  gap: 12px;
  margin-top: 18px;
}

.call-module-panel {
  min-height: 234px;
  padding: 15px;
}

.call-trajectory-panel { grid-area: trajectory; }
.call-layer-panel { grid-area: layers; }
.call-ai-panel { grid-area: ai; min-height: 186px; }
.call-module-panel:nth-child(2) { grid-area: common; }
.call-module-panel:nth-child(3) { grid-area: change; }
.call-module-panel:nth-child(4) { grid-area: meeting; }

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

.call-panel-head h2 {
  margin: 0;
  color: #f8fbff;
  font-size: 12px;
  font-weight: 800;
}

.call-panel-head span {
  color: #7f94b0;
  font-size: 10px;
  text-align: right;
}

.call-station-map {
  position: relative;
  height: 250px;
  border: 1px solid rgba(43, 64, 94, .9);
  border-radius: 5px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(60, 84, 115, .18) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(60, 84, 115, .18) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(circle at 67% 32%, rgba(239, 68, 68, .16), transparent 24%),
    radial-gradient(circle at 16% 68%, rgba(82, 214, 176, .14), transparent 24%),
    #0a1422;
}

.call-station-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.station-route {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 10 12;
  animation: call-route-flow 2.7s linear infinite;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, .38));
}

.station-route.ghost {
  stroke: #f59e0b;
  stroke-width: 2;
  opacity: .76;
  animation-duration: 3.6s;
}

.station-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  min-width: 52px;
  transform: translate(-50%, -50%);
  padding: 5px 8px;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 999px;
  color: #f8fbff;
  background: rgba(9, 18, 30, .86);
  font-size: 10px;
  text-align: center;
  box-shadow: 0 0 20px rgba(15, 23, 42, .48);
}

.station-node.risk {
  border-color: rgba(239, 68, 68, .55);
  color: #ff9aa0;
}

.station-node.meet {
  border-color: rgba(245, 158, 11, .62);
  color: #ffd37a;
}

.call-route-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.call-route-list li {
  display: grid;
  grid-template-columns: 46px minmax(96px, .55fr) 1fr;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid rgba(43, 64, 94, .66);
  border-radius: 5px;
  background: rgba(10, 20, 34, .48);
}

.call-route-list time {
  color: #38bdf8;
  font-size: 10px;
  font-weight: 800;
}

.call-route-list strong {
  color: #eef6ff;
  font-size: 11px;
}

.call-route-list span {
  color: #849ab7;
  font-size: 10px;
}

.call-common-list,
.call-layer-stack {
  display: grid;
  gap: 8px;
}

.call-common-list button,
.call-layer-stack button {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(58px, .45fr) 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(43, 64, 94, .8);
  border-radius: 5px;
  color: inherit;
  background: rgba(9, 18, 30, .54);
  text-align: left;
  cursor: pointer;
}

.call-common-list button.selected,
.call-layer-stack button.selected {
  border-color: rgba(82, 214, 176, .55);
  background: rgba(18, 47, 55, .58);
}

.call-common-list strong,
.call-layer-stack strong {
  color: #f8fbff;
  font-size: 11px;
}

.call-common-list span,
.call-layer-stack em {
  color: #849ab7;
  font-size: 10px;
  font-style: normal;
}

.call-common-list em,
.call-layer-stack span {
  color: #52d6b0;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.call-common-detail {
  min-height: 86px;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid rgba(56, 189, 248, .22);
  border-radius: 5px;
  background: rgba(8, 29, 45, .56);
}

.call-common-detail strong {
  display: block;
  color: #e6f6ff;
  font-size: 12px;
}

.call-common-detail p,
.call-meeting-card p {
  margin: 7px 0 0;
  color: #9db0ca;
  font-size: 10px;
  line-height: 1.65;
}

.call-change-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.call-change-grid div {
  min-height: 74px;
  padding: 10px;
  border: 1px solid rgba(43, 64, 94, .75);
  border-radius: 5px;
  background: rgba(10, 20, 34, .55);
}

.call-change-grid b,
.call-change-grid span {
  display: block;
  color: #849ab7;
  font-size: 10px;
  font-weight: 700;
}

.call-change-grid strong {
  display: block;
  margin: 4px 0;
  color: #f8fbff;
  font-size: 24px;
}

.call-change-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.call-change-list li {
  display: grid;
  grid-template-columns: auto 62px 1fr;
  gap: 8px;
  align-items: center;
  color: #cde2fa;
  font-size: 10px;
}

.call-change-list strong {
  color: #f8fbff;
  font-size: 11px;
}

.call-change-list em {
  color: #849ab7;
  font-style: normal;
}

.call-meeting-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  min-height: 106px;
  padding: 11px;
  border: 1px solid rgba(245, 158, 11, .25);
  border-radius: 5px;
  background: rgba(39, 28, 12, .34);
}

.call-meeting-card strong {
  color: #fff7e6;
  font-size: 12px;
}

.meeting-radar {
  position: relative;
  width: 64px;
  height: 64px;
  place-self: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, .25) 0 14%, rgba(245, 158, 11, .08) 15% 100%);
}

.meeting-radar i {
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(245, 158, 11, .55);
  border-radius: 50%;
  animation: meeting-ping 2.2s ease-out infinite;
}

.meeting-radar i:nth-child(2) { animation-delay: .48s; }
.meeting-radar i:nth-child(3) { animation-delay: .96s; }

.call-mini-table {
  margin-top: 10px;
  font-size: 10px;
}

.call-mini-table td {
  height: 30px;
  padding: 0 7px;
  border-top: 1px solid rgba(43, 64, 94, .7);
  color: #a9c8ee;
}

.call-ai-panel {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
}

.call-ai-panel .call-panel-head {
  grid-column: 1 / -1;
}

.call-ai-score {
  display: grid;
  place-items: center;
  min-height: 112px;
  border: 1px solid rgba(239, 68, 68, .24);
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 46%, rgba(239, 68, 68, .24), transparent 54%),
    rgba(10, 20, 34, .56);
}

.call-ai-score strong {
  color: #ff7b82;
  font-size: 36px;
  line-height: 1;
}

.call-ai-score span {
  color: #849ab7;
  font-size: 10px;
}

.call-ai-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.call-ai-list li {
  min-height: 35px;
  padding: 8px 10px;
  border: 1px solid rgba(43, 64, 94, .72);
  border-radius: 5px;
  background: rgba(9, 18, 30, .48);
}

.call-ai-list b,
.call-ai-list span {
  display: block;
  font-size: 10px;
}

.call-ai-list b {
  color: #f8fbff;
  margin-bottom: 4px;
}

.call-ai-list span {
  color: #91a6c1;
}

.call-conclusion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.call-conclusion-grid article {
  min-height: 126px;
  padding: 14px;
  border: 1px solid rgba(43, 64, 94, .75);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, .08), transparent 52%),
    rgba(10, 20, 34, .58);
}

.call-conclusion-grid span,
.call-conclusion-grid em {
  display: block;
  color: #849ab7;
  font-size: 10px;
  font-style: normal;
}

.call-conclusion-grid strong {
  display: block;
  margin: 12px 0 8px;
  color: #f8fbff;
  font-size: 20px;
}

.edata-content {
  padding: 22px 13px 36px 18px;
}

.edata-title {
  margin-bottom: 20px;
}

.edata-title h1 {
  margin-bottom: 8px;
  font-size: 17px;
}

.edata-title p {
  color: #a9bad1;
  font-size: 11px;
}

.edata-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.edata-metric {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #101c2d;
}

.edata-metric p {
  margin: 0 0 9px;
  color: #9db0ca;
  font-size: 11px;
}

.edata-metric strong {
  display: block;
  margin-bottom: 9px;
  color: white;
  font-size: 24px;
  line-height: 1;
}

.danger-text,
.safe-text {
  display: block;
  font-size: 10px;
  font-weight: 800;
}

.danger-text { color: #ff3748; }
.safe-text { color: #10e6a7; }

.edata-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.edata-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edata-icon.blue { color: var(--blue); background: rgba(37, 99, 235, .25); }
.edata-icon.green { color: var(--green); background: rgba(16, 185, 129, .23); }
.edata-icon.purple { color: var(--violet); background: rgba(124, 58, 237, .28); }
.edata-icon.amber { color: var(--amber); background: rgba(245, 158, 11, .22); }

.edata-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
}

.edata-panel {
  height: 256px;
  padding: 17px 15px;
  position: relative;
  overflow: hidden;
}

.edata-panel h2,
.edata-detail-panel h2,
.edata-text-panel h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.edata-bar-chart {
  width: 100%;
  height: 226px;
  margin-top: 2px;
}

.edata-bar-grid path {
  fill: none;
  stroke: rgba(49, 70, 101, .42);
  stroke-dasharray: 3 3;
  animation: edata-grid-drift 4.8s linear infinite;
}

.edata-axis text {
  fill: #7188a5;
  font-size: 10px;
}

.edata-bars rect {
  fill: url(#edataBarFill);
  rx: 3px;
}

.edata-bar-live {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: left center;
  animation:
    edata-bar-grow .78s cubic-bezier(.2, .8, .2, 1) both,
    edata-bar-breathe 3.5s ease-in-out infinite;
  animation-delay:
    var(--edata-bar-delay, 0ms),
    calc(var(--edata-bar-delay, 0ms) + 820ms);
  transition: opacity .18s ease, filter .18s ease, transform .18s ease;
}

.edata-bars:hover .edata-bar-live {
  opacity: .5;
}

.edata-bars .edata-bar-live:hover {
  opacity: 1;
  transform: scaleX(1.018);
  filter: drop-shadow(0 0 12px rgba(95, 151, 255, .48));
}

.edata-tooltip line {
  stroke: rgba(157, 176, 202, .75);
  stroke-dasharray: 3 3;
  animation: edata-grid-drift 3.8s linear infinite;
}

.edata-tooltip rect {
  fill: #16263b;
  stroke: #2a3e5a;
}

.edata-tooltip text {
  fill: #dcecff;
  font-size: 10px;
  font-weight: 800;
}

.edata-tooltip circle {
  fill: var(--violet);
}

.edata-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  flex-wrap: wrap;
}

.edata-chip-row span {
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
}

.edata-chip-live {
  cursor: pointer;
  animation:
    timeline-rise .45s ease backwards,
    edata-chip-pulse 3.8s ease-in-out infinite;
  animation-delay:
    var(--edata-chip-delay, 0ms),
    calc(var(--edata-chip-delay, 0ms) + 900ms);
  transition: transform .18s ease, filter .18s ease;
}

.edata-chip-live:hover {
  transform: translateY(-2px);
  filter: brightness(1.18);
}

.edata-chip-row .red { color: #ff5260; background: rgba(239, 68, 68, .26); }
.edata-chip-row .blue { color: #74adff; background: rgba(59, 130, 246, .26); }
.edata-chip-row .gray { color: #b7c4d3; background: rgba(100, 116, 139, .25); }
.edata-chip-row .green { color: #19e4a6; background: rgba(16, 185, 129, .22); }
.edata-chip-row .slate { color: #c3cbd6; background: rgba(71, 85, 105, .28); }

.edata-donut-layout {
  height: 192px;
  display: grid;
  place-items: center;
}

.edata-donut-legend {
  display: flex;
  justify-content: center;
  gap: 10px;
  color: #879ab4;
  font-size: 9px;
  flex-wrap: wrap;
}

.edata-donut-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.edata-donut-legend i {
  width: 18px;
  height: 9px;
  border-radius: 2px;
  background: var(--c);
}

.edata-donut {
  width: 320px;
  height: 160px;
}

.edata-donut-base,
.edata-donut-arc {
  fill: none;
  stroke-width: 25;
}

.edata-donut-base { stroke: #1d2b40; }
.edata-donut-arc.red { stroke: var(--red); }
.edata-donut-arc.blue { stroke: var(--blue); }
.edata-donut-arc.amber { stroke: var(--amber); }
.edata-donut-arc.green { stroke: var(--green); }
.edata-donut-arc.purple { stroke: var(--violet); }

.edata-donut-live {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  animation:
    edata-donut-draw .92s cubic-bezier(.2, .8, .2, 1) both,
    edata-donut-breathe 3.7s ease-in-out infinite;
  animation-delay:
    var(--edata-arc-delay, 0ms),
    calc(var(--edata-arc-delay, 0ms) + 960ms);
  transition: opacity .18s ease, filter .18s ease;
}

.edata-donut:hover .edata-donut-live {
  opacity: .62;
}

.edata-donut .edata-donut-live:hover {
  opacity: 1;
  filter: drop-shadow(0 0 10px currentColor);
}

.edata-donut-labels path {
  fill: none;
  stroke: rgba(137, 156, 180, .85);
  stroke-width: 1;
}

.edata-label-live {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: edata-label-draw .62s ease forwards;
  animation-delay: var(--edata-label-delay, 0ms);
}

.edata-donut-labels text {
  fill: #879ab4;
  font-size: 9px;
}

.edata-detail-panel {
  min-height: 168px;
  margin-top: 18px;
  padding: 17px 15px 14px;
  position: relative;
  overflow: hidden;
}

.edata-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.edata-section-head > div {
  display: flex;
  gap: 8px;
}

.edata-section-head .ghost-btn,
.edata-section-head .primary-btn {
  height: 24px;
  padding: 0 10px;
  font-size: 10px;
}

.edata-section-head .primary-btn {
  margin-left: 0;
}

.edata-type-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(112px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.edata-type-grid article {
  height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0d1a2a;
  position: relative;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.edata-type-grid article::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle at 50% 40%, rgba(59, 130, 246, .16), transparent 52%);
  opacity: 0;
  transform: scale(.8);
  transition: opacity .2s ease, transform .2s ease;
}

.edata-type-grid article > * {
  position: relative;
  z-index: 1;
}

.edata-type-live {
  cursor: pointer;
  animation: edata-card-rise .5s ease backwards;
  animation-delay: var(--edata-card-delay, 0ms);
}

.edata-type-grid article:hover,
.edata-type-grid article.active {
  transform: translateY(-3px);
  border-color: rgba(92, 153, 255, .7);
  background: #102035;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(96, 165, 250, .08);
}

.edata-type-grid article:hover::before,
.edata-type-grid article.active::before {
  opacity: 1;
  transform: scale(1);
}

.edata-type-grid span {
  font-size: 19px;
  line-height: 1;
}

.edata-type-grid b {
  color: white;
  font-size: 11px;
}

.edata-type-grid em {
  color: #7188a5;
  font-size: 10px;
  font-style: normal;
}

.edata-type-grid strong {
  color: #ff3748;
  font-size: 10px;
}

.edata-type-grid .safe {
  color: #10e6a7;
}

.edata-text-panel {
  height: 216px;
  margin-top: 18px;
  padding: 17px 15px;
  position: relative;
  overflow: hidden;
}

.edata-table {
  margin-top: 16px;
  font-size: 11px;
}

.edata-table th,
.edata-table td {
  height: 34px;
  padding: 0 11px;
}

.edata-table th {
  color: #7188a5;
  font-size: 10px;
}

.edata-table td {
  color: #a9c8ee;
}

.edata-row-live {
  animation: edata-row-in .48s ease both;
  animation-delay: var(--edata-row-delay, 0ms);
}

.edata-row-live:hover td {
  background: rgba(59, 130, 246, .08);
  color: #e4f1ff;
}

.edata-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 3px;
  background: rgba(59, 130, 246, .23);
  color: #5ba0ff;
  font-size: 10px;
  font-weight: 800;
}

.edata-workbench {
  margin-top: 18px;
  padding: 17px 15px;
  overflow: hidden;
}

.edata-section-head p {
  margin: 7px 0 0;
  color: #8298b5;
  font-size: 10px;
}

.edata-action-row {
  display: flex;
  gap: 8px;
}

.edata-workbench-grid {
  display: grid;
  grid-template-columns: 1.25fr .85fr .85fr;
  gap: 10px;
  margin-top: 14px;
}

.edata-focus-card,
.edata-ai-score,
.edata-parser-score {
  min-height: 126px;
  padding: 14px;
  border: 1px solid rgba(60, 84, 118, .78);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, .13), transparent 48%),
    rgba(8, 18, 31, .82);
  position: relative;
  overflow: hidden;
}

.edata-ai-score {
  background:
    linear-gradient(135deg, rgba(16, 185, 129, .13), transparent 50%),
    rgba(8, 18, 31, .82);
}

.edata-parser-score {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, .13), transparent 50%),
    rgba(8, 18, 31, .82);
}

.edata-focus-card::after,
.edata-ai-score::after,
.edata-parser-score::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, .07), transparent 58%);
  transform: translateX(-120%);
  animation: scanner-sweep 5.6s ease-in-out infinite;
}

.edata-focus-card > *,
.edata-ai-score > *,
.edata-parser-score > * {
  position: relative;
  z-index: 1;
}

.edata-focus-card span,
.edata-ai-score span,
.edata-parser-score span {
  display: block;
  color: #7f94af;
  font-size: 10px;
  font-weight: 800;
}

.edata-focus-card strong,
.edata-ai-score strong,
.edata-parser-score strong {
  display: block;
  margin: 11px 0 8px;
  color: #f7fbff;
  font-size: 24px;
  line-height: 1;
}

.edata-focus-card p,
.edata-ai-score p,
.edata-parser-score p {
  margin: 0;
  color: #a9bad1;
  font-size: 11px;
  line-height: 1.7;
}

.edata-focus-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(69, 91, 124, .55);
}

.edata-focus-card b {
  color: #7f94af;
  font-size: 10px;
}

.edata-focus-card em {
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(239, 68, 68, .2);
  color: #ff6874;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
}

.edata-type-grid article.selected {
  border-color: rgba(16, 185, 129, .75);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .2);
}

.edata-preview-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 10px;
  margin-top: 12px;
}

.edata-preview-card {
  padding: 12px;
  border: 1px solid rgba(55, 76, 108, .8);
  border-radius: 5px;
  background: rgba(8, 18, 31, .72);
}

.edata-preview-card > span {
  display: block;
  margin-bottom: 9px;
  color: #7f94af;
  font-size: 10px;
  font-weight: 800;
}

.edata-preview-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  min-height: 34px;
  align-items: center;
  border-top: 1px solid rgba(55, 76, 108, .55);
}

.edata-preview-row:first-child {
  border-top: 0;
}

.edata-preview-row b,
.edata-structure-list span {
  color: #74adff;
  font-size: 10px;
}

.edata-preview-row span,
.edata-structure-list strong {
  color: #d7e8ff;
  font-size: 11px;
  line-height: 1.6;
}

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

.edata-structure-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 31px;
  padding: 0 10px;
  border-radius: 4px;
  background: rgba(15, 31, 52, .86);
}

.edata-analysis-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px 12px;
  margin-top: 18px;
}

.edata-analysis-grid .edata-ai-panel {
  grid-column: 1 / -1;
}

.edata-analysis-grid .edata-text-panel,
.edata-tag-panel,
.edata-ai-panel {
  height: auto;
  min-height: 300px;
  padding: 17px 15px;
  overflow: hidden;
}

.edata-textarea {
  width: 100%;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(60, 84, 118, .88);
  border-radius: 5px;
  background: rgba(5, 13, 24, .72);
  color: #d9ebff;
  font-size: 11px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
}

.edata-textarea:focus {
  border-color: rgba(59, 130, 246, .9);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.edata-entity-strip {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.edata-entity-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 3px;
  background: rgba(59, 130, 246, .18);
  color: #96c4ff;
  font-size: 10px;
  font-weight: 800;
}

.edata-keyword-input {
  display: grid;
  grid-template-columns: 1fr 58px;
  gap: 8px;
  margin-top: 14px;
}

.edata-keyword-input input,
.edata-keyword-input button {
  height: 32px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
}

.edata-keyword-input input {
  min-width: 0;
  padding: 0 10px;
  border: 1px solid rgba(60, 84, 118, .88);
  background: rgba(5, 13, 24, .72);
  color: #dcecff;
  outline: none;
}

.edata-keyword-input button {
  border: 0;
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: white;
  cursor: pointer;
}

.edata-keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.edata-keyword-cloud button {
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(60, 84, 118, .82);
  border-radius: 3px;
  background: rgba(12, 26, 44, .9);
  color: #a9bad1;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, transform .18s ease, background .18s ease;
}

.edata-keyword-cloud button:hover,
.edata-keyword-cloud button.active {
  transform: translateY(-1px);
  border-color: rgba(255, 82, 96, .8);
  background: rgba(239, 68, 68, .16);
  color: #ff8b94;
}

.edata-keyword-cloud button.hot {
  border-color: rgba(245, 158, 11, .58);
  color: #ffc46c;
}

.edata-hit-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.edata-hit-list article,
.edata-semantic-list article {
  padding: 11px 12px;
  border: 1px solid rgba(55, 76, 108, .82);
  border-radius: 5px;
  background: rgba(8, 18, 31, .76);
}

.edata-hit-list span,
.edata-semantic-list span {
  display: inline-flex;
  height: 20px;
  align-items: center;
  padding: 0 7px;
  border-radius: 3px;
  background: rgba(239, 68, 68, .18);
  color: #ff6874;
  font-size: 10px;
  font-weight: 900;
}

.edata-hit-list strong {
  display: inline-block;
  margin-left: 8px;
  color: #95c4ff;
  font-size: 10px;
}

.edata-hit-list p,
.edata-hit-list em,
.edata-semantic-list p {
  display: block;
  margin: 8px 0 0;
  color: #d7e8ff;
  font-size: 11px;
  line-height: 1.65;
}

.edata-hit-list em {
  color: #8fa4c0;
  font-style: normal;
}

.edata-semantic-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.edata-semantic-list article {
  min-height: 138px;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, .11), transparent 55%),
    rgba(8, 18, 31, .78);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.edata-semantic-list article.active {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, .72);
  box-shadow: 0 15px 30px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(16, 185, 129, .14);
}

.edata-semantic-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.edata-semantic-list strong {
  color: #19e4a6;
  font-size: 17px;
}

.edata-full-table {
  height: auto;
}

.track-content {
  padding: 22px 14px 22px 18px;
}

.track-title {
  margin-bottom: 20px;
}

.track-title h1 {
  margin-bottom: 8px;
  font-size: 17px;
}

.track-title p {
  color: #a9bad1;
  font-size: 11px;
}

.track-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.track-metric {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #101c2d;
}

.track-metric p {
  margin: 0 0 9px;
  color: #9db0ca;
  font-size: 11px;
}

.track-metric strong {
  display: block;
  color: white;
  font-size: 24px;
  line-height: 1;
}

.track-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.track-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.track-icon.blue { color: var(--blue); background: rgba(37, 99, 235, .25); }
.track-icon.green { color: var(--green); background: rgba(16, 185, 129, .22); }
.track-icon.amber { color: var(--amber); background: rgba(245, 158, 11, .22); }
.track-icon.purple { color: var(--violet); background: rgba(124, 58, 237, .26); }

.track-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.track-map-panel,
.track-today-panel {
  height: 492px;
}

.track-map-panel {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.track-map-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: rgba(12, 22, 36, .32);
  pointer-events: none;
}

.track-map-empty {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6f85a0;
}

.track-map-pin {
  width: 40px;
  height: 40px;
  margin-bottom: 13px;
  fill: none;
  stroke: #657d9b;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.track-map-empty h2 {
  margin: 0 0 11px;
  color: #8da1bb;
  font-size: 13px;
  font-weight: 700;
}

.track-map-empty p {
  margin: 0 0 21px;
  color: #647d9b;
  font-size: 10px;
}

.track-map-tabs {
  display: flex;
  gap: 6px;
}

.track-map-tabs button {
  height: 25px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #0d1a2b;
  color: #8096b3;
  font-size: 10px;
  cursor: pointer;
}

.track-map-tabs .active {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
  font-weight: 700;
}

.track-today-panel {
  padding: 17px 16px;
}

.track-today-panel h2,
.track-history-panel h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.track-timeline {
  position: relative;
  margin: 16px 0 0;
  padding: 0 0 0 24px;
  list-style: none;
}

.track-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 9px;
  width: 1px;
  background: #31527a;
}

.track-timeline li {
  position: relative;
  min-height: 64px;
  padding-left: 0;
}

.track-timeline li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px #112239;
}

.track-timeline li.green::before {
  background: var(--green);
}

.track-timeline li.amber::before {
  background: var(--amber);
}

.track-timeline time {
  display: block;
  margin-bottom: 8px;
  color: #5279ae;
  font-size: 10px;
}

.track-timeline strong {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-size: 11px;
  line-height: 1;
}

.track-timeline span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 3px;
  background: #1a2a40;
  color: #8ea2bd;
  font-size: 10px;
}

.track-history-panel {
  height: 254px;
  margin-top: 18px;
  padding: 17px 15px;
}

.track-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.track-section-head > div {
  display: flex;
  gap: 8px;
}

.track-section-head .ghost-btn,
.track-section-head .primary-btn {
  height: 24px;
  padding: 0 10px;
  font-size: 10px;
}

.track-section-head .primary-btn {
  margin-left: 0;
}

.track-table {
  margin-top: 14px;
  font-size: 11px;
}

.track-table th,
.track-table td {
  height: 38px;
  padding: 0 12px;
}

.track-table th {
  color: #7188a5;
  font-size: 10px;
}

.track-table td {
  color: #9fc3ec;
}

.track-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 19px;
  padding: 0 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
}

.track-badge.blue {
  color: #74adff;
  background: rgba(59, 130, 246, .28);
}

.track-badge.green {
  color: #14e2a5;
  background: rgba(16, 185, 129, .24);
}

.track-badge.red {
  color: #ff5764;
  background: rgba(239, 68, 68, .26);
}

.track-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.track-title-actions,
.track-replay-controls,
.track-ak-box,
.track-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.track-title-actions select,
.track-ak-box input {
  height: 30px;
  border: 1px solid #253955;
  border-radius: 4px;
  background: #0b1728;
  color: #d9e7fb;
  font-size: 11px;
  outline: none;
}

.track-title-actions select {
  min-width: 96px;
  padding: 0 10px;
}

.track-ak-box input {
  width: 154px;
  padding: 0 9px;
}

.track-title-actions .ghost-btn,
.track-title-actions .primary-btn,
.track-replay-controls button,
.track-ak-box button,
.track-filter-group button {
  height: 30px;
  padding: 0 11px;
  border-radius: 4px;
  font-size: 11px;
}

.track-control-panel {
  min-height: 50px;
  margin-bottom: 14px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.track-filter-group button,
.track-replay-controls button,
.track-ak-box button {
  border: 1px solid #26405f;
  background: #0d1b2d;
  color: #8fa8c7;
  cursor: pointer;
}

.track-filter-group button.active,
.track-filter-group button:hover,
.track-replay-controls button:hover,
.track-ak-box button:hover {
  border-color: #2f80ff;
  background: rgba(37, 99, 235, .18);
  color: #e8f2ff;
}

.track-ak-box span {
  color: #75a8df;
  font-size: 11px;
}

.track-map-top {
  position: absolute;
  z-index: 8;
  left: 12px;
  right: 12px;
  top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.track-map-top button {
  pointer-events: auto;
}

.track-map-stage {
  position: relative;
  height: 100%;
  min-height: 492px;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 18%, rgba(34, 197, 94, .18), transparent 28%),
    radial-gradient(circle at 20% 70%, rgba(37, 99, 235, .20), transparent 34%),
    #0a1422;
}

.track-baidu-map,
.track-fallback-map {
  position: absolute;
  inset: 0;
}

.track-baidu-map {
  z-index: 1;
  opacity: 0;
  transition: opacity .25s ease;
}

.track-map-panel.baidu-ready .track-baidu-map {
  opacity: 1;
}

.track-map-panel.baidu-ready .track-fallback-map {
  opacity: .18;
  pointer-events: none;
}

.track-fallback-map {
  z-index: 2;
  transition: opacity .25s ease;
}

.track-fallback-map svg {
  width: 100%;
  height: 100%;
}

.track-grid-lines path {
  fill: none;
  stroke: rgba(126, 158, 194, .12);
  stroke-width: 1;
}

.track-city-line {
  fill: none;
  stroke: url(#trackRouteGradient);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 18 16;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, .34));
  animation: trackRouteFlow 7s linear infinite;
}

.track-city-line.ghost {
  stroke: rgba(148, 163, 184, .35);
  stroke-width: 4;
  stroke-dasharray: 9 13;
  animation-duration: 9s;
}

.track-map-points {
  position: absolute;
  inset: 0;
}

.track-point {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #081221;
  border-radius: 50%;
  background: var(--point-color, #38bdf8);
  box-shadow: 0 0 0 5px rgba(56, 189, 248, .14), 0 0 20px var(--point-color, #38bdf8);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.track-point::after {
  content: attr(data-label);
  position: absolute;
  left: 16px;
  top: -10px;
  min-width: 88px;
  padding: 5px 7px;
  border: 1px solid rgba(126, 158, 194, .28);
  border-radius: 4px;
  background: rgba(7, 16, 29, .86);
  color: #dbeafe;
  font-size: 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: .16s ease;
  pointer-events: none;
}

.track-point:hover::after,
.track-point.active::after {
  opacity: 1;
  transform: translateY(0);
}

.track-point.active {
  width: 18px;
  height: 18px;
  z-index: 4;
  animation: trackPointPulse 1.15s ease infinite;
}

.track-point.dimmed {
  opacity: .22;
}

.track-map-legend {
  position: absolute;
  z-index: 9;
  left: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.track-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(126, 158, 194, .26);
  border-radius: 4px;
  background: rgba(9, 20, 35, .82);
  color: #a7bdd8;
  font-size: 10px;
}

.track-map-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
}

.track-map-legend .hotel { background: #22c55e; }
.track-map-legend .trade { background: #f97316; }
.track-map-legend .mobile { background: #a855f7; }

.track-side-panel {
  height: 492px;
  padding: 17px 16px;
  overflow: hidden;
}

.track-section-head span {
  color: #6f91bc;
  font-size: 10px;
}

.track-timeline li.active {
  transform: translateX(2px);
}

.track-timeline li.active::before {
  width: 10px;
  height: 10px;
  left: -21px;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .18), 0 0 18px rgba(56, 189, 248, .75);
}

.track-timeline em {
  display: block;
  margin-top: 7px;
  color: #5f7897;
  font-size: 10px;
  font-style: normal;
}

.track-analysis-grid {
  display: grid;
  grid-template-columns: 1.24fr .76fr;
  gap: 12px;
  margin-top: 14px;
}

.track-analysis-grid.wide {
  grid-template-columns: 1.45fr .55fr;
}

.track-source-panel,
.track-ai-panel,
.track-relation-panel {
  min-height: 230px;
  padding: 16px;
}

.track-source-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.track-source-card {
  min-height: 142px;
  padding: 13px;
  border: 1px solid rgba(126, 158, 194, .18);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(17, 32, 52, .92), rgba(12, 24, 40, .88));
}

.track-source-card b,
.track-ai-score strong {
  display: block;
  color: white;
  font-size: 13px;
}

.track-source-card strong {
  display: block;
  margin: 12px 0 6px;
  color: #79b7ff;
  font-size: 24px;
  line-height: 1;
}

.track-source-card span,
.track-source-card p,
.track-ai-score p,
.track-ai-list p,
.track-relation-list p {
  margin: 0;
  color: #8da4c1;
  font-size: 11px;
  line-height: 1.6;
}

.track-source-card i {
  display: block;
  height: 5px;
  margin-top: 13px;
  border-radius: 99px;
  background: #10243d;
  overflow: hidden;
}

.track-source-card i::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--source-rate, 70%);
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #22c55e);
}

.track-ai-score {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(56, 189, 248, .22);
  border-radius: 6px;
  background: rgba(12, 28, 49, .78);
}

.track-ai-list,
.track-relation-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.track-ai-list article,
.track-relation-list article {
  padding: 11px;
  border: 1px solid rgba(126, 158, 194, .18);
  border-radius: 5px;
  background: rgba(8, 18, 32, .72);
}

.track-ai-list article.hot,
.track-relation-list article.hot {
  border-color: rgba(249, 115, 22, .45);
  background: rgba(249, 115, 22, .08);
}

.track-ai-list header,
.track-relation-list header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.track-ai-list b,
.track-relation-list b {
  color: #dbeafe;
  font-size: 12px;
}

.track-ai-list span,
.track-relation-list span {
  color: #66e4af;
  font-size: 10px;
}

.track-history-panel {
  height: auto;
  min-height: 286px;
}

.track-table td:nth-child(4),
.track-table td:nth-child(5) {
  color: #b9cce5;
}

.track-badge.amber {
  color: #ffc46b;
  background: rgba(245, 158, 11, .24);
}

.track-badge.purple {
  color: #c4a5ff;
  background: rgba(124, 58, 237, .24);
}

.track-content.track-factual-loading > :not(.api-state) {
  visibility: hidden;
}

.track-content[data-trajectory-state] .track-city-line {
  display: none;
}

.track-factual-rule {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(56, 189, 248, .28);
  border-radius: 4px;
  background: rgba(14, 39, 65, .72);
  color: #9dd8ff !important;
  letter-spacing: .02em;
}

.track-factual-empty {
  display: grid;
  min-height: 92px;
  place-items: center;
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(126, 158, 194, .25);
  border-radius: 6px;
  background: rgba(8, 18, 32, .44);
  color: #7992b1;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.track-map-factual-empty {
  position: absolute;
  z-index: 5;
  inset: 50% auto auto 50%;
  width: min(320px, calc(100% - 40px));
  min-height: 108px;
  transform: translate(-50%, -50%);
  border-color: rgba(56, 189, 248, .25);
  background: rgba(7, 18, 32, .9);
  color: #9db4cf;
}

.track-timeline-empty {
  display: grid;
  min-height: 120px !important;
  place-items: center;
  color: #7890ac;
  font-size: 11px;
  text-align: center;
}

.track-timeline-empty::before {
  background: #3b516c !important;
}

.track-table-empty {
  height: 112px !important;
  color: #7890ac !important;
  text-align: center;
}

.track-content button:disabled,
.track-content select:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.track-point.source-hotel,
.track-map-legend i.hotel { --point-color: #22c55e; background: #22c55e; }
.track-point.source-trade,
.track-map-legend i.trade { --point-color: #f97316; background: #f97316; }
.track-point.source-mobile,
.track-map-legend i.mobile { --point-color: #a855f7; background: #a855f7; }

.track-content button:focus-visible,
.track-content select:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

@keyframes trackRouteFlow {
  to { stroke-dashoffset: -136; }
}

@keyframes trackPointPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(56, 189, 248, .14), 0 0 20px var(--point-color, #38bdf8); }
  50% { box-shadow: 0 0 0 11px rgba(56, 189, 248, .06), 0 0 30px var(--point-color, #38bdf8); }
}

.timeaxis-content {
  padding: 22px 19px 34px 18px;
}

.timeaxis-title {
  margin-bottom: 28px;
}

.timeaxis-title h1 {
  margin-bottom: 8px;
  font-size: 17px;
}

.timeaxis-title p {
  color: #a9bad1;
  font-size: 11px;
}

.timeaxis-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 27px;
  margin-bottom: 13px;
}

.timeaxis-date-group {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7188a5;
  font-size: 10px;
}

.timeaxis-date-group button {
  height: 27px;
  min-width: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #0d1a2b;
  color: white;
  font-size: 11px;
  cursor: pointer;
}

.timeaxis-date-group i {
  width: 10px;
  height: 10px;
  border: 1px solid #2d4566;
  border-radius: 2px;
}

.timeaxis-date-group em {
  color: #7188a5;
  font-style: normal;
}

.timeaxis-chips {
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeaxis-chips button {
  height: 23px;
  min-width: 31px;
  padding: 0 8px;
  border: 0;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.timeaxis-chips .red { color: #ff626d; background: rgba(239, 68, 68, .28); }
.timeaxis-chips .green { color: #13e3a6; background: rgba(16, 185, 129, .24); }
.timeaxis-chips .blue { color: #73adff; background: rgba(59, 130, 246, .26); }
.timeaxis-chips .teal { color: #31e3c2; background: rgba(20, 184, 166, .24); }
.timeaxis-chips .cyan { color: #40d8ef; background: rgba(6, 182, 212, .22); }

.timeaxis-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeaxis-actions .ghost-btn,
.timeaxis-actions .primary-btn {
  height: 27px;
  padding: 0 10px;
  font-size: 10px;
}

.timeaxis-actions .primary-btn {
  margin-left: 0;
}

.timeaxis-chart-panel {
  height: 322px;
  padding: 17px 15px 10px;
}

.timeaxis-chart-panel h2,
.timeaxis-event-panel h2,
.timeaxis-insight-panel h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.timeaxis-scatter {
  width: 100%;
  height: 284px;
  margin-top: 8px;
}

.timeaxis-grid path {
  fill: none;
  stroke: rgba(49, 70, 101, .42);
  stroke-dasharray: 3 3;
}

.timeaxis-y text,
.timeaxis-x text {
  fill: #7188a5;
  font-size: 9px;
}

.timeaxis-points circle {
  stroke: rgba(255, 255, 255, .18);
  stroke-width: 1;
}

.timeaxis-points .red { fill: var(--red); }
.timeaxis-points .orange { fill: var(--amber); }
.timeaxis-points .blue { fill: var(--blue); }
.timeaxis-points .green { fill: var(--green); }
.timeaxis-points .violet { fill: var(--violet); }

.timeaxis-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.timeaxis-event-panel,
.timeaxis-insight-panel {
  min-height: 520px;
  padding: 17px 15px;
}

.timeaxis-event-list {
  position: relative;
  margin: 18px 0 0;
  padding: 0 0 0 22px;
  list-style: none;
}

.timeaxis-event-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 10px;
  width: 1px;
  background: #31527a;
}

.timeaxis-event-list li {
  position: relative;
  min-height: 64px;
}

.timeaxis-event-list li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px #112239;
}

.timeaxis-event-list li.red::before { background: var(--red); }
.timeaxis-event-list li.orange::before { background: var(--amber); }
.timeaxis-event-list li.blue::before { background: var(--blue); }
.timeaxis-event-list li.green::before { background: var(--green); }

.timeaxis-event-list time {
  display: block;
  margin-bottom: 9px;
  color: #5279ae;
  font-size: 10px;
}

.timeaxis-event-list strong {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-size: 11px;
}

.timeaxis-event-list p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7188a5;
  font-size: 10px;
}

.timeaxis-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  min-width: 35px;
  padding: 0 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
}

.timeaxis-tag.red { color: #ff626d; background: rgba(239, 68, 68, .28); }
.timeaxis-tag.green { color: #13e3a6; background: rgba(16, 185, 129, .24); }
.timeaxis-tag.blue { color: #73adff; background: rgba(59, 130, 246, .26); }
.timeaxis-tag.teal { color: #31e3c2; background: rgba(20, 184, 166, .24); }
.timeaxis-tag.cyan { color: #40d8ef; background: rgba(6, 182, 212, .22); }

.timeaxis-donut-section {
  min-height: 205px;
}

.timeaxis-legend {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 17px;
  color: #879ab4;
  font-size: 10px;
  flex-wrap: wrap;
}

.timeaxis-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.timeaxis-legend i {
  width: 18px;
  height: 9px;
  border-radius: 2px;
  background: var(--c);
}

.timeaxis-donut {
  width: 100%;
  height: 160px;
  margin-top: 1px;
}

.timeaxis-donut-base,
.timeaxis-arc {
  fill: none;
  stroke-width: 24;
}

.timeaxis-donut-base {
  stroke: #1d2b40;
}

.timeaxis-arc.red { stroke: var(--red); }
.timeaxis-arc.orange { stroke: var(--amber); }
.timeaxis-arc.blue { stroke: var(--blue); }
.timeaxis-arc.green { stroke: var(--green); }
.timeaxis-arc.violet { stroke: var(--violet); }
.timeaxis-arc.cyan { stroke: var(--cyan); }
.timeaxis-arc.gray { stroke: #6b7280; }

.timeaxis-donut-labels path {
  fill: none;
  stroke: rgba(137, 156, 180, .85);
  stroke-width: 1;
}

.timeaxis-donut-labels text {
  fill: #879ab4;
  font-size: 9px;
}

.timeaxis-key-section {
  margin-top: 22px;
}

.timeaxis-key-list {
  display: grid;
  gap: 10px;
  margin-top: 13px;
}

.timeaxis-key-list article {
  position: relative;
  min-height: 42px;
  padding: 10px 12px 8px 29px;
  border-radius: 5px;
  background: rgba(11, 22, 36, .38);
}

.timeaxis-key-list i {
  position: absolute;
  left: 13px;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.timeaxis-key-list i.red { background: var(--red); }
.timeaxis-key-list i.orange { background: var(--amber); }
.timeaxis-key-list i.blue { background: var(--blue); }

.timeaxis-key-list strong {
  display: block;
  margin-bottom: 6px;
  color: white;
  font-size: 11px;
}

.timeaxis-key-list span {
  display: block;
  color: #7188a5;
  font-size: 10px;
}

.timeaxis-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.timeaxis-title h1 {
  font-size: 21px;
}

.timeaxis-title p {
  max-width: 760px;
  line-height: 1.7;
}

.timeaxis-title-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.timeaxis-title-actions .ghost-btn,
.timeaxis-title-actions .primary-btn,
.timeaxis-panel-head .ghost-btn {
  min-height: 31px;
  padding: 0 13px;
  font-size: 11px;
  white-space: nowrap;
}

.timeaxis-subject {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #7188a5;
  font-size: 10px;
}

.timeaxis-subject select {
  height: 29px;
  min-width: 92px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0d1a2b;
  color: white;
  font-size: 11px;
}

.timeaxis-chips button {
  position: relative;
  opacity: .72;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.timeaxis-chips button.active {
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 0 18px rgba(56, 189, 248, .08);
}

.timeaxis-chips button:hover {
  transform: translateY(-1px);
}

.timeaxis-chips .orange { color: #ffd18a; background: rgba(245, 158, 11, .24); }

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

.timeaxis-fusion-card {
  position: relative;
  min-height: 104px;
  padding: 15px 14px 13px;
  border: 1px solid rgba(55, 84, 124, .62);
  border-radius: 7px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 30, 49, .94), rgba(8, 17, 30, .96)),
    radial-gradient(circle at top right, var(--card-glow, rgba(56, 189, 248, .18)), transparent 58%);
}

.timeaxis-fusion-card::after {
  content: "";
  position: absolute;
  inset: auto 12px 10px 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--card-line, #38bdf8), transparent);
  opacity: .75;
}

.timeaxis-fusion-card.bill { --card-line: #10b981; --card-glow: rgba(16, 185, 129, .2); }
.timeaxis-fusion-card.call { --card-line: #14b8a6; --card-glow: rgba(20, 184, 166, .18); }
.timeaxis-fusion-card.travel { --card-line: #3b82f6; --card-glow: rgba(59, 130, 246, .2); }
.timeaxis-fusion-card.hotel { --card-line: #f59e0b; --card-glow: rgba(245, 158, 11, .2); }
.timeaxis-fusion-card.border { --card-line: #ef4444; --card-glow: rgba(239, 68, 68, .18); }

.timeaxis-fusion-card span,
.timeaxis-fusion-card em {
  display: block;
  color: #8aa1bd;
  font-size: 10px;
  font-style: normal;
  line-height: 1.55;
}

.timeaxis-fusion-card strong {
  display: block;
  margin: 7px 0 5px;
  color: white;
  font-size: 28px;
  letter-spacing: 0;
}

.timeaxis-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 14px;
  align-items: start;
}

.timeaxis-main-stack,
.timeaxis-ai-stack {
  display: grid;
  gap: 14px;
}

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

.timeaxis-panel-head h2,
.timeaxis-evidence-panel h2,
.timeaxis-reconstruction-panel h2 {
  margin: 0 0 6px;
  color: #f8fbff;
  font-size: 13px;
  font-weight: 800;
}

.timeaxis-panel-head span {
  display: block;
  color: #7188a5;
  font-size: 10px;
}

.timeaxis-stage-tabs {
  display: inline-flex;
  gap: 5px;
  padding: 3px;
  border: 1px solid rgba(55, 84, 124, .55);
  border-radius: 6px;
  background: rgba(8, 17, 30, .72);
}

.timeaxis-stage-tabs button,
.timeaxis-ai-actions button {
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #879ab4;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.timeaxis-stage-tabs button.active,
.timeaxis-ai-actions button.active,
.timeaxis-stage-tabs button:hover,
.timeaxis-ai-actions button:hover {
  background: rgba(56, 189, 248, .14);
  color: #dff7ff;
}

.timeaxis-chart-panel {
  height: auto;
  min-height: 360px;
  padding: 17px 15px 13px;
  overflow-x: auto;
}

.timeaxis-scatter {
  min-width: 900px;
  height: 320px;
  margin-top: 0;
}

.timeaxis-link-layer path {
  fill: none;
  stroke: rgba(56, 189, 248, .36);
  stroke-width: 2;
  stroke-dasharray: 5 8;
  animation: timeaxis-link-flow 2.8s linear infinite;
}

.timeaxis-point {
  cursor: pointer;
  transition: r .18s ease, opacity .18s ease, filter .18s ease;
}

.timeaxis-point.is-muted {
  opacity: .22;
}

.timeaxis-point.is-active {
  r: 10;
  filter: drop-shadow(0 0 12px currentColor);
}

.timeaxis-points .teal { fill: #14b8a6; }
.timeaxis-points .orange { fill: var(--amber); }
.timeaxis-points .cyan { fill: var(--cyan); }

.timeaxis-grid-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 14px;
  margin-top: 0;
}

.timeaxis-event-panel,
.timeaxis-insight-panel,
.timeaxis-narrative-panel,
.timeaxis-evidence-panel,
.timeaxis-reconstruction-panel {
  min-height: 0;
  padding: 17px 15px;
}

.timeaxis-event-list li {
  min-height: 74px;
  padding: 0 0 12px;
  cursor: pointer;
}

.timeaxis-event-list li.active strong {
  color: #dff7ff;
}

.timeaxis-event-list li.active::before {
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .16), 0 0 18px rgba(56, 189, 248, .38);
}

.timeaxis-event-list li.is-muted {
  opacity: .42;
}

.timeaxis-event-list p {
  align-items: flex-start;
  line-height: 1.65;
}

.timeaxis-event-list li.teal::before { background: #14b8a6; }
.timeaxis-event-list li.cyan::before { background: var(--cyan); }

.timeaxis-tag.orange { color: #ffd18a; background: rgba(245, 158, 11, .24); }
.timeaxis-tag.teal { color: #31e3c2; background: rgba(20, 184, 166, .24); }

.timeaxis-ring-wrap {
  position: relative;
  width: min(220px, 100%);
  margin: 8px auto 0;
}

.timeaxis-donut {
  height: 220px;
}

.timeaxis-donut-base,
.timeaxis-arc {
  transform-origin: 110px 110px;
  transform: rotate(-90deg);
}

.timeaxis-arc {
  stroke-linecap: round;
  transition: stroke-dasharray .24s ease, stroke-dashoffset .24s ease, opacity .18s ease;
}

.timeaxis-arc.teal { stroke: #14b8a6; }

.timeaxis-ring-core {
  position: absolute;
  inset: 70px 0 auto;
  display: grid;
  justify-items: center;
  gap: 3px;
  pointer-events: none;
}

.timeaxis-ring-core strong {
  color: white;
  font-size: 28px;
  line-height: 1;
}

.timeaxis-ring-core span {
  color: #7188a5;
  font-size: 10px;
}

.timeaxis-key-list article.active {
  outline: 1px solid rgba(56, 189, 248, .35);
  background: rgba(56, 189, 248, .08);
}

.timeaxis-key-list i.green { background: var(--green); }
.timeaxis-key-list i.teal { background: #14b8a6; }
.timeaxis-key-list i.cyan { background: var(--cyan); }

.timeaxis-narrative {
  min-height: 188px;
  padding: 14px;
  border: 1px solid rgba(55, 84, 124, .55);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(12, 25, 42, .86), rgba(6, 14, 25, .78));
}

.timeaxis-narrative p {
  margin: 0;
  color: #d8e5f5;
  font-size: 12px;
  line-height: 1.9;
}

.timeaxis-narrative.is-writing p::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 14px;
  margin-left: 4px;
  background: #38bdf8;
  vertical-align: -2px;
  animation: caret-blink .8s steps(1) infinite;
}

.timeaxis-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.timeaxis-ai-actions button {
  border: 1px solid rgba(55, 84, 124, .5);
  background: rgba(8, 17, 30, .62);
}

.timeaxis-evidence-flow {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.timeaxis-evidence-flow article {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 11px 12px 11px 42px;
  border: 1px solid rgba(55, 84, 124, .42);
  border-radius: 7px;
  background: rgba(9, 20, 35, .62);
}

.timeaxis-evidence-flow article::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  bottom: -18px;
  width: 1px;
  background: linear-gradient(#38bdf8, transparent);
}

.timeaxis-evidence-flow article:last-child::before {
  display: none;
}

.timeaxis-evidence-flow article::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 17px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, .55);
}

.timeaxis-evidence-flow span {
  width: max-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .12);
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 800;
}

.timeaxis-evidence-flow strong {
  color: white;
  font-size: 12px;
}

.timeaxis-evidence-flow em {
  color: #7188a5;
  font-size: 10px;
  font-style: normal;
}

.timeaxis-reconstruction {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.timeaxis-reconstruction article {
  padding: 12px;
  border-left: 2px solid #38bdf8;
  border-radius: 0 7px 7px 0;
  background: rgba(56, 189, 248, .08);
}

.timeaxis-reconstruction strong,
.timeaxis-reconstruction span {
  display: block;
}

.timeaxis-reconstruction strong {
  margin-bottom: 6px;
  color: #f8fbff;
  font-size: 12px;
}

.timeaxis-reconstruction span {
  color: #8aa1bd;
  font-size: 11px;
  line-height: 1.65;
}

@keyframes timeaxis-link-flow {
  to { stroke-dashoffset: -26; }
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

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

  .timeaxis-workbench {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  .timeaxis-title,
  .timeaxis-filter,
  .timeaxis-panel-head,
  .relation-title,
  .relation-console-head {
    flex-direction: column;
    align-items: stretch;
  }

  .timeaxis-title-actions,
  .timeaxis-subject {
    margin-left: 0;
  }

  .timeaxis-fusion-grid,
  .timeaxis-grid-layout,
  .timeaxis-ai-stack {
    grid-template-columns: 1fr;
  }

  .timeaxis-stage-tabs {
    overflow-x: auto;
  }
}

.relation-content {
  padding: 22px 19px 34px 20px;
}

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

.relation-title h1 {
  margin-bottom: 8px;
  font-size: 18px;
}

.relation-title p {
  max-width: 760px;
  color: #a9bad1;
  font-size: 11px;
  line-height: 1.7;
}

.relation-title-actions {
  display: flex;
  flex: none;
  gap: 8px;
}

.relation-title-actions .ghost-btn,
.relation-title-actions .primary-btn {
  height: 28px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 10px;
}

.relation-db-console {
  margin-bottom: 14px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(31, 68, 113, .82), rgba(13, 24, 39, .94) 42%, rgba(13, 31, 38, .9)),
    #101c2d;
}

.relation-console-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.relation-kicker {
  display: block;
  margin-bottom: 6px;
  color: #71d8ff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.relation-console-head h2 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 14px;
}

.relation-console-head p {
  max-width: 720px;
  margin: 0;
  color: #9eb3cc;
  font-size: 11px;
  line-height: 1.65;
}

.relation-case-select {
  width: 178px;
  height: 30px;
  flex: none;
  border-radius: 4px;
  background: rgba(8, 18, 31, .58);
}

.relation-case-select select {
  color: #fff;
  font-size: 11px;
}

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

.relation-schema-card {
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(87, 125, 173, .28);
  border-radius: 6px;
  background: rgba(7, 17, 30, .44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.relation-schema-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 18px;
  margin-bottom: 9px;
  border-radius: 9px;
  background: rgba(59, 130, 246, .18);
  color: #88b8ff;
  font-size: 10px;
  font-weight: 900;
}

.relation-schema-card.line span {
  background: rgba(34, 197, 94, .16);
  color: #83e6a2;
}

.relation-schema-card strong {
  display: block;
  color: #fff;
  font-size: 12px;
}

.relation-schema-card p {
  margin: 7px 0 0;
  color: #879ab4;
  font-size: 10px;
  line-height: 1.5;
}

.relation-query-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(73, 104, 143, .28);
  border-radius: 6px;
  background: rgba(3, 10, 20, .42);
}

.relation-query-strip code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #a7f3d0;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relation-query-strip .ghost-btn {
  height: 24px;
  flex: none;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 10px;
}

.relation-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}

.relation-toolbar .search-field,
.relation-toolbar .select-field {
  height: 28px;
  border-radius: 4px;
  background: #101c2d;
}

.relation-search {
  width: 160px;
  padding: 0 10px;
}

.relation-toolbar .search-field svg {
  width: 14px;
  height: 14px;
  color: #5f7897;
}

.relation-toolbar .search-field input {
  font-size: 11px;
}

.relation-select {
  width: 132px;
}

.relation-toolbar .select-field select {
  color: white;
  padding-left: 10px;
  font-size: 11px;
}

.relation-toolbar .select-field svg {
  right: 10px;
  width: 12px;
  height: 12px;
}

.relation-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.relation-actions .ghost-btn,
.relation-actions .primary-btn {
  height: 25px;
  padding: 0 10px;
  border-radius: 3px;
  font-size: 10px;
}

.relation-actions .primary-btn {
  margin-left: 0;
  font-weight: 800;
}

.relation-mode-tabs {
  display: inline-flex;
  height: 28px;
  padding: 3px;
  border: 1px solid rgba(74, 100, 132, .46);
  border-radius: 5px;
  background: #101c2d;
}

.relation-mode-tabs button {
  min-width: 43px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #7e91aa;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.relation-mode-tabs button.active {
  background: rgba(59, 130, 246, .22);
  color: #d7e8ff;
}

.relation-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  gap: 12px;
}

.relation-graph-panel {
  position: relative;
  height: 418px;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(40, 104, 180, .1), transparent 28%),
    #101c2d;
}

.relation-legend {
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #879ab4;
  font-size: 10px;
}

.relation-legend span,
.relation-type-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.relation-legend i {
  width: 20px;
  height: 11px;
  border-radius: 2px;
  background: var(--c);
}

.relation-graph {
  width: 100%;
  height: 100%;
}

.relation-links path {
  fill: none;
  stroke: rgba(45, 65, 91, .72);
  stroke-width: 2;
  marker-end: url(#relationArrow);
}

.relation-link-live {
  cursor: pointer;
  stroke-dasharray: 7 11;
  animation: relation-link-flow 2.7s linear infinite;
  transition: opacity .18s ease, stroke .18s ease, filter .18s ease;
}

.relation-link-live:hover {
  stroke: rgba(98, 151, 229, .9);
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, .34));
}

.relation-link-live.is-active {
  stroke: rgba(92, 148, 236, .88);
  stroke-width: 3;
  opacity: 1;
  filter: drop-shadow(0 0 9px rgba(59, 130, 246, .34));
}

.relation-link-live.is-muted {
  opacity: .08;
}

.relation-links text {
  fill: #465973;
  font-size: 9px;
  font-weight: 700;
  transition: opacity .18s ease, fill .18s ease;
  pointer-events: none;
}

.relation-link-label.is-active {
  fill: #8fb8ff;
  opacity: 1;
}

.relation-link-label.is-muted {
  opacity: .12;
}

.relation-nodes circle {
  stroke: rgba(255, 255, 255, .2);
  stroke-width: 1;
}

.relation-node-live {
  cursor: pointer;
  outline: none;
  animation: relation-node-enter .5s ease backwards;
  animation-delay: var(--node-delay, 0ms);
  transition: opacity .18s ease, filter .18s ease;
}

.relation-node-live circle {
  transition: stroke .18s ease, stroke-width .18s ease, filter .18s ease;
  animation: relation-node-breathe 3.2s ease-in-out infinite;
  animation-delay: var(--node-delay, 0ms);
}

.relation-node-live:hover circle,
.relation-node-live:focus-visible circle {
  stroke: rgba(255, 255, 255, .62);
  stroke-width: 2;
  filter: drop-shadow(0 0 12px rgba(95, 151, 255, .42));
}

.relation-node-live.is-selected circle {
  stroke: rgba(255, 255, 255, .78);
  stroke-width: 2.4;
  filter: drop-shadow(0 0 16px rgba(96, 165, 250, .65));
}

.relation-node-live.is-connected circle {
  stroke: rgba(191, 219, 254, .54);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, .34));
}

.relation-node-live.is-muted {
  opacity: .2;
}

.relation-nodes text {
  fill: white;
  font-size: 10px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.relation-nodes .orange circle {
  fill: #f5a40b;
}

.relation-nodes .blue circle {
  fill: #3386ff;
}

.relation-nodes .green circle {
  fill: #20d3a4;
}

.relation-nodes .red circle {
  fill: #f14f55;
}

.relation-nodes .large text {
  font-size: 10px;
}

.relation-nodes .small text,
.relation-nodes .tiny text {
  font-size: 9px;
}

.relation-focus-card {
  position: absolute;
  z-index: 3;
  min-width: 106px;
  height: 37px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 1px solid rgba(76, 111, 158, .92);
  border-radius: 4px;
  background: rgba(20, 36, 57, .96);
  color: #eaf4ff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .34);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.relation-focus-card.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: none;
}

.relation-focus-card span {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(59, 130, 246, .65);
}

.relation-focus-card strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: white;
  font-size: 12px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relation-focus-card button {
  width: 18px;
  height: 18px;
  flex: none;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #dcecff;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}

.relation-detail-panel {
  min-height: 418px;
  padding: 16px;
}

.relation-detail-head {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.relation-detail-head span {
  color: #7f94af;
  font-size: 10px;
  font-weight: 800;
}

.relation-detail-head strong {
  color: #fff;
  font-size: 18px;
}

.relation-detail-list {
  display: grid;
  gap: 11px;
  margin: 0;
}

.relation-detail-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(67, 91, 122, .25);
}

.relation-detail-list dt {
  color: #7f94af;
  font-size: 10px;
}

.relation-detail-list dd {
  margin: 0;
  color: #e9f3ff;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.relation-strength-card {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(65, 102, 150, .34);
  border-radius: 6px;
  background: rgba(8, 18, 31, .42);
}

.relation-strength-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.relation-strength-card span {
  color: #9aaec7;
  font-size: 10px;
  font-weight: 800;
}

.relation-strength-card strong {
  color: #8bdc6f;
  font-size: 18px;
}

.relation-strength-card i,
.relation-strength-list i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #3b82f6, #20d3a4) 0 0 / var(--w, 0%) 100% no-repeat,
    rgba(56, 77, 105, .42);
}

.relation-cypher-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 6px;
  background: rgba(5, 12, 22, .46);
}

.relation-cypher-box span {
  display: block;
  margin-bottom: 8px;
  color: #7f94af;
  font-size: 10px;
  font-weight: 800;
}

.relation-cypher-box code {
  display: block;
  color: #a7f3d0;
  font-size: 10px;
  line-height: 1.55;
  word-break: break-word;
}

.relation-detail-panel .ghost-btn {
  width: 100%;
  height: 28px;
  margin-top: 14px;
  border-radius: 4px;
  font-size: 10px;
}

.relation-bottom-grid {
  display: grid;
  grid-template-columns: .82fr 1.05fr 1.08fr 1.05fr;
  gap: 12px;
  margin-top: 18px;
}

.relation-stat-panel,
.relation-type-panel,
.relation-finding-panel,
.relation-strength-panel,
.relation-ai-panel,
.relation-anomaly-panel {
  height: 226px;
  padding: 20px 16px 16px;
}

.relation-stat-panel h2,
.relation-type-panel h2,
.relation-finding-panel h2,
.relation-strength-panel h2,
.relation-ai-panel h2,
.relation-anomaly-panel h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.relation-stats {
  display: grid;
  gap: 15px;
  margin: 20px 0 0;
}

.relation-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.relation-stats dt {
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.relation-stats dd {
  margin: 0;
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.relation-stats .blue-text {
  color: var(--blue);
}

.relation-stats .green-text {
  color: var(--green);
}

.relation-stats .amber-text {
  color: var(--amber);
}

.relation-stats .red-text {
  color: var(--red);
}

.relation-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.relation-panel-head span {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 8px;
  border-radius: 10px;
  background: rgba(59, 130, 246, .18);
  color: #8fb8ff;
  font-size: 10px;
  font-weight: 800;
}

.relation-panel-head .ghost-btn {
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 10px;
}

.relation-strength-list {
  display: grid;
  gap: 11px;
  margin-top: 15px;
}

.relation-strength-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
}

.relation-strength-list span {
  min-width: 0;
  overflow: hidden;
  color: #dcecff;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relation-strength-list strong {
  color: #8bdc6f;
  font-size: 11px;
}

.relation-strength-list i {
  grid-column: 1 / -1;
  height: 5px;
}

.relation-type-legend {
  display: flex;
  justify-content: center;
  gap: 8px 10px;
  margin-top: 18px;
  color: #879ab4;
  font-size: 9px;
  flex-wrap: wrap;
}

.relation-type-legend i {
  width: 20px;
  height: 11px;
  border-radius: 2px;
  background: var(--c);
}

.relation-donut {
  width: 100%;
  height: 150px;
  margin-top: 2px;
}

.relation-donut-base,
.relation-arc {
  fill: none;
  stroke-width: 25;
}

.relation-donut-base {
  stroke: #1d2b40;
}

.relation-arc.blue { stroke: var(--blue); }
.relation-arc.red { stroke: var(--red); }
.relation-arc.green { stroke: var(--green); }
.relation-arc.amber { stroke: var(--amber); }
.relation-arc.violet { stroke: var(--violet); }
.relation-arc.cyan { stroke: var(--cyan); }
.relation-arc.indigo { stroke: #5b72bd; }
.relation-arc.lime { stroke: #9ad75f; }
.relation-arc.gold { stroke: #f5c04d; }
.relation-arc.coral { stroke: #f35b62; }

.relation-arc-live {
  animation:
    relation-arc-draw .82s cubic-bezier(.2, .8, .2, 1) backwards,
    relation-arc-breathe 3.4s ease-in-out infinite;
  animation-delay:
    var(--relation-arc-delay, 0ms),
    calc(var(--relation-arc-delay, 0ms) + 880ms);
}

.relation-donut-labels path {
  fill: none;
  stroke: rgba(137, 156, 180, .85);
  stroke-width: 1;
}

.relation-label-live {
  stroke-dasharray: 52;
  stroke-dashoffset: 52;
  animation: relation-label-draw .58s ease forwards;
  animation-delay: var(--relation-label-delay, 0ms);
}

.relation-donut-labels text {
  fill: #879ab4;
  font-size: 9px;
}

.relation-findings {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.relation-findings article {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 10px;
  border-radius: 4px;
  background: rgba(9, 19, 33, .34);
}

.relation-finding-live {
  animation: relation-finding-rise .45s ease backwards;
  animation-delay: var(--relation-finding-delay, 0ms);
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.relation-finding-live:hover {
  transform: translateX(3px);
  background: rgba(16, 33, 55, .7);
}

.relation-findings span {
  height: 18px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
}

.relation-findings .red {
  color: #ff5b68;
  background: rgba(239, 68, 68, .28);
}

.relation-findings .amber {
  color: #ffc34d;
  background: rgba(245, 158, 11, .24);
}

.relation-findings .blue {
  color: #70aaff;
  background: rgba(59, 130, 246, .25);
}

.relation-findings strong {
  min-width: 0;
  color: white;
  font-size: 11px;
  line-height: 1.35;
}

.relation-anomaly-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.relation-anomaly-list article {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 2px 9px;
  padding: 8px 9px;
  border-radius: 5px;
  background: rgba(9, 19, 33, .34);
}

.relation-anomaly-list b {
  grid-row: 1 / 3;
  align-self: center;
  color: #ff6b75;
  font-size: 18px;
}

.relation-anomaly-list span {
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.relation-anomaly-list small {
  min-width: 0;
  overflow: hidden;
  color: #8fa4bd;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relation-page.graph-compact .relation-graph-panel {
  height: 330px;
}

.relation-page.graph-compact .relation-detail-panel {
  min-height: 330px;
}

.relation-node-live.is-filtered,
.relation-link-live.is-filtered,
.relation-link-label.is-filtered {
  opacity: .08;
}

.asset-content {
  padding: 22px 20px 36px 19px;
}

.asset-title {
  margin-bottom: 20px;
}

.asset-title h1 {
  margin-bottom: 8px;
  font-size: 17px;
}

.asset-title p {
  color: #a9bad1;
  font-size: 11px;
}

.asset-summary-panel {
  min-height: 144px;
  margin-bottom: 18px;
  padding: 17px 16px;
}

.asset-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.asset-section-head p {
  margin: 6px 0 0;
  color: #7188a5;
  font-size: 10px;
  line-height: 1.5;
}

.asset-section-head h2,
.asset-page .panel h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.asset-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.asset-actions .primary-btn,
.asset-actions .ghost-btn,
.asset-subject {
  height: 24px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 10px;
}

.asset-subject {
  border: 1px solid rgba(104, 126, 157, .34);
  background: rgba(12, 24, 40, .86);
  color: #8fa4bd;
  cursor: pointer;
}

.asset-subject.active,
.asset-actions .ghost-btn.active {
  border-color: rgba(59, 130, 246, .62);
  background: rgba(59, 130, 246, .18);
  color: #d8e8ff;
}

.asset-metrics {
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  gap: 9px;
}

.asset-metric {
  min-height: 74px;
  padding: 16px 13px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0e1a2b;
}

.asset-metric p {
  margin: 0 0 12px;
  color: #6f87a4;
  font-size: 10px;
}

.asset-metric strong {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: white;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
}

.asset-metric strong span {
  color: #a9bad1;
  font-size: 10px;
  font-weight: 500;
}

.asset-metric.total {
  border-color: #3479e8;
  background: #17335b;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .15);
}

.asset-metric.total strong {
  color: #2f82ff;
  font-size: 22px;
}

.asset-source-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #7188a5;
  font-size: 10px;
  flex-wrap: wrap;
}

.asset-source-strip b {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border: 1px solid rgba(59, 130, 246, .2);
  border-radius: 4px;
  background: rgba(59, 130, 246, .09);
  color: #a9c8ef;
  font-weight: 700;
}

.asset-chart-grid,
.asset-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
}

.asset-chart-grid {
  margin-bottom: 18px;
}

.asset-info-grid {
  margin-bottom: 20px;
}

.asset-ledger-panel {
  min-height: 238px;
  margin-bottom: 18px;
  padding: 17px 16px;
}

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

.asset-ledger-card {
  min-height: 126px;
  padding: 13px 12px;
  border: 1px solid rgba(104, 126, 157, .24);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(13, 27, 46, .96), rgba(9, 19, 33, .96));
  transition: opacity .22s ease, transform .22s ease, border-color .22s ease;
}

.asset-ledger-card:hover {
  border-color: rgba(59, 130, 246, .48);
  transform: translateY(-1px);
}

.asset-ledger-card.is-muted {
  opacity: .28;
}

.asset-ledger-card span {
  color: #7188a5;
  font-size: 10px;
}

.asset-ledger-card strong {
  display: block;
  margin: 8px 0;
  color: #f8fbff;
  font-size: 18px;
  line-height: 1;
}

.asset-ledger-card p {
  min-height: 42px;
  margin: 0 0 10px;
  color: #8fa4bd;
  font-size: 10px;
  line-height: 1.45;
}

.asset-donut-panel,
.asset-trend-panel {
  height: 306px;
  padding: 17px 16px;
}

.asset-donut-legend {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  color: #879ab4;
  font-size: 10px;
  flex-wrap: wrap;
}

.asset-donut-legend span,
.asset-line-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.asset-donut-legend i {
  width: 20px;
  height: 11px;
  border-radius: 2px;
  background: var(--c);
}

.asset-donut {
  width: 100%;
  height: 238px;
}

.asset-donut-base,
.asset-arc {
  fill: none;
  stroke-width: 38;
}

.asset-donut-base {
  stroke: #1d2b40;
}

.asset-arc.blue { stroke: var(--blue); }
.asset-arc.green { stroke: var(--green); }
.asset-arc.amber { stroke: var(--amber); }
.asset-arc.red { stroke: var(--red); }
.asset-arc.violet { stroke: var(--violet); }
.asset-arc.cyan { stroke: var(--cyan); }
.asset-arc.gray { stroke: #64748b; }

.asset-donut-labels path {
  fill: none;
  stroke-width: 1.5;
}

.asset-donut-labels path.blue { stroke: var(--blue); }
.asset-donut-labels path.green { stroke: var(--green); }
.asset-donut-labels path.amber { stroke: var(--amber); }
.asset-donut-labels path.red { stroke: var(--red); }
.asset-donut-labels path.violet { stroke: var(--violet); }
.asset-donut-labels path.cyan { stroke: var(--cyan); }
.asset-donut-labels path.gray { stroke: #64748b; }

.asset-donut-labels text {
  fill: #8498b2;
  font-size: 10px;
}

.asset-line-legend {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 17px 0 4px;
  color: #879ab4;
  font-size: 10px;
}

.asset-line-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .18);
}

.asset-line-legend .blue,
.asset-points.blue circle { background: var(--blue); fill: var(--blue); }
.asset-line-legend .green,
.asset-points.green circle { background: var(--green); fill: var(--green); }
.asset-line-legend .amber,
.asset-points.amber circle { background: var(--amber); fill: var(--amber); }

.asset-line-chart {
  width: 100%;
  height: 238px;
}

.asset-grid-lines path {
  fill: none;
  stroke: rgba(49, 70, 101, .43);
  stroke-dasharray: 3 3;
  animation: asset-grid-drift 4.8s linear infinite;
}

.asset-axis text {
  fill: #7188a5;
  font-size: 10px;
}

.asset-line-area.blue {
  fill: url(#assetBlueFill);
}

.asset-line-area.green {
  fill: url(#assetGreenFill);
}

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

.asset-line.blue { stroke: var(--blue); }
.asset-line.green { stroke: var(--green); }
.asset-line.amber { stroke: var(--amber); }

.asset-points circle {
  stroke: rgba(255, 255, 255, .5);
  stroke-width: 1;
}

.asset-arc-live {
  transition:
    stroke-dashoffset .95s cubic-bezier(.2, .8, .2, 1),
    opacity .28s ease,
    filter .28s ease;
  transition-delay: var(--asset-arc-delay, 0ms);
  opacity: .2;
  transform-origin: center;
}

.asset-arc-live.is-drawn {
  opacity: 1;
  animation: asset-arc-breathe 3.8s ease-in-out infinite;
  animation-delay: calc(var(--asset-arc-delay, 0ms) + .7s);
}

.asset-donut:hover .asset-arc-live {
  opacity: .45;
}

.asset-donut .asset-arc-live:hover {
  opacity: 1;
  filter: brightness(1.28) drop-shadow(0 0 8px rgba(255, 255, 255, .18));
}

.asset-label-live {
  stroke-dasharray: 84;
  stroke-dashoffset: 84;
  animation: asset-label-draw .72s ease forwards;
  animation-delay: var(--asset-label-delay, 0ms);
}

.asset-line-live {
  transition: stroke-dashoffset 1.25s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--asset-line-delay, 0ms);
}

.asset-line-live.is-drawn {
  stroke-dashoffset: 0 !important;
}

.asset-estate-panel,
.asset-vehicle-panel {
  height: 240px;
  padding: 17px 16px;
}

.asset-table {
  margin-top: 16px;
  font-size: 11px;
}

.asset-table th,
.asset-table td {
  height: 41px;
  padding: 0 12px;
}

.asset-table th {
  color: #7188a5;
  font-size: 10px;
}

.asset-table td {
  color: #9fc5f5;
}

.asset-table b {
  color: #8bbdff;
  font-weight: 800;
}

.asset-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  min-width: 32px;
  padding: 0 8px;
  border-radius: 4px;
  background: rgba(59, 130, 246, .18);
  color: #c9ddff;
  font-size: 10px;
}

.asset-models {
  margin-top: 28px;
}

.asset-models div {
  display: flex;
  gap: 8px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.asset-models .ghost-btn {
  height: 24px;
  padding: 0 10px;
  font-size: 10px;
}

.asset-model-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr);
  gap: 12px;
  margin-bottom: 20px;
}

.asset-model-panel,
.asset-ai-panel {
  min-height: 268px;
  padding: 17px 16px;
}

.asset-model-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.asset-model-tabs button {
  height: 30px;
  border: 1px solid rgba(104, 126, 157, .28);
  border-radius: 4px;
  background: rgba(12, 24, 40, .86);
  color: #8fa4bd;
  font-size: 10px;
  cursor: pointer;
}

.asset-model-tabs button.active {
  border-color: rgba(16, 185, 129, .55);
  background: rgba(16, 185, 129, .14);
  color: #c9f8e6;
}

.asset-model-result {
  min-height: 152px;
  padding: 14px;
  border: 1px solid rgba(59, 130, 246, .22);
  border-radius: 5px;
  background: rgba(8, 18, 32, .72);
}

.asset-model-result b {
  color: #8bbdff;
  font-size: 11px;
}

.asset-model-result strong {
  display: block;
  margin: 8px 0;
  color: #f8fbff;
  font-size: 20px;
}

.asset-model-result p,
.asset-model-result li {
  color: #9fb0c7;
  font-size: 11px;
  line-height: 1.6;
}

.asset-model-result ul {
  margin: 10px 0 0;
  padding-left: 16px;
}

.asset-ai-score {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 4px auto 14px;
  border: 1px solid rgba(239, 68, 68, .28);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(239, 68, 68, .18), transparent 62%),
    conic-gradient(from -60deg, rgba(239, 68, 68, .78) 0 86%, rgba(41, 56, 78, .8) 86% 100%);
  box-shadow: 0 0 24px rgba(239, 68, 68, .16);
}

.asset-ai-score strong {
  color: white;
  font-size: 30px;
  line-height: 1;
}

.asset-ai-score span {
  margin-top: -18px;
  color: #ffd3d3;
  font-size: 10px;
}

.asset-ai-summary {
  color: #a9bad1;
  font-size: 11px;
  line-height: 1.65;
}

.asset-ai-tags {
  display: flex;
  gap: 7px;
  margin-top: 13px;
  flex-wrap: wrap;
}

.asset-ai-tags span {
  height: 22px;
  padding: 4px 8px 0;
  border-radius: 4px;
  background: rgba(239, 68, 68, .14);
  color: #ffc7c7;
  font-size: 10px;
}

.asset-clue-panel {
  min-height: 188px;
  padding: 17px 16px;
}

.asset-pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.asset-pattern-grid article {
  min-height: 84px;
  padding: 12px;
  border: 1px solid rgba(104, 126, 157, .22);
  border-radius: 5px;
  background: rgba(12, 24, 40, .72);
}

.asset-pattern-grid span {
  color: #7188a5;
  font-size: 10px;
}

.asset-pattern-grid strong {
  display: block;
  margin: 6px 0;
  color: #f8fbff;
  font-size: 12px;
}

.asset-pattern-grid p {
  margin: 0;
  color: #8fa4bd;
  font-size: 10px;
  line-height: 1.45;
}

.asset-clue-table th,
.asset-clue-table td {
  height: 38px;
}

.asset-risk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 19px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
}

.asset-risk.high {
  color: white;
  background: rgba(239, 68, 68, .72);
}

.asset-risk.mid {
  color: #ffe082;
  background: rgba(245, 158, 11, .35);
}

.asset-risk.low {
  color: #9fc5ff;
  background: rgba(59, 130, 246, .24);
}

.workbench-content {
  padding: 28px 24px 48px;
}

.workbench-title {
  margin-bottom: 27px;
}

.workbench-title h1 {
  margin-bottom: 12px;
  font-size: 24px;
}

.workbench-title p {
  color: #a9bad1;
  font-size: 14px;
}

.workbench-page .panel {
  border-radius: 6px;
}

.workbench-page .panel h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.shortcut-panel {
  min-height: 190px;
  padding: 24px 20px 20px;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 148px));
  gap: 12px;
  margin-top: 18px;
}

.shortcut-card {
  height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0e1a2b;
  color: #bcd0e8;
  text-decoration: none;
}

.shortcut-card:hover {
  border-color: rgba(59, 130, 246, .65);
  background: #112139;
}

.shortcut-card span {
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
}

.shortcut-card b {
  font-size: 13px;
}

.workbench-mid-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.favorite-panel,
.history-panel {
  min-height: 320px;
  padding: 22px 20px 18px;
}

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

.workbench-panel-head .ghost-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 4px;
  color: #9fc5f5;
}

.favorite-list {
  display: grid;
  margin-top: 22px;
}

.favorite-list article {
  min-height: 64px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(32, 50, 73, .75);
}

.favorite-list article:last-child {
  border-bottom: 0;
}

.workbench-page .favorite-list article {
  grid-template-columns: 54px 1fr auto;
}

.favorite-icon {
  font-size: 18px;
  line-height: 1;
}

.favorite-list strong {
  display: block;
  margin-bottom: 7px;
  color: white;
  font-size: 13px;
}

.favorite-list p {
  margin: 0;
  color: #7188a5;
  font-size: 12px;
}

.favorite-list button {
  height: 28px;
  min-width: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0e1b2c;
  color: #9fc5f5;
  cursor: pointer;
}

.history-table {
  margin-top: 23px;
  font-size: 13px;
}

.history-table th,
.history-table td {
  height: 48px;
  padding: 0 14px;
}

.history-table th {
  color: #7188a5;
  font-size: 12px;
}

.history-table td {
  color: #a9c8ee;
}

.badge.muted {
  color: #a6b7cc;
  background: rgba(100, 116, 139, .24);
}

.group-panel {
  min-height: 178px;
  margin-top: 24px;
  padding: 20px;
}

.group-panel .primary-btn {
  height: 28px;
  margin-left: 0;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 12px;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 17px;
}

.group-card {
  position: relative;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 20px 18px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 6px;
  background: #0f1d2f;
}

.group-card strong {
  display: block;
  margin-bottom: 14px;
  color: white;
  font-size: 14px;
}

.group-card p {
  margin: 0;
  color: #7188a5;
  font-size: 12px;
}

.group-card span {
  align-self: flex-start;
  min-width: 49px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #8bbdff;
  background: rgba(59, 130, 246, .18);
  font-size: 12px;
  font-weight: 800;
}

.group-card.blue {
  border-left-color: var(--blue);
}

.group-card.green {
  border-left-color: #10d5a5;
}

.group-card.green span {
  color: #15e2aa;
  background: rgba(16, 185, 129, .18);
}

.group-card.slate {
  border-left-color: #5f7897;
}

.group-card.slate span {
  color: #a9bad1;
  background: rgba(100, 116, 139, .22);
}

.workbench-hero {
  min-height: 148px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid rgba(59, 130, 246, .28);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, .18), transparent 44%),
    linear-gradient(90deg, rgba(6, 182, 212, .1), transparent 55%),
    #0d1b2d;
}

.workbench-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
}

.workbench-hero h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 26px;
}

.workbench-hero p {
  max-width: 760px;
  margin: 0;
  color: #9fb3ce;
  font-size: 13px;
  line-height: 1.8;
}

.workbench-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workbench-hero-actions .primary-btn,
.workbench-hero-actions .ghost-btn {
  height: 34px;
  margin-left: 0;
  padding: 0 14px;
  border-radius: 5px;
}

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

.workbench-stat {
  min-height: 104px;
  padding: 18px 18px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0f1d2f;
}

.workbench-stat span {
  color: #84a4c8;
  font-size: 12px;
}

.workbench-stat strong {
  display: block;
  margin: 12px 0 6px;
  color: #fff;
  font-size: 28px;
}

.workbench-stat p {
  margin: 0;
  color: #647d9c;
}

.workbench-control-grid {
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(420px, 1.08fr);
  gap: 16px;
  margin-top: 16px;
}

.workbench-capture-panel,
.workbench-resume-panel,
.workbench-clue-panel {
  padding: 20px;
}

.workbench-panel-head > span {
  color: #70e6c2;
  font-size: 12px;
  font-weight: 800;
}

.capture-current {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(59, 130, 246, .42);
  border-radius: 6px;
  background: rgba(59, 130, 246, .1);
}

.capture-current b {
  display: block;
  color: #fff;
  font-size: 15px;
}

.capture-current p {
  margin: 8px 0 0;
  color: #9fb3ce;
}

.capture-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.capture-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0b1727;
  color: #b9d4f4;
  cursor: pointer;
}

.capture-actions button:hover {
  border-color: rgba(59, 130, 246, .7);
  background: #11223a;
}

.capture-rule-list {
  display: grid;
  gap: 10px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.capture-rule-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(42, 62, 88, .8);
  border-radius: 5px;
  background: rgba(10, 20, 34, .64);
}

.capture-rule-list span {
  color: #67e8f9;
  font-weight: 800;
}

.capture-rule-list p {
  margin: 0;
  color: #8fa5c0;
}

.resume-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.resume-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(42, 62, 88, .86);
  border-left: 3px solid #3b82f6;
  border-radius: 6px;
  background: #0d1b2d;
}

.resume-card strong,
.clue-thread strong {
  display: block;
  color: #fff;
  font-size: 13px;
}

.resume-card p,
.clue-thread p {
  margin: 7px 0 0;
  color: #8ca2be;
  line-height: 1.55;
}

.resume-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.resume-meta span,
.history-tools select,
.history-tools input {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #091525;
  color: #9fbfe8;
}

.resume-meta span {
  padding: 4px 8px;
  font-size: 11px;
}

.resume-card button,
.history-table button {
  height: 30px;
  min-width: 58px;
  align-self: center;
  border: 1px solid rgba(59, 130, 246, .45);
  border-radius: 5px;
  background: rgba(59, 130, 246, .12);
  color: #9fc5ff;
  cursor: pointer;
}

.history-tools {
  display: grid;
  grid-template-columns: 1fr 126px;
  gap: 10px;
  margin-top: 16px;
}

.history-tools input,
.history-tools select {
  height: 34px;
  padding: 0 11px;
  outline: none;
}

.history-tools input:focus,
.history-tools select:focus {
  border-color: rgba(59, 130, 246, .72);
}

.history-table tbody tr.is-hidden {
  display: none;
}

.history-table .history-target {
  color: #fff;
  font-weight: 800;
}

.history-table .history-location {
  color: #7ea3cf;
}

.workbench-bottom-grid {
  display: grid;
  grid-template-columns: minmax(420px, .96fr) minmax(360px, 1.04fr);
  gap: 16px;
  margin-top: 24px;
}

.workbench-bottom-grid .group-panel {
  margin-top: 0;
}

.group-card {
  cursor: pointer;
}

.group-card.active {
  border-color: rgba(59, 130, 246, .72);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, .24) inset;
}

.clue-thread {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.clue-thread article {
  position: relative;
  padding: 0 0 13px 20px;
  border-bottom: 1px solid rgba(32, 50, 73, .72);
}

.clue-thread article::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10d5a5;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, .14);
}

.clue-thread article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.workbench-empty {
  padding: 24px;
  border: 1px dashed rgba(79, 105, 139, .7);
  border-radius: 6px;
  color: #7f94af;
  text-align: center;
}

@media (max-width: 1200px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "trend"
      "donut"
      "cases"
      "status";
  }

  .case-summary-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .case-ops-grid {
    grid-template-columns: 1fr;
  }

  .import-kpi-grid,
  .import-source-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .data-type-grid {
    grid-template-columns: repeat(3, minmax(132px, 1fr));
  }

  .import-automation-panel {
    grid-template-columns: 1fr;
  }

  .governance-console,
  .gov-grid {
    grid-template-columns: 1fr;
  }

  .gov-grid {
    grid-template-areas:
      "quality"
      "issue"
      "anomalies"
      "log";
  }

  .quality-panel,
  .issue-panel,
  .anomalies-panel,
  .log-panel {
    height: auto;
  }

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

  .call-control-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .call-action-group {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

  .call-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "frequency"
      "time"
      "contacts"
      "circles";
  }

  .call-module-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "trajectory trajectory"
      "common change"
      "meeting layers"
      "ai ai";
  }

  .edata-metrics,
  .edata-chart-grid,
  .edata-workbench-grid,
  .edata-analysis-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .edata-focus-card,
  .edata-analysis-grid .edata-ai-panel {
    grid-column: 1 / -1;
  }

  .edata-type-grid {
    grid-template-columns: repeat(4, minmax(112px, 1fr));
  }

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

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

  .track-map-panel {
    grid-column: 1 / -1;
  }

  .timeaxis-filter {
    flex-wrap: wrap;
  }

  .timeaxis-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

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

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

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

  .relation-detail-panel {
    min-height: 0;
  }

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

  .relation-toolbar {
    flex-wrap: wrap;
  }

  .relation-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .asset-metrics {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }

  .asset-chart-grid,
  .asset-info-grid {
    grid-template-columns: 1fr;
  }

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

  .asset-model-grid {
    grid-template-columns: 1fr;
  }

  .shortcut-grid {
    grid-template-columns: repeat(4, minmax(118px, 1fr));
  }

  .workbench-mid-grid,
  .group-grid,
  .workbench-control-grid,
  .workbench-bottom-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .sidebar {
    position: static;
    height: auto;
  }

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

  .nav-section,
  .collapse-btn {
    display: none;
  }

  .topbar {
    padding-left: 14px;
  }

  .content {
    padding: 16px 12px 22px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .trend-panel,
  .donut-panel,
  .table-panel,
  .status-panel {
    height: auto;
  }

  .table-panel {
    overflow-x: auto;
  }

  .case-summary-grid,
  .case-detail-list,
  .case-form-grid {
    grid-template-columns: 1fr;
  }

  .import-kpi-grid,
  .import-source-grid,
  .data-type-grid {
    grid-template-columns: 1fr;
  }

  .import-selected-source,
  .import-option-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .import-selected-source {
    padding: 12px;
  }

  .import-selected-source em {
    margin-left: 0;
  }

  .import-stepper {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .import-history-panel {
    overflow-x: auto;
  }

  .gov-metrics,
  .quality-label-grid {
    grid-template-columns: 1fr;
  }

  .clean-actions {
    flex-wrap: wrap;
  }

  .clean-actions .primary-btn,
  .clean-actions .outline-btn,
  .danger-btn {
    width: 100%;
  }

  .cases-toolbar .search-field,
  .cases-toolbar .select-field,
  .cases-toolbar .primary-btn {
    width: 100%;
    margin-left: 0;
  }

  .case-table {
    min-width: 940px;
  }

  .case-form-grid .wide {
    grid-column: auto;
  }

  .workflow-panel .panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .workflow-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .call-metrics {
    grid-template-columns: 1fr;
  }

  .call-selector-group,
  .call-source-grid,
  .call-module-grid,
  .call-ai-panel,
  .call-conclusion-grid {
    grid-template-columns: 1fr;
  }

  .call-module-grid {
    grid-template-areas:
      "trajectory"
      "common"
      "change"
      "meeting"
      "layers"
      "ai";
  }

  .call-common-list button,
  .call-layer-stack button,
  .call-route-list li,
  .call-change-list li,
  .call-meeting-card {
    grid-template-columns: 1fr;
  }

  .call-station-map {
    min-width: 520px;
  }

  .call-trajectory-panel {
    overflow-x: auto;
  }

  .call-frequency,
  .call-time,
  .call-contacts,
  .call-circles,
  .call-map-panel {
    height: auto;
  }

  .call-contacts,
  .call-circles {
    overflow-x: auto;
  }

  .edata-metrics,
  .edata-chart-grid,
  .edata-workbench-grid,
  .edata-type-grid,
  .edata-preview-grid,
  .edata-analysis-grid,
  .edata-semantic-list {
    grid-template-columns: 1fr;
  }

  .edata-panel,
  .edata-detail-panel,
  .edata-text-panel,
  .edata-workbench,
  .edata-tag-panel,
  .edata-ai-panel {
    height: auto;
  }

  .edata-detail-panel,
  .edata-text-panel,
  .edata-tag-panel,
  .edata-ai-panel {
    overflow-x: auto;
  }

  .edata-section-head {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }

  .edata-action-row,
  .edata-section-head > div:last-child {
    flex-wrap: wrap;
  }

  .track-metrics,
  .track-main-grid {
    grid-template-columns: 1fr;
  }

  .track-map-panel,
  .track-today-panel,
  .track-history-panel {
    height: auto;
  }

  .track-map-empty {
    min-height: 320px;
    padding: 32px 12px;
  }

  .track-history-panel {
    overflow-x: auto;
  }

  .timeaxis-filter,
  .timeaxis-date-group,
  .timeaxis-chips {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .timeaxis-chart-panel,
  .timeaxis-event-panel,
  .timeaxis-insight-panel {
    height: auto;
    min-height: 0;
  }

  .timeaxis-chart-panel {
    overflow-x: auto;
  }

  .timeaxis-scatter {
    min-width: 900px;
  }

  .relation-graph-panel {
    height: auto;
    min-height: 360px;
    overflow-x: auto;
  }

  .relation-bottom-grid,
  .relation-schema-grid {
    grid-template-columns: 1fr;
  }

  .relation-title-actions,
  .relation-query-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .relation-title-actions .ghost-btn,
  .relation-title-actions .primary-btn,
  .relation-query-strip .ghost-btn {
    width: 100%;
  }

  .relation-graph {
    min-width: 900px;
    height: 360px;
  }

  .relation-search,
  .relation-select {
    width: 100%;
  }

  .relation-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .relation-stat-panel,
  .relation-type-panel,
  .relation-finding-panel,
  .relation-strength-panel,
  .relation-ai-panel,
  .relation-anomaly-panel {
    height: auto;
  }

  .asset-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .asset-metrics {
    grid-template-columns: 1fr;
  }

  .asset-donut-panel,
  .asset-trend-panel,
  .asset-estate-panel,
  .asset-vehicle-panel,
  .asset-ledger-panel,
  .asset-model-panel,
  .asset-ai-panel,
  .asset-clue-panel {
    height: auto;
    overflow-x: auto;
  }

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

  .asset-ledger-grid,
  .asset-model-tabs,
  .asset-pattern-grid {
    grid-template-columns: 1fr;
  }

  .asset-donut,
  .asset-line-chart {
    min-width: 640px;
  }

  .shortcut-panel,
  .favorite-panel,
  .history-panel,
  .group-panel {
    min-height: 0;
  }

  .shortcut-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .workbench-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .workbench-hero h2 {
    font-size: 21px;
  }

  .workbench-stat-grid,
  .capture-actions,
  .history-tools {
    grid-template-columns: 1fr;
  }

  .resume-card {
    grid-template-columns: 1fr;
  }

  .favorite-panel,
  .history-panel {
    overflow-x: auto;
  }

  .history-table {
    min-width: 620px;
  }

  .group-card {
    min-height: 84px;
  }
}

/* Dynamic interaction layer */
:root {
  --cursor-x: 72vw;
  --cursor-y: 18vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  inset: 0;
  background:
    radial-gradient(520px circle at var(--cursor-x) var(--cursor-y), rgba(59, 130, 246, .13), transparent 58%),
    linear-gradient(120deg, rgba(6, 182, 212, .045), transparent 34%, rgba(139, 92, 246, .055));
  opacity: .9;
  transition: opacity .2s ease;
}

body::after {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .014) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .72), transparent 82%);
}

.app-shell {
  position: relative;
  z-index: 1;
  transition: grid-template-columns .28s ease;
}

.app-collapsed .app-shell {
  grid-template-columns: 64px 1fr;
}

.app-collapsed .brand {
  justify-content: center;
  padding-inline: 8px;
}

.app-collapsed .brand-name,
.app-collapsed .nav-section,
.app-collapsed .nav-item span,
.app-collapsed .collapse-btn span {
  opacity: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

.app-collapsed .nav-item {
  justify-content: center;
  padding-inline: 0;
  gap: 0;
}

.app-collapsed .collapse-btn svg {
  transform: rotate(180deg);
}

.sidebar,
.topbar,
.panel,
.metric-card {
  backdrop-filter: blur(14px);
}

.nav-item,
.icon-btn,
.avatar,
.collapse-btn,
.segmented button,
.ghost-btn,
.outline-btn,
.primary-btn,
.data-type-card,
.import-source-card,
.clean-step,
.correction-card button,
.import-tabs button,
.track-map-tabs button {
  transition:
    transform .18s ease,
    border-color .18s ease,
    background-color .18s ease,
    box-shadow .18s ease,
    color .18s ease,
    opacity .18s ease;
}

.nav-item:hover,
.data-type-card:hover,
.import-source-card:hover,
.clean-step:hover,
.metric-card:hover,
.panel:hover {
  transform: translateY(-1px);
}

.nav-item:hover,
.metric-card:hover,
.panel:hover,
.data-type-card:hover,
.import-source-card:hover,
.clean-step:hover {
  border-color: rgba(72, 111, 164, .9);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, .16),
    inset 0 1px 0 rgba(255, 255, 255, .04);
}

.metric-card,
.panel {
  position: relative;
  overflow: hidden;
}

.metric-card::after,
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, .045) 46%, transparent 62%);
  transform: translateX(-130%);
  opacity: 0;
}

.metric-card:hover::after,
.panel:hover::after {
  animation: surface-sheen 1.05s ease;
}

.icon-btn:hover,
.avatar:hover,
.collapse-btn:hover,
.segmented button:hover,
.ghost-btn:hover,
.outline-btn:hover,
.primary-btn:hover,
.track-map-tabs button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(2, 10, 24, .24);
}

button.is-pressed {
  transform: translateY(1px) scale(.98);
}

button.is-loading {
  cursor: wait;
  opacity: .86;
}

.js-ready .page-title,
.js-ready .metric-card,
.js-ready .panel,
.js-ready .track-metric,
.js-ready .edata-metric,
.js-ready .asset-metric,
.js-ready .shortcut-card,
.js-ready .favorite-item,
.js-ready .group-card {
  opacity: 0;
  transform: translateY(14px);
}

.js-ready .is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity .45s ease,
    transform .45s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--reveal-index, 0) * 34ms);
}

.js-ready.bill-page .page-title,
.js-ready.bill-page .panel,
.js-ready .bill-page .page-title,
.js-ready .bill-page .panel {
  opacity: 1;
  transform: translateY(0);
}

.series {
  transition: stroke-dashoffset 1.35s cubic-bezier(.2, .8, .2, 1);
}

.series.is-drawn {
  stroke-dashoffset: 0 !important;
}

.points circle,
.relation-node,
.timeaxis-point,
.scatter-point {
  transform-origin: center;
  animation: node-pulse 2.8s ease-in-out infinite;
}

.points circle:nth-child(2n),
.relation-node:nth-child(2n),
.timeaxis-point:nth-child(2n),
.scatter-point:nth-child(2n) {
  animation-delay: .45s;
}

.live-surface {
  position: relative;
  overflow: hidden;
}

.live-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, .12), transparent);
  transform: translateX(-120%);
  animation: scanner-sweep 3.8s ease-in-out infinite;
}

.track-map-pin {
  animation: map-pin-float 2.6s ease-in-out infinite;
}

.track-timeline li,
.timeaxis-event,
.timeline-item {
  animation: timeline-rise .45s ease both;
  animation-delay: calc(var(--reveal-index, 0) * 50ms);
}

.dropzone {
  cursor: pointer;
  transition:
    border-color .2s ease,
    background-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: rgba(59, 130, 246, .95);
  background: rgba(59, 130, 246, .065);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .18), 0 18px 42px rgba(0, 0, 0, .18);
}

.dropzone.drag-over svg {
  stroke: var(--blue);
  animation: upload-bounce .72s ease infinite alternate;
}

.search-dim {
  opacity: .25;
  filter: saturate(.55);
}

.search-hit {
  outline: 1px solid rgba(6, 182, 212, .5);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, .08);
}

.global-search {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: start center;
  padding-top: 12vh;
  background: rgba(2, 8, 20, .58);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.global-search.open {
  opacity: 1;
  pointer-events: auto;
}

.global-search-card {
  width: min(620px, calc(100vw - 32px));
  position: relative;
  padding: 18px;
  border: 1px solid rgba(71, 105, 150, .9);
  border-radius: 8px;
  background: rgba(11, 21, 36, .94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
  transform: translateY(-10px) scale(.98);
  transition: transform .2s ease;
}

.global-search.open .global-search-card {
  transform: translateY(0) scale(1);
}

.global-search-card label {
  display: block;
  margin-bottom: 10px;
  color: #dcecff;
  font-size: 14px;
  font-weight: 800;
}

.global-search-card input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #07101e;
  color: white;
  padding: 0 42px 0 14px;
  outline: none;
}

.global-search-card input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
}

.global-search-card button {
  position: absolute;
  right: 25px;
  top: 48px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #9fb4cf;
  cursor: pointer;
}

.global-search-card p {
  margin: 10px 0 0;
  color: #6d83a0;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 220px;
  max-width: 340px;
  padding: 11px 13px;
  border: 1px solid rgba(74, 102, 140, .9);
  border-radius: 7px;
  background: rgba(11, 21, 36, .96);
  color: #dcecff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .34);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease;
}

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

.toast.success {
  border-color: rgba(16, 185, 129, .65);
}

.toast.info {
  border-color: rgba(59, 130, 246, .65);
}

.user-message {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.user-bubble {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
  font-weight: 800;
}

.user-message .message-card {
  background: rgba(59, 130, 246, .16);
  border-color: rgba(59, 130, 246, .32);
}

@keyframes surface-sheen {
  0% { opacity: 0; transform: translateX(-130%); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: translateX(130%); }
}

@keyframes node-pulse {
  0%, 100% { opacity: .82; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scanner-sweep {
  0% { transform: translateX(-120%); opacity: 0; }
  35% { opacity: .75; }
  70%, 100% { transform: translateX(120%); opacity: 0; }
}

@keyframes map-pin-float {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 0 rgba(59, 130, 246, 0)); }
  50% { transform: translateY(-8px); filter: drop-shadow(0 10px 16px rgba(59, 130, 246, .3)); }
}

@keyframes timeline-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes upload-bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

@keyframes bill-flow-run {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -144; }
}

@keyframes sankey-node-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.24) drop-shadow(0 0 10px rgba(59, 130, 246, .2)); }
}

@keyframes bill-bar-grow {
  from {
    opacity: .25;
    transform: scaleY(.04);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes bill-bar-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.22) drop-shadow(0 0 9px rgba(16, 185, 129, .22)); }
}

@keyframes bill-ai-pulse {
  0% { transform: translateY(0); }
  42% {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, .3), 0 12px 28px rgba(239, 68, 68, .12);
  }
  100% { transform: translateY(0); }
}

@keyframes month-grid-drift {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -18; }
}

@keyframes call-grid-drift {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -18; }
}

@keyframes call-bar-rise {
  from {
    opacity: .25;
    transform: scaleY(.04);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes call-bar-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.26) drop-shadow(0 0 9px rgba(59, 130, 246, .3)); }
}

@keyframes call-line-run {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -152; }
}

@keyframes call-point-pulse {
  0%, 100% { opacity: .72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.8); }
}

@keyframes call-donut-draw {
  from { stroke-dashoffset: 270; }
}

@keyframes call-donut-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18) drop-shadow(0 0 8px rgba(255, 255, 255, .16)); }
}

@keyframes call-donut-scan {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -270; }
}

@keyframes call-route-flow {
  to { stroke-dashoffset: -44; }
}

@keyframes meeting-ping {
  0% {
    transform: scale(.58);
    opacity: .88;
  }
  100% {
    transform: scale(1.42);
    opacity: 0;
  }
}

@keyframes edata-grid-drift {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -18; }
}

@keyframes edata-bar-grow {
  from {
    opacity: .22;
    transform: scaleX(.02);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes edata-bar-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.24) drop-shadow(0 0 10px rgba(96, 165, 250, .28)); }
}

@keyframes edata-chip-pulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 14px rgba(59, 130, 246, .2); }
}

@keyframes edata-donut-draw {
  from { stroke-dashoffset: 283; }
}

@keyframes edata-donut-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.17) drop-shadow(0 0 8px rgba(255, 255, 255, .16)); }
}

@keyframes edata-label-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes edata-card-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes edata-row-in {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes relation-link-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -36; }
}

@keyframes relation-node-enter {
  from {
    opacity: 0;
    filter: blur(3px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes relation-node-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18) drop-shadow(0 0 9px rgba(96, 165, 250, .22)); }
}

@keyframes relation-arc-draw {
  from {
    opacity: .18;
    stroke-dasharray: 0 251;
  }
  to {
    opacity: 1;
  }
}

@keyframes relation-arc-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.14) drop-shadow(0 0 7px rgba(255, 255, 255, .13)); }
}

@keyframes relation-label-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes relation-finding-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes asset-grid-drift {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -18; }
}

@keyframes asset-arc-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18) drop-shadow(0 0 8px rgba(255, 255, 255, .14)); }
}

@keyframes asset-label-draw {
  to { stroke-dashoffset: 0; }
}

/* Keep the shared application frame identical across modules. */
.case-page .app-shell,
.governance-page .app-shell,
.portrait-page .app-shell {
  grid-template-columns: 190px 1fr;
}

.case-page .brand,
.case-page .topbar,
.governance-page .brand,
.governance-page .topbar,
.portrait-page .brand,
.portrait-page .topbar {
  height: 43px;
}

.case-page .brand,
.governance-page .brand,
.portrait-page .brand {
  gap: 10px;
  padding: 0 12px;
}

.case-page .brand-mark,
.governance-page .brand-mark,
.portrait-page .brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-size: 12px;
}

.case-page .brand-name,
.governance-page .brand-name,
.portrait-page .brand-name {
  font-size: 12px;
}

.case-page .nav,
.governance-page .nav,
.portrait-page .nav {
  padding: 12px 6px 8px;
}

.case-page .nav-section,
.governance-page .nav-section,
.portrait-page .nav-section {
  margin: 7px 4px 6px;
  font-size: 11px;
}

.case-page .nav-item,
.governance-page .nav-item,
.portrait-page .nav-item {
  height: 31px;
  gap: 10px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 3px;
}

.case-page .nav-item svg,
.governance-page .nav-item svg,
.portrait-page .nav-item svg {
  width: 15px;
  height: 15px;
}

.case-page .collapse-btn,
.governance-page .collapse-btn,
.portrait-page .collapse-btn {
  height: 27px;
  margin: auto 9px 6px;
  font-size: 12px;
}

.case-page .topbar,
.governance-page .topbar,
.portrait-page .topbar {
  padding: 0 13px 0 20px;
}

.case-page .breadcrumb,
.governance-page .breadcrumb,
.portrait-page .breadcrumb {
  font-size: 11px;
}

.case-page .top-actions,
.governance-page .top-actions,
.portrait-page .top-actions {
  gap: 14px;
}

.case-page .icon-btn,
.governance-page .icon-btn,
.portrait-page .icon-btn {
  width: 20px;
  height: 20px;
}

.case-page .icon-btn svg,
.governance-page .icon-btn svg,
.portrait-page .icon-btn svg {
  width: 16px;
  height: 16px;
}

.case-page .avatar,
.governance-page .avatar,
.portrait-page .avatar {
  width: 26px;
  height: 26px;
  font-size: 12px;
}

.cases-content,
.import-content,
.governance-content,
.portrait-content,
.assistant-content,
.bill-content,
.call-content,
.edata-content,
.track-content,
.timeaxis-content,
.relation-content,
.asset-content,
.workbench-content {
  padding: 21px 13px 23px 20px;
}

.cases-title,
.import-title,
.governance-title,
.portrait-title,
.assistant-title,
.bill-title,
.call-title,
.edata-title,
.track-title,
.timeaxis-title,
.relation-title,
.asset-title,
.workbench-title {
  margin-bottom: 20px;
}

.cases-title h1,
.import-title h1,
.governance-title h1,
.portrait-title h1,
.assistant-title h1,
.bill-title h1,
.call-title h1,
.edata-title h1,
.track-title h1,
.timeaxis-title h1,
.relation-title h1,
.asset-title h1,
.workbench-title h1 {
  margin-bottom: 8px;
  font-size: 20px;
}

.cases-title p,
.import-title p,
.governance-title p,
.portrait-title p,
.assistant-title p,
.bill-title p,
.call-title p,
.edata-title p,
.track-title p,
.timeaxis-title p,
.relation-title p,
.asset-title p,
.workbench-title p {
  font-size: 11px;
}

.portrait-console {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 300px auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.portrait-search,
.portrait-case-select {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(60, 82, 116, .78);
  border-radius: 5px;
  background: rgba(10, 20, 34, .72);
}

.portrait-search {
  padding: 0 12px;
}

.portrait-search svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #7fa8d8;
  stroke-width: 2;
}

.portrait-search input,
.portrait-case-select select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e5eefb;
  font: inherit;
  font-size: 12px;
}

.portrait-search input::placeholder {
  color: #607894;
}

.portrait-case-select {
  padding: 0 10px;
}

.portrait-case-select span {
  flex: 0 0 auto;
  color: #7890ae;
  font-size: 11px;
}

.compact {
  min-width: 72px;
  height: 32px;
  padding: 0 12px;
  font-size: 11px;
}

.portrait-roster .person-card {
  position: relative;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.portrait-roster .person-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .08), transparent);
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity .2s ease, transform .38s ease;
  pointer-events: none;
}

.portrait-roster .person-card:hover,
.portrait-roster .person-card.selected {
  border-color: rgba(56, 189, 248, .8);
  box-shadow: 0 14px 32px rgba(8, 16, 28, .32);
  transform: translateY(-2px);
}

.portrait-roster .person-card:hover::after,
.portrait-roster .person-card.selected::after {
  opacity: 1;
  transform: translateX(30%);
}

.portrait-overview-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr .95fr;
  gap: 12px;
  margin-top: 14px;
}

.portrait-identity-card,
.portrait-risk-card,
.portrait-tag-card {
  min-height: 194px;
  padding: 16px;
}

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

.portrait-panel-head span {
  display: block;
  margin-bottom: 6px;
  color: #7790ae;
  font-size: 10px;
}

.portrait-panel-head h2 {
  margin: 0;
  color: #f8fbff;
  font-size: 14px;
}

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

.identity-list div,
.dimension-detail-grid div {
  min-height: 48px;
  padding: 10px;
  border: 1px solid rgba(52, 73, 105, .72);
  border-radius: 5px;
  background: rgba(8, 18, 31, .62);
}

.identity-list dt,
.dimension-detail-grid span {
  display: block;
  margin-bottom: 7px;
  color: #6f87a4;
  font-size: 10px;
}

.identity-list dd,
.dimension-detail-grid strong {
  margin: 0;
  color: #eef6ff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.portrait-risk-card {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 16px;
  align-items: center;
}

.risk-score-ring {
  --risk-color: #ef4444;
  width: 130px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0f1d30 0 56%, transparent 57%),
    conic-gradient(var(--risk-color) calc(var(--risk) * 1%), rgba(52, 70, 99, .85) 0);
  box-shadow: inset 0 0 28px rgba(255, 255, 255, .04), 0 0 30px rgba(239, 68, 68, .15);
}

.risk-score-ring.risk-mid {
  --risk-color: #f59e0b;
  box-shadow: inset 0 0 28px rgba(255, 255, 255, .04), 0 0 30px rgba(245, 158, 11, .14);
}

.risk-score-ring.risk-low {
  --risk-color: #22c55e;
  box-shadow: inset 0 0 28px rgba(255, 255, 255, .04), 0 0 30px rgba(34, 197, 94, .12);
}

.risk-score-ring strong {
  color: white;
  font-size: 34px;
  line-height: 1;
}

.risk-score-ring span {
  position: absolute;
  bottom: 34px;
  color: #8ea6c2;
  font-size: 10px;
}

.risk-summary h2 {
  margin: 0 0 8px;
  font-size: 15px;
}

.risk-summary p {
  margin: 0 0 13px;
  color: #8fa7c2;
  font-size: 11px;
  line-height: 1.65;
}

.risk-bars {
  display: grid;
  gap: 8px;
}

.risk-bar-row {
  display: grid;
  grid-template-columns: 58px 1fr 24px;
  gap: 8px;
  align-items: center;
  color: #90a7c4;
  font-size: 10px;
}

.risk-bar-row i {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(52, 70, 99, .75);
}

.risk-bar-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  animation: portrait-bar-fill .75s ease both;
}

.risk-bar-row b.red {
  background: linear-gradient(90deg, #ef4444, #fb7185);
}

.risk-bar-row b.amber {
  background: linear-gradient(90deg, #f59e0b, #facc15);
}

.risk-bar-row b.green {
  background: linear-gradient(90deg, #16a34a, #34d399);
}

.sensitive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.sensitive-tag {
  height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(73, 99, 137, .76);
  border-radius: 999px;
  background: rgba(12, 26, 43, .85);
  color: #cbdcf1;
  cursor: pointer;
}

.sensitive-tag.hot {
  border-color: rgba(239, 68, 68, .55);
  background: rgba(127, 29, 29, .22);
  color: #fecaca;
}

.portrait-dimensions .dimension-grid {
  grid-template-columns: repeat(5, minmax(128px, 1fr));
}

.portrait-dimensions .dimension-card {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.portrait-dimensions .dimension-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

.portrait-dimensions .dimension-card.selected::before {
  background: #38bdf8;
}

.portrait-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 12px;
  margin-top: 18px;
}

.portrait-detail-panel,
.portrait-network-panel {
  min-height: 236px;
  padding: 16px;
}

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

.related-case-list {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.related-case-list article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(52, 73, 105, .72);
  border-radius: 5px;
  background: rgba(8, 18, 31, .62);
}

.related-case-list b {
  color: #7dd3fc;
  font-size: 11px;
}

.related-case-list span {
  color: #eef6ff;
  font-size: 12px;
}

.related-case-list em {
  color: #8ea6c2;
  font-size: 10px;
  font-style: normal;
}

.portrait-distribution {
  height: auto;
  min-height: 300px;
}

.portrait-distribution .bar-chart {
  height: 255px;
}

.portrait-bar-chart .bars rect {
  transform-origin: 80px center;
  animation: portrait-bar-fill .8s ease both, portrait-bar-breathe 3s ease-in-out infinite;
}

.portrait-bar-chart .bars rect:nth-child(3n + 1) {
  fill: #38bdf8;
}

.portrait-bar-chart .bars rect:nth-child(3n + 2) {
  fill: #22c55e;
}

.portrait-bar-chart .bars rect:nth-child(3n) {
  fill: #f59e0b;
}

.portrait-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px 14px;
  border: 1px dashed rgba(73, 99, 137, .6);
  border-radius: 6px;
  color: #7188a5;
  text-align: center;
}

.portrait-distribution-live {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.portrait-distribution-live > div {
  display: grid;
  grid-template-columns: 110px minmax(120px, 1fr) 48px;
  align-items: center;
  gap: 12px;
  color: #9fb2c9;
  font-size: 12px;
}

.portrait-distribution-live i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(52, 73, 105, .42);
}

.portrait-distribution-live b {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
}

.portrait-distribution-live em {
  color: #e5eefb;
  font-style: normal;
  text-align: right;
}

/* Module 13: case configuration */
.config-content {
  display: grid;
  gap: 16px;
}

.config-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.config-title-actions,
.config-control-main,
.config-preset-row,
.config-panel-head,
.config-module-sync div {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.config-metric-card,
.config-field-card,
.config-rule-card,
.config-preview-box article {
  border: 1px solid rgba(52, 73, 105, .72);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(12, 27, 45, .94), rgba(7, 16, 29, .9));
}

.config-metric-card {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.config-metric-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 0 14px;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, rgba(34, 197, 94, .72), transparent);
}

.config-metric-card.hot::after {
  background: linear-gradient(90deg, #ef4444, #f59e0b, transparent);
}

.config-metric-card span,
.config-field-card span,
.config-preview-box span,
.config-panel-head span,
.config-rule-card span {
  color: #8ea6c2;
  font-size: 12px;
}

.config-metric-card strong {
  color: #f8fbff;
  font-size: 28px;
  line-height: 1;
}

.config-metric-card em,
.config-field-card em,
.config-rule-card p {
  color: #9fb2c9;
  font-size: 12px;
  font-style: normal;
  line-height: 1.55;
}

.config-control-panel {
  padding: 14px;
}

.config-control-main {
  flex-wrap: wrap;
}

.config-control-main .search-field {
  flex: 1 1 280px;
}

.config-control-main .select-field {
  min-width: 174px;
}

.config-preset-row {
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(52, 73, 105, .52);
}

.config-preset-row button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(73, 99, 137, .76);
  border-radius: 999px;
  background: rgba(9, 20, 34, .82);
  color: #b8cbe4;
  cursor: pointer;
}

.config-preset-row button.active,
.config-preset-row button:hover {
  border-color: rgba(56, 189, 248, .72);
  background: rgba(14, 116, 144, .22);
  color: #e0f7ff;
}

.config-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr);
  gap: 16px;
}

.config-layout.lower {
  grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr);
}

.config-field-panel,
.config-preview-panel,
.config-rule-panel,
.config-hit-panel {
  padding: 16px;
}

.config-panel-head {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.config-panel-head h2 {
  margin: 0 0 5px;
  color: #f5f9ff;
  font-size: 16px;
}

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

.config-field-card {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.config-field-card strong {
  color: #eef6ff;
  font-size: 14px;
}

.config-field-card input:not([type="checkbox"]) {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(73, 99, 137, .78);
  border-radius: 4px;
  outline: 0;
  background: rgba(7, 16, 29, .86);
  color: #eef6ff;
  font: inherit;
}

.config-field-card input:not([type="checkbox"]):focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .12);
}

.config-field-card input[type="checkbox"] {
  width: 34px;
  height: 18px;
  accent-color: #22c55e;
}

.config-field-card.active {
  border-color: rgba(56, 189, 248, .65);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .16), 0 14px 30px rgba(8, 47, 73, .16);
}

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

.config-preview-box article {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.config-preview-box strong {
  color: #7dd3fc;
  font-size: 15px;
}

.config-module-sync {
  margin-top: 16px;
}

.config-module-sync strong {
  display: block;
  margin-bottom: 10px;
  color: #e5eefb;
  font-size: 13px;
}

.config-module-sync div {
  flex-wrap: wrap;
}

.config-module-sync span {
  padding: 6px 9px;
  border: 1px solid rgba(52, 73, 105, .68);
  border-radius: 999px;
  color: #94a9c2;
  font-size: 11px;
}

.config-module-sync span.active {
  border-color: rgba(34, 197, 94, .58);
  color: #bbf7d0;
  background: rgba(22, 101, 52, .18);
}

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

.config-rule-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  opacity: .62;
}

.config-rule-card.active {
  opacity: 1;
}

.config-rule-card button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(73, 99, 137, .78);
  border-radius: 50%;
  background: rgba(12, 24, 40, .88);
  cursor: pointer;
  position: relative;
}

.config-rule-card button::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: #64748b;
}

.config-rule-card.active button::after {
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, .56);
}

.config-rule-card strong {
  display: block;
  margin: 5px 0;
  color: #eef6ff;
  font-size: 14px;
}

.config-rule-card.red {
  border-color: rgba(239, 68, 68, .4);
}

.config-rule-card.amber {
  border-color: rgba(245, 158, 11, .42);
}

.config-rule-card.blue {
  border-color: rgba(59, 130, 246, .42);
}

.config-rule-card.violet {
  border-color: rgba(139, 92, 246, .44);
}

.config-rule-card.green {
  border-color: rgba(34, 197, 94, .38);
}

.config-hit-panel {
  overflow: hidden;
}

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

.config-hit-table th,
.config-hit-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(52, 73, 105, .56);
  color: #cbdcf1;
  font-size: 12px;
  text-align: left;
  vertical-align: top;
}

.config-hit-table th {
  color: #8ea6c2;
  font-weight: 600;
}

.config-hit-table td:nth-child(4) {
  color: #eef6ff;
  min-width: 220px;
}

.config-hit-table .config-empty-row {
  padding: 34px 12px;
  color: #7188a5;
  text-align: center;
}

@keyframes portrait-bar-fill {
  from {
    transform: scaleX(.03);
    opacity: .35;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes portrait-bar-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18) drop-shadow(0 0 8px rgba(56, 189, 248, .18)); }
}

@media (max-width: 1280px) {
  .assistant-brief {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assistant-layout {
    grid-template-columns: 240px minmax(420px, 1fr);
  }

  .assistant-evidence {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
  }

  .assistant-evidence .assistant-panel-head {
    grid-column: 1 / -1;
  }

  .portrait-console {
    grid-template-columns: 1fr 260px;
  }

  .portrait-overview-grid,
  .portrait-workbench {
    grid-template-columns: 1fr;
  }

  .portrait-dimensions .dimension-grid {
    grid-template-columns: repeat(3, minmax(128px, 1fr));
  }
}

@media (max-width: 760px) {
  .assistant-brief,
  .assistant-layout,
  .assistant-evidence,
  .portrait-console,
  .person-card-grid,
  .portrait-dimensions .dimension-grid,
  .identity-list,
  .dimension-detail-grid {
    grid-template-columns: 1fr;
  }

  .assistant-content {
    height: auto;
  }

  .chat-history,
  .chat-panel,
  .assistant-evidence {
    min-height: 0;
  }

  .chat-scroll {
    max-height: 520px;
  }

  .prompt-chips {
    flex-direction: column;
  }

  .prompt-chips button {
    width: 100%;
    white-space: normal;
  }

  .assistant-evidence .assistant-panel-head {
    grid-column: auto;
  }

  .portrait-risk-card {
    grid-template-columns: 1fr;
  }

  .config-title,
  .config-panel-head,
  .config-title-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .config-metric-grid,
  .config-layout,
  .config-layout.lower,
  .config-field-grid,
  .config-preview-box {
    grid-template-columns: 1fr;
  }

  .config-hit-panel {
    overflow-x: auto;
  }

  .config-hit-table {
    min-width: 760px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Factual analysis workspaces: timeline, graph and assets */
.timeaxis-content,
.relation-content,
.asset-content {
  --factual-surface: rgba(10, 24, 41, .92);
  --factual-line: rgba(82, 115, 151, .42);
  --factual-muted: #93a9c1;
  --factual-text: #e8f2fd;
}

.timeaxis-factual-loading,
.relation-factual-loading,
.asset-factual-loading {
  min-height: calc(100dvh - 52px);
  position: relative;
}

.timeaxis-factual-loading > *,
.relation-factual-loading > *,
.asset-factual-loading > * { visibility: hidden; }

.timeaxis-factual-loading::after,
.relation-factual-loading::after,
.asset-factual-loading::after {
  content: "正在加载案件事实…";
  position: absolute;
  inset: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--factual-line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(14, 32, 54, .96), rgba(7, 18, 32, .98));
  color: var(--factual-muted);
  font-size: 14px;
}

.timeaxis-case-chip,
.timeaxis-factual-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--factual-line);
  border-radius: 7px;
  background: rgba(7, 18, 32, .68);
  color: #cfe4f8;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.timeaxis-content .timeaxis-filter {
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  min-height: 42px;
}

.timeaxis-content .timeaxis-chips {
  flex-wrap: wrap;
}

.timeaxis-content .timeaxis-chips button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--factual-line);
  border-radius: 7px;
  background: rgba(12, 29, 49, .86);
  color: #9fb5cc;
  font-size: 12px;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.timeaxis-content .timeaxis-chips button.active {
  border-color: rgba(56, 189, 248, .72);
  background: rgba(14, 116, 144, .28);
  color: #e5f8ff;
}

.timeaxis-fusion-card.factual {
  position: relative;
  overflow: hidden;
  min-height: 94px;
  border-color: color-mix(in srgb, var(--timeaxis-accent) 42%, transparent);
}

.timeaxis-content .timeaxis-fusion-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.timeaxis-fusion-card.factual::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--timeaxis-accent);
}

.timeaxis-fusion-card.factual strong { color: var(--timeaxis-accent); }
.timeaxis-fusion-card.factual em { color: #8da5be; line-height: 1.5; }

.timeaxis-factual-grid line {
  stroke: rgba(78, 107, 139, .34);
  stroke-width: 1;
}

.timeaxis-factual-grid text,
.timeaxis-svg-empty {
  fill: #8fa8c2;
  font-size: 13px;
}

.timeaxis-scatter circle {
  outline: none;
  stroke: #d8f3ff;
  stroke-width: 1.5;
  cursor: help;
}

.timeaxis-scatter circle:focus { stroke: #fff; stroke-width: 4; }
.timeaxis-event-list li.factual { min-height: 80px; }
.timeaxis-event-list li.factual p { color: #9fb3c9; line-height: 1.6; }
.timeaxis-tag { margin-right: 8px; border: 1px solid rgba(56, 189, 248, .28); background: rgba(14, 116, 144, .16); color: #7dd3fc; }
.timeaxis-arc.factual { fill: none; stroke-width: 18; }
.timeaxis-factual-empty,
.relation-factual-empty,
.asset-factual-empty {
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px dashed rgba(91, 125, 162, .44);
  border-radius: 9px;
  background: rgba(7, 18, 31, .42);
  color: #8fa7c0;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.timeaxis-content button:focus-visible,
.relation-content button:focus-visible,
.relation-content input:focus-visible,
.relation-content select:focus-visible,
.asset-content button:focus-visible {
  outline: 3px solid rgba(56, 189, 248, .82);
  outline-offset: 2px;
}

.relation-schema-card.factual { min-height: 82px; }
.relation-query-strip code { white-space: normal; line-height: 1.55; }
.relation-graph { min-height: 390px; }
.relation-factual-links line {
  stroke: rgba(106, 143, 181, .62);
  stroke-width: var(--edge-weight, 1.5);
}

.relation-factual-nodes g { outline: none; cursor: pointer; }
.relation-factual-nodes circle {
  stroke: rgba(226, 243, 255, .82);
  stroke-width: 2;
  transition: filter .2s ease, stroke-width .2s ease;
}
.relation-factual-nodes text { fill: #dcecff; font-size: 12px; font-weight: 700; }
.relation-factual-nodes g:hover circle,
.relation-factual-nodes g:focus circle,
.relation-factual-nodes g.active circle { filter: drop-shadow(0 0 12px rgba(56, 189, 248, .65)); stroke: #fff; stroke-width: 4; }
.relation-svg-empty { fill: #8fa7c0; font-size: 15px; }
.relation-content .relation-stats dd { font-variant-numeric: tabular-nums; }
.relation-content button:disabled,
.asset-content button:disabled,
.timeaxis-content button:disabled { cursor: not-allowed; opacity: .46; }

.asset-metric strong {
  overflow-wrap: anywhere;
  color: #edf7ff;
  font-variant-numeric: tabular-nums;
  font-size: clamp(14px, 1.15vw, 18px);
}

.asset-factual-bars { display: grid; gap: 16px; margin-top: 20px; }
.asset-content .asset-donut-panel,
.asset-content .asset-trend-panel { height: auto; min-height: 306px; }
.asset-factual-bars article { display: grid; gap: 8px; }
.asset-factual-bars article > div { display: flex; justify-content: space-between; gap: 16px; color: #a9bfd5; font-size: 12px; }
.asset-factual-bars article strong { color: #e8f4ff; font-variant-numeric: tabular-nums; }
.asset-factual-bars i { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(64, 91, 122, .42); }
.asset-factual-bars i::after { content: ""; display: block; width: var(--asset-rate); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0ea5e9, #2dd4bf); }

.asset-quality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.asset-quality-grid article { min-height: 76px; display: grid; align-content: center; gap: 6px; padding: 12px 14px; border: 1px solid var(--factual-line); border-radius: 8px; background: rgba(7, 19, 33, .58); }
.asset-quality-grid span { color: #8ea6bf; font-size: 11px; }
.asset-quality-grid strong { color: #e8f4ff; font-size: 20px; font-variant-numeric: tabular-nums; }
.asset-quality-note { margin: 16px 0 0; color: #8199b3; font-size: 11px; line-height: 1.6; }
.asset-ledger-card.factual p { min-height: 0; line-height: 1.55; }
.asset-table-empty { padding: 28px !important; color: #8fa7c0 !important; text-align: center !important; }

@media (max-width: 1180px) {
  .timeaxis-workbench,
  .relation-map-layout,
  .asset-model-grid { grid-template-columns: 1fr; }
  .asset-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .relation-detail-panel { min-height: auto; }
}

@media (max-width: 820px) {
  .timeaxis-title,
  .relation-title,
  .asset-section-head { align-items: stretch; flex-direction: column; }
  .timeaxis-title-actions,
  .relation-title-actions,
  .asset-actions { width: 100%; justify-content: flex-start; }
  .timeaxis-date-group { align-items: flex-start; flex-direction: column; }
  .timeaxis-chips { width: 100%; }
  .timeaxis-content .timeaxis-chips button { flex: 1 1 120px; }
  .timeaxis-chart-panel { height: auto; min-height: 320px; overflow-x: auto; }
  .timeaxis-scatter { min-width: 720px; }
  .relation-toolbar { align-items: stretch; grid-template-columns: 1fr; }
  .relation-search,
  .relation-select { width: 100%; }
  .relation-graph-panel { overflow-x: auto; }
  .relation-graph { min-width: 720px; }
  .asset-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-chart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .timeaxis-content,
  .relation-content,
  .asset-content { padding: 18px 12px 30px; }
  .timeaxis-title-actions,
  .relation-title-actions,
  .asset-actions { display: grid; grid-template-columns: 1fr; }
  .timeaxis-title-actions button,
  .relation-title-actions button,
  .asset-actions button { width: 100%; min-height: 42px; }
  .timeaxis-fusion-grid,
  .asset-metrics,
  .asset-quality-grid { grid-template-columns: 1fr; }
  .timeaxis-content .timeaxis-chips button { flex-basis: 100%; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .timeaxis-content *,
  .relation-content *,
  .asset-content * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 1180px) {
  .track-source-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .track-analysis-grid,
  .track-analysis-grid.wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .track-title,
  .track-control-panel,
  .track-map-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .track-map-top {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    padding: 10px;
    background: #081321;
  }

  .track-map-stage {
    min-height: 420px;
  }

  .track-source-grid {
    grid-template-columns: 1fr;
  }

  .track-ak-box input,
  .track-title-actions select {
    width: 100%;
  }
}

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

.enterprise-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  overflow: hidden;
}

.enterprise-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(6, 182, 212, .14), transparent 38%),
    linear-gradient(270deg, rgba(16, 185, 129, .10), transparent 45%);
}

.enterprise-hero > * {
  position: relative;
  z-index: 1;
}

.enterprise-kicker,
.enterprise-info-list dt,
.enterprise-profile-card .portrait-panel-head span,
.enterprise-ai-card .portrait-panel-head span,
.enterprise-group-card .portrait-panel-head span,
.enterprise-cycle-panel .portrait-panel-head span {
  color: #7dd3fc;
  font-size: 11px;
  letter-spacing: 0;
}

.enterprise-hero h2 {
  margin: 7px 0 8px;
  font-size: 22px;
}

.enterprise-hero p {
  max-width: 760px;
  margin: 0;
  color: #b7c9dd;
  line-height: 1.75;
}

.enterprise-actions {
  min-width: 330px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: end;
}

.enterprise-actions label {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  color: #8ea2bd;
}

.enterprise-actions select {
  height: 36px;
  border: 1px solid rgba(125, 211, 252, .25);
  border-radius: 6px;
  background: #0b1728;
  color: #eaf4ff;
  padding: 0 10px;
}

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

.enterprise-metric-grid article {
  min-height: 88px;
  padding: 15px;
  border: 1px solid rgba(46, 69, 99, .85);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(19, 35, 56, .96), rgba(12, 24, 40, .96));
}

.enterprise-metric-grid span,
.enterprise-metric-grid em {
  display: block;
  color: #8ea2bd;
  font-style: normal;
}

.enterprise-metric-grid strong {
  display: block;
  margin: 8px 0 3px;
  font-size: 25px;
  color: #f7fbff;
}

.enterprise-metric-grid em.red {
  color: #fca5a5;
}

.enterprise-metric-grid em.amber {
  color: #fbbf24;
}

.enterprise-layout,
.enterprise-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 14px;
}

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

.enterprise-info-list div {
  padding: 12px;
  border: 1px solid rgba(46, 69, 99, .75);
  border-radius: 6px;
  background: rgba(7, 16, 30, .58);
}

.enterprise-info-list dt,
.enterprise-info-list dd {
  margin: 0;
}

.enterprise-info-list dd {
  margin-top: 5px;
  color: #edf6ff;
  font-weight: 700;
}

.enterprise-ai-card p {
  margin: 0;
  color: #c4d4e7;
  line-height: 1.8;
}

.enterprise-ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.enterprise-ai-tags span {
  padding: 6px 9px;
  border: 1px solid rgba(6, 182, 212, .28);
  border-radius: 999px;
  background: rgba(6, 182, 212, .1);
  color: #a5f3fc;
}

.enterprise-dimension-panel {
  overflow: hidden;
}

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

.enterprise-dimension-grid button {
  min-height: 94px;
  text-align: left;
  border: 1px solid rgba(46, 69, 99, .82);
  border-radius: 7px;
  background: rgba(9, 21, 36, .82);
  color: #d8e7f8;
  padding: 11px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.enterprise-dimension-grid button:hover,
.enterprise-dimension-grid button.active {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, .62);
  background: linear-gradient(180deg, rgba(15, 50, 80, .92), rgba(9, 24, 43, .92));
}

.enterprise-dimension-grid span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 22px;
  border-radius: 5px;
  background: rgba(59, 130, 246, .16);
  color: #93c5fd;
  font-weight: 800;
  font-size: 11px;
}

.enterprise-dimension-grid b,
.enterprise-dimension-grid em {
  display: block;
}

.enterprise-dimension-grid b {
  margin-top: 9px;
  font-size: 13px;
}

.enterprise-dimension-grid em {
  margin-top: 4px;
  color: #8ea2bd;
  font-style: normal;
  line-height: 1.45;
}

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

.enterprise-evidence-list article {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(46, 69, 99, .72);
  border-radius: 7px;
  background: rgba(7, 16, 30, .55);
}

.enterprise-evidence-list span {
  color: #7dd3fc;
  font-weight: 800;
}

.enterprise-evidence-list strong {
  color: #f7fbff;
}

.enterprise-evidence-list p {
  margin: 4px 0 0;
  color: #9fb4cf;
  line-height: 1.55;
}

.enterprise-evidence-list em {
  min-width: 58px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .14);
  color: #fbbf24;
  font-style: normal;
  text-align: center;
}

.enterprise-groups {
  display: grid;
  gap: 10px;
}

.enterprise-groups button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  text-align: left;
  border: 1px solid rgba(46, 69, 99, .75);
  border-radius: 7px;
  background: rgba(7, 16, 30, .55);
  color: #dbeafe;
  padding: 12px;
  cursor: pointer;
}

.enterprise-groups button.active {
  border-color: rgba(16, 185, 129, .72);
  background: rgba(16, 185, 129, .12);
}

.enterprise-groups span {
  color: #8ea2bd;
}

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

.enterprise-cycle-flow article {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(46, 69, 99, .75);
  border-radius: 7px;
  background: rgba(7, 16, 30, .55);
}

.enterprise-cycle-flow article::after {
  content: "";
  position: absolute;
  top: 23px;
  right: -18px;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, rgba(6, 182, 212, .9), transparent);
}

.enterprise-cycle-flow article:last-child::after {
  display: none;
}

.enterprise-cycle-flow span {
  color: #22d3ee;
  font-weight: 800;
}

.enterprise-cycle-flow strong {
  display: block;
  margin: 8px 0 6px;
  color: #f7fbff;
}

.enterprise-cycle-flow p {
  margin: 0;
  color: #9fb4cf;
  line-height: 1.6;
}

@media (max-width: 1280px) {
  .enterprise-dimension-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .enterprise-layout,
  .enterprise-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .enterprise-hero,
  .enterprise-actions {
    grid-template-columns: 1fr;
  }

  .enterprise-hero {
    display: grid;
  }

  .enterprise-metric-grid,
  .enterprise-dimension-grid,
  .enterprise-cycle-flow,
  .enterprise-info-list {
    grid-template-columns: 1fr;
  }

  .enterprise-evidence-list article {
    grid-template-columns: 1fr;
  }
}
/* B00: one accessible state surface for loading, empty, permission, task, and backend failures. */
.analysis-projection-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 5px 16px;
  align-items: center;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(56, 189, 248, .28);
  border-left: 3px solid #38bdf8;
  border-radius: 10px;
  background: linear-gradient(100deg, rgba(14, 116, 144, .18), rgba(15, 23, 42, .76));
  box-shadow: 0 14px 34px rgba(2, 8, 23, .18);
}
.analysis-projection-state .analysis-projection-kicker { grid-row: 1 / 3; color: #7dd3fc; font-size: 11px; letter-spacing: .12em; writing-mode: vertical-rl; }
.analysis-projection-state strong { color: #e0f2fe; font-size: 15px; }
.analysis-projection-state p { grid-column: 2; margin: 0; color: #94a3b8; line-height: 1.55; }
.analysis-projection-state small { grid-column: 3; grid-row: 1 / 3; color: #bae6fd; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .analysis-projection-state { grid-template-columns: 1fr; }
  .analysis-projection-state .analysis-projection-kicker,
  .analysis-projection-state strong,
  .analysis-projection-state p,
  .analysis-projection-state small { grid-column: 1; grid-row: auto; writing-mode: horizontal-tb; }
}
.api-state-panel {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 20px;
  padding: 20px;
  color: #dcecff;
  background: rgba(13, 29, 49, .96);
  border: 1px solid rgba(94, 143, 199, .48);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

.api-state-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(83, 164, 255, .38);
  border-radius: 12px;
  background: rgba(47, 124, 255, .13);
}

.api-state-mark::before {
  content: "";
  width: 13px;
  height: 15px;
  border: 2px solid #70b7ff;
  border-radius: 3px;
  box-shadow: inset 0 5px rgba(112, 183, 255, .08);
}

.api-state-copy {
  display: grid;
  gap: 5px;
}

.api-state-panel strong {
  color: #f2f8ff;
  font-size: 16px;
  line-height: 1.35;
}

.api-state-panel .api-state-copy span {
  color: #91a8c2;
  font-size: 12px;
  line-height: 1.65;
}

.api-state-action {
  grid-column: 2;
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 0 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #287bec, #3b9cf5);
  color: white;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 9px 24px rgba(40, 123, 236, .25);
}

.api-state-action:hover {
  background: linear-gradient(135deg, #3389f8, #4aabff);
}

.api-state-action:focus-visible {
  outline: 3px solid rgba(112, 183, 255, .48);
  outline-offset: 3px;
}

.api-state-panel[data-state="forbidden"],
.api-state-panel[data-state="task-failed"],
.api-state-panel[data-state="backend-unavailable"] {
  border-color: rgba(224, 101, 112, .55);
  background: rgba(42, 19, 28, .96);
}

.api-state-panel[data-state="forbidden"] .api-state-mark,
.api-state-panel[data-state="task-failed"] .api-state-mark,
.api-state-panel[data-state="backend-unavailable"] .api-state-mark {
  border-color: rgba(240, 112, 124, .42);
  background: rgba(239, 68, 68, .11);
}

.api-state-panel[data-state="forbidden"] .api-state-mark::before,
.api-state-panel[data-state="task-failed"] .api-state-mark::before,
.api-state-panel[data-state="backend-unavailable"] .api-state-mark::before {
  border-color: #f3838d;
}

body.api-blocking-state {
  min-height: 100dvh;
  overflow: hidden;
  background: #07101e;
}

body.api-blocking-state .app-shell {
  min-height: 100dvh;
  display: block;
  background:
    radial-gradient(circle at 24% 18%, rgba(22, 113, 209, .16), transparent 34%),
    radial-gradient(circle at 78% 76%, rgba(45, 75, 156, .12), transparent 38%),
    #07101e;
}

body.api-blocking-state .sidebar,
body.api-blocking-state .topbar {
  display: none !important;
}

body.api-blocking-state main {
  min-height: 100dvh;
  width: 100%;
  display: block;
}

body.api-blocking-state main *:not([data-api-state-panel]):not([data-api-state-panel] *) {
  visibility: hidden;
}

body.api-blocking-state .api-state-panel {
  position: fixed;
  z-index: 1100;
  left: 50%;
  top: 50%;
  width: min(460px, calc(100% - 32px));
  min-height: 190px;
  margin: 0;
  padding: 30px;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  transform: translate(-50%, -50%);
  visibility: visible;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
}

body.api-blocking-state .api-state-mark {
  width: 52px;
  height: 52px;
  border-radius: 15px;
}

body.api-blocking-state .api-state-panel strong {
  font-size: 21px;
}

body.api-blocking-state .api-state-panel .api-state-copy span {
  font-size: 13px;
}

@media (max-width: 520px) {
  body.api-blocking-state .api-state-panel {
    min-height: 0;
    padding: 24px;
    grid-template-columns: 1fr;
  }

  body.api-blocking-state .api-state-mark {
    width: 46px;
    height: 46px;
  }

  body.api-blocking-state .api-state-action {
    grid-column: 1;
    width: 100%;
  }
}
/* B02 authenticated entry surface */
.auth-page { min-height: 100vh; margin: 0; background: radial-gradient(circle at 15% 15%, rgba(24, 106, 255, .18), transparent 35%), #07111f; color: #e7efff; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(420px, 100%); padding: 36px; border: 1px solid rgba(152, 188, 255, .2); border-radius: 24px; background: rgba(11, 25, 45, .9); box-shadow: 0 24px 80px rgba(0, 0, 0, .35); }
.auth-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #2f7cff; color: white; }
.auth-card h1 { margin: 10px 0; font-size: 30px; }
.auth-copy, .auth-hint { color: #9db0cb; line-height: 1.6; }
.auth-card form { display: grid; gap: 16px; margin-top: 24px; }
.auth-card label { display: grid; gap: 7px; color: #c9d8ee; font-size: 13px; }
.auth-card input { box-sizing: border-box; width: 100%; padding: 12px 13px; border: 1px solid rgba(152, 188, 255, .22); border-radius: 10px; background: #0b1b31; color: #f5f8ff; }
.auth-card .primary-btn { border: 0; border-radius: 10px; padding: 12px; background: #2f7cff; color: white; cursor: pointer; font-weight: 700; }
.auth-error { margin: 0; color: #ff9f9f; }

/* B20 one-click evidence ingestion: dense, evidence-first operations console */
.b20-ingestion-page { gap: 18px; }
.b20-source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.b20-source-card { display: grid; gap: 7px; padding: 18px; border: 1px dashed rgba(68, 211, 181, .45); border-radius: 12px; background: linear-gradient(135deg, rgba(24, 52, 64, .82), rgba(14, 28, 38, .72)); cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.b20-source-card:hover { border-color: #44d3b5; transform: translateY(-2px); }
.b20-source-card strong { color: #e9fff9; font-size: 15px; }
.b20-source-card span, .b20-selection { color: #8faab2; font-size: 12px; }
.b20-source-card input { width: 100%; color: #b9d4d8; }
.b20-selection { margin: 0 0 14px; padding-left: 2px; }
.b20-selection.is-error { color: #ff8b98; }
.b20-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.b20-summary > div { display: grid; gap: 6px; padding: 12px; border: 1px solid rgba(118, 157, 168, .2); border-radius: 9px; background: rgba(11, 25, 33, .7); }
.b20-summary span { color: #77939b; font-size: 11px; }
.b20-summary strong { color: #dffaf3; font-size: 17px; }
.b20-progress { height: 4px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.b20-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2f7de1, #44d3b5); transition: width .35s ease; }
.b20-tools { display: flex; gap: 8px; margin: 12px 0; }
.b20-file-list { display: grid; gap: 10px; }
.b20-file-card { padding: 14px; border: 1px solid rgba(95, 134, 146, .22); border-left: 3px solid #357ea6; border-radius: 9px; background: rgba(8, 20, 28, .72); }
.b20-file-card.status-awaiting_confirmation { border-left-color: #e1a645; }
.b20-file-card.status-failed { border-left-color: #dd5b66; }
.b20-file-card.status-parsed, .b20-file-card.status-classified { border-left-color: #44d3b5; }
.b20-file-head { display: flex; justify-content: space-between; gap: 12px; color: #dceff1; }
.b20-file-head span { color: #89a3aa; font: 11px/1.4 ui-monospace, monospace; }
.b20-file-card dl { display: grid; grid-template-columns: repeat(4, auto 1fr); gap: 5px 10px; margin: 12px 0 8px; font-size: 11px; }
.b20-file-card dt { color: #62838c; }
.b20-file-card dd { margin: 0; color: #b8d2d6; }
.b20-file-card p { margin: 5px 0; color: #78959d; font-size: 11px; }
.b20-file-card .b20-warning { color: #d0a35d; }
.b20-file-card .b20-error { color: #de7c86; }
.b20-review { display: grid; grid-template-columns: 160px minmax(200px, 1fr) auto; gap: 8px; margin-top: 10px; }
.b20-review select, .b20-review input { min-height: 34px; border: 1px solid rgba(103, 146, 158, .32); border-radius: 7px; background: #10242d; color: #d8ecef; padding: 0 9px; }
@media (max-width: 820px) {
  .b20-source-grid, .b20-summary { grid-template-columns: 1fr 1fr; }
  .b20-file-card dl { grid-template-columns: auto 1fr auto 1fr; }
  .b20-review { grid-template-columns: 1fr; }
}

/* Authenticated call analysis: factual data replaces every prototype value. */
.call-factual-loading > :not([data-api-state-panel]) {
  visibility: hidden;
}

/* Authenticated electronic-data analysis: factual API bindings replace prototype values. */
.edata-factual-loading > :not([data-api-state-panel]) {
  visibility: hidden;
}

.edata-factual-metric .edata-icon {
  color: #dcecff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.edata-factual-panel {
  min-height: 250px;
}

.edata-factual-bars {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}

.edata-factual-bar {
  display: grid;
  grid-template-columns: minmax(82px, 120px) minmax(120px, 1fr) 64px;
  align-items: center;
  gap: 13px;
  color: #91a8c2;
  font-size: 12px;
}

.edata-factual-bar i {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(78, 107, 145, .22);
}

.edata-factual-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #246fe5, #39bdf8);
  box-shadow: 0 0 16px rgba(57, 189, 248, .22);
}

.edata-factual-bar strong {
  color: #e9f4ff;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.edata-factual-entities {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  margin-top: 24px;
}

.edata-factual-entities > span {
  padding: 8px 11px;
  border: 1px solid rgba(66, 139, 222, .28);
  border-radius: 5px;
  background: rgba(24, 77, 137, .13);
  color: #b9d9ff;
  font-size: 12px;
}

.edata-factual-empty {
  grid-column: 1 / -1;
  min-height: 112px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 22px;
  border: 1px dashed rgba(91, 126, 168, .3);
  border-radius: 6px;
  background: rgba(8, 20, 36, .28);
  color: #7189a6;
  text-align: center;
}

.edata-factual-types .edata-factual-empty {
  min-height: 130px;
}

.edata-factual-search {
  grid-column: span 2;
}

.edata-factual-search-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  margin: 18px 0;
}

.edata-factual-search-controls input {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(76, 112, 158, .5);
  border-radius: 5px;
  outline: none;
  background: rgba(7, 18, 34, .76);
  color: #eaf4ff;
}

.edata-factual-search-controls input:focus-visible {
  border-color: #43a6ff;
  box-shadow: 0 0 0 3px rgba(67, 166, 255, .13);
}

.edata-factual-hit {
  padding: 12px 0;
  border-top: 1px solid rgba(76, 107, 145, .2);
}

.edata-factual-hit strong { color: #dcecff; }
.edata-factual-hit p { margin: 5px 0 0; color: #8fa6c0; line-height: 1.7; }

.edata-factual-status {
  display: grid;
  align-content: start;
  gap: 11px;
}

.edata-factual-status > strong {
  color: #69b8ff;
  font-size: 26px;
}

.edata-factual-status > p,
.edata-factual-status > small {
  margin: 0;
  color: #8da4be;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .edata-factual-search { grid-column: auto; }
}

@media (max-width: 620px) {
  .edata-factual-bar { grid-template-columns: 80px minmax(80px, 1fr) 48px; }
  .edata-factual-search-controls { grid-template-columns: 1fr; }
  .edata-factual-search-controls .primary-btn { width: 100%; }
}

.call-contact-bars {
  height: 235px;
  display: grid;
  align-content: start;
  gap: 8px;
  margin-top: 14px;
  overflow: auto;
}

.call-contact-bars article {
  display: grid;
  grid-template-columns: 96px minmax(80px, 1fr) 54px;
  gap: 9px;
  align-items: center;
}

.call-contact-bars span,
.call-contact-bars b {
  overflow: hidden;
  color: #9eb4cf;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-contact-bars b {
  color: #c9def4;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.call-contact-bars i {
  grid-column: 2;
  grid-row: 1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(70, 101, 140, .22);
}

.call-contact-bars em {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, #347ff0, #22d3ee);
}

.call-hour-grid {
  height: 235px;
  display: grid;
  grid-template-columns: repeat(24, minmax(5px, 1fr));
  align-items: end;
  gap: 4px;
  margin-top: 14px;
  padding: 18px 10px 8px;
  border-bottom: 1px solid rgba(74, 105, 143, .35);
}

.call-hour-grid article {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr 18px;
  align-items: end;
  gap: 5px;
}

.call-hour-grid i {
  width: 100%;
  min-height: 2px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #22d3ee, #2373df);
  box-shadow: 0 0 12px rgba(34, 211, 238, .12);
}

.call-hour-grid span {
  color: #647d9a;
  font-size: 8px;
  text-align: center;
}

.call-factual-empty {
  min-height: 100%;
  display: grid;
  place-items: center;
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px dashed rgba(67, 96, 132, .55);
  border-radius: 8px;
  background: rgba(6, 16, 29, .42);
  color: #7188a5;
  line-height: 1.6;
  text-align: center;
}

.call-factual-empty.compact {
  min-height: 110px;
}

.call-empty-cell {
  color: #7188a5 !important;
  text-align: center;
}

.call-circle-live {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.call-circle-live article {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 5px 12px;
  padding: 11px 12px;
  border: 1px solid rgba(55, 83, 118, .62);
  border-left: 3px solid #6d7ff4;
  border-radius: 7px;
  background: rgba(7, 17, 31, .58);
}

.call-circle-live span {
  grid-row: 1 / span 2;
  color: #91a9c5;
  font-size: 10px;
}

.call-circle-live strong {
  color: #dcecff;
  font-size: 12px;
}

.call-circle-live em {
  color: #7188a5;
  font-size: 9px;
  font-style: normal;
}

.call-station-cloud {
  width: 100%;
  min-height: 220px;
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(32, 126, 217, .16), transparent 55%),
    linear-gradient(rgba(72, 105, 142, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 105, 142, .06) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
}

.call-station-cloud span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(62, 111, 166, .58);
  border-radius: 999px;
  background: rgba(9, 29, 51, .9);
  color: #a8c8e8;
  font-size: 10px;
}

.call-station-cloud span.active {
  border-color: rgba(34, 211, 238, .64);
  color: #b8f5ff;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .07);
}

.call-route-empty,
.call-change-empty {
  color: #7188a5;
  list-style: none;
}

.call-meeting-card > strong {
  display: block;
  color: #dcecff;
  font-size: 13px;
}

.call-meeting-card > p {
  margin: 8px 0 0;
  color: #8fa4bc;
  line-height: 1.65;
}

.call-ai-list > li:only-child {
  color: #8fa4bc;
  line-height: 1.7;
}

.call-action-group button:disabled,
.call-selector-group select:disabled {
  cursor: not-allowed;
  opacity: .5;
}

@media (max-width: 720px) {
  .call-hour-grid {
    gap: 2px;
  }

  .call-contact-bars article {
    grid-template-columns: 76px minmax(70px, 1fr) 46px;
  }
}

/* Authenticated bill analysis: bind real aggregates into the designed workspace. */
.bill-live-list {
  height: calc(100% - 28px);
  display: grid;
  align-content: start;
  gap: 9px;
  margin-top: 14px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #31557e transparent;
}

.bill-flow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid rgba(55, 83, 118, .62);
  border-radius: 7px;
  background: rgba(7, 17, 31, .58);
}

.bill-flow-row div {
  min-width: 0;
}

.bill-flow-row strong,
.bill-flow-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bill-flow-row strong {
  color: #dcecff;
  font-size: 11px;
}

.bill-flow-row span {
  margin-top: 5px;
  color: #7087a4;
  font-size: 10px;
}

.bill-flow-row > b {
  color: #91c5ff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.bill-flow-row > i {
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(72, 102, 140, .2);
}

.bill-flow-row > i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2586ef, #22d3ee);
}

.bill-trend-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 11px;
  border-bottom: 1px solid rgba(55, 83, 118, .46);
}

.bill-trend-row > strong {
  color: #b8cce3;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.bill-trend-bars {
  display: grid;
  gap: 7px;
}

.bill-trend-bars > div {
  display: grid;
  grid-template-columns: 30px minmax(70px, 1fr) 86px;
  gap: 8px;
  align-items: center;
}

.bill-trend-bars span {
  color: #7188a5;
  font-size: 9px;
}

.bill-trend-bars i {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(72, 102, 140, .2);
}

.bill-trend-bars em {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
}

.bill-trend-bars .income em { background: #10b981; }
.bill-trend-bars .expense em { background: #ef5360; }

.bill-trend-bars b {
  color: #b8cce3;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.bill-visual-empty {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px dashed rgba(67, 96, 132, .58);
  border-radius: 8px;
  background: rgba(6, 16, 29, .44);
  color: #7188a5;
  line-height: 1.6;
  text-align: center;
}

.bill-visual-empty.compact {
  min-height: 124px;
}

.bill-empty-cell {
  color: #7188a5 !important;
  text-align: center;
}

.amount-panel [data-bill-analysis-summary] {
  max-width: 920px;
  margin: 28px 0 0;
  color: #a9bdd4;
  font-size: 13px;
  line-height: 1.9;
}

.bill-mode-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8097b3;
  font-size: 10px;
}

.bill-mode-group input {
  height: 30px;
  min-width: 130px;
  padding: 0 9px;
  border: 1px solid rgba(83, 111, 153, .55);
  border-radius: 5px;
  outline: none;
  background: rgba(7, 18, 33, .86);
  color: #d7e7f8;
}

.bill-mode-group input[type="search"] {
  width: 180px;
}

.bill-mode-group input:focus-visible,
.bill-mode-group button:focus-visible {
  border-color: #4c9fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .17);
}

.bill-mode-group button:disabled {
  cursor: wait;
  opacity: .55;
}

.bill-investigation-grid:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "cash";
}

.bill-evidence-card {
  padding: 13px 14px;
  border: 1px solid rgba(60, 90, 126, .6);
  border-left: 3px solid #e7a73b;
  border-radius: 7px;
  background: rgba(7, 18, 33, .65);
}

.bill-evidence-card + .bill-evidence-card {
  margin-top: 9px;
}

.bill-evidence-card > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.bill-evidence-card span {
  color: #f2b95e;
  font-size: 10px;
  font-weight: 800;
}

.bill-evidence-card em {
  color: #7188a5;
  font-size: 9px;
  font-style: normal;
}

.bill-evidence-card strong {
  display: block;
  margin-top: 8px;
  color: #dcecff;
  font-size: 11px;
  line-height: 1.6;
}

.bill-evidence-card p {
  margin: 7px 0 0;
  color: #7890ac;
  font-size: 10px;
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .bill-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "flow" "month" "partner" "suspicious";
  }

  .flow-panel,
  .month-panel,
  .partner-panel,
  .suspicious-panel {
    height: auto;
    min-height: 280px;
  }

  .bill-live-list {
    min-height: 220px;
  }
}

@media (max-width: 720px) {
  .bill-metrics,
  .bill-intel-strip {
    grid-template-columns: 1fr 1fr;
  }

  .bill-filterbar {
    align-items: stretch;
    flex-direction: column;
  }

  .bill-mode-group {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .bill-mode-group label,
  .bill-mode-group input,
  .bill-mode-group input[type="search"],
  .bill-mode-group button {
    width: 100%;
  }

  .partner-panel,
  .suspicious-panel {
    overflow-x: auto;
  }

  .bill-table {
    min-width: 680px;
  }
}

/* Authenticated AI assistant: evidence-first workspace */
.workspace:has(.assistant-api-page) {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 2%, rgba(32, 125, 210, .12), transparent 30%),
    linear-gradient(180deg, #081423 0%, #07101e 68%);
}

.assistant-api-page {
  width: min(1180px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 0 64px;
}

.assistant-api-page .b17-heading {
  position: relative;
  margin: 0 0 28px;
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(74, 106, 145, .28);
}

.assistant-api-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #6eb7ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.assistant-api-page .b17-heading h1 {
  margin: 0;
  color: #f4f9ff;
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 1.18;
  letter-spacing: -.03em;
}

.assistant-api-page .b17-heading p {
  margin: 10px 0 0;
  color: #8ea6c3;
  font-size: 13px;
  line-height: 1.6;
}

.assistant-api-page > .b17-panel {
  position: relative;
  margin-top: 16px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(67, 96, 132, .58);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(17, 31, 49, .96), rgba(11, 23, 39, .96));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .16);
}

.assistant-api-page > .b17-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 176, 255, .58), transparent);
}

.assistant-api-page > .b17-panel > h2 {
  margin: 0 0 22px;
  color: #edf6ff;
  font-size: 16px;
  line-height: 1.4;
}

.assistant-query-panel {
  min-height: 300px;
}

.assistant-api-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 20px;
}

.assistant-query-copy {
  min-width: 0;
}

.assistant-query-copy label {
  display: block;
  color: #d9e9fb;
  font-size: 13px;
  font-weight: 800;
}

.assistant-query-helper {
  margin: 7px 0 0;
  color: #8098b5;
  font-size: 12px;
  line-height: 1.6;
}

.assistant-api-composer textarea {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 124px;
  resize: vertical;
  padding: 15px 16px;
  border: 1px solid rgba(73, 104, 143, .72);
  border-radius: 9px;
  outline: none;
  background: rgba(5, 14, 27, .74);
  color: #eaf4ff;
  caret-color: #63b3ff;
  font: 14px/1.7 "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.assistant-api-composer textarea::placeholder {
  color: #617b99;
}

.assistant-api-composer textarea:hover {
  border-color: rgba(94, 140, 190, .85);
}

.assistant-api-composer textarea:focus-visible {
  border-color: #4c9fff;
  background: rgba(7, 18, 34, .9);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
}

.assistant-query-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.assistant-query-actions .primary-btn.compact {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.assistant-query-actions .assistant-submit-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 116px;
  background: linear-gradient(135deg, #277bea, #349cf5);
  box-shadow: 0 8px 22px rgba(39, 123, 234, .22);
}

.assistant-query-actions .assistant-submit-action:hover {
  background: linear-gradient(135deg, #3188f7, #45a7ff);
  box-shadow: 0 10px 28px rgba(39, 123, 234, .3);
}

.assistant-query-actions .assistant-submit-action.is-loading {
  min-width: 158px;
  cursor: wait;
  opacity: 1;
  transform: none;
  background: linear-gradient(135deg, #226bc9, #2b85d5);
  box-shadow: 0 0 0 1px rgba(116, 190, 255, .12), 0 8px 22px rgba(17, 91, 174, .24);
}

.assistant-query-actions .assistant-submit-action.is-loading::before {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  content: "";
  border: 2px solid rgba(255, 255, 255, .34);
  border-top-color: #fff;
  border-radius: 50%;
  animation: assistant-submit-spin .72s linear infinite;
}

@keyframes assistant-submit-spin {
  to { transform: rotate(360deg); }
}

.assistant-query-actions .assistant-secondary-action {
  background: rgba(15, 34, 56, .82);
  border-color: rgba(83, 119, 161, .7);
  color: #bdd5ee;
  box-shadow: none;
}

.assistant-query-actions .assistant-secondary-action:hover {
  border-color: #6293c8;
  background: rgba(24, 50, 79, .92);
  color: #eff7ff;
}

.assistant-query-actions .primary-btn:focus-visible,
.assistant-api-output a:focus-visible {
  outline: 3px solid rgba(105, 181, 255, .45);
  outline-offset: 2px;
}

.assistant-api-output {
  grid-column: 1 / -1;
}

.assistant-api-output:empty {
  display: none;
}

.assistant-api-output > .b17-panel {
  margin-top: 8px;
  padding: 18px;
  border-radius: 9px;
  background: rgba(6, 17, 30, .62);
}

.assistant-api-output pre {
  max-height: 360px;
  margin: 12px 0 0;
  overflow: auto;
  color: #bed1e6;
  white-space: pre-wrap;
  word-break: break-word;
  font: 12px/1.7 ui-monospace, "Cascadia Code", Consolas, monospace;
}

.assistant-api-output a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid rgba(76, 159, 255, .5);
  border-radius: 8px;
  color: #8cc6ff;
  text-decoration: none;
}

.assistant-answer-card {
  display: grid;
  gap: 18px;
  margin-top: 10px;
  padding: 20px;
  border: 1px solid rgba(68, 105, 145, .62);
  border-radius: 10px;
  background: linear-gradient(155deg, rgba(5, 17, 31, .94), rgba(9, 25, 42, .88));
}

.assistant-answer-error {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(240, 112, 124, .5);
  border-radius: 9px;
  background: rgba(63, 22, 31, .72);
}

.assistant-answer-error strong { color: #ffd7dc; font-size: 13px; }
.assistant-answer-error p { margin: 0; color: #d9aab2; font-size: 12px; line-height: 1.65; }

.assistant-answer-card.status-needs_review { border-color: rgba(245, 158, 11, .55); }
.assistant-answer-card.status-insufficient_evidence,
.assistant-answer-card.status-failed { border-color: rgba(239, 68, 68, .55); }
.assistant-answer-head { display: flex; align-items: center; gap: 10px; }
.assistant-answer-head strong { color: #e9f4ff; font-size: 13px; }
.assistant-answer-head em { margin-left: auto; color: #88a2be; font-size: 11px; font-style: normal; }
.assistant-route-badge { display: inline-flex; min-height: 26px; align-items: center; padding: 0 9px; border: 1px solid rgba(56, 189, 248, .38); border-radius: 4px; background: rgba(14, 116, 144, .18); color: #7dd3fc; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.assistant-route-badge.route-deep { border-color: rgba(245, 158, 11, .42); background: rgba(180, 83, 9, .16); color: #fbbf24; }
.assistant-route-badge.route-deterministic { border-color: rgba(16, 185, 129, .42); background: rgba(5, 150, 105, .14); color: #6ee7b7; }
.assistant-answer-progress { display: flex; align-items: center; gap: 9px; min-height: 30px; padding: 6px 9px; border: 1px solid rgba(56, 189, 248, .16); background: rgba(8, 47, 73, .18); color: #8fa8c2; font-size: 11px; }
.assistant-question-type { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 999px; background: rgba(56, 189, 248, .12); color: #7dd3fc; font-weight: 800; }
.assistant-answer-content { margin: 0; padding: 18px 0; border-block: 1px solid rgba(67, 96, 132, .36); color: #dceafa; font-size: 14px; line-height: 1.9; white-space: pre-wrap; }
.assistant-pipeline-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.assistant-pipeline-strip span { display: grid; gap: 5px; min-height: 58px; align-content: center; padding: 10px; border: 1px solid rgba(67, 96, 132, .42); border-radius: 6px; background: rgba(5, 14, 26, .62); }
.assistant-pipeline-strip b { color: #a9bfd6; font-size: 10px; }
.assistant-pipeline-strip small { color: #5ec8f2; font-size: 10px; }
.assistant-peer-review { padding: 14px 16px; border-left: 3px solid #38bdf8; background: rgba(14, 116, 144, .1); }
.assistant-peer-review.verdict-disagree,
.assistant-peer-review.verdict-uncertain { border-left-color: #f59e0b; background: rgba(180, 83, 9, .1); }
.assistant-peer-review strong { color: #dcecff; font-size: 12px; }
.assistant-peer-review p { margin: 7px 0 0; color: #9db3ca; font-size: 12px; line-height: 1.65; }
.assistant-peer-review ul { margin: 8px 0 0; padding-left: 18px; color: #d4a85e; font-size: 11px; line-height: 1.7; }
.assistant-source-list { display: grid; gap: 8px; }
.assistant-source-list h3 { margin: 0 0 4px; color: #8fa9c3; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.assistant-source-list > article { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 12px; border: 1px solid rgba(65, 95, 130, .38); border-radius: 6px; background: rgba(5, 14, 25, .46); }
.assistant-source-list > article > span { color: #4f9fe9; font: 700 11px/1.5 ui-monospace, monospace; }
.assistant-source-list strong { color: #cfe0f2; font-size: 11px; overflow-wrap: anywhere; }
.assistant-source-list p { margin: 4px 0 0; color: #829ab4; font-size: 11px; line-height: 1.55; }
.assistant-source-list em { color: #58c5a8; font-size: 10px; font-style: normal; white-space: nowrap; }
.assistant-source-empty { margin: 0; padding: 16px; border: 1px dashed rgba(74, 106, 145, .45); color: #7189a4; text-align: center; }
.assistant-answer-card > footer { color: #7089a5; font-size: 10px; line-height: 1.6; }

.assistant-review-panel {
  min-height: 226px;
}

.b25-review-workspace {
  display: grid;
  gap: 14px;
}

.b25-blocked-state {
  min-height: 146px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 24px;
  border: 1px dashed rgba(87, 119, 157, .55);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 0%, rgba(39, 123, 234, .09), transparent 56%),
    rgba(6, 16, 29, .5);
  text-align: center;
}

.b25-blocked-state > span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 10px;
  border: 1px solid rgba(245, 158, 11, .3);
  border-radius: 999px;
  background: rgba(245, 158, 11, .09);
  color: #e7b65f;
  font-size: 11px;
  font-weight: 800;
}

.b25-blocked-state > strong {
  color: #deebf8;
  font-size: 15px;
}

.b25-blocked-state p {
  margin: 8px 0 4px;
  color: #96abc2;
  font-size: 12px;
  line-height: 1.6;
}

.b25-blocked-state small {
  color: #657f9c;
  font-size: 11px;
  line-height: 1.6;
}

.b25-assessment {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(67, 96, 132, .55);
  border-radius: 10px;
  background: rgba(6, 17, 30, .56);
}

.b25-assessment input {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(73, 104, 143, .7);
  border-radius: 8px;
  outline: none;
  background: #071426;
  color: #e8f3ff;
}

.b25-assessment table {
  width: 100%;
  border-collapse: collapse;
  color: #b9cde2;
}

.b25-assessment th,
.b25-assessment td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(67, 96, 132, .35);
  text-align: left;
}

@media (max-width: 860px) {
  .assistant-api-page {
    width: min(100% - 32px, 720px);
    padding: 28px 0 44px;
  }

  .assistant-api-page > .b17-panel {
    padding: 20px;
  }

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

@media (max-width: 620px) {
  .assistant-api-page {
    width: min(100% - 24px, 560px);
    padding-top: 22px;
  }

  .assistant-api-page .b17-heading {
    margin-bottom: 20px;
  }

  .assistant-api-composer {
    grid-template-columns: 1fr;
  }

  .assistant-query-actions {
    flex-direction: column-reverse;
  }

  .assistant-query-actions .primary-btn.compact {
    width: 100%;
  }

  .assistant-api-page > .b17-panel {
    padding: 18px;
    border-radius: 10px;
  }

  .b25-blocked-state {
    justify-items: start;
    text-align: left;
  }

  .b25-assessment {
    overflow-x: auto;
  }

  .assistant-pipeline-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assistant-answer-head { align-items: flex-start; flex-wrap: wrap; }
  .assistant-answer-head em { width: 100%; margin-left: 0; }
  .assistant-source-list > article { grid-template-columns: 26px minmax(0, 1fr); }
  .assistant-source-list > article > em { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .assistant-api-page *,
  .assistant-api-page *::before,
  .assistant-api-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
