@font-face{font-family:"Inter";src:url("/static/inter-var.woff2") format("woff2");font-weight:400 600;
font-style:normal;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url("/static/jbmono-400.woff2") format("woff2");font-weight:400;
font-style:normal;font-display:swap}
:root{color-scheme:dark;
--font-sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
--font-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
--text-title-size:20px;--text-title-line:26px;--text-body-size:15px;--text-body-line:22px;
--text-caption-size:12px;--text-caption-line:16px;--text-label-size:11px;--text-label-line:14px;
--text-id-size:12px;--text-id-line:16px;
--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;
--radius-sm:6px;--radius-md:12px;--radius-lg:18px;--radius-pill:999px;
--surface-0:#0b0e12;--surface-1:#12161c;--surface-2:#1a2029;--surface-3:#242930;
--ink:#eef2f6;--ink-muted:#a1b3c4;--ink-faint:#6f7c8c;--line:#262d38;--line-strong:#3a4450;
--brand:#2367f8;--brand-mid:#30a0fb;--light:#38cdfd;--on-brand:#ffffff;--ok:#5bd08f;--warn:#f5b84a;
--accent:#e8823f;--ink-on-accent:#1a0c04;--danger:#f27979;--link:#30a0fb;
--edge-core:0 0 1.5px #38cdfd;--edge-halo-idle:0 0 5px #38cdfd59;--edge-halo-active:0 0 9px #38cdfdb3}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--surface-0)}
body{margin:0;background:var(--surface-0);color:var(--ink);font-family:var(--font-sans);
font-size:var(--text-body-size);line-height:var(--text-body-line);-webkit-font-smoothing:antialiased}
main{margin:0 auto;max-width:44rem;padding:var(--space-3) var(--space-4) var(--space-5)}
h1{font-size:var(--text-title-size);line-height:var(--text-title-line);font-weight:600;letter-spacing:-0.01em;
margin:var(--space-5) 0 var(--space-3)}
h2{font-size:var(--text-body-size);line-height:var(--text-body-line);font-weight:600;margin:var(--space-5) 0 var(--space-2)}
p{margin:var(--space-2) 0}
a{color:var(--link)}
:focus-visible{outline:2px solid var(--link);outline-offset:2px}
small,.state{color:var(--ink-muted);font-size:var(--text-caption-size);line-height:var(--text-caption-line)}
.label{color:var(--warn)}
.privacy{margin:0 auto;max-width:44rem;padding:0 var(--space-4) var(--space-5)}
/* ---- the header: the V mark, the name, the state line, the nav, the account menu ---- */
.v-header{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3);min-height:60px;
padding:var(--space-2) var(--space-4);background:var(--surface-1);border-bottom:1px solid var(--line)}
/* F1-LANG D-f: the header stays at the top while the page scrolls. Sticky, not fixed: it keeps its place in the flow,
   so main starts below it at every width. The offset rule (scroll-padding-top, by --v-header-h) keeps whatever the page
   scrolls to (a new chat message, a focused field) from landing under it. ACCOUNT-MENU D-d: set from the CLOSED header
   as measured (design_review.py C5; the account menu's panel overlays, so an open menu adds nothing): 117 px at 500
   px, the narrowest headless window, and 61 px on a desktop row, whoever is signed in (it was 207 px and 103 px with
   the organizations menu and the cohort in the header column); 390 px is not laid out by the check. */
.v-header{position:sticky;top:0;z-index:10}
html{--v-header-h:120px;scroll-padding-top:var(--v-header-h)}
.v-lead{position:relative;width:36px;height:36px;flex-shrink:0;display:grid;place-items:center}
.v-lead img{width:26px;height:auto;display:block;
filter:drop-shadow(var(--edge-core)) drop-shadow(var(--edge-halo-idle));animation:v-hue 12s ease-in-out infinite}
.is-thinking .v-lead img,.is-acting .v-lead img{animation:v-hue-breathe 1.6s ease-in-out infinite}
.is-speaking .v-lead img{filter:drop-shadow(var(--edge-core)) drop-shadow(var(--edge-halo-active))}
.v-title{display:flex;flex-direction:column;gap:2px;min-width:0}
.v-name{font-size:15px;line-height:20px;font-weight:600}
.v-status{font-size:var(--text-caption-size);line-height:14px;color:var(--ink-muted)}
#nav{flex:0 1 auto;margin-left:auto;display:flex;flex-wrap:wrap;align-items:center;gap:0 var(--space-4);min-width:0}
.v-title{flex:1}
main,.v-header,.list,.msg{min-width:0}
#nav a{color:var(--ink-muted);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
#nav a[aria-current="page"]{color:var(--ink);font-weight:600}
#nav form{display:inline;margin:0}
#nav button{min-height:44px;padding:0;border:0;background:none;color:var(--ink-muted);font:inherit;cursor:pointer}
#nav-msg{color:var(--danger);font-size:var(--text-caption-size)}
/* ---- forms and buttons ---- */
button{font:inherit;min-height:44px;padding:0 var(--space-4);border-radius:var(--radius-md);
border:1px solid var(--line-strong);background:var(--surface-2);color:var(--ink);cursor:pointer}
button:disabled{background:var(--surface-2);color:var(--ink-faint);border-color:var(--line);cursor:default}
#f button,#chat-send{background:var(--brand);color:var(--on-brand);border-color:transparent;font-weight:600}
input,textarea{font:inherit;font-size:16px;width:100%;min-height:44px;padding:11px var(--space-3);
border-radius:var(--radius-md);border:1px solid var(--line);background:var(--surface-1);color:var(--ink)}
input::placeholder,textarea::placeholder{color:var(--ink-faint)}
input:focus,textarea:focus{outline:2px solid var(--link);outline-offset:1px;border-color:var(--line-strong)}
#f{display:flex;flex-direction:column;gap:var(--space-2);margin:var(--space-3) 0}
ul{list-style:none;margin:0;padding:0}
li{padding:var(--space-3) 0;border-bottom:1px solid var(--line)}
details{margin-top:var(--space-2)}
summary{color:var(--link);cursor:pointer;min-height:32px}
pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:var(--font-mono);font-size:13px;
background:var(--surface-1);border:1px solid var(--line);border-radius:var(--radius-md);padding:var(--space-3)}
/* ---- the chat pane: the design system's messages ---- */
.chat{margin-top:var(--space-5)}
.chat .note{color:var(--ink-muted);font-size:var(--text-caption-size);line-height:var(--text-caption-line)}
.list{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-4) 0}
.msg{max-width:88%;padding:var(--space-3) var(--space-4);border-radius:var(--radius-lg);overflow-wrap:anywhere}
.msg.user{align-self:flex-end;background:var(--surface-2);border-bottom-right-radius:var(--radius-sm);
box-shadow:inset 0 0 0 1px var(--line),inset 3px 0 0 var(--brand)}
.msg.assistant{align-self:flex-start;background:var(--surface-1);border:1px solid var(--line);
border-bottom-left-radius:var(--radius-sm)}
.msg.vanaja{align-self:flex-start;background:var(--surface-1);border:1px solid var(--line);
border-left:2px solid var(--light);border-bottom-left-radius:var(--radius-sm)}
.msg.error{align-self:flex-start;color:var(--danger)}
.msg .who{display:block;text-transform:uppercase;letter-spacing:0.08em;font-size:var(--text-label-size);
line-height:var(--text-label-line);font-weight:600;color:var(--light);margin-bottom:var(--space-1)}
.msg .when{display:block;color:var(--ink-faint);font-size:var(--text-caption-size);margin-top:var(--space-1)}
.act{margin-top:var(--space-2);display:flex;gap:var(--space-4);align-items:center;flex-wrap:wrap}
.act button{min-height:32px;padding:0;border:0;background:none;color:var(--brand-mid);font-size:13px;font-weight:500}
.act.approve{border-top:1px solid var(--line);padding-top:var(--space-2)}
.act.approve button:first-child{min-height:44px;padding:0 var(--space-4);border-radius:var(--radius-md);
background:var(--accent);color:var(--ink-on-accent);font-weight:600}
.act.approve button:nth-child(2){min-height:44px;padding:0 var(--space-4);border-radius:var(--radius-md);
background:var(--surface-2);color:var(--ink);border:1px solid var(--line-strong)}
.act .res{color:var(--ink-muted);font-size:13px}
/* F4-CHIPS: the answer's suggested commands, thumb-sized (44px), wrapping on a phone; a disabled one is the
   button:disabled look above. */
.chips{margin-top:var(--space-2);display:flex;gap:var(--space-2);flex-wrap:wrap}
.chips button{min-height:44px;max-width:100%;padding:var(--space-2) var(--space-3);text-align:left;
overflow-wrap:anywhere}
.msg details summary{font-size:13px;color:var(--brand-mid);min-height:32px}
.msg .row{display:flex;justify-content:space-between;gap:var(--space-3);padding:6px 0;border-top:1px solid var(--line);
font-size:13px;line-height:18px}
.msg .row span:first-child{color:var(--ink-muted);flex:0 0 38%;overflow-wrap:normal}
.msg .row span:last-child{font-family:var(--font-mono);font-size:var(--text-id-size);line-height:var(--text-id-line);
text-align:right}
#chat-form{display:flex;gap:var(--space-2);align-items:flex-end;padding:var(--space-3) 0;border-top:1px solid var(--line)}
#chat-form input{flex:1;width:auto;min-width:0}
#chat-form button{flex-shrink:0}
.v-dots{display:none;gap:4px;height:8px;margin-left:var(--space-4)}
.is-speaking .v-dots,.is-thinking .v-dots{display:flex}
.v-dots i{width:6px;height:6px;border-radius:var(--radius-pill);background:var(--light);animation:v-rise .9s ease-in-out infinite}
.v-dots i:nth-child(2){animation-delay:.24s}
.v-dots i:nth-child(3){animation-delay:.48s}
/* ---- motion ---- */
@keyframes v-hue{0%,100%{filter:drop-shadow(var(--edge-core)) drop-shadow(var(--edge-halo-idle)) hue-rotate(0deg)}
50%{filter:drop-shadow(var(--edge-core)) drop-shadow(var(--edge-halo-idle)) hue-rotate(-28deg)}}
@keyframes v-hue-breathe{0%,100%{filter:drop-shadow(var(--edge-core)) drop-shadow(var(--edge-halo-idle)) hue-rotate(0deg)}
50%{filter:drop-shadow(var(--edge-core)) drop-shadow(0 0 11px var(--light)) hue-rotate(-28deg)}}
@keyframes v-rise{0%,100%{transform:translateY(0);opacity:.5}50%{transform:translateY(-4px);opacity:1}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}
.is-thinking .v-lead img,.is-acting .v-lead img{filter:drop-shadow(var(--edge-core)) drop-shadow(var(--edge-halo-active))}}
@media (min-width:720px){.v-header{flex-wrap:nowrap;padding:var(--space-2) var(--space-6)}
#nav{flex-shrink:0;gap:var(--space-1) var(--space-3)}
html{--v-header-h:64px}}
/* ACCOUNT-MENU (D-a to D-e; DEMO D-h, D-i, D-l): the header's LAST item, after the nav, at every width. ONE native
   <details>: its summary (the block) shows who is signed in and, under it, the organization, whole (they wrap, never
   clip), with a chevron that points down when the menu is closed and up when it is open; on a phone row it wraps to
   its own line at the right. The panel is drawn OVER the page (absolute, out of the header's flow), right-aligned
   under the block and never wider than the window, so opening it leaves the header's height as it was. In it: the
   user's organizations (the current one with a check mark and bold, not colour alone), the cohort, sign out. */
.v-acct{position:relative;flex:0 1 auto;min-width:0;max-width:100%;margin:0 0 0 auto}
.v-acct>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:var(--space-2);
min-height:44px;list-style:none;color:var(--ink-muted);border-radius:var(--radius-sm)}
.v-acct>summary::-webkit-details-marker{display:none}
.v-acct>summary::after{content:"";grid-column:2;grid-row:1 / span 2;width:7px;height:7px;margin:0 3px;
border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.v-acct[open]>summary::after{transform:translateY(2px) rotate(-135deg)}
.v-acct[open]>summary{color:var(--ink)}
.v-who,.v-org,.v-cohort{display:block;min-width:0;overflow-wrap:anywhere;color:var(--ink-muted);
font-size:var(--text-caption-size);line-height:var(--text-caption-line)}
.v-who,.v-org{grid-column:1}
.v-email,.v-org-name,.v-cohort-ids{color:var(--ink)}
.v-panel{position:absolute;top:calc(100% + var(--space-1));right:0;z-index:20;width:max-content;min-width:14rem;
max-width:min(22rem,calc(100vw - 2 * var(--space-4)));max-height:calc(100vh - var(--v-header-h));overflow-y:auto;
padding:var(--space-1) var(--space-4);background:var(--surface-2);border:1px solid var(--line-strong);
border-radius:var(--radius-md);box-shadow:0 8px 24px #00000080}
.v-orgs-label{display:block;padding-top:var(--space-2);color:var(--ink-muted);font-size:var(--text-caption-size);
line-height:var(--text-caption-line)}
.v-orgs li{padding:0;border-bottom:0}
.v-orgs a{min-height:44px;display:flex;align-items:center;margin:0 calc(-1 * var(--space-2));padding:0 var(--space-2);
border-radius:var(--radius-sm);color:var(--ink-muted);text-decoration:none;overflow-wrap:anywhere}
.v-orgs a:hover{color:var(--ink);background:var(--surface-1)}
.v-orgs a::before{content:"";flex:0 0 1.25em}
/* the organization in the path reads as SELECTED (the human's look of 16.11: a bright link colour on the others read
   as the active one): its own raised row with the brand bar, the check and bold; the others quiet until hovered */
.v-orgs a[aria-current="true"]{color:var(--ink);font-weight:600;background:var(--surface-3);
box-shadow:inset 3px 0 0 var(--brand)}
.v-orgs a[aria-current="true"]::before{content:"\2713";content:"\2713" / ""}
.v-cohort{padding:var(--space-2) 0;border-top:1px solid var(--line)}
.v-panel form{margin:0;border-top:1px solid var(--line)}
.v-panel button{width:100%;min-height:44px;padding:0;border:0;border-radius:0;background:none;color:var(--ink);
text-align:left}
.v-panel #nav-msg{display:block}
@media (min-width:720px){.v-acct{margin-left:var(--space-5)}}
