/* BluFox OS design tokens — Blu #00a2ff on Ink #020617, Space Grotesk + Inter. */
@font-face { font-family: "Space Grotesk"; src: url("brand/fonts/SpaceGrotesk-latin-variable.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("brand/fonts/Inter-latin-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #02101f;
  --ink-2: #051a30;
  --ink-3: #07223f;
  --glass: rgba(8, 44, 92, 0.5);
  --glass-2: rgba(6, 36, 76, 0.82);
  --line: rgba(0, 162, 255, 0.16);
  --line-2: rgba(0, 162, 255, 0.35);
  --text: #e2e8f0;
  --text-2: #d3dce8;
  --muted: #a3b2c7;
  --muted-2: #7a889c;
  --blu: #00a2ff;
  --cobalt: #2563eb;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --amber: #f59e0b;
  --red: #ef4444;
  --green: #22c55e;
  --claude: #f59e0b;
  --codex: #22d3ee;
  --display: "Space Grotesk", "Segoe UI Variable Display", sans-serif;
  --body: Inter, "Segoe UI", system-ui, sans-serif;
  /* BluBeds brand type everywhere text is read; --code is only for real code and logs. */
  --mono: var(--body);
  --code: "Cascadia Code", Consolas, "JetBrains Mono", monospace;
  --nav-w: 232px;
  --nav-w-collapsed: 64px;
  --rail-w: 340px;
  --top-h: 48px;
  --bar-h: 76px;
  --r: 12px;
  --r-s: 8px;
  /* Surfaces that used to be hard-coded ink. Bright mode overrides them in shell-extras.css. */
  --well: rgba(2, 16, 40, 0.6);        /* inset wells: prompts, previews, code, pills */
  --well-soft: rgba(4, 28, 64, 0.4);   /* lighter wells: ministats, explorer, cron rows */
  --panel: rgba(5, 26, 52, 0.96);      /* floating panels: popovers, tooltips, cards over the canvas */
  --scrim: rgba(2, 12, 32, 0.66);       /* full-screen backdrop behind modals */
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); font-size: 13.5px; line-height: 1.45; font-weight: 430; letter-spacing: 0.003em; font-variant-numeric: tabular-nums; overflow: hidden; -webkit-font-smoothing: antialiased; }
/* Readability floor: nothing meant to be read drops below 11.5px. */
small, .muted, .s, .auto-pop small, .hire-row label, .hire-chips button, .role-card small { font-size: max(11.5px, 0.86em); }
b, strong { font-weight: 620; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--blu); }
code, kbd { font-family: var(--code); font-size: 11px; }
kbd { padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: rgba(0,162,255,0.08); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(0, 162, 255, 0.18); border-radius: 8px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.ico { display: inline-flex; vertical-align: middle; line-height: 0; }

/* boot */
.boot { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--ink); }
.boot-inner { display: grid; place-items: center; gap: 18px; }
.boot-ring { width: 96px; height: 96px; border-radius: 50%; border: 1px solid rgba(0,162,255,0.25); border-top-color: var(--blu); animation: spin 1s linear infinite; box-shadow: 0 0 40px rgba(0,162,255,0.2) inset; }
.boot-text { font-family: var(--display); letter-spacing: 0.4em; font-size: 12px; color: var(--blu); }
.boot-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* shell */
.shell { height: 100vh; display: grid; grid-template-rows: var(--top-h) 1fr auto; }
.topbar { display: grid; grid-template-columns: var(--nav-w) 1fr auto; align-items: center; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(7,34,63,0.95), rgba(2,16,40,0.95)); -webkit-app-region: drag; }
.shell.collapsed .topbar { grid-template-columns: var(--nav-w-collapsed) 1fr auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 100%; }
.brand-logo { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--blu), var(--cobalt)); display: grid; place-items: center; color: #fff; box-shadow: 0 0 18px rgba(0,162,255,0.45); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.brand-name b { color: var(--blu); font-weight: 700; }
.brand-sub { font-size: 9.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; }
.shell.collapsed .brand-name, .shell.collapsed .brand-sub { display: none; }
.top-center { display: flex; align-items: center; gap: 14px; padding: 0 18px; -webkit-app-region: no-drag; }
.workspace { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 12.5px; }
.workspace .crumb { color: var(--muted); font-weight: 400; }
.workspace .crumb::before { content: "/"; margin: 0 8px; color: var(--muted-2); }
.gsearch { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0,162,255,0.08); color: var(--muted); cursor: text; transition: border-color 0.2s; }
.gsearch:hover, .gsearch:focus-within { border-color: var(--line-2); }
.gsearch input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); }
.gsearch kbd { margin-left: auto; }
.top-right { display: flex; align-items: center; height: 100%; -webkit-app-region: no-drag; }
.agent-status { display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.agent-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.agent-status i.amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.topbtn { width: 40px; height: var(--top-h); display: grid; place-items: center; color: var(--muted); position: relative; }
.topbtn:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.topbtn.close:hover { background: var(--red); color: #fff; }
.topbtn .count { position: absolute; top: 9px; right: 7px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--amber); color: var(--ink); font-size: 9.5px; font-weight: 700; display: grid; place-items: center; }

.body { display: grid; grid-template-columns: var(--nav-w) 1fr; min-height: 0; }
.shell.collapsed .body { grid-template-columns: var(--nav-w-collapsed) 1fr; }
.shell.rail .body { grid-template-columns: var(--nav-w) 1fr var(--rail-w); }
.shell.rail.collapsed .body { grid-template-columns: var(--nav-w-collapsed) 1fr var(--rail-w); }

/* nav */
.nav { border-right: 1px solid var(--line); background: var(--ink-2); display: flex; flex-direction: column; padding: 10px 8px; gap: 2px; min-height: 0; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px; color: var(--muted); font-size: 12.5px; font-weight: 500; position: relative; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.nav-item:hover { background: rgba(0,162,255,0.1); color: var(--text); }
.nav-item.active { background: rgba(0,162,255,0.12); color: var(--text); }
.nav-item.active::before { content: ""; position: absolute; left: -8px; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--blu); box-shadow: 0 0 10px var(--blu); }
.nav-item .ico { color: inherit; flex-shrink: 0; }
.nav-item em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.nav-item em.hot { color: var(--amber); }
.shell.collapsed .nav-item span, .shell.collapsed .nav-item em { display: none; }
.shell.collapsed .nav-item { justify-content: center; padding: 10px 0; }
.nav-foot { margin-top: auto; padding: 10px 6px 4px; font-size: 10px; color: var(--muted-2); line-height: 1.5; }
.nav-foot b { color: var(--muted); font-weight: 500; }
.shell.collapsed .nav-foot { display: none; }
.nav-toggle { display: flex; align-items: center; justify-content: center; height: 30px; color: var(--muted-2); border-top: 1px solid var(--line); margin-top: 6px; }

/* canvas + right rail */
.canvas { position: relative; min-width: 0; min-height: 0; display: grid; grid-template-rows: 1fr var(--bar-h); background: radial-gradient(900px 500px at 70% -10%, rgba(0,162,255,0.2), transparent 60%), var(--ink); }
.stage { position: relative; min-height: 0; overflow: hidden; }
.screen { position: absolute; inset: 0; overflow-y: auto; padding: 22px 26px 30px; }
.rail { border-left: 1px solid var(--line); background: var(--ink-2); min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 18px; }

/* command bar */
.cmdbar { border-top: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(12px); display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 0 18px 0 12px; }
.cmdbar canvas { width: 56px; height: 56px; cursor: pointer; }
.cmd-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cmd-state { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blu); font-family: var(--mono); display: flex; gap: 10px; }
.cmd-state.listening { color: var(--cyan); } .cmd-state.thinking { color: var(--violet); } .cmd-state.awaiting { color: var(--amber); } .cmd-state.error { color: var(--red); }
.cmd-state .last { color: var(--muted); letter-spacing: 0; text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-input { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,162,255,0.08); }
.cmd-input:focus-within { border-color: var(--line-2); box-shadow: 0 0 0 3px rgba(0,162,255,0.08); }
.cmd-input input { flex: 1; background: none; border: 0; outline: 0; font-size: 13px; }
.cmd-input .ibtn { color: var(--muted); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; }
.cmd-input .ibtn:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.cmd-input .ibtn.send { color: var(--blu); }
.cmd-hints { display: flex; gap: 8px; font-size: 11px; color: var(--muted-2); white-space: nowrap; }

/* primitives */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0,162,255,0.08); font-size: 12px; font-weight: 500; transition: background 0.15s, border-color 0.15s, transform 0.1s; }
.btn:hover { background: rgba(255,255,255,0.07); border-color: rgba(0, 162, 255, 0.3); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--blu); border-color: var(--blu); color: #04111a; font-weight: 600; }
.btn.primary:hover { background: #33b5ff; }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.btn.danger { color: var(--red); border-color: rgba(239,68,68,0.3); }
.btn.small { padding: 4px 9px; font-size: 11px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 500; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.health.healthy, .badge.work.done, .badge.agent.completed, .badge.sev.success { color: var(--green); border-color: rgba(34,197,94,0.3); }
.badge.health.degraded, .badge.work.blocked, .badge.agent.waiting_approval, .badge.sev.warn { color: var(--amber); border-color: rgba(245,158,11,0.35); }
.badge.health.down, .badge.agent.failed, .badge.sev.error { color: var(--red); border-color: rgba(239,68,68,0.35); }
.badge.health.stopped { color: var(--muted); }
.badge.health.unknown { color: var(--muted-2); border-style: dashed; }
.badge.lifecycle.live { color: var(--green); border-color: rgba(34,197,94,0.3); }
.badge.lifecycle.development, .badge.lifecycle.testing, .badge.agent.running, .badge.work.in_progress { color: var(--blu); border-color: rgba(0,162,255,0.35); }
.badge.lifecycle.planning, .badge.lifecycle.pending, .badge.lifecycle.idea, .badge.work.backlog, .badge.agent.queued { color: var(--muted); }
.badge.lifecycle.ready, .badge.work.ready, .badge.work.review { color: var(--cyan); border-color: rgba(34,211,238,0.3); }
.badge.lifecycle.maintenance { color: var(--violet); border-color: rgba(139,92,246,0.3); }
.badge.lifecycle.archived, .badge.agent.idle { color: var(--muted-2); }
.badge.env { color: var(--text-2); }
.badge.env.local { color: var(--cyan); } .badge.env.vps { color: var(--violet); } .badge.env.cloud, .badge.env.hosted { color: var(--blu); } .badge.env.hybrid { color: var(--amber); } .badge.env.unassigned { color: var(--muted-2); border-style: dashed; }
.badge.agent.running i { animation: breathe 1.4s infinite; }
@keyframes breathe { 50% { opacity: 0.35; } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0,162,255,0.06); font-size: 11.5px; color: var(--muted); }
.chip.on { border-color: var(--line-2); color: var(--text); background: rgba(0,162,255,0.1); }
.chip:hover { color: var(--text); }
.pill { font-family: var(--mono); font-size: 10px; padding: 1px 7px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.pill.success, .pill.approved, .pill.mergeable { color: var(--green); border-color: rgba(34,197,94,0.35); }
.pill.failure, .pill.error, .pill.changes_requested, .pill.conflicting { color: var(--red); border-color: rgba(239,68,68,0.35); }
.pill.pending, .pill.expected, .pill.review_required { color: var(--amber); border-color: rgba(245,158,11,0.35); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot.claude { background: var(--claude); box-shadow: 0 0 8px var(--claude); } .dot.codex { background: var(--codex); box-shadow: 0 0 8px var(--codex); } .dot.laya-n { background: var(--violet); } .dot.custom { background: var(--muted); }

.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; backdrop-filter: blur(10px); }
.card.hover { transition: border-color 0.15s, transform 0.15s; cursor: pointer; }
.card.hover:hover { border-color: var(--line-2); transform: translateY(-1px); }
.card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.card-h b { font-family: var(--display); font-weight: 600; font-size: 13px; }
.sec { margin-top: 22px; }
.sec:first-child { margin-top: 0; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blu); font-weight: 600; }
.sec-h .sec-aside { color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 400; display: flex; gap: 8px; align-items: center; }
.grid { display: grid; gap: 12px; }
.grid > * { min-width: 0; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid.c6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.row2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
.row2 > * { min-width: 0; }
.empty { display: grid; place-items: center; gap: 6px; padding: 34px 20px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); text-align: center; }
.empty b { color: var(--text-2); font-family: var(--display); }
.empty p { margin: 0; font-size: 12px; max-width: 420px; line-height: 1.5; }
.empty .ico { color: var(--muted-2); }

.stat { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-s); background: rgba(0,162,255,0.06); cursor: pointer; transition: border-color 0.15s; }
.stat:hover { border-color: var(--line-2); }
.stat b { display: block; font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--text); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.stat.warn b { color: var(--amber); } .stat.bad b { color: var(--red); } .stat.good b { color: var(--green); } .stat.blu b { color: var(--blu); }

.h1 { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin: 0; line-height: 1.1; }
.h1 small { display: block; font-family: var(--body); font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 5px; letter-spacing: 0; }
.screen-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; gap: 16px; }
.screen-head .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; max-width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #273448 transparent; }
.tab { flex: 0 0 auto; padding: 10px 14px; font-size: 12px; color: var(--muted); position: relative; font-weight: 500; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); }
.tab.active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--blu); box-shadow: 0 0 10px var(--blu); border-radius: 2px; }
.tab em { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--muted-2); margin-left: 6px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filters .sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }

/* lists & rows */
.list { display: flex; flex-direction: column; gap: 6px; }
.rowi { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid transparent; border-radius: var(--r-s); background: rgba(0,162,255,0.06); cursor: pointer; transition: background 0.15s, border-color 0.15s; min-width: 0; }
.rowi > * { min-width: 0; }
.rowi:hover { background: rgba(0,162,255,0.06); border-color: var(--line); }
.rowi.sel { border-color: var(--line-2); background: rgba(0,162,255,0.08); }
.rowi .t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowi .s { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.rowi .s .blu { color: var(--blu); }
.rowi .q { font-size: 11.5px; color: var(--text-2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowi .r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rowi .r small { font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.rowi .led { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.rowi .led.running { background: var(--green); box-shadow: 0 0 8px var(--green); animation: breathe 1.4s infinite; }
.rowi .led.waiting_approval { background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: breathe 0.9s infinite; }
.rowi .led.idle { background: var(--blu); opacity: 0.6; } .rowi .led.completed { background: var(--muted-2); }
.rowi .led.healthy { background: var(--green); } .rowi .led.down { background: var(--red); box-shadow: 0 0 8px var(--red); } .rowi .led.degraded { background: var(--amber); } .rowi .led.unknown { background: transparent; border: 1px dashed var(--muted-2); }

table.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th { text-align: left; font-weight: 500; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: rgba(0,162,255,0.05); }
.tbl td.name { font-weight: 500; }
.tbl td.name small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }

.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: rgba(0,162,255,0.06); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-height: 200px; }
.kcol h4 { margin: 2px 4px 10px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.kcard { padding: 10px 11px; margin-bottom: 8px; border-radius: 8px; background: var(--glass-2); border: 1px solid var(--line); cursor: pointer; font-size: 12px; }
.kcard:hover { border-color: var(--line-2); }
.kcard .m { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }

/* activity timeline */
.event { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); align-items: start; }
.event .led { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--muted-2); }
.event .led.success { background: var(--green); } .event .led.warn { background: var(--amber); } .event .led.error { background: var(--red); box-shadow: 0 0 8px var(--red); } .event .led.info { background: var(--blu); }
.event .t { font-weight: 500; }
.event .d { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.event .meta { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.event time { font-family: var(--mono); font-size: 10px; color: var(--muted-2); white-space: nowrap; }

/* approvals */
.approval { padding: 12px 14px; border-radius: var(--r-s); border: 1px solid rgba(245,158,11,0.3); background: linear-gradient(90deg, rgba(245,158,11,0.08), transparent); }
.approval b { font-family: var(--display); font-size: 12.5px; }
.approval p { margin: 6px 0; font-size: 12px; color: var(--text-2); line-height: 1.45; white-space: pre-wrap; }
.approval .prompt { margin: 8px 0; padding: 9px 11px; border-left: 2px solid var(--amber); background: var(--well); border-radius: 0 6px 6px 0; font-size: 12px; }
.approval .acts { display: flex; gap: 6px; margin-top: 8px; }
.approval.approved { border-color: rgba(34,197,94,0.3); background: linear-gradient(90deg, rgba(34,197,94,0.06), transparent); }
.approval.dismissed { opacity: 0.5; }

/* office */
.office-wrap { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); overflow: hidden; }
.office-wrap canvas { display: block; width: 100%; height: 100%; }
.office-hud { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.office-hud .btn { pointer-events: auto; }
.office-hud-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.office-legend { display: inline-flex; gap: 10px; margin-right: 6px; pointer-events: none; }
.office-legend span { display: inline-flex; align-items: center; gap: 4px; }
.office-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; box-shadow: 0 0 6px currentColor; }
/* 3D office (AI Workforce): HTML labels and speech bubbles projected over the canvas */
.office-3d { background: radial-gradient(120% 90% at 50% 0%, rgba(0,162,255,0.16), rgba(2,16,31,0.95) 60%); cursor: grab; }
.office-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.olabel { position: absolute; left: 0; top: 0; will-change: transform; white-space: nowrap; transform-origin: 0 100%; }
.olabel b { display: block; font-family: var(--display); font-size: 13px; color: var(--text); text-shadow: 0 1px 8px rgba(2,16,31,0.9); }
.olabel small { display: block; font-size: 10px; color: var(--muted); letter-spacing: 0.04em; }
.olabel.wing b { font-size: 17px; color: var(--blu); letter-spacing: 0.06em; text-transform: uppercase; }
.olabel.waiting b, .olabel.lobby b { color: #7dd3fc; }
.olabel.off { opacity: 0.55; }
.obubble { position: absolute; left: 0; top: 0; max-width: 220px; transform-origin: 50% 100%; margin: -8px 0 0 -110px; padding: 6px 9px; border-radius: 10px 10px 10px 3px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 8px 24px rgba(0,30,70,0.45); font-size: 11.5px; line-height: 1.35; color: var(--text); animation: bubble-in 0.25s ease-out; }
.obubble b { display: block; font-size: 10px; color: var(--blu); margin-bottom: 2px; letter-spacing: 0.04em; }
.obubble span { display: block; }
.obubble.ask { border-color: rgba(245,158,11,0.7); }
.obubble.ask b { color: #f59e0b; }
.obubble.reply { border-radius: 10px 10px 3px 10px; }
.obubble.chat, .obubble.reply { opacity: 0.92; }
.omark { position: absolute; left: 0; top: 0; margin: -10px 0 0 -40px; width: 80px; text-align: center; font-size: 10.5px; color: var(--muted); text-shadow: 0 1px 6px rgba(2,16,31,0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.omark.ask { color: #f59e0b; font-weight: 700; }
@keyframes bubble-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
.tooltip { position: absolute; z-index: 5; pointer-events: none; padding: 8px 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); font-size: 12px; backdrop-filter: blur(8px); transform: translate(14px, 14px); max-width: 280px; }
.tooltip b { color: var(--blu); font-family: var(--display); }
.tooltip small { display: block; color: var(--muted); margin-top: 3px; font-size: 11px; line-height: 1.4; }

/* command center hero */
.hero { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: center; padding: 10px 6px 4px; }
.hero-core { position: relative; display: grid; place-items: center; }
.hero-core canvas { width: 280px; height: 280px; }
.hero-core .label { position: absolute; bottom: 8px; font-family: var(--display); font-size: 10.5px; letter-spacing: 0.3em; color: var(--blu); text-transform: uppercase; }
.hero-text .h1 { font-size: 32px; }
.suggest { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.suggest .chip { cursor: pointer; }

/* galaxy */
.galaxy { position: relative; height: 560px; border: 1px solid var(--line); border-radius: var(--r); background: radial-gradient(600px 400px at 50% 50%, rgba(37,99,235,0.12), transparent 70%), var(--ink-2); overflow: hidden; }
.galaxy canvas { width: 100%; height: 100%; display: block; }
.tree { font-size: 12.5px; }
.tree .node { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; cursor: pointer; }
.tree .node:hover { background: rgba(0,162,255,0.1); }
.tree .node.sel { background: rgba(0,162,255,0.1); }
.tree .node .ico { color: var(--muted-2); }
.tree .kids { margin-left: 18px; border-left: 1px solid var(--line); padding-left: 6px; }
.tree .node .m { margin-left: auto; display: flex; gap: 6px; }

/* terminal */
.term { display: grid; grid-template-rows: auto 1fr auto; height: 100%; gap: 12px; }
.term-log { overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; }
.msg { max-width: 860px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.msg.you { align-self: flex-end; border-color: rgba(0,162,255,0.3); background: rgba(0,162,255,0.08); }
.msg.sys { align-self: center; color: var(--muted); font-size: 11.5px; background: none; border-style: dashed; }
.msg.err { border-color: rgba(239,68,68,0.4); color: #fca5a5; }
.msg b.who { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 6px; }
.msg .cursor { display: inline-block; width: 7px; height: 13px; background: var(--blu); margin-left: 2px; animation: breathe 0.8s infinite; vertical-align: text-bottom; }
.term-input { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.term-input textarea { resize: none; height: 72px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,162,255,0.08); outline: 0; font-family: var(--body); }
.term-input textarea:focus { border-color: var(--line-2); }

/* right rail */
.rail h4 { margin: 0 0 8px; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blu); }
.rail .mini { display: grid; grid-template-columns: 8px 1fr; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(0,162,255,0.06); font-size: 12px; cursor: pointer; margin-bottom: 5px; align-items: center; }
.rail .mini:hover { background: rgba(0,162,255,0.06); }
.rail .mini .s { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .mini .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.insight { padding: 10px 12px; border-left: 2px solid var(--violet); background: rgba(139,92,246,0.06); border-radius: 0 8px 8px 0; font-size: 12px; line-height: 1.45; color: var(--text-2); }

/* drawer */
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 70%); background: var(--ink-2); border-left: 1px solid var(--line-2); box-shadow: -30px 0 60px rgba(0,0,0,0.5); z-index: 8; overflow-y: auto; padding: 22px 24px; }
.drawer .close { position: absolute; top: 14px; right: 14px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 12px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-all; }
.commit { display: grid; grid-template-columns: 62px 1fr 72px; gap: 10px; font-size: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.commit code { color: var(--blu); } .commit span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .commit em { color: var(--muted); font-style: normal; text-align: right; font-size: 11px; }
.turn { padding: 8px 10px; margin-bottom: 6px; border-radius: 6px; font-size: 12px; line-height: 1.45; background: rgba(255,255,255,0.025); }
.turn.you { border-left: 2px solid var(--claude); } .turn.agent { border-left: 2px solid var(--blu); color: var(--text-2); }
.turn b { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted); display: block; margin-bottom: 3px; }
.talk { padding: 14px 16px; border-left: 2px solid var(--amber); background: linear-gradient(90deg, rgba(245,158,11,0.08), transparent); border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.45; }
.talk small { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.06); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blu); border-radius: 3px; }
pre.log { margin: 0; padding: 10px 12px; border-radius: 8px; background: #020617; border: 1px solid var(--line); font-family: var(--code); font-size: 11px; max-height: 240px; overflow: auto; white-space: pre-wrap; color: var(--text-2); }

/* modal, fields, toasts */
$1background: var(--scrim); display: grid; place-items: center; backdrop-filter: blur(6px); }
.modal-card { width: 560px; max-height: 86vh; overflow-y: auto; padding: 24px 26px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--ink-3); }
.modal-card h2 { margin: 0 0 14px; font-family: var(--display); font-size: 17px; }
.modal-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 8px; }
.field { display: block; margin-top: 12px; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select { display: block; width: 100%; margin-top: 6px; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0,162,255,0.08); color: var(--text); outline: 0; text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--line-2); }
.field select option { background: var(--ink-3); }
.field small { display: block; text-transform: none; letter-spacing: 0; margin-top: 4px; color: var(--muted-2); }
#toasts { position: fixed; right: 20px; bottom: 90px; z-index: 70; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 10px 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); font-size: 12.5px; opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s; max-width: 380px; }
.toast.in { opacity: 1; transform: none; }
.toast.success { border-color: rgba(34,197,94,0.4); } .toast.error { border-color: rgba(239,68,68,0.4); }

/* palette */
$1background: var(--scrim); backdrop-filter: blur(4px); display: grid; align-items: start; justify-items: center; padding-top: 12vh; }
.palette-card { width: 640px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--ink-3); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.palette-card input { width: 100%; padding: 16px 18px; background: none; border: 0; border-bottom: 1px solid var(--line); outline: 0; font-size: 15px; }
.palette-list { max-height: 420px; overflow-y: auto; padding: 6px; }
.pitem { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.pitem.sel, .pitem:hover { background: rgba(0,162,255,0.1); }
.pitem small { color: var(--muted); font-size: 11px; }
.pitem .k { font-family: var(--mono); font-size: 10px; color: var(--muted-2); }

@media (max-width: 1400px) { .grid.c6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero { grid-template-columns: 220px 1fr; } .hero-core canvas { width: 200px; height: 200px; } }

/* ---- VPS inventory & file browser ---- */
.ministats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ministat { background: var(--well-soft); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.ministat b { display: block; font-family: var(--display); font-size: 16px; font-weight: 700; }
.ministat span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.static { cursor: default; }
.chip.static b { color: var(--blu); margin-right: 2px; }
select.inline { font: inherit; font-size: 11.5px; background: var(--well); color: inherit; border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; max-width: 180px; }
.explorer { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--well-soft); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; }
.crumbs button { background: none; border: 0; color: var(--blu); cursor: pointer; font: inherit; padding: 0 2px; }
.crumbs button:hover { text-decoration: underline; }
.crumbs i { color: var(--muted); font-style: normal; }
.filelist { max-height: 380px; overflow: auto; }
.filelist .frow { display: grid; grid-template-columns: 16px minmax(0, 1fr) 80px 110px; gap: 8px; align-items: center; padding: 6px 10px; font-size: 12px; cursor: pointer; border-bottom: 1px solid rgba(0, 162, 255, 0.08); }
.filelist .frow:hover { background: rgba(0,162,255,0.07); }
.filelist .frow b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist .frow.dir b { font-weight: 600; }
.filelist .frow.link, .filelist .frow.other { cursor: default; opacity: 0.75; }
.filelist .fk { color: var(--blu); text-align: center; }
.filelist .sz, .filelist .mt { color: var(--muted); font-family: var(--mono); font-size: 10.5px; text-align: right; white-space: nowrap; }
.file-preview { border-top: 1px solid var(--line); }
.file-preview header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.file-preview header .bad { color: var(--red); }
.file-preview pre { margin: 0; padding: 10px; max-height: 340px; overflow: auto; font-size: 11.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }

/* ---- Token usage ---- */
.tabs.inline { display: inline-flex; gap: 2px; margin: 0; border: 0; }
.tabs.inline .tab { padding: 3px 9px; font-size: 11px; }
.ubars { display: flex; align-items: flex-end; gap: 4px; height: 190px; padding: 6px 2px 0; }
.ucol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.ustack { width: 100%; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; min-height: 2px; background: rgba(0, 162, 255, 0.08); }
.ustack i { display: block; width: 100%; min-height: 1px; }
.ucol span { font-family: var(--mono); font-size: 9px; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.legend i, .swatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
/* ---- Automations ---- */
.cronlist { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.cron { display: grid; grid-template-columns: minmax(90px, auto) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 11.5px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--well-soft); }
.cron code { font-family: var(--code); font-size: 10.5px; color: var(--blu); white-space: nowrap; }
.cron span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cron em { font-style: normal; font-size: 10px; color: var(--muted); white-space: nowrap; }

/* ---- Terminal: parked threads, context bar, delegation flow ---- */
.parked { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.parked .pcard { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; border: 1px dashed var(--line-2); border-radius: 8px; font-size: 11.5px; background: var(--well-soft); }
.parked .pcard b { font-weight: 600; }
.parked .pcard em { font-style: normal; color: var(--muted); font-size: 10.5px; }
.ctxbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.ctxbar .chip { cursor: pointer; }
.ctxbar .chip.off { opacity: 0.5; text-decoration: line-through; }
.dflow { position: relative; display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 22px 22px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--glass); overflow: hidden; }
.dflow .dline { position: absolute; left: 60px; right: 60px; top: 23px; height: 2px; background: linear-gradient(90deg, rgba(0,162,255,0.08), rgba(0,162,255,0.4), rgba(0,162,255,0.08)); }
.dnode { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 110px; }
$1background: var(--ink-3); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.dnode b { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--muted); }
.dnode small { font-size: 10.5px; color: var(--text-2); max-width: 150px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dnode.active i.dot { border-color: var(--blu); background: var(--blu); box-shadow: 0 0 16px rgba(0,162,255,0.7); }
.dnode.active b { color: var(--blu); }
.dnode.done i.dot { border-color: var(--green); background: rgba(34,197,94,0.35); }
.dnode.error i.dot { border-color: var(--red); background: rgba(239,68,68,0.45); box-shadow: 0 0 14px rgba(239,68,68,0.6); }
.dpacket { position: absolute; top: 16px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--blu); box-shadow: 0 0 16px var(--blu); z-index: 2; opacity: 0; pointer-events: none; }
.dstatus { position: absolute; right: 14px; bottom: 5px; display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

/* Next-step ideation */
.approval.idea { border-color: rgba(0,162,255,0.32); background: linear-gradient(90deg, rgba(0,162,255,0.08), transparent); }
.approval.idea .idea-prompt { width: 100%; margin: 8px 0 2px; padding: 9px 11px; border: 1px solid rgba(0,162,255,0.25); border-left: 2px solid var(--blu, #00a2ff); border-radius: 0 6px 6px 0; background: var(--well); color: inherit; font: inherit; font-size: 12px; line-height: 1.45; resize: vertical; }
.approval.idea .idea-note { display: block; min-height: 14px; font-size: 10.5px; color: var(--amber); }
.idea-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.idea-bar input { flex: 1; min-width: 0; }
.idea-problem { margin: 8px 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.idea-own { margin-top: 12px; }
.idea-own textarea { width: 100%; resize: vertical; }
.idea-own .acts { display: flex; gap: 6px; margin-top: 6px; }
.skill-row .s { white-space: normal; }
.idea-bar input, .idea-own textarea { padding: 8px 11px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0,162,255,0.08); color: var(--text); outline: 0; font-size: 12.5px; }
.idea-bar input:focus, .idea-own textarea:focus, .approval.idea .idea-prompt:focus { border-color: var(--line-2); outline: 0; }
.signin { margin-top: 10px; }
.signin-state { font-size: 11.5px; display: flex; align-items: center; gap: 4px; color: var(--text-2); }
.signin-state.ok { color: var(--green, #22c55e); }
.signin-state.wait { color: var(--amber); }
.signin .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ibtn.handsfree { width: auto; padding: 0 9px; font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; }
.ibtn.handsfree.on { color: #fff; background: var(--blu, #00a2ff); border-color: var(--blu, #00a2ff); box-shadow: 0 0 12px rgba(0,162,255,0.55); }
/* Live = ElevenLabs Agents mode: violet so it never reads as hands-free. */
.ibtn.handsfree.live.on { background: #7c3aed; border-color: #7c3aed; box-shadow: 0 0 12px rgba(124,58,237,0.6); }
.mem0-engine { display: grid; gap: 8px; margin: 10px 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,162,255,0.06); }
.mem0-row { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 8px; align-items: center; font-size: 12px; }
.mem0-row select { min-width: 0; }
.mem0-embedder .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.mem0-row select { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0,162,255,0.08); color: var(--text); font-size: 12px; outline: 0; }
.mem0-row select option { background: var(--ink-3); color: var(--text); }

/* JARVIS page: the live wisp */
.screen.blufox-page { display: grid; grid-template-rows: 1fr auto auto auto; gap: 12px; height: 100%; min-height: 0; justify-items: center; padding-bottom: 12px; }
.jarvis-stage { width: 100%; height: 100%; min-height: 320px; display: grid; place-items: center; }
.jarvis-stage canvas { width: min(100%, 72vh); height: min(100%, 72vh); aspect-ratio: 1; display: block; }
.jarvis-status { font-family: var(--display); font-size: 15px; letter-spacing: 0.06em; color: var(--text-2); }
.jarvis-status[data-state="listening"] { color: #34d399; }
.jarvis-status[data-state="thinking"], .jarvis-status[data-state="executing"] { color: var(--blu, #00a2ff); }
.jarvis-status[data-state="error"] { color: #f87171; }
.blufox-page form { width: min(640px, 90%); }
.jarvis-ask { width: 100%; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,162,255,0.08); color: var(--text); font-size: 14px; outline: 0; }
.jarvis-ask:focus { border-color: var(--line-2); }
.jarvis-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; font-size: 12px; }
.jarvis-picks { display: flex; gap: 6px; flex-wrap: wrap; }
.jarvis-hue { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.jarvis-hue.on { border-color: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.4); }

/* Gaps under Next steps */
.gap-groups { display: grid; gap: 12px; }
.gap-subject { font-family: var(--display); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.gap-subject em { font-style: normal; color: var(--amber); }
.gap { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; padding: 9px 11px; border: 1px solid var(--line); border-left: 2px solid var(--amber); border-radius: 0 8px 8px 0; background: rgba(245,158,11,0.04); margin-bottom: 6px; }
.gap.resolved { border-left-color: #22c55e; opacity: 0.6; }
.gap.dismissed { opacity: 0.45; }
.gap-main b { font-size: 12.5px; margin-right: 6px; }
.gap-main p { margin: 4px 0 0; font-size: 11.5px; color: var(--text-2); line-height: 1.4; }
.gap .acts { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.gap-add { margin-top: 10px; }
.gap-add select, .gap-add input { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0,162,255,0.08); color: var(--text); font-size: 12px; outline: 0; }
.gap-add select option { background: var(--ink-3); }

/* BluFox page: wisp + business layouts */
.screen.blufox-page { display: grid; grid-template-rows: 1fr auto auto auto; gap: 10px; height: 100%; min-height: 0; justify-items: center; padding-bottom: 10px; }
.blufox-stage { width: 100%; height: 100%; min-height: 0; position: relative; }
.blufox-status { font-family: var(--display); font-size: 14px; letter-spacing: 0.06em; color: var(--text-2); }
.blufox-status[data-state="listening"] { color: #34d399; }
.blufox-status[data-state="thinking"], .blufox-status[data-state="executing"] { color: var(--blu, #00a2ff); }
.blufox-status[data-state="error"] { color: #f87171; }
.blufox-page form { width: min(640px, 90%); }
.blufox-ask { width: 100%; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,162,255,0.08); color: var(--text); font-size: 14px; outline: 0; }
.blufox-ask:focus { border-color: var(--line-2); }
.blufox-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; font-size: 12px; }
.blufox-controls .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.blufox-controls .seg button { background: transparent; border: 0; color: var(--text-2); padding: 5px 12px; font-size: 11.5px; cursor: pointer; }
.blufox-controls .seg button.on { background: var(--blu, #00a2ff); color: #fff; }
.blufox-picks { display: flex; gap: 5px; flex-wrap: wrap; }
.blufox-hue { width: 18px; height: 18px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.blufox-hue.on { border-color: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.4); }
.focus { width: 100%; height: 100%; display: grid; place-items: center; }
.focus canvas { width: min(100%, 70vh); height: min(100%, 70vh); aspect-ratio: 1; }
/* Orbit */
.orbit { position: absolute; inset: 0; }
.orbit-avatar { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.orbit-avatar canvas { width: min(46vh, 46%); height: min(46vh, 46%); aspect-ratio: 1; }
.orbit-ring { position: absolute; inset: 0; }
.orbit-card { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 12px; border: 1px solid rgba(0,162,255,0.28); background: var(--well); backdrop-filter: blur(8px); color: var(--text); cursor: pointer; text-align: left; transition: border-color .2s, box-shadow .2s; will-change: transform; }
.orbit-card:hover { border-color: var(--blu, #00a2ff); box-shadow: 0 0 18px rgba(0,162,255,0.35); z-index: 2; }
.orbit-card .oc-main { display: grid; }
.orbit-card b { font-size: 12px; }
.orbit-card small { font-size: 10.5px; color: var(--text-2); }
.orbit-card .led { width: 8px; height: 8px; border-radius: 50%; display: block; }
.chip-card { flex-direction: column; gap: 0; min-width: 84px; }
.chip-card b { font-family: var(--display); font-size: 18px; }
.chip-card.hot b { color: var(--blu, #00a2ff); }
.chip-card.warn b { color: var(--amber); }
.seo-score { min-width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 11.5px; border: 2px solid var(--line); }
.seo-score.healthy { border-color: #22c55e; color: #22c55e; }
.seo-score.degraded { border-color: var(--amber); color: var(--amber); }
.seo-score.down { border-color: #f87171; color: #f87171; }
.seo-score.none, .seo-score.unknown { color: var(--text-2); }
/* Board */
.board { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(220px, 28%) 1fr; gap: 14px; min-height: 0; }
.board-avatar { display: grid; place-items: center; }
.board-avatar canvas { width: 100%; aspect-ratio: 1; max-height: 100%; }
.board-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; overflow: auto; align-content: start; padding-right: 4px; }
.board-panel { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: rgba(0,162,255,0.06); }
.board-panel.wide { grid-column: 1 / -1; }
.board-panel h4 { margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.board-site { border-top: 1px solid var(--line); padding: 6px 0; }
.board-site-h { display: grid; grid-template-columns: 10px minmax(120px, 1.2fr) minmax(80px, 1fr) 1.2fr 34px auto; gap: 8px; align-items: center; cursor: pointer; font-size: 12px; }
.board-site-h .led { width: 8px; height: 8px; border-radius: 50%; display: block; }
.board-site-h small { color: var(--text-2); }
.seo-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.06); overflow: hidden; }
.seo-bar span { display: block; height: 100%; background: var(--text-2); }
.seo-bar span.healthy { background: #22c55e; } .seo-bar span.degraded { background: var(--amber); } .seo-bar span.down { background: #f87171; }
.board-checks { display: grid; gap: 2px; padding: 6px 0 2px 18px; font-size: 11.5px; }
.seo-check.ok { color: #22c55e; } .seo-check.bad { color: #f8b4b4; }
.seo-check small { color: var(--text-2); }
.board-line { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 12px; }
.board-line:hover b { color: var(--blu, #00a2ff); }
.board-line small { color: var(--text-2); white-space: nowrap; }
.screen.blufox-page { grid-template-rows: auto 1fr auto auto auto; }
.blufox-scope { width: 100%; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.scope-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.scope-tabs button { background: transparent; border: 1px solid var(--line); color: var(--text-2); border-radius: 999px; padding: 4px 11px; font-size: 11.5px; cursor: pointer; }
.scope-tabs button.on { background: rgba(0,162,255,0.16); border-color: var(--blu, #00a2ff); color: var(--text); }
.discover { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 11.5px; }
.discover-focus { width: 170px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,162,255,0.08); color: var(--text); font-size: 11.5px; outline: 0; }
.discover-outside { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); cursor: pointer; }

/* BluFox workspace: history | centre | active (shadcn-style: quiet borders, rounded, muted labels) */
.screen.blufox-page { display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr; gap: 12px; height: 100%; min-height: 0; padding-bottom: 8px; justify-items: stretch; }
.screen.blufox-page.with-left { grid-template-columns: 260px 1fr; }
.screen.blufox-page.with-right { grid-template-columns: 1fr 280px; }
.screen.blufox-page.with-left.with-right { grid-template-columns: 260px 1fr 280px; }
.blufox-centre { display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 10px; min-height: 0; min-width: 0; justify-items: center; }
.blufox-centre > * { width: 100%; }
.blufox-centre form { width: min(760px, 100%); }
.blufox-side { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)); }
.side-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.side-h b { font-family: var(--display); font-size: 13px; letter-spacing: 0.02em; }
.blufox-side h5 { margin: 10px 0 2px; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
.side-search { width: 100%; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line); background: rgba(0,162,255,0.08); color: var(--text); font-size: 12px; outline: 0; }
.side-search:focus { border-color: var(--line-2); }
.side-list { display: grid; gap: 4px; }
.thread { position: relative; display: grid; gap: 1px; padding: 8px 26px 8px 10px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; }
.thread:hover { background: rgba(0,162,255,0.1); }
.thread.on { background: rgba(0,162,255,0.10); border-color: rgba(0,162,255,0.35); }
.thread b { font-size: 12.5px; font-weight: 600; }
.thread small { font-size: 11px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread em { font-style: normal; font-size: 10px; color: var(--text-2); opacity: 0.7; }
.thread-x { position: absolute; top: 6px; right: 6px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; font-size: 15px; opacity: 0; }
.thread:hover .thread-x { opacity: 1; }
.side-line { display: flex; gap: 8px; align-items: flex-start; padding: 6px 4px; border-radius: 8px; cursor: pointer; }
.side-line:hover { background: rgba(0,162,255,0.1); }
.side-line .led { width: 7px; height: 7px; border-radius: 50%; display: block; margin-top: 5px; flex: none; }
.side-line span { display: grid; min-width: 0; }
.side-line b { font-size: 12px; font-weight: 600; }
.side-line small { font-size: 10.5px; color: var(--text-2); }
.side-toggle { background: transparent; border: 1px solid var(--line); color: var(--text-2); border-radius: 999px; padding: 4px 11px; font-size: 11.5px; cursor: pointer; }
.side-toggle.on { color: var(--text); border-color: var(--line-2); }
.blufox-controls { justify-content: center; }
/* Chat view */
.chat-view { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; gap: 8px; min-height: 0; }
.chat-avatar { display: grid; place-items: center; }
.chat-avatar canvas { width: 190px; height: 190px; }
.chat-log { overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 6px 8px; min-height: 0; width: min(760px, 100%); justify-self: center; }
.chat-empty { margin: auto; max-width: 420px; text-align: center; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.chat-msg { display: grid; gap: 3px; max-width: 86%; }
.chat-msg .who { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.chat-msg .body { padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; border: 1px solid var(--line); background: rgba(0,162,255,0.08); }
.chat-msg.you { justify-self: end; }
.chat-msg.you .who { text-align: right; }
.chat-msg.you .body { background: rgba(0,162,255,0.14); border-color: rgba(0,162,255,0.35); border-bottom-right-radius: 4px; }
.chat-msg.blufox .body { border-bottom-left-radius: 4px; }
.chat-msg.err .body { border-color: rgba(248,113,113,0.5); color: #fecaca; }
.focus canvas, .orbit-avatar canvas, .board-avatar canvas { aspect-ratio: 1; }

/* BluFox page: focused views as top tabs, history as a pop-over */
.screen.blufox-page { grid-template-columns: 1fr !important; grid-template-rows: auto auto 1fr auto auto; justify-items: stretch; }
.blufox-page > form { width: min(760px, 100%); justify-self: center; }
.blufox-page > .blufox-status { justify-self: center; }
.blufox-top { position: relative; display: flex; gap: 10px; align-items: center; }
.view-tabs { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,162,255,0.06); }
.view-tabs button { border: 0; background: transparent; color: var(--text-2); padding: 6px 14px; border-radius: 7px; font-size: 12.5px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.view-tabs button:hover { color: var(--text); }
.view-tabs button.on { background: rgba(255,255,255,0.08); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset; }
.history-btn { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); background: transparent; color: var(--text-2); padding: 6px 12px; border-radius: 9px; font-size: 12.5px; cursor: pointer; }
.history-btn em { font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,0.07); color: var(--text); }
.history-btn.on, .history-btn:hover { color: var(--text); border-color: var(--line-2); }
.history-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: 340px; max-height: 60vh; display: flex; }
.history-pop .blufox-side { width: 100%; background: rgba(9,13,30,0.97); box-shadow: 0 18px 50px rgba(0,0,0,0.5); backdrop-filter: blur(12px); }

/* Voice view: the 3D fox, captions, quick asks */
.voice-view { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; gap: 10px; min-height: 0; }
.voice-avatar { width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; }
.voice-avatar canvas { width: min(100%, 62vh); height: min(100%, 62vh); }
.chat-avatar canvas { width: 210px; height: 210px; }
.orbit-avatar canvas { width: min(48vh, 48%); height: min(48vh, 48%); }
.voice-captions { width: min(720px, 94%); display: grid; gap: 6px; text-align: center; }
.cap { margin: 0; line-height: 1.5; }
.cap.you { color: var(--text-2); font-size: 13px; }
.cap.fox { font-size: 15.5px; color: var(--text); }
.cap.err { color: #fecaca; font-size: 13px; }
.cap.hint { color: var(--text-2); font-size: 13px; }
.quick-asks { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.quick-asks button { border: 1px solid var(--line); background: rgba(0,162,255,0.08); color: var(--text-2); padding: 6px 12px; border-radius: 999px; font-size: 12px; cursor: pointer; transition: border-color .15s, color .15s; }
.quick-asks button:hover { border-color: var(--blu, #00a2ff); color: var(--text); }

/* Discovered local projects + browser */
.local-project { cursor: pointer; }
.local-project .t { display: flex; gap: 8px; align-items: center; }
.pill.git { font-size: 10px; padding: 1px 7px; }
.lp-more { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.list.archived { opacity: 0.6; }
.drawer.local-browser { width: min(1100px, 92vw); display: grid; grid-template-rows: auto 1fr; gap: 12px; }
.lb-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.lb-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.lb-body { display: grid; grid-template-rows: auto 1fr; gap: 10px; min-height: 0; }
.lb-split { display: grid; grid-template-columns: minmax(240px, 34%) 1fr; gap: 10px; min-height: 0; height: calc(100vh - 230px); }
.lb-tree { overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px 0; background: rgba(0,162,255,0.06); }
.lb-row { display: flex; gap: 8px; align-items: center; padding: 4px 10px; font-size: 12.5px; cursor: pointer; border-radius: 6px; }
.lb-row:hover { background: rgba(0,162,255,0.1); }
.lb-row.sel { background: rgba(0,162,255,0.12); }
.lb-row .g { width: 12px; color: var(--text-2); transition: transform .15s; }
.lb-row.dir.open .g { transform: rotate(90deg); }
.lb-row .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row small { color: var(--text-2); font-size: 10.5px; }
.lb-preview { overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--well); }
.lb-preview img { max-width: 100%; border-radius: 8px; display: block; margin-top: 8px; background: repeating-conic-gradient(#1e293b 0 25%, #0f172a 0 50%) 50% / 16px 16px; }
.lb-file-h { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 12.5px; }
.lb-file-h small { color: var(--text-2); }
.lb-code { margin: 0; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 12px; line-height: 1.55; white-space: pre; color: #cbd5e1; }
.lb-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; overflow: auto; height: calc(100vh - 230px); align-content: start; }
.lb-tile { display: grid; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,162,255,0.06); color: var(--text); cursor: pointer; text-align: left; }
.lb-tile:hover { border-color: var(--blu, #00a2ff); }
.lb-tile .ph { height: 90px; border-radius: 7px; background: rgba(0,162,255,0.1) center / contain no-repeat; display: grid; place-items: center; font-size: 11px; color: var(--text-2); }
.lb-tile small { font-size: 10.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* "Needs you" bar pinned at the top */
.canvas { grid-template-rows: auto 1fr var(--bar-h); }
.canvas > .needs-bar { grid-row: 1; }
.canvas > .stage { grid-row: 2; }
.canvas > .cmdbar { grid-row: 3; }
.needs-bar { position: relative; z-index: 20; padding: 8px 16px 0; }
.needs-bar.hidden { display: none; }
.needs-line { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(15,23,42,0.75); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0,0,0,0.25); font-size: 12.5px; }
.needs-title { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--text); margin-right: 4px; }
.need-chip { border: 1px solid var(--line); background: rgba(0,162,255,0.08); color: var(--text-2); border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; transition: border-color .15s, color .15s; }
.need-chip b { color: var(--text); }
.need-chip.amber b { color: var(--amber); }
.need-chip.blue b { color: var(--blu, #00a2ff); }
.need-chip.red b { color: #f87171; }
.need-chip:hover { border-color: var(--line-2); color: var(--text); }
.needs-preview { margin-left: auto; color: var(--text-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40%; }
.needs-drop { position: absolute; left: 16px; right: 16px; top: calc(100% + 6px); display: grid; gap: 8px; max-height: 60vh; overflow: auto; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(9,13,30,0.97); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.insight.clickable { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; border: 0; }
.insight.clickable .go { margin-left: auto; color: var(--blu, #00a2ff); transition: transform .15s; }
.insight.clickable:hover .go { transform: translateX(3px); }

/* Graph view */
.graph-view { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: radial-gradient(800px 500px at 50% 45%, rgba(0,162,255,0.08), transparent 70%); }
.graph-svg { width: 100%; height: 100%; display: block; cursor: grab; }
.g-edge { stroke: rgba(0, 162, 255, 0.22); stroke-width: 1; transition: stroke .2s; }
.g-edge.lit { stroke: rgba(56,189,248,0.85); stroke-width: 1.6; }
.g-node { cursor: pointer; }
.g-node .halo { opacity: 0.16; }
.g-node .core { transition: transform .2s; }
.g-node:hover .core { transform: scale(1.15); }
.g-nodes.hovering .g-node:not(.lit) { opacity: 0.25; }
.g-label { fill: #cbd5e1; font-size: 9px; font-family: var(--display); letter-spacing: 0.02em; pointer-events: none; paint-order: stroke; stroke: rgba(2,6,23,0.85); stroke-width: 3px; }
.k-you .g-label { font-size: 12px; fill: #fff; }
.k-company .g-label { font-size: 11px; fill: #e0f2fe; }
.graph-tip { position: absolute; z-index: 5; pointer-events: none; display: grid; gap: 2px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(9,13,30,0.95); font-size: 12px; max-width: 260px; }
.graph-tip small { color: var(--text-2); }
.graph-tip.hidden { display: none; }
.graph-legend { position: absolute; top: 10px; left: 12px; display: flex; gap: 10px; flex-wrap: wrap; font-size: 10.5px; color: var(--text-2); text-transform: capitalize; }
.graph-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.graph-bar { position: absolute; bottom: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11.5px; color: var(--text-2); }
.graph-reset { border: 1px solid var(--line); background: rgba(9,13,30,0.8); color: var(--text-2); border-radius: 999px; padding: 4px 11px; font-size: 11.5px; cursor: pointer; }
.graph-reset:hover { color: var(--text); border-color: var(--line-2); }

/* ---- BluFox identity: cards, KPIs, charts ---- */
:root { --bf-card: rgba(255,255,255,0.025); --bf-card-line: rgba(0, 162, 255, 0.14); --bf-violet: #7c6cff; --bf-mint: #34d399; --bf-coral: #fb7185; }
.screen.analytics { overflow: auto; display: grid; gap: 14px; align-content: start; padding-bottom: 24px; }
.bf-card { border: 1px solid var(--bf-card-line); border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)); padding: 14px 16px; display: grid; gap: 10px; min-width: 0; }
.bf-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bf-card-h b { font-family: var(--display); font-size: 14px; letter-spacing: 0.01em; }
.bf-card-h small { color: var(--text-2); font-size: 11px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { gap: 6px; }
.kpi-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.kpi-row { display: flex; align-items: baseline; gap: 8px; }
.kpi-value { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.kpi-sub { color: var(--text-2); font-size: 11.5px; }
.delta { font-size: 11px; padding: 2px 7px; border-radius: 999px; font-weight: 600; }
.delta.up { background: rgba(52,211,153,0.14); color: var(--bf-mint); }
.delta.down { background: rgba(251,113,133,0.14); color: var(--bf-coral); }
.an-grid { display: grid; gap: 12px; }
.an-grid.two { grid-template-columns: 1.6fr 1fr; }
.an-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1300px) { .an-grid.two, .an-grid.three { grid-template-columns: 1fr; } }
.chart { width: 100%; display: block; overflow: visible; }
.chart.area { height: 180px; }
.chart .grid { stroke: rgba(0, 162, 255, 0.12); stroke-dasharray: 3 5; }
.chart .dot { filter: drop-shadow(0 0 6px #00a2ff); }
.axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-2); padding: 2px 4px 0; }
.ring-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ring-figure { position: relative; width: 160px; height: 160px; flex: none; }
.ring-figure .chart { width: 160px; height: 160px; }
.ring-track { fill: none; stroke: rgba(0, 162, 255, 0.12); stroke-width: 16; }
.ring-centre { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-centre b { font-family: var(--display); font-size: 24px; }
.ring-centre small { color: var(--text-2); font-size: 11px; }
.legend { display: grid; gap: 7px; flex: 1; min-width: 160px; }
.legend-row { display: grid; grid-template-columns: 10px 1fr auto 40px; gap: 8px; align-items: center; font-size: 12.5px; }
.legend-row i, .seg-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.legend-row small { color: var(--text-2); text-align: right; }
.gauge-wrap { position: relative; display: grid; justify-items: center; }
.gauge-wrap .chart { width: 220px; height: 128px; }
.gauge-value { font-family: var(--display); font-size: 28px; margin-top: -26px; }
.gauge-wrap small { color: var(--text-2); font-size: 11px; }
.seg-bar { display: grid; grid-template-columns: repeat(40, 1fr); gap: 3px; height: 26px; }
.seg-bar i { border-radius: 3px; }
.seg-bar i.off { background: rgba(0, 162, 255, 0.12); }
.seg-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--text-2); margin-top: 8px; }
.seg-legend span { display: inline-flex; gap: 5px; align-items: center; }
.seg-legend b { color: var(--text); font-weight: 600; }
.sub-h { margin: 6px 0 0; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.pill-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; height: 190px; align-items: end; }
.pill-col { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; justify-items: center; }
.pill-track { width: 100%; max-width: 44px; height: 100%; display: flex; align-items: flex-end; }
.pill-bar { position: relative; width: 100%; border-radius: 999px; background: rgba(124,108,255,0.45); }
.pill-bar.hot { background: linear-gradient(180deg, #a5b4ff, #7c6cff); box-shadow: 0 0 18px rgba(124,108,255,0.45); }
.pill-bar.empty { background: repeating-linear-gradient(135deg, rgba(0, 162, 255, 0.18) 0 4px, transparent 4px 8px); }
.pill-bar em { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 6px; background: #e2e8f0; color: #0f172a; }
.pill-col small { font-size: 10.5px; color: var(--text-2); text-transform: capitalize; }
.hbars { display: grid; gap: 7px; }
.hbar { display: grid; grid-template-columns: 140px 1fr 36px; gap: 10px; align-items: center; font-size: 12px; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.hbar-track { display: flex; height: 10px; border-radius: 999px; background: rgba(0, 162, 255, 0.1); overflow: hidden; }
.hbar-a { background: #00a2ff; }
.hbar-b { background: #7c6cff; }
.hbar b { text-align: right; font-family: var(--display); }
.label-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.label-cloud span { display: inline-flex; gap: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--bf-card-line); font-size: 11px; color: var(--text-2); }
.label-cloud b { color: var(--text); }
.mini-list { display: grid; gap: 4px; }
.mini-list div { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 2px; border-top: 1px solid var(--bf-card-line); cursor: pointer; }
.mini-list b.good { color: var(--bf-mint); } .mini-list b.warn { color: var(--amber); } .mini-list b.bad { color: var(--bf-coral); }
@media (min-width: 1200px) { .kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .kpi-value { font-size: 26px; } }

/* Token usage card: trend + calendar + models + how/why */
.view-tabs.small button { padding: 4px 11px; font-size: 11.5px; }
.usage-top { display: grid; grid-template-columns: 1fr 260px; gap: 18px; align-items: start; }
.usage-bottom { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 1300px) { .usage-top, .usage-bottom { grid-template-columns: 1fr; } }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head span { font-size: 10px; color: var(--text-2); text-align: center; }
.cal-cell { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; font-style: normal; font-size: 10px; color: rgba(226,232,240,0.75); background: rgba(0, 162, 255, 0.08); }
.cal-cell.blank { background: transparent; }
.cal-cell.l1 { background: rgba(0,162,255,0.22); } .cal-cell.l2 { background: rgba(0,162,255,0.42); } .cal-cell.l3 { background: rgba(0,162,255,0.65); } .cal-cell.l4 { background: #00a2ff; color: #021; font-weight: 600; }
.cal-cell.today { outline: 2px solid #a5b4ff; outline-offset: 1px; }
.cal-key { display: flex; gap: 4px; align-items: center; justify-content: flex-end; margin-top: 8px; font-size: 10px; color: var(--text-2); }
.cal-key .cal-cell { width: 11px; aspect-ratio: 1; border-radius: 3px; }
.model-table { display: grid; gap: 2px; font-size: 12px; }
.mt-row { display: grid; grid-template-columns: 1.8fr repeat(5, 0.8fr) 1.3fr; gap: 8px; align-items: center; padding: 6px 4px; border-top: 1px solid var(--bf-card-line); }
.mt-row.head { border-top: 0; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.mt-model { display: flex; gap: 6px; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mt-model i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.mt-model small { color: var(--text-2); font-size: 10.5px; }
.mt-share { position: relative; display: flex; align-items: center; gap: 6px; }
.mt-share em { display: block; height: 6px; border-radius: 3px; min-width: 2px; max-width: 60%; }
.how-why { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: rgba(0,162,255,0.06); border: 1px solid rgba(0,162,255,0.2); font-size: 12px; }
.how-why b { font-family: var(--display); font-size: 12.5px; margin-top: 4px; }
.how-why p { margin: 0; color: var(--text-2); line-height: 1.5; }

/* BluFox at work */
.work-scene { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto 1fr; gap: 14px; padding: 16px; border: 1px solid var(--bf-card-line); border-radius: 18px; overflow: hidden; background: radial-gradient(900px 500px at 50% 0%, rgba(0,162,255,0.12), transparent 65%), #030712; }
.ws-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(56,189,248,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,0.06) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%); }
.ws-scan { position: absolute; left: 0; right: 0; top: -40%; height: 40%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(0,162,255,0.07), transparent); }
.ws-head { position: relative; display: flex; justify-content: space-between; align-items: center; }
.ws-head b { font-family: var(--display); font-size: 18px; letter-spacing: 0.02em; }
.ws-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-2); font-family: ui-monospace, Consolas, monospace; }
.ws-state { padding: 2px 9px; border-radius: 999px; border: 1px solid var(--bf-card-line); text-transform: uppercase; letter-spacing: 0.1em; font-size: 10.5px; }
.ws-state.streaming, .ws-state.thinking { color: #7dd3fc; border-color: rgba(0,162,255,0.5); }
.ws-state.review { color: var(--amber); border-color: rgba(245,158,11,0.5); }
.ws-state.done { color: var(--bf-mint); border-color: rgba(52,211,153,0.5); }
.ws-state.error { color: var(--bf-coral); border-color: rgba(251,113,133,0.5); }
.ws-pipeline { position: relative; display: flex; align-items: center; gap: 0; padding: 12px 16px; border: 1px solid var(--bf-card-line); border-radius: 14px; background: var(--well); }
.ws-stage { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-2); min-width: 70px; }
.ws-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(0, 162, 255, 0.25); }
.ws-stage.past { color: var(--text); } .ws-stage.past .ws-dot { background: #00a2ff; }
.ws-stage.now { color: #e0f2fe; font-weight: 600; } .ws-stage.now .ws-dot { background: #7dd3fc; box-shadow: 0 0 16px #00a2ff; }
.ws-stage.error .ws-dot { background: var(--bf-coral); box-shadow: 0 0 14px var(--bf-coral); }
.ws-link { flex: 1; height: 2px; background: rgba(0, 162, 255, 0.18); margin-bottom: 18px; }
.ws-link.on { background: linear-gradient(90deg, #00a2ff, #7c6cff); }
.ws-body { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; min-height: 0; }
.ws-panel { display: grid; grid-template-rows: auto 1fr; gap: 8px; min-height: 0; padding: 12px; border: 1px solid var(--bf-card-line); border-radius: 14px; background: var(--well); }
.ws-panel header { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.ws-term { margin: 0; overflow: auto; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 12.5px; line-height: 1.6; color: #a5f3fc; white-space: pre-wrap; }
.ws-term::after { content: '▍'; animation: ws-blink 1s steps(1) infinite; color: #00a2ff; }
@keyframes ws-blink { 50% { opacity: 0; } }
.ws-crew { display: grid; gap: 8px; overflow: auto; align-content: start; }
.ws-agent { display: grid; gap: 6px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--bf-card-line); background: rgba(0,162,255,0.06); color: var(--text); cursor: pointer; }
.ws-agent:hover { border-color: rgba(0,162,255,0.5); }
.ws-agent.running { border-left: 2px solid #00a2ff; } .ws-agent.waiting_approval { border-left: 2px solid var(--amber); }
.ws-agent-h { display: grid; gap: 1px; } .ws-agent-h b { font-size: 12.5px; } .ws-agent-h small { color: var(--text-2); font-size: 11px; }
.ws-cycle { display: flex; gap: 4px; }
.ws-cycle span { flex: 1; text-align: center; font-size: 10px; padding: 3px 0; border-radius: 6px; background: rgba(0, 162, 255, 0.08); color: var(--text-2); }
.ws-cycle span.past { background: rgba(0,162,255,0.15); color: #7dd3fc; }
.ws-cycle span.on { background: linear-gradient(90deg, #00a2ff, #7c6cff); color: #fff; font-weight: 600; }
.ws-agent p { margin: 0; font-size: 11.5px; color: var(--text-2); }
.ws-tags { display: flex; gap: 5px; flex-wrap: wrap; } .ws-tags span { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--bf-card-line); color: var(--text-2); }

/* Hire / Deploy modal */
$1background: var(--scrim); backdrop-filter: blur(4px); }
.hire-card { width: min(860px, 94vw); max-height: 86vh; display: grid; grid-template-rows: auto 1fr; gap: 12px; padding: 18px; border-radius: 18px; border: 1px solid var(--bf-card-line); background: var(--panel); box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.hire-head { display: flex; align-items: center; gap: 10px; } .hire-head b { font-family: var(--display); font-size: 17px; } .hire-head small { color: var(--text-2); flex: 1; }
.hire-body { display: grid; grid-template-rows: auto 1fr; gap: 12px; min-height: 0; }
.hire-pane { display: grid; gap: 10px; min-height: 0; overflow: auto; align-content: start; }
.hire-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.hire-row label { display: grid; gap: 4px; font-size: 11px; color: var(--text-2); }
.hire-row select, .hire-search, .hire-task { padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,162,255,0.08); color: var(--text); font: inherit; font-size: 13px; outline: 0; }
.hire-search { flex: 1; min-width: 240px; }
.hire-task { width: 100%; resize: vertical; }
.hire-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.hire-chips button { border: 1px solid var(--line); background: transparent; color: var(--text-2); border-radius: 999px; padding: 3px 10px; font-size: 11.5px; cursor: pointer; text-transform: capitalize; }
.hire-chips button.on { background: rgba(0,162,255,0.16); color: var(--text); border-color: var(--blu, #00a2ff); }
.role-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 8px; }
.role-list.compact { grid-template-columns: 1fr; }
.role-card { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--bf-card-line); background: rgba(0,162,255,0.06); }
.role-emoji { font-size: 22px; text-align: center; }
.role-card b { font-size: 13px; display: block; } .role-card small { font-size: 11.5px; color: var(--text-2); text-transform: none; }
.role-card .pick { border: 1px solid var(--line); background: transparent; color: var(--text-2); border-radius: 8px; padding: 4px 10px; cursor: pointer; font-size: 12px; }
.role-card .pick.on { background: var(--blu, #00a2ff); color: #fff; border-color: transparent; }
.deploy-ok { display: grid; gap: 6px; padding: 12px; border-radius: 12px; border: 1px solid rgba(52,211,153,0.4); background: rgba(52,211,153,0.07); }
.deploy-ok small { color: var(--text-2); }
.hire-btn { color: #7dd3fc; border-color: rgba(0,162,255,0.4); }

/* Projects toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.tb-field { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.tb-field select { padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line); background: rgba(0,162,255,0.08); color: var(--text); font-size: 12.5px; outline: 0; }
.tb-field select option { background: var(--ink-3); }
.tb-seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,162,255,0.06); }
.tb-seg button { border: 0; background: transparent; color: var(--text-2); padding: 5px 12px; border-radius: 7px; font-size: 12px; cursor: pointer; }
.tb-seg button.on { background: rgba(255,255,255,0.08); color: var(--text); }
.tb-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(0,162,255,0.4); background: rgba(0,162,255,0.12); color: var(--text); border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.avatar-pick { margin-top: 4px; }

/* Marketing shares the desktop workspace's typography, colors and controls. */
.marketing-screen h2 { margin: 0 0 8px; font-size: 18px; }
.marketing-screen p { line-height: 1.6; }
.marketing-screen .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.marketing-brand .field { margin: 0; min-width: 180px; max-width: 300px; }
.marketing-brand select { max-width: 100%; }
.marketing-local-note { display: flex; align-items: flex-start; gap: 8px; color: var(--text-2); margin: -6px 0 18px; line-height: 1.6; }
.marketing-local-note .ico { margin-top: 3px; }
.marketing-section-head { display: flex; gap: 20px; justify-content: space-between; align-items: center; margin: 24px 0 18px; }
.marketing-section-head p { margin: 0; max-width: 65ch; }
.marketing-handoff { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; margin-bottom: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marketing-handoff p { margin: 6px 0 0; color: var(--text-2); max-width: 70ch; }
.marketing-handoff .btn { flex-shrink: 0; }
.marketing-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.marketing-asset { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); }
.marketing-asset-preview { height: 180px; display: flex; gap: 10px; align-items: center; justify-content: center; background: var(--ink-3); color: var(--text-2); }
.marketing-asset-preview img { width: 100%; height: 100%; object-fit: contain; }
.marketing-asset-info { padding: 14px; }
.marketing-asset-info h3 { font-size: 14px; margin: 0 0 6px; overflow-wrap: anywhere; }
.marketing-asset-info .actions { margin-top: 16px; }
.marketing-planner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; margin-top: 24px; }
.marketing-compose, .marketing-queue { min-width: 0; }
.marketing-compose textarea { width: 100%; min-height: 150px; resize: vertical; line-height: 1.6; }
.marketing-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 12px; }
.marketing-attach { display: grid; gap: 9px; max-height: 180px; overflow-y: auto; }
.marketing-attach label { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.marketing-attach input { width: auto; }
.marketing-footnote { max-width: 65ch; font-size: 12px; color: var(--text-2); margin-top: 16px; }
.marketing-draft { padding: 20px 0; border-top: 1px solid var(--line); }
.marketing-draft-meta { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.marketing-caption { white-space: pre-wrap; overflow-wrap: anywhere; margin: 14px 0; }
.marketing-draft .actions { margin-top: 14px; }
.marketing-connections { max-width: 900px; }
.marketing-connection { padding: 28px 0; border-bottom: 1px solid var(--line); }
.marketing-connection > div:first-child { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.marketing-connection p { max-width: 70ch; }
.marketing-connection .field { max-width: 640px; }
.marketing-error { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.marketing-screen :is(button, input, select, textarea):focus-visible { outline: 2px solid var(--blu, #00a2ff); outline-offset: 3px; }
@media (max-width: 1100px) {
  .marketing-planner { grid-template-columns: minmax(0, 1fr); }
  .marketing-section-head, .marketing-handoff { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (max-width: 760px) {
  .marketing-screen .screen-head { align-items: flex-start; flex-direction: column; }
  .marketing-brand { width: 100%; justify-content: flex-start !important; }
  .marketing-assets { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Top-bar status strip ---- */
.status-strip { display: flex; align-items: center; gap: 2px; height: 30px; padding: 0 4px; margin-right: 6px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,162,255,0.06); font-family: var(--mono); font-size: 11px; color: var(--text-2); white-space: nowrap; }
.status-strip button { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 7px; border-radius: 7px; transition: background .15s; }
.status-strip button:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.ss-filter { color: var(--muted); }
.ss-filter b { color: var(--blu); font-weight: 600; }
.ss-filter span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.ss-caret { width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 4px solid var(--muted-2); }
.ss-g { display: inline-flex; color: var(--muted); }
.ss-n { color: var(--text); font-weight: 600; }
.ss-n.warn { color: var(--amber); }
.ss-t { color: var(--muted); }
.ss-of { color: var(--muted-2); margin: 0 -3px; }
.ss-lat { padding: 0 5px; border-radius: 5px; font-size: 10px; line-height: 16px; background: rgba(255,255,255,0.05); }
.ss-lat.ok { color: var(--green); } .ss-lat.slow { color: var(--amber); } .ss-lat.bad { color: var(--red); }
.ss-quiet { color: var(--muted-2); padding: 0 6px; }
.ss-sep { width: 1px; height: 14px; background: var(--line); margin: 0 3px; }
.ss-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.ss-dot.ok { background: var(--green); box-shadow: 0 0 6px var(--green); } .ss-dot.error { background: var(--red); }
.ss-pop { position: fixed; z-index: 90; width: 260px; padding: 10px; display: grid; gap: 8px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); box-shadow: 0 20px 50px rgba(0,0,0,0.55); backdrop-filter: blur(14px); }
.ss-pop-h { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.ss-pop .tb-seg { width: 100%; } .ss-pop .tb-seg button { flex: 1; }
.ss-pop-list { display: grid; max-height: 240px; overflow: auto; gap: 1px; }
.ss-pop-list button { text-align: left; padding: 6px 8px; border-radius: 7px; color: var(--text-2); font-size: 12px; }
.ss-pop-list button:hover { background: rgba(255,255,255,0.05); }
.ss-pop-list button.on { background: rgba(0,162,255,0.12); color: var(--text); }
.ss-pop-note { margin: 0; font-size: 10.5px; color: var(--muted-2); line-height: 1.4; }

/* ---- Settings cockpit ---- */
.cockpit { display: grid; gap: 16px; }
.cockpit-hero { grid-template-columns: 220px 1fr; align-items: center; gap: 24px; padding: 18px 22px; background: radial-gradient(120% 140% at 0% 0%, rgba(0,162,255,0.12), transparent 60%), radial-gradient(120% 140% at 100% 100%, rgba(124,108,255,0.12), transparent 60%), rgba(0,162,255,0.06); }
.cockpit-next small { text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; color: var(--blu); }
.cockpit-next h2 { margin: 4px 0 6px; font-family: var(--display); font-size: 22px; }
.cockpit-next p { margin: 0 0 12px; max-width: 560px; }
.cockpit-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.cockpit-gates, .cockpit-side { display: grid; gap: 14px; }
.gate { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); }
.gate:first-of-type { border-top: 0; }
.gate-mark { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--muted-2); position: relative; }
.gate.open .gate-mark { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,158,11,0.12); }
.gate.done .gate-mark { border-color: var(--green); background: var(--green); }
.gate.done .gate-mark::after { content: ''; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gate-text { display: grid; gap: 2px; min-width: 0; }
.gate-text b { font-weight: 600; font-size: 13px; }
.gate.done .gate-text b { color: var(--text-2); font-weight: 500; }
.gate-text small { color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.toggle-row:first-of-type { border-top: 0; }
.toggle-row b { display: block; font-weight: 600; font-size: 12.5px; }
.toggle-row small { color: var(--muted); font-size: 11px; }
.switch { flex: none; width: 38px; height: 22px; border-radius: 11px; background: rgba(0, 162, 255, 0.25); position: relative; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s cubic-bezier(.3,1.4,.6,1); box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.switch.on { background: linear-gradient(90deg, var(--blu), #7c6cff); }
.switch.on i { transform: translateX(16px); }
.cockpit-field { display: grid; gap: 6px; padding: 6px 0; }
.cockpit-field > small { color: var(--muted); font-size: 11px; }
.cockpit-note { margin: 0; font-size: 11px; color: var(--muted-2); }
.cockpit-link { display: flex; justify-content: space-between; padding: 8px 2px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 12.5px; }
.cockpit-link:hover { color: var(--blu); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-row .chip { display: inline-flex; gap: 6px; align-items: center; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; color: var(--text-2); background: rgba(0,162,255,0.06); }
.chip-row .chip em { font-style: normal; color: var(--muted-2); font-family: var(--mono); font-size: 10.5px; }
.chip-row .chip.link { color: var(--blu); }
.cockpit-plugins summary { cursor: pointer; color: var(--text-2); font-size: 12px; padding: 6px 0; }
.cockpit-plugins { max-height: 360px; overflow: auto; }
@media (max-width: 1200px) { .cockpit-grid { grid-template-columns: 1fr; } .cockpit-hero { grid-template-columns: 1fr; } }

/* ---- Project diagrams ---- */
.drawer.wide { width: min(1100px, 92vw); }
.drawer-tabs { margin: 0 0 14px; }
.dg-panel { display: grid; gap: 14px; }
.dg-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dg-list { display: grid; gap: 14px; }
.dg-stage { overflow-x: auto; padding: 6px 0; background: radial-gradient(80% 120% at 50% 0%, rgba(0,162,255,0.06), transparent 70%); border-radius: 12px; }
.dg-svg { display: block; width: 100%; height: auto; margin: 0 auto; overflow: visible; }
.dg-edge { fill: none; stroke: rgba(0,162,255,0.55); stroke-width: 1.6; }
.dg-edge.loop { stroke: #7c6cff; stroke-dasharray: 5 5; }
.dg-node rect { stroke: rgba(0,162,255,0.45); stroke-width: 1; }
.dg-node.trigger rect { stroke: rgba(124,108,255,0.7); }
.dg-node.api rect { stroke: rgba(52,211,153,0.6); }
.dg-label { fill: var(--text); font: 500 11.5px var(--body); pointer-events: none; }
.dg-elabel { fill: var(--muted); font: 10px var(--mono); }
.dg-pulse { fill: #fff; filter: drop-shadow(0 0 6px #00a2ff); }
.dg-note { margin: 0; font-size: 11.5px; color: var(--muted); }
.dg-card.cycle .dg-edge { stroke: rgba(124,108,255,0.7); }

/* ---- Companies hierarchy ---- */
.hz-wrap { display: grid; gap: 14px; }
.hz-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hz-legend { display: flex; gap: 14px; color: var(--muted); font-size: 11.5px; }
.hz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hz-key { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--line-2); }
.hz-key.company { background: var(--blu); } .hz-key.product { background: #7c6cff; } .hz-key.product.external { background: transparent; border: 1px dashed #7c6cff; } .hz-key.project { background: rgba(255,255,255,0.15); }
.hz-canvas { position: relative; overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(90% 70% at 0% 0%, rgba(0,162,255,0.07), transparent 60%), rgba(255,255,255,0.012); max-height: calc(100vh - 260px); }
.hz-links { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.hz-link { fill: none; stroke: rgba(0,162,255,0.45); stroke-width: 1.4; }
.hz-link.leaf { stroke: rgba(0, 162, 255, 0.28); }
.hz-tree { position: relative; width: max-content; }
.hz-row { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.hz-kids { display: flex; flex-direction: row; align-items: flex-start; gap: 14px; padding: 0 6px; }
.hz-node { display: grid; grid-template-columns: 10px auto; column-gap: 8px; align-items: center; text-align: left; min-width: 150px; max-width: 220px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); transition: border-color .15s, transform .15s, box-shadow .15s; }
.hz-node:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,162,255,0.12); }
.hz-node .hz-t { font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz-node small { grid-column: 2; color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.hz-node.account { min-width: 170px; background: linear-gradient(135deg, rgba(0,162,255,0.22), rgba(124,108,255,0.18)); border-color: var(--line-2); }
.hz-node.account .hz-t { font-family: var(--display); font-size: 15px; }
.hz-node.account .hz-dot { background: var(--blu); box-shadow: 0 0 10px var(--blu); }
.hz-node.company .hz-dot { background: var(--hz-c, var(--blu)); box-shadow: 0 0 8px var(--hz-c, var(--blu)); }
.hz-node.company .hz-t { font-family: var(--display); font-size: 14px; }
.hz-node.product .hz-dot { background: #7c6cff; }
.hz-node.product.external { border-style: dashed; }
.hz-node.project { min-width: 140px; padding: 6px 10px; }
.hz-node.project.h-healthy .hz-dot { background: var(--green); } .hz-node.project.h-down .hz-dot { background: var(--red); } .hz-node.project.h-degraded .hz-dot { background: var(--amber); }

/* Finance */
.fin-filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin: 0 0 14px; }
.fin-filters .field { margin: 0; min-width: 150px; }
.fin-add { margin-left: auto; }
.fin-body { min-width: 0; }
.fin-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; margin-top: 16px; }
.fin-cols h3 { margin: 0 0 12px; font-size: 14px; } .fin-cols h4 { margin: 16px 0 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.fin-bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 7px 0; font-size: 12px; }
.fin-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.fin-bar-track { height: 6px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.fin-bar-track i { display: block; height: 100%; background: var(--blu); border-radius: 4px; }
.fin-bar b { font-variant-numeric: tabular-nums; font-weight: 600; }
.fin-due { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.fin-due:first-of-type { border-top: 0; }
.fin-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.fin-check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); margin-top: 28px; }
.fin-check input { width: auto; margin: 0; }
.fin-out { color: var(--text); font-variant-numeric: tabular-nums; } .fin-in { color: var(--green); font-variant-numeric: tabular-nums; }
.fin-error { color: var(--red); }
.fin-lock { max-width: 460px; margin: 36px auto; padding: 28px; text-align: center; }
.fin-lock .field { text-align: left; } .fin-lock .actions { justify-content: center; margin-top: 18px; display: flex; }
.fin-lock-icon { display: inline-flex; padding: 14px; border-radius: 50%; background: rgba(0,162,255,.1); color: var(--blu); margin-bottom: 8px; }
.fin-provider-head { display: flex; align-items: center; gap: 12px; } .fin-provider-head h2 { margin: 0; font-size: 18px; }
.fin-toolbar { margin: 10px 0 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.fin-accounts { margin-bottom: 20px; }
.fin-connect { max-width: 620px; padding: 20px; } .fin-steps { margin: 8px 0 14px; padding-left: 20px; line-height: 1.7; color: var(--text-2); }
.fin-footnote { font-size: 12px; margin-top: 14px; }
.fin-import { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding: 14px 0; margin-bottom: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fin-import .field { margin: 0; min-width: 150px; } .fin-import > b { flex-basis: 100%; }
@media (max-width: 1100px) { .fin-cols { grid-template-columns: 1fr; } .fin-add { margin-left: 0; } }
.card.employee .card-h { display: flex; align-items: center; gap: 10px; }
.emp-avatar { width: 52px; height: 52px; border-radius: 14px; background: radial-gradient(circle at 50% 35%, rgba(0,162,255,0.18), var(--well)); border: 1px solid var(--bf-card-line); flex: none; }
/* Project drawer → Versions (git history with safe restore / revert / cherry-pick). */
.vs { display: grid; gap: 10px; }
.vs-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vs-count { margin-left: auto; font-size: 11.5px; }
.vs-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--bf-card-line); font-size: 11px; color: var(--text-2); }
.vs-chip.warn { color: var(--amber); border-color: rgba(245,158,11,0.35); } .vs-chip.good { color: var(--bf-mint); border-color: rgba(52,211,153,0.3); }
.vs-group { border: 1px solid var(--bf-card-line); border-radius: 14px; background: linear-gradient(180deg, rgba(0,162,255,0.08), rgba(255,255,255,0.01)); }
.vs-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-family: var(--display); }
.vs-group > summary::-webkit-details-marker { display: none; }
.vs-group > summary em { font-style: normal; font-family: var(--body); font-size: 11px; color: var(--text-2); padding: 0 7px; border-radius: 999px; background: rgba(255,255,255,0.06); }
.vs-list { display: grid; padding: 0 6px 6px; }
.vs-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 9px 8px; border-top: 1px solid var(--bf-card-line); }
.vs-main { min-width: 0; display: grid; gap: 3px; }
.vs-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.vs-subject { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.vs-type { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 1px 7px; border-radius: 6px; background: rgba(0, 162, 255, 0.12); color: var(--text-2); flex: none; }
.vs-type.blu { background: rgba(0,162,255,0.14); color: var(--blu); } .vs-type.coral { background: rgba(251,113,133,0.14); color: var(--bf-coral); }
.vs-type.mint { background: rgba(52,211,153,0.14); color: var(--bf-mint); } .vs-type.violet { background: rgba(124,108,255,0.16); color: var(--bf-violet); }
.vs-scope { font-size: 10.5px; color: var(--bf-violet); border: 1px solid rgba(124,108,255,0.3); padding: 0 6px; border-radius: 6px; flex: none; }
.vs-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.vs-meta code { color: var(--blu); } .vs-meta .plus { color: var(--bf-mint); } .vs-meta .minus { color: var(--bf-coral); }
.vs-actions { display: flex; gap: 4px; align-items: start; }
.vs-menu { position: relative; } .vs-menu > summary { list-style: none; } .vs-menu > summary::-webkit-details-marker { display: none; }
.vs-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; min-width: 260px; display: grid; padding: 4px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--ink-3); box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.vs-pop button { text-align: left; border: 0; background: transparent; color: var(--text); padding: 7px 10px; border-radius: 7px; font-size: 12px; cursor: pointer; }
.vs-pop button:hover { background: rgba(0,162,255,0.12); }
.vs-diff { grid-column: 1 / -1; }
.vs-pre { margin: 6px 0 0; max-height: 420px; overflow: auto; padding: 10px 12px; border-radius: 10px; background: #030712; border: 1px solid var(--bf-card-line); font: 11.5px/1.5 var(--code); white-space: pre; color: var(--text-2); }
.vs-pre .add { color: var(--bf-mint); } .vs-pre .del { color: var(--bf-coral); } .vs-pre .hunk { color: var(--bf-violet); } .vs-pre .file { color: var(--blu); font-weight: 600; }
.vs-cmds { margin: 4px 0 10px; padding: 10px 12px; border-radius: 10px; background: #030712; border: 1px solid rgba(0,162,255,0.3); font: 12px/1.6 var(--code); white-space: pre-wrap; word-break: break-all; color: var(--text); }
.vs-cmd-label { font-size: 11.5px; color: var(--text-2); }
.vs-warn { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(245,158,11,0.4); background: rgba(245,158,11,0.08); font-size: 12px; display: grid; gap: 6px; }
.vs-check { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.vs-output { border-radius: 10px; padding: 6px 10px; border: 1px solid var(--bf-card-line); } .vs-output.bad { border-color: rgba(251,113,133,0.4); }
.vs-output summary { cursor: pointer; font-size: 12px; }
/* Internet & app usage (opt-in, local only). */
.iu-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.iu-switch { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--bf-card-line); cursor: pointer; background: rgba(0,162,255,0.06); color: var(--text); font-size: 12.5px; }
.iu-switch i { width: 34px; height: 20px; border-radius: 999px; background: rgba(0, 162, 255, 0.3); position: relative; transition: background .2s; }
.iu-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.iu-switch.on i { background: var(--blu); } .iu-switch.on i::after { transform: translateX(14px); }
.iu-table { display: grid; }
.iu-tr { display: grid; grid-template-columns: minmax(0, 1fr) 64px 118px; gap: 10px; align-items: center; padding: 6px 4px; border-top: 1px solid var(--bf-card-line); font-size: 12px; }
.iu-tr.head { color: var(--text-2); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; border-top: 0; }
.iu-tr span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iu-tr b { font-family: var(--display); text-align: right; } .iu-tr small { color: var(--muted); text-align: right; }
.iu-bar { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blu), var(--bf-violet)); margin-top: 3px; }
.iu-privacy { font-size: 11.5px; color: var(--text-2); }

/* Competition map */
.comp-map { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; gap: 10px; }
.comp-field { position: relative; border: 1px solid var(--bf-card-line); border-radius: 18px; overflow: hidden; background: radial-gradient(600px 400px at 50% 50%, rgba(0,162,255,0.10), transparent 70%), #030712; }
.comp-links { position: absolute; inset: 0; width: 100%; height: 100%; }
.comp-link { stroke-linecap: round; }
.comp-link.t1 { stroke: rgba(0, 162, 255, 0.22); stroke-width: 1; stroke-dasharray: 4 6; }
.comp-link.t2 { stroke: rgba(124,108,255,0.45); stroke-width: 1.6; }
.comp-link.t3 { stroke: rgba(251,113,133,0.7); stroke-width: 2.4; }
.comp-centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; pointer-events: none; }
.comp-centre canvas { width: 170px; height: 170px; }
.comp-centre b { font-family: var(--display); font-size: 13px; }
.comp-node { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; padding: 8px 10px 6px; border-radius: 14px; border: 1px solid var(--bf-card-line); background: rgba(9,13,30,0.85); backdrop-filter: blur(6px); cursor: default; transition: border-color .2s, box-shadow .2s; }
.comp-node:hover { border-color: var(--blu, #00a2ff); box-shadow: 0 0 24px rgba(0,162,255,0.35); z-index: 3; }
.comp-node.t3 { border-color: rgba(251,113,133,0.45); }
.comp-node img { width: 64px; height: 64px; }
.comp-node b { font-size: 12px; } .comp-node small { font-size: 10.5px; color: var(--text-2); }
.comp-x { position: absolute; top: 2px; right: 4px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; opacity: 0; }
.comp-node:hover .comp-x { opacity: 1; }
.comp-empty { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: var(--text-2); font-size: 12.5px; }
.comp-form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.comp-form input, .comp-form select { padding: 7px 11px; border-radius: 9px; border: 1px solid var(--line); background: rgba(0,162,255,0.08); color: var(--text); font-size: 12.5px; outline: 0; }
.comp-form select option { background: var(--ink-3); }
.handoff-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.handoff-row b { display: block; font-size: 12.5px; font-weight: 600; }
.handoff-row small { color: var(--muted); font-size: 11px; }
.detected .chip-row { align-items: center; }
.detect-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.detect-bar .view-tabs em { font-style: normal; margin-left: 6px; color: var(--muted-2); font-family: var(--mono); font-size: 10.5px; }
.detect-search { flex: 1; min-width: 120px; max-width: 200px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,162,255,0.08); color: var(--text); outline: 0; font-size: 12px; }
.detect-search:focus { border-color: var(--line-2); }
.detect-list { display: grid; max-height: 380px; overflow: auto; padding-right: 4px; }
.detect-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.detect-row b { display: block; font-size: 12.5px; font-weight: 600; }
.detect-row small { color: var(--muted); font-size: 11px; }
.detect-pill { flex: none; padding: 2px 8px; border-radius: 999px; font: 10.5px var(--mono); color: var(--text-2); background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.detect-pill.on, .detect-pill.plugin { color: var(--blu); border-color: rgba(0,162,255,0.35); }
.detect-pill.off { color: var(--muted-2); }
.detect-pill.codex { color: var(--cyan); } .detect-pill.project { color: #7c6cff; }

/* Branded boot screen */
.boot { background: radial-gradient(900px 600px at 50% 40%, rgba(0,162,255,0.10), transparent 60%), #020617; overflow: hidden; }
.boot-aura { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(0,162,255,0.0), rgba(0,162,255,0.35), rgba(124,108,255,0.3), rgba(0,162,255,0.0)); filter: blur(60px); animation: boot-spin 6s linear infinite; opacity: 0.55; }
.boot-inner { position: relative; display: grid; justify-items: center; gap: 14px; }
.boot-mark { width: 112px; height: 112px; fill: none; stroke: #38bdf8; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 12px rgba(0,162,255,0.8)); }
.boot-head { stroke-dasharray: 70; stroke-dashoffset: 70; animation: boot-draw 1.1s ease-out forwards; fill: rgba(0,162,255,0.08); }
.boot-face { stroke-width: 2.2; stroke: #e0f2fe; opacity: 0; animation: boot-in .3s .9s forwards, boot-blink 3s 1.6s infinite; }
.boot-nose { fill: #e0f2fe; stroke: none; opacity: 0; animation: boot-in .3s 1s forwards; }
.boot-word { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.01em; color: #e2e8f0; opacity: 0; transform: translateY(6px); animation: boot-rise .6s .5s forwards; }
.boot-word b { color: #00a2ff; }
.boot-word span { letter-spacing: inherit; }
.boot-bar { width: 180px; height: 3px; border-radius: 3px; background: rgba(0, 162, 255, 0.15); overflow: hidden; }
.boot-bar i { display: block; width: 40%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #00a2ff, #7c6cff); animation: boot-load 1.2s ease-in-out infinite; }
.boot-sub { font-size: 11.5px; letter-spacing: 0.08em; color: #64748b; }
/* Boot scene: live 3D BluFox + crew clouds above him + Booting NN% */
.boot-stage { position: relative; width: 420px; height: 300px; display: grid; justify-items: center; align-items: end; }
.boot-fox { width: 230px; height: 230px; display: block; filter: drop-shadow(0 0 28px rgba(0,162,255,0.35)); }
.boot-sky { position: absolute; inset: 0 0 42% 0; pointer-events: none; }
.boot-cloud { position: absolute; width: 74px; height: 50px; display: grid; place-items: center; transform: translate(-50%, 0); animation: boot-drift 5.2s ease-in-out infinite; animation-delay: calc(var(--i) * -0.9s); }
.boot-cloud::before, .boot-cloud::after { content: ""; position: absolute; border-radius: 50%; background: rgba(224,242,254,0.92); box-shadow: 0 0 18px rgba(0,162,255,0.25); }
.boot-cloud::before { inset: 14px 0 0 0; border-radius: 26px; }
.boot-cloud::after { width: 38px; height: 38px; left: 18px; top: 0; }
.boot-cloud img { position: relative; z-index: 1; width: 44px; height: 44px; margin-top: -4px; transition: transform .35s ease; }
.boot-cloud.is-watched { animation-play-state: paused; }
.boot-cloud.is-watched img { transform: translateY(-3px) scale(1.12); }
.boot-pct { font-family: var(--display); font-variant-numeric: tabular-nums; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: #38bdf8; }
.boot-bar i { transition: width .25s ease; }
.boot-crew { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(148,197,255,0.55); }
@keyframes boot-drift { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -8px); } }
@media (prefers-reduced-motion: reduce) { .boot-cloud { animation: none; } }
:root[data-theme="light"] .boot-cloud::before, :root[data-theme="light"] .boot-cloud::after { background: #fff; box-shadow: 0 2px 12px rgba(0,119,204,0.25); }
:root[data-theme="light"] .boot-pct { color: #0077cc; }
:root[data-theme="light"] .boot-crew { color: #475569; }
@keyframes boot-spin { to { transform: rotate(360deg); } }
@keyframes boot-draw { to { stroke-dashoffset: 0; } }
@keyframes boot-in { to { opacity: 1; } }
@keyframes boot-rise { to { opacity: 1; transform: none; } }
@keyframes boot-load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes boot-blink { 0%, 92%, 100% { opacity: 1; } 95% { opacity: 0.1; } }
@media (prefers-reduced-motion: reduce) { .boot-aura, .boot-bar i { animation: none; } .boot-head { stroke-dashoffset: 0; animation: none; } .boot-face, .boot-nose, .boot-word { opacity: 1; transform: none; animation: none; } }

/* Hover cards: details on hover */
.hovercard { position: fixed; z-index: 120; max-width: 340px; display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--bf-card-line); background: rgba(9,13,30,0.97); box-shadow: 0 16px 40px rgba(0,0,0,0.5); backdrop-filter: blur(10px); font-size: 12px; line-height: 1.45; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.hovercard.on { opacity: 1; transform: none; }
.hovercard b { font-family: var(--display); font-size: 12.5px; color: var(--text); }
.hovercard p { margin: 0; color: var(--text-2); }

/* Prompter (main BluFox tab) + token advice */
.prompter { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 14px; min-height: 0; text-align: left; }
.prompter > section, .prompter > aside { min-height: 0; overflow: auto; border: 1px solid var(--bf-card-line); border-radius: 16px; padding: 14px 16px; background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)); display: grid; gap: 12px; align-content: start; }
.prompter header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.prompter h2, .prompter h3 { margin: 0; font-family: var(--display); font-size: 17px; }
.prompter h3 { font-size: 14px; }
.prompter header small { color: var(--text-2); font-size: 11.5px; }
.prompter h4 { margin: 6px 0 0; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.pr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pr-cols label { display: block; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 5px; }
.pr-input { width: 100%; box-sizing: border-box; resize: vertical; min-height: 150px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,162,255,0.08); color: var(--text); font: 13px/1.5 var(--mono, monospace); }
.pr-input:focus { outline: none; border-color: var(--blu, #00a2ff); }
.pr-output { border-color: rgba(0,162,255,0.35); }
.pr-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pr-meter { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-left: auto; }
.pr-meter .good { color: var(--green); }
.pr-meter small { flex-basis: 100%; text-align: right; color: var(--muted); }
.pr-suggest { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; background: rgba(0,162,255,0.05); }
.pr-suggest p { margin: 0; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.pr-model { display: flex; gap: 10px; align-items: center; }
.pr-model b { font-family: var(--display); font-size: 15px; }
.pr-delegate { color: var(--amber) !important; }
.pr-alt { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.pr-exec { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pr-advice { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text-2); }
.pr-advice.small { font-size: 11.5px; color: var(--muted); }
.pr-list { display: grid; gap: 6px; }
.pr-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,162,255,0.06); }
.pr-row b { font-size: 12.5px; }
.pr-row b em { font-style: normal; font-size: 10px; margin-left: 7px; padding: 1px 6px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); }
.pr-row small { display: block; font-size: 11px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.pr-row.delegate { grid-template-columns: auto 1fr; }
.pr-actions { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.pill.ideation { color: var(--bf-violet); border-color: rgba(124,108,255,0.4); }
.pill.execution { color: var(--blu, #00a2ff); border-color: rgba(0,162,255,0.4); }
.pill.bulk { color: var(--amber); border-color: rgba(245,158,11,0.35); }
.pill.mechanical { color: var(--green); border-color: rgba(34,197,94,0.35); }
@media (max-width: 1000px) { .prompter { grid-template-columns: 1fr; position: static; } .pr-cols { grid-template-columns: 1fr; } }

.bf-tip { position: fixed; z-index: 9999; max-width: 340px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(0,162,255,0.35); background: rgba(8,14,28,0.97); box-shadow: 0 10px 30px rgba(0,0,0,0.5); font-size: 11.5px; line-height: 1.45; pointer-events: none; display: grid; gap: 4px; }
.bf-tip b { font-size: 12px; }
.bf-tip p { margin: 0; color: var(--text-2); }
.mt-row:not(.head):hover { background: rgba(0,162,255,0.06); }
.cal-cell:hover { outline: 1px solid var(--blu, #00a2ff); }
.why-today { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.25); }
.why-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.why-head b { font-family: var(--display); font-size: 14px; }
.why-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--text-2); }
.why-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; }
.why-cols h5 { margin: 0 0 6px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.why-cols ul { margin: 0; padding-left: 16px; display: grid; gap: 6px; font-size: 12px; line-height: 1.5; color: var(--text-2); }
.why-cols ul.tips { padding-left: 0; list-style: none; }
.why-cols ul.tips li { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; }
.why-cols .tips b { display: block; color: var(--text); font-size: 12px; }
.why-cols .tips small { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; }
.impact { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; padding: 1px 6px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); }
.impact.high { color: var(--red); border-color: rgba(239,68,68,0.4); }
.impact.medium { color: var(--amber); border-color: rgba(245,158,11,0.4); }
@media (max-width: 900px) { .why-cols { grid-template-columns: 1fr; } }
.pr-exec select { padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line); background: rgba(0,162,255,0.1); color: var(--text); font-size: 12px; max-width: 180px; }
.pr-exec select option { background: var(--ink-3, #0b1220); color: var(--text); }

/* Bottom-right usage dock */
.usage-dock { position: fixed; right: 14px; bottom: 14px; z-index: 60; font-size: 12px; }
.ud-pill { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--bf-card-line); background: var(--panel); backdrop-filter: blur(12px); color: var(--text); cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.ud-pill:hover { border-color: rgba(0,162,255,0.5); }
.ud-pill b { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; color: var(--text-2); }
.ud-chip { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11.5px; }
.ud-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.ud-quiet { color: var(--muted); margin: 0; }
.ud-card { width: 360px; max-height: min(70vh, 560px); overflow: auto; display: grid; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(0,162,255,0.3); background: var(--panel); box-shadow: 0 14px 40px rgba(0,0,0,0.55); }
.ud-top { display: flex; align-items: center; gap: 10px; }
.ud-top > b { font-family: var(--display); font-size: 13px; }
.ud-top .tb-seg { margin-left: auto; }
.ud-x { border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; padding: 0 2px; }
.ud-rows { display: grid; gap: 8px; }
.ud-row { display: grid; gap: 6px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,162,255,0.06); }
.ud-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ud-h b { font-size: 12.5px; }
.ud-big { font-family: var(--display); font-size: 17px; margin-left: auto; }
.ud-h small { flex-basis: 100%; color: var(--muted); font-size: 11px; }
.ud-models { display: flex; gap: 6px; flex-wrap: wrap; }
.ud-models span { padding: 2px 8px; border-radius: 8px; border: 1px solid var(--line); color: var(--text-2); font-size: 11px; }
.ud-models em { font-style: normal; color: var(--text); font-family: var(--mono); }
.ud-models .fable, .ud-sw .fable { color: var(--bf-violet); border-color: rgba(124,108,255,0.45); }
.ud-sw { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.ud-sw b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.ud-note { color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.iu .bf-card, .iu .hbars { align-content: start; }
.iu .iu-table { max-height: 440px; overflow-y: auto; }

/* Grouped live sessions (AI activity merged with live tokens) */
.ls-list { display: grid; gap: 4px; align-content: start; }
.ls-list.compact { max-height: 360px; overflow: auto; }
.ls-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 7px 9px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,162,255,0.06); cursor: pointer; border-left-width: 3px; }
.ls-row:hover { background: rgba(0,162,255,0.07); }
.ls-row.working { border-left-color: var(--green); }
.ls-row.awaiting { border-left-color: var(--amber); }
.ls-row.review { border-left-color: var(--red); }
.ls-row.failed { border-left-color: var(--red); }
.ls-row.idle { border-left-color: var(--line); opacity: 0.85; }
.ls-main { min-width: 0; display: grid; gap: 3px; }
.ls-top { display: flex; gap: 6px; align-items: center; min-width: 0; }
.ls-top b { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-proj { flex: none; font-family: var(--mono); font-size: 9.5px; padding: 1px 6px; border-radius: 7px; background: rgba(0,162,255,0.14); color: var(--blu, #00a2ff); max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-meta { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; font-size: 10.5px; color: var(--muted); }
.ls-model { font-family: var(--mono); }
.ls-st { padding: 0 6px; border-radius: 7px; border: 1px solid var(--line); }
.ls-st.working { color: var(--green); border-color: rgba(34,197,94,0.35); }
.ls-st.awaiting { color: var(--amber); border-color: rgba(245,158,11,0.4); }
.ls-st.review, .ls-st.failed { color: var(--red); border-color: rgba(239,68,68,0.4); }
.ls-chip { padding: 0 6px; border-radius: 7px; border: 1px solid var(--line); }
.ls-chip.review { color: var(--red); border-color: rgba(239,68,68,0.4); }
.ls-chip.ideas { color: var(--bf-violet); border-color: rgba(124,108,255,0.45); }
.ls-num { text-align: right; display: grid; gap: 2px; }
.ls-num b { font-family: var(--mono); font-size: 12px; color: var(--green); }
.ls-num small { color: var(--muted); font-size: 10px; }
.ls-empty { font-size: 12px; margin: 0; }
.ls-pop { position: fixed; z-index: 9998; width: 340px; max-height: 80vh; overflow: auto; display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(0,162,255,0.35); background: var(--panel); box-shadow: 0 14px 40px rgba(0,0,0,0.55); font-size: 12px; }
.ls-pop-h { display: flex; gap: 8px; align-items: center; min-width: 0; }
.ls-pop-h b { font-size: 13px; }
.ls-pop-sub { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 11px; align-items: center; }
.ls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.ls-grid span { display: flex; justify-content: space-between; color: var(--text-2); font-size: 11.5px; }
.ls-grid b { font-family: var(--mono); font-weight: 500; color: var(--text); }
.ls-quote { margin: 0; color: var(--text-2); line-height: 1.45; }
.ls-quote em { color: var(--muted); font-style: normal; }
.ls-lists h6, .ls-gaps h6 { margin: 0 0 4px; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.ls-lists p { margin: 0 0 3px; color: var(--text-2); }
.ls-gap { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 4px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.ls-acts { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 4px; }

.pr-head-r { display: flex; gap: 10px; align-items: center; }
.pr-nnft { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 3px 11px; font-size: 11px; font-family: var(--mono); cursor: pointer; }
.pr-nnft.on { color: var(--amber); border-color: rgba(245,158,11,0.55); background: rgba(245,158,11,0.08); }
.pr-held { display: grid; gap: 6px; }
.pr-held:empty { display: none; }
.pr-held-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid rgba(245,158,11,0.3); border-radius: 10px; background: rgba(245,158,11,0.05); }
.pr-held-row b { font-size: 12px; font-weight: 500; }
.pr-held-row small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 2px; }

/* Prompter: Allow Fable switch */
.pr-switch { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 3px 10px 3px 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 162, 255, 0.06); }
.pr-switch i { position: relative; width: 26px; height: 15px; border-radius: 999px; background: rgba(0, 162, 255, 0.3); transition: background .15s; }
.pr-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .15s; }
.pr-switch.on { color: var(--text); border-color: var(--line-2); }
.pr-switch.on i { background: var(--blu); }
.pr-switch.on i::after { transform: translateX(11px); }
.pr-switch:focus-visible { outline: 2px solid var(--blu); outline-offset: 2px; }

/* ---- System monitor side panel ---- */
body.with-sysmon .body { margin-right: 292px; }
.sysmon { position: fixed; z-index: 40; top: calc(var(--top-h) + 8px); right: 8px; bottom: 8px; width: 276px; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: -20px 0 40px rgba(0,0,0,0.35); }
.sm-head { display: flex; justify-content: space-between; align-items: center; }
.sm-head b { font-family: var(--display); font-size: 14px; letter-spacing: .02em; }
.sm-close { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); }
.sm-close:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.sm-block { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,162,255,0.06); }
.sm-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sm-row b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-big { font: 600 18px var(--display); color: var(--blu); }
.sm-big.warm { color: var(--amber); } .sm-big.hot { color: var(--red); }
.sm-sub { color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.sm-spark { width: 100%; height: 28px; }
.sm-spark polyline { fill: none; stroke: #00a2ff; stroke-width: 1.5; stroke-linejoin: round; }
.sm-cores { display: flex; align-items: flex-end; gap: 2px; height: 26px; }
.sm-cores i { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: rgba(124,108,255,0.7); }
.sm-cores i.warm { background: var(--amber); } .sm-cores i.hot { background: var(--red); }
.sm-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.06); overflow: hidden; flex: 1; }
.sm-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #00a2ff, #7c6cff); }
.sm-bar.warm i { background: var(--amber); } .sm-bar.hot i { background: var(--red); }
.sm-line { display: flex; align-items: center; gap: 8px; }
.sm-line small { color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.sm-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.sm-chips span { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); font: 10.5px var(--mono); color: var(--text-2); }
.sm-chips span.warm { color: var(--amber); } .sm-chips span.hot { color: var(--red); }
.sm-run { display: grid; grid-template-columns: 8px 1fr; column-gap: 8px; align-items: center; text-align: left; padding: 5px 4px; border-radius: 8px; }
.sm-run:hover { background: rgba(0,162,255,0.1); }
.sm-run .led { width: 7px; height: 7px; border-radius: 50%; display: block; }
.sm-run span { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-run small { grid-column: 2; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Brands: GitHub account / sync strip */
.ghstrip { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 12px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.025); }
.ghstrip > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ghstrip b { font-size: 12.5px; }
.ghstrip small { font-size: 11px; }

/* Wordmark: "Blu" flips with the mode (light on dark, BluFox ink #020617 on light); "Fox" stays #00a2ff. */
:root[data-theme="light"] .boot-word, :root[data-theme="light"] .brand-name { color: #020617; }
/* "Fox" is always brand Blu, in every mode. */
.boot-word b, .brand-name b, :root[data-theme="light"] .boot-word b, :root[data-theme="light"] .brand-name b { color: #00a2ff; }
:root[data-theme="light"] .boot-sub { color: #475569; }
:root[data-theme="light"] .boot-mark { stroke: #0077cc; filter: drop-shadow(0 0 10px rgba(0,119,204,0.35)); }
:root[data-theme="light"] .boot-face, :root[data-theme="light"] .boot-nose { stroke: #020617; fill: #020617; }

/* Right-to-left languages (Arabic). The grid and flex layouts flip with <html dir="rtl">; these fix the side borders and keep machine-readable values left-to-right. */
[dir="rtl"] .nav { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .rail { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .tbl th, [dir="rtl"] .tbl td { text-align: right; }
[dir="rtl"] .mono, [dir="rtl"] input[type="date"], [dir="rtl"] input[type="month"], [dir="rtl"] input[inputmode="decimal"], [dir="rtl"] .fx-result b, [dir="rtl"] .fx-rate-line { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .nav-item em { margin-left: 0; margin-right: auto; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.fx-result { margin: 12px 0 4px; } .fx-result b { font-size: 28px; display: block; } .fx-rate-line { opacity: .75; }
.fx-quick td:last-child { text-align: end; font-variant-numeric: tabular-nums; }
.fin-approx { display: block; font-size: 11px; opacity: .65; }

/* ---- bottom status bar (moved out of the title bar so nothing overlaps the window controls) ---- */
.statusbar { grid-row: 3; display: flex; align-items: center; min-height: 30px; padding: 0 10px; border-top: 1px solid var(--line); background: var(--ink-2); overflow: hidden; -webkit-app-region: no-drag; }
.statusbar .status-strip { height: 26px; margin: 0; padding: 0; border: 0; background: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; flex: 1 1 auto; }
.statusbar .status-strip::-webkit-scrollbar { display: none; }
.usage-dock { bottom: 44px; }
/* The strip now lives in the bottom bar: its filter pop-over opens upward instead of below the window edge. */
.ss-pop { top: auto !important; bottom: 40px; }
/* ---- rail: uncommitted by project + PR groups ---- */
.rg { display: grid; gap: 6px; }
.rg-group { display: grid; gap: 2px; }
.rg-h { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 4px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rg-h em { font-style: normal; font-family: var(--mono); letter-spacing: 0; color: var(--text-2); }
.rg-empty { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.rg-proj summary { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,0.02); font-size: 12.5px; cursor: pointer; list-style: none; }
.rg-proj summary::-webkit-details-marker { display: none; }
.rg-proj summary:hover { background: rgba(0,162,255,0.06); }
.rg-proj summary .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-proj summary em { font-style: normal; font-family: var(--mono); color: var(--amber); }
.rg-files { display: grid; gap: 3px; padding: 6px 10px 8px 28px; }
.rg-files code { font-family: var(--code); font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-files small { color: var(--muted); font-size: 11px; }
.rg-open { justify-self: start; margin-top: 4px; font-size: 11.5px; color: var(--blu); }
