.brand-mark--radar {
  background: #5e6ad2;
}

.radar-nav {
  margin-left: auto;
  display: flex;
  gap: 16px;
}

.radar-nav .nav-link {
  font-size: 0.875rem;
  color: #64748b;
  text-decoration: none;
}

.radar-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.radar-controls {
  padding: 16px 24px;
}

.radar-controls.is-highlight {
  border: 1px solid #c7d2fe;
  background: #f8faff;
}

.radar-controls-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: flex-end;
}

.radar-controls-divider {
  width: 1px;
  align-self: stretch;
  min-height: 44px;
  background: #e4e4e7;
  margin: 0 4px;
}

.radar-pipeline-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: flex-end;
  flex: 1;
  min-width: 280px;
}

.radar-pipeline-intro {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}

.pipeline-lead {
  margin: 0;
  font-size: 0.75rem;
  color: #71717a;
  line-height: 1.3;
}

.pipeline-file--compact input[type="file"] {
  font-size: 0.75rem;
  max-width: 220px;
}

.radar-control--compact {
  min-width: 140px;
}

.radar-input-date {
  font-size: 0.8125rem;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}

.radar-daily-features-inline {
  flex-wrap: wrap;
}

.alert-success {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.8125rem;
}

.radar-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.radar-control {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.radar-control--static {
  min-width: 120px;
}

.radar-control-label {
  font-size: 0.75rem;
  color: #71717a;
  font-weight: 500;
}

.radar-control-value {
  font-size: 0.875rem;
  color: #18181b;
  font-weight: 600;
}

.radar-select {
  min-width: 140px;
  padding: 8px 10px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #fff;
  font-size: 0.875rem;
}

.radar-meta {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  color: #71717a;
}

.radar-meta-sep {
  margin: 0 6px;
}

.radar-section-title {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #27272a;
}

.radar-layer1,
.radar-layer2,
.radar-layer3 {
  padding: 20px 24px;
}

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

.north-star-card {
  padding: 16px 18px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fafafa;
}

.north-star-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #18181b;
  line-height: 1.2;
}

.north-star-delta {
  margin-top: 6px;
  font-size: 0.8125rem;
}

.north-star-label {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #71717a;
}

.radar-footnote {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: #a1a1aa;
}

.delta--up {
  color: #16a34a;
}

.delta--down {
  color: #dc2626;
}

.delta--flat {
  color: #71717a;
}

.radar-layer2-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 24px;
  align-items: start;
}

.rfm-distribution {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rfm-rollup-row {
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  overflow: hidden;
}

.rfm-rollup-header {
  width: 100%;
  display: grid;
  grid-template-columns: 88px 1fr 52px 56px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: none;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.rfm-rollup--ok .rfm-bar-fill {
  background: #22c55e;
}

.rfm-rollup--watch .rfm-bar-fill {
  background: #f59e0b;
}

.rfm-rollup--action .rfm-bar-fill {
  background: #ef4444;
}

.rfm-segment-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #27272a;
}

.rfm-bar-track {
  height: 8px;
  background: #f4f4f5;
  border-radius: 999px;
  overflow: hidden;
}

.rfm-bar-fill {
  height: 100%;
  background: #5e6ad2;
  border-radius: 999px;
  min-width: 2px;
}

.rfm-share {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #3f3f46;
  text-align: right;
}

.rfm-delta-inner.delta--up,
.rfm-delta .delta--up {
  color: #16a34a;
}

.rfm-delta-inner.delta--down,
.rfm-delta .delta--down {
  color: #dc2626;
}

.rfm-rollup-children {
  padding: 0 12px 8px;
  border-top: 1px solid #f4f4f5;
  background: #fafafa;
}

.rfm-child-row {
  display: grid;
  grid-template-columns: 100px 48px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f4f4f5;
  font-size: 0.75rem;
}

.rfm-child-row:last-child {
  border-bottom: none;
}

.rfm-child-name {
  font-weight: 600;
  color: #3f3f46;
}

.rfm-child-share {
  color: #52525b;
}

.rfm-child-desc {
  color: #71717a;
}

.rfm-collapse-btn {
  display: block;
  width: 100%;
  padding: 8px;
  border: none;
  border-top: 1px solid #f4f4f5;
  background: #fafafa;
  color: #5e6ad2;
  font-size: 0.75rem;
  cursor: pointer;
}

.proposal-queue {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proposal-card {
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}

.proposal-card--action {
  border-left: 4px solid #ef4444;
}

.proposal-card--watch {
  border-left: 4px solid #f59e0b;
}

.proposal-card.is-approved {
  opacity: 0.85;
  background: #f0fdf4;
}

.proposal-card.is-dismissed {
  opacity: 0.6;
}

.proposal-card-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.severity-badge {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.severity-badge--action {
  background: #fef2f2;
  color: #dc2626;
}

.severity-badge--watch {
  background: #fffbeb;
  color: #d97706;
}

.severity-badge--ok {
  background: #f0fdf4;
  color: #16a34a;
}

.proposal-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #18181b;
}

.proposal-block {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #3f3f46;
}

.proposal-meta {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: #71717a;
}

.proposal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.proposal-status {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  color: #16a34a;
  font-weight: 600;
}

.widget-outcomes-wrap {
  overflow-x: auto;
}

.widget-outcomes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.widget-outcomes-table th,
.widget-outcomes-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #f4f4f5;
}

.widget-outcomes-table th {
  color: #71717a;
  font-weight: 600;
  background: #fafafa;
}

.widget-empty {
  color: #71717a;
  text-align: center;
  padding: 24px;
}

@media (max-width: 960px) {
  .north-star-row {
    grid-template-columns: 1fr;
  }

  .radar-layer2-grid {
    grid-template-columns: 1fr;
  }

  .rfm-rollup-header {
    grid-template-columns: 72px 1fr 44px;
  }

  .rfm-delta {
    display: none;
  }

  .radar-controls-divider {
    display: none;
  }

  .radar-pipeline-inline {
    width: 100%;
  }
}

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

.pipeline-preview {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid #e4e4e7;
}

.pipeline-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.pipeline-stat-label {
  display: block;
  font-size: 0.75rem;
  color: #71717a;
}

.pipeline-stat-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #18181b;
}

.pipeline-stat-value--ok {
  color: #15803d;
}

.pipeline-stat-value--bad {
  color: #b91c1c;
}

.pipeline-msg-list {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 0.8125rem;
  color: #b91c1c;
}

.pipeline-msg-list--warn {
  color: #a16207;
}

.pipeline-error {
  color: #b91c1c;
}

.pipeline-status {
  margin: 10px 0 0;
}

.radar-layer4 {
  padding: 20px 24px;
}

.radar-tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e4e4e7;
  padding-bottom: 0;
}

.radar-tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 10px 16px;
  margin-bottom: -1px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #71717a;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  border-radius: 4px 4px 0 0;
}

.radar-tab:hover {
  color: #3f3f46;
  background: #fafafa;
}

.radar-tab--active {
  color: #18181b;
  border-bottom-color: #5e6ad2;
}

.radar-tab-panel {
  min-height: 120px;
}

.radar-tab-panel.hidden {
  display: none;
}

.product-ranking-wrap {
  overflow-x: auto;
}

.product-ranking-table .col-rank {
  white-space: nowrap;
  width: 72px;
}

.product-ranking-table .col-product {
  min-width: 140px;
  max-width: 200px;
}

.product-ranking-table .col-product .product-name {
  display: block;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-ranking-table .col-product .product-id {
  display: block;
  font-size: 0.75rem;
  color: #71717a;
}

.product-ranking-table .col-cta {
  min-width: 240px;
  max-width: 360px;
}

.product-ranking-table .col-trend {
  white-space: nowrap;
  width: 88px;
}

.trend-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.trend-header-toggle {
  display: inline-flex;
  border: 1px solid #e4e4e7;
  border-radius: 4px;
  overflow: hidden;
}

.trend-toggle-btn {
  padding: 1px 5px;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.4;
  color: #71717a;
  background: #fafafa;
  border: none;
  cursor: pointer;
}

.trend-toggle-btn + .trend-toggle-btn {
  border-left: 1px solid #e4e4e7;
}

.trend-toggle-btn.is-active {
  color: #18181b;
  background: #e4e4e7;
}

.trend-toggle-btn:hover:not(.is-active) {
  background: #f4f4f5;
}

.delta--surge {
  font-weight: 700;
}

.product-cta-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-cta-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #18181b;
  line-height: 1.35;
}

.product-cta-message {
  margin: 0;
  font-size: 0.8125rem;
  color: #3f3f46;
  line-height: 1.45;
}

.product-cta-message--secondary {
  font-size: 0.75rem;
  color: #52525b;
}

.product-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.product-cta-actions .cta-badge--secondary {
  color: #475569;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.product-heat-bar {
  min-width: 80px;
}

.product-heat-bar .dist-track {
  height: 8px;
  background: #e4e4e7;
  border-radius: 4px;
  overflow: hidden;
}

.product-heat-bar .dist-fill {
  height: 100%;
  background: #5e6ad2;
  border-radius: 4px;
}

.cta-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: default;
}

.cta-badge--action {
  color: #4338ca;
  background: #eef2ff;
  border-color: #c7d2fe;
}

.cta-badge--info {
  color: #475569;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.cta-badge--suppress {
  color: #71717a;
  background: #f4f4f5;
  border-color: #e4e4e7;
}
