/* Verric Business Terminal: a compact operating workspace. */
:root {
  --aw-canvas: #0E1B3D;
  --aw-raised: #152551;
  --aw-line: #30456D;
  --aw-text: #F3F6FF;
  --aw-muted: #BFD0F7;
  --aw-action: #8FB6FF;
  --aw-ready: #67D3E8;
  --aw-warning: #F0B963;
  /* THE PALETTE. One block, one place. Three other stylesheets used to declare
     their own :root at the same specificity, so whichever loaded last silently
     won and the palette could not be changed here at all — identity.css was
     overriding canvas, ink, lines and the brand accent, and the warm paper
     scheme this file described had not rendered for a long time. Those blocks
     are gone; this is the only one.

     Contrast is not asserted here, it is computed: scripts/check-contrast.mjs
     reads these tokens and fails the build if any meaningful pair drops below
     WCAG 2.1 (4.5:1 for text, 3:1 for focus rings). */

  /* Surfaces: a pale blue canvas, white panels. */
  --canvas: #F3F6FF;
  --surface: #FFFFFF;
  --surface-subtle: #F8FAFF;
  /* A tint, not the navigation: this also colours badges, progress tracks and
     avatars, and they must not turn cobalt with the sidebar. */
  --sidebar: #E4EBFB;

  /* Navigation: cobalt, with the selected item a brighter blue. */
  --nav-bg: #163BAA;
  --nav-hover: #1F49C4;
  --nav-active: #2859D8;
  --nav-ink: #F3F6FF;
  --nav-muted: #BFD0F7;
  --nav-line: #2E55C4;
  --nav-focus: #A9C6FF;

  /* Text and rules. */
  --ink: #17243D;
  --muted: #4C5A7A;
  --faint: #5E6C8C;
  --line: #D7E0F7;
  --line-strong: #B9C7E8;

  /* The primary action, and the focus ring everywhere outside the sidebar. */
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-soft: #EBF1FE;

  /* Status. --green is teal: in a blue workspace teal reads as "settled"
     where a true green would read as a different product. */
  --green: #00758A;
  --green-soft: #DDF0F5;
  --amber: #A25C00;
  --amber-soft: #FBEEDC;
  --blue: #2563EB;
  --blue-soft: #EBF1FE;
  --red: #C02B41;
  --red-soft: #FCE7EB;
  --purple: #6D28D9;
  --purple-soft: #EDE6FD;

  --veil: #17243D66;
  --sidebar-width: 224px;
  color-scheme: light;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: wait; opacity: .5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { border-radius: 4px; }
button { background: none; border: 0; }
h1,h2,h3,p { margin: 0; }
strong,b { font-weight: 600; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--accent); color: var(--surface); }
.skip-link:focus { top: 12px; }
.boot { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 20px; padding: 32px; text-align: center; }
.boot p { color: var(--muted); }
.sidebar { width: var(--sidebar-width); position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; padding: 24px 12px 16px; border-right: 1px solid var(--nav-line); background: var(--nav-bg); color: var(--nav-ink); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 12px 24px; color: var(--nav-ink); }
.brand-symbol { width: 32px; height: 32px; background: var(--nav-ink); color: var(--nav-bg); display: grid; place-items: center; font-family: Georgia, serif; font-size: 19px; border-radius: 4px; }
.brand-word { font-size: 27px; line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.brand-small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .12em; margin-top: 8px; color: var(--nav-muted); }
.company-switch { display: flex; align-items: center; gap: 12px; margin: 0 4px 24px; padding: 12px 8px; border-top: 1px solid var(--nav-line); border-bottom: 1px solid var(--nav-line); color: var(--nav-ink); background: transparent; border-radius: 0; }
.company-icon { width: 32px; height: 32px; display: grid; place-items: center; background: var(--nav-hover); border: 1px solid var(--nav-line); color: var(--nav-ink); font-weight: 600; border-radius: 4px; }
.company-switch strong { display: block; font-size: 13px; }
.company-switch small { display: block; color: var(--nav-muted); font-size: 12px; }
.company-arrow { margin-left: auto; color: var(--nav-muted); }
.nav-label { font-size: 10px; color: var(--nav-muted); font-weight: 600; letter-spacing: .12em; margin: 0 12px 8px; }
.workforce-label { margin-top: 24px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 0 0 4px; border-radius: 4px; min-height: 44px; color: var(--nav-muted); font-size: 13px; font-weight: 500; }
.nav-link:hover { color: var(--nav-ink); background: var(--nav-hover); }
/* Selected: colour, weight and a left bar, so it reads without colour. */
.nav-link.active { color: var(--nav-ink); background: var(--nav-active); font-weight: 600; box-shadow: inset 3px 0 0 var(--nav-focus); }
.sidebar :is(a, button, select, [tabindex]):focus-visible { outline: 2px solid var(--nav-focus); outline-offset: 2px; }
/* Secondary actions inside the navigation take the navigation palette. */
.sidebar .button { background: transparent; border-color: var(--nav-line); color: var(--nav-ink); }
.sidebar .button:hover { background: var(--nav-hover); color: var(--nav-ink); }
.nav-count { margin-left: auto; min-width: 20px; text-align: center; font-size: 11px; background: var(--nav-hover); color: var(--nav-ink); border-radius: 2px; }
.sidebar-bottom { margin-top: auto; padding: 32px 8px 0; }
.runtime-indicator { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 20px; }
.runtime-indicator strong { display: block; font-size: 12px; font-weight: 500; color: var(--nav-ink); }
.runtime-indicator small { display: block; font-size: 11px; color: var(--nav-muted); margin-top: 4px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-top: 6px; flex-shrink: 0; }
.status-dot.off { background: var(--amber); }
.personal-shortcut { display: flex; align-items: center; gap: 8px; text-align: left; border-top: 1px solid var(--nav-line); padding: 16px 0 0; width: 100%; color: var(--nav-ink); }
.personal-shortcut:hover { color: var(--nav-ink); }
.personal-shortcut strong { display: block; font-size: 12px; }
.personal-shortcut small { display: block; font-size: 11px; color: var(--nav-muted); }
.personal-shortcut>.icon { margin-left: auto; width: 16px; color: var(--nav-muted); }
.workspace { margin-left: var(--sidebar-width); min-width: 0; }
.topbar { height: 72px; padding: 0 32px; background: var(--surface-subtle); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.breadcrumbs { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); min-width: 0; }
.breadcrumbs strong { color: var(--ink); font-weight: 500; }
.slash { color: var(--line-strong); }
.header-right { display: flex; align-items: center; gap: 12px; }
.demo-label { display: flex; gap: 8px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; font-size: 10px; font-weight: 600; letter-spacing: .08em; white-space: nowrap; }
.demo-label span { text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 400; color: var(--muted); border-left: 1px solid var(--line); padding-left: 8px; }
.icon-button { min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 8px; color: var(--muted); }
.icon-button:hover { background: var(--sidebar); color: var(--ink); }
.mobile-toggle { display: none; }
main { padding: 32px; max-width: 1800px; margin: 0 auto; min-height: calc(100vh - 132px); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { font-size: 10px; color: var(--muted); letter-spacing: .12em; font-weight: 600; margin-bottom: 8px; display: block; }
.page-heading .eyebrow { display: none; }
.page-heading h1 { font-size: 27px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.page-heading p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.period-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; padding: 8px 12px; color: var(--muted); }
.period-chip .icon { width: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; min-height: 40px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; font-weight: 500; line-height: 1.4; }
.button:hover { border-color: var(--accent); color: var(--accent); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.button.primary:hover { background: var(--accent-hover); }
.button.small { min-height: 32px; padding: 6px 12px; font-size: 12px; }
.button.danger { color: var(--red); border-color: var(--red); }
.button .icon { width: 16px; height: 16px; }
.text-button,.inline-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--accent); padding: 4px 0; }
.text-button:hover,.inline-link:hover { text-decoration: underline; }
.text-button .icon,.inline-link .icon { width: 14px; height: 14px; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 4px; background: var(--surface); margin-bottom: 24px; }
.metrics.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.metric { padding: 20px 24px; position: relative; min-width: 0; }
.metric+.metric { border-left: 1px solid var(--line); }
.metric-label { color: var(--muted); font-size: 12px; display: block; margin-bottom: 8px; }
.metric>strong { font-size: 27px; letter-spacing: -.04em; line-height: 1.2; font-weight: 500; font-variant-numeric: tabular-nums; }
.metric-foot { font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.metric-foot .trend { display: inline-flex; align-items: center; gap: 2px; }
.metric-foot .trend .icon { width: 12px; height: 12px; }
.positive { color: var(--green); }
.negative { color: var(--red); }
.metric-spark { width: 48px; height: 24px; position: absolute; right: 24px; top: 52px; color: var(--green); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; min-width: 0; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; }
.panel-head h2 { font-size: 15px; line-height: 1.4; font-weight: 600; }
.panel-head p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.panel-head .text-button { white-space: nowrap; }
.count { display: inline-block; padding: 0 6px; font-size: 11px; line-height: 1.6; font-weight: 500; background: var(--sidebar); color: var(--muted); border-radius: 2px; margin-left: 4px; vertical-align: middle; }
.overview-top,.overview-bottom { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(280px,1fr); gap: 24px; margin-bottom: 24px; }
.overview-bottom { margin-top: 24px; }
.select-wrap select { appearance: auto; padding: 6px 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12px; min-height: 32px; max-width: 100%; }
.chart-summary { display: flex; align-items: baseline; gap: 12px; padding: 0 24px 16px; }
.chart-summary>strong { font-size: 27px; font-weight: 500; letter-spacing: -.03em; }
.chart-summary>span { font-size: 12px; color: var(--muted); }
.chart-legend { display: flex; margin-left: auto; gap: 12px; font-size: 11px; color: var(--muted); }
.chart-legend span { white-space: nowrap; }
.legend-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; background: var(--accent); }
.legend-dot.expenses { background: var(--line-strong); }
.revenue-chart { display: block; width: 100%; height: 224px; padding: 0 16px 16px; }
.revenue-chart text { font-family: inherit; fill: var(--muted); font-size: 12px; }
.chart-grid { stroke: var(--line); }
.chart-area { fill: var(--accent-soft); opacity: .5; }
.chart-revenue { stroke: var(--accent); }
.chart-expenses { stroke: var(--faint); }
.chart-point { fill: var(--surface); stroke: var(--accent); }
.attention-body { padding: 0 20px 20px; }
.approval-card { background: var(--amber-soft); border: 1px solid var(--line); border-radius: 4px; padding: 16px; }
.approval-label { display: flex; align-items: center; gap: 6px; color: var(--amber); font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.approval-label .icon { width: 14px; height: 14px; }
.approval-card h3 { font-size: 15px; font-weight: 600; }
.approval-card p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 8px 0 16px; }
.approval-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.approval-bottom strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.attention-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); }
.attention-row>span { flex: 1; }
.attention-row strong { display: block; font-size: 12px; }
.attention-row small { display: block; color: var(--muted); font-size: 11px; }
.attention-row>.icon { color: var(--muted); }
.attention-note { font-size: 11px; color: var(--muted); margin-top: 12px; }
.all-clear { padding: 20px 0; color: var(--green); }
.all-clear strong { display: block; font-size: 13px; margin: 8px 0; }
.all-clear p { font-size: 12px; color: var(--muted); }
.pipeline-strip { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); padding: 0 24px 20px; gap: 20px; }
.pipeline-stage { text-align: left; padding: 0; min-width: 0; }
.pipeline-stage>span { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.pipeline-stage small { font-size: 11px; padding: 0 6px; border-radius: 2px; background: var(--sidebar); }
.pipeline-stage strong { display: block; font-size: 19px; margin: 8px 0 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stage-line { height: 2px; background: var(--line-strong); }
.stage-2 .stage-line { background: var(--blue); }
.stage-3 .stage-line { background: var(--amber); }
.stage-4 .stage-line { background: var(--green); }
.pipeline-stage:hover strong { color: var(--accent); }
.activity-list { padding: 0 24px 8px; }
.activity-item { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.activity-item>div { min-width: 0; flex: 1; }
.activity-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.activity-meta>span { color: var(--muted); font-size: 11px; }
.activity-meta time { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.activity-item p { font-size: 13px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.activity-item .inline-link { font-size: 11px; margin-top: 4px; }
.avatar { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--sidebar); color: var(--muted); font-size: 12px; font-weight: 600; border: 1px solid var(--line); border-radius: 4px; }
.avatar.small { width: 32px; height: 32px; font-size: 11px; }
.avatar.tiny { width: 24px; height: 24px; font-size: 10px; }
.avatar.large { width: 48px; height: 48px; font-size: 15px; }
.avatar-marketing { color: var(--purple); background: var(--purple-soft); }
.avatar-sales { color: var(--blue); background: var(--blue-soft); }
.avatar-finance { color: var(--amber); background: var(--amber-soft); }
.avatar-operations { color: var(--green); background: var(--green-soft); }
.avatar-shaurya-personal,.avatar-lu-personal { color: var(--accent); background: var(--accent-soft); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); border: 0; }
.badge { display: inline-flex; align-items: center; font-size: 11px; line-height: 1.4; font-weight: 500; padding: 4px 8px; border-radius: 4px; white-space: nowrap; text-transform: capitalize; }
.badge.muted { background: var(--sidebar); color: var(--muted); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.red { background: var(--red-soft); color: var(--red); }
.workforce-numbers { display: flex; align-items: baseline; gap: 24px; padding: 0 24px 16px; }
.workforce-numbers>strong { font-size: 27px; font-weight: 500; }
.workforce-numbers small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.workforce-numbers>span { color: var(--faint); font-size: 19px; }
.mini-agents { padding: 0 24px 8px; }
.mini-agents button { display: flex; gap: 12px; align-items: center; padding: 12px 0; width: 100%; border-top: 1px solid var(--line); text-align: left; }
.mini-agents button>span:nth-child(2) { flex: 1; font-size: 13px; font-weight: 500; }
.mini-agents small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.workforce-foot { font-size: 11px; color: var(--muted); padding: 12px 24px 20px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button { padding: 12px 0; font-size: 13px; color: var(--muted); white-space: nowrap; border-radius: 0; border-bottom: 2px solid transparent; }
.tabs button.selected { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.finance-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(280px,1fr); gap: 24px; margin-bottom: 24px; }
.expense-list { padding: 0 24px 20px; }
.expense-item { margin-bottom: 16px; }
.expense-item:last-child { margin-bottom: 0; }
.expense-item>div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; margin-bottom: 8px; }
.expense-item small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.bar-track { display: block; width: 100%; height: 4px; border: 0; border-radius: 2px; background: var(--sidebar); overflow: hidden; accent-color: var(--accent); }
.bar-track::-webkit-progress-bar { background: var(--sidebar); }
.bar-track::-webkit-progress-value { background: var(--accent); }
.bar-track::-moz-progress-bar { background: var(--accent); }
.table-wrap { width: 100%; overflow-x: auto; }
.terminal-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
.terminal-table th { font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; background: var(--surface-subtle); white-space: nowrap; }
.terminal-table th,.terminal-table td { padding: 16px 24px; border-top: 1px solid var(--line); }
.terminal-table td { vertical-align: middle; }
.terminal-table tr:hover td { background: var(--surface-subtle); }
.terminal-table td.numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.numeric { text-align: right; }
.table-link { color: var(--ink); font-size: 13px; font-weight: 500; text-align: left; padding: 0; }
.table-link:hover { color: var(--accent); text-decoration: underline; }
.cell-sub { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.owner-cell { display: inline-flex; align-items: center; gap: 8px; }
.progress-cell { display: flex; align-items: center; gap: 12px; min-width: 136px; }
.progress-cell .bar-track { width: 88px; }
.progress-cell>span { font-size: 11px; color: var(--muted); }
.inline-notice { display: flex; gap: 8px; margin-top: 20px; font-size: 12px; color: var(--muted); align-items: flex-start; }
.subtle { font-size: 11px; color: var(--muted); }
.wrap { flex-wrap: wrap; }
.team-intro { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(240px,1fr); gap: 24px; margin-bottom: 24px; }
.team-people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.person-card { border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; gap: 12px; padding: 16px; text-align: left; min-width: 0; }
.person-card:hover { border-color: var(--line-strong); }
.person-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sidebar); color: var(--muted); flex-shrink: 0; font-size: 12px; }
.person-card strong { font-size: 13px; display: block; }
.person-card small { font-size: 11px; color: var(--muted); display: block; }
.person-assistant { display: flex; align-items: center; gap: 6px; color: var(--accent); font-size: 11px; margin-top: 8px; }
.person-assistant .icon { width: 12px; height: 12px; }
.team-explainer { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; color: var(--muted); }
.team-explainer>.icon { color: var(--accent); margin-top: 4px; }
.team-explainer strong { color: var(--ink); font-size: 13px; }
.team-explainer p { font-size: 12px; margin-top: 4px; }
.agents-grid { display: grid; grid-template-columns: minmax(264px,.8fr) minmax(0,1.7fr); gap: 24px; align-items: start; }
.directory-heading { padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface-subtle); font-size: 10px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.directory-heading>span { display: block; font-size: 11px; font-weight: 400; letter-spacing: 0; margin-top: 4px; }
.agent-row { display: flex; gap: 12px; align-items: center; text-align: left; padding: 16px 20px; width: 100%; border-radius: 0; border-bottom: 1px solid var(--line); }
.agent-row.selected { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.agent-row:hover { background: var(--surface-subtle); }
.agent-row-info { flex: 1; min-width: 0; }
.agent-row-info strong { display: block; font-size: 13px; }
.agent-row-info small { display: block; font-size: 11px; color: var(--muted); }
.agent-row-status { display: flex; align-items: center; gap: 4px; }
.agent-row-status .icon { width: 12px; color: var(--muted); }
.directory-note { display: flex; align-items: flex-start; gap: 8px; padding: 16px 20px; font-size: 11px; color: var(--muted); }
.directory-note .icon { width: 14px; height: 14px; }
.agent-profile { display: flex; align-items: center; gap: 12px; padding: 24px 24px 16px; }
.agent-profile>.icon-button { margin-left: auto; }
.agent-profile-title { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.agent-profile h2 { font-size: 19px; font-weight: 600; }
.agent-profile p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.agent-description { font-size: 13px; color: var(--muted); padding: 0 24px 20px; }
.agent-chat { padding: 24px; }
.chat-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-heading h3 { font-size: 13px; }
.chat-heading-actions { display: flex; align-items: center; gap: 4px; }
.chat-messages { min-height: 240px; max-height: 400px; overflow-y: auto; padding: 16px 0; }
.chat-welcome { padding: 24px 0; max-width: 460px; margin: 0 auto; color: var(--muted); text-align: center; }
.chat-welcome>.icon { color: var(--accent); width: 24px; height: 24px; margin-bottom: 12px; }
.chat-welcome p { font-size: 15px; }
.suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.suggestions button { padding: 8px 12px; border: 1px solid var(--line); font-size: 12px; background: var(--surface-subtle); }
.suggestions button:hover { border-color: var(--accent); color: var(--accent); }
.chat-message { padding: 12px 16px; margin-bottom: 12px; max-width: 94%; font-size: 15px; background: var(--surface-subtle); border: 1px solid var(--line); border-radius: 4px; overflow-wrap: anywhere; }
.chat-message.user { margin-left: auto; background: var(--accent-soft); border-color: transparent; }
.chat-message>span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.chat-message p { white-space: pre-wrap; }
.chat-message.thinking p { color: var(--muted); font-style: italic; }
.campaign-preview { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.campaign-preview-platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.campaign-preview-platform { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); }
.campaign-preview-platform strong { display: block; padding: 8px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.campaign-preview-platform img { display: block; width: 100%; height: 140px; object-fit: cover; cursor: zoom-in; }
.campaign-preview-platform p { padding: 8px 12px; font-size: 13px; white-space: pre-wrap; }
.campaign-preview-actions { display: flex; gap: 8px; margin-top: 12px; }
.lightbox-image { display: block; width: 100%; height: auto; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 4px; }
.chat-compose { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 4px; background: var(--surface); }
.chat-compose:focus-within { border-color: var(--accent); }
.chat-compose input { min-width: 0; flex: 1; border: 0; padding: 8px 12px; outline: 0; font-size: 15px; color: var(--ink); }
.send-button { background: var(--accent); color: var(--surface); }
.send-button:hover { background: var(--accent-hover); color: var(--surface); }
.chat-note { color: var(--muted); font-size: 11px; margin-top: 8px; }
.workflow-banner { display: flex; gap: 12px; align-items: center; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; margin-bottom: 24px; }
.workflow-banner>.icon { color: var(--accent); }
.workflow-banner>div { flex: 1; }
.workflow-banner strong { font-size: 13px; display: block; }
.workflow-banner>div>span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.workflow-grid { display: grid; grid-template-columns: minmax(280px,.9fr) minmax(0,1.6fr); gap: 24px; align-items: start; }
.workflow-list-item { text-align: left; width: 100%; padding: 20px 24px; border-top: 1px solid var(--line); border-radius: 0; }
.workflow-list-item.selected { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.workflow-list-item>div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.workflow-list-item strong { font-size: 13px; font-weight: 500; }
.workflow-list-item small { display: block; font-size: 11px; color: var(--muted); margin-top: 8px; }
.workflow-detail-head { padding: 24px; border-bottom: 1px solid var(--line); }
.workflow-detail-head>div { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.workflow-detail-head h2 { font-size: 19px; line-height: 1.4; }
.workflow-detail-head p { font-size: 12px; color: var(--muted); margin-top: 8px; }
.workflow-detail-head p>span { margin: 0 4px; }
.workflow-steps { padding: 24px 24px 8px; }
.workflow-step { display: flex; gap: 16px; position: relative; padding-bottom: 24px; }
.workflow-step:not(:last-child)::after { content: ''; position: absolute; width: 1px; left: 16px; top: 32px; bottom: 0; background: var(--line); }
.step-marker { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-subtle); font-size: 12px; color: var(--muted); flex-shrink: 0; }
.completed .step-marker { background: var(--green-soft); color: var(--green); border-color: var(--green-soft); }
.running .step-marker { border-color: var(--accent); color: var(--accent); }
.awaiting_approval .step-marker { background: var(--amber-soft); color: var(--amber); }
.step-body { flex: 1; min-width: 0; }
.step-body>div { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.step-body strong { font-size: 13px; font-weight: 500; }
.step-owner { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.approval-action { border: 1px solid var(--line); background: var(--amber-soft); border-radius: 4px; padding: 20px; margin: 0 24px 24px; }
.approval-action>div:first-child { display: flex; align-items: center; gap: 8px; color: var(--amber); font-size: 13px; }
.approval-action p { font-size: 13px; color: var(--muted); margin: 8px 0 16px; }
.approval-action>div:last-child { display: flex; gap: 8px; }
.workflow-detail-feed { border-top: 1px solid var(--line); padding-top: 20px; }
.workflow-detail-feed h3 { font-size: 13px; padding: 0 24px 16px; }
.completion-box { display: flex; align-items: flex-start; gap: 12px; padding: 20px; margin: 0 24px 24px; background: var(--green-soft); color: var(--green); border-radius: 4px; }
.completion-box strong { font-size: 13px; }
.completion-box p { font-size: 13px; margin-top: 8px; }
.integration-notice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); padding: 20px; border-radius: 4px; margin-bottom: 24px; }
.integration-notice>.icon { color: var(--accent); margin-top: 4px; }
.integration-notice strong { font-size: 13px; }
.integration-notice p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.connector-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.connector-card { padding: 24px; }
.connector-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.connector-logo { width: 40px; height: 40px; background: var(--sidebar); border-radius: 4px; display: grid; place-items: center; font-size: 15px; font-weight: 600; }
.connector-card h2 { font-size: 15px; }
.connector-category { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.connector-card p { font-size: 13px; color: var(--muted); margin: 16px 0; }
.empty-state { padding: 24px; font-size: 13px; text-align: center; color: var(--muted); }
.empty-state.large { padding: 40px; }
.empty-state h3 { color: var(--ink); font-size: 19px; margin: 16px 0 8px; }
.empty-state .button { margin-top: 20px; }
.connection-banner { background: var(--amber-soft); color: var(--amber); font-size: 13px; padding: 12px 32px; border-bottom: 1px solid var(--line); }
.page-footer { padding: 16px 32px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); }
dialog { border: 1px solid var(--line-strong); border-radius: 4px; padding: 24px; width: calc(100vw - 32px); max-width: 520px; max-height: calc(100vh - 32px); color: var(--ink); background: var(--surface); }
dialog::backdrop { background: var(--veil); }
dialog.wide { max-width: 720px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dialog-heading h2 { font-size: 19px; }
.dialog-description { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.dialog-description p+p { margin-top: 12px; }
dialog form>label { display: block; font-size: 13px; margin: 16px 0; font-weight: 500; }
dialog label>input:not([type=checkbox]),dialog label>textarea,dialog label>select { display: block; width: 100%; padding: 12px; border: 1px solid var(--line-strong); margin-top: 8px; font-size: 15px; color: var(--ink); background: var(--surface); }
dialog textarea { resize: vertical; min-height: 120px; }
dialog label.checkbox-label { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.checkbox-label input { margin-top: 4px; accent-color: var(--accent); }
.dialog-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.detail-callout { padding: 16px; background: var(--surface-subtle); border: 1px solid var(--line); border-radius: 4px; font-size: 13px; margin-bottom: 20px; }
.detail-callout p { color: var(--muted); margin-top: 8px; }
.detail-key-values>div { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 13px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-key-values>div>span:first-child { color: var(--muted); }
.detail-key-values strong { text-align: right; max-width: 70%; }
#toast { position: fixed; bottom: 24px; left: calc(50% + 116px); transform: translateX(-50%); max-width: min(540px,calc(100vw - 32px)); background: var(--ink); color: var(--surface); padding: 12px 20px; border-radius: 4px; font-size: 13px; z-index: 100; opacity: 0; pointer-events: none; }
#toast.visible { opacity: 1; }
@media(min-width:1600px) { main { padding: 40px; } .topbar { padding: 0 40px; } .revenue-chart { height: 264px; } }
@media(max-width:1250px) { :root { --sidebar-width: 208px; } main { padding: 24px; } .topbar { padding: 0 24px; } .page-actions .period-chip { display: none; } .metric { padding: 20px; } .metric-spark { display: none; } .overview-top,.overview-bottom,.finance-grid { gap: 20px; grid-template-columns: minmax(0,1.6fr) minmax(264px,1fr); } .agents-grid { gap: 20px; grid-template-columns: minmax(240px,.85fr) minmax(0,1.5fr); } .agent-row { padding: 16px; } .agent-row-status .badge { display: none; } .chart-summary>span { display: none; } .connector-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:1020px) { :root { --sidebar-width: 76px; } .sidebar { padding: 24px 8px 16px; } .brand { justify-content: center; padding: 0 0 24px; } .brand-word,.company-switch,.nav-label,.nav-link>span,.nav-count,.runtime-indicator,.sidebar-bottom .button,.personal-shortcut>span:nth-child(2),.personal-shortcut>.icon { display: none; } .nav-link { justify-content: center; padding: 12px 0; } .nav-link:nth-of-type(6) { margin-top: 24px; } .personal-shortcut { justify-content: center; } .sidebar-bottom { padding: 24px 0 0; } .team-intro { grid-template-columns: 1fr; gap: 12px; } .team-explainer { padding: 4px 0; } .workflow-grid { grid-template-columns: minmax(240px,.9fr) minmax(0,1.4fr); gap: 20px; } .workflow-list-item { padding: 16px; } .workflow-list-item>div { flex-wrap: wrap; } .finance-grid { grid-template-columns: 1fr; } #toast { left: calc(50% + 38px); } }
@media(max-width:800px) { .overview-top,.overview-bottom { grid-template-columns: 1fr; } .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .metric:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); } .metric:nth-child(4) { border-top: 1px solid var(--line); } .metrics.three { grid-template-columns: repeat(3,minmax(0,1fr)); } .metrics.three .metric:nth-child(3) { border-left: 1px solid var(--line); border-top: 0; } .metrics.three .metric>strong { font-size: 19px; } .agents-grid,.workflow-grid { grid-template-columns: 1fr; } .agent-directory { display: grid; grid-template-columns: 1fr 1fr; } .directory-heading,.directory-note { grid-column: 1/-1; } .agent-row { border-right: 1px solid var(--line); } .page-heading { flex-wrap: wrap; gap: 16px; } .page-actions { flex-wrap: wrap; } .workflow-banner>.badge { display: none; } .workforce-summary .mini-agents { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; } .table-wrap th,.table-wrap td { padding: 16px; } .breadcrumbs>span:first-of-type { max-width: 192px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .chart-summary>span { display: block; } .workflow-list { max-height: 280px; overflow-y: auto; } }
@media(max-width:600px) { .sidebar { transform: translateX(-100%); visibility: hidden; width: 232px; padding: 24px 12px 16px; } .menu-open .sidebar { transform: translateX(0); visibility: visible; box-shadow: 0 0 0 100vw var(--veil); top: 64px; } .brand { justify-content: flex-start; padding: 0 12px 24px; } .brand-word,.nav-label,.nav-link>span,.nav-count,.personal-shortcut>span:nth-child(2),.personal-shortcut>.icon { display: block; } .company-switch,.runtime-indicator { display: flex; } .sidebar-bottom .button { display: inline-flex; } .nav-link { justify-content: flex-start; padding: 12px; } .nav-link:nth-of-type(6) { margin-top: 0; } .personal-shortcut { justify-content: flex-start; } .workspace { margin-left: 0; } .topbar { height: 64px; padding: 0 16px; gap: 8px; position: relative; z-index: 31; } .mobile-toggle { display: flex; } .breadcrumbs { gap: 8px; font-size: 12px; } .breadcrumbs>span:first-of-type { max-width: 128px; } .breadcrumbs strong,.breadcrumbs .slash { display: none; } .header-right { gap: 4px; } .demo-label span,.header-right>.icon-button { display: none; } .user-avatar { width: 28px; height: 28px; font-size: 10px; } main { padding: 24px 16px; } .page-heading h1 { font-size: 27px; } .page-heading p { font-size: 13px; } .page-actions .button { font-size: 12px; } .metric { padding: 16px; } .metric>strong { font-size: 27px; } .metric-foot { font-size: 11px; } .metrics.three { grid-template-columns: 1fr; } .metrics.three .metric { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px; } .metrics.three .metric+.metric { border-left: 0; border-top: 1px solid var(--line); } .metrics.three .metric>strong { text-align: right; font-size: 27px; } .metrics.three .metric-foot { margin-top: 0; grid-column: 1/-1; } .metrics.three .metric-label { margin: 0; } .panel-head { padding: 16px; gap: 8px; } .panel-head p { font-size: 11px; } .panel-head .text-button { font-size: 11px; } .chart-summary { padding: 0 16px 16px; } .chart-summary>span { display: none; } .chart-legend { font-size: 11px; gap: 8px; } .revenue-chart { height: auto; min-height: 160px; padding: 0 4px 16px; } .attention-body { padding: 0 16px 16px; } .pipeline-strip { grid-template-columns: repeat(5,minmax(88px,1fr)); overflow-x: auto; padding: 0 16px 20px; gap: 16px; } .activity-list,.mini-agents { padding: 0 16px 8px; } .activity-item { gap: 8px; } .activity-meta>span { display: none; } .activity-meta time { font-size: 10px; } .activity-item p { font-size: 13px; } .workforce-summary .mini-agents { display: block; } .workforce-numbers { padding: 0 16px 16px; } .workforce-foot { padding: 12px 16px 20px; } .team-people { grid-template-columns: 1fr; gap: 12px; } .team-explainer { display: none; } .tabs { gap: 20px; } .tabs button { font-size: 12px; } .agent-directory { display: block; } .agent-row-status .badge { display: inline-flex; } .agent-profile { padding: 20px 16px 16px; } .agent-profile-title { gap: 8px; } .agent-description { padding: 0 16px 20px; } .agent-chat { padding: 20px 16px; } .chat-heading { flex-wrap: wrap; } .chat-message { font-size: 15px; } .chat-compose input { font-size: 15px; padding: 8px; } .workflow-banner { padding: 16px; } .workflow-detail-head { padding: 20px 16px; } .workflow-detail-head>div { flex-wrap: wrap; } .workflow-steps { padding: 24px 16px 8px; } .step-body>div { flex-wrap: wrap; gap: 4px; } .approval-action,.completion-box { margin: 0 16px 20px; padding: 16px; } .approval-action>div:last-child { flex-wrap: wrap; } .workflow-detail-feed h3 { padding: 0 16px 16px; } .connector-grid { grid-template-columns: 1fr; gap: 16px; } .page-footer { padding: 16px; flex-wrap: wrap; gap: 4px; } .page-footer>span { width: 100%; } .connection-banner { padding: 12px 16px; } #toast { left: 50%; bottom: 16px; } }
@media(prefers-reduced-motion:reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
.workflow-list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.workflow-list-item>span:first-child { min-width: 0; }
.workflow-list-item strong { display: block; }

/* ── Messages (Team & agents) ──────────────────────────────────────────────
   The PE dashboard's Messages screen, on this terminal's palette: three
   sources as subtabs over one transcript. Every value is a token from the
   scale above — a literal written at the point of use is one the palette can
   never be changed from. */
.msg-screen { display: flex; flex-direction: column; gap: 12px; }
.msg-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.msg-tabs .button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.msg-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .msg-shell { grid-template-columns: minmax(0, 1fr); } }

.msg-list {
  display: flex; flex-direction: column; gap: 4px;
  max-height: min(560px, calc(100vh - 340px)); overflow-y: auto;
  border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: var(--surface);
}
.msg-row {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  text-align: left; width: 100%; padding: 8px 10px;
  border: 1px solid transparent; border-radius: 8px; background: none; cursor: pointer;
}
.msg-row:hover { background: var(--surface-subtle); }
.msg-row.selected { background: var(--surface-subtle); border-color: var(--line); }
.msg-row strong { font-size: 13px; color: var(--ink); font-weight: 600; }
.msg-row small { font-size: 11.5px; color: var(--muted); }

.msg-pane { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
/* Bounded and scrollable: a long conversation must not push the page down. */
.msg-stream {
  display: flex; flex-direction: column; gap: 10px; padding: 16px;
  overflow-y: auto;
  min-height: min(360px, calc(100vh - 420px));
  max-height: min(560px, calc(100vh - 340px));
}
.msg-empty { font-size: 12.5px; color: var(--muted); padding: 20px; text-align: center; margin: 0; }
.msg-day {
  align-self: center; font-size: 11px; color: var(--muted);
  padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px;
}
.msg-bubble-row { display: flex; flex-direction: column; max-width: 72%; }
.msg-bubble-row.mine { align-self: flex-end; align-items: flex-end; }
.msg-bubble-row.theirs { align-self: flex-start; }
.msg-who { font-size: 11px; color: var(--muted); margin: 0 4px 3px; }
.msg-bubble {
  font-size: 13px; line-height: 1.55; padding: 9px 12px; border-radius: 14px;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.msg-bubble-row.theirs .msg-bubble { background: var(--surface-subtle); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink); }
.msg-bubble-row.mine .msg-bubble { background: var(--accent); border: 1px solid var(--accent); border-bottom-right-radius: 4px; color: var(--surface); }
.msg-time { font-size: 10.5px; color: var(--muted); margin: 3px 4px 0; }
.msg-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.msg-file {
  display: inline-flex; align-items: center; gap: 5px; max-width: 240px;
  padding: 3px 8px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); font-size: 11.5px; color: var(--ink); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.msg-file.is-dead { opacity: .62; border-style: dashed; }
.msg-note { font-size: 12px; color: var(--muted); margin: 0; }

/* Composer. Sits inside .msg-pane under the transcript, so the send control is
   in the same box as the conversation it posts to. */
.msg-composer { border-top: 1px solid var(--line); padding: 12px 16px; background: var(--surface); }
.msg-composer-row { display: flex; align-items: center; gap: 8px; }
.msg-composer-row input[type="text"] {
  flex: 1 1 auto; min-width: 0;
  font: inherit; font-size: 13px; color: var(--ink);
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface-subtle);
}
.msg-composer-row input[type="text"]:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.msg-composer-row input[type="text"]:disabled { opacity: .6; }
.msg-composer-row .button { flex: 0 0 auto; }
/* Staged, not yet sent: dashed, and each one removable. */
.msg-files-pending { margin: 0 0 8px; }
.msg-file.is-pending { border-style: dashed; color: var(--muted); }
.msg-file-x {
  border: 0; background: none; cursor: pointer; padding: 0 0 0 6px;
  font-size: 13px; line-height: 1; color: var(--muted);
}
.msg-file-x:hover { color: var(--ink); }
.msg-readonly {
  border-top: 1px solid var(--line); margin: 0;
  padding: 12px 16px; font-size: 12px; color: var(--muted);
}
