/* ============================================================
   Axonometric layered scene — parallel projection, CSS 3D only.
   Technical-drawing register (Carbon-adjacent). No perspective.
   ============================================================ */

.axo {
  /* Elevation locked at 45°. Azimuth is 45° or −45°. */
  --axo-elevation: 45deg;
  --axo-azimuth: 45deg;
  --axo-depth: 64px;
  /* Dashboard chrome height — float deck starts below this. */
  --axo-chrome-height: 37px;
  /* Gap between chrome header and floating KPI row. */
  --axo-header-gap: 32px;
  /* Base canvas outline — heavier than tile borders (1px), full perimeter. */
  --axo-base-border: 2px;

  /* Carbon motion */
  --axo-ease-standard: cubic-bezier(0.2, 0, 0.38, 0.9);
  --axo-ease-entrance: cubic-bezier(0, 0, 0.38, 0.9);
  --axo-ease-exit: cubic-bezier(0.2, 0, 1, 0.9);
  --axo-duration: 220ms;

  display: block;
}

/* ---- Stage / scene ------------------------------------------ */
.axo__stage {
  /*
   * BLUR TRAP — Keep this chain free of opacity, filter,
   * backdrop-filter, and overflow: hidden. Padding absorbs the
   * rotated bounds instead of clipping. See axonometric-scene.njk.
   * Tiles animate outside the scene box — never clip here.
   */
  position: relative;
  perspective: none;
  overflow: visible;
  padding: clamp(48px, 8vw, 96px) clamp(32px, 6vw, 80px);
  min-height: clamp(360px, 42vw, 520px);
  display: grid;
  place-items: center;
  background:
    linear-gradient(to right, rgba(10, 12, 16, 0.04) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(to bottom, rgba(10, 12, 16, 0.04) 1px, transparent 1px) 0 0 / 24px 24px,
    #f4f4f4;
  border: 1px solid var(--sw-rule-strong, #0a0c10);
}

/* Stage tools — settings, outside the 3D scene tree. */
.axo__tools {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.axo__settings-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.axo__tool {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid var(--sw-ink, #0a0c10);
  border-radius: 0;
  background: #fff;
  color: var(--sw-ink, #0a0c10);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.axo__tool:hover {
  background: var(--sw-blue-100, #eaf1fd);
  color: var(--sw-blue, #1f5bc2);
}

.axo__tool:focus-visible {
  outline: 2px solid var(--sw-blue, #1f5bc2);
  outline-offset: 2px;
}

.axo__tool svg {
  display: block;
}

.axo__settings[aria-expanded="true"] {
  background: var(--sw-ink, #0a0c10);
  color: #fff;
}

.axo__settings[aria-expanded="true"]:hover {
  background: var(--sw-ink, #0a0c10);
  color: #fff;
}

.axo__scene {
  position: relative;
  width: min(100%, 480px);
  height: 320px;
  transform-style: preserve-3d;
  perspective: none;
  overflow: visible;
  /* Parallel projection: rotateX then rotateZ. No perspective() anywhere. */
  transform: rotateX(var(--axo-elevation)) rotateZ(var(--axo-azimuth));
  /* Nudge so the isometric footprint sits in the stage, not high-left. */
  margin-top: 40px;
  margin-left: 32px;
}

/* Fit mode — design-size scene, absolutely centered so 480×320 cannot
   expand the stage; --axo-fit-scale shrinks the painted footprint. */
.axo--fit .axo__stage {
  position: relative;
  width: 100%;
  min-width: 0;
}
.axo--fit .axo__scene {
  position: absolute;
  inset: 0;
  width: var(--axo-scene-width, 480px);
  height: var(--axo-scene-height, 320px);
  margin: auto;
  /* translate is screen-space (applied last) so fit can pin painted edges. */
  transform:
    translate(var(--axo-fit-tx, 0px), var(--axo-fit-ty, 0px))
    rotateX(var(--axo-elevation))
    rotateZ(var(--axo-azimuth))
    scale(var(--axo-fit-scale, 1));
  transform-origin: center center;
}

.axo__layer {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  /*
   * Depth is a vertical measure in screen space.
   *
   * Pure translateZ under rotateX(E)·rotateZ(A) walks along the face normal,
   * which at 45°/45° drifts hard left on screen. Instead, choose a local
   * (tx, ty, tz) so after the scene rotation the net screen delta is
   * (0, -z) — straight up, no horizontal slide — while tz still drives
   * paint order and shadow scaling.
   *
   *   tx = z · sin(A) / cos(E) · (sin(E) − 1)
   *   ty = z · cos(A) / cos(E) · (sin(E) − 1)
   *   tz = z
   */
  --axo-layer-z: calc(var(--axo-depth) * var(--axo-layer-index, 0));
  --axo-depth-lift: calc(
    var(--axo-layer-z) * (sin(var(--axo-elevation)) - 1) / cos(var(--axo-elevation))
  );
  transform: translate3d(
    calc(var(--axo-depth-lift) * sin(var(--axo-azimuth))),
    calc(var(--axo-depth-lift) * cos(var(--axo-azimuth))),
    var(--axo-layer-z)
  );
}

/* Base layer stays on the canvas plane; tile motion owns the entrance. */
.axo__layer[data-axo-layer-index="0"] {
  --axo-layer-z: 0px;
}

.axo__panel {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 1px solid #0a0c10;
  border-radius: 2px;
  overflow: visible;
  /* Depth cue: contact + diffusion, both scaled by layer Z. */
  --axo-z: calc(var(--axo-depth) * var(--axo-layer-index, 0));
  box-shadow:
    calc(var(--axo-z) * 0.1) calc(var(--axo-z) * 0.14) calc(var(--axo-z) * 0.12)
      rgba(10, 12, 16, 0.32),
    calc(var(--axo-z) * 0.28) calc(var(--axo-z) * 0.42) calc(var(--axo-z) * 0.6)
      rgba(10, 12, 16, 0.14);
}

/* Directional wash — same orientation on every layer (~5% opacity). */
.axo__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.055) 0%,
    rgba(255, 255, 255, 0) 42%,
    rgba(10, 12, 16, 0.05) 100%
  );
}

/* Layer 0 panel is a transparent host — the dashboard UI owns the outline
   so the float deck cannot paint over the left/right/bottom edges. */
.axo__layer[data-axo-layer-index="0"] .axo__panel {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 2px;
}

.axo__layer[data-axo-layer-index="0"] .axo__panel::after {
  content: none;
}

/* ---- Floating tile deck ------------------------------------- */
.axo__float {
  position: absolute;
  /* Inset by the base outline so side/bottom strokes stay visible. */
  left: var(--axo-base-border, 2px);
  right: var(--axo-base-border, 2px);
  top: calc(var(--axo-base-border, 2px) + var(--axo-chrome-height));
  bottom: var(--axo-base-border, 2px);
  transform-style: preserve-3d;
  overflow: visible;
  pointer-events: none;
  /* Sit above the base body in DOM/3D order without flattening. */
  z-index: 1;
}

.axo-ui--float {
  height: 100%;
  border: 0;
  /* Override .axo-ui clipping / stacking — those flatten preserve-3d
     and trap animated tiles inside the dashboard footprint. */
  overflow: visible;
  z-index: auto;
  pointer-events: none;
  transform-style: preserve-3d;
}

.axo-ui--float .axo-ui__body,
.axo-ui--float .axo-kpi,
.axo-ui--float .axo-charts {
  overflow: visible;
  transform-style: preserve-3d;
}

.axo-ui--float .axo-ui__body--dashboard {
  /* Float is already below the chrome; body fills the remaining deck. */
  height: 100%;
}

.axo-tile {
  /* Local orbit offsets + tumble: Y/Z on the ellipse, rx matches orbit angle. */
  --axo-tile-z: 48px;
  --axo-tile-y: 0px;
  --axo-tile-x: 0px;
  --axo-tile-rx: 0deg;
  --axo-tile-rz: 0deg;
  --axo-tile-duration: 220ms;
  --axo-tile-z-abs: abs(var(--axo-tile-z));
  --axo-depth-lift: calc(
    var(--axo-tile-z) * (sin(var(--axo-elevation)) - 1) / cos(var(--axo-elevation))
  );
  position: relative;
  transform-style: preserve-3d;
  pointer-events: auto;
  /* Surface lives on faces so the back can show base color when tumbled. */
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: translate3d(
    calc(var(--axo-depth-lift) * sin(var(--axo-azimuth)) + var(--axo-tile-x)),
    calc(var(--axo-depth-lift) * cos(var(--axo-azimuth)) + var(--axo-tile-y)),
    var(--axo-tile-z)
  ) rotateX(var(--axo-tile-rx)) rotateZ(var(--axo-tile-rz));
  transition: transform var(--axo-tile-duration) var(--axo-ease-entrance);
}

.axo-tile.is-animating {
  transition: transform var(--axo-tile-duration) var(--axo-ease-entrance);
}

/* Orbit is rAF-driven — kill CSS transitions so they don't fight the loop. */
.axo.is-orbiting .axo-tile,
.axo-tile.is-orbiting {
  transition: none;
}

.axo-tile.is-behind {
  pointer-events: none;
}

/* Front face sizes the tile; back face is absolute and spins with rotateX. */
.axo-tile__face {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border-radius: inherit;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.axo-tile__face--front {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  background: #ffffff;
  border: 1px solid #0a0c10;
  /* Depth cue on the readable face. */
  box-shadow:
    calc(var(--axo-tile-z-abs) * 0.1) calc(var(--axo-tile-z-abs) * 0.14) calc(var(--axo-tile-z-abs) * 0.12)
      rgba(10, 12, 16, 0.32),
    calc(var(--axo-tile-z-abs) * 0.28) calc(var(--axo-tile-z-abs) * 0.42) calc(var(--axo-tile-z-abs) * 0.6)
      rgba(10, 12, 16, 0.14);
}

.axo-tile__face--front::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.055) 0%,
    rgba(255, 255, 255, 0) 42%,
    rgba(10, 12, 16, 0.05) 100%
  );
}

.axo-tile__face--back {
  position: absolute;
  inset: 0;
  /* Match the dashboard body base so the reverse side reads as the same plane. */
  background: #fafafa;
  border: 1px solid #0a0c10;
  transform: rotateX(180deg);
}

/* ---- Product UI chrome (slot content helpers) --------------- */
.axo-ui {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "IBM Plex Sans", "Inter", system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  color: #161616;
  background: #ffffff;
  border-radius: inherit;
}

/* Must follow .axo-ui — otherwise the white fill paints over the base outline. */
.axo-ui.axo-ui--float,
.axo-ui.axo-ui--float .axo-ui__body--dashboard {
  background: transparent;
}

.axo-ui__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--axo-chrome-height, 37px);
  padding: 8px 10px;
  border-bottom: 1px solid #e0e0e0;
  background: #f4f4f4;
  flex: none;
}

.axo-ui__mark {
  width: 8px;
  height: 8px;
  background: var(--sw-blue, #1f5bc2);
  flex: none;
}

.axo-ui__title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #161616;
}

.axo-ui__meta {
  margin-left: auto;
  font-size: 10px;
  color: #6f6f6f;
  font-variant-numeric: tabular-nums;
}

.axo-ui__body {
  flex: 1;
  padding: 10px;
  min-height: 0;
}

/* ---- Dashboard canvas (layer 0) ----------------------------- */
/* Base may clip its own chrome; never put overflow/z-index on the float deck. */
.axo-ui--dashboard {
  background: #fafafa;
  overflow: hidden;
  z-index: 0;
  /* Full perimeter outline — header + white body as one frame. */
  border: var(--axo-base-border, 2px) solid #0a0c10;
  border-radius: 2px;
}

.axo-ui__body--dashboard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  padding-top: var(--axo-header-gap, 20px);
  background: #fafafa;
}

.axo-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: none;
}

.axo-kpi__card {
  border-radius: 2px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
}

.axo-kpi__card .axo-tile__face--front {
  padding: 8px 10px;
  gap: 2px;
  min-height: 72px;
}

/* Solid recessed pads on the base — alignment guides, not cutouts. */
.axo-kpi__slot,
.axo-chart__slot {
  border: 1px solid #e0e0e0;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(10, 12, 16, 0.04);
}

.axo-kpi__slot {
  min-height: 72px;
}

.axo-kpi__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f6f6f;
}

.axo-kpi__value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #161616;
  font-variant-numeric: tabular-nums;
}

.axo-kpi__hint {
  margin-top: auto;
  font-size: 9px;
  color: #8d8d8d;
}

.axo-kpi__micro {
  position: absolute;
  right: 9px;
  bottom: 8px;
}

.axo-kpi__micro--delta {
  font-size: 8px;
  font-weight: 600;
  color: var(--sw-blue, #1f5bc2);
}

.axo-kpi__micro--progress {
  width: 31px;
  height: 4px;
  overflow: hidden;
  background: var(--sw-blue-tint-15, #dde7f8);
  border-radius: 3px;
}

.axo-kpi__micro--progress i {
  display: block;
  width: 76%;
  height: 100%;
  background: var(--sw-blue, #1f5bc2);
}

.axo-kpi__micro--status {
  display: flex;
  gap: 3px;
}

.axo-kpi__micro--status i {
  width: 4px;
  height: 4px;
  background: var(--sw-blue, #1f5bc2);
  border-radius: 50%;
}

.axo-kpi__micro--status i:last-child {
  background: #c6c6c6;
}

/* ---- Charts row --------------------------------------------- */
.axo-charts {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.axo-charts--slots {
  flex: 1;
}

.axo-chart__slot {
  min-height: 0;
  height: 100%;
}

.axo-chart {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  border-radius: 2px;
}

.axo-chart .axo-tile__face--front {
  padding: 8px 10px 10px;
  min-height: 0;
  height: 100%;
}

.axo-ui--float .axo-charts {
  min-height: 120px;
}

/* Additional dashboard decks share the original row footprints without
   taking up layout space. */
.axo-orbit-copy {
  position: absolute;
  left: 12px;
  right: 12px;
  margin: 0;
}

.axo-orbit-copy--kpi {
  top: var(--axo-header-gap, 20px);
}

.axo-orbit-copy--charts {
  top: calc(var(--axo-header-gap, 20px) + 82px);
  bottom: 12px;
}

.axo-chart__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex: none;
}

.axo-chart__title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #161616;
}

.axo-chart__meta {
  font-size: 9px;
  color: #6f6f6f;
  font-variant-numeric: tabular-nums;
}

.axo-chart__plot {
  flex: 1;
  min-height: 0;
  border-top: 1px solid #e0e0e0;
  padding-top: 8px;
}

.axo-chart__plot--bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.axo-chart__plot--bars span {
  flex: 1;
  height: var(--h, 50%);
  background: var(--sw-blue, #1f5bc2);
  border-radius: 1px 1px 0 0;
}

.axo-chart__plot--bars span:nth-child(odd) {
  background: var(--sw-blue-bright-series, #4589ff);
}

/* ---- Reporting visual variety ------------------------------ */
.axo-report {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  border-top: 1px solid #e0e0e0;
  padding-top: 7px;
  box-sizing: border-box;
}

svg.axo-report {
  overflow: visible;
}

.axo-report__grid {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 1;
}

.axo-report__line {
  fill: none;
  stroke: var(--sw-blue, #1f5bc2);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.axo-report__fill {
  fill: color-mix(in srgb, var(--sw-blue-bright-series, #4589ff) 22%, transparent);
}

.axo-report--waterfall {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  position: relative;
}

.axo-report--waterfall::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  border-top: 1px solid #c6c6c6;
}

.axo-report--waterfall i {
  position: relative;
  z-index: 1;
  flex: 1;
  margin-top: var(--y);
  height: var(--h);
  background: var(--sw-blue, #1f5bc2);
}

.axo-report--waterfall i.is-down {
  background: var(--sw-blue-tint-50, #8daee6);
}

.axo-report--waterfall i.is-total {
  background: #0a0c10;
}

.axo-gauge__track,
.axo-gauge__value {
  fill: none;
  stroke-width: 13;
}

.axo-gauge__track { stroke: var(--sw-blue-tint-15, #dde7f8); }
.axo-gauge__value { stroke: var(--sw-blue, #1f5bc2); }

.axo-report--gauge text {
  font: 600 18px "IBM Plex Sans", sans-serif;
  fill: #161616;
}

.axo-report--heatmap {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 1fr;
  gap: 3px;
}

.axo-report--heatmap i {
  min-height: 8px;
  background: var(--sw-blue-tint-15, #dde7f8);
  border-radius: 1px;
}

.axo-report--heatmap i[data-level="2"] { background: var(--sw-blue-tint-40, #a9c5f4); }
.axo-report--heatmap i[data-level="3"] { background: var(--sw-blue-tint-70, #5d91e8); }
.axo-report--heatmap i[data-level="4"] { background: var(--sw-blue, #1f5bc2); }

.axo-report--scatter circle {
  fill: color-mix(in srgb, var(--sw-blue, #1f5bc2) 72%, transparent);
  stroke: #fff;
  stroke-width: 1;
}

.axo-report--funnel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  gap: 3px;
}

.axo-report--funnel i {
  width: var(--w);
  flex: 1;
  background: var(--sw-blue, #1f5bc2);
}

.axo-report--funnel i:nth-child(even) {
  background: var(--sw-blue-tint-70, #5d91e8);
}

.axo-radar__grid {
  fill: none;
  stroke: #c6c6c6;
  stroke-width: 1;
}

.axo-radar__value {
  fill: color-mix(in srgb, var(--sw-blue-bright-series, #4589ff) 30%, transparent);
  stroke: var(--sw-blue, #1f5bc2);
  stroke-width: 2;
}

.axo-report--stacked {
  display: flex;
  align-items: flex-end;
  gap: 5px;
}

.axo-report--stacked > i {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  height: var(--h);
  background: var(--sw-blue-tint-15, #dde7f8);
}

.axo-report--stacked b,
.axo-report--stacked em {
  display: block;
  height: 38%;
  background: var(--sw-blue, #1f5bc2);
}

.axo-report--stacked em {
  height: 24%;
  background: var(--sw-blue-tint-70, #5d91e8);
}

.axo-report--range {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.axo-report--range i {
  position: relative;
  height: 1px;
  margin-left: var(--a);
  margin-right: calc(100% - var(--b));
  background: #6f6f6f;
}

.axo-report--range i::before,
.axo-report--range i::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: #6f6f6f;
}

.axo-report--range i::before { left: 0; }
.axo-report--range i::after { right: 0; }

.axo-flow__links {
  fill: none;
  stroke: color-mix(in srgb, var(--sw-blue, #1f5bc2) 45%, transparent);
  stroke-width: 7;
}

.axo-flow__nodes {
  fill: var(--sw-blue, #1f5bc2);
}

.axo-chart__plot--donut {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 8px;
  align-items: center;
}

.axo-donut {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 1;
}

.axo-donut__seg {
  fill: none;
  stroke-width: 12;
  stroke-linecap: butt;
}

.axo-donut__seg--enrolled { stroke: var(--sw-blue, #1f5bc2); }
.axo-donut__seg--third { stroke: var(--sw-blue-bright-series, #4589ff); }
.axo-donut__seg--exempt { stroke: #c6c6c6; }

.axo-donut__center-value {
  font-family: "IBM Plex Sans", "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  fill: #161616;
  font-variant-numeric: tabular-nums;
}

.axo-donut__center-label {
  font-family: "IBM Plex Sans", "Inter", system-ui, sans-serif;
  font-size: 6.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: #6f6f6f;
}

.axo-donut__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 9px;
  line-height: 1.2;
  color: #161616;
}

.axo-donut__legend li {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.axo-donut__swatch {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 1px;
}

.axo-donut__swatch--enrolled { background: var(--sw-blue, #1f5bc2); }
.axo-donut__swatch--third { background: var(--sw-blue-bright-series, #4589ff); }
.axo-donut__swatch--exempt { background: #c6c6c6; }


.axo-ui__table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.axo-ui__table th,
.axo-ui__table td {
  padding: 5px 6px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  white-space: nowrap;
}

.axo-ui__table th {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f6f6f;
  background: #fafafa;
}

.axo-ui__table td {
  font-size: 11px;
  color: #161616;
}

.axo-ui__status {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid currentColor;
  border-radius: 1px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.axo-ui__status--ok {
  color: #0e6027;
  background: #defbe6;
}

.axo-ui__status--warn {
  color: #8e6a00;
  background: #fcf4d6;
}

.axo-ui__status--err {
  color: #a2191f;
  background: #fff1f1;
}

.axo-ui__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.axo-ui__field {
  border: 1px solid #e0e0e0;
  padding: 6px 8px;
  background: #fafafa;
}

.axo-ui__field-label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f6f6f;
  margin-bottom: 2px;
}

.axo-ui__field-value {
  font-size: 12px;
  font-weight: 500;
  color: #161616;
}

.axo-ui__checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.axo-ui__checks li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
}

.axo-ui__check {
  width: 10px;
  height: 10px;
  border: 1px solid #161616;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 8px;
  line-height: 1;
}

.axo-ui__check--on {
  background: var(--sw-blue, #1f5bc2);
  border-color: var(--sw-blue, #1f5bc2);
  color: #fff;
}

.axo-ui__check--off {
  background: #fff;
  color: transparent;
}

.axo-ui__banner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  justify-content: space-between;
}

.axo-ui__banner-kicker {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sw-blue, #1f5bc2);
}

.axo-ui__banner-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #161616;
}

.axo-ui__banner-copy {
  margin: 0;
  font-size: 11px;
  color: #525252;
  line-height: 1.4;
}

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

.axo-ui__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border: 1px solid #161616;
  border-radius: 1px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #161616;
  color: #fff;
}

.axo-ui__btn--ghost {
  background: #fff;
  color: #161616;
}

/* ---- Tuning panel (popover under settings) ------------------ */
.axo__tune {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 7;
  box-sizing: border-box;
  width: min(280px, calc(100vw - 32px));
  border: 1px solid var(--sw-rule-strong, #0a0c10);
  background: var(--sw-paper, #fbfbf9);
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--sw-text, "Inter", system-ui, sans-serif);
  max-height: min(70vh, 420px);
  overflow: auto;
  box-shadow: 0 8px 24px rgba(10, 12, 16, 0.12);
}

.axo__tune[hidden] {
  display: none !important;
}

.axo__tune-form {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.axo__tune-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 16px 16px;
}

.axo__tune-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--sw-ink, #0a0c10);
  background: var(--sw-paper, #fbfbf9);
}

.axo__tune-switch-opt {
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sw-ink-70, #3a3d44);
  cursor: pointer;
}

.axo__tune-switch-opt + .axo__tune-switch-opt {
  border-left: 1px solid var(--sw-ink, #0a0c10);
}

.axo__tune-switch-opt.is-active {
  background: var(--sw-ink, #0a0c10);
  color: #fff;
}

.axo__tune-switch-opt:focus-visible {
  outline: 2px solid var(--sw-blue, #1f5bc2);
  outline-offset: 2px;
}

.axo__tune-orbit,
.axo__tune-tiles {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.axo__tune-tile {
  border-top: 1px solid var(--sw-rule, #e1e1dc);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.axo__tune-tile-name {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sw-ink, #0a0c10);
}

.axo__tune-tile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.axo__tune-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.axo__tune-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sw-ink, #0a0c10);
}

.axo__tune-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sw-blue, #1f5bc2);
}

.axo__tune-range {
  width: 100%;
  accent-color: var(--sw-blue, #1f5bc2);
  cursor: pointer;
}

.axo__tune-select {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--sw-ink, #0a0c10);
  border-radius: 0;
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--sw-ink, #0a0c10);
  cursor: pointer;
  appearance: auto;
}

.axo__tune-select:focus-visible {
  outline: 2px solid var(--sw-blue, #1f5bc2);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .axo {
    --axo-duration: 0ms;
  }

  .axo-tile {
    transition: none;
    --axo-tile-rx: 0deg;
  }
}

@media (max-width: 860px) {
  .axo__stage {
    min-height: 320px;
    padding: 56px 28px;
  }

  .axo__scene {
    width: min(100%, 360px);
    height: 260px;
  }

  .axo-kpi__value {
    font-size: 18px;
  }

  .axo-kpi__hint {
    display: none;
  }
}
