.v2-policy-chip {
  min-height: 25px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(28, 111, 90, 0.18);
  border-radius: 5px;
  background: rgba(28, 111, 90, 0.08);
  color: #1c6f5a;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.v2-policy-chip.disconnected {
  border-color: rgba(192, 69, 58, 0.18);
  background: rgba(192, 69, 58, 0.08);
  color: var(--red);
}

.v2-policy-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.v2-settlement-panel {
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.v2-settlement-panel[hidden] { display: none !important; }

.v2-panel-head {
  min-height: 50px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.v2-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.v2-panel-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1c6f5a;
}

.v2-panel-state {
  min-height: 92px;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  background: #fbfcfb;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.v2-panel-state.is-inline {
  min-height: 42px;
  padding: 8px 16px;
  justify-content: flex-start;
}

.v2-panel-state.is-error {
  justify-content: space-between;
  background: #fffafa;
  color: var(--red);
}

.v2-panel-state.is-error > div {
  min-width: 0;
}

.v2-panel-state.is-error strong,
.v2-panel-state.is-error span {
  display: block;
}

.v2-panel-state.is-error span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 500;
}

.v2-panel-state button {
  min-width: 76px;
  min-height: 32px;
  padding: 6px 11px;
  flex: 0 0 auto;
  border: 1px solid #d9a8a3;
  border-radius: 4px;
  background: #ffffff;
  color: var(--red);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.v2-state-spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 2px solid #dbe4e0;
  border-top-color: #1c6f5a;
  border-radius: 50%;
  animation: v2-state-spin .7s linear infinite;
}

@keyframes v2-state-spin {
  to { transform: rotate(360deg); }
}

.v2-profit-only {
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(74, 127, 165, 0.09);
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.v2-monitoring-assumption {
  min-height: 72px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 3px solid #1c6f5a;
  border-bottom: 1px solid var(--border);
  background: #f5faf8;
}

.v2-monitoring-assumption > div:first-child {
  min-width: 0;
}

.v2-monitoring-assumption em,
.v2-monitoring-assumption strong,
.v2-monitoring-assumption span {
  display: block;
  letter-spacing: 0;
}

.v2-monitoring-assumption em {
  margin-bottom: 4px;
  color: #1c6f5a;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.v2-monitoring-assumption strong {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.v2-monitoring-assumption span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.v2-monitoring-mode {
  min-width: 218px;
  padding: 3px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 0 0 auto;
  border: 1px solid #bed3cb;
  border-radius: 5px;
  background: #ffffff;
}

.v2-monitoring-mode button {
  min-height: 36px;
  padding: 7px 12px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
}

.v2-monitoring-mode button.active {
  background: #1c6f5a;
  color: #ffffff;
}

.v2-asset-quarantine-label {
  margin: 10px 15px 0;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #d5b873;
  border-radius: 5px;
  background: #fffaf0;
  color: #7a5a16;
  font-size: 10.5px;
  line-height: 1.35;
}

.v2-asset-quarantine-label strong { font-weight: 800; }
.v2-asset-quarantine-label span { color: #8a6b28; font-weight: 650; }
.v2-asset-quarantine-label > div { min-width: 0; text-align: right; }
.v2-asset-quarantine-label > div span { display: block; }
.v2-asset-quarantine-label[data-recovery-status="RECOVERED"] {
  border-color: #c89e42;
  background: #fff3d5;
  color: #6d4a08;
}
.v2-asset-proof-flags {
  margin-top: 2px;
  color: #765e2b !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 700 !important;
  overflow-wrap: anywhere;
}
.metric-list > .v2-asset-quarantine-label { margin: 0 0 10px; }

.v2-metrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}

.v2-metric {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--border);
}

.v2-metric:last-child { border-right: 0; }
.v2-metric span { display: block; margin-bottom: 6px; color: var(--text-secondary); font-size: 11.5px; font-weight: 500; }
.v2-metric strong { display: block; overflow: hidden; color: var(--text-primary); font-family: var(--font-serif); font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.v2-metric.profit strong { color: var(--blue); }
.v2-metric.loss strong { color: var(--red); }
.v2-metric.eligible strong { color: var(--green); }
.v2-metric.rate strong { color: #1c6f5a; }
.v2-metric.settlement strong { color: var(--accent); }

.v2-audit-line {
  min-height: 34px;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: rgba(28, 111, 90, 0.035);
  color: var(--text-muted);
  font-size: 10.5px;
}

.v2-audit-line b { color: var(--text-secondary); font-weight: 600; }
.v2-share-breakdown { border-bottom: 1px solid var(--border); }
.v2-breakdown-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 15px; color: var(--text-primary); font-size: 11px; font-weight: 600; background: var(--bg-card-hover); }
.v2-breakdown-count { color: var(--text-muted); font-size: 10px; font-weight: 500; white-space: nowrap; }
.v2-breakdown-table { width: 100%; min-width: 1120px; border-collapse: collapse; table-layout: fixed; }
.v2-breakdown-table th,
.v2-breakdown-table td { padding: 8px 12px; border-top: 1px solid var(--border); text-align: right; font-size: 11px; }
.v2-breakdown-table th { color: var(--text-muted); font-size: 10px; font-weight: 600; }
.v2-breakdown-table th:first-child,
.v2-breakdown-table td:first-child { width: 18%; text-align: left; }
.v2-breakdown-table td strong { display: block; color: var(--text-primary); font-weight: 600; }
.v2-breakdown-table td.v2-carry-loss { color: var(--red); font-weight: 650; }
.v2-breakdown-table td.v2-carry-recovered { color: var(--green); font-weight: 650; }
.v2-table-scroll { overflow-x: auto; }
.v2-table { width: 100%; min-width: 650px; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.v2-table th { padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--bg-card-hover); color: var(--text-muted); text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.v2-table td { padding: 8px 12px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 12px; font-weight: 400; }
.v2-table th:nth-child(1) { width: 205px; }
.v2-table th:nth-child(2) { width: 185px; }
.v2-table th:nth-child(3) { width: 95px; }
.v2-table th:nth-child(4) { width: 110px; }
.v2-table th:last-child, .v2-table td:last-child { text-align: right; }
.v2-table td:nth-child(2) { color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.v2-settlement-summary { cursor: pointer; transition: background .18s ease; }
.v2-settlement-summary:hover,
.v2-settlement-summary.expanded { background: rgba(217, 119, 87, 0.07); }
.v2-pair-cell { display: flex; align-items: center; min-width: 0; }
.v2-settlement-toggle { flex: 0 0 auto; padding: 0; border: 0; font-family: inherit; }
.v2-pair-meta { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.v2-pair-meta strong { overflow: hidden; color: var(--text-primary); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.v2-pair-meta small { overflow: hidden; color: var(--text-muted); font-family: var(--font-sans); font-size: 11px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.v2-summary-symbol,
.v2-detail-symbol { color: var(--text-primary); font-weight: 500; }
.v2-detail-symbol { margin-right: 8px; }
.v2-settlement-detail td { font-size: 12px; }
.v2-entry-detail { background: rgba(38, 166, 154, 0.055); }
.v2-exit-detail { background: rgba(229, 115, 115, 0.055); }
.v2-leg-label { display: inline-flex; min-width: 44px; align-items: center; justify-content: center; padding: 3px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.v2-leg-label.entry { background: rgba(38, 166, 154, 0.11); color: #218f84; }
.v2-leg-label.exit { background: rgba(229, 115, 115, 0.11); color: #c85f5f; }
.v2-direction { font-size: 11px; font-weight: 600; }
.v2-direction.buy { color: var(--blue); }
.v2-direction.sell { color: var(--red); }
.v2-table td.v2-profit { font-weight: 700; font-variant-numeric: tabular-nums; }
.v2-profit.positive { color: var(--green); }
.v2-profit.negative { color: var(--red); }
.v2-empty { padding: 30px 16px; color: var(--text-muted); text-align: center; font-size: 13px; }

@media (max-width: 820px) {
  .v2-monitoring-assumption {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .v2-monitoring-mode { width: 100%; min-width: 0; }
  .v2-metrics { grid-template-columns: 1fr 1fr; }
  .v2-metric { border-bottom: 1px solid var(--border); }
  .v2-metric:nth-child(2n) { border-right: 0; }
  .v2-metric:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

@media (max-width: 520px) {
  .v2-policy-chip { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
  .v2-panel-head { align-items: flex-start; flex-direction: column; }
  .v2-metric { padding: 11px; }
  .v2-metric strong { font-size: 20px; }
  .v2-audit-line { gap: 8px; }
  .v2-panel-state { min-height: 86px; padding: 16px 12px; }
  .v2-panel-state.is-inline { min-height: 48px; }
  .v2-asset-quarantine-label { align-items: flex-start; flex-direction: column; gap: 2px; }
  .v2-asset-quarantine-label > div { text-align: left; }
}
