/* GENERATED FILE - do not edit. Source: src/styles/. Rebuild: npm run build */
/* /live - the public agent dashboard.
   Layout and chart language follow the prototype in the brand kit; every colour
   below resolves to a token already defined in src/styles/site.css. The only
   new tokens are the chart series and the sequential ramp, which the rest of
   the site has no use for. */

:root {
  /* Chart series - brand hues, ordered so every adjacent pair clears the
     colour-vision-deficiency and normal-vision contrast gates on white.
     Green here means "one model" and never "good": status uses red plus an
     icon, so the chart and the status language can never be confused. */
  --c1: #0061ff;
  --c2: #ea580c;
  --c3: #7c3aed;
  --c4: #16a34a;
  --c5: #db2777;
  --red: #dc2626;
  --red-soft: #fee2e2;

  /* Sequential ramp for the heatmap - one hue, light to dark. */
  --q0: #f2f6ff;
  --q1: #d9e5ff;
  --q2: #b5ccff;
  --q3: #87acff;
  --q4: #4f86ff;
  --q5: #0061ff;
  --q6: #004fd6;
}

.live .container { max-width: 1180px; }
.live #live-headline { font-size: clamp(40px, 4.2vw, 58px); }

/* ───────────────────────────────────────────────────────── staleness banner */
.stale {
  background: var(--yellow-soft);
  border: 1px solid #f6dfa0;
  border-radius: var(--radius);
  padding: 13px 17px;
  font-size: 13.5px;
  color: #6b5310;
  margin-bottom: 22px;
  line-height: 1.55;
}
.stale b { color: #4a3908; }
.stale[hidden] { display: none; }

/* ───────────────────────────────────────────── measured / stated explainers */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag.m { background: var(--blue-soft); color: var(--blue-2); }
.tag.m i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.tag.s { background: var(--white); color: var(--muted); border: 1px solid var(--border-strong); }
.tag.s i { width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--muted); }
.tag[data-explainer] { cursor: help; }
.tag[data-explainer]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.tag-tooltip {
  position: fixed;
  z-index: 1000;
  width: min(300px, calc(100vw - 32px));
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-md);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  pointer-events: none;
}
.tag-tooltip::after {
  content: '';
  position: absolute;
  left: var(--arrow-left);
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: var(--ink);
  transform: translateX(-50%) rotate(45deg);
}
.tag-tooltip.below::after { top: -4px; bottom: auto; }
.tag-tooltip[hidden] { display: none; }

/* Every dollar figure is an API list-price equivalent, not a second bill.
   The same keyboard-accessible explanation sits beside each cost context. */
.cost-help {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin: 0 0 0 3px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--white);
  color: var(--muted);
  font: 700 10px/1 inherit;
  vertical-align: 1px;
  cursor: help;
  text-transform: none;
  letter-spacing: 0;
  z-index: 12;
}
.cost-help:hover,
.cost-help:focus { border-color: var(--blue); color: var(--blue-2); outline: none; }
.cost-help::before,
.cost-help::after {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s, transform .12s;
}
.cost-help::before {
  content: '';
  left: 50%;
  bottom: calc(100% + 3px);
  width: 8px;
  height: 8px;
  background: var(--ink);
  transform: translate(-50%, 3px) rotate(45deg);
}
.cost-help::after {
  content: attr(data-tip);
  left: 50%;
  bottom: calc(100% + 7px);
  width: 272px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-md);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  transform: translate(-50%, 4px);
}
.cost-help.tip-right::after { left: auto; right: -8px; transform: translateY(4px); }
.cost-help.tip-right::before { left: auto; right: 3px; transform: translateY(3px) rotate(45deg); }
.cost-help:hover::before,
.cost-help:hover::after,
.cost-help:focus::before,
.cost-help:focus::after { opacity: 1; }
.cost-help:hover::before,
.cost-help:focus::before { transform: translate(-50%, 0) rotate(45deg); }
.cost-help:hover::after,
.cost-help:focus::after { transform: translate(-50%, 0); }
.cost-help.tip-right:hover::after,
.cost-help.tip-right:focus::after { transform: translateY(0); }
.cost-help.tip-right:hover::before,
.cost-help.tip-right:focus::before { transform: translateY(0) rotate(45deg); }

/* ───────────────────────────────────────────────────────────────── layers */
.layer { margin-bottom: 64px; }
.layer-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.layer-num {
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--white);
}
.layer-head h2 { font-size: 23px; font-weight: 800; margin: 0; letter-spacing: -.03em; }
.layer-sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; max-width: 74ch; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.cardhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.card h3 { font-size: 16px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.02em; }
.card .sub { color: var(--muted); font-size: 13px; margin: 0; }
.hgroup { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.grid1 { margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; margin-bottom: 14px; }

/* ──────────────────────────────────────────────────────── team + filtering */
/* The filter row is what lets this scale: fifteen agents is fifteen cards,
   which is a wall - but three chips and a busy-only toggle is a control. */
.team-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.mobile-team-controls { display: none; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }

/* Segmented picker for the window the card numbers cover. */
.period-picker {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
}
.period-btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 7px 13px;
  cursor: pointer;
  white-space: nowrap;
}
.period-btn + .period-btn { border-left: 1px solid var(--border); }
.period-btn:hover { color: var(--ink); }
.period-btn[aria-pressed="true"] { background: var(--blue); color: var(--white); }

.period-note {
  color: var(--muted);
  font-size: 12.5px;
  margin: 12px 0 0;
}
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1px solid var(--border-strong);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .13s, border-color .13s, color .13s;
}
.chip-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.chip-btn .n {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip-btn[aria-pressed="true"] .n { color: rgba(255, 255, 255, .62); }
.chip-btn.busy .live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  animation: live-pulse 2.4s infinite;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px;
}
.agent-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 19px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: transform .13s, box-shadow .13s;
}
.agent-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.agent-card.is-working { border-color: #bfe0c8; }
.agent-top { display: flex; align-items: flex-start; gap: 12px; }
.agent-avatar {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  display: grid; place-items: center; font-size: 20px;
  background: var(--bg-warm); border: 1px solid var(--border-strong);
}
.agent-id { flex: 1; min-width: 0; }
.agent-name {
  display: block; font-size: 16px; font-weight: 700; letter-spacing: -.02em;
  line-height: 1.25; overflow-wrap: anywhere;
}
/* Roles are written by the user and can be any length, so they wrap to two
   lines and clamp - truncating to one line lost the useful half of most of
   them ("Building the website" became "Building t…"). */
.agent-role {
  color: var(--muted); font-size: 12.5px; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
.agent-group {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  background: var(--bg-warm); border: 1px solid var(--border);
  border-radius: 999px; padding: 2px 8px;
}
.status-dot {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: -3px -4px 0 0;
  padding: 0;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: help;
}
.status-dot i { width: 9px; height: 9px; border-radius: 50%; }
.status-dot.working i { background: var(--green); animation: live-pulse 2.4s infinite; }
.status-dot.idle i { background: var(--yellow); }
.status-dot.off i { background: var(--border-strong); }
.status-dot.paused i { background: var(--yellow); }
.status-dot::before,
.status-dot::after {
  position: absolute;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s, transform .12s;
}
.status-dot::before {
  content: '';
  top: calc(100% + 3px);
  right: 9px;
  width: 8px;
  height: 8px;
  background: var(--ink);
  transform: translateY(-3px) rotate(45deg);
}
.status-dot::after {
  content: attr(data-tip);
  top: calc(100% + 7px);
  right: 0;
  width: max-content;
  max-width: min(180px, calc(100vw - 32px));
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-md);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transform: translateY(-3px);
}
.status-dot:hover::before,
.status-dot:hover::after,
.status-dot:focus::before,
.status-dot:focus::after { opacity: 1; transform: translateY(0); }
.status-dot:hover::before,
.status-dot:focus::before { transform: rotate(45deg); }
.status-dot:focus { outline: none; }
.status-dot:focus-visible { box-shadow: 0 0 0 2px var(--blue); }
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); }
  70%  { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.agent-doing {
  font-size: 13px; color: var(--ink-2); line-height: 1.5;
  border-left: 2px solid var(--border-strong); padding-left: 11px;
}
.agent-card.is-working .agent-doing { border-left-color: var(--green); }
.agent-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  border-top: 1px solid var(--border); padding-top: 13px; margin-top: auto;
}
.agent-stats .k {
  font-size: 10px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 3px;
}
.agent-stats .v { font-size: 15px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.agent-stats .v small { font-size: inherit; font-weight: inherit; color: inherit; }
.agent-model {
  font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 6px;
}
.agent-model i {
  width: 8px; height: 8px; border-radius: 3px; flex: none;
  /* Agent colours are user-chosen and some are near-white, so the swatch
     carries its own outline rather than vanishing into the card. */
  box-shadow: inset 0 0 0 1px rgba(30, 25, 25, .18);
}
.agent-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

.more-btn {
  margin-top: 16px; background: var(--white); border: 1px solid var(--border-strong);
  color: var(--ink-2); font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
}
.more-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.more-btn[hidden] { display: none; }
.more-btn.sm { margin-top: 0; padding: 6px 14px; font-size: 12.5px; }

.feed-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 14px 22px;
  border-top: 1px solid var(--border); background: var(--bg-warm);
  border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px);
  font-size: 12.5px; color: var(--muted);
}
.feed-foot[hidden] { display: none; }
.feed-foot b { color: var(--ink-2); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ───────────────────────────────────────────────────────── layer 1 - now */
.now-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: var(--shadow-sm);
}
.now-top {
  display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--border); background: var(--bg-warm);
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
}
.now-stat { flex: 1 1 150px; padding: 17px 22px; border-right: 1px solid var(--border); }
.now-stat:last-child { border-right: 0; }
.now-stat .k {
  font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px; font-weight: 600;
}
.now-stat .v { font-size: 25px; font-weight: 800; letter-spacing: -.035em; }
.now-stat .v small { font-size: inherit; font-weight: inherit; color: inherit; letter-spacing: inherit; }
/* Word annotations next to a number ("· 4 hit errors but finished") stay
   quiet - only true units (k, M, m, s) get the big treatment above. */
.now-stat .v .sub { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
/* A sentence-length annotation breaks awkwardly mid-phrase when inline -
   give it a clean line of its own under the number. */
.now-stat .v .sub.line { display: block; margin-top: 3px; }

/* No padding: the 4px the prototype used showed through as a white sliver
   between the stat strip and the first day divider, and the divider above
   already provides the rule. */
.feed { padding: 0; }
.fday {
  padding: 11px 22px 9px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); background: var(--bg-warm);
  /* Bottom rule only - the stat strip and every feed row already carry a
     bottom border, so a top border here doubled up into a heavy seam. */
  border-bottom: 1px solid var(--border);
}
.fitem {
  display: grid;
  grid-template-columns: 56px 120px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 22px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
}
.fitem:last-child { border-bottom: 0; }
.ftime { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fagent { display: flex; align-items: center; gap: 9px; font-weight: 600; min-width: 0; }
.fagent-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: var(--bg-warm); border: 1px solid var(--border-strong);
  display: grid; place-items: center; font-size: 11px; font-style: normal;
}
.ftext { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ftext .stated-mark {
  font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 1px 6px; margin-left: 8px; vertical-align: 1px;
}
.fmeta { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.fcost { display: inline-flex; align-items: center; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fdur { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.task-mark {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  padding: 2px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.25;
  text-transform: uppercase;
  vertical-align: 1px;
  white-space: nowrap;
}
.chip {
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.chip.live { background: var(--blue-soft); color: var(--blue-2); }
.chip.paused { background: var(--yellow-soft); color: #76590a; }
.chip.fail { background: var(--red-soft); color: var(--red); }

/* ─────────────────────────────────────────────────────── layer 2 - tiles */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 14px; }
.tile {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.tile .k {
  font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 9px; font-weight: 600;
}
.tile .v { font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.tile .v small { font-size: inherit; font-weight: inherit; color: inherit; }
.tile .d { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.tile .d b { color: var(--ink-2); font-weight: 600; }
.tile .d b.up { color: var(--orange); }
.tile .d b.down { color: var(--green); }
.arw { font-size: 10px; }
.subscription-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0 0 14px;
  padding: 15px 17px;
  border: 1px solid #f6dfa0;
  border-radius: var(--radius);
  background: var(--yellow-soft);
  color: #6b5310;
}
.subscription-note p { margin: 0; font-size: 13px; line-height: 1.55; }
.subscription-note b { color: #4a3908; }

/* ─────────────────────────────────────────────────────────────── charts */
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 14px; font-size: 12.5px; color: var(--ink-2); }
.legend .li { display: flex; align-items: center; gap: 7px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend .li-cost {
  color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: 11.5px; padding-left: 2px;
}
#memory-note { border-top: 1px solid var(--border); padding-top: 13px; margin-top: 13px; }
#memory-note b { color: var(--ink-2); }
#memory-note:empty { display: none; }
.live svg { display: block; overflow: visible; }
.tick { fill: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.gl { stroke: var(--border); stroke-width: 1; }
.ax { stroke: var(--border-strong); stroke-width: 1; }
.dlabel { font-size: 11px; font-weight: 700; }
.plot { position: relative; }
#mix-svg { width: 100%; height: 250px; }
.tip {
  position: absolute; pointer-events: none; opacity: 0; transition: opacity .09s;
  background: var(--white); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 11px 13px; font-size: 12.5px; z-index: 5;
  box-shadow: var(--shadow-md); min-width: 168px;
}
.tip .t {
  color: var(--muted); font-size: 10.5px; margin-bottom: 7px;
  letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
}
.tip .r { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-top: 4px; }
.tip .r span:first-child { display: flex; align-items: center; gap: 7px; color: var(--ink-2); }
.tip .r b { font-weight: 700; font-variant-numeric: tabular-nums; }
.tip .tot { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 7px; }

/* ───────────────────────────────────────────────────────────── heatmap */
.heat-wrap { display: grid; grid-template-columns: 34px 1fr; gap: 9px; align-items: start; }
.heat-days { display: grid; gap: 3px; font-size: 10.5px; color: var(--muted); }
.heat-days div { height: 19px; display: flex; align-items: center; }
.heat-grid { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.cell { aspect-ratio: 1; border-radius: 3px; background: var(--q0); transition: transform .08s; }
.cell:hover { transform: scale(1.3); outline: 1.5px solid var(--ink); }
.heat-hours {
  display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px;
  margin-top: 8px; font-size: 10px; color: var(--muted); text-align: center;
}
.scale {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--muted); margin-top: 18px; flex-wrap: wrap;
}
.scale i { width: 15px; height: 9px; border-radius: 3px; display: block; }
.scale-note { margin-left: auto; color: var(--ink-2); font-weight: 500; }

/* ────────────────────────────────────────────────────────────── tables */
.live table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.live th {
  text-align: left; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; padding: 0 12px 11px 0; border-bottom: 1px solid var(--border);
}
.live td { padding: 15px 12px 15px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.live tr:last-child td { border-bottom: 0; }
.live .num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }
.live th.num { text-align: right; padding-right: 0; }
.aname { display: flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; letter-spacing: -.01em; }
.arole { color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 3px; padding-left: 32px; }
.asum { color: var(--ink-2); max-width: 48ch; font-size: 13px; line-height: 1.5; }
.asum.none { color: var(--muted); font-style: italic; }
.tblview[hidden] { display: none; }

.agent-week-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.agent-week {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 17px 18px;
  display: flex; flex-direction: column; gap: 13px; min-width: 0;
}
.agent-week-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.agent-week-id { min-width: 0; }
.agent-week-name { font-size: 14px; font-weight: 700; line-height: 1.25; }
.agent-week-role { color: var(--muted); font-size: 11.5px; margin-top: 2px; overflow-wrap: anywhere; }
.agent-week-work { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.agent-week-work li { color: var(--ink-2); font-size: 13px; line-height: 1.4; padding-left: 14px; position: relative; }
.agent-week-work li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); position: absolute; left: 0; top: .55em; }
.agent-week-work .none { color: var(--muted); font-style: italic; }
.agent-week-work .none::before { background: var(--border-strong); }
.agent-week-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto; }
.agent-week-stats span { display: flex; flex-direction: column; gap: 2px; }
.agent-week-stats small { color: var(--muted); font-size: 9.5px; letter-spacing: .07em; text-transform: uppercase; }
.agent-week-stats b { font-size: 13.5px; font-variant-numeric: tabular-nums; }

/* ─────────────────────────────────────────────────── releases / roadmap */
.ship { display: flex; gap: 16px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--border); }
.ship:last-child { border-bottom: 0; padding-bottom: 0; }
.ship-version { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: none; }
.ship .ver {
  display: inline-flex; align-items: center; padding: 5px 12px;
  background: var(--ink); color: #fff; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', ui-monospace, Menlo, monospace;
  letter-spacing: .02em; white-space: nowrap;
}
.ship .ver.latest { background: var(--blue); box-shadow: 0 6px 14px rgba(0, 97, 255, .28); }
.latest-pill {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  background: var(--yellow-soft); color: #92400e; font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.ship .body { flex: 1; min-width: 0; }
.ship .dt { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.ship .tt { font-weight: 600; font-size: 13.5px; margin-bottom: 6px; line-height: 1.45; }
.ship .it { color: var(--ink-2); font-size: 12.5px; line-height: 1.55; }
.ship .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.rtag {
  display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px;
}
.rtag.new { background: var(--green-soft); color: #14532d; }
.rtag.improved { background: var(--blue-soft); color: var(--blue-2); }
.rtag.chat { background: #fef3c7; color: #92400e; }
.rtag.plain { background: var(--bg-warm); color: var(--ink-2); }
.humannote {
  background: var(--yellow-soft); border: 1px solid #f6dfa0; border-radius: var(--radius);
  padding: 14px 16px; font-size: 13px; color: #6b5310; margin-top: 20px; line-height: 1.55;
}
.humannote b { color: #4a3908; }

.road { display: flex; gap: 13px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--border); }
.road:last-child { border-bottom: 0; padding-bottom: 0; }
.rst {
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap; flex: none; margin-top: 1px;
}
.rst.now { background: var(--blue-soft); color: var(--blue-2); }
.rst.done { background: var(--green-soft); color: var(--green); }
.rst.next { background: var(--bg-warm); color: var(--muted); border: 1px solid var(--border-strong); }
.road .rt { font-weight: 600; font-size: 13.5px; }
.road .rd { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ──────────────────────────────────────────────── customer milestone path */
.customer-layer[hidden], .milestone[hidden] { display: none; }
.customer-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.customer-overview {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 30px 26px;
  background:
    radial-gradient(circle at 88% 18%, rgba(251, 191, 36, .22), transparent 22%),
    linear-gradient(130deg, var(--blue-soft), rgba(255, 255, 255, .82) 58%, var(--yellow-soft));
}
.customer-kicker,
.customer-next p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.customer-total { display: flex; align-items: baseline; gap: 10px; }
.customer-total strong {
  color: var(--ink);
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: .9;
  font-variant-numeric: tabular-nums;
}
.customer-total span { color: var(--ink-2); font-size: 15px; font-weight: 650; }
.customer-next { text-align: right; }
.customer-next strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -.025em;
}
.customer-next span { display: block; margin-top: 3px; color: var(--blue-2); font-size: 13px; font-weight: 700; }
.customer-journey {
  --ms-count: 6;
  position: relative;
  padding: 31px 18px 23px;
  background: var(--white);
  overflow: hidden;
}
.ms-rail {
  position: absolute;
  z-index: 0;
  top: 40px;
  left: calc(50% / var(--ms-count));
  right: calc(50% / var(--ms-count));
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
}
.ms-rail i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #5b8cff);
  transition: width .45s ease;
}
.ms-points {
  --ms-count: 6;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(var(--ms-count), minmax(0, 1fr));
}
.ms-point { min-width: 0; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.ms-point i {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto 9px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--bg-warm);
  box-shadow: 0 0 0 1px var(--border-strong);
}
.ms-point b { display: block; font-size: 12px; font-weight: 700; letter-spacing: -.01em; }
.ms-point small {
  display: block;
  min-height: 14px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.ms-point.reached { color: var(--ink); }
.ms-point.reached i { background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.ms-point.next { color: var(--blue-2); }
.ms-point.next i {
  background: var(--yellow);
  box-shadow: 0 0 0 1px #d99b08, 0 0 0 5px rgba(251, 191, 36, .16);
}
.customer-action {
  display: flex;
  justify-content: center;
  padding: 0 18px 26px;
}
.customer-action .btn { text-align: center; }

/* ────────────────────────────────────────────────────── layer 3 archive */
.weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 14px; }
.week {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.week .wk { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.week .wt { font-size: 17px; font-weight: 700; margin: 9px 0 10px; letter-spacing: -.025em; line-height: 1.28; }
.week .ws { color: var(--ink-2); font-size: 13px; line-height: 1.55; margin-bottom: 16px; }
.week .ws.none { color: var(--muted); font-style: italic; }
.week .wn {
  display: flex; gap: 18px; font-size: 12.5px; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: 13px;
  font-variant-numeric: tabular-nums; flex-wrap: wrap;
}
.week .wn b { color: var(--ink); font-weight: 700; }

/* ──────────────────────────────────────────────────────────────── misc */
.toggle {
  background: var(--white); border: 1px solid var(--border-strong); color: var(--muted);
  font-family: inherit; font-size: 11.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; flex: none;
  display: inline-block; text-decoration: none;
}
.toggle:hover { color: var(--ink); border-color: var(--ink-2); }
.note { color: var(--muted); font-size: 12.5px; margin-top: 15px; line-height: 1.6; }
.empty-note { color: var(--muted); font-size: 13.5px; padding: 18px 22px; margin: 0; }

.privacy-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--ink); color: #efece7; border-radius: var(--radius-lg); padding: 28px 30px;
}
.privacy-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: rgba(251, 191, 36, .16); color: var(--yellow);
}
.privacy-icon svg { width: 22px; height: 22px; }
.privacy-body h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.privacy-body p { margin: 0; font-size: 13.5px; line-height: 1.65; color: #bab5ad; }
.privacy-body em { color: #efece7; font-style: normal; font-weight: 600; }

.live-footer {
  border-top: 1px solid var(--border); padding: 28px 0 0;
  color: var(--muted); font-size: 13px; line-height: 1.7;
}
.live-footer p { margin: 0 0 8px; }
.live-footer b { color: var(--ink-2); }
.footer-legend { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 13px 0 15px; }
.footer-legend-item { display: flex; align-items: center; gap: 8px; }
.live-footer .gen { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.live-noscript { padding: 40px 0; color: var(--muted); }

/* ───────────────────────────────────────────────────────────── responsive */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .grid2 { grid-template-columns: 1fr; }
  .fitem { grid-template-columns: 52px 1fr auto; row-gap: 4px; }
  .fagent { grid-column: 2; }
  .ftext { grid-column: 2 / span 2; font-size: 13px; white-space: normal; }
}
@media (max-width: 620px) {
  .team-controls { display: none; }
  .mobile-team-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .mobile-team-controls label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
  .mobile-team-controls select {
    width: 100%; min-width: 0; appearance: none; -webkit-appearance: none;
    border: 1px solid var(--border-strong); border-radius: 12px; background: var(--white);
    color: var(--ink); font: 600 13px/1.2 inherit; letter-spacing: 0; text-transform: none;
    padding: 11px 32px 11px 12px;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px;
    background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { padding: 15px 16px; }
  .tile .v { font-size: 24px; }
  .tile .d { font-size: 11.5px; overflow-wrap: anywhere; }
  .now-stat { flex-basis: 50%; }
  .heat-wrap { grid-template-columns: 28px 1fr; }
  .privacy-card { flex-direction: column; gap: 14px; padding: 24px; }
  .card { padding: 20px 18px; }
  .week { padding: 20px 18px; }
  .week .wn { gap: 12px; font-size: 12px; }
  .fitem {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "agent meta" "text text" "time time";
    gap: 7px 12px; align-items: start; padding: 15px 16px;
  }
  .fagent { grid-area: agent; }
  .fagent-name { white-space: normal; }
  .fmeta { grid-area: meta; gap: 8px; }
  .ftext { grid-area: text; font-size: 13.5px; line-height: 1.45; white-space: normal; overflow: visible; }
  .ftime { grid-area: time; font-size: 11.5px; }
  .fday { padding-left: 16px; padding-right: 16px; }
  .feed-foot { padding-left: 16px; padding-right: 16px; }
  #mix-svg { height: 220px; }
  .legend { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .legend .li { width: 100%; }
  .legend .li-cost { margin-left: auto; }
  .agent-week-list { grid-template-columns: 1fr; }
  .tblview { overflow-x: auto; }
  .layer-head h2 { font-size: 20px; }
  .cardhead { flex-direction: column; align-items: flex-start; }
  .cardhead .toggle { align-self: flex-start; }
  .ship { gap: 11px; }
  .ship .ver { font-size: 11.5px; padding: 3px 8px; }
  .week .ws:empty { display: none; }
  .subscription-note { grid-template-columns: 1fr; gap: 9px; }
  .customer-overview { align-items: flex-start; padding: 24px 20px 22px; }
  .customer-total { display: block; }
  .customer-total span { display: block; margin-top: 7px; }
  .customer-next { padding-top: 2px; }
  .customer-next strong { font-size: 16px; }
  .customer-journey { padding: 28px 5px 20px; }
  .ms-rail { top: 37px; }
  .ms-point b { font-size: 10px; }
  .ms-point small { font-size: 8px; letter-spacing: .05em; }
  .customer-action { padding: 0 20px 22px; }
  .customer-action .btn { width: 100%; justify-content: center; padding-inline: 16px; }
  .footer-legend { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .footer-legend-item { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
  .cost-help::before { display: none; }
  .cost-help::after,
  .cost-help.tip-right::after {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: auto;
    transform: translateY(5px);
    font-size: 12.5px;
    z-index: 100;
  }
  .cost-help:hover::after,
  .cost-help:focus::after,
  .cost-help.tip-right:hover::after,
  .cost-help.tip-right:focus::after { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot.working i, .chip-btn.busy .live-dot { animation: none; }
  .agent-card:hover { transform: none; }
  .cell:hover { transform: none; }
}
