/* Agent Ops Console — shared tokens and base styles. Sizes in rem; follows the system light/dark setting. */
:root {
  --paper: #f4f5f7;
  --surface: #ffffff;
  --sunk: #e9ecf0;
  --ink: #12161c;
  --ink-2: #3d4653;
  --ink-3: #5a6573;
  --line: #d3d8df;
  --line-2: #e4e7ec;
  --action: #0b6e82;
  --action-ink: #ffffff;
  --action-soft: #dff3f6;
  --hold: #9a4a06;
  --hold-soft: #fdf0d5;
  --hold-mark: #d98a0b;
  --ok: #17713f;
  --ok-soft: #def3e6;
  --stop: #b42318;
  --stop-soft: #fde7e4;
  --grey-soft: #e6e9ee;
  /* the console panel is dark in both themes: it is the product's own surface */
  --console: #0d1117;
  --console-ink: #d7dde5;
  --console-dim: #8b96a5;
  --console-line: #263040;
  --console-cyan: #4fd1e0;
  --console-red: #ff8f85;
  --console-amber: #f2b84b;
  --console-green: #5fd39a;
  --radius: .375rem;
  --shadow: 0 1px 2px rgba(18, 22, 28, .06), 0 6px 18px rgba(18, 22, 28, .07);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0f14;
    --surface: #121820;
    --sunk: #0e131a;
    --ink: #e4e9f0;
    --ink-2: #aeb8c5;
    --ink-3: #8793a3;
    --line: #283242;
    --line-2: #1c2430;
    --action: #4fd1e0;
    --action-ink: #06222a;
    --action-soft: #0f3038;
    --hold: #f2b84b;
    --hold-soft: #35290c;
    --hold-mark: #f2b84b;
    --ok: #5fd39a;
    --ok-soft: #12301f;
    --stop: #ff8f85;
    --stop-soft: #3d1a17;
    --grey-soft: #1e2733;
    --console: #06090d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--action); text-underline-offset: .15em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: .18rem solid var(--action); outline-offset: .15rem; border-radius: .2rem; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

.btn { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-weight: 600; cursor: pointer;
       padding: .6rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
       color: var(--ink); text-decoration: none; line-height: 1.2; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.small { padding: .35rem .7rem; font-size: .85rem; }
.btn.danger { color: var(--stop); }
.btn[disabled] { opacity: .5; cursor: default; }

.mark { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.05rem;
        letter-spacing: -.01em; color: inherit; text-decoration: none; }
.mark svg { width: 1.6rem; height: 1.6rem; flex: none; }

/* State chips: a word and a glyph, never colour alone. */
.chip { display: inline-block; font-size: .75rem; font-weight: 600; line-height: 1; padding: .28rem .5rem;
        border-radius: .25rem; background: var(--grey-soft); color: var(--ink-2); white-space: nowrap; }
.chip::before { content: "· "; font-family: var(--mono); }
.chip.wait { background: var(--hold-soft); color: var(--hold); }
.chip.wait::before { content: "‖ "; }
.chip.go { background: var(--action-soft); color: var(--action); }
.chip.go::before { content: "▸ "; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.ok::before { content: "✓ "; }
.chip.bad { background: var(--stop-soft); color: var(--stop); }
.chip.bad::before { content: "✕ "; }
.chip.plain::before { content: none; }

.demo-bar { background: var(--hold-soft); color: var(--hold); font-size: .85rem; text-align: center; padding: .4rem 1rem; }
.demo-bar a { color: inherit; }
