/* Isolated Stack Overflow dashboard mock. Product colors stay in this iframe. */

:root {
  --so-font: Arial, Helvetica, sans-serif;
  --so-canvas: #ffffff;
  --so-header-bg: #fafafa;
  --so-footer-bg: #f5f5f5;
  --so-nav-selected: #e5e5e5;
  --so-border: #e5e5e5;
  --so-border-button: #d4d4d4;
  --so-orange: #ff8904;
  --so-blue: #2b7fff;
  --so-sky: #00a6f4;
  --so-green: #00c950;
  --so-green-text: #00a63e;
  --so-green-bg: #dcfce7;
  --so-red-text: #e7000b;
  --so-red-bg: #ffe2e2;
  --so-amber: #fe9a00;
  --so-yellow: #ffd230;
  --so-text: #171717;
  --so-text-title: #262626;
  --so-text-body: #404040;
  --so-text-muted: #737373;
  --so-text-nav: #54595f;
  --so-text-placeholder: #d4d4d4;
  --so-text-badge: #a1a1a1;
  --so-text-ink: #0c0d0e;
  --so-text-empty: #6a737c;
  --so-radius-card: 4px;
  --so-radius-pill: 8px;
  /* Matches title→card gap (16); half of row gap (32) */
  --so-card-padding: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--so-canvas);
}

img {
  display: block;
  max-width: 100%;
}

.so-dashboard {
  position: relative;
  width: 100%;
  max-width: 1266px;
  min-height: 100%;
  height: auto;
  overflow: visible;
  margin-inline: auto;
  background-color: var(--so-canvas);
  font-family: var(--so-font);
  color: var(--so-text);
  -webkit-font-smoothing: antialiased;
}

.so-dashboard__topbar {
  height: 4px;
  background-color: var(--so-orange);
}

.so-dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 59px;
  height: auto;
  padding: 12px 16px;
  background-color: var(--so-header-bg);
  border-bottom: 1px solid var(--so-border);
}

.so-dashboard__header-left {
  display: flex;
  align-items: flex-start;
  flex: 1 1 auto;
  gap: 24px;
  min-width: 0;
}

.so-dashboard__logo {
  width: 150px;
  max-width: 40%;
  height: auto;
  aspect-ratio: 150 / 29.474;
  margin-top: 3px;
  flex-shrink: 0;
}

.so-dashboard__search {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  width: auto;
  max-width: 486px;
  min-width: 0;
  height: 35px;
  padding: 0 10px;
  border: 1px solid var(--so-border-button);
  border-radius: 3px;
  background-color: var(--so-canvas);
  color: var(--so-text-placeholder);
  font-family: inherit;
  font-size: 14px;
  line-height: 16px;
}

.so-dashboard__header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.so-dashboard__rep {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--so-text-muted);
  font-size: 12px;
  line-height: 14px;
}

.so-dashboard__avatar {
  width: 24px;
  height: 24px;
}

.so-dashboard__badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 14px;
}

.so-dashboard__badge img {
  width: 8px;
  height: 8px;
}

.so-dashboard__badge--silver {
  color: var(--so-text-badge);
}

.so-dashboard__badge--bronze {
  color: var(--so-amber);
}

.so-dashboard__header-icons {
  width: 88px;
  height: 18px;
}

.so-dashboard__shell {
  display: flex;
  height: auto;
}

.so-dashboard__main {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 32px 24px 32px;
}

.so-dashboard__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--so-border);
}

.so-dashboard__title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.so-dashboard__title {
  margin: 0;
  color: var(--so-text-title);
  font-size: 32px;
  font-weight: 400;
  line-height: 37px;
}

.so-dashboard__beta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 20px;
  border: 1px solid var(--so-border-button);
  border-radius: var(--so-radius-card);
  color: var(--so-text-nav);
  font-size: 12px;
  line-height: 14px;
}

.so-dashboard__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.so-dashboard__range {
  position: relative;
}

.so-dashboard__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 8px 12px;
  border: 1px solid var(--so-border-button);
  border-radius: var(--so-radius-card);
  background-color: var(--so-canvas);
  color: var(--so-text-title);
  font-family: inherit;
  font-size: 12px;
  line-height: 14px;
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease,
    color 0.12s ease;
}

.so-dashboard__button:hover {
  background-color: var(--so-footer-bg);
  border-color: var(--so-text-badge);
  color: var(--so-text-ink);
}

.so-dashboard__button:hover img {
  filter: brightness(0.72);
}

.so-dashboard__button:focus-visible {
  outline: none;
  border-color: var(--so-blue);
  box-shadow: 0 0 0 2px var(--so-canvas), 0 0 0 4px var(--so-blue);
}

.so-dashboard__button--range {
  cursor: pointer;
}

.so-dashboard__button--range img {
  transition: transform 0.15s ease;
}

.so-dashboard__button--range[aria-expanded="true"] {
  border-color: var(--so-blue);
}

.so-dashboard__button--range[aria-expanded="true"] img {
  transform: rotate(180deg);
}

.so-dashboard__range-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 20;
  min-width: 100%;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background-color: var(--so-canvas);
  border: 1px solid var(--so-border-button);
  border-radius: var(--so-radius-card);
  box-shadow: 0 4px 12px rgba(12, 13, 14, 0.12);
}

.so-dashboard__range-menu[hidden] {
  display: none;
}

.so-dashboard__range-menu [role="option"] {
  padding: 8px 12px;
  color: var(--so-text-title);
  font-size: 12px;
  line-height: 14px;
  white-space: nowrap;
  cursor: pointer;
}

.so-dashboard__range-menu [role="option"]:hover,
.so-dashboard__range-menu [role="option"]:focus {
  background-color: var(--so-footer-bg);
  outline: none;
}

.so-dashboard__range-menu [role="option"]:focus-visible {
  box-shadow: inset 0 0 0 2px var(--so-blue);
}

.so-dashboard__range-menu [role="option"][aria-selected="true"] {
  color: var(--so-blue);
  font-weight: 700;
}

.so-dashboard__button img {
  width: 16px;
  height: 16px;
}

.so-dashboard__button--download {
  border-color: var(--so-blue);
  color: var(--so-blue);
  cursor: pointer;
}

.so-dashboard__download {
  display: inline-flex;
  align-items: center;
}

.so-dashboard__banner {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  color: var(--so-green-text);
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
  background-color: var(--so-green-bg);
  border: 1px solid var(--so-green);
  border-radius: var(--so-radius-pill);
  box-shadow: 0 4px 16px rgba(12, 13, 14, 0.12);
  transform: translateX(-50%) translateY(-4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.so-dashboard__banner-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.so-dashboard__banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.so-dashboard__banner[hidden] {
  display: none;
}

.so-dashboard__banner.is-visible[hidden] {
  display: inline-flex;
}

.so-dashboard__section-title {
  margin: 0 0 4px;
  color: var(--so-text-title);
  font-size: 24px;
  font-weight: 400;
  line-height: 28px;
}

.so-dashboard__section-title + .so-dashboard__row {
  margin-top: 12px;
}

.so-dashboard__section-kicker {
  margin: 0 0 16px;
  color: var(--so-text-body);
  font-size: 12px;
  line-height: 14px;
}

.so-dashboard__row {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

.so-dashboard__row--small {
  gap: 24px;
  margin-bottom: 0;
}

.so-dashboard__card {
  display: flex;
  flex-direction: column;
  gap: var(--so-card-padding);
  min-width: 0;
  overflow: visible;
  padding: var(--so-card-padding);
  background-color: var(--so-canvas);
  border: 1px solid var(--so-border);
  border-radius: var(--so-radius-card);
}

.so-dashboard__card--medium {
  flex: 1 1 0;
  height: 301px;
}

.so-dashboard__card--wide {
  width: 100%;
}

.so-dashboard__card--interaction {
  /* Info tip sits above the icon */
  overflow: visible;
}

.so-dashboard__card--activity {
  height: 400px;
  margin-top: 32px;
}

.so-dashboard__card--small {
  flex: 1 1 0;
  height: 250px;
}

.so-dashboard__card-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
}

.so-dashboard__card-head--compact {
  padding-bottom: 0;
}

.so-dashboard__card-label {
  margin: 0;
  color: var(--so-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 17px;
}

.so-dashboard__card-label-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.so-dashboard__info-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.so-dashboard__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--so-radius-card);
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.so-dashboard__info img {
  width: 14px;
  height: 14px;
}

.so-dashboard__info:hover,
.so-dashboard__info:focus-visible,
.so-dashboard__info-wrap:hover .so-dashboard__info,
.so-dashboard__info-wrap:focus-within .so-dashboard__info {
  background-color: var(--so-footer-bg);
  outline: none;
}

.so-dashboard__info-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 12;
  width: 220px;
  padding: 8px 10px;
  color: var(--so-canvas);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  background-color: var(--so-text-ink);
  border: 1px solid transparent;
  border-radius: var(--so-radius-card);
  box-shadow: none;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.12s ease,
    visibility 0.12s ease;
}

.so-dashboard__info-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-top-color: var(--so-text-ink);
  transform: translateX(-50%);
}

.so-dashboard__info-wrap:hover .so-dashboard__info-tip,
.so-dashboard__info-wrap:focus-within .so-dashboard__info-tip {
  opacity: 1;
  visibility: visible;
}

.so-dashboard__metric-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.so-dashboard__metric {
  margin: 0;
  color: var(--so-text);
  font-size: 21px;
  font-weight: 400;
  line-height: 24px;
}

.so-dashboard__metric--lg {
  font-size: 24px;
  line-height: 28px;
  color: var(--so-text-title);
}

.so-dashboard__delta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 16px;
}

.so-dashboard__delta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 2px;
  border-radius: var(--so-radius-card);
}

.so-dashboard__delta-icon img {
  display: block;
  width: 12px;
  height: 12px;
  max-width: 12px;
  max-height: 12px;
  flex-shrink: 0;
}

.so-dashboard__delta--up {
  color: var(--so-green-text);
}

.so-dashboard__delta--up .so-dashboard__delta-icon {
  background-color: var(--so-green-bg);
}

.so-dashboard__delta--down {
  color: var(--so-red-text);
}

.so-dashboard__delta--down .so-dashboard__delta-icon {
  background-color: var(--so-red-bg);
}

.so-dashboard__delta--down .so-dashboard__delta-icon img {
  transform: scaleY(-1);
}

.so-dashboard__donut-body {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  width: 100%;
  max-width: 75%;
  margin-inline: auto;
  padding: 0;
}

.so-dashboard__donut-chart {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}

.so-dashboard__donut-canvas {
  display: block;
  width: 180px;
  height: 180px;
}

.so-dashboard__donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.so-dashboard__donut-center-value {
  color: var(--so-text-title);
  font-size: 21px;
  line-height: 24px;
}

.so-dashboard__donut-center-label {
  color: var(--so-text-muted);
  font-size: 14px;
  line-height: 16px;
}

.so-dashboard__donut-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.so-dashboard__donut-tooltip.so-dashboard__tooltip--compact {
  width: 120px;
}

.so-dashboard__donut-tooltip.is-active {
  opacity: 1;
  visibility: visible;
}

.so-dashboard__donut-tooltip-pct {
  color: var(--so-text-muted);
  font-size: 12px;
  line-height: 14px;
}

.so-dashboard__legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.so-dashboard__legend-button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: var(--so-radius-card);
  background-color: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.2s ease;
}

.so-dashboard__legend-button:hover,
.so-dashboard__legend-button:focus-visible {
  background-color: var(--so-footer-bg);
  outline: none;
}

.so-dashboard__legend-button:focus-visible {
  box-shadow: 0 0 0 2px var(--so-canvas), 0 0 0 4px var(--so-green);
}

.so-dashboard__legend-button.is-faded {
  opacity: 0.3;
}

.so-dashboard__legend-button[aria-pressed="true"] {
  background-color: var(--so-footer-bg);
}

.so-dashboard__swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}

.so-dashboard__swatch--green {
  background-color: var(--so-green);
}

.so-dashboard__swatch--sky {
  background-color: var(--so-sky);
}

.so-dashboard__swatch--yellow {
  background-color: var(--so-yellow);
}

.so-dashboard__legend-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 16px;
}

.so-dashboard__legend-name {
  color: var(--so-text-ink);
}

.so-dashboard__legend-value {
  color: var(--so-text-muted);
}

.so-dashboard__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 calc(-1 * var(--so-card-padding)) calc(-1 * var(--so-card-padding));
  padding: var(--so-card-padding);
  background-color: var(--so-footer-bg);
  border-top: 1px solid var(--so-border);
}

.so-dashboard__note img {
  width: 14px;
  height: 12px;
  flex-shrink: 0;
}

.so-dashboard__note p {
  margin: 0;
  color: var(--so-text-body);
  font-size: 13px;
  line-height: 15px;
}

.so-dashboard__chart {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
}

.so-dashboard__chart--tight {
  padding: 0;
}

.so-dashboard__y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  min-height: 0;
}

.so-dashboard__y-tick {
  display: flex;
  align-items: center;
  gap: 8px;
}

.so-dashboard__y-tick span {
  width: 34px;
  flex-shrink: 0;
  color: var(--so-text-muted);
  font-size: 12px;
  line-height: 14px;
}

.so-dashboard__y-tick--sm span {
  width: 28px;
  font-size: 11px;
}

.so-dashboard__y-tick--xs span {
  width: 24px;
}

.so-dashboard__gridline {
  flex: 1 1 auto;
  height: 1px;
  background-color: var(--so-border);
}

.so-dashboard__x-axis {
  display: flex;
  color: var(--so-text-muted);
  font-size: 12px;
  line-height: 14px;
  text-align: center;
}

.so-dashboard__x-axis--five {
  justify-content: space-between;
  gap: 0;
  padding-right: 42px;
}

.so-dashboard__x-axis--spread {
  justify-content: space-between;
  padding-right: 36px;
  font-size: 11px;
}

.so-dashboard__x-axis--three {
  justify-content: space-between;
  padding-right: 32px;
}

.so-dashboard__x-axis span {
  width: 38px;
}

.so-dashboard__x-axis--five span {
  width: auto;
  flex: 0 0 auto;
}

.so-dashboard__x-axis--spread span {
  width: 35px;
}

.so-dashboard__x-axis--ten {
  padding-right: 20px;
  font-size: 10px;
}

.so-dashboard__x-axis--ten span {
  width: auto;
  flex: 1 1 0;
}

.so-dashboard__plot {
  position: absolute;
  pointer-events: none;
}

.so-dashboard__plot-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.so-dashboard__plot--tta {
  left: 0;
  right: 42px;
  top: 85px;
  width: auto;
  height: 113px;
  pointer-events: auto;
}

.so-dashboard__plot--activity {
  left: 0;
  right: 36px;
  top: 85px;
  width: auto;
  height: 177px;
  pointer-events: auto;
}

.so-dashboard__plot-hitarea {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  cursor: crosshair;
  outline: none;
}

.so-dashboard__plot-hitarea:focus-visible {
  outline: 1px solid var(--so-border-button);
  outline-offset: 2px;
}

.so-dashboard__plot--small {
  left: 0;
  right: 32px;
  top: 55px;
  width: auto;
  height: 99px;
  pointer-events: auto;
}

.so-dashboard__hover {
  position: absolute;
  /* Align rule with top y-axis gridline (−54.5px from plot) */
  top: -55px;
  left: 396px;
  width: 160px;
  height: 119px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.so-dashboard__hover--tta {
  /* Same top gridline offset as Activity in medium cards */
  top: -55px;
  left: 0;
  width: 140px;
  height: 100%;
}

.so-dashboard__hover--small {
  /* Top gridline sits ~32.5px above small plots */
  top: -33px;
  left: 0;
  width: 120px;
  height: 100%;
}

.so-dashboard__hover.is-active {
  opacity: 1;
  visibility: visible;
}

.so-dashboard__hover-rule {
  position: absolute;
  top: 0;
  left: 2px;
  width: 1px;
  /* Activity: top gridline (−55) → bottom gridline (~189) */
  height: 244px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--so-text-muted) 0,
    var(--so-text-muted) 5px,
    transparent 5px,
    transparent 10px
  );
}

.so-dashboard__hover-rule--tta {
  /* TTA: top (−55) → bottom (~96) */
  height: 151px;
}

.so-dashboard__hover-rule--small {
  /* Votes/Comments: top (−33) → bottom (~83) */
  height: 116px;
}

.so-dashboard__tooltip {
  position: absolute;
  top: 38px;
  left: 19px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 163px;
  padding: 6px 8px;
  background-color: var(--so-canvas);
  border: 1px solid rgba(23, 23, 23, 0.15);
  border-radius: var(--so-radius-card);
}

.so-dashboard__tooltip--compact {
  top: 8px;
  left: 10px;
  width: 120px;
  gap: 4px;
  padding: 5px 6px;
}

.so-dashboard__tooltip--compact .so-dashboard__tooltip-row p {
  font-size: 12px;
  line-height: 14px;
}

.so-dashboard__tooltip-date {
  margin: 0;
  color: var(--so-text-muted);
  font-size: 11px;
  line-height: 13px;
}

.so-dashboard__tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.so-dashboard__tooltip-row p {
  margin: 0;
  color: var(--so-text-ink);
  font-size: 14px;
  line-height: 16px;
}

.so-dashboard__hover--flip .so-dashboard__tooltip {
  left: auto;
  right: 19px;
}

.so-dashboard__hover--flip .so-dashboard__tooltip--compact {
  right: 10px;
}

.so-dashboard__progress-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}

.so-dashboard__progress {
  position: relative;
  height: 12px;
  border-radius: var(--so-radius-pill);
  background-color: var(--so-border);
}

.so-dashboard__progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 86.16%;
  height: 12px;
  border-radius: var(--so-radius-pill);
  background-color: var(--so-green);
}

.so-dashboard__progress-dots {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 12px;
  padding: 0 3px;
}

.so-dashboard__progress-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--so-canvas);
}

.so-dashboard__stat-pills {
  display: flex;
  align-items: center;
  gap: 36px;
}

.so-dashboard__stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--so-text-ink);
  font-size: 14px;
  line-height: 16px;
}

.so-dashboard__stat-pill p {
  margin: 0;
}

.so-dashboard__series {
  display: flex;
  gap: 48px;
  padding: 8px 0 0;
}

.so-dashboard__series-item {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.so-dashboard__series-mark {
  width: 16px;
  height: 4px;
  margin-top: 6px;
  border-radius: 2px;
}

.so-dashboard__series-mark--questions {
  background-color: var(--so-text-muted);
}

.so-dashboard__series-mark--answers {
  background-color: var(--so-sky);
}

.so-dashboard__series-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.so-dashboard__series-copy p {
  margin: 0;
  color: var(--so-text-body);
  font-size: 14px;
  line-height: 17px;
}

.so-dashboard__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 1 1 auto;
  padding: 0;
}

.so-dashboard__empty img {
  width: 112px;
  height: 102px;
}

.so-dashboard__empty p {
  margin: 0;
  width: 200px;
  color: var(--so-text-empty);
  font-size: 13px;
  line-height: 16px;
  text-align: center;
}

.so-dashboard__section + .so-dashboard__section {
  margin-top: 48px;
}

.so-dashboard__card--activity + .so-dashboard__section {
  margin-top: 48px;
}

@media (max-width: 900px) {
  .so-dashboard__header {
    flex-wrap: wrap;
  }

  .so-dashboard__header-left {
    flex: 1 1 100%;
    order: 1;
  }

  .so-dashboard__header-right {
    order: 0;
    margin-left: auto;
  }

  .so-dashboard__search {
    max-width: none;
  }

  .so-dashboard__main {
    padding: 24px 16px 32px;
  }

  .so-dashboard__title-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .so-dashboard__row,
  .so-dashboard__row--small {
    flex-direction: column;
  }

  .so-dashboard__card--medium,
  .so-dashboard__card--small {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
  }

  /* Absolute plots do not contribute to flow; keep desktop heights as floors */
  .so-dashboard__card--medium {
    min-height: 301px;
  }

  .so-dashboard__card--small {
    min-height: 250px;
  }

  .so-dashboard__card--activity {
    height: auto;
    min-height: 400px;
  }

  .so-dashboard__plot--tta,
  .so-dashboard__plot--activity,
  .so-dashboard__plot--small {
    right: 32px;
  }
}

@media (max-width: 640px) {
  .so-dashboard__logo {
    width: 120px;
    max-width: 36%;
  }

  .so-dashboard__header-icons {
    display: none;
  }

  .so-dashboard__title {
    font-size: 24px;
    line-height: 28px;
  }

  .so-dashboard__title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .so-dashboard__section-title {
    font-size: 20px;
    line-height: 24px;
  }

  .so-dashboard__card--medium,
  .so-dashboard__card--small {
    height: auto;
  }

  .so-dashboard__donut-body {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .so-dashboard__donut-tooltip,
  .so-dashboard__legend-button,
  .so-dashboard__info-tip,
  .so-dashboard__banner {
    transition: none;
  }
}
