:root {
  color-scheme: light;
  --bg: #f3f5f6;
  --surface: #ffffff;
  --surface-soft: #f8faf9;
  --ink: #18222d;
  --muted: #697582;
  --line: #dce2e6;
  --line-strong: #c7d0d6;
  --nav: #20292f;
  --nav-soft: #2c373e;
  --teal: #177a72;
  --teal-soft: #e7f3f1;
  --blue: #356fa8;
  --blue-soft: #eaf1f8;
  --amber: #a86413;
  --amber-soft: #fbf0df;
  --red: #b13a32;
  --red-soft: #fae9e7;
  --green: #287a4d;
  --green-soft: #e8f4ec;
  --shadow: 0 4px 16px rgba(24, 34, 45, 0.06);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}

.management-gate[hidden] {
  display: none;
}

.management-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.management-gate-shell {
  display: grid;
  width: min(440px, 100%);
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.management-gate-shell .brand-mark {
  color: var(--teal);
  border-color: var(--line-strong);
}

.management-gate-shell h1 {
  margin: 5px 0 8px;
  font-size: 25px;
}

.management-gate-shell p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.management-login-form {
  display: grid;
  gap: 12px;
}

.management-gate-message {
  min-height: 20px;
  color: var(--red) !important;
  font-size: 12px;
}

.management-locked .app-shell {
  visibility: hidden;
}

.management-logout-button {
  margin-left: auto;
  padding: 0;
  border: 0;
  color: #aeb8be;
  background: transparent;
  font-size: 12px;
}

.management-logout-button:hover {
  color: #ffffff;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 196px;
  flex-direction: column;
  color: #f4f7f8;
  background: var(--nav);
  border-right: 1px solid #24303c;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  color: #93d6cf;
  font-size: 12px;
  font-weight: 800;
}

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

.brand strong {
  font-size: 16px;
}

.brand div > span {
  margin-top: 2px;
  color: #aab7c2;
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 4px;
  padding: 14px 10px;
}

.nav-section-label {
  padding: 14px 12px 5px;
  color: #75838d;
  font-size: 10px;
  font-weight: 700;
}

.nav-section-label:first-child {
  padding-top: 4px;
}

.nav-item {
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 4px;
  color: #bdc8d0;
  background: transparent;
  text-align: left;
}

.nav-item:hover {
  color: #ffffff;
  background: var(--nav-soft);
}

.nav-item.active {
  color: #ffffff;
  background: #223745;
  border-left-color: #55b9af;
}

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 20px;
  color: #9eabb5;
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4fc195;
  box-shadow: 0 0 0 3px rgba(79, 193, 149, 0.14);
}

.main-content {
  min-height: 100vh;
  margin-left: 196px;
  padding: 0 30px 40px;
}

.topbar {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.25;
}

h2 {
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.4;
}

.top-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.annual-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.annual-actions .compact-field {
  width: 132px;
}

.annual-table {
  min-width: 1440px;
}

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

.annual-table .status-badge {
  white-space: nowrap;
}

.annual-profile-panel {
  margin-top: 18px;
  overflow: hidden;
}

.annual-company-field {
  width: min(260px, 32vw);
}

.annual-profile-summary {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.annual-trend-card {
  min-width: 0;
  padding: 16px 18px 14px;
  border-right: 1px solid var(--line);
}

.annual-trend-card:last-child {
  border-right: 0;
}

.annual-trend-card > span,
.annual-trend-card > strong,
.annual-trend-card > small {
  display: block;
}

.annual-trend-card > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.annual-trend-card > strong {
  margin-top: 5px;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.annual-trend-card svg {
  display: block;
  width: 100%;
  height: 72px;
  margin: 7px 0 2px;
  overflow: visible;
}

.annual-trend-card svg line {
  stroke: var(--line);
  stroke-width: 1;
}

.annual-trend-card svg polyline {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.annual-trend-card svg circle {
  fill: var(--surface);
  stroke: var(--teal);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.annual-trend-card > small {
  min-height: 32px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.annual-profile-table {
  min-width: 760px;
}

.annual-profile-table th:first-child {
  width: 150px;
}

.annual-profile-table tbody th {
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 12px;
  text-align: left;
}

.field {
  display: grid;
  gap: 6px;
}

.field[hidden] {
  display: none;
}

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

.field select,
.field input {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.field select:focus,
.field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 122, 114, 0.11);
}

.compact-field {
  min-width: 126px;
}

.compact-share-button {
  min-width: 74px;
  height: 38px;
  padding: 0 12px;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink);
  background: #ffffff;
  font-size: 20px;
}

.icon-button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.view {
  display: none;
  padding-top: 22px;
}

.view.active {
  display: block;
}

.notice-band,
.methodology-band {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #e8d6b7;
  border-radius: 5px;
  color: #72501d;
  background: #fff9ed;
}

.methodology-band {
  align-items: flex-start;
  margin-bottom: 16px;
  border-color: #cddfe0;
  color: #315e5b;
  background: #edf7f5;
}

.methodology-band strong {
  flex: 0 0 auto;
}

.comparison-coverage {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 14px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface-soft);
}

.comparison-coverage.complete {
  border-color: #b9d7c5;
  background: #f1f8f4;
}

.comparison-coverage.partial {
  border-color: #e3c99f;
  background: #fff9ed;
}

.coverage-primary,
.coverage-detail {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coverage-primary strong {
  font-size: 13px;
}

.coverage-primary span,
.coverage-detail {
  color: var(--muted);
  font-size: 11px;
}

.coverage-missing {
  display: block;
  max-width: 420px;
  overflow: hidden;
  color: var(--amber);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-toolbar {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.comparison-dimension-tabs {
  display: flex;
  gap: 22px;
  min-height: 48px;
  align-items: flex-end;
  padding: 0 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.comparison-dimension-tab {
  min-height: 48px;
  padding: 0 1px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.comparison-dimension-tab:hover {
  color: var(--teal);
}

.comparison-dimension-tab.active {
  border-bottom-color: var(--teal);
  color: var(--ink);
}

.comparison-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(220px, 1fr) minmax(220px, 0.9fr);
  gap: 12px;
  padding: 14px 16px 16px;
}

.comparison-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.comparison-summary-item {
  min-width: 0;
  min-height: 92px;
  padding: 15px 18px;
  border-right: 1px solid var(--line);
}

.comparison-summary-item:last-child {
  border-right: 0;
}

.comparison-summary-item.anchor {
  box-shadow: inset 3px 0 var(--teal);
  background: #f4faf8;
}

.comparison-summary-item > span,
.comparison-summary-item > strong,
.comparison-summary-item > small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-summary-item > span {
  color: var(--muted);
  font-size: 11px;
}

.comparison-summary-item > strong {
  margin: 7px 0 4px;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.comparison-summary-item > small {
  color: var(--muted);
  font-size: 10px;
}

.comparison-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 16px;
}

.comparison-distribution,
.comparison-definition {
  min-height: 322px;
}

.comparison-distribution {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px;
}

.comparison-distribution-row {
  display: grid;
  grid-template-columns: 26px 108px minmax(120px, 1fr) 92px;
  min-height: 23px;
  align-items: center;
  gap: 9px;
  padding: 2px 5px;
  border-left: 2px solid transparent;
}

.comparison-distribution-row.anchor {
  border-left-color: var(--teal);
  background: var(--teal-soft);
}

.distribution-rank {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.distribution-company {
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.distribution-track {
  height: 8px;
  overflow: hidden;
  border-radius: 2px;
  background: #e9edef;
}

.distribution-track > span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--blue);
}

.comparison-distribution-row.anchor .distribution-track > span {
  background: var(--teal);
}

.comparison-distribution-row > strong {
  overflow: hidden;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-definition {
  padding: 17px 18px;
}

.comparison-definition-copy {
  margin: 0 0 15px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.65;
}

.comparison-definition-list,
.evidence-meta-list {
  margin: 0;
}

.comparison-definition-list > div,
.evidence-meta-list > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.comparison-definition-list dt,
.evidence-meta-list dt {
  color: var(--muted);
  font-size: 11px;
}

.comparison-definition-list dd,
.evidence-meta-list dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.comparison-ranking-table {
  min-width: 1180px;
}

.comparison-ranking-wrap {
  max-height: 680px;
}

.comparison-ranking-table thead {
  position: sticky;
  z-index: 2;
  top: 0;
}

.comparison-anchor-row {
  background: #f2f9f7;
  box-shadow: inset 3px 0 var(--teal);
}

.comparison-rank {
  display: inline-grid;
  width: 26px;
  height: 24px;
  place-items: center;
  border-radius: 4px;
  color: var(--ink);
  background: #edf1f2;
  font-size: 11px;
  font-weight: 800;
}

.comparison-rank.top {
  color: #765019;
  background: #f8ead0;
}

.comparison-value strong {
  font-size: 13px;
}

.percentile-cell {
  display: grid;
  grid-template-columns: 62px 30px;
  align-items: center;
  gap: 7px;
}

.percentile-cell > span {
  height: 6px;
  overflow: hidden;
  border-radius: 2px;
  background: #e7ebed;
}

.percentile-cell i {
  display: block;
  height: 100%;
  background: var(--blue);
}

.percentile-cell strong {
  font-size: 10px;
}

.rank-change {
  font-size: 11px;
  font-weight: 700;
}

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

.rank-change.down {
  color: var(--red);
}

.rank-change.flat {
  color: var(--muted);
}

.peer-pool-label,
.comparison-ranking-table td small {
  display: block;
}

.peer-pool-label {
  font-size: 11px;
}

.comparison-ranking-table td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.comparison-qualified,
.comparison-unqualified {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.comparison-qualified {
  color: var(--green);
  background: var(--green-soft);
}

.comparison-unqualified {
  max-width: 112px;
  overflow: hidden;
  color: var(--amber);
  background: var(--amber-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--blue);
  background: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

.evidence-button:hover {
  border-color: var(--blue);
}

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

.registry-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.registry-filters {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) minmax(130px, 0.7fr) minmax(180px, 0.9fr);
  gap: 10px;
  width: min(650px, 58vw);
}

.registry-search-field input {
  width: 100%;
}

.source-list-intro {
  margin-top: 24px;
}

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

.registry-table-wrap {
  max-height: 620px;
}

.registry-table thead {
  position: sticky;
  z-index: 2;
  top: 0;
  background: var(--surface);
}

.registry-company {
  width: 270px;
}

.registry-company strong,
.registry-company span,
.registry-progress,
.registry-progress + small {
  display: block;
}

.registry-company span,
.registry-progress + small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.registry-state {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.registry-state.verified,
.registry-progress.complete {
  color: var(--green);
}

.registry-state.verified {
  background: var(--green-soft);
}

.registry-state.pending {
  color: var(--amber);
  background: var(--amber-soft);
}

.registry-progress {
  font-weight: 700;
}

.registry-source-matrix {
  display: grid;
  gap: 3px;
  min-width: 92px;
}

.registry-source-matrix small {
  color: var(--amber);
  font-size: 10px;
  line-height: 1.35;
}

.registry-source-matrix small.complete {
  color: var(--green);
  font-weight: 700;
}

.registry-source-matrix small.exception {
  color: var(--blue);
  font-weight: 700;
}

.status-badge.ai_reviewed {
  color: var(--green);
  background: var(--green-soft);
}

.status-badge.data_backfilled,
.status-badge.data_partial,
.status-badge.source_verified {
  color: var(--blue);
  background: var(--blue-soft);
}

.status-badge.registered,
.status-badge.source_registered {
  color: var(--amber);
  background: var(--amber-soft);
}

.metric-card {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.metric-card strong {
  display: block;
  margin: 7px 0 4px;
  font-size: 25px;
  line-height: 1;
}

.metric-card small {
  color: var(--muted);
  font-size: 11px;
}

.metric-card.warning strong {
  color: var(--amber);
}

.metric-card.success strong {
  color: var(--green);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  gap: 16px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-wide {
  grid-row: span 2;
}

.panel-header {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-header p,
.section-intro p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #eef2f3;
}

.segmented-button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.segmented-button:hover {
  color: var(--teal);
}

.segmented-button.active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(24, 34, 45, 0.12);
}

.method-tag,
.queue-count {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 4px;
  color: var(--teal);
  background: var(--teal-soft);
  font-size: 11px;
  font-weight: 700;
}

.chart-frame {
  min-height: 306px;
  padding: 18px 20px 12px;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.trend-svg {
  display: block;
  width: 100%;
  height: 230px;
  overflow: visible;
}

.rank-chart {
  display: grid;
  gap: 16px;
  min-height: 154px;
  padding: 18px 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 10px;
}

.rank-name {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-track {
  height: 9px;
  overflow: hidden;
  border-radius: 3px;
  background: #edf0f2;
}

.rank-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--blue);
}

.rank-value {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.alert-list {
  min-height: 176px;
  max-height: 222px;
  overflow: auto;
}

.alert-item {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.alert-item:last-child {
  border-bottom: 0;
}

.alert-level {
  border-radius: 2px;
  background: var(--amber);
}

.alert-item.high .alert-level {
  background: var(--red);
}

.alert-item strong,
.alert-item span {
  display: block;
}

.alert-item strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.alert-item span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

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

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 700;
}

td {
  font-size: 12px;
}

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

tbody tr:hover {
  background: #fbfcfc;
}

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

.comparison-table {
  min-width: 1160px;
}

.sales-comparison-table {
  min-width: 1540px;
}

.sales-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.7fr);
  gap: 16px;
  margin-top: 16px;
}

.sales-channel-panel,
.sales-coverage-panel {
  min-height: 420px;
}

.channel-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px 0;
}

.channel-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.channel-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.channel-mix-list {
  display: grid;
  gap: 11px;
  max-height: 520px;
  padding: 14px 16px 18px;
  overflow-y: auto;
}

.channel-mix-row {
  display: grid;
  grid-template-columns: 96px minmax(180px, 1fr) 92px;
  align-items: center;
  gap: 10px;
}

.channel-company {
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-bar {
  display: flex;
  width: 100%;
  height: 22px;
  overflow: hidden;
  border: 1px solid #e0e5e7;
  border-radius: 3px;
  background: #eef1f2;
}

.channel-segment {
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.channel-count {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.channel-analysis-panel {
  margin-top: 16px;
}

.channel-analysis-table {
  min-width: 1120px;
}

.channel-analysis-table td strong,
.channel-analysis-table td small {
  display: block;
}

.channel-analysis-table td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.channel-yoy-list {
  display: grid;
  gap: 3px;
}

.channel-yoy-item {
  font-size: 10px;
}

.coverage-list {
  display: grid;
  gap: 16px;
  padding: 18px 16px;
}

.coverage-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 11px;
}

.coverage-row strong {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.coverage-track {
  height: 6px;
  overflow: hidden;
  border-radius: 2px;
  background: #edf0f2;
}

.coverage-track span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--teal);
}

.sales-quality-panel,
.sales-product-panel {
  margin-top: 16px;
}

.product-panel-header {
  align-items: end;
}

.product-company-field {
  width: min(320px, 40vw);
}

.product-rank {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.product-name {
  min-width: 320px;
  max-width: 520px;
  white-space: normal;
}

.product-name strong {
  line-height: 1.45;
}

.company-cell strong,
.company-cell span {
  display: block;
}

.company-cell span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.status-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--amber);
  background: var(--amber-soft);
  font-size: 11px;
  font-weight: 700;
}

.status-badge.reviewed,
.status-badge.healthy {
  color: var(--green);
  background: var(--green-soft);
}

.status-badge.disputed,
.status-badge.error {
  color: var(--red);
  background: var(--red-soft);
}

.status-badge.verified {
  color: var(--blue);
  background: var(--blue-soft);
}

.status-badge.extracting {
  color: var(--blue);
  background: var(--blue-soft);
}

.status-badge.extraction_failed {
  color: var(--red);
  background: var(--red-soft);
}

.delta {
  font-weight: 700;
}

.delta.negative {
  color: var(--red);
}

.delta.positive {
  color: var(--green);
}

.derived-value {
  display: inline-block;
  border-bottom: 1px dotted var(--line-strong);
  font-weight: 700;
}

.metric-stack {
  display: inline-grid;
  min-width: 104px;
  gap: 3px;
}

.metric-stack > strong {
  font-size: 12px;
}

.peer-benchmark {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

.peer-benchmark.muted {
  color: #9aa3aa;
}

.derived-source {
  display: block;
  margin-top: 3px;
  font-size: 10px;
}

.derived-trend-panel {
  margin-top: 16px;
}

.derived-trend-header {
  min-height: 76px;
}

.trend-controls {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(160px, 0.8fr);
  gap: 10px;
  width: min(460px, 52vw);
}

.trend-field {
  min-width: 0;
}

.trend-field select {
  min-width: 0;
  width: 100%;
}

.derived-trend-chart {
  min-height: 330px;
  padding: 16px 20px 12px;
}

.derived-trend-svg {
  display: block;
  width: 100%;
  height: 282px;
}

.legend-swatch.dashed {
  height: 3px;
  border-radius: 0;
  background: repeating-linear-gradient(90deg, #7c8791 0 6px, transparent 6px 10px);
}

.trend-source {
  margin-left: auto;
  font-size: 11px;
}

.text-button,
.table-button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--blue);
  background: #ffffff;
  font-size: 11px;
}

.text-button:hover,
.table-button:hover {
  border-color: var(--blue);
}

.section-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

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

.section-intro h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

.section-tabs {
  display: flex;
  gap: 22px;
  margin: -6px 0 18px;
  border-bottom: 1px solid var(--line);
}

.section-tab {
  min-height: 42px;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.section-tab:hover,
.section-tab.active {
  color: var(--teal);
}

.section-tab.active {
  border-bottom-color: var(--teal);
}

.review-pane {
  display: none;
}

.review-pane.active {
  display: block;
}

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

.governance-grid .panel {
  min-width: 0;
}

.historical-queue-toolbar {
  justify-content: flex-start;
  margin: 14px 0;
}

.queue-tier {
  display: inline-flex;
  min-width: 34px;
  justify-content: center;
  padding: 3px 7px;
  border: 1px solid #cbd5da;
  border-radius: 4px;
  color: #354550;
  background: #f5f7f8;
}

.queue-tier.P0 {
  color: #982f27;
  border-color: #e4b2ad;
  background: #fff3f1;
}

.queue-tier.P1 {
  color: #8a5b0d;
  border-color: #e7cf9c;
  background: #fff9ea;
}

.sample-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.sample-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px 180px;
  gap: 12px;
  max-width: 680px;
  margin: 4px 0 0;
}

.sample-table {
  min-width: 1080px;
}

.sample-value {
  font-weight: 700;
}

.sample-evidence {
  max-width: 360px;
  white-space: normal;
}

.sample-evidence span,
.sample-evidence a,
.sample-review-record span,
.sample-review-record small,
.sample-review-record strong {
  display: block;
}

.sample-evidence span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sample-evidence a {
  margin-top: 4px;
}

.sample-review-record strong {
  margin-top: 3px;
  color: var(--red);
  font-size: 11px;
}

.sample-review-record small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.sample-review-note {
  display: -webkit-box;
  max-width: 240px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sample-actions {
  display: flex;
  gap: 6px;
}

.sample-action {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.sample-action.correct {
  color: var(--green);
}

.sample-action.incorrect {
  color: var(--red);
}

.sample-action.correct:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.sample-action.incorrect:hover {
  border-color: var(--red);
  background: var(--red-soft);
}

.status-badge.correct {
  color: var(--green);
  background: var(--green-soft);
}

.status-badge.incorrect {
  color: var(--red);
  background: var(--red-soft);
}

.sample-dialog {
  width: min(720px, calc(100vw - 40px));
}

.sample-correction-context {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.sample-correction-context div {
  display: grid;
  gap: 5px;
}

.sample-correction-context span {
  color: var(--muted);
  font-size: 11px;
}

.sample-correction-context strong {
  font-size: 18px;
}

.sample-correction-context p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.priority-high {
  color: var(--red);
  font-weight: 700;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  gap: 16px;
}

.period-badge,
.severity-badge,
.alert-rule {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.period-badge {
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid #c9e3df;
}

.briefing-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.briefing-summary .metric-item {
  display: grid;
  min-height: 92px;
  align-content: center;
  padding: 14px 18px;
  border-right: 1px solid var(--line);
}

.briefing-summary .metric-item:last-child {
  border-right: 0;
}

.briefing-summary .metric-item > span,
.briefing-summary .metric-item > small {
  color: var(--muted);
  font-size: 12px;
}

.briefing-summary .metric-item > strong {
  margin: 3px 0 1px;
  font-size: 23px;
  line-height: 1.15;
}

.briefing-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-left: 3px solid var(--teal);
  color: var(--muted);
  background: var(--surface-soft);
}

.briefing-notice strong {
  flex: none;
  color: var(--ink);
}

.briefing-tabs {
  margin-top: 0;
}

.briefing-pane {
  display: none;
  min-height: 240px;
}

.briefing-pane.active {
  display: block;
}

.briefing-document {
  padding: 0 0 8px;
}

.briefing-document-header,
.company-card-header,
.briefing-alert > header,
.briefing-rule-section > header,
.peer-conclusion > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.briefing-document-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-strong);
}

.briefing-document-header h2,
.company-card-header h2 {
  margin: 2px 0 5px;
  font-size: 21px;
}

.briefing-document-header p,
.company-card-header p,
.briefing-alert h3,
.briefing-rule-section h3,
.peer-conclusion h3 {
  margin: 0;
}

.briefing-document-header > span,
.company-card-header > div > p,
.briefing-document-header > div > p:last-child {
  color: var(--muted);
}

.briefing-alert-list,
.briefing-rule-section,
.peer-conclusion {
  border-bottom: 1px solid var(--line);
}

.briefing-alert {
  padding: 18px 0 18px 14px;
  border-left: 3px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.briefing-alert:last-child {
  border-bottom: 0;
}

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

.briefing-alert.medium {
  border-left-color: var(--amber);
}

.briefing-alert.info {
  border-left-color: var(--blue);
}

.briefing-alert h3 {
  margin-top: 5px;
  font-size: 15px;
}

.alert-rule {
  min-height: 21px;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
}

.severity-badge.high {
  color: var(--red);
  background: var(--red-soft);
}

.severity-badge.medium {
  color: var(--amber);
  background: var(--amber-soft);
}

.severity-badge.info {
  color: var(--blue);
  background: var(--blue-soft);
}

.briefing-statement {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.briefing-statement > span {
  padding-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.briefing-statement.fact > span {
  color: var(--green);
}

.briefing-statement.inference > span {
  color: var(--blue);
}

.briefing-statement.pending_confirmation > span {
  color: var(--amber);
}

.briefing-statement p {
  margin: 0;
  line-height: 1.65;
}

.statement-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 6px;
}

.statement-evidence a {
  font-size: 12px;
  font-weight: 700;
}

.executive-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-strong);
}

.executive-summary > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding: 18px 16px;
  border-right: 1px solid var(--line);
}

.executive-summary > div:first-child {
  padding-left: 0;
}

.executive-summary > div:last-child {
  border-right: 0;
}

.executive-summary span {
  color: var(--teal);
  font-weight: 800;
}

.executive-summary p {
  margin: 0;
  line-height: 1.55;
}

.briefing-rule-section,
.peer-conclusion {
  padding: 20px 0;
}

.briefing-rule-section > header,
.peer-conclusion > header {
  align-items: center;
  margin-bottom: 8px;
}

.briefing-rule-section > header span,
.peer-conclusion > header span {
  color: var(--muted);
  font-size: 12px;
}

.briefing-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 14px;
}

.briefing-toolbar .field {
  width: min(340px, 100%);
}

.company-card-header {
  padding: 18px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.content-generator-intro {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.case-toolbar {
  gap: 10px;
}

.case-toolbar .field {
  width: 180px;
}

.case-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 48px;
  padding: 12px 0;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
}

.case-summary strong {
  color: var(--ink);
  font-size: 16px;
}

.alert-case-table td:first-child {
  width: 42%;
}

.alert-case-table td:first-child strong,
.alert-case-table td:first-child small,
.alert-case-table td:first-child p,
.alert-case-table td:nth-child(3) span,
.alert-case-table td:nth-child(3) small,
.alert-case-table td:nth-child(4) strong,
.alert-case-table td:nth-child(4) small {
  display: block;
}

.alert-case-table td:first-child small,
.alert-case-table td:nth-child(3) small,
.alert-case-table td:nth-child(4) small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.alert-case-table td:first-child p {
  max-width: 520px;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-select {
  min-width: 92px;
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  background: var(--surface);
}

.case-transition,
.calibration-flag {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.case-transition.escalated,
.calibration-flag.high_frequency {
  color: var(--red);
  background: var(--red-soft);
}

.case-transition.deescalated,
.case-transition.resolved,
.calibration-flag.stable {
  color: var(--green);
  background: var(--green-soft);
}

.case-transition.new,
.case-transition.reopened,
.calibration-flag.transient {
  color: var(--amber);
  background: var(--amber-soft);
}

.case-transition.continuing {
  color: var(--blue);
  background: var(--blue-soft);
}

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

.backtest-metrics > div {
  display: grid;
  min-height: 84px;
  align-content: center;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
}

.backtest-metrics > div:first-child {
  padding-left: 0;
}

.backtest-metrics > div:last-child {
  border-right: 0;
}

.backtest-metrics span,
.backtest-grid section > header span {
  color: var(--muted);
  font-size: 12px;
}

.backtest-metrics strong {
  margin-top: 3px;
  font-size: 23px;
}

.backtest-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  padding: 22px 0;
}

.backtest-grid section {
  min-width: 0;
}

.backtest-grid .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.backtest-grid section > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.backtest-grid section > header h3 {
  margin: 0;
  font-size: 15px;
}

.backtest-grid table {
  min-width: 520px;
}

.backtest-note {
  margin-top: 0;
}

.content-control {
  padding-bottom: 16px;
}

.content-control > .field,
.content-control > .primary-button,
.eligibility-note {
  margin-right: 16px;
  margin-left: 16px;
}

.content-control > .field {
  margin-top: 16px;
}

.primary-button,
.secondary-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--teal);
  border-radius: 5px;
  color: #ffffff;
  background: var(--teal);
  font-weight: 700;
}

.primary-button:hover {
  background: #126961;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.content-control > .primary-button {
  width: calc(100% - 32px);
  margin-top: 12px;
}

.secondary-button {
  border-color: var(--line-strong);
  color: var(--ink);
  background: #ffffff;
}

.danger-button {
  border-color: #e2b9b6;
  color: var(--red);
}

.eligibility-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.draft-preview {
  min-height: 280px;
  max-height: 470px;
  margin: 0;
  overflow: auto;
  padding: 18px;
  color: #293541;
  background: #fbfcfc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.recent-drafts {
  margin-top: 16px;
}

.draft-list {
  min-height: 76px;
}

.draft-list-item {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.draft-list-item:last-child {
  border-bottom: 0;
}

.draft-list-item strong,
.draft-list-item span {
  display: block;
}

.draft-list-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.empty-state {
  display: grid;
  min-height: 120px;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

/* Company operating profile */
.profile-command-bar {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.profile-company-field select {
  width: 100%;
}

.profile-identity {
  display: flex;
  min-width: 0;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.profile-identity strong,
.profile-identity span {
  display: block;
}

.profile-identity strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-identity div > span,
.profile-period-mark {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.profile-official-link {
  white-space: nowrap;
}

.profile-loading {
  min-height: 180px;
  padding: 70px 20px;
  color: var(--muted);
  text-align: center;
}

.profile-snapshot {
  display: grid;
  grid-template-columns: minmax(150px, 1.35fr) repeat(6, minmax(116px, 1fr));
  min-height: 104px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px 6px 0 0;
}

.profile-snapshot-heading,
.profile-snapshot-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.profile-snapshot-item:last-child {
  border-right: 0;
}

.profile-snapshot-heading {
  color: #ffffff;
  background: #263842;
}

.profile-snapshot-heading span,
.profile-snapshot-item span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}

.profile-snapshot-heading span {
  color: #b9c8cf;
}

.profile-snapshot-heading strong {
  font-size: 20px;
}

.profile-snapshot-item strong {
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.25;
}

.profile-snapshot-item .delta {
  font-size: 16px;
}

.profile-trust-band {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 12px 18px;
  background: #edf4f3;
  border-right: 1px solid #cadfdb;
  border-bottom: 1px solid #cadfdb;
  border-left: 1px solid #cadfdb;
}

.profile-trust-band strong {
  display: block;
  margin-top: 3px;
}

.profile-trust-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.profile-trust-metrics span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.profile-trust-metrics strong {
  display: inline;
  margin-right: 3px;
  color: var(--ink);
  font-size: 15px;
}

.profile-tabs {
  display: flex;
  gap: 0;
  margin-top: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.profile-tab {
  position: relative;
  min-width: 118px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  color: var(--muted);
  background: transparent;
}

.profile-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
}

.profile-tab.active {
  color: var(--teal);
  font-weight: 700;
}

.profile-tab.active::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 3px;
  content: "";
  background: var(--teal);
}

.profile-pane {
  display: none;
  padding-top: 16px;
}

.profile-pane.active {
  display: block;
}

.profile-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 16px;
}

.profile-chart-panel,
.profile-peer-panel,
.profile-annual-summary-panel,
.profile-channel-panel,
.profile-products-panel {
  min-width: 0;
  overflow: hidden;
}

.profile-chart {
  min-height: 302px;
  padding: 2px 16px 14px;
  overflow-x: auto;
}

.profile-chart svg {
  display: block;
  width: 100%;
  min-width: 620px;
  height: 262px;
}

.profile-chart-grid line {
  stroke: #e4e9ec;
  stroke-width: 1;
}

.profile-chart-grid text,
.profile-chart-labels text {
  fill: #7c8791;
  font-size: 10px;
}

.profile-chart-lines polyline {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.profile-chart-lines circle {
  stroke: #ffffff;
  stroke-width: 1.5;
}

.profile-chart-legend {
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 16px;
  padding-left: 38px;
  color: var(--muted);
  font-size: 11px;
}

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

.profile-chart-legend i {
  width: 16px;
  height: 3px;
}

.profile-peer-list {
  border-top: 1px solid var(--line);
}

.profile-peer-row {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) auto;
  gap: 5px 12px;
  min-height: 63px;
  align-content: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.profile-peer-row:last-child {
  border-bottom: 0;
}

.profile-peer-row > span {
  color: var(--muted);
  font-size: 12px;
}

.profile-peer-row > strong {
  color: var(--teal);
  text-align: right;
}

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

.profile-history-panel {
  margin-top: 16px;
}

.profile-history-table {
  min-width: 990px;
}

.profile-annual-table {
  min-width: 1320px;
}

.profile-annual-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.profile-annual-summary > div {
  min-height: 74px;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-annual-summary > div:nth-child(even) {
  border-right: 0;
}

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

.profile-annual-summary span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.profile-annual-summary strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.profile-business-toolbar,
.profile-event-toolbar {
  display: flex;
  min-height: 72px;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.profile-business-toolbar h2,
.profile-event-toolbar h2 {
  font-size: 18px;
}

.profile-business-toolbar p,
.profile-event-toolbar p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.profile-business-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.profile-business-metric {
  min-height: 92px;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-business-metric:nth-child(5n) {
  border-right: 0;
}

.profile-business-metric span,
.profile-business-metric strong {
  display: block;
}

.profile-business-metric span {
  min-height: 30px;
  color: var(--muted);
  font-size: 11px;
}

.profile-business-metric strong {
  margin: 5px 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.profile-business-metric a {
  font-size: 11px;
}

.profile-business-grid {
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.5fr);
}

.profile-channel-list {
  padding: 4px 16px 14px;
}

.profile-channel-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(100px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.profile-channel-row:last-child {
  border-bottom: 0;
}

.profile-channel-row strong,
.profile-channel-row span {
  display: block;
}

.profile-channel-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.profile-channel-track {
  height: 7px;
  overflow: hidden;
  background: #e8edef;
  border-radius: 3px;
}

.profile-channel-track i {
  display: block;
  height: 100%;
  background: var(--blue);
}

.profile-event-list {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.profile-event-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 92px;
  gap: 18px;
  min-height: 96px;
  align-items: center;
  padding: 15px 18px;
  border-left: 4px solid var(--blue);
  border-bottom: 1px solid var(--line);
}

.profile-event-item:last-child {
  border-bottom: 0;
}

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

.profile-event-item.medium {
  border-left-color: var(--amber);
}

.profile-event-date strong,
.profile-event-date span {
  display: block;
}

.profile-event-date span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.profile-event-body h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.profile-event-body p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.profile-event-body small {
  color: #8a959e;
}

.profile-event-source {
  text-align: right;
}

.review-dialog {
  width: min(940px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 20px 70px rgba(15, 24, 32, 0.28);
}

.review-dialog::backdrop {
  background: rgba(12, 19, 27, 0.55);
}

.comparison-evidence-dialog {
  width: min(520px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: -18px 0 58px rgba(15, 24, 32, 0.2);
}

.comparison-evidence-dialog::backdrop {
  background: rgba(12, 19, 27, 0.48);
}

.comparison-evidence-shell {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.comparison-evidence-header {
  flex: 0 0 auto;
}

.comparison-evidence-body {
  overflow-y: auto;
  padding: 20px;
}

.evidence-value-block {
  padding: 4px 0 20px;
  border-bottom: 1px solid var(--line-strong);
}

.evidence-value-block > span,
.evidence-value-block > strong,
.evidence-value-block > small {
  display: block;
}

.evidence-value-block > span {
  color: var(--muted);
  font-size: 11px;
}

.evidence-value-block > strong {
  margin: 7px 0 5px;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

.evidence-value-block > small {
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
}

.evidence-meta-list {
  margin-top: 14px;
}

.evidence-quote-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.evidence-quote-block > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.evidence-quote-block blockquote {
  margin: 10px 0 0;
  padding: 13px 14px;
  border-left: 3px solid var(--blue);
  color: #34414d;
  background: var(--blue-soft);
  font-size: 12px;
  line-height: 1.7;
}

.evidence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.evidence-actions a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.dialog-shell {
  display: flex;
  max-height: calc(100vh - 40px);
  flex-direction: column;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.close-button {
  border: 0;
  font-size: 24px;
}

.review-facts {
  overflow: auto;
  padding: 0 18px;
}

.extraction-meta {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.extraction-meta a {
  margin-left: auto;
}

.quality-notice {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #e8d6b7;
  border-radius: 5px;
  color: #72501d;
  background: #fff9ed;
  font-size: 11px;
  line-height: 1.5;
}

.quality-notice strong,
.quality-notice span {
  display: block;
}

.table-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.review-fact {
  display: grid;
  grid-template-columns: 26px minmax(140px, 0.9fr) minmax(110px, 0.65fr) minmax(240px, 1.6fr) 72px;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
}

.review-fact input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.review-fact .fact-name {
  font-weight: 700;
}

.review-fact .fact-value {
  font-variant-numeric: tabular-nums;
}

.review-fact .fact-evidence {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  white-space: normal;
}

.review-form-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) minmax(240px, 1fr);
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 18px 18px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 48px));
  padding: 11px 14px;
  border-radius: 5px;
  color: #ffffff;
  background: #253440;
  box-shadow: 0 12px 30px rgba(13, 25, 34, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Intelligence home */
.section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.dynamic-command {
  margin-bottom: 16px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.dynamic-heading {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px 13px;
}

.dynamic-heading h2 {
  margin-bottom: 4px;
  font-size: 20px;
}

.dynamic-heading p,
.dynamic-as-of {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.dynamic-as-of {
  flex: 0 0 auto;
}

.dynamic-tabs {
  display: flex;
  min-height: 44px;
  align-items: end;
  gap: 26px;
  padding: 0 20px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.dynamic-tabs::-webkit-scrollbar {
  display: none;
}

.dynamic-tab {
  position: relative;
  min-width: max-content;
  height: 43px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.dynamic-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.dynamic-tab.active {
  color: var(--ink);
}

.dynamic-tab.active::after {
  background: var(--teal);
}

.dynamic-tab span {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  margin-left: 5px;
  place-items: center;
  padding: 0 5px;
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.latest-dynamics {
  max-height: 548px;
  overflow: auto;
}

.dynamic-item {
  display: grid;
  min-height: 112px;
  grid-template-columns: minmax(260px, 1.65fr) minmax(370px, 1fr) 76px;
  align-items: center;
  gap: 20px;
  padding: 14px 20px 14px 17px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--blue);
}

.dynamic-item.signal {
  border-left-color: var(--amber);
}

.dynamic-item.regulatory {
  border-left-color: var(--teal);
}

.dynamic-item:last-child {
  border-bottom: 0;
}

.dynamic-item-main {
  min-width: 0;
}

.dynamic-item-main > a,
.dynamic-item-main > strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dynamic-item-main p {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dynamic-basis {
  display: block;
  margin-top: 2px;
  color: #7a5b2e;
}

.dynamic-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}

.dynamic-kind {
  color: var(--blue);
  font-weight: 800;
}

.dynamic-item.signal .dynamic-kind {
  color: var(--amber);
}

.dynamic-item.regulatory .dynamic-kind {
  color: var(--teal);
}

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

.dynamic-time small,
.dynamic-time strong {
  display: block;
}

.dynamic-time small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
}

.dynamic-time strong {
  overflow: hidden;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dynamic-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.dynamic-actions a,
.dynamic-action-button {
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 10px;
  font-weight: 700;
}

.dynamic-actions a:hover,
.dynamic-action-button:hover {
  text-decoration: underline;
}

.follow-toggle {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  background: var(--surface);
  font-size: 18px;
}

.follow-toggle.active {
  border-color: #c68a35;
  color: #a86413;
  background: var(--amber-soft);
}

.dynamic-empty {
  min-height: 112px;
}

/* Regulatory library */
.regulation-intro {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 20px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.regulation-intro h2 {
  font-size: 20px;
}

.regulation-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.regulation-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.regulation-tabs {
  margin-top: 18px;
}

.regulation-tabs button span {
  margin-left: 5px;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

.regulation-pane {
  display: none;
}

.regulation-pane.active {
  display: block;
}

.regulation-monitor-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line-strong);
}

.regulation-monitor-heading h2 {
  margin: 4px 0 5px;
  font-size: 19px;
}

.regulation-monitor-heading p {
  color: var(--muted);
  font-size: 11px;
}

.regulation-monitor-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.regulation-monitor-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.7fr);
  min-height: 720px;
  margin-top: 16px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.regulation-monitor-list-panel {
  min-width: 0;
  border-right: 1px solid var(--line-strong);
}

.regulation-monitor-list {
  max-height: 760px;
  overflow: auto;
}

.regulation-change-item {
  display: block;
  width: 100%;
  min-height: 132px;
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
}

.regulation-change-item:hover {
  background: var(--surface-soft);
}

.regulation-change-item.active {
  border-left-color: var(--teal);
  background: #f0f7f6;
}

.regulation-change-item > span,
.regulation-change-item > strong,
.regulation-change-item > small {
  display: block;
}

.regulation-change-item > strong {
  margin: 8px 0 7px;
  font-size: 12px;
  line-height: 1.55;
}

.regulation-change-item > small,
.regulation-change-item > span:last-child,
.regulation-change-item-meta {
  color: var(--muted);
  font-size: 9px;
}

.regulation-change-item > span:last-child {
  margin-top: 9px;
  color: var(--blue);
  font-weight: 700;
}

.severity-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.severity-dot.high {
  background: var(--red);
}

.severity-dot.medium {
  background: var(--amber);
}

.regulation-monitor-detail {
  min-width: 0;
}

.regulation-change-header {
  padding: 24px 28px 22px;
  border-bottom: 1px solid var(--line-strong);
}

.regulation-change-header h2 {
  max-width: 880px;
  margin: 10px 0 6px;
  overflow-wrap: anywhere;
  font-size: 21px;
}

.regulation-change-header > p,
.regulation-scope-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.regulation-change-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}

.regulation-auto-resolved {
  align-self: center;
  max-width: 520px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.regulation-statement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.regulation-statement-grid article {
  min-height: 132px;
  padding: 17px 18px;
  border-right: 1px solid var(--line);
}

.regulation-statement-grid article:last-child {
  border-right: 0;
}

.regulation-statement-grid span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

.regulation-statement-grid .inference span {
  color: var(--blue);
}

.regulation-statement-grid .pending span {
  color: var(--amber);
}

.regulation-statement-grid p {
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.7;
}

.regulation-change-impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.regulation-change-impact-grid > div {
  border-right: 1px solid var(--line);
}

.regulation-change-impact-grid > div > strong {
  display: block;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  font-size: 11px;
}

.regulation-change-impact-grid article {
  min-height: 92px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
}

.regulation-change-impact-grid article span {
  font-size: 11px;
  font-weight: 700;
}

.regulation-change-impact-grid article small {
  float: right;
  color: var(--blue);
  font-size: 9px;
}

.regulation-change-impact-grid article p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.regulation-company-cloud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.regulation-company-cloud button,
.regulation-company-cloud > span {
  min-width: 0;
  min-height: 52px;
  padding: 9px 11px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  overflow-wrap: anywhere;
  font-size: 10px;
}

.regulation-company-cloud button:hover {
  color: var(--teal);
  background: var(--surface-soft);
}

.regulation-company-cloud small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.regulation-summary > div {
  padding: 14px 20px;
  border-right: 1px solid var(--line);
}

.regulation-summary > div:last-child {
  border-right: 0;
}

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

.regulation-summary span,
.regulation-summary small {
  color: var(--muted);
  font-size: 10px;
}

.regulation-summary strong {
  margin: 4px 0 2px;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.regulation-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(160px, 0.35fr) minmax(140px, 0.28fr);
  align-items: end;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.regulation-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.7fr);
  min-height: 680px;
  margin-top: 16px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.regulation-list-panel {
  min-width: 0;
  border-right: 1px solid var(--line-strong);
}

.regulation-result-meta {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.regulation-result-meta strong {
  color: var(--ink);
  font-size: 12px;
}

.regulation-list {
  max-height: 720px;
  overflow: auto;
}

.regulation-list-item {
  display: block;
  width: 100%;
  min-height: 122px;
  padding: 15px 16px 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
}

.regulation-list-item:hover {
  background: var(--surface-soft);
}

.regulation-list-item.active {
  border-left-color: var(--teal);
  background: #f0f7f6;
}

.regulation-list-item span,
.regulation-list-item strong,
.regulation-list-item small {
  display: block;
}

.regulation-list-meta,
.regulation-list-item small,
.regulation-list-links {
  color: var(--muted);
  font-size: 9px;
}

.regulation-list-item strong {
  margin: 7px 0 5px;
  font-size: 12px;
  line-height: 1.5;
}

.regulation-list-links {
  margin-top: 8px;
  color: var(--blue) !important;
  font-weight: 700;
}

.regulation-detail {
  min-width: 0;
}

.regulation-detail-header {
  padding: 24px 28px 22px;
  border-bottom: 1px solid var(--line-strong);
}

.regulation-detail-header h2 {
  max-width: 880px;
  margin: 10px 0 6px;
  font-size: 21px;
}

.regulation-detail-header > p {
  color: var(--muted);
  font-size: 11px;
}

.regulation-detail-meta,
.regulation-topic-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.regulation-detail-meta > span:first-child,
.regulation-topic-row span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 9px;
}

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

.regulation-date-grid > span {
  padding: 11px 12px;
  border-right: 1px solid var(--line);
}

.regulation-date-grid > span:last-child {
  border-right: 0;
}

.regulation-date-grid small,
.regulation-date-grid strong {
  display: block;
}

.regulation-date-grid small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
}

.regulation-date-grid strong {
  font-size: 11px;
}

.regulation-summary-copy {
  max-width: 900px;
  margin-bottom: 14px !important;
  color: var(--ink) !important;
  font-size: 12px !important;
  line-height: 1.75;
}

.regulation-topic-row {
  margin-bottom: 16px;
}

.regulation-detail-section {
  padding: 21px 28px 22px;
  border-bottom: 1px solid var(--line);
}

.regulation-detail-section:last-child {
  border-bottom: 0;
}

.regulation-section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 13px;
}

.regulation-section-heading > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.regulation-section-heading h3 {
  margin: 3px 0 0;
  font-size: 14px;
}

.regulation-section-heading small {
  color: var(--muted);
  font-size: 10px;
}

.regulation-impact-list,
.regulation-alert-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.regulation-impact-list article,
.regulation-alert-list article {
  min-height: 88px;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.regulation-impact-list article > div,
.regulation-alert-list article {
  position: relative;
}

.regulation-impact-list article strong,
.regulation-alert-list article strong {
  font-size: 11px;
}

.regulation-impact-list article span,
.regulation-alert-list article > span {
  float: right;
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
}

.regulation-impact-list article p,
.regulation-alert-list article p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.regulation-provision-list {
  border-top: 1px solid var(--line);
}

.regulation-provision-list article {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.regulation-provision-list article > span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

.regulation-provision-list strong {
  font-size: 11px;
}

.regulation-provision-list p,
.regulation-provision-list blockquote {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.regulation-provision-list blockquote {
  padding-left: 10px;
  border-left: 2px solid #b6d7d4;
  color: #3d5b59;
}

.compact-regulation-empty {
  grid-column: 1 / -1;
  min-height: 88px;
}

.alert-regulation-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.alert-regulation-links span {
  color: var(--muted);
  font-size: 9px;
}

.alert-regulation-links button,
.table-link-button {
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  text-align: left;
}

.table-link-button {
  display: block;
  margin-bottom: 5px;
}

.following-directory {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 18px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.following-directory > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.following-directory > div {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.following-directory > div::-webkit-scrollbar {
  display: none;
}

.following-directory button {
  min-width: max-content;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  background: var(--surface);
  font-size: 10px;
  font-weight: 700;
}

.following-directory button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.intelligence-brief {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.brief-heading {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 20px;
}

.brief-heading h2 {
  margin-bottom: 5px;
  font-size: 20px;
}

.brief-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.intelligence-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.intelligence-item {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 176px;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 0 12px;
  padding: 18px 20px 15px;
  border-right: 1px solid var(--line);
}

.intelligence-item:last-child {
  border-right: 0;
}

.intelligence-item::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--amber);
  content: "";
}

.intelligence-item.high::before {
  background: var(--red);
}

.signal-index {
  color: #9aa4ab;
  font-size: 12px;
  font-weight: 800;
}

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

.signal-company {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.signal-copy strong {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  line-height: 1.45;
}

.signal-copy p {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.signal-actions {
  display: flex;
  grid-column: 2;
  align-items: center;
  gap: 10px;
  padding-top: 13px;
}

.signal-source,
.link-button {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
}

.link-button:hover,
.signal-source:hover {
  text-decoration: underline;
}

.compact-empty {
  grid-column: 1 / -1;
  min-height: 130px;
}

.home-priority-grid,
.home-analysis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.home-analysis-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr);
}

.focus-company-list {
  min-height: 342px;
}

.focus-row {
  position: relative;
  display: grid;
  min-height: 67px;
  grid-template-columns: minmax(110px, 0.72fr) minmax(220px, 1.5fr) minmax(180px, 1.15fr) minmax(110px, 0.68fr);
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 19px;
  border-bottom: 1px solid var(--line);
}

.focus-row:not(.focus-header)::before {
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  background: var(--amber);
  content: "";
}

.focus-row.high::before {
  background: var(--red);
}

.focus-header {
  min-height: 34px;
  padding-top: 7px;
  padding-bottom: 7px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 800;
}

.focus-row:last-child {
  border-bottom: 0;
}

.focus-company strong,
.focus-company span,
.focus-signal strong,
.focus-signal span {
  display: block;
}

.focus-company strong,
.focus-signal strong {
  margin-bottom: 4px;
  font-size: 12px;
}

.focus-company span,
.focus-signal span,
.focus-position {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.focus-signal span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-evidence {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.event-feed {
  max-height: 410px;
  overflow: auto;
  padding: 4px 16px 12px;
}

.event-item {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.event-item:last-child {
  border-bottom: 0;
}

.event-marker {
  width: 8px;
  height: 8px;
  margin-top: 20px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 1px var(--amber);
}

.event-item.high .event-marker {
  background: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

.event-item.info .event-marker {
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.event-meta {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
}

.event-item a,
.event-item strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.event-item p {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.map-legend {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

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

.map-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.map-dot.profitable {
  background: #2c8260;
}

.map-dot.loss {
  background: #bf4b43;
}

.operating-map {
  min-height: 360px;
  padding: 10px 16px 8px;
}

.operating-map-svg {
  display: block;
  width: 100%;
  height: 350px;
}

.map-grid line {
  stroke: #e5e9eb;
  stroke-width: 1;
}

.map-grid text,
.axis-label {
  fill: #7a858e;
  font-size: 10px;
}

.map-label {
  fill: #34424b;
  font-size: 9px;
  font-weight: 700;
}

.operating-map-svg circle {
  transition: fill-opacity 140ms ease, stroke-width 140ms ease;
}

.operating-map-svg a:hover circle {
  fill-opacity: 1;
  stroke: var(--ink);
  stroke-width: 2.5;
}

.trend-panel-compact .chart-frame {
  min-height: 360px;
  padding-top: 20px;
}

.trend-panel-compact .trend-legend {
  max-height: 48px;
  overflow: hidden;
}

.trust-band {
  display: grid;
  grid-template-columns: minmax(130px, 0.55fr) minmax(0, 3fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  padding: 17px 20px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.trust-band h2 {
  margin-bottom: 0;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-item {
  min-width: 0;
  padding: 0 16px;
  border-left: 1px solid var(--line);
}

.trust-item span,
.trust-item small,
.trust-item strong {
  display: block;
}

.trust-item span,
.trust-item small {
  color: var(--muted);
  font-size: 10px;
}

.trust-item strong {
  margin: 5px 0 3px;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.governance-command {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--line-strong);
}

.product-validation-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--line-strong);
}

.product-validation-header h2 {
  margin: 4px 0 5px;
  font-size: 22px;
}

.product-validation-header p,
.method-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.summary-item {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.summary-item:last-child {
  border-right: 0;
}

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

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

.summary-item strong {
  margin: 6px 0 4px;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.product-funnel-panel {
  margin-bottom: 16px;
}

.product-funnel {
  display: grid;
  gap: 0;
  padding: 0 18px 16px;
}

.product-funnel-row {
  display: grid;
  grid-template-columns: 150px minmax(120px, 1fr) 72px 120px;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}

.product-funnel-row:last-child {
  border-bottom: 0;
}

.product-funnel-row strong {
  font-size: 12px;
}

.product-funnel-row > span,
.product-funnel-row > small {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.product-funnel-track {
  height: 9px;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.product-funnel-track span {
  display: block;
  height: 100%;
  background: var(--teal);
}

.product-validation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-breakdown {
  padding: 0 18px 16px;
}

.product-breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 70px;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
}

.product-breakdown-row:last-child {
  border-bottom: 0;
}

.product-breakdown-row small {
  color: var(--muted);
  text-align: right;
}

.method-note {
  padding: 12px 2px 4px;
  font-size: 11px;
}

.product-operations-panel,
.product-feedback-panel {
  margin-top: 16px;
}

.product-user-table {
  min-width: 960px;
}

.product-user-table select,
.product-user-table input,
.product-feedback-actions select,
.product-feedback-actions input {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  background: var(--surface);
}

.product-user-table select {
  min-width: 118px;
}

.product-management-role {
  display: block;
  min-width: 110px !important;
  margin-top: 8px;
}

.beta-access-summary {
  margin-top: 18px;
}

.beta-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  margin: 18px 0;
}

.beta-application-queue,
.beta-invite-list {
  display: grid;
  gap: 10px;
}

.beta-application-item,
.beta-invite-item {
  padding: 14px;
  border-top: 1px solid var(--line);
}

.beta-application-item:first-child,
.beta-invite-item:first-child {
  border-top: 0;
}

.beta-application-meta,
.beta-invite-meta,
.beta-application-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.beta-application-item p,
.beta-invite-item p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.55;
}

.beta-application-item small,
.beta-invite-item small {
  color: var(--muted);
}

.beta-application-actions {
  justify-content: flex-start;
  margin-top: 10px;
}

.beta-application-actions input {
  min-width: 0;
  flex: 1;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.beta-invite-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  padding: 0 18px 16px;
}

.beta-invite-form .field:first-child,
.beta-invite-form .primary-button {
  grid-column: 1 / -1;
}

.beta-invite-form input,
.beta-invite-form .primary-button {
  width: 100%;
}

.beta-invite-result {
  margin: 0 18px 14px;
  padding: 12px;
  border: 1px solid #b8ddd7;
  border-radius: 5px;
  background: var(--teal-soft);
}

.beta-invite-result strong,
.beta-invite-result span {
  display: block;
}

.beta-invite-result strong {
  margin: 5px 0;
  font-size: 18px;
}

.product-account-status {
  min-width: 96px !important;
}

@media (max-width: 1050px) {
  .beta-access-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .beta-application-meta,
  .beta-invite-meta,
  .beta-application-actions { align-items: flex-start; flex-direction: column; }
  .beta-application-actions input { width: 100%; }
}

.product-user-table input {
  width: 138px;
}

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

.product-usage-line {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.product-feedback-queue {
  display: grid;
}

.product-feedback-item {
  display: grid;
  grid-template-columns: 190px minmax(240px, 1fr) minmax(400px, 0.9fr);
  gap: 16px;
  align-items: center;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
}

.product-feedback-meta strong,
.product-feedback-meta span {
  display: block;
}

.product-feedback-meta span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.product-feedback-item p {
  margin: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.product-feedback-actions {
  display: grid;
  grid-template-columns: 100px minmax(160px, 1fr) auto;
  gap: 8px;
}

.product-feedback-actions input {
  min-width: 0;
  padding: 6px 9px;
}

.governance-command h2 {
  margin: 4px 0 5px;
  font-size: 22px;
}

.governance-command p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.governance-summary-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.governance-summary-item {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.governance-summary-item:last-child {
  border-right: 0;
}

.governance-summary-item span,
.governance-summary-item strong,
.governance-summary-item small {
  display: block;
}

.governance-summary-item span,
.governance-summary-item small {
  color: var(--muted);
  font-size: 11px;
}

.governance-summary-item strong {
  margin: 6px 0 4px;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.governance-summary-item small {
  min-height: 30px;
  line-height: 1.4;
}

.governance-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 0.8fr));
  gap: 12px;
  margin-bottom: 14px;
}

.governance-matrix-panel,
.governance-quality-panel {
  margin-bottom: 16px;
}

.governance-matrix-table {
  min-width: 1120px;
}

.governance-matrix-table td {
  vertical-align: top;
}

.governance-matrix-table td small,
.governance-quality-panel td small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  white-space: nowrap;
}

.governance-reason {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.governance-reason.complete {
  color: var(--green);
  background: var(--green-soft);
  border-color: #bad9c7;
}

.governance-reason.risk {
  color: var(--red);
  background: var(--red-soft);
  border-color: #e4bbb7;
}

.governance-reason.pending {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: #e7cda4;
}

.governance-risk-count {
  color: var(--red);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.quality-triage-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.quality-triage-chip {
  color: var(--muted);
  font-size: 12px;
}

.quality-triage-chip strong {
  margin-right: 5px;
  color: var(--ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.quality-triage-chip.actionable strong {
  color: var(--red);
}

.governance-rationale {
  display: block;
  min-width: 230px;
  max-width: 360px;
  color: var(--ink);
  line-height: 1.55;
}

@media (max-width: 1120px) {
  .regulation-workspace {
    grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr);
  }

  .regulation-monitor-workspace {
    grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.35fr);
  }

  .regulation-statement-grid {
    grid-template-columns: 1fr;
  }

  .regulation-statement-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .regulation-date-grid,
  .regulation-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .regulation-summary > div:nth-child(2) {
    border-right: 0;
  }

  .regulation-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .dynamic-item {
    grid-template-columns: minmax(260px, 1.2fr) minmax(320px, 1fr) 68px;
  }

  .dynamic-time-grid {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }

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

  .product-funnel-row {
    grid-template-columns: 140px minmax(100px, 1fr) 68px 108px;
  }

  .product-feedback-item {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .product-feedback-actions {
    grid-column: 1 / 3;
  }

  .governance-summary-item:nth-child(3) {
    border-right: 0;
  }

  .governance-summary-item:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

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

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

  .profile-snapshot-heading {
    grid-row: span 2;
  }

  .profile-snapshot-item:nth-child(4),
  .profile-snapshot-item:last-child {
    border-right: 0;
  }

  .profile-analysis-grid,
  .profile-business-grid {
    grid-template-columns: 1fr;
  }

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

  .profile-business-metric:nth-child(5n) {
    border-right: 1px solid var(--line);
  }

  .profile-business-metric:nth-child(3n) {
    border-right: 0;
  }

  .comparison-analysis-grid {
    grid-template-columns: 1fr;
  }

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

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

  .annual-trend-card:nth-child(2) {
    border-right: 0;
  }

  .annual-trend-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .home-priority-grid,
  .home-analysis-grid {
    grid-template-columns: 1fr;
  }

  .focus-company-list,
  .event-feed {
    min-height: auto;
    max-height: none;
  }

  .trust-band {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .trust-item:first-child {
    border-left: 0;
  }

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

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

  .registry-filters {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.6fr) minmax(160px, 0.8fr);
    width: 100%;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .sales-grid {
    grid-template-columns: 1fr;
  }

  .panel-wide {
    grid-row: auto;
  }
}

@media (max-width: 820px) {
  .regulation-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .regulation-toolbar,
  .regulation-workspace,
  .regulation-monitor-toolbar,
  .regulation-monitor-workspace {
    grid-template-columns: 1fr;
  }

  .regulation-monitor-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .regulation-list-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .regulation-monitor-list-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .regulation-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .regulation-monitor-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .regulation-monitor-list::-webkit-scrollbar {
    display: none;
  }

  .regulation-list::-webkit-scrollbar {
    display: none;
  }

  .regulation-list-item {
    width: 260px;
    min-width: 260px;
    border-right: 1px solid var(--line);
    border-left: 0;
    border-bottom: 0;
    border-top: 3px solid transparent;
  }

  .regulation-change-item {
    width: 270px;
    min-width: 270px;
    border-right: 1px solid var(--line);
    border-left: 0;
    border-bottom: 0;
    border-top: 3px solid transparent;
  }

  .regulation-change-item.active {
    border-top-color: var(--teal);
    border-left-color: transparent;
  }

  .regulation-list-item.active {
    border-top-color: var(--teal);
    border-left-color: transparent;
  }

  .regulation-detail-header,
  .regulation-detail-section,
  .regulation-change-header {
    padding-right: 17px;
    padding-left: 17px;
  }

  .regulation-date-grid,
  .regulation-impact-list,
  .regulation-alert-list,
  .regulation-change-impact-grid,
  .regulation-company-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .regulation-date-grid > span:nth-child(even) {
    border-right: 0;
  }

  .dynamic-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .dynamic-tabs {
    gap: 20px;
  }

  .dynamic-item {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 12px;
  }

  .dynamic-time-grid {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .dynamic-actions {
    grid-row: 1;
    grid-column: 2;
  }

  .dynamic-actions a,
  .dynamic-action-button {
    text-align: right;
  }

  .dynamic-item-main > a,
  .dynamic-item-main > strong {
    white-space: normal;
  }

  .governance-command {
    align-items: flex-start;
    flex-direction: column;
  }

  .governance-command button {
    width: 100%;
  }

  .governance-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .governance-summary-item:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .governance-summary-item:nth-child(even) {
    border-right: 0;
  }

  .governance-summary-item:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .governance-grid {
    grid-template-columns: 1fr;
  }

  #reviewGovernancePane .table-wrap {
    overflow-x: auto;
  }

  #reviewGovernancePane table {
    min-width: 620px;
  }
  .profile-command-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .profile-identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .profile-official-link {
    justify-self: start;
  }

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

  .profile-snapshot-heading {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  .profile-snapshot-item:nth-child(even) {
    border-right: 0;
  }

  .profile-snapshot-item:nth-child(4) {
    border-right: 1px solid var(--line);
  }

  .profile-trust-band {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-trust-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
  }

  .profile-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .profile-tabs::-webkit-scrollbar {
    display: none;
  }

  .profile-tab {
    min-width: 104px;
    flex: 1 0 104px;
    padding: 0 10px;
  }

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

  .profile-business-metric:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .profile-business-metric:nth-child(even) {
    border-right: 0;
  }

  .profile-event-item {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
  }

  .profile-event-source {
    grid-column: 2;
    text-align: left;
  }

  .wide-table .table-empty-state {
    width: calc(100vw - 48px);
  }

  .sidebar {
    position: static;
    width: 100%;
    min-height: auto;
  }

  .brand {
    min-height: 64px;
  }

  .nav-list {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    gap: 0;
    padding: 6px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid #354149;
    background: var(--nav);
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-section-label {
    display: none;
  }

  .nav-item {
    min-width: 64px;
    height: 46px;
    flex: 1 0 64px;
    padding: 0 3px;
    border-left: 0;
    border-radius: 3px;
    font-size: 11px;
    text-align: center;
  }

  .nav-item.active {
    border-left-color: transparent;
    box-shadow: inset 0 2px #55b9af;
  }

  .sidebar-foot {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 0 16px 88px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .intelligence-summary {
    grid-template-columns: 1fr;
  }

  .intelligence-item {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intelligence-item:last-child {
    border-bottom: 0;
  }

  .focus-header {
    display: none;
  }

  .focus-row {
    grid-template-columns: minmax(100px, 0.7fr) minmax(0, 1.6fr);
    gap: 7px 14px;
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .focus-position,
  .focus-evidence {
    grid-column: 2;
  }

  .focus-evidence {
    display: flex;
    align-items: center;
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 0;
  }

  .trust-item:nth-child(odd) {
    border-left: 0;
  }

  .top-actions {
    width: 100%;
  }

  .compact-share-button {
    min-width: 72px;
  }

  .comparison-coverage {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .comparison-dimension-tabs {
    gap: 18px;
  }

  .comparison-controls {
    grid-template-columns: 1fr;
  }

  .comparison-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-summary-item:nth-child(2) {
    border-right: 0;
  }

  .comparison-summary-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .comparison-distribution-row {
    grid-template-columns: 24px minmax(78px, 0.7fr) minmax(80px, 1fr) 78px;
    gap: 6px;
  }

  .comparison-evidence-dialog {
    width: 100vw;
  }

  .derived-trend-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .trend-controls {
    width: 100%;
  }

  .coverage-detail {
    width: 100%;
  }

  .coverage-missing {
    max-width: min(520px, 70vw);
  }

  .compact-field {
    min-width: 0;
    flex: 1;
  }

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

  .registry-strip,
  .registry-filters {
    grid-template-columns: 1fr;
  }

  .content-layout,
  .review-form-row {
    grid-template-columns: 1fr;
  }

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

  .sample-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.6fr) minmax(140px, 0.7fr);
    max-width: none;
  }

  .product-company-field {
    width: min(420px, 100%);
  }

  .review-fact {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
    padding: 12px 0;
  }

  .review-fact .fact-name {
    grid-column: 2;
  }

  .review-fact .fact-value {
    grid-column: 3;
    max-width: 112px;
    overflow-wrap: anywhere;
    text-align: right;
  }

  .review-fact .fact-evidence {
    grid-column: 2 / 4;
    padding-bottom: 0;
  }

  .review-fact > a {
    grid-column: 2 / 4;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .product-validation-header {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-strip,
  .product-validation-grid {
    grid-template-columns: 1fr;
  }

  .summary-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-funnel-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 10px 0;
  }

  .product-funnel-track {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .product-funnel-row > span {
    grid-column: 2;
    grid-row: 1;
  }

  .product-funnel-row > small {
    grid-column: 1 / 3;
    grid-row: 3;
    text-align: left;
  }

  .product-feedback-item {
    grid-template-columns: 1fr;
  }

  .product-feedback-actions {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .governance-filters {
    grid-template-columns: 1fr;
  }

  .governance-summary-item {
    padding: 13px;
  }

  .governance-summary-item strong {
    font-size: 18px;
  }

  .profile-snapshot-heading,
  .profile-snapshot-item {
    padding: 13px;
  }

  .profile-snapshot-item strong,
  .profile-snapshot-item .delta {
    font-size: 14px;
  }

  .profile-chart {
    padding-right: 4px;
    padding-left: 4px;
  }

  .profile-chart svg {
    min-width: 640px;
  }

  .profile-chart-legend {
    min-width: 620px;
    padding-left: 18px;
  }

  .profile-business-toolbar,
  .profile-event-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-channel-row {
    grid-template-columns: minmax(118px, 1fr) minmax(70px, 0.8fr) auto;
    gap: 8px;
  }

  .profile-event-item {
    grid-template-columns: 1fr;
  }

  .profile-event-source {
    grid-column: 1;
  }

  .annual-actions,
  .annual-company-field {
    width: 100%;
  }

  .annual-actions {
    align-items: stretch;
  }

  .annual-trend-grid {
    grid-template-columns: 1fr;
  }

  .annual-trend-card,
  .annual-trend-card:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .annual-trend-card:last-child {
    border-bottom: 0;
  }

  .main-content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .brief-heading {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .brief-heading h2 {
    font-size: 18px;
  }

  .brief-heading .primary-button {
    width: 100%;
  }

  .intelligence-item {
    grid-template-columns: 24px minmax(0, 1fr);
    padding-right: 14px;
    padding-left: 14px;
  }

  .signal-actions {
    flex-wrap: wrap;
  }

  .focus-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .focus-position,
  .focus-evidence {
    grid-column: 1;
  }

  .operating-map {
    padding-right: 6px;
    padding-left: 6px;
  }

  .operating-map-svg {
    height: 300px;
  }

  .trust-band {
    padding-right: 14px;
    padding-left: 14px;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

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

  .briefing-summary .metric-item {
    min-height: 78px;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
  }

  .briefing-summary .metric-item:nth-child(2n) {
    border-right: 0;
  }

  .briefing-summary .metric-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .briefing-tabs {
    gap: 16px;
    overflow-x: auto;
  }

  .briefing-tabs .section-tab {
    flex: none;
    white-space: nowrap;
  }

  .briefing-notice,
  .briefing-document-header,
  .company-card-header,
  .briefing-alert > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .executive-summary {
    grid-template-columns: 1fr;
  }

  .executive-summary > div,
  .executive-summary > div:first-child {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .briefing-statement {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 8px;
  }

  .case-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .case-toolbar .field {
    width: auto;
  }

  .case-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

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

  .backtest-metrics > div {
    min-height: 72px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
  }

  .backtest-metrics > div:nth-child(2n) {
    border-right: 0;
  }

  .backtest-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sample-toolbar {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 88px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 8px;
  }

  .compact-share-button {
    width: 100%;
  }

  .top-actions .icon-button {
    justify-self: end;
  }

  .compact-field {
    width: auto;
    flex-basis: auto;
  }

  .notice-band,
  .methodology-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-company-field {
    width: 100%;
  }

  .channel-mix-row {
    grid-template-columns: 82px minmax(150px, 1fr) 82px;
    gap: 7px;
  }

  .trend-controls {
    grid-template-columns: 1fr;
  }

  .derived-trend-chart {
    min-height: 300px;
    padding-right: 8px;
    padding-left: 8px;
    overflow-x: auto;
  }

  .derived-trend-svg {
    min-width: 680px;
    height: 250px;
  }

  .segmented-control {
    width: 100%;
  }

  .coverage-primary,
  .coverage-detail {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .coverage-missing {
    max-width: 100%;
  }

  .section-intro {
    align-items: flex-start;
  }

  .section-actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .extraction-meta {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .extraction-meta a {
    width: 100%;
    margin-left: 0;
  }

  .dialog-actions {
    flex-direction: column-reverse;
  }

  .dialog-actions button {
    width: 100%;
  }
}
.intelligence-feed-panel {
  margin-bottom: 16px;
}

.compact-summary {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.compact-summary strong {
  color: var(--ink);
}

.subscription-command-band {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(420px, 1.7fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 88px;
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid #cadfdb;
  background: #edf4f3;
}

.subscription-command-band h2,
.personal-feed-heading h2 {
  margin: 3px 0 0;
  font-size: 18px;
}

.subscription-command-band p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

.subscription-summary span {
  color: var(--muted);
  font-size: 11px;
}

.subscription-summary strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 20px;
}

.subscription-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 16px;
  margin-bottom: 18px;
}

.subscription-config-panel,
.subscription-digest-panel {
  min-height: 260px;
}

.subscription-form {
  display: grid;
  grid-template-columns: minmax(120px, 0.65fr) minmax(220px, 1.5fr) minmax(120px, 0.65fr) auto;
  align-items: end;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.subscription-list {
  max-height: 310px;
  overflow-y: auto;
}

.subscription-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
}

.subscription-row:last-child {
  border-bottom: 0;
}

.subscription-row > div strong,
.subscription-row > div small {
  display: block;
}

.subscription-row > div small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.subscription-type,
.frequency-mark {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.compact-icon-button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
}

.subscription-digest {
  padding: 16px;
}

.digest-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.digest-kpis span {
  min-height: 58px;
  padding: 10px;
  color: var(--muted);
  font-size: 11px;
  border-right: 1px solid var(--line);
}

.digest-kpis span:last-child {
  border-right: 0;
}

.digest-kpis strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 17px;
}

.digest-sections {
  margin: 12px 0;
  border-top: 1px solid var(--line);
}

.digest-sections > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.digest-sections span {
  color: var(--muted);
}

.personal-feed-section {
  border-top: 1px solid var(--line-strong);
}

.personal-feed-heading {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#personalFeedFilters {
  grid-template-columns: repeat(4, minmax(82px, 1fr));
}

#personalFeedFilters button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

#personalFeedFilters button.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(24, 34, 45, 0.12);
}

.personal-intelligence-list {
  display: grid;
  gap: 10px;
}

.personal-intelligence-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  background: var(--surface);
}

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

.personal-intelligence-item.medium {
  border-left-color: var(--amber);
}

.personal-intelligence-item.read {
  background: #fafbfb;
}

.personal-item-rail {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 12px;
  color: var(--muted);
  background: var(--surface-soft);
  border-right: 1px solid var(--line);
  font-size: 11px;
}

.personal-item-rail strong {
  color: var(--ink);
  font-size: 12px;
}

.personal-intelligence-item.high .personal-item-rail strong {
  color: var(--red);
}

.personal-item-content {
  min-width: 0;
  padding: 14px 16px;
}

.personal-item-heading,
.personal-item-footer,
.personal-item-links,
.personal-item-actions {
  display: flex;
  align-items: center;
}

.personal-item-heading,
.personal-item-footer {
  justify-content: space-between;
  gap: 14px;
}

.personal-item-heading > div {
  min-width: 0;
}

.personal-item-heading span {
  color: var(--muted);
  font-size: 11px;
}

.personal-item-heading h3 {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.45;
}

.personal-item-summary {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.compact-statements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compact-statements > div {
  min-width: 0;
  padding: 9px 12px;
  border-right: 1px solid var(--line);
}

.compact-statements > div:last-child {
  border-right: 0;
}

.compact-statements span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

.compact-statements > div:nth-child(2) span {
  color: var(--blue);
}

.compact-statements > div:nth-child(3) span {
  color: var(--amber);
}

.compact-statements p {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.personal-item-links,
.personal-item-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.personal-item-links {
  color: var(--muted);
  font-size: 11px;
}

.intelligence-action {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  background: var(--surface);
  font-size: 11px;
}

.intelligence-action:hover,
.intelligence-action.active {
  color: var(--teal);
  border-color: #8cc4bd;
  background: var(--teal-soft);
}

@media (max-width: 1120px) {
  .subscription-command-band {
    grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.4fr);
  }

  .subscription-command-band > button {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

@media (max-width: 820px) {
  .subscription-command-band,
  .subscription-workspace {
    grid-template-columns: 1fr;
  }

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

  .subscription-command-band > button {
    grid-column: auto;
  }

  .personal-feed-heading,
  .personal-item-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-statements {
    grid-template-columns: 1fr;
  }

  .compact-statements > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .compact-statements > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .subscription-command-band {
    padding: 14px;
  }

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

  .subscription-form {
    grid-template-columns: 1fr;
  }

  .subscription-form .primary-button {
    grid-column: auto;
  }

  .subscription-row {
    grid-template-columns: 70px minmax(0, 1fr) 28px;
    padding-right: 12px;
    padding-left: 12px;
  }

  #personalFeedFilters {
    grid-template-columns: repeat(4, minmax(72px, 1fr));
    overflow-x: auto;
  }

  .personal-intelligence-item {
    grid-template-columns: 1fr;
  }

  .personal-item-rail {
    align-items: center;
    flex-direction: row;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .personal-item-content {
    padding: 12px;
  }

  .personal-item-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .personal-item-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .intelligence-action {
    width: 100%;
  }
}
