/* Agent Ops — the internal agent CRM mirrored into Nexus (brief 1438).
   Token parity with Nexus / the Hub reskin: the website's deep-indigo
   scheme — same values, self-contained so the section lifts with
   Nexus unchanged. */
:root {
  color-scheme: dark;
  --bg: #120C2E;
  --surface: #1E1748;
  --surface-raised: #251C52;
  --surface-soft: #2C2352;
  --text: #F3EDDA;
  --dim: #C9C2A8;
  --border: rgba(196,181,253,.30);
  --accent: #E8C15A;
  --accent-ink: #120C2E;
  --profit: #74AD8C;
  --loss: #D2899E;
  --radius: 16px;
  --shadow: 0 18px 44px rgba(5,2,20,.45);
  --shadow-control: 0 8px 20px rgba(5,2,20,.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.agentops-app {
  background: var(--bg);
  color: var(--text);
  font-family: "Jost", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.ao-skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 60;
  background: var(--accent); color: var(--accent-ink);
  padding: .5rem 1rem; border-radius: 999px; font-weight: 600;
}
.ao-skip:focus { top: 1rem; }
.ao-header { padding: 2rem 1.25rem .5rem; }
.ao-header-inner, .ao-main { max-width: 1100px; margin: 0 auto; }
.ao-eyebrow {
  margin: 0; color: var(--accent); letter-spacing: .14em;
  text-transform: uppercase; font-size: .78rem; font-weight: 600;
}
.ao-header h1 { margin: .25rem 0; font-size: 2rem; line-height: 1.15; }
.ao-sub { margin: 0; color: var(--dim); max-width: 44rem; }
.ao-mirror-line { margin: .75rem 0 0; color: var(--accent); font-size: .92rem; }
.ao-tabs {
  display: flex; gap: .5rem; flex-wrap: wrap;
  max-width: 1100px; margin: 1rem auto 0; padding: 0 1.25rem;
}
.ao-tab {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 999px; padding: .5rem 1.1rem; font: inherit; cursor: pointer;
}
.ao-tab.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.ao-tab:focus-visible, .ao-more:focus-visible, .ao-filters button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.ao-main { padding: 1.25rem; }
.ao-health {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .75rem; margin-bottom: 1.25rem;
}
.ao-tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow-control);
  display: flex; flex-direction: column; gap: .15rem;
}
.ao-tile-v { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.ao-tile-l { color: var(--dim); font-size: .85rem; }
.ao-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem;
}
.ao-panel h2 { margin: 0 0 1rem; font-size: 1.3rem; }
.ao-table-wrap { overflow-x: auto; }
.ao-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ao-table th, .ao-table td {
  text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.ao-table th { color: var(--accent); font-weight: 600; white-space: nowrap; }
.ao-filters {
  display: flex; gap: .75rem; flex-wrap: wrap; align-items: end; margin-bottom: 1rem;
}
.ao-filters label { display: flex; flex-direction: column; gap: .25rem; color: var(--dim); font-size: .9rem; }
.ao-filters select, .ao-filters input {
  background: var(--surface-soft); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: .5rem .6rem; font: inherit; min-height: 44px;
}
.ao-filters button, .ao-more {
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px;
  padding: .55rem 1.2rem; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px;
}
.ao-more { margin-top: 1rem; background: var(--surface-raised); color: var(--text); border: 1px solid var(--border); }
.ao-count { color: var(--dim); margin: 0 0 .75rem; }
.ao-board {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .75rem; margin-bottom: 1.25rem;
}
.ao-board-col {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .9rem 1rem;
}
.ao-board-col h3 { margin: 0; text-transform: capitalize; color: var(--dim); font-size: .95rem; }
.ao-board-n { margin: .2rem 0 0; font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.ao-state { border-radius: 999px; padding: .1rem .6rem; font-size: .85rem; border: 1px solid var(--border); }
.ao-state-queued { color: var(--dim); }
.ao-state-running { color: var(--accent); border-color: var(--accent); }
.ao-state-done { color: var(--profit); }
.ao-state-stalled { color: var(--loss); }
.ao-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.ao-feed li { border-bottom: 1px solid var(--border); padding-bottom: .8rem; }
.ao-feed-when { color: var(--dim); font-size: .88rem; margin-left: .4rem; }
.ao-feed-sum { display: block; color: var(--dim); margin-top: .2rem; overflow-wrap: anywhere; }
.ao-truth { color: var(--dim); font-size: .9rem; margin: 1.25rem 0 0; }
a { color: var(--accent); }
@media (max-width: 640px) {
  .ao-header h1 { font-size: 1.6rem; }
  .ao-panel { padding: 1rem; }
}
