/* Hux home dashboard v43 — signal field + unified operations command board */

.dashboard-section {
  --v43-surface: #101011;
  --v43-surface-soft: #131314;
  --v43-surface-active: #181617;
  --v43-border: #303034;
  --v43-border-strong: #4a4a50;
  --v43-text: #f3f3f4;
  --v43-secondary: #b0b0b6;
  --v43-muted: #77777f;
  --v43-red: #ff4d4d;
  --v43-number-font: "Instrument Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --v43-ease: cubic-bezier(0.22, 1, 0.36, 1);
  gap: 24px;
}

/* Keep the asset-browser masthead out of the dashboard homepage. */
.workspace.page-home .workspace-header {
  display: none;
}

.workspace.page-home .workspace-content {
  padding-top: clamp(42px, 4.5vw, 68px);
}

.workspace.page-assets .workspace-header {
  display: grid;
}

/* Reserve the final two-digit navigation geometry before Registry data arrives. */
.nav-count[data-stat="totalSkills"] {
  min-width: 28px;
}

/* Agent connection field */
.agent-copy-launcher-home {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(430px, 0.82fr) minmax(560px, 1.18fr);
  min-height: 310px;
  border: 1px solid var(--v43-border);
  background:
    linear-gradient(112deg, rgb(255 77 77 / 8%), transparent 30%),
    var(--v43-surface);
  opacity: 0;
  transform: none;
  transition: opacity 340ms ease;
}

.agent-copy-launcher-home::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  z-index: 3;
  background: var(--v43-red);
  content: "";
  pointer-events: none;
}

.agent-bridge-ready .agent-copy-launcher-home {
  opacity: 1;
  transform: none;
}

.agent-copy-launcher-home > .agent-copy-dismiss {
  top: 20px;
  right: 20px;
  z-index: 8;
}

.agent-connect-copy {
  position: relative;
  z-index: 2;
  justify-content: center;
  padding: 34px 44px;
  border-right: 0;
}

.agent-connect-copy::after {
  position: absolute;
  top: 26px;
  right: 0;
  bottom: 26px;
  width: 1px;
  background: linear-gradient(transparent, #343438 14% 86%, transparent);
  content: "";
}

.agent-connect-copy h3 {
  max-width: none;
  margin-top: 16px;
  font-size: clamp(34px, 3vw, 44px);
  font-weight: 590;
  letter-spacing: -0.04em;
  line-height: 1.08;
  white-space: nowrap;
}

.agent-connect-copy > p {
  max-width: 38em;
  margin-top: 18px;
  color: var(--v43-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.agent-connect-actions {
  gap: 12px 18px;
  margin-top: 28px;
}

/* Deliberately preserve the approved capsule geometry and appearance. */
.agent-copy-launcher-home .agent-copy-pill {
  grid-template-columns: auto minmax(0, auto) 38px;
  min-height: 58px;
  padding: 7px 8px 7px 16px;
  border: 1px solid #55555c;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 5%), transparent 52%),
    #1b1b1e;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}

.agent-copy-launcher-home .agent-copy-pill:hover,
.agent-copy-launcher-home .agent-copy-pill:focus-visible {
  border-color: #86868d;
  background: #222225;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%), 0 10px 28px rgb(0 0 0 / 23%);
  transform: none;
}

.agent-signal-field {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 22px 30px 20px;
  background:
    linear-gradient(rgb(255 255 255 / 2.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2.5%) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgb(255 77 77 / 6%), transparent 36%);
  background-size: 32px 32px, 32px 32px, auto;
}

.agent-signal-field > header {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  color: var(--v43-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.agent-signal-map {
  position: relative;
  min-height: 190px;
}

.agent-signal-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.agent-signal-grid {
  fill: none;
  stroke: rgb(255 255 255 / 3.5%);
  stroke-width: 1;
}

.agent-signal-track,
.agent-signal-live {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.agent-signal-track {
  stroke: #39393e;
  stroke-width: 1;
}

.agent-signal-live {
  stroke: var(--v43-red);
  stroke-width: 1.8;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  opacity: 1;
}

.agent-bridge-ready .agent-signal-live {
  animation: none;
}

.agent-signal-anchor {
  fill: #111112;
  stroke: #6b6b72;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.agent-signal-anchor-core {
  fill: var(--v43-red);
  stroke: rgb(255 77 77 / 24%);
  stroke-width: 8;
}

.agent-signal-source,
.agent-signal-core,
.agent-signal-assets {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: center;
  transform: translate(-50%, -50%);
}

.agent-signal-source {
  top: 50%;
  left: 14.5%;
  gap: 9px;
}

.agent-signal-source .agent-client-strip {
  grid-template-columns: repeat(3, 36px);
  gap: 0;
  padding: 6px;
  border: 1px solid #49494f;
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 4%), transparent 60%),
    #171719;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%), 0 8px 24px rgb(0 0 0 / 16%);
}

.agent-signal-source .agent-client-mark {
  position: relative;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: 1;
}

.agent-copy-launcher-home .agent-client-mark,
.agent-copy-launcher-home .agent-copy-pill:hover .agent-client-mark,
.agent-copy-launcher-home .agent-copy-pill:focus-visible .agent-client-mark,
.agent-copy-launcher-home.copied .agent-client-mark,
.agent-signal-source .agent-client-mark,
.agent-signal-source:hover .agent-client-mark {
  animation: none;
  opacity: 1;
  transform: none;
  transition: none;
}

.agent-signal-source .agent-client-mark + .agent-client-mark::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 0;
  width: 1px;
  background: #3c3c42;
  content: "";
}

.agent-signal-source .agent-client-mark img {
  width: 21px;
  height: 21px;
}

.agent-signal-source > span,
.agent-signal-assets > strong {
  color: var(--v43-secondary);
  font-size: 12px;
  font-weight: 650;
}

.agent-signal-core {
  top: 50%;
  left: 50%;
  width: 108px;
  height: 108px;
  grid-template-rows: auto auto;
  place-content: center;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid rgb(255 77 77 / 58%);
  border-radius: 50%;
  background: #171314;
  box-shadow: inset 0 0 0 10px rgb(255 77 77 / 2.5%);
  isolation: isolate;
  text-align: center;
  animation: v52-mcp-core-breathe 2800ms cubic-bezier(0.65, 0, 0.35, 1) infinite;
  will-change: border-color, box-shadow;
}

.agent-signal-core::before {
  position: absolute;
  z-index: -1;
  inset: -30px;
  border: 1px solid rgb(255 77 77 / 7%);
  border-radius: 50%;
  content: "";
  opacity: 0.34;
  transform: scale(0.92);
  transform-origin: center;
  animation: v52-mcp-halo-breathe 2800ms cubic-bezier(0.65, 0, 0.35, 1) infinite;
  will-change: opacity, transform;
}

.agent-signal-core-ring {
  position: absolute;
  inset: -16px;
  border: 1px solid rgb(255 77 77 / 14%);
  border-radius: 50%;
  opacity: 0.62;
  transform: scale(0.95);
  transform-origin: center;
  animation: v52-mcp-ring-breathe 2800ms cubic-bezier(0.65, 0, 0.35, 1) infinite;
  will-change: opacity, transform;
}

.agent-signal-core .ui-icon {
  width: 24px;
  height: 24px;
  margin: 0;
  background-color: var(--v43-red);
}

.agent-signal-core strong {
  margin: 0;
  color: var(--v43-text);
  font-size: 14px;
  line-height: 1;
}

.agent-signal-assets {
  top: 50%;
  left: 87%;
  width: 132px;
  height: 126px;
  align-content: center;
  gap: 14px;
}

.asset-layer {
  position: absolute;
  top: 16px;
  left: 50%;
  display: grid;
  width: 76px;
  height: 62px;
  place-items: center;
  border: 1px solid #4b4b51;
  border-radius: 8px;
  background: #171719;
  transform: translateX(-50%);
  will-change: auto;
}

.asset-layer-back {
  transform: translate(-50%, -14px) scale(0.86);
  opacity: 0.34;
  animation: none;
}

.asset-layer-middle {
  transform: translate(-50%, -7px) scale(0.93);
  opacity: 0.58;
  animation: none;
}

.asset-layer-front {
  border-color: #66666e;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 4%), transparent 68%),
    #18181a;
  box-shadow: 0 10px 30px rgb(0 0 0 / 18%);
  animation: none;
}

.asset-layer-front .ui-icon {
  width: 31px;
  height: 31px;
  background-color: #e0e0e3;
}

.agent-signal-assets > strong {
  margin-top: 86px;
  color: var(--v43-text);
  font-size: 13px;
}

@keyframes v43-signal-pass {
  0% {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
    stroke-dasharray: none;
  }
}

@keyframes v52-mcp-core-breathe {
  0%,
  18%,
  82%,
  100% {
    border-color: rgb(255 77 77 / 48%);
    box-shadow:
      inset 0 0 0 10px rgb(255 77 77 / 2.5%),
      0 0 0 0 rgb(255 77 77 / 0%),
      0 0 20px rgb(255 77 77 / 6%);
  }
  48% {
    border-color: rgb(255 77 77 / 96%);
    box-shadow:
      inset 0 0 0 10px rgb(255 77 77 / 8%),
      0 0 0 9px rgb(255 77 77 / 7%),
      0 0 42px rgb(255 77 77 / 22%);
  }
}

@keyframes v52-mcp-ring-breathe {
  0%,
  18%,
  82%,
  100% {
    opacity: 0.38;
    transform: scale(0.95);
  }
  48% {
    opacity: 1;
    transform: scale(1.09);
  }
}

@keyframes v52-mcp-halo-breathe {
  0%,
  24%,
  88%,
  100% {
    opacity: 0.16;
    transform: scale(0.92);
  }
  54% {
    opacity: 0.78;
    transform: scale(1.15);
  }
}

/* Unified dashboard command board */
.dashboard-command-board {
  overflow: hidden;
  border: 1px solid var(--v43-border);
  background: var(--v43-surface);
}

.dashboard-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 34px;
  padding: 38px 40px 32px;
  border: 0;
  background:
    radial-gradient(circle at 0 20%, rgb(255 77 77 / 9%), transparent 30%),
    var(--v43-surface);
}

.dashboard-heading-copy {
  display: grid;
  gap: 10px;
}

.dashboard-heading .section-kicker {
  color: var(--v43-red);
}

.dashboard-heading h2 {
  margin: 0;
  color: var(--v43-text);
  font-size: clamp(36px, 3.2vw, 48px);
  font-weight: 590;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.dashboard-heading p {
  max-width: 48em;
  margin: 0;
  color: var(--v43-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.dashboard-heading-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dashboard-data-status {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--v43-muted);
  font-size: 12px;
  white-space: nowrap;
}

.dashboard-data-status i {
  width: 6px;
  height: 6px;
  background: var(--v43-red);
  box-shadow: 0 0 0 4px rgb(255 77 77 / 9%);
}

.dashboard-data-status time {
  color: var(--v43-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-variant-numeric: tabular-nums lining-nums;
}

.dashboard-asset-link {
  min-height: 46px;
  border-color: #49494f;
  background: #151516;
}

.dashboard-asset-link:hover,
.dashboard-asset-link:focus-visible {
  border-color: #707078;
  background: #1b1b1d;
  transform: none;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: none;
  border-top: 1px solid var(--v43-border);
  border-bottom: 1px solid var(--v43-border);
}

.dashboard-metrics article.metric-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 158px;
  flex-direction: column;
  padding: 24px 26px 28px;
  border: 0;
  border-right: 1px solid var(--v43-border);
  background: #111112;
  opacity: 0;
  transform: none;
  transition: opacity 320ms ease, background-color 160ms ease;
}

.dashboard-ready .dashboard-metrics article.metric-card {
  opacity: 1;
}

.dashboard-metrics article.metric-card:nth-child(2) {
  transition-delay: 45ms;
}

.dashboard-metrics article.metric-card:nth-child(3) {
  transition-delay: 90ms;
}

.dashboard-metrics article.metric-card:nth-child(4) {
  border-right: 0;
  transition-delay: 135ms;
}

.dashboard-metrics article.metric-card:hover {
  background: #151516;
  transform: none;
}

.dashboard-metrics article.metric-card::before {
  position: absolute;
  top: -1px;
  left: 26px;
  width: 38px;
  height: 2px;
  background: #56565d;
  content: "";
}

.dashboard-metrics article.metric-card-inventory::before,
.dashboard-metrics article.metric-card-updates::before {
  background: var(--v43-red);
}

.metric-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.metric-label {
  color: var(--v43-secondary);
  font-size: 13px;
  font-weight: 650;
}

.metric-sequence {
  color: #66666e;
  font-family: var(--v43-number-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.dashboard-metrics .metric-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 26px;
}

.dashboard-metrics .metric-value strong {
  color: var(--v43-text);
  font-family: var(--v43-number-font);
  font-size: clamp(40px, 3vw, 52px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.dashboard-metrics .metric-value em {
  color: #8e8e96;
  font-family: var(--v43-number-font);
  font-size: 13px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1;
}

.dashboard-metrics article.metric-card > small {
  margin-top: auto;
  color: var(--v43-muted);
  font-size: 11px;
  line-height: 1.45;
}

.dashboard-metrics .asset-matrix,
.dashboard-metrics .update-progress,
.dashboard-metrics .metric-visual,
.dashboard-metrics article.metric-card > small {
  display: none;
}

.asset-matrix,
.update-progress {
  display: grid;
  grid-template-columns: repeat(11, minmax(3px, 1fr));
  gap: 4px;
  width: 100%;
  margin: 20px 0 16px;
}

.asset-matrix i,
.update-progress i {
  height: 7px;
  background: #3d3d42;
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: left center;
  transition: opacity 240ms ease calc(var(--matrix-index) * 18ms), transform 300ms var(--v43-ease) calc(var(--matrix-index) * 18ms);
}

.asset-matrix i {
  background: linear-gradient(90deg, #8e363a, var(--v43-red));
}

.update-progress i.is-active {
  background: var(--v43-red);
}

.dashboard-ready .asset-matrix i,
.dashboard-ready .update-progress i {
  opacity: 1;
  transform: scaleX(1);
}

.metric-visual {
  display: flex;
  height: 32px;
  align-items: center;
  margin: 17px 0 15px;
}

.metric-visual-views {
  gap: 8px;
}

.metric-visual-views .ui-icon {
  width: 22px;
  height: 22px;
  margin-right: 5px;
  background-color: var(--v43-red);
}

.metric-visual-views i {
  width: 24%;
  height: 1px;
  background: #45454a;
}

.metric-visual-views i:nth-of-type(2) {
  width: 16%;
  background: #67676e;
}

.metric-visual-views i:nth-of-type(3) {
  width: 10%;
}

.metric-visual-calls {
  gap: 0;
}

.metric-visual-calls span {
  width: 8px;
  height: 8px;
  border: 1px solid #7a7a82;
  background: #151516;
}

.metric-visual-calls span:nth-of-type(2) {
  border-color: var(--v43-red);
  background: rgb(255 77 77 / 12%);
}

.metric-visual-calls i {
  width: 34px;
  height: 1px;
  background: #45454a;
}

/* Unified operational analysis: deposition columns + expanded category mix */
.activity-card {
  border: 0;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 1.4%), transparent 28%),
    #0f0f10;
}

.dashboard-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(390px, 0.78fr);
  align-items: stretch;
}

.activity-trend-pane {
  min-width: 0;
  border-right: 1px solid var(--v43-border);
}

.activity-category-pane {
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr);
  background:
    linear-gradient(145deg, rgb(255 77 77 / 3%), transparent 34%),
    #111112;
}

.activity-card-header {
  display: grid;
  box-sizing: border-box;
  width: 100%;
  height: 108px;
  min-height: 108px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  padding: 22px 30px;
}

.activity-card-header > div:first-child {
  display: grid;
  gap: 8px;
}

.activity-card-header h3 {
  margin: 0;
  color: var(--v43-text);
  font-size: 28px;
  font-weight: 590;
  letter-spacing: -0.035em;
}

.category-pane-header {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  height: 108px;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--v43-border);
}

.category-pane-header > div {
  display: grid;
  gap: 8px;
}

.category-pane-header h3 {
  margin: 0;
  color: var(--v43-text);
  font-size: 28px;
  font-weight: 590;
  letter-spacing: -0.035em;
}

.category-pane-header .panel-note {
  flex: 0 0 auto;
  color: var(--v43-muted);
  font-size: 12px;
}

.category-pane-header .panel-note strong {
  margin-right: 5px;
  color: var(--v43-red);
  font-family: var(--v43-number-font);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.activity-card-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--v43-muted);
}

.activity-card-meta small {
  font-size: 11px;
}

.activity-legend {
  color: var(--v43-secondary);
  font-size: 12px;
}

.activity-legend i {
  width: 22px;
  height: 2px;
  background: var(--v43-red);
}

.activity-visual {
  display: block;
  min-width: 0;
  padding: 0 18px 18px;
}

.activity-chart {
  position: relative;
  height: 310px;
  min-height: 0;
}

.activity-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.activity-grid-line,
.activity-baseline {
  vector-effect: non-scaling-stroke;
}

.activity-grid-line {
  stroke: #27272b;
  stroke-dasharray: 3 7;
}

.activity-baseline {
  stroke: #414147;
}

.activity-column {
  fill: url(#activity-column-fill);
  stroke: none;
  stroke-width: 0;
  opacity: 0;
  transform: scaleY(0.04);
  transform-box: fill-box;
  transform-origin: center bottom;
  vector-effect: non-scaling-stroke;
  transition:
    opacity 260ms ease calc(90ms + var(--activity-index) * 55ms),
    transform 520ms var(--v43-ease) calc(90ms + var(--activity-index) * 55ms),
    fill 160ms ease;
}

.dashboard-ready .activity-column {
  opacity: 1;
  transform: scaleY(1);
}

.activity-column.is-zero {
  fill: #343439;
  stroke: none;
}

.activity-value-label,
.activity-label {
  text-anchor: middle;
  font-family: var(--v43-number-font);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.activity-value-label {
  fill: #b4b4ba;
  font-size: 12px;
  font-weight: 600;
}

.activity-label {
  fill: #85858d;
  font-size: 12px;
  font-weight: 500;
}

.activity-period.is-active .activity-column {
  fill: var(--v43-red);
  stroke: none;
}

.activity-period.is-active .activity-value-label,
.activity-period.is-active .activity-label {
  fill: var(--v43-text);
}

.activity-hit-grid {
  inset: 0 var(--activity-plot-right, 3.2%) 12% var(--activity-plot-left, 6.4%);
}

.activity-tooltip {
  --v43-red: #ff4d4d;
  --v43-secondary: #b0b0b6;
  --dashboard-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  min-width: 176px;
  padding: 12px 14px;
  border: 1px solid #664044;
  border-radius: 10px;
  background: rgb(19 19 20 / 94%);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgb(0 0 0 / 36%), 0 0 26px rgb(255 77 77 / 8%);
  transform: translateY(6px);
  transition: opacity 130ms ease, transform 160ms var(--dashboard-ease);
}

.activity-tooltip.is-visible {
  transform: translateY(0);
}

.activity-tooltip strong {
  font-family: var(--v43-number-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.activity-tooltip span {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.activity-tooltip span > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v43-red);
  box-shadow: 0 0 0 5px rgb(255 77 77 / 18%), 0 0 14px rgb(255 77 77 / 36%);
}

.activity-tooltip span > em {
  color: var(--v43-secondary);
  font-style: normal;
}

.activity-tooltip span > b {
  color: var(--v43-red);
  font-family: var(--v43-number-font);
  font-weight: 650;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.activity-category-pane .category-overview {
  display: grid;
  min-width: 0;
  min-height: 0;
}

.activity-category-pane .category-horizontal-chart {
  display: grid;
  height: 100%;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
}

.activity-category-pane .category-bars {
  display: grid;
  height: 100%;
  min-height: 0;
  align-content: stretch;
  grid-auto-rows: minmax(0, 1fr);
  padding: 8px 22px 10px;
}

.activity-category-pane .category-row {
  display: grid;
  grid-template-columns: 26px minmax(102px, auto) minmax(62px, 1fr) 58px;
  min-height: 0;
  height: 100%;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--v43-border);
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: background-color 140ms ease;
}

.activity-category-pane .category-row:last-child {
  border-bottom: 0;
}

.activity-category-pane .category-rank {
  color: #5f5f66;
  font-family: var(--v43-number-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.activity-category-pane .category-row-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.activity-category-pane .category-row-label .ui-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background-color: #8f8f96;
}

.activity-category-pane .category-row-label strong {
  overflow: hidden;
  color: var(--v43-secondary);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-category-pane .category-track {
  position: relative;
  overflow: hidden;
  display: block;
  height: 9px;
  background: #29292e;
}

.activity-category-pane .category-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #d64040, var(--v43-red));
  opacity: 0.96;
  transform: scaleX(0);
  transform-origin: left center;
  transition: filter 140ms ease, opacity 140ms ease, transform var(--dashboard-chart-duration) cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(160ms + var(--bar-index, 0) * var(--dashboard-stagger));
}

.dashboard-ready .activity-category-pane .category-track i {
  transform: scaleX(var(--category-scale, 0));
}

.activity-category-pane .category-stat {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: end;
  gap: 6px;
  text-align: right;
}

.activity-category-pane .category-stat strong {
  color: var(--v43-text);
  font-family: var(--v43-number-font);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.activity-category-pane .category-stat small {
  color: var(--v43-muted);
  font-family: var(--v43-number-font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.activity-category-pane .category-row:hover,
.activity-category-pane .category-row:focus-visible {
  background: #161617;
  box-shadow: none;
  transform: none;
}

.activity-category-pane .category-row:hover .category-track i,
.activity-category-pane .category-row:focus-visible .category-track i {
  filter: brightness(1.12);
  opacity: 1;
  transform: scaleX(var(--category-scale, 0));
}

.activity-category-pane .category-row:focus-visible {
  outline: 1px solid rgb(255 77 77 / 72%);
  outline-offset: -1px;
}

/* Explicitly retire the previous visual system. */
.asset-orbit,
.agent-route-visual,
.agent-route-node,
.agent-route-rules,
.activity-bar {
  display: none !important;
}

@media (max-width: 1180px) {
  .agent-copy-launcher-home {
    grid-template-columns: minmax(390px, 0.9fr) minmax(470px, 1.1fr);
  }

  .agent-connect-copy {
  padding: 32px 30px;
  }

  .agent-signal-field {
    padding-inline: 24px;
  }

  .dashboard-heading {
    padding-inline: 30px;
  }

  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-metrics article.metric-card:nth-child(2) {
    border-right: 0;
  }

  .dashboard-metrics article.metric-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--v43-border);
  }
}

@media (max-width: 900px) {
  .agent-copy-launcher-home {
    grid-template-columns: 1fr;
  }

  .agent-connect-copy {
    padding: 40px 34px 30px;
  }

  .agent-connect-copy::after {
    top: auto;
    right: 34px;
    bottom: 0;
    left: 34px;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, #343438 10% 90%, transparent);
  }

  .agent-signal-field {
    min-height: 330px;
    padding: 24px 34px 28px;
  }

  .dashboard-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dashboard-heading-actions {
    justify-content: space-between;
  }

  .dashboard-insight-grid {
    grid-template-columns: 1fr;
  }

  .activity-trend-pane {
    border-right: 0;
    border-bottom: 1px solid var(--v43-border);
  }

  .activity-card-header {
    padding-inline: 30px;
  }

  .activity-chart {
    height: 300px;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .agent-connect-copy {
    padding: 34px 22px 28px;
  }

  .agent-connect-copy::after {
    right: 22px;
    left: 22px;
  }

  .agent-connect-copy h3 {
    max-width: 9em;
    font-size: clamp(34px, 10.5vw, 44px);
    white-space: normal;
  }

  .agent-connect-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-copy-launcher-home .agent-copy-pill {
    max-width: 100%;
  }

  .agent-copy-launcher-home .agent-copy-label {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
  }

  .agent-signal-field {
    min-height: 310px;
    padding: 22px 18px 24px;
  }

  .agent-signal-field > header {
    padding-right: 0;
  }

  .agent-signal-map {
    min-height: 194px;
  }

  .agent-signal-source {
    left: 15%;
  }

  .agent-signal-source .agent-client-strip {
    grid-template-columns: repeat(3, 30px);
    padding: 5px;
  }

  .agent-signal-source .agent-client-mark {
    width: 30px;
    height: 32px;
  }

  .agent-signal-source .agent-client-mark img {
    width: 18px;
    height: 18px;
  }

  .agent-signal-core {
    width: 90px;
    height: 90px;
  }

  .agent-signal-assets {
    left: 86%;
    width: 110px;
    height: 112px;
    transform: translate(-54%, -50%);
  }

  .asset-layer {
    width: 66px;
    height: 54px;
  }

  .asset-layer-front .ui-icon {
    width: 27px;
    height: 27px;
  }

  .agent-signal-assets > strong {
    margin-top: 76px;
  }

  .dashboard-heading {
    gap: 24px;
    padding: 32px 22px 26px;
  }

  .dashboard-heading h2 {
    font-size: 36px;
  }

  .dashboard-heading-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-metrics article.metric-card,
  .dashboard-metrics article.metric-card:nth-child(2),
  .dashboard-metrics article.metric-card:nth-child(4) {
    min-height: 148px;
    border-right: 0;
    border-bottom: 1px solid var(--v43-border);
  }

  .dashboard-metrics .metric-value {
    margin-top: 24px;
  }

  .dashboard-metrics article.metric-card:last-child {
    border-bottom: 0;
  }

  .asset-matrix,
  .update-progress {
    grid-template-columns: repeat(11, minmax(4px, 1fr));
  }

  .activity-card-header {
    height: auto;
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    padding: 26px 22px 8px;
  }

  .category-pane-header {
    height: auto;
    min-height: auto;
    align-items: end;
    padding: 26px 22px 20px;
  }

  .activity-card-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .activity-visual {
    padding-inline: 5px;
  }

  .activity-chart {
    height: 286px;
    min-height: 0;
  }

  .activity-value-label {
    font-size: 12px;
  }

  .activity-label {
    font-size: 11px;
  }

  .activity-category-pane .category-bars {
    padding-inline: 16px;
  }

  .activity-category-pane .category-row {
    grid-template-columns: 24px minmax(92px, auto) minmax(42px, 1fr) 54px;
    min-height: 68px;
    gap: 10px;
  }

}

@media (max-width: 420px) {
  .agent-copy-launcher-home .agent-copy-pill {
    grid-template-columns: auto minmax(0, 1fr) 34px;
    width: 100%;
    padding-left: 12px;
  }

  .agent-copy-launcher-home .agent-client-strip {
    grid-template-columns: repeat(3, 20px);
  }

  .agent-copy-launcher-home .agent-client-mark {
    width: 20px;
  }

  .agent-copy-launcher-home .agent-copy-status {
    width: 34px;
  }

  .agent-signal-source .agent-client-strip {
    grid-template-columns: repeat(3, 25px);
    padding: 4px;
  }

  .agent-signal-source .agent-client-mark {
    width: 25px;
    height: 28px;
  }

  .agent-signal-source .agent-client-mark img {
    width: 16px;
    height: 16px;
  }

  .agent-signal-core {
    width: 78px;
    height: 78px;
  }

  .agent-signal-core .ui-icon {
    width: 20px;
    height: 20px;
  }

  .agent-signal-source > span,
  .agent-signal-assets > strong {
    font-size: 9px;
  }

  .asset-layer {
    width: 60px;
    height: 49px;
  }

  .dashboard-heading p {
    font-size: 14px;
  }

  .activity-category-pane .category-bars {
    padding: 10px 12px 12px;
  }

  .activity-category-pane .category-row {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    min-height: 66px;
    gap: 9px 7px;
  }

  .activity-category-pane .category-rank {
    grid-column: 1;
    grid-row: 1;
  }

  .activity-category-pane .category-row-label {
    grid-column: 2;
    grid-row: 1;
  }

  .activity-category-pane .category-row-label {
    gap: 7px;
  }

  .activity-category-pane .category-row-label .ui-icon {
    width: 16px;
    height: 16px;
  }

  .activity-category-pane .category-row-label strong {
    font-size: 12px;
  }

  .activity-category-pane .category-track {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 8px;
  }

  .activity-category-pane .category-stat {
    grid-column: 3;
    grid-row: 1;
    gap: 4px;
  }

  .activity-category-pane .category-stat strong {
    font-size: 17px;
  }

  .activity-category-pane .category-stat small {
    font-size: 9px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .agent-copy-launcher-home,
  .dashboard-metrics article.metric-card,
  .asset-matrix i,
  .update-progress i,
  .activity-column {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .agent-bridge-ready .agent-signal-live {
    animation: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }

  .asset-layer-back,
  .asset-layer-middle,
  .asset-layer-front,
  .agent-signal-core,
  .agent-signal-core::before,
  .agent-signal-core-ring {
    animation: none;
  }

  .agent-signal-core {
    border-color: rgb(255 77 77 / 58%);
    box-shadow: inset 0 0 0 10px rgb(255 77 77 / 2.5%);
  }

  .agent-signal-core::before {
    opacity: 0.18;
    transform: scale(0.94);
  }

  .agent-signal-core-ring {
    opacity: 0.42;
    transform: scale(0.97);
  }

  .asset-layer-back {
    opacity: 0.34;
    transform: translate(-50%, -14px) scale(0.86);
  }

  .asset-layer-middle {
    opacity: 0.58;
    transform: translate(-50%, -7px) scale(0.93);
  }

  .asset-layer-front {
    border-color: #66666e;
    transform: translateX(-50%);
  }
}
