/* Theme palette for the reference dashboard composition.
   Layout stays in app.css/directai-reference-layout.js; this file owns colors only. */
.reference-empty-module-group {
  display: none;
}

.reference-empty-module {
  border: 1px solid #e6ebf3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(48, 67, 103, .05);
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view .reference-empty-module,
body.is-reference-design.is-dashboard-dark.is-dashboard-view .reference-empty-module {
  border-color: var(--dashboard-border) !important;
  background: var(--dashboard-surface) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .17) !important;
}

body.is-reference-design.is-dashboard-light.is-dashboard-view #placementStatsSection > .panel,
body.is-reference-design.is-dashboard-light.is-dashboard-view #placementStatsSection .placement-tools,
body.is-reference-design.is-dashboard-light.is-dashboard-view #placementStatsSection .placement-kpi-card,
body.is-reference-design.is-dashboard-light.is-dashboard-view #placementStatsSection .home-analytics-top,
body.is-reference-design.is-dashboard-light.is-dashboard-view #placementStatsSection .home-analytics-top .ta-top-blocks,
body.is-reference-design.is-dashboard-light.is-dashboard-view #placementStatsSection .ta-kpi-card,
body.is-reference-design.is-dashboard-light.is-dashboard-view #placementStatsSection .ta-kpi-grid {
  border-color: transparent !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.is-reference-design.is-dashboard-light.is-dashboard-view #placementStatsSection .ta-kpi-ring {
  background: #ffffff !important;
}

html[data-theme="dark"] body.is-reference-design,
body.is-reference-design.is-dashboard-dark {
  color-scheme: dark;
  --dashboard-page: #202329;
  --dashboard-surface: #2b2f36;
  --dashboard-surface-subtle: #252930;
  --dashboard-surface-hover: #32373f;
  --dashboard-border: #3c424c;
  --dashboard-border-soft: #343a43;
  --dashboard-text: #f2f4f7;
  --dashboard-muted: #aab2bd;
  --dashboard-faint: #7f8997;
  --dashboard-accent: #d5fa96;
  --dashboard-accent-soft: rgba(213, 250, 150, .11);
  --dashboard-success: #49ca78;
  --bg: var(--dashboard-page);
  --surface: var(--dashboard-surface);
  --text: var(--dashboard-text);
  --muted: var(--dashboard-muted);
  background: var(--dashboard-page) !important;
  color: var(--dashboard-text) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view .app-layout,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view .app-workspace,
body.is-reference-design.is-dashboard-dark.is-dashboard-view .app-layout,
body.is-reference-design.is-dashboard-dark.is-dashboard-view .app-workspace {
  background: transparent !important;
  color: var(--dashboard-text) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view .app-side-nav,
body.is-reference-design.is-dashboard-dark.is-dashboard-view .app-side-nav {
  border-color: var(--dashboard-border) !important;
  background: rgba(43, 47, 54, .97) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view .app-side-brand:before,
body.is-reference-design.is-dashboard-dark.is-dashboard-view .app-side-brand:before {
  background: #111827 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view .app-side-title,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view .app-side-link,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view .app-side-ico,
body.is-reference-design.is-dashboard-dark.is-dashboard-view .app-side-title,
body.is-reference-design.is-dashboard-dark.is-dashboard-view .app-side-link,
body.is-reference-design.is-dashboard-dark.is-dashboard-view .app-side-ico {
  color: var(--dashboard-muted) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view .app-side-link:hover,
body.is-reference-design.is-dashboard-dark.is-dashboard-view .app-side-link:hover {
  background: var(--dashboard-surface-hover) !important;
  color: var(--dashboard-text) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view .app-side-link.is-active,
body.is-reference-design.is-dashboard-dark.is-dashboard-view .app-side-link.is-active {
  background: var(--dashboard-accent-soft) !important;
  color: var(--dashboard-accent) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view .app-header h1,
body.is-reference-design.is-dashboard-dark.is-dashboard-view .app-header h1 {
  color: var(--dashboard-text) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection #placementPeriods .dn-period,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection #placementPeriods .dn-period {
  border-color: var(--dashboard-border) !important;
  background: var(--dashboard-surface) !important;
  color: var(--dashboard-text) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .17) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection #placementPeriods .dn-period:hover,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection #placementPeriods .dn-period:hover {
  border-color: #59616d !important;
  background: var(--dashboard-surface-hover) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection #placementPeriods .dn-period .dpn,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection #placementPeriods .dn-period .dpn {
  color: var(--dashboard-text) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection #placementPeriods .dn-period .dps,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection #placementPeriods .dn-period .dps {
  color: var(--dashboard-muted) !important;
  opacity: 1 !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection #placementPeriods .dn-period.is-active,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection #placementPeriods .dn-period.is-active {
  border-color: #59616d !important;
  background: #30353d !important;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .22) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .home-analytics-top .ta-card,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-bars-card,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-trend-card,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-table-wrap,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .home-analytics-top .ta-card,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-bars-card,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-trend-card,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-table-wrap {
  border-color: var(--dashboard-border) !important;
  background: var(--dashboard-surface) !important;
  color: var(--dashboard-text) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .ta-kpi-ring,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .ta-kpi-ring {
  border-color: var(--dashboard-border) !important;
  background: var(--dashboard-surface) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .17) !important;
}

body.is-reference-design.is-dashboard-view #placementStatsSection .reference-top-sites-card {
  box-sizing: border-box;
  min-width: 0;
  padding: 14px 16px 12px;
  overflow: hidden;
}

body.is-reference-design.is-dashboard-view #placementStatsSection .reference-top-sites-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 38px;
  margin-bottom: 5px;
}

body.is-reference-design.is-dashboard-view #placementStatsSection .reference-top-sites-head h2 {
  margin: 0;
  color: var(--dashboard-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

body.is-reference-design.is-dashboard-view #placementStatsSection .reference-top-sites-head span {
  display: block;
  margin-top: 2px;
  color: var(--dashboard-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
}

body.is-reference-design.is-dashboard-view #placementStatsSection .reference-top-sites-list {
  display: grid;
  gap: 3px;
}

body.is-reference-design.is-dashboard-view #placementStatsSection .reference-top-site-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) minmax(76px, .82fr);
  align-items: center;
  gap: 7px;
  min-height: 23px;
}

body.is-reference-design.is-dashboard-view #placementStatsSection .reference-top-site-rank {
  color: var(--dashboard-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

body.is-reference-design.is-dashboard-view #placementStatsSection .reference-top-site-name {
  min-width: 0;
  overflow: hidden;
  color: var(--dashboard-text);
  font-size: 11px;
  font-weight: 560;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-reference-design.is-dashboard-view #placementStatsSection a.reference-top-site-name {
  text-decoration: none;
}

body.is-reference-design.is-dashboard-view #placementStatsSection a.reference-top-site-name:hover,
body.is-reference-design.is-dashboard-view #placementStatsSection a.reference-top-site-name:focus-visible {
  color: #2563eb;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.is-reference-design.is-dashboard-view #placementStatsSection .reference-top-site-metric {
  display: grid;
  grid-template-columns: minmax(36px, 1fr) 30px;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

body.is-reference-design.is-dashboard-view #placementStatsSection .reference-top-site-track {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #edf2f7;
}

body.is-reference-design.is-dashboard-view #placementStatsSection .reference-top-site-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #10b981;
}

body.is-reference-design.is-dashboard-view #placementStatsSection .reference-destination-site-row .reference-top-site-track i {
  background: #3b82f6;
}

body.is-reference-design.is-dashboard-view #placementStatsSection .reference-top-destination-value {
  color: var(--dashboard-text);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  text-align: right;
}

body.is-reference-design.is-dashboard-view #placementStatsSection .reference-top-site-value {
  min-width: 30px;
  padding: 2px 1px;
  border: 0;
  border-bottom: 1px dashed #3b82f6;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: right;
  cursor: pointer;
}

body.is-reference-design.is-dashboard-view .reference-sites-table a {
  color: #2563eb;
  text-decoration: none;
}

body.is-reference-design.is-dashboard-view .reference-sites-table a:hover {
  text-decoration: underline;
}

body.is-dashboard-dark.is-reference-design.is-dashboard-view .reference-sites-table a {
  color: #60a5fa;
}

body.is-reference-design.is-dashboard-view #placementStatsSection .reference-top-site-value:hover,
body.is-reference-design.is-dashboard-view #placementStatsSection .reference-top-site-value:focus-visible {
  color: #1d4ed8;
  outline: none;
  border-bottom-style: solid;
}

body.is-reference-design.is-dashboard-view #placementStatsSection .reference-top-sites-state {
  display: grid;
  min-height: 108px;
  place-items: center;
  color: var(--dashboard-muted);
  font-size: 11px;
  text-align: center;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .reference-top-site-track,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .reference-top-site-track {
  background: #3a4049;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .reference-top-site-value,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .reference-top-site-value {
  color: #60a5fa;
  border-bottom-color: #60a5fa;
}

body.is-reference-design .reference-sites-modal {
  width: min(1120px, calc(100vw - 40px));
  max-height: min(760px, calc(100vh - 40px));
  overflow: hidden;
}

body.is-reference-design .reference-sites-modal-content {
  min-height: 150px;
  overflow: auto;
  padding: 16px 20px 22px;
}

body.is-reference-design .reference-sites-modal-summary {
  margin-bottom: 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

body.is-reference-design .reference-sites-table-wrap {
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

body.is-reference-design .reference-sites-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

body.is-reference-design .reference-sites-table th,
body.is-reference-design .reference-sites-table td {
  padding: 10px 12px;
  text-align: right;
  white-space: nowrap;
}

body.is-reference-design .reference-sites-table th:first-child,
body.is-reference-design .reference-sites-table th:nth-child(2),
body.is-reference-design .reference-sites-table td:first-child,
body.is-reference-design .reference-sites-table td:nth-child(2) {
  text-align: left;
}

body.is-reference-design .reference-sites-table td:first-child {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.is-reference-design .reference-sites-table td small {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 500;
}

body.is-reference-design .reference-sites-conversions {
  color: #2563eb !important;
  font-weight: 750;
}

html[data-theme="dark"] body.is-reference-design .reference-sites-modal-summary,
body.is-reference-design.is-dashboard-dark .reference-sites-modal-summary {
  color: var(--dashboard-muted);
}

html[data-theme="dark"] body.is-reference-design .reference-sites-table-wrap,
body.is-reference-design.is-dashboard-dark .reference-sites-table-wrap {
  border-color: var(--dashboard-border);
}

html[data-theme="dark"] body.is-reference-design .reference-sites-conversions,
body.is-reference-design.is-dashboard-dark .reference-sites-conversions {
  color: #60a5fa !important;
}

@media (max-width: 1199px) {
  body.is-reference-design.is-dashboard-view #placementStatsSection .reference-top-sites-card {
    min-height: 196px;
  }
}

/* Period controls remain individual white cards on the light dashboard. */
html[data-theme="light"] body.is-reference-design.is-dashboard-view #placementStatsSection #placementPeriods .dn-period,
body.is-reference-design.is-dashboard-light.is-dashboard-view #placementStatsSection #placementPeriods .dn-period,
html[data-theme="light"] body.is-reference-design.is-dashboard-view #placementStatsSection #placementPeriods .dn-period.is-active,
body.is-reference-design.is-dashboard-light.is-dashboard-view #placementStatsSection #placementPeriods .dn-period.is-active,
html[data-theme="light"] body.is-reference-design.is-dashboard-view #placementStatsSection #placementPeriods .dn-week-compare,
body.is-reference-design.is-dashboard-light.is-dashboard-view #placementStatsSection #placementPeriods .dn-week-compare,
html[data-theme="light"] body.is-reference-design.is-dashboard-view #placementStatsSection #placementPeriods .dn-week-compare.is-on,
body.is-reference-design.is-dashboard-light.is-dashboard-view #placementStatsSection #placementPeriods .dn-week-compare.is-on {
  background: #ffffff !important;
  background-image: none !important;
}

html[data-theme="light"] body.is-reference-design.is-dashboard-view #placementStatsSection #placementPeriods .dn-week-compare,
body.is-reference-design.is-dashboard-light.is-dashboard-view #placementStatsSection #placementPeriods .dn-week-compare {
  border-color: #e6ebf3 !important;
  color: var(--dashboard-text) !important;
  box-shadow: 0 4px 14px rgba(48, 67, 103, .05) !important;
}

html[data-theme="light"] body.is-reference-design.is-dashboard-view #placementStatsSection #placementPeriods .dn-week-compare .dpn,
body.is-reference-design.is-dashboard-light.is-dashboard-view #placementStatsSection #placementPeriods .dn-week-compare .dpn {
  color: var(--dashboard-text) !important;
}

html[data-theme="light"] body.is-reference-design.is-dashboard-view #placementStatsSection #placementPeriods .dn-week-compare .dps,
body.is-reference-design.is-dashboard-light.is-dashboard-view #placementStatsSection #placementPeriods .dn-week-compare .dps {
  color: var(--dashboard-muted) !important;
  opacity: .86 !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection #placementPeriods .dn-week-compare,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection #placementPeriods .dn-week-compare,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection #placementPeriods .dn-week-compare.is-on,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection #placementPeriods .dn-week-compare.is-on {
  border-color: var(--dashboard-border) !important;
  background: var(--dashboard-surface) !important;
  color: var(--dashboard-text) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .17) !important;
}

/* Metric-colored light pools below the sharp SVG lines, matching the reference. */
body.is-reference-design.is-dashboard-view #placementTrendSvg .placement-trend-line-cost {
  --trend-glow-near: rgba(249, 115, 22, .30);
  --trend-glow-mid: rgba(249, 115, 22, .18);
  --trend-glow-far: rgba(249, 115, 22, .09);
}

body.is-reference-design.is-dashboard-view #placementTrendSvg .placement-trend-line-conv {
  --trend-glow-near: rgba(139, 92, 246, .32);
  --trend-glow-mid: rgba(139, 92, 246, .19);
  --trend-glow-far: rgba(139, 92, 246, .10);
}

body.is-reference-design.is-dashboard-view #placementTrendSvg .placement-trend-line-cpa {
  --trend-glow-near: rgba(132, 204, 22, .28);
  --trend-glow-mid: rgba(132, 204, 22, .17);
  --trend-glow-far: rgba(132, 204, 22, .08);
}

body.is-reference-design.is-dashboard-view #placementTrendSvg .placement-trend-line-impr {
  --trend-glow-near: rgba(100, 116, 139, .24);
  --trend-glow-mid: rgba(100, 116, 139, .14);
  --trend-glow-far: rgba(100, 116, 139, .07);
}

body.is-reference-design.is-dashboard-view #placementTrendSvg .placement-trend-line-clicks {
  --trend-glow-near: rgba(59, 130, 246, .30);
  --trend-glow-mid: rgba(59, 130, 246, .18);
  --trend-glow-far: rgba(59, 130, 246, .09);
}

body.is-reference-design.is-dashboard-view #placementTrendSvg .placement-trend-line-ctr {
  --trend-glow-near: rgba(16, 185, 129, .30);
  --trend-glow-mid: rgba(16, 185, 129, .18);
  --trend-glow-far: rgba(16, 185, 129, .09);
}

body.is-reference-design.is-dashboard-view #placementTrendSvg path[class*="placement-trend-line-"]:not(.directai-week-prev):not([data-placement-trend-group]) {
  filter:
    drop-shadow(0 7px 4px var(--trend-glow-near))
    drop-shadow(0 18px 11px var(--trend-glow-mid))
    drop-shadow(0 34px 22px var(--trend-glow-far)) !important;
}

body.is-reference-design.is-dashboard-view #placementTrendSvg .directai-week-prev {
  filter: none !important;
}

/* White mini-switch thumbs need a visible track and edge on light surfaces. */
html[data-theme="light"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-vat-mini,
body.is-reference-design.is-dashboard-light.is-dashboard-view #placementStatsSection .placement-vat-mini {
  border: 1px solid #94a3b8 !important;
  background: #e2e8f0 !important;
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, .04),
    0 1px 3px rgba(15, 23, 42, .14) !important;
}

html[data-theme="light"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-vat-mini::after,
body.is-reference-design.is-dashboard-light.is-dashboard-view #placementStatsSection .placement-vat-mini::after {
  border: 1px solid #cbd5e1;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .24) !important;
}

html[data-theme="light"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-vat-mini.is-on,
body.is-reference-design.is-dashboard-light.is-dashboard-view #placementStatsSection .placement-vat-mini.is-on {
  border-color: #16a34a !important;
  background: var(--dashboard-success, #49ca78) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-vat-mini,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-vat-mini {
  border: 1px solid #59616d !important;
  background: #3a4049 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-vat-mini::after,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-vat-mini::after {
  border: 1px solid #cbd5e1;
  background: #f8fafc !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .42) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-vat-mini.is-on,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-vat-mini.is-on {
  border-color: #49ca78 !important;
  background: #49ca78 !important;
}

body.is-reference-design.is-dashboard-view #placementStatsSection .placement-vat-mini:focus-visible {
  outline: 2px solid #2563eb !important;
  outline-offset: 2px !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .ta-kpi-ring strong,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .ta-kpi-card header h2,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .ta-radar-card header h2,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-trend-title-row strong,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-bars-card,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-bars-card *,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .ta-kpi-ring strong,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .ta-kpi-card header h2,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .ta-radar-card header h2,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-trend-title-row strong,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-bars-card,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-bars-card * {
  color: var(--dashboard-text) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .ta-kpi-ring span,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .ta-kpi-card header h2 span,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .ta-radar-card header p,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .ta-radar-legend,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-bar,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-trend-detail-label,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-trend-grain,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-trend-toggle,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .ta-kpi-ring span,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .ta-kpi-card header h2 span,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .ta-radar-card header p,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .ta-radar-legend,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-bar,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-trend-detail-label,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-trend-grain,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-trend-toggle {
  color: var(--dashboard-muted) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .ta-radar-legend span,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-trend-toggle,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-trend-grain,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .ta-radar-legend span,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-trend-toggle,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-trend-grain {
  border-color: var(--dashboard-border) !important;
  background: var(--dashboard-surface-subtle) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-bar-track,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-bar-track {
  background: #3a4049 !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-trend-grid,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-trend-grid {
  stroke: #373d46 !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-trend-tickline,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-trend-tickline {
  stroke: #454c56 !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-trend-axis,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-trend-axis-minor,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-trend-minor-wd,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-trend-tick,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-trend-axis,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-trend-axis-minor,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-trend-minor-wd,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-trend-tick {
  fill: var(--dashboard-muted) !important;
  color: var(--dashboard-muted) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .ta-radar-grid,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .ta-radar-axis,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .ta-radar-grid,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .ta-radar-axis {
  stroke: #48505b !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .ta-radar-label,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .ta-radar-label {
  fill: var(--dashboard-muted) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-table th,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-table th {
  border-color: var(--dashboard-border) !important;
  background: #252930 !important;
  color: var(--dashboard-muted) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-table td,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-table td {
  border-color: var(--dashboard-border-soft) !important;
  background: var(--dashboard-surface) !important;
  color: var(--dashboard-text) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-table tr:hover td,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-table tr:hover td {
  background: var(--dashboard-surface-hover) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection input,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection select,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-type-pill,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection input,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection select,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-type-pill {
  border-color: var(--dashboard-border) !important;
  background: var(--dashboard-surface-subtle) !important;
  color: var(--dashboard-text) !important;
}

html[data-theme="dark"] body.is-reference-design .placement-modal,
body.is-reference-design.is-dashboard-dark .placement-modal,
html[data-theme="dark"] body.is-reference-design .placement-account-menu,
html[data-theme="dark"] body.is-reference-design .placement-status-menu,
html[data-theme="dark"] body.is-reference-design .placement-summary-group-menu,
body.is-reference-design.is-dashboard-dark .placement-account-menu,
body.is-reference-design.is-dashboard-dark .placement-status-menu,
body.is-reference-design.is-dashboard-dark .placement-summary-group-menu {
  border-color: var(--dashboard-border) !important;
  background: var(--dashboard-surface) !important;
  color: var(--dashboard-text) !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .38) !important;
}

html[data-theme="dark"] body.is-reference-design .placement-modal-head,
body.is-reference-design.is-dashboard-dark .placement-modal-head {
  border-bottom-color: var(--dashboard-border) !important;
}

html[data-theme="dark"] body.is-reference-design .placement-modal-title,
html[data-theme="dark"] body.is-reference-design .placement-modal-info strong,
html[data-theme="dark"] body.is-reference-design .placement-modal-meta-btn b,
html[data-theme="dark"] body.is-reference-design .placement-modal-table td,
body.is-reference-design.is-dashboard-dark .placement-modal-title,
body.is-reference-design.is-dashboard-dark .placement-modal-info strong,
body.is-reference-design.is-dashboard-dark .placement-modal-meta-btn b,
body.is-reference-design.is-dashboard-dark .placement-modal-table td {
  color: var(--dashboard-text) !important;
}

html[data-theme="dark"] body.is-reference-design .placement-modal-subtitle,
html[data-theme="dark"] body.is-reference-design .placement-modal-subtle,
html[data-theme="dark"] body.is-reference-design .placement-modal-info,
html[data-theme="dark"] body.is-reference-design .placement-modal-meta-btn span,
html[data-theme="dark"] body.is-reference-design .placement-power-msg,
body.is-reference-design.is-dashboard-dark .placement-modal-subtitle,
body.is-reference-design.is-dashboard-dark .placement-modal-subtle,
body.is-reference-design.is-dashboard-dark .placement-modal-info,
body.is-reference-design.is-dashboard-dark .placement-modal-meta-btn span,
body.is-reference-design.is-dashboard-dark .placement-power-msg {
  color: var(--dashboard-muted) !important;
}

html[data-theme="dark"] body.is-reference-design .placement-modal-close,
html[data-theme="dark"] body.is-reference-design .placement-modal-meta-btn,
html[data-theme="dark"] body.is-reference-design .placement-modal-action-btn,
body.is-reference-design.is-dashboard-dark .placement-modal-close,
body.is-reference-design.is-dashboard-dark .placement-modal-meta-btn,
body.is-reference-design.is-dashboard-dark .placement-modal-action-btn {
  border-color: var(--dashboard-border) !important;
  background: var(--dashboard-surface-subtle) !important;
  color: var(--dashboard-text) !important;
}

html[data-theme="dark"] body.is-reference-design .placement-modal-table th,
body.is-reference-design.is-dashboard-dark .placement-modal-table th {
  border-bottom-color: var(--dashboard-border) !important;
  background: var(--dashboard-surface-subtle) !important;
  color: var(--dashboard-muted) !important;
}

html[data-theme="dark"] body.is-reference-design .placement-modal-table td,
body.is-reference-design.is-dashboard-dark .placement-modal-table td {
  border-bottom-color: var(--dashboard-border-soft) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view .app-theme-btn,
body.is-reference-design.is-dashboard-dark.is-dashboard-view .app-theme-btn {
  border-color: var(--dashboard-border) !important;
  background: var(--dashboard-surface) !important;
  color: var(--dashboard-text) !important;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .28) !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view .app-theme-btn:hover,
body.is-reference-design.is-dashboard-dark.is-dashboard-view .app-theme-btn:hover {
  border-color: var(--dashboard-accent) !important;
  background: var(--dashboard-surface-hover) !important;
  color: var(--dashboard-accent) !important;
}

/* Expose the page background between the individual KPI cards in dark mode. */
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection > .panel,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-tools,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .placement-kpi-card,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .home-analytics-top,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .home-analytics-top .ta-top-blocks,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .ta-kpi-card,
html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .ta-kpi-grid,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection > .panel,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-tools,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .placement-kpi-card,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .home-analytics-top,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .home-analytics-top .ta-top-blocks,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .ta-kpi-card,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .ta-kpi-grid {
  border-color: transparent !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.is-reference-design.is-dashboard-view #placementStatsSection .ta-kpi-ring,
body.is-reference-design.is-dashboard-dark.is-dashboard-view #placementStatsSection .ta-kpi-ring {
  border-color: var(--dashboard-border) !important;
  background: var(--dashboard-surface) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .17) !important;
}
