/* Connect' Hub, in the art direction of connectbusiness.be (docs/refonte-visuelle.md): a bluish
   white, a night-blue ink, one indigo for action and a rare orange; the site's fonts and motion.
   Motion is short and calm, and off for who asks for less. */
:root{
/* indigo scale, copied from connectbusiness.be */
--indigo-50:#F3F5FE;--indigo-100:#E4E8FC;--indigo-200:#CDD4F9;--indigo-300:#B4BEF6;--indigo-400:#9CAAF2;
--indigo-500:#7B8FEA;--indigo-600:#5064DC;--indigo-700:#4557C9;--indigo-800:#3A46A8;--indigo-900:#2A3170;--indigo-950:#141A3D;
--ink:#141A3D;          /* site: --encre */
--ink-soft:#5F6D8C;     /* site: --encre-douce */
--ink-faint:#8A93B0;    /* site: --encre-tenue; never for text that carries meaning */
--surface:#FFFFFF;      /* site: --surface */
--bg:#F7F8FD;           /* site: --fond */
--line:#E4E8FC;         /* site: --trait */
--line-strong:#CDD4F9;  /* site: --trait-fort */
--on-accent:#FFFFFF;    /* Hub: text and ticks on a filled colour */
--night:#141A3D;        /* site: --nuit */
--night-raised:#1D2653; /* site: --nuit-elevee */
--night-deep:#0E122C;   /* site: top of .fond-hero, theme-color */
--night-text:#FFFFFF;   /* site: --nuit-texte */
--night-body:#C9D1F5;   /* site: --nuit-corps */
--night-muted:#8E9AC4;  /* site: --nuit-tenu */
--signature:#F5A623;    /* site: --signature; never as text on light */
--signature-ink:#9C5C08;/* site: --signature-lis */
--signature-soft:color-mix(in srgb,var(--signature) 14%,var(--surface)); /* Hub, ~#FEF3E0 */
/* agent pastels: robots, map nodes, confetti; never card backgrounds */
--pastel-sky:#C4E1F7;--pastel-mint:#C2ECD8;--pastel-peach:#FFD8BE; /* site: --pastel-ciel, -menthe, -peche */
--pastel-lemon:#F9E9AA;--pastel-pink:#F7CFE0;--pastel-lilac:#D6D0FA; /* site: --pastel-citron, -rose, -lilas */
--accent:var(--indigo-600);--accent-hover:var(--indigo-700);--accent-active:var(--indigo-800);
--link:var(--indigo-700);--link-hover:var(--indigo-800);
--accent-tint:var(--indigo-50);--accent-line:var(--indigo-200);
--ok:#065F46;--ok-bg:#D1FAE5;--ok-line:#A7F3D0;                         /* emerald 800 / 100 / 200 */
--bad:#B91C1C;--bad-bg:#FEF2F2;--bad-line:#FECACA;--bad-field:#DC2626;  /* red 700 / 50 / 200 (Hub) / 600 */
--warn:var(--signature-ink);--warn-bg:var(--signature-soft);
--warn-line:color-mix(in srgb,var(--signature) 60%,transparent);        /* Hub */
--gradient-title:linear-gradient(96deg,var(--indigo-800),var(--indigo-600)); /* Hub: text on light */
--gradient-night:linear-gradient(180deg,var(--night),var(--night-raised));  /* site: --degrade-nuit */
--hero-bg:radial-gradient(ellipse 42% 55% at 76% 52%,color-mix(in srgb,var(--indigo-600) 32%,transparent),transparent 70%),
          linear-gradient(180deg,var(--night-deep) 0,var(--night) 100%);   /* site: .fond-hero */
--grid-line:color-mix(in srgb,var(--indigo-600) 7%,transparent);         /* site: .ambiance-grille */
--grid-line-night:color-mix(in srgb,var(--indigo-300) 7%,transparent);   /* site: .ambiance-grille--nuit */
--figure-shadow-night:rgb(0 0 0 / .3);  /* site: fill-black/30 under a figure on night */
--shadow-card:0 1px 0 color-mix(in srgb,var(--ink) 4%,transparent);     /* site: --ombre-carte */
--shadow-raised:0 1px 0 color-mix(in srgb,var(--ink) 5%,transparent),0 16px 32px -24px color-mix(in srgb,var(--ink) 16%,transparent); /* site: --ombre-relief */
--focus-ring:0 0 0 3px color-mix(in srgb,var(--indigo-600) 28%,transparent); /* site: --anneau-focus */
--backdrop:color-mix(in srgb,var(--ink) 55%,transparent);                /* site: modal backdrop */
--r-xs:2px;--r-sm:4px;--r-md:6px;--r-lg:8px;--r-full:999px;             /* as the site redefines them */
--space-1:.25rem;--space-2:.5rem;--space-3:.75rem;--space-4:1rem;--space-5:1.25rem;--space-6:1.5rem;--space-8:2rem;--space-12:3rem;
--page-x:clamp(1rem,3vw,2rem);   /* Hub: 16 px on a phone, 32 px on a computer, as today */
--header-h:68px;                 /* site: .nav-site */
--font-sans:"Schibsted Grotesk","Schibsted Grotesk Fallback",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
--font-mono:"Geist Mono","Geist Mono Fallback",ui-monospace,SFMono-Regular,Menlo,monospace;
--font-logo:"Fraunces","Fraunces Fallback",Georgia,serif;
--ease-enter:cubic-bezier(.16,1,.3,1);     /* site: --ease-entree */
--ease-state:cubic-bezier(.4,0,.2,1);      /* site: --ease-etat */
--ease-fall:cubic-bezier(.55,.06,.68,.19); /* site: --ease-chute */
--ease-bounce:cubic-bezier(.34,1.56,.64,1);/* site: --ease-rebond */
--d-short:.16s;--d-mid:.32s;--d-long:.72s; /* site: --d-court, --d-moyen, --d-long */
/* type sizes (section 4.3 of the plan), fixed but for the h1 */
--t-h1:clamp(1.625rem,1.3rem + 1vw,2rem);--t-h2:1.25rem;--t-h3:1.0625rem;--t-lead:1.0625rem;
--t-body:.9375rem;--t-input:1rem;--t-small:.875rem;--t-meta:.8125rem;--t-micro:.75rem;--t-tag:.6875rem;
--t-figure:1.5rem;--t-figure-lg:2rem;--t-logo:1.5rem;--t-logo-lg:1.875rem;
}
@media (min-width:640px){:root{--t-logo-lg:2.25rem}}
/* The site's three fonts (OFL-1.1, each with its OFL.txt beside its files), built from upstream by
   scripts/build_fonts.py. Schibsted Grotesk for the text, Geist Mono for codes and figures, Fraunces
   Black for the logotype only. The fallbacks carry the site's metrics, so nothing jumps on load. */
@font-face{font-family:"Schibsted Grotesk";font-style:normal;font-display:swap;font-weight:400 800;
src:url(/static/fonts/schibsted-grotesk/schibsted-grotesk-1.100-latin-ext-wght.woff2) format("woff2");
unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Schibsted Grotesk";font-style:normal;font-display:swap;font-weight:400 800;
src:url(/static/fonts/schibsted-grotesk/schibsted-grotesk-1.100-latin-wght.woff2) format("woff2");
unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Geist Mono";font-style:normal;font-display:swap;font-weight:400 600;
src:url(/static/fonts/geist-mono/geist-mono-1.700-latin-ext-wght.woff2) format("woff2");
unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Geist Mono";font-style:normal;font-display:swap;font-weight:400 600;
src:url(/static/fonts/geist-mono/geist-mono-1.700-latin-wght.woff2) format("woff2");
unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Fraunces";font-style:normal;font-display:block;font-weight:900;
src:url(/static/fonts/fraunces/fraunces-1.000-wordmark.woff2) format("woff2");
unicode-range:U+0020,U+0027,U+0063,U+0065,U+006E,U+006F,U+0074,U+2019}
@font-face{font-family:"Schibsted Grotesk Fallback";src:local("Arial");ascent-override:93.46%;descent-override:24.67%;line-gap-override:0%;size-adjust:104.49%}
@font-face{font-family:"Geist Mono Fallback";src:local("Arial");ascent-override:74.67%;descent-override:21.92%;line-gap-override:0%;size-adjust:134.59%}
@font-face{font-family:"Fraunces Fallback";src:local("Times New Roman");ascent-override:84.71%;descent-override:22.09%;line-gap-override:0%;size-adjust:115.45%}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-sans);font-size:var(--t-body);line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:var(--link)}a:hover{color:var(--link-hover)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* The site's surfaces and patterns (3.4): the night, and the 32 px grid that fades at its ends. */
.night{background-color:var(--night);background-image:var(--gradient-night);color:var(--night-body)}
.grid-bg{position:relative;isolation:isolate}
.grid-bg::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:linear-gradient(var(--grid-line) 1px,transparent 0),linear-gradient(90deg,var(--grid-line) 1px,transparent 0);
  background-size:32px 32px;background-position:-1px -1px;
  mask-image:linear-gradient(180deg,transparent,black 14%,black 86%,transparent)}
.grid-bg.on-night::before{background-image:linear-gradient(var(--grid-line-night) 1px,transparent 0),linear-gradient(90deg,var(--grid-line-night) 1px,transparent 0)}
@media (prefers-reduced-transparency: reduce),(forced-colors: active){.grid-bg::before{display:none}}

/* -- motion ---------------------------------------------------------------------------- */
@keyframes rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes pop{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
@keyframes dot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@keyframes glow{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes spin{to{transform:rotate(360deg)}}
/* Entrances in the site's expo-out, staggered by 40 ms and 160 ms at most: one navigates often. */
.page>*{animation:rise var(--d-mid) var(--ease-enter) both}
.page>*:nth-child(2){animation-delay:40ms}.page>*:nth-child(3){animation-delay:80ms}
.page>*:nth-child(4){animation-delay:120ms}.page>*:nth-child(n+5){animation-delay:160ms}
.htmx-added{animation:rise var(--d-mid) var(--ease-enter) both}
/* The small life (7.7), after the site's characters. Nothing moves without end on a working
   screen but the Manager floating (from 56 px, decided on 2026-10-28) and his antenna while he
   thinks; an agent hops once when it has just produced, an active one's light pings three times,
   a large character blinks three times. */
@keyframes hop{0%,100%{translate:0 0}50%{translate:0 -6px}}                       /* agents-sursaut */
@keyframes antenna-pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.35);opacity:.7}} /* compagnon-pulse */
@keyframes live-ping{0%{opacity:.7;transform:scale(1)}70%,100%{opacity:0;transform:scale(2.6)}}       /* voyant */
@keyframes float{0%,100%{translate:0 0}50%{translate:0 -3px}}                     /* compagnon-flotte */
@keyframes blink{0%,93%,100%{transform:scaleY(1)}95%{transform:scaleY(.12)}}      /* compagnon-cligne */
.htmx-added .robot-body,.hop .robot-body,.robot-mark.lively.hop .robot-body{animation:hop var(--d-mid) var(--ease-enter)}
.robot-mark.lively .robot-body{animation:float 4.2s ease-in-out infinite}
.robot-eyes,.robot-antenna{transform-box:fill-box;transform-origin:center}
.robot-mark.lively .robot-eyes{animation:blink 5.5s 3}
.robot-mark[data-state=thinking] .robot-antenna{animation:antenna-pulse 1s ease-in-out infinite}
.live-dot::after{animation:live-ping 2.4s var(--ease-state) 3}
/* Skeletons (5.8): what loads after the page shows first as blocks of the line's colour, where
   the content will be and as tall, with a white sheen passing in 1.2 s; never a spinner, never
   « loading ». The content takes their place without moving the page. */
@keyframes shimmer{to{translate:100% 0}}
.skeleton-shape{display:flex;flex-direction:column}
.skeleton{position:relative;display:block;overflow:hidden;height:.75em;margin:.375em 0;border-radius:var(--r-xs);background:var(--line)}
.skeleton::after{content:"";position:absolute;inset:0;translate:-100% 0;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--surface) 70%,transparent),transparent);animation:shimmer 1.2s var(--ease-state) infinite}
.skeleton-short{width:30%}.skeleton-mid{width:60%}.skeleton-long{width:92%}
.skeleton-title{height:1.15em;margin:.1em 0 .6em}
.skeleton-field{height:44px;margin:var(--space-3) 0 0;border-radius:var(--r-sm)}
.skeleton-button{width:9rem;height:36px;margin:var(--space-4) 0 0;border-radius:var(--r-sm)}
.skeleton-badge{width:5rem;height:22px;margin:0 0 var(--space-2)}
.skeleton-chips{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-bottom:var(--space-3)}
.skeleton-chip{width:6rem;height:36px;margin:0;border-radius:var(--r-sm)}
.skeleton-row{display:block;padding:var(--space-3) 0;border-bottom:1px solid var(--line)}
.skeleton-row:last-child{border-bottom:0}
.skeleton-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:var(--space-3) 0}
.skeleton-tile{height:84px;margin:0;border-radius:var(--r-md)}
.skeleton-plot{height:120px;margin:var(--space-4) 0 0;border-radius:var(--r-md)}
.skeleton-band{height:41px;margin:0;border-radius:0}
.skeleton-pad{display:block;padding:0 var(--space-4)}
@media (prefers-reduced-motion: reduce){.skeleton::after{animation:none}}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* -- frame ----------------------------------------------------------------------------- */
/* The header, white and translucent as the site's once scrolled (5.1). Under 640 px it stays
   opaque and static: a backdrop-filter would make it the containing block of the alerts panel,
   fixed there, which would then scroll away with it. */
header.top{background:var(--surface);border-bottom:1px solid var(--line);padding-block:var(--space-3);padding-inline:var(--page-x);display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-8);position:sticky;top:0;z-index:5}
@media (min-width:641px){
  header.top{min-height:var(--header-h);padding-block:0;background:color-mix(in srgb,var(--surface) 85%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
  nav.main{align-self:stretch}
  nav.main a{align-self:stretch}
}
@media (min-width:641px) and (prefers-reduced-transparency: reduce){header.top{background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none}}
/* The logotype (Wordmark.tsx): Fraunces Black for "connect'", "hub" in the text's font. The
   orange apostrophe reads at 2.03:1 on white, which WCAG 1.4.3 allows a logotype. */
.brand{--wm-co:var(--indigo-600);--wm-nnect:var(--ink);--wm-sub:var(--ink-soft);display:inline-flex;align-items:baseline;flex:none;margin:0;text-decoration:none;line-height:1;letter-spacing:normal;font-size:var(--t-logo)}
.night .brand{--wm-co:var(--indigo-400);--wm-nnect:var(--night-text);--wm-sub:var(--indigo-300);font-size:var(--t-logo-lg)}
.wm-co,.wm-nnect,.wm-apos{font-family:var(--font-logo);font-weight:900}
.wm-co,.wm-nnect{letter-spacing:-.025em}
.wm-co{color:var(--wm-co)}
.wm-nnect{color:var(--wm-nnect)}
.wm-apos{color:var(--signature)}
.brand .wordmark{display:inline-flex;align-items:baseline}
.wm-sub{color:var(--wm-sub);font-family:var(--font-sans);font-weight:500;letter-spacing:-.025em;text-transform:lowercase;margin-left:.25rem;font-size:var(--t-tag)}
.night .wm-sub{font-size:var(--t-small)}
nav.main{flex:1 1 auto;display:flex;flex-wrap:wrap}
nav.main a{position:relative;display:inline-flex;align-items:center;min-height:44px;padding:0 14px;color:var(--ink-soft);text-decoration:none;font-size:var(--t-small);font-weight:500;transition:color var(--d-mid) var(--ease-state)}
nav.main a:hover{color:var(--link)}
nav.main a[aria-current=page]{color:var(--ink);font-weight:600}
nav.main a[aria-current=page]::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--accent)}
nav.main .count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;margin-left:6px;padding:0 6px;border-radius:var(--r-full);background:var(--bad);color:var(--on-accent);font-family:var(--font-mono);font-size:var(--t-tag);font-weight:600;animation:pop var(--d-mid) var(--ease-bounce)}
.who{display:flex;align-items:center;gap:var(--space-2);font-weight:600;font-size:var(--t-small)}
.who form{margin:0}
.avatar{width:36px;height:36px;border-radius:var(--r-sm);background:var(--pastel-peach);color:var(--ink);display:flex;align-items:center;justify-content:center;font-size:var(--t-meta);font-weight:700}
/* The whole width of the screen: no empty margins on a computer. */
main{padding:var(--space-8) var(--page-x) var(--space-12);display:flex;justify-content:center}
.page{width:100%;display:flex;flex-direction:column;gap:28px}
h1{font-size:var(--t-h1);font-weight:800;line-height:1.05;letter-spacing:-.04em;margin:0}
h2{font-size:var(--t-h2);font-weight:700;line-height:1.15;letter-spacing:-.025em;margin:0 0 12px}
h2 a.small{margin-left:8px}
.intro{display:flex;flex-direction:column;gap:6px}.intro p{margin:0;font-size:var(--t-lead);line-height:1.45}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:24px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px}
.muted{color:var(--ink-soft)}
.error{color:var(--bad);font-weight:600}
/* What the Hub says back (5.8): a done thing in green with its tick, a limit in amber, an error
   in red; an empty list as a quiet panel on the grid, the Manager above a short sentence. */
.notice{background:var(--warn-bg);color:var(--warn);border:1px solid var(--warn-line);border-radius:var(--r-md);padding:var(--space-3) var(--space-4)}
.toast{display:flex;align-items:center;gap:var(--space-2);margin:0;background:var(--ok-bg);color:var(--ok);border:1px solid var(--ok-line);border-radius:var(--r-md);padding:var(--space-3) var(--space-4);font-weight:600;animation:pop var(--d-mid) var(--ease-bounce)}
.toast .icon{flex:none}

/* -- controls -------------------------------------------------------------------------- */
/* The site's buttons (5.5): indigo, white on it, a darker indigo under the pointer and pressed;
   no shine, no shrink, no shadow. The secondary is white with an indigo text. */
button,.button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:44px;padding:0 var(--space-5);border-radius:var(--r-sm);border:0;background:var(--accent);color:var(--on-accent);font:inherit;font-size:var(--t-body);font-weight:600;cursor:pointer;transition:background var(--d-short) var(--ease-state),border-color var(--d-short) var(--ease-state),color var(--d-short) var(--ease-state)}
button:hover,.button:hover{background:var(--accent-hover)}
button:active,.button:active{background:var(--accent-active)}
button:disabled{opacity:.5;cursor:not-allowed}
button:focus-visible,.button:focus-visible,a:focus-visible,textarea:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px;box-shadow:var(--focus-ring)}
button.ghost,.button.ghost{background:var(--surface);color:var(--link);border:1px solid var(--line-strong)}
button.ghost:hover,.button.ghost:hover,button.ghost:active,.button.ghost:active{background:var(--surface);border-color:var(--accent);color:var(--link-hover)}
button.small,.button.small{min-height:36px;padding:0 14px;font-size:var(--t-small);border-radius:var(--r-sm)}
a.button{text-decoration:none;color:var(--on-accent)}a.button:hover{color:var(--on-accent)}
a.button.ghost{color:var(--link)}a.button.ghost:hover{color:var(--link-hover)}
/* A sent button keeps its place and turns while it waits: it answers a click. */
.htmx-request button[type=submit],button.htmx-request{position:relative;color:transparent!important}
.htmx-request button[type=submit]::after,button.htmx-request::after{content:"";position:absolute;inset:0;margin:auto;width:16px;height:16px;border-radius:50%;color:var(--on-accent);border:2px solid currentColor;border-right-color:transparent;border-bottom-color:transparent;animation:spin .7s linear infinite}
.htmx-request button.ghost[type=submit]::after,button.ghost.htmx-request::after{color:var(--link)}
/* Action links (5.5): small, semibold, indigo, underlined under the pointer. */
a.back,h2 a.small,.panel-head a.small,.alerts-panel .more{font-size:var(--t-small);font-weight:600;color:var(--link);text-decoration:none;text-underline-offset:4px}
a.back:hover,h2 a.small:hover,.panel-head a.small:hover,.alerts-panel .more:hover{color:var(--link-hover);text-decoration:underline}
.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
/* Badges (5.6): small, flat, never in capitals; « Confirmé » is the indigo counterpart of
   « À valider », with its tick. An active agent shows the orange light beside its word instead. */
.badge{display:inline-flex;align-items:center;gap:var(--space-1);height:22px;padding:0 var(--space-2);border-radius:var(--r-xs);font-size:var(--t-micro);font-weight:600;line-height:1;white-space:nowrap;background:var(--line);color:var(--ink)}
.badge.ok{background:var(--ok-bg);color:var(--ok)}
.badge.urgent{background:var(--bad-bg);color:var(--bad)}
.badge.warn{background:var(--warn-bg);color:var(--warn)}
.badge.info{background:var(--accent-tint);color:var(--indigo-800)}
.badge.confirmed{background:var(--accent);color:var(--on-accent)}
.live{display:inline-flex;align-items:center;gap:var(--space-2);font-size:var(--t-small);font-weight:500;color:var(--ink);white-space:nowrap}
.live-dot{position:relative;flex:none;width:8px;height:8px;border-radius:50%;background:var(--signature)}
.live-dot::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--signature);opacity:0}
.pill{display:inline-flex;align-items:center;min-height:24px;padding:.25rem .625rem;border-radius:var(--r-xs);background:var(--bg);border:1px solid var(--line);font-size:var(--t-micro);font-weight:500;line-height:1.2;color:var(--ink-soft)}
form.stack{display:flex;flex-direction:column;gap:var(--space-3);max-width:520px}
form.stack label{display:flex;flex-direction:column;gap:var(--space-2);font-weight:500;font-size:var(--t-small)}
/* A choice (the site's .diag-option): a framed line, indigo once ticked; the box is drawn, with
   Lucide's tick as a mask. */
form.stack label.check,label.check{display:flex;flex-direction:row;align-items:center;gap:var(--space-3);font-size:var(--t-body);font-weight:500;min-height:44px;padding:var(--space-3) var(--space-4);border:1px solid var(--line);border-radius:var(--r-md);cursor:pointer;transition:background var(--d-short) var(--ease-state),border-color var(--d-short) var(--ease-state)}
form.stack label.check:hover,label.check:hover{border-color:var(--indigo-300)}
form.stack label.check:has(input:checked),label.check:has(input:checked){border-color:var(--accent);background:var(--accent-tint)}
label.check input[type=checkbox]{appearance:none;flex:none;display:grid;place-content:center;width:20px;height:20px;margin:0;border:2px solid var(--line-strong);border-radius:var(--r-xs);background:var(--surface);cursor:pointer}
label.check input[type=checkbox]:checked{background:var(--accent);border-color:var(--accent)}
label.check input[type=checkbox]:checked::after{content:"";width:14px;height:14px;background:var(--on-accent);mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");mask-size:contain;mask-repeat:no-repeat;mask-position:center}
/* Fields (5.7): 44 px, a strong line on white; indigo with the ring under focus, red when
   invalid; 16 px on a phone, where iOS would zoom in otherwise. A placeholder sits under a
   visible label: it may be faint. */
form.stack input:not([type=checkbox]),form.stack select,form.stack textarea,form.inline select,.rules textarea,.rules input,.login input,.search input,.space-create input,input.copy{min-height:44px;padding:0 .875rem;border:1px solid var(--line-strong);border-radius:var(--r-sm);font:inherit;font-size:var(--t-body);background:var(--surface);color:var(--ink);transition:border-color var(--d-short) var(--ease-state)}
form.stack textarea,.rules textarea{padding:var(--space-3) .875rem;line-height:1.5}
:is(form.stack,.login,.space-create,.rules) :is(input,textarea)::placeholder{color:var(--ink-faint)}
.search input::placeholder{color:var(--ink-soft)}
form.stack input:not([type=checkbox]):focus,form.stack select:focus,form.stack textarea:focus,form.inline select:focus,.rules textarea:focus,.rules input:focus,.login input:focus,.search input:focus,.space-create input:focus,input.copy:focus{border-color:var(--accent)}
[aria-invalid="true"],form.stack input[aria-invalid="true"],form.stack textarea[aria-invalid="true"],.login input[aria-invalid="true"],.space-create input[aria-invalid="true"]{border-color:var(--bad-field)}
form.inline{display:flex;gap:8px;align-items:center;margin-top:8px}
form.inline select{min-height:36px;padding:0 var(--space-2)}
.rules textarea,.rules input{width:100%;margin:6px 0}
pre.kit{font-family:var(--font-mono);background:var(--night);color:var(--night-body);border-radius:var(--r-md);padding:var(--space-4);overflow:auto;font-size:var(--t-meta);max-height:320px}
pre.rule{font-family:var(--font-mono);font-size:var(--t-meta);white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px}
.login{max-width:420px;margin:12vh auto;display:flex;flex-direction:column;gap:14px;animation:pop var(--d-mid) var(--ease-bounce)}
.login input{width:100%}

/* -- lists ----------------------------------------------------------------------------- */
/* Lists are rows with a line under them (5.4), not cards in cards; an unread one carries a red
   line on its side. */
ul.items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
ul.items li{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:var(--space-4) 0;background:none;transition:background var(--d-short) var(--ease-state),opacity var(--d-mid) var(--ease-state)}
ul.items li:hover{background:color-mix(in srgb,var(--accent-tint) 60%,transparent)}
ul.items li.unseen{box-shadow:inset 2px 0 0 var(--bad);padding-left:var(--space-3)}
ul.items li.plain{border:0;padding:0;background:none}
.quote{font-size:var(--t-meta);color:var(--ink-soft);margin:6px 0}

/* -- the chat with the manager --------------------------------------------------------- */
.thread{flex:1 1 auto;min-height:0;overflow-y:auto;scroll-behavior:smooth;padding:8px 24px 24px}
.thread-inner{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.welcome{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:8vh 0 0}
.welcome p{margin:0;max-width:520px}
.welcome .lead{font-size:var(--t-h3);font-weight:800;letter-spacing:-.02em}
.welcome .chips{justify-content:center;margin-top:10px}
.exchange{display:flex;flex-direction:column;gap:10px}
/* The bubbles (5.9): yours in indigo at the right; the Manager's white with its line, him at its
   left (7.2). */
.bubble{max-width:85%;padding:.625rem .875rem;border-radius:var(--r-md);line-height:1.55}
.bubble.new{animation:pop var(--d-mid) var(--ease-bounce) both}
.bubble.user.settled{animation:none}
.bubble.user{align-self:flex-end;background:var(--accent);color:var(--on-accent);border-radius:var(--r-md) var(--r-md) var(--r-xs) var(--r-md);white-space:pre-wrap}
.reply{display:flex;align-items:flex-start;gap:var(--space-2);align-self:flex-start;max-width:100%;min-width:0}
.reply>.robot-mark{flex:none;margin-top:2px}
.reply>.bubble{max-width:none;min-width:0}
.bubble.manager{align-self:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md) var(--r-md) var(--r-md) var(--r-xs);color:var(--ink)}
.bubble.manager p{margin:0 0 8px}.bubble.manager p:last-child{margin:0}
.bubble.manager ul{margin:4px 0 8px;padding-left:18px}
.bubble.manager .lead{font-size:var(--t-h3);font-weight:700;letter-spacing:-.01em}
.bubble.thinking{display:flex;flex-direction:column;gap:8px;min-width:220px}
.bubble.thinking .dots{display:flex;gap:5px;height:12px;align-items:center}
.bubble.thinking .dots span{width:7px;height:7px;border-radius:50%;background:var(--indigo-400);animation:dot 1.2s infinite}
.bubble.thinking .dots span:nth-child(2){animation-delay:.2s}.bubble.thinking .dots span:nth-child(3){animation-delay:.4s}
.bubble.thinking .step{font-weight:600;color:var(--indigo-800)}
/* The steps done, as calls made: a card each, a tick in an indigo disc, no tool's name. */
.bubble.thinking .steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:var(--t-small);color:var(--ink-soft)}
.bubble.thinking .steps li{position:relative;padding:var(--space-1) var(--space-2) var(--space-1) 32px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface)}
.bubble.thinking .steps li::before{content:"";position:absolute;left:8px;top:50%;width:16px;height:16px;margin-top:-8px;border-radius:50%;background:var(--accent)}
.bubble.thinking .steps li::after{content:"";position:absolute;left:13px;top:50%;width:7px;height:3px;margin-top:-3px;border-left:2px solid var(--on-accent);border-bottom:2px solid var(--on-accent);transform:rotate(-45deg)}
.sources{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.bubble.new .sources .pill{animation:pop var(--d-mid) var(--ease-bounce) both;animation-delay:.25s}
a.pill{text-decoration:none}
a.pill.review{color:var(--link);border-color:var(--accent-line)}
a.pill.review:hover{border-color:var(--accent)}
.decision:target{box-shadow:inset 2px 0 0 var(--accent);padding-left:var(--space-3);background:var(--accent-tint)}
.composer{display:flex;align-items:flex-end;gap:6px;border:1px solid var(--line-strong);border-radius:var(--r-md);padding:8px;background:var(--surface);transition:border-color var(--d-short) var(--ease-state),box-shadow var(--d-short) var(--ease-state)}
.composer:focus-within{border-color:var(--accent);box-shadow:var(--focus-ring)}
.composer textarea{flex:1;min-width:0;border:0;background:transparent;font:inherit;font-size:var(--t-input);resize:none;min-height:44px;max-height:220px;padding:11px 8px;line-height:1.4;outline:none}
/* The box rings on focus (above): the field inside draws no second ring. */
.composer textarea:focus-visible{outline:none;box-shadow:none}
.composer .send{flex:none;width:44px;height:44px;padding:0;border-radius:var(--r-sm);display:flex;align-items:center;justify-content:center}
.composer.sending .send svg{animation:glow 1s ease-in-out infinite}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 var(--space-4);border-radius:var(--r-sm);border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);font-weight:500;font-size:var(--t-small)}
.chip:hover,.chip:active{background:var(--surface);border-color:var(--accent);color:var(--link)}

/* -- connector tiles and dialogs ------------------------------------------------------- */
/* Settings (5.13): square cards above 640 px, an icon on a tint, the state in mono. */
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:var(--space-4)}
.tile{all:unset;box-sizing:border-box;min-height:180px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:var(--space-5);display:flex;flex-direction:column;gap:var(--space-1);cursor:pointer;transition:border-color var(--d-short) var(--ease-state)}
@media (min-width:641px){.tile{aspect-ratio:1/1}}
.tile:hover,.tile:active{background:var(--surface);border-color:var(--accent)}
.tile:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.tile strong{font-size:var(--t-h3);font-weight:700;margin-top:auto}
.tile-icon{width:44px;height:44px;border-radius:var(--r-sm);background:var(--accent-tint);color:var(--link);display:flex;align-items:center;justify-content:center}
.tile-what{font-size:var(--t-meta);color:var(--ink-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.status{display:inline-flex;align-items:center;gap:var(--space-2);margin-top:var(--space-1);font-family:var(--font-mono);font-size:var(--t-tag);font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}
.status .dot{width:8px;height:8px;border-radius:50%;background:var(--ink-faint)}
.tile.ok .status{color:var(--ok)}.tile.ok .status .dot{background:var(--ok)}
.tile.bad .status{color:var(--bad)}.tile.bad .status .dot{background:var(--bad);animation:glow 1.6s ease-in-out 3}
.tile.todo .status{color:var(--link)}.tile.todo .status .dot{background:var(--accent)}
.tile.paused .status{color:var(--ink-soft)}.tile.paused .status .dot{background:var(--ink-faint)}
.tile.off{cursor:default;opacity:.6}
dialog.modal{border:0;padding:0;background:none;box-shadow:none;overflow:visible;max-width:min(640px,calc(100vw - 32px));width:100%;max-height:calc(100vh - 48px)}
/* A window (5.7): the raised card over the site's backdrop, blurred; it rises as it opens. On a
   phone it is a bottom sheet, as high as what the keyboard leaves (hub.js writes --vvh). */
dialog.modal::backdrop{background:var(--backdrop);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
dialog.modal .modal-panel{transition:opacity var(--d-mid) var(--ease-enter),translate var(--d-mid) var(--ease-enter)}
@starting-style{dialog.modal[open] .modal-panel{opacity:0;translate:0 24px}}
dialog.modal[open]::backdrop{animation:fade var(--d-mid) var(--ease-enter)}
.modal-panel{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:var(--space-6);max-height:calc(100vh - 48px);overflow-y:auto;box-shadow:var(--shadow-raised)}
.modal-panel .card{border:0;padding:0;border-radius:0;background:transparent}
.modal-panel h2{padding-right:48px;font-size:var(--t-h2)}
.modal-close{position:absolute;top:16px;right:16px;width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--line-strong);border-radius:var(--r-sm);display:flex;align-items:center;justify-content:center}

@media (max-width:640px){header.top{position:static}.card{padding:18px;border-radius:var(--r-md)}
.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.tile{min-height:150px;padding:var(--space-4)}.bubble{max-width:95%}
dialog.modal,dialog.modal.wide{margin:auto 0 0;max-width:100vw;width:100vw;max-height:none}
.modal-panel{padding:var(--space-5);border-radius:var(--r-lg) var(--r-lg) 0 0;max-height:calc(var(--vvh,100dvh) - var(--space-4));overscroll-behavior:contain}
}

/* -- header: counts, the bell, the account menu ---------------------------------------- */
nav.main .count.soft{background:var(--accent);color:var(--on-accent)}
.bell{position:relative;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:var(--r-sm);color:var(--ink-soft);transition:background var(--d-short) var(--ease-state),color var(--d-short) var(--ease-state)}
.bell:hover,.bell.current{background:var(--bg);color:var(--ink)}
.bell .count{position:absolute;top:4px;right:2px;min-width:18px;height:18px;padding:0 5px;border-radius:var(--r-full);background:var(--bad);color:var(--on-accent);font-family:var(--font-mono);font-size:var(--t-tag);font-weight:600;display:flex;align-items:center;justify-content:center;animation:pop var(--d-mid) var(--ease-bounce)}
details.account{position:relative}
details.account summary{list-style:none;display:flex;align-items:center;gap:var(--space-2);cursor:pointer;min-height:44px;padding:0 var(--space-2) 0 var(--space-1);border-radius:var(--r-sm)}
details.account summary::-webkit-details-marker{display:none}
details.account summary:hover{background:var(--bg)}
/* Menus (5.3): a white card with a strong line and the raised shadow; entries in small text,
   the page's blue under the pointer. */
.menu{display:flex;flex-direction:column;gap:2px;padding:var(--space-2);background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--r-md);box-shadow:var(--shadow-raised);min-width:220px;z-index:10;animation:pop var(--d-mid) var(--ease-bounce)}
details.account .menu{position:absolute;right:0;top:calc(100% + 6px)}
.menu a{padding:var(--space-2) var(--space-3);border-radius:var(--r-sm);color:var(--ink);text-decoration:none;font-size:var(--t-small);font-weight:500}
.menu a:hover{background:var(--bg);color:var(--ink)}
.menu form{margin:4px 0 0}.menu form button{width:100%}
details.menu-button{position:relative;display:inline-block}
details.menu-button summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:36px;min-width:36px;padding:0 var(--space-2);border-radius:var(--r-sm);font-size:var(--t-small);font-weight:500;color:var(--ink-soft);border:1px solid transparent}
details.menu-button summary::-webkit-details-marker{display:none}
details.menu-button summary:hover,details.menu-button[open] summary{background:var(--bg);color:var(--ink)}
details.menu-button .menu{position:absolute;right:0;top:calc(100% + 4px);min-width:180px}
details.menu-button .menu button{justify-content:flex-start;text-align:left;border:0}
.count-pill{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:22px;padding:0 var(--space-2);margin-left:4px;border-radius:var(--r-xs);background:var(--accent-tint);color:var(--indigo-800);font-family:var(--font-mono);font-size:var(--t-micro);font-weight:600;vertical-align:middle}

/* -- decisions and alerts: one line, one click ----------------------------------------- */
/* « À valider » (7.4): the site's bubble of what an agent prepares, a tick in a disc and the
   number waiting, its tail down to what it counts. */
.validate-tag{position:relative;display:inline-flex;align-items:center;gap:var(--space-2);margin:0 0 var(--space-4);padding:.25rem .625rem .25rem .375rem;border-radius:var(--r-lg);background:var(--accent);color:var(--on-accent);font-family:var(--font-mono);font-size:var(--t-micro);font-weight:600;letter-spacing:.08em;line-height:1.5;text-transform:uppercase}
.validate-tick{display:grid;place-items:center;flex:none;width:18px;height:18px;border-radius:50%;background:color-mix(in srgb,var(--on-accent) 20%,transparent)}
.validate-tag::after{content:"";position:absolute;left:var(--space-3);bottom:-6px;width:10px;height:6px;background:var(--accent);clip-path:polygon(0 0,100% 0,0 100%)}
ul.decisions,ul.alert-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
:is(ul.items,ul.decisions,ul.alert-list,ul.coming,.brain-directory)>li:last-child,.brain-directory>li:last-child .brain-row{border-bottom:0}
li.decision{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:var(--space-3);border:0;border-bottom:1px solid var(--line);border-radius:0;padding:var(--space-4) 0;background:none;transition:background var(--d-short) var(--ease-state)}
li.decision:hover{background:color-mix(in srgb,var(--accent-tint) 60%,transparent)}
.decision-body{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:2px}
.decision-actions{flex:none;display:flex;gap:8px;align-items:center}
/* « À valider » (5.11, 7.2): the head of the agent who proposed it, its name and the kind on one
   line; the proposal in body text; its quotes small and soft. */
.decision-body>.decision-who{margin-bottom:var(--space-1)}
.decision-who .kind{align-self:center}
li.decision .decision-author::after{content:"·";margin-left:var(--space-2)}
.decision-body>strong{font-size:var(--t-body);font-weight:600;line-height:1.45;color:var(--ink)}
.decision-body>.quote{margin:var(--space-1) 0 0;font-size:var(--t-meta);line-height:1.5;color:var(--ink-soft)}
.kind{align-self:flex-start;font-family:var(--font-mono);font-size:var(--t-tag);font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--link)}
.kind-rule{color:var(--warn)}.kind-action{color:var(--bad)}.kind-pole{color:var(--ok)}
details.fold summary{cursor:pointer;font-size:var(--t-meta);font-weight:700;color:var(--accent);margin-top:3px;padding:3px 0}
details.fold[open] summary{margin-bottom:var(--space-3)}
details.fold pre{margin-top:8px}
ul.group-mails{list-style:none;margin:var(--space-2) 0 0;padding:0;display:flex;flex-direction:column}
ul.group-mails li{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);padding:var(--space-2) 0;border-bottom:1px solid var(--line);font-size:var(--t-meta)}
ul.group-mails li:last-child{border-bottom:0}
li.decided,li.alert-row.decided{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:var(--space-3) 0;background:transparent;transition:opacity var(--d-mid) var(--ease-state),max-height var(--d-mid) var(--ease-state),padding var(--d-mid) var(--ease-state),margin var(--d-mid) var(--ease-state);max-height:120px;overflow:hidden}
li.gone{opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;border-width:0}
li.alert-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-3);padding:var(--space-4) 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;transition:background var(--d-short) var(--ease-state)}
li.alert-row:hover{background:color-mix(in srgb,var(--accent-tint) 60%,transparent)}
li.alert-row.unseen{box-shadow:inset 2px 0 0 var(--bad);padding-left:var(--space-3)}
.alert-who{flex:none;display:flex}
.alert-title{flex:1 1 220px;min-width:0;min-height:24px;align-content:center;font-size:var(--t-body);font-weight:600;color:var(--ink);text-decoration:none}
.alert-title:hover{color:var(--link)}
.alert-row .when{font-family:var(--font-mono);font-size:var(--t-micro);font-weight:500;color:var(--ink-soft)}
.card.alerts{border-color:var(--bad-line);background:var(--bad-bg)}
.alert-detail{display:flex;flex-direction:column;gap:10px}
.alert-detail h1{font-size:var(--t-h1)}
.alert-detail .when{margin:0;font-family:var(--font-mono);font-size:var(--t-micro);color:var(--ink-soft)}
.alert-body{white-space:pre-wrap;background:var(--bg);border-radius:var(--r-md);padding:var(--space-5);line-height:1.6}
.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;gap:var(--space-1);padding:var(--space-12) var(--space-6);background:var(--bg);border-radius:var(--r-md);overflow:hidden}
.empty-state p{margin:0;max-width:40ch;font-size:var(--t-body);color:var(--ink-soft)}.empty-state p strong{color:var(--ink)}.empty-state .robot-mark{margin-bottom:var(--space-3)}
p.empty{margin:0;font-size:var(--t-small);color:var(--ink-soft)}
details.fold-card summary{cursor:pointer;font-weight:800;font-size:var(--t-h3);list-style-position:inside}
details.fold-card[open] summary{margin-bottom:14px}

/* -- Brain ----------------------------------------------------------------------------- */
.toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.toolbar h2{margin:0}
.search input{min-width:220px}
a.chip{display:inline-flex;align-items:center;gap:6px;text-decoration:none;min-height:36px}
.chip.on,.chip[aria-pressed=true],.chip.on:hover,.chip[aria-pressed=true]:hover{background:var(--accent-tint);color:var(--indigo-800);border-color:var(--accent)}
.chip.on .muted{color:var(--ink-soft)}
.chip.ghost-chip{border-style:dashed;border-color:var(--accent-line);color:var(--link)}
/* What Brain noticed: a tinted block, first, and only when there is something to confirm. */
.noticed{background:var(--accent-tint);border-color:var(--accent-line)}
.noticed h2.eyebrow{margin:0 0 var(--space-1)}
.noticed ul.decisions>li{border-color:var(--accent-line)}
.subjects{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:var(--space-3);margin-top:var(--space-4)}
article.subject.card{padding:var(--space-4) var(--space-5)}
article.subject h3{margin:0 0 var(--space-3);font-size:var(--t-h3);font-weight:700}
article.subject dl{margin:0;display:flex;flex-direction:column;gap:var(--space-3)}
.fact{position:relative;display:grid;grid-template-columns:1fr auto;gap:var(--space-1) var(--space-2);align-items:start}
.fact dt{grid-column:1;font-family:var(--font-mono);font-size:var(--t-tag);font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}
.fact dd{grid-column:1;margin:0;font-size:var(--t-body);font-weight:600}
.fact dd .quote{display:block;font-weight:400}
.fact details.menu-button{grid-column:2;grid-row:1 / span 2}
.fact > span.muted{grid-column:1 / -1;font-size:var(--t-micro)}

/* -- poles ----------------------------------------------------------------------------- */
.pole-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:var(--space-4)}
.pole-tile{background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--r-md);padding:var(--space-5);display:flex;flex-direction:column;gap:var(--space-2);transition:border-color var(--d-short) var(--ease-state)}
.pole-tile:hover{border-color:var(--accent)}
.pole-tile.paused{opacity:.6;filter:grayscale(.6)}
.pole-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2)}
.pole-head a{color:var(--ink);text-decoration:none;font-size:var(--t-h3)}
.pole-head a:hover{color:var(--link)}
.pole-meta{margin:0;font-size:var(--t-meta);color:var(--ink-soft)}
.pole-facts{font-family:var(--font-mono);font-size:var(--t-micro);font-weight:500;color:var(--ink-soft);white-space:nowrap}
.pole-tile .desc{margin:0;font-size:var(--t-small)}
.pole-tile > details.menu-button{align-self:flex-end;margin-top:auto}
ul.projects{list-style:none;margin:var(--space-1) 0 0;padding:0;display:flex;flex-direction:column;border-top:1px solid var(--line)}
ul.projects li{display:flex;align-items:center;gap:var(--space-2);min-height:40px;border-bottom:1px solid var(--line);font-size:var(--t-small)}
ul.projects li:last-child{border-bottom:0}
ul.projects li a{align-self:stretch;display:flex;align-items:center;color:var(--ink);text-decoration:none;font-weight:500}
ul.projects li a:hover{color:var(--link)}
ul.projects li details.menu-button{margin-left:auto}
button.pole-tile.add{all:unset;box-sizing:border-box;min-height:140px;border:1px dashed var(--accent-line);border-radius:var(--r-md);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2);color:var(--link);font-size:var(--t-small);font-weight:600;cursor:pointer;transition:border-color var(--d-short) var(--ease-state),background var(--d-short) var(--ease-state)}
button.pole-tile.add .add-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:var(--r-sm);background:var(--accent-tint);color:var(--accent)}
button.pole-tile.add:hover{border-color:var(--accent);background:color-mix(in srgb,var(--accent-tint) 50%,transparent)}
button.pole-tile.add:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* -- agents ---------------------------------------------------------------------------- */
/* An agent's card is a module of the site (5.10, 7.3): its band in mono, its scene on the grid,
   its name, what it does and its figures in mono, then its foot. The whole card opens its window;
   under the pointer only its line turns indigo. */
#agent-board h2.eyebrow{margin:0 0 var(--space-4)}
.agent-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:var(--space-4)}
.agent-card{position:relative;display:flex;flex-direction:column;min-width:0;background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--r-md);overflow:hidden;transition:border-color var(--d-short) var(--ease-state)}
.agent-card:has(.agent-open):hover{border-color:var(--accent)}
/* It hides what overflows: the ring of its open button is drawn on the card itself. */
.agent-card:has(.agent-open:focus-visible){outline:2px solid var(--accent);outline-offset:2px;box-shadow:var(--focus-ring)}
.agent-card .module-head{min-height:0;padding:.625rem var(--space-4);font-family:var(--font-mono);font-size:var(--t-tag);font-weight:500;line-height:1.45;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}
.agent-card .module-head .live{font:inherit;color:inherit}
.agent-card .module-head .badge{font-family:var(--font-sans);letter-spacing:normal;text-transform:none}
.agent-off{color:var(--ink-soft)}
.agent-stage{height:112px;background:var(--bg);border-bottom:1px solid var(--line)}
.agent-scene{display:block;width:100%;height:100%}
.agent-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-5) var(--space-5) var(--space-4)}
.agent-text h3{margin:0;font-size:var(--t-h3);font-weight:700;letter-spacing:-.02em}
.agent-desc{margin:0;font-size:var(--t-small);color:var(--ink-soft)}
.recruit .agent-desc{color:var(--ink)}
.agent-work{margin:0;font-size:var(--t-small)}
.agent-counts{display:flex;flex-wrap:wrap;gap:var(--space-3) var(--space-5);margin:var(--space-2) 0 0;padding-top:var(--space-3);border-top:1px solid var(--line)}
.agent-counts>div{flex:1 1 0;min-width:0;display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:var(--space-1)}
.agent-counts dt{font-size:var(--t-meta);line-height:1.35;color:var(--ink-soft)}
.agent-counts dd{margin:0;font-family:var(--font-mono);font-size:var(--t-figure);font-weight:600;line-height:1.2;letter-spacing:-.02em;color:var(--ink)}
.agent-foot{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-4);padding:var(--space-2) var(--space-5);border-top:1px solid var(--line)}
.agent-foot p{margin:0;font-size:var(--t-small)}
/* No transform, even pressed: it would shrink the click zone below to the title between press and release. */
.agent-open,.agent-open:hover,.agent-open:active{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:var(--space-2);min-height:44px;font-size:var(--t-small);font-weight:600;color:var(--link);cursor:pointer;transform:none}
.agent-card:hover .agent-open{color:var(--link-hover)}
.agent-open::after{content:"";position:absolute;inset:0;z-index:1}
.agent-open:focus-visible{outline:0;box-shadow:none}
.agent-card:has(.agent-open) :is(.agent-text,.agent-foot) :is(button:not(.agent-open),a){position:relative;z-index:2}
.agent-headline{margin:18px 0 8px;font-weight:700}
.agent-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.agent-stat{background:color-mix(in srgb,var(--accent-tint) 60%,var(--surface));border:1px solid var(--accent-line);border-radius:var(--r-md);padding:var(--space-4);display:flex;flex-direction:column;gap:var(--space-1);min-width:0}
.agent-stat strong{font-family:var(--font-mono);font-size:var(--t-figure-lg);font-weight:600;line-height:1.1;letter-spacing:-.02em}
.agent-stat span{font-size:var(--t-meta);color:var(--ink-soft)}
.trend-plot{position:relative;height:120px;margin:14px 0 0 26px}
.trend-plot svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.trend-grid{position:absolute;left:0;right:0;border-top:1px solid var(--line)}
.trend-grid span{position:absolute;right:100%;top:-8px;margin-right:8px;font-family:var(--font-mono);font-size:var(--t-tag);line-height:16px;color:var(--ink-soft)}
.trend-line{fill:none;stroke:var(--accent);stroke-width:2px;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.trend-line.running{stroke-dasharray:4 4}
.trend-area{fill:var(--accent);fill-opacity:.1;stroke:none}
.trend-col{position:absolute;top:0;bottom:0;outline:0;cursor:default}
.trend-cross{position:absolute;left:50%;top:0;bottom:0;width:1px;background:var(--line-strong);opacity:0}
.trend-dot{position:absolute;left:50%;width:8px;height:8px;margin:-6px 0 0 -6px;box-sizing:content-box;border:2px solid var(--surface);border-radius:50%;background:var(--accent)}
.trend-dot.running{background:var(--surface);box-shadow:inset 0 0 0 2px var(--accent)}
.trend-tip{position:absolute;bottom:calc(100% + 4px);left:50%;transform:translateX(-50%);display:none;white-space:nowrap;background:var(--night);color:var(--night-text);font-size:var(--t-micro);line-height:16px;border-radius:var(--r-sm);padding:6px 10px;z-index:3}
.trend-tip strong{font-family:var(--font-mono);font-size:var(--t-small);margin-right:4px}
.trend-col.start .trend-tip{left:0;transform:none}
.trend-col.end .trend-tip{left:auto;right:0;transform:none}
.trend-col:is(:hover,:focus-visible) .trend-tip{display:block}
.trend-col:is(:hover,:focus-visible) .trend-cross{opacity:1}
.trend-col:focus-visible .trend-dot{outline:2px solid var(--accent);outline-offset:1px}
.trend-axis{position:relative;height:22px;margin:6px 0 4px 26px;font-family:var(--font-mono);font-size:var(--t-tag);color:var(--ink-soft)}
.trend-axis span{position:absolute;transform:translateX(-50%);white-space:nowrap}
.trend details{margin-top:8px}
.agent-table-wrap{overflow-x:auto;margin-top:18px}
.agent-table{width:100%;border-collapse:collapse;font-size:var(--t-small)}
.agent-table th,.agent-table td{padding:9px 8px;border-bottom:1px solid var(--line-strong);text-align:right;font-variant-numeric:tabular-nums}
.agent-table thead th{font-family:var(--font-mono);font-size:var(--t-tag);font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft);border-bottom-color:color-mix(in srgb,var(--ink) 80%,transparent)}
.agent-table th:first-child{text-align:left;font-weight:500;padding-left:0}
.agent-table .num{font-family:var(--font-mono);font-size:var(--t-small);text-align:right}
.agent-table tbody tr:last-child>*{border-bottom:0}
/* Wide on a computer; on a phone it is the bottom sheet, the whole width, as any window. */
@media (min-width:641px){dialog.modal.wide{max-width:min(860px,calc(100vw - 32px))}}
.rules textarea{min-height:320px;font-family:var(--font-mono);font-size:var(--t-meta);line-height:1.55}
.small-print{font-size:var(--t-meta);color:var(--ink-soft);margin:var(--space-3) 0 0}

/* -- activity (5.13, 7.2) -------------------------------------------------------------- */
/* The memory check, only when it finds noise: one line, its history folded under it. */
.memory-check{padding:var(--space-4) var(--space-5)}
.memory-check .check-head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-3)}
.memory-check .check-head h2{margin:0;font-size:var(--t-body);font-weight:600}
.memory-check .check-head p{flex:1 1 320px;margin:0;font-size:var(--t-small);color:var(--ink-soft)}
.memory-check details.fold{margin-top:var(--space-3)}
ul.checks{list-style:none;margin:var(--space-2) 0 0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:var(--t-meta)}
ul.checks li{display:grid;grid-template-columns:140px 1fr auto;align-items:center;gap:10px}
.bar{height:8px;border-radius:var(--r-full);background:linear-gradient(90deg,var(--bad) var(--share),var(--line) var(--share))}
.filters{margin-top:-8px}
.timeline{display:flex;flex-direction:column;gap:var(--space-6)}
.day h2.eyebrow{margin:0 0 var(--space-2)}
.day ul{list-style:none;margin:0;padding:0 var(--space-5);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md)}
/* A row: the hour in mono, the head of the agent who acted (or a square mark for the Hub's own
   and the owner's), what happened, its badge at the right. */
.timeline .event{display:grid;grid-template-columns:64px 20px minmax(0,1fr) auto;align-items:center;gap:var(--space-3);padding:var(--space-3) 0;border-bottom:1px solid var(--line);font-size:var(--t-body);animation:rise var(--d-mid) var(--ease-enter) both}
.timeline .event:last-child{border-bottom:0}
.timeline .event>a{min-height:24px;align-content:center}
.timeline .when{font-family:var(--font-mono);font-size:var(--t-meta);font-weight:500;color:var(--ink-soft);font-variant-numeric:tabular-nums;white-space:nowrap}
.timeline .mark{justify-self:center;width:8px;height:8px;border-radius:var(--r-xs);background:var(--ink-faint)}
/* The head is taller than the mark: it overflows its 20 px box, so every row is as tall. */
.timeline .actor{display:flex;align-items:center;justify-content:center;height:20px}
.timeline .actor .robot-mark{display:block}
.event.brain .mark{background:var(--indigo-600)}.event.decision .mark{background:var(--ok)}
.event.alert .mark{background:var(--bad)}.event.connector .mark{background:var(--ink-faint)}.event.agent .mark{background:var(--indigo-300)}
.event.bad .mark{background:var(--bad)}
.event a{color:var(--ink);font-weight:600;text-decoration:none}.event a:hover{color:var(--link)}
.event[hidden],.day[hidden]{display:none}

/* -- login ----------------------------------------------------------------------------- */
/* The pages without the frame (5.15): sign-in, spaces, signed in and an assistant's consent on
   the site's hero night, under its grid; the logotype and the Manager above a white card, where
   everything else is, errors included (they would read at 2.61:1 on night). The page Gmail ends
   on stays light: it leaves for /agents after a second, and night would flash. */
body.login-page{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--space-4)}
body.login-page.night{padding:0;background-color:var(--night-deep);background-image:var(--hero-bg)}
.login-stage{flex:1 0 auto;width:100%;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-6);padding:var(--space-8) var(--page-x)}
body.login-page .login{margin:0;width:100%;align-items:stretch}
body.login-page .login .robot-mark{align-self:center}
/* The sign-in (7.1, 7.6): the logotype, the title and the card in a column; the team's scene at
   their right above 900 px, under the card below (the form stays first on the screen). */
.login-stage:has(.team-scene){flex-direction:row;flex-wrap:wrap;gap:var(--space-8) var(--space-12)}
.login-column{display:flex;flex-direction:column;align-items:center;gap:var(--space-6);width:min(100%,420px)}
.login-title{position:relative;margin:0;text-align:center;font-size:var(--t-h1);font-weight:800;line-height:1.1;letter-spacing:-.03em;color:var(--night-text)}
.login-title .underlined{position:relative;display:inline-block}
.underline-mark{position:absolute;left:-2%;bottom:-.1em;width:104%;height:.2em;overflow:visible}
.underline-mark path{fill:none;stroke:var(--signature);stroke-width:max(3px,.075em);stroke-linecap:round;vector-effect:non-scaling-stroke;stroke-dasharray:100;stroke-dashoffset:0;animation:underline-draw .7s var(--ease-enter) .7s both}
@keyframes underline-draw{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}                  /* souligne-trace */
.team-scene{margin:0;width:min(100%,480px)}
.team-scene svg{display:block;width:100%;height:auto}
.team-scene .team-scene-compact{display:none}
.team-halo-from{stop-color:var(--indigo-600);stop-opacity:.45}
.team-halo-to{stop-color:var(--indigo-600);stop-opacity:0}
.team-links line{stroke:color-mix(in srgb,var(--night-text) 20%,transparent)}
.team-to-you{stroke:color-mix(in srgb,var(--indigo-400) 50%,transparent)}
@media (max-width:900px){
  .login-stage:has(.team-scene){flex-direction:column}
  .team-scene{width:min(100%,400px)}
  .team-scene .team-scene-large{display:none}
  .team-scene .team-scene-compact{display:block}
}
body.login-page .login h1{text-align:center}
.login.card{padding:var(--space-8)}
.card.raised{box-shadow:var(--shadow-raised)}
.night .card{color:var(--ink)}

@media (max-width:640px){
  .tenant{display:none}
  header.top{gap:8px 12px}
  header.top .who{margin-left:auto}
  nav.main{order:3;flex:1 1 100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px}
  nav.main::-webkit-scrollbar{display:none}
  nav.main a{flex:none}
  .day ul{padding:0 var(--space-4)}
  .timeline .event{grid-template-columns:56px 20px minmax(0,1fr);gap:var(--space-2) var(--space-3)}
  .timeline .event .badge{grid-column:3;justify-self:start}
  .thread{padding:8px 16px 16px}
  ul.checks li{grid-template-columns:1fr;gap:2px}
  .agent-stage{height:80px}
  .window-body{padding:0 var(--space-5) var(--space-5)}
  .search input{min-width:0;width:100%}.search{flex:1 1 100%}
}

li.alert-row.compact{padding:var(--space-3) 0;gap:var(--space-1) var(--space-2)}
li.alert-row.compact.unseen{padding-left:var(--space-3)}
li.alert-row.compact .alert-title{flex-basis:100%;font-size:var(--t-small);line-height:1.35;padding:0;border-radius:0}
li.alert-row.compact .alert-title:hover{background:none;color:var(--link)}
li.alert-row.compact button{min-height:30px;font-size:var(--t-meta);padding:0 12px}
li.alert-row.compact .when{font-size:var(--t-micro);margin-right:auto}
/* -- the cockpit (5.14): the greeting, what to do, the decision, the business cards -------- */
/* The validated mockup (cockpit v3): 1240 px at most, a light greeting on one line, the day in
   mono, then what waits; no night band. */
.page:has(>.cockpit-hello){max-width:1240px}
.cockpit-hello{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;margin-bottom:-6px}
.cockpit-hello h1{margin:0;font-size:var(--t-h1);font-weight:800;letter-spacing:-.045em;line-height:1.05;color:var(--ink)}
.hello-date{font-family:var(--font-mono);font-size:var(--t-meta);font-weight:500;color:var(--link)}
.hello-summary{margin:0 0 0 -10px;color:var(--ink-soft)}
.hello-summary::before{content:"·";margin-right:var(--space-2)}
/* The mockup's first row: « À faire » on seven columns, the decision on five, both at the top,
   each as tall as its own content: stretched to the other, a card showed an empty band. */
.cockpit-row{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:var(--space-6) var(--space-4);align-items:start}
.eyebrow{margin:0;font-family:var(--font-mono);font-size:var(--t-tag);font-weight:500;line-height:1.35;letter-spacing:.12em;text-transform:uppercase;color:var(--link)}
.eyebrow.ruled{display:flex;align-items:center;gap:var(--space-3)}
.eyebrow.ruled::after{content:"";flex:1;height:1px;background:var(--line-strong)}
/* A section's label above its card: mono, a rule, its link at the right. */
.cockpit-head{display:flex;align-items:center;gap:var(--space-3);min-height:16px;margin:0 0 14px}
.cockpit-head .eyebrow{font-size:var(--t-micro);line-height:16px}
.cockpit-head::after{content:"";order:1;flex:1 1 auto;height:1px;background:var(--accent-line)}
.cockpit-head a.small{order:2;display:inline-flex;align-items:center;min-height:44px;margin:-14px 0;font-size:var(--t-meta);font-weight:600}
/* « À faire » (the mockup's): its label above the card, rows of a head, a verb and its object
   (15/600), the day by which in amber mono, the source under it, one action at the right; the
   mails beyond in a quiet last line, right under the last row. */
.todo{display:flex;flex-direction:column;min-width:0}
.todo-card{display:flex;flex-direction:column;padding:0;overflow:hidden}
.todo-list{list-style:none;margin:0;padding:0}
.todo-row{display:flex;align-items:center;gap:10px 14px;padding:var(--space-4) var(--space-5);border-bottom:1px solid var(--line)}
.todo-row>.robot-mark{flex:none}
.todo-text{flex:1 1 auto;min-width:0}
.todo-line{margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px}
.todo-title{font-size:var(--t-body);font-weight:600;line-height:1.4;color:var(--ink)}
.todo-due{font-family:var(--font-mono);font-size:var(--t-micro);font-weight:500;color:var(--warn)}
.todo-source{margin:2px 0 0;font-size:var(--t-meta);line-height:1.45;color:var(--ink-soft)}
a.todo-act{flex:none;margin-left:auto}
a.todo-act .icon{display:none}
.todo-more{margin:0;padding:14px var(--space-5);font-size:var(--t-meta);line-height:1.45;color:var(--ink-soft);background:color-mix(in srgb,var(--bg) 60%,var(--surface))}
.todo-empty{margin:0;padding:var(--space-5);color:var(--ink-soft)}
.biz{display:flex;flex-direction:column;gap:var(--space-3)}
.biz-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:var(--space-4)}
.biz-card{display:flex;flex-direction:column;padding:0;overflow:hidden}
/* A card alone in its row (only « Agenda à venir » exists today, 9.1) takes the whole width and
   lays its events out side by side, rather than standing in a corner; once other cards join the
   grid, it is one of them again. */
.biz-grid>.biz-card:only-child{grid-column:1/-1}
.biz-grid>.biz-card:only-child ul.coming{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:0 var(--space-6)}
.biz-grid>.biz-card:only-child li.event-row{border-bottom:0}
/* The module band of a card (the site's, 3.4): its agent, its title in mono, its link. */
.module-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);min-height:44px;padding:0 var(--space-2) 0 var(--space-4);background:color-mix(in srgb,var(--bg) 60%,var(--surface));border-bottom:1px solid var(--line)}
.module-head h2{display:flex;align-items:center;gap:var(--space-2);margin:0;font-family:var(--font-mono);font-size:var(--t-tag);font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}
.module-head a.small{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;font-size:var(--t-meta);font-weight:600;text-decoration:none}
.module-head a.small:hover{text-decoration:underline}
.biz-body{padding:var(--space-3) var(--space-4) var(--space-1)}
.biz-label{margin:var(--space-2) 0 0;font-size:var(--t-small);color:var(--ink-soft)}
.biz-label:first-child,.biz-line:first-child{margin-top:0}
.biz-line{margin:0 0 var(--space-3);font-size:var(--t-small);color:var(--ink-soft)}
p.to-connect{margin:0;font-size:var(--t-small);color:var(--ink-soft)}
/* « Réseaux » (community-manager.md, section 8): one line per account, its followers large. */
.network-list{list-style:none;margin:0 0 var(--space-2);padding:0}
.network-row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:44px;padding:var(--space-2) 0;border-bottom:1px solid var(--line)}
.network-row:last-child{border-bottom:0}
.network-name{display:flex;flex-direction:column;min-width:0;font-size:var(--t-small)}
.network-account{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-soft)}
.network-figure{display:flex;flex-direction:column;align-items:flex-end;white-space:nowrap}
.network-figure b{font-family:var(--font-mono);font-size:var(--t-figure-lg);font-weight:600;line-height:1.1;letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums}
.network-gain{font-family:var(--font-mono);font-size:var(--t-micro);color:var(--ink-soft)}
.network-post{margin:var(--space-1) 0 var(--space-3);font-size:var(--t-small)}
.network-post a{color:var(--ink)}
.network-meta{display:block;font-family:var(--font-mono);font-size:var(--t-micro);color:var(--ink-soft)}
.network-when{font-family:var(--font-mono);color:var(--link)}
.skeleton-network{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:44px}
.skeleton-network .skeleton-line{flex:1;margin:0}
.skeleton-figure{width:4.5rem;height:2rem;margin:0;border-radius:var(--r-sm)}
ul.coming{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
li.event-row{display:grid;grid-template-columns:minmax(4.5rem,max-content) minmax(0,1fr);align-items:start;gap:2px var(--space-3);padding:var(--space-2) 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}
.event-when{grid-row:span 2;font-family:var(--font-mono);font-size:var(--t-meta);font-weight:500;line-height:1.5;color:var(--link)}
.event-when>span{display:block;white-space:nowrap}
.event-title{font-size:var(--t-small);line-height:1.35}
.event-meta{min-width:0;font-size:var(--t-meta)}
li.event-row button{grid-column:2;justify-self:start;min-height:36px;margin-top:var(--space-1)}
@media (max-width:900px){.cockpit-row{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){
  /* The phone's greeting (Mobile.dc.html): the day at the right of the name, what waits under. */
  .cockpit-hello{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px var(--space-3);margin-bottom:-12px}
  .cockpit-hello h1{font-size:var(--t-h1);line-height:1.1}
  .hello-summary{grid-column:1/-1;margin:0;font-size:var(--t-small)}
  .hello-summary::before{content:none}
  /* The phone's « À faire » (Mobile.dc.html): two rows, each a link on two lines, a chevron at
     the right; the action's word stays its accessible name. */
  .todo-row:nth-child(n+3){display:none}
  .todo-row{position:relative;gap:var(--space-3);min-height:60px;padding:10px var(--space-3) 10px 14px}
  /* The title on the first line; the day by which, then the source, on the second. */
  .todo-text{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline}
  .todo-line{display:contents}
  .todo-title{grid-column:1/-1;line-height:20px}
  .todo-due{grid-row:2;grid-column:1;margin-right:6px;line-height:18px}
  .todo-due::after{content:" ·";color:var(--ink-soft)}
  .todo-source{grid-row:2;grid-column:2;margin:0;line-height:18px}
  .todo-title,.todo-source{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .todo-row a.todo-act.button{position:static;min-height:0;padding:0;border:0;background:none;color:var(--ink-soft)}
  .todo-row a.todo-act::after{content:"";position:absolute;inset:0}
  .todo-row a.todo-act:focus-visible{outline:0;box-shadow:none}
  .todo-row:has(a.todo-act:focus-visible){outline:2px solid var(--accent);outline-offset:-2px}
  a.todo-act .todo-act-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  a.todo-act .icon{display:block}
  .todo-row:nth-child(2),.todo-row:last-child{border-bottom:0}
  .todo-more{display:none}
}

/* -- the decision card (5.14): one proposal at a time, the next one coming in ------------ */
/* The mockup's hierarchy (cockpit v3): the count as a title, the agent's line in mono, the kind
   in a tinted chip, the proposal in 18/700, the quote under a rule, the source chip at the left
   of « Refuser » (quiet) and « Valider » (primary), what Valider does outside under them. */
.decide{display:flex;flex-direction:column;min-width:0}
.decision-pile{position:relative;display:flex;flex-direction:column}
.decision-pile.behind-1,.decision-pile.behind-2{padding-bottom:12px}
.decision-pile::before,.decision-pile::after{content:"";position:absolute;height:40px;border:1px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface);display:none}
.decision-pile::after{left:10px;right:10px;bottom:6px;z-index:0}
.decision-pile::before{left:20px;right:20px;bottom:0;z-index:0;border-color:var(--line)}
.decision-pile.behind-1::after,.decision-pile.behind-2::after,.decision-pile.behind-2::before{display:block}
.decision-card{position:relative;z-index:1;display:flex;flex-direction:column;padding:18px 22px 20px;border-radius:var(--r-md);overflow:hidden}
.decision-top{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3)}
.decision-count{margin:0;font-size:var(--t-h2);font-weight:700;letter-spacing:-.035em;line-height:1.1;color:var(--ink)}
a.decision-all{display:none}
.decision-current{flex:1 1 auto;display:flex;flex-direction:column;gap:var(--space-2);padding-top:14px}
.decision-current:focus{outline:none}
.decision-current:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.decision-who{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);margin:0}
.decision-who .robot-mark{flex:none}
.decision-author{font-family:var(--font-mono);font-size:var(--t-tag);font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}
.kind-chip{display:inline-flex;align-items:center;height:22px;padding:0 var(--space-2);border-radius:var(--r-xs);background:var(--accent-tint);color:var(--indigo-800);font-size:var(--t-micro);font-weight:600}
.decision-text{margin:var(--space-1) 0 0;font-size:var(--t-h3);font-weight:700;letter-spacing:-.02em;line-height:1.3;color:var(--ink)}
.decision-question{margin:0;font-weight:600}
.decision-note{margin:0;font-size:var(--t-small);color:var(--ink-soft)}
.decision-card .quote{margin:0;padding-left:var(--space-3);border-left:2px solid var(--accent-line);font-size:var(--t-small);line-height:1.5;color:var(--ink-soft)}
.decision-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-3);margin-top:auto;padding-top:var(--space-2)}
a.decision-source{display:inline-flex;align-items:center;gap:6px;min-height:26px;padding:0 var(--space-2);border-radius:var(--r-xs);background:var(--accent-tint);color:var(--indigo-800);font-family:var(--font-mono);font-size:var(--t-micro);font-weight:500;text-decoration:none}
a.decision-source:hover{color:var(--link-hover);text-decoration:underline}
.decision-card .decision-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px;margin-left:auto}
button.quiet{background:transparent;color:var(--link);padding:0 var(--space-4)}
button.quiet:hover,button.quiet:active{background:var(--accent-tint);color:var(--link-hover)}
.decision-hint{margin:2px 0 0;font-size:var(--t-micro);line-height:1.4;color:var(--ink-soft)}
.decision-empty{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);padding:var(--space-6) 0 var(--space-4);text-align:center;color:var(--ink-soft)}
.decision-empty:focus{outline:none}
.decision-empty p{margin:0}
@keyframes card-in{from{opacity:0;translate:16px 0}to{opacity:1;translate:0 0}}
@keyframes card-out{from{opacity:1;translate:0 0}to{opacity:0;translate:-16px 0}}
.decision-current.entering{animation:card-in var(--d-mid) var(--ease-enter) both}
#decisions.htmx-swapping .decision-current{animation:card-out var(--d-short) var(--ease-state) both}
/* The phone's compact card (Mobile.dc.html): « Tout voir » in its title row, the proposal on two
   lines at most, no quote nor source chip, the two buttons sharing the width. */
@media (max-width:640px){
  .decide>.cockpit-head{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  a.decision-all{display:inline-flex;align-items:center;min-height:44px;margin:-11px 0;font-size:var(--t-meta);font-weight:600}
  .decision-card{padding:12px var(--space-4) 14px}
  .decision-count{font-size:var(--t-lead)}
  .decision-current{padding-top:10px}
  .decision-text{line-height:22px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .decision-card .quote,a.decision-source{display:none}
  .decision-card .decision-actions{flex:1 1 100%;flex-wrap:nowrap;gap:var(--space-2)}
  .decision-card .decision-actions>*{flex:1 1 0}
  button.quiet{border:1px solid var(--line-strong);background:var(--surface)}
}

/* -- the floating Manager (5.14): a round button bottom-right, the conversation in a panel -- */
.manager-launcher{position:fixed;right:max(var(--space-6),env(safe-area-inset-right));bottom:max(var(--space-6),env(safe-area-inset-bottom));z-index:30;width:56px;height:56px;min-height:0;padding:0;border-radius:50%;border:1px solid var(--line-strong);background:var(--surface);box-shadow:var(--shadow-raised);transition:border-color var(--d-short) var(--ease-state)}
.manager-launcher:hover,.manager-launcher:active,.manager-launcher[aria-expanded=true]{background:var(--surface);border-color:var(--accent)}
.manager-launcher .robot-mark{width:40px;height:auto;translate:0 2px}
/* An answer came while the panel was closed. */
.launcher-news{position:absolute;top:4px;right:4px;width:12px;height:12px;border-radius:50%;background:var(--accent);outline:2px solid var(--surface)}
.launcher-news[hidden]{display:none}
.manager-panel{position:fixed;right:max(var(--space-6),env(safe-area-inset-right));bottom:calc(max(var(--space-6),env(safe-area-inset-bottom)) + 56px + var(--space-3));z-index:31;display:flex;flex-direction:column;width:min(420px,calc(100vw - 2 * var(--space-6)));height:min(680px,calc(100dvh - 112px));background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--r-lg);box-shadow:var(--shadow-raised);overflow:hidden;opacity:1;translate:0 0;transition:opacity var(--d-mid) var(--ease-enter),translate var(--d-mid) var(--ease-enter)}
@starting-style{.manager-panel{opacity:0;translate:0 8px}}
.manager-panel[hidden]{display:none}
.manager-head{flex:none;position:relative;padding:var(--space-2) var(--space-2) var(--space-3) var(--space-4);border-bottom:1px solid var(--line)}
.manager-title{display:flex;align-items:center;gap:var(--space-2)}
.manager-title h2{flex:1 1 auto;min-width:0;margin:0;font-size:var(--t-body);font-weight:700;letter-spacing:-.01em}
.manager-title button.ghost{width:44px;height:44px;padding:0;border-color:transparent;color:var(--ink-soft)}
.manager-title button.ghost:hover{border-color:var(--line-strong);color:var(--link)}
details.history-menu{display:block;margin-top:var(--space-1)}
details.history-menu summary{display:flex;justify-content:flex-start;gap:var(--space-2);width:100%;min-height:44px;padding:0 var(--space-3);border:1px solid var(--line);color:var(--ink);text-align:left}
details.history-menu summary .icon{flex:none;color:var(--ink-soft)}
.conversation-title{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
details.history-menu .menu.history-list{left:0;right:0;min-width:0;max-height:320px;overflow-y:auto}
ul#history{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
ul#history a{display:flex;align-items:center;gap:var(--space-2);min-height:44px;padding:0 var(--space-3)}
ul#history .history-title{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
ul#history .history-when{flex:none;font-family:var(--font-mono);font-size:var(--t-micro);color:var(--ink-soft)}
ul#history a[aria-current=true]{font-weight:600}
ul#history a[aria-current=true]::after{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--accent)}
ul#history .skeleton-item{display:block;padding:0 var(--space-3)}
.manager-panel .thread{flex:1 1 auto;min-height:0;padding:var(--space-4);background:var(--bg)}
.manager-panel .thread-inner{max-width:none}
.manager-panel .welcome{margin:auto 0;padding:var(--space-6) 0}
.manager-panel .welcome .lead{font-size:var(--t-h3)}
.manager-panel .welcome p{max-width:32ch}
.manager-panel .composer{flex:none;margin:var(--space-3) var(--space-4) 0}
.composer-hint{flex:none;margin:6px var(--space-4) var(--space-3);font-size:var(--t-micro)}
/* On a phone (5.14): a smaller button above the safe area, and the panel as a full-screen sheet,
   as high as what the keyboard leaves (--vvh, written by hub.js), the page still behind it. */
@media (max-width:640px){
  .manager-launcher{width:52px;height:52px;right:max(var(--space-4),env(safe-area-inset-right));bottom:max(var(--space-4),env(safe-area-inset-bottom))}
  .manager-launcher .robot-mark{width:36px}
  #manager-panel{inset:0;width:auto;height:var(--vvh,100dvh);border:0;border-radius:0;box-shadow:none}
  .panel-open body{overflow:hidden}
  main{padding-bottom:calc(52px + var(--space-8) + env(safe-area-inset-bottom))}
}

/* -- the bell: a panel over the page, an alert in a window ------------------------------ */
details.bell-menu{position:relative}
details.bell-menu summary{list-style:none;cursor:pointer}
details.bell-menu summary::-webkit-details-marker{display:none}
details.bell-menu[open] summary{background:var(--bg);color:var(--ink)}
/* The panel of the bell: the menu's card, a module band on top, rows under it. */
.alerts-panel{position:absolute;right:0;top:calc(100% + 6px);width:min(400px,calc(100vw - 32px));max-height:min(560px,calc(100vh - 100px));overflow-y:auto;padding:0;gap:0;font-weight:400}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);padding:.625rem 1rem;background:color-mix(in srgb,var(--bg) 60%,var(--surface));border-bottom:1px solid var(--line);font-family:var(--font-mono);font-size:var(--t-tag);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}
.panel-head strong{font-weight:600}
.panel-head a.small{font-family:var(--font-sans);letter-spacing:normal;text-transform:none}
.alerts-panel ul.alert-list{padding:0 var(--space-4)}
.alerts-panel .more{align-self:flex-start;margin:var(--space-3) var(--space-4)}
.panel-head a.small,.alerts-panel .more{padding:0}
.panel-head a.small{display:inline-flex;align-items:center;min-height:24px;margin:-2px 0}
.alerts-panel .empty{margin:var(--space-4);font-size:var(--t-small)}
.alerts-panel ul.alert-list:not(:empty)+.empty{display:none}
#alert-preview-body>.badge{align-self:flex-start}
#alert-preview-body h2{font-size:var(--t-h2);padding-right:48px;margin:8px 0 0}
#alert-preview-body .muted{margin:0}

@media (max-width:640px){
  .alerts-panel{position:fixed;left:16px;right:16px;top:64px;width:auto}
}
/* Signing in with Google, and the spaces of the account menu */
.login .button.google{width:100%;justify-content:center}
.login form.stack{display:flex;flex-direction:column;gap:10px}
/* The spaces (5.15): one ruled row per space, its name and an arrow that says it leads in. */
.space-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;border-top:1px solid var(--line)}
.space-list li{border-bottom:1px solid var(--line)}
button.space-row{width:100%;min-height:52px;padding:0 var(--space-2);justify-content:space-between;border-radius:0;background:none;color:var(--ink);font-weight:600;text-align:left}
button.space-row:hover{background:var(--accent-tint);color:var(--link)}
button.space-row .icon{flex:none;color:var(--link)}
.login h2.eyebrow{margin:var(--space-4) 0 0}
.menu .menu-label{margin:var(--space-1) var(--space-3) 2px;font-family:var(--font-mono);font-size:var(--t-micro);font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft)}
.menu .space{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:36px;padding:0 var(--space-3);justify-content:flex-start;text-align:left;border:0;border-radius:var(--r-sm);background:none;color:var(--ink);font-size:var(--t-small);font-weight:500}
.menu .space:hover,.menu .space:active{background:var(--bg);color:var(--ink)}
.menu .space.current{font-weight:600}.menu .space.current svg{color:var(--accent)}
.menu hr{border:0;border-top:1px solid var(--line);margin:6px 0}
/* The Brain connector */
input.copy{width:100%;font-family:var(--font-mono)}
.steps-howto{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px}
.grants{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}.grants li{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.login fieldset{border:0;padding:0;margin:0}.login legend{font-weight:600;margin-bottom:6px}
/* Brain (5.12): for who goes there on purpose. What Brain noticed first, and only when there is
   something; then the portrait, the search and the map, the tabs. */
.brain-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 var(--space-4);margin:0 0 var(--space-4);padding:var(--space-1) var(--space-2) var(--space-1) var(--space-4);border:1px solid var(--accent-line);border-radius:var(--r-md);background:var(--accent-tint);color:var(--indigo-800);font-size:var(--t-body);font-weight:500}
.brain-banner a{display:inline-flex;align-items:center;gap:var(--space-1);min-height:44px;padding:0 var(--space-2);color:var(--link);font-weight:600;text-decoration:none}
.brain-banner a:hover{color:var(--link-hover)}
.brain-hero{display:flex;gap:var(--space-6);align-items:flex-start}
.brain-hero .robot-mark{flex:none}
.brain-portrait h1{font-size:var(--t-h1);line-height:1.2;margin:0 0 var(--space-2)}
.gradient-text{background:var(--gradient-title);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-box-decoration-break:clone;box-decoration-break:clone}
@media (forced-colors: active){.gradient-text{background:none;color:var(--link)}}
.portrait-text{font-size:var(--t-lead);line-height:1.55;max-width:72ch;margin:0 0 var(--space-1)}
.brain-portrait .small-print{margin:0;font-size:var(--t-meta);color:var(--ink-soft)}
.counters{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-3) 0;list-style:none;padding:0;margin:var(--space-5) 0 0}
.counters li{display:flex;align-items:baseline;gap:var(--space-2);padding:0 var(--space-5);border-left:1px solid var(--line);font-size:var(--t-small);color:var(--ink-soft)}
.counters li:first-child{padding-left:0;border-left:0}
.counters b{font-size:var(--t-figure);font-weight:800;line-height:1;letter-spacing:-.04em;color:var(--ink);font-variant-numeric:tabular-nums}
.counters .since{font-size:var(--t-meta)}
/* The page spaces its parts by 28 px: the toolbar sits closer to the map it drives, the tabs to
   their panel, and the map's place goes when the list is shown. */
.brain-toolbar{margin:0 0 calc(-1 * var(--space-4));gap:var(--space-3)}
.brain-map-card:has(> .brain-stage[hidden]){display:none}
.brain-search{flex:1 1 260px}
.brain-search input{width:100%}
.brain-buttons{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.brain-buttons [hidden]{display:none}
/* The map on night (decision 4), where the pastels have contrast; brain-map.js reads its colours
   from these tokens. */
.brain-stage{position:relative;overflow:hidden}
.brain-stage.night{background:var(--hero-bg);border-radius:var(--r-lg)}
.brain-map{height:min(62vh,640px);min-height:360px}
.brain-map .float-tooltip-kap{padding:var(--space-1) var(--space-2);border-radius:var(--r-sm);background:var(--night-raised);color:var(--night-text);font-family:var(--font-sans);font-size:var(--t-micro);font-weight:500}
/* While the map loads: its skeleton, a centre and names around it, where they will be. */
.brain-map-wait{position:absolute;inset:0 0 auto;height:min(62vh,640px);min-height:360px;pointer-events:none}
.brain-map-wait[hidden]{display:none}
.skeleton-map{position:absolute;inset:0}
.skeleton-node{position:absolute;width:14px;height:14px;margin:0;border-radius:50%}
.skeleton-node.skeleton-centre{left:calc(50% - 16px);top:calc(50% - 16px);width:32px;height:32px}
.skeleton-node:nth-child(2){left:30%;top:28%}.skeleton-node:nth-child(3){left:62%;top:22%;width:18px;height:18px}
.skeleton-node:nth-child(4){left:72%;top:52%}.skeleton-node:nth-child(5){left:58%;top:74%;width:18px;height:18px}
.skeleton-node:nth-child(6){left:34%;top:70%}.skeleton-node:nth-child(7){left:22%;top:50%;width:18px;height:18px}
.skeleton-node:nth-child(8){left:46%;top:16%;width:10px;height:10px}.skeleton-node:nth-child(9){left:80%;top:34%;width:10px;height:10px}
.night .skeleton{background:color-mix(in srgb,var(--night-text) 10%,transparent)}
.night .skeleton::after{background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--night-text) 12%,transparent),transparent)}
.brain-date{position:absolute;top:var(--space-4);left:var(--space-4);margin:0;padding:var(--space-1) var(--space-2);border-radius:var(--r-xs);background:color-mix(in srgb,var(--night-text) 6%,transparent);color:var(--night-body);font-family:var(--font-mono);font-size:var(--t-micro);font-weight:500;text-transform:capitalize}
.brain-legend{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);list-style:none;margin:0;padding:var(--space-3) var(--space-4) var(--space-4);font-size:var(--t-meta);color:var(--night-body);border-top:1px solid color-mix(in srgb,var(--night-text) 10%,transparent)}
.brain-legend .dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:var(--space-2);vertical-align:-1px;border:1.5px solid var(--night)}
.dot.person{background:var(--pastel-peach)}.dot.company{background:var(--pastel-sky)}
.dot.place{background:var(--pastel-mint)}.dot.file{background:var(--pastel-lemon)}
.dot.confirmed{background:transparent;border:2px solid var(--indigo-400)}.dot.learned{background:transparent;border:1.5px dashed var(--night-muted)}
.brain-tabs{display:flex;gap:var(--space-1);margin:var(--space-2) 0 calc(-1 * var(--space-3));border-bottom:1px solid var(--line);overflow-x:auto;scroll-padding-inline:var(--page-x);scrollbar-width:none}
.brain-tabs::-webkit-scrollbar{display:none}
.brain-tabs [role=tab]{flex:none;min-height:44px;padding:0 var(--space-4);background:none;border:0;border-radius:0;font-size:var(--t-body);font-weight:500;color:var(--ink-soft);white-space:nowrap;transition:color var(--d-short) var(--ease-state)}
.brain-tabs [role=tab]:hover,.brain-tabs [role=tab]:active{background:none;color:var(--link)}
.brain-tabs [role=tab][aria-selected=true]{color:var(--ink);font-weight:600;box-shadow:inset 0 -2px 0 var(--accent)}
.brain-tabs [role=tab] .muted{font-family:var(--font-mono);font-size:var(--t-micro)}
/* The directory: one card of ruled rows; a row opens its card. */
.brain-directory{list-style:none;margin:var(--space-2) 0 0;display:grid}
.brain-directory.card{padding:0}
.brain-row{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-1);width:100%;min-height:0;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:var(--space-3) var(--space-5);color:var(--ink);font-weight:400;transition:background var(--d-short) var(--ease-state)}
.brain-row:hover,.brain-row:active{background:color-mix(in srgb,var(--accent-tint) 60%,transparent);color:var(--ink)}
.brain-row-name{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);font-size:var(--t-body);font-weight:600}
.brain-row-meta{font-size:var(--t-meta);color:var(--ink-soft)}
.brain-directory .more{text-align:center;padding:var(--space-2)}
/* A card of the Brain: a window of 5.7, its parts ruled; what the owner confirmed first. */
.brain-card .modal-panel{max-width:560px}
.brain-card-head{padding-right:var(--space-12)}
.brain-card-head h2{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);margin:0 0 var(--space-1);font-size:var(--t-h2)}
.brain-card-head p{margin:0;font-size:var(--t-meta)}
.brain-card-part{margin-top:var(--space-5);padding-top:var(--space-4);border-top:1px solid var(--line)}
.brain-card-part h3{margin:0 0 var(--space-2);font-family:var(--font-mono);font-size:var(--t-tag);font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft)}
.brain-card-part p{margin:var(--space-2) 0 var(--space-1)}
.brain-card-part dl{display:flex;flex-direction:column;gap:var(--space-3);margin:0}
.brain-sources{list-style:none;padding:0;margin:var(--space-1) 0 0;display:grid;gap:var(--space-2);font-size:var(--t-small)}
.brain-card-part ul.chips{list-style:none;margin:var(--space-1) 0 0;padding:0}
.brain-sources li{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-2)}
.brain-sources .pill{flex:none;font-family:var(--font-mono)}
.brain-card .actions{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-6)}
.table-scroll{overflow-x:auto}
.brain-learned{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.brain-learned th,.brain-learned td{text-align:left;padding:var(--space-2) var(--space-3);border-bottom:1px solid var(--line)}
.brain-learned thead th{font-family:var(--font-mono);font-size:var(--t-tag);font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}
.brain-learned tbody th{font-weight:500}
.brain-learned td:first-of-type{width:45%}
/* A bar on its track, as long as the week's share of the best week. */
.brain-bar{position:relative;display:inline-block;overflow:hidden;width:min(70%,14rem);height:8px;margin-right:var(--space-2);border-radius:var(--r-full);background:var(--line);vertical-align:1px}
.brain-bar::before{content:"";position:absolute;inset:0 auto 0 0;width:var(--w);min-width:2px;border-radius:var(--r-full);background:var(--accent)}
@media (max-width:640px){
  /* Each week folds: the week, then each figure under its label. */
  .brain-learned thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .brain-learned tr{display:grid;padding:var(--space-3) 0;border-bottom:1px solid var(--line)}
  .brain-learned th,.brain-learned td{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);width:auto;padding:var(--space-1) 0;border:0}
  .brain-learned tbody th{font-weight:600}
  .brain-learned td::before{content:attr(data-label);margin-right:auto;white-space:nowrap;font-size:var(--t-meta);color:var(--ink-soft)}
  .brain-learned td .brain-bar{flex:none;width:6rem;margin:0}
  .brain-tabs{margin-inline:calc(-1 * var(--page-x));padding-inline:var(--page-x);mask-image:linear-gradient(90deg,transparent,black 24px,black calc(100% - 24px),transparent)}
  .counters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .counters li,.counters li:first-child{flex-direction:column;align-items:flex-start;gap:var(--space-1);padding:0;border:0}
  .counters .since{grid-column:1 / -1}
}
@media (max-width:720px){
.brain-hero{flex-direction:column;gap:var(--space-3)}.brain-hero .robot-mark{width:52px;height:auto}
.brain-map,.brain-map-wait{height:320px;min-height:0}
dialog.modal.brain-card{margin:auto 0 0;max-width:100vw;width:100vw}
dialog.modal.brain-card .modal-panel{border-radius:var(--r-lg) var(--r-lg) 0 0;max-height:80vh}
}
@media (prefers-reduced-motion: reduce){.brain-banner,.brain-row{transition:none}}
/* Creating a space: a name only */
.space-create label{display:block;font-weight:500;font-size:var(--t-small);margin-top:var(--space-2)}
.space-create input{width:100%;margin:var(--space-2) 0}
.login .space-create{text-align:left;margin-top:0}
/* The Agents tab: what an agent brings, its window, the panel that says it is at work. */
#agent-board{display:contents}
.agent-brings{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--space-2);font-size:var(--t-small);color:var(--ink)}
.agent-brings li{display:flex;align-items:flex-start;gap:var(--space-2)}
.agent-brings .icon{flex:none;margin-top:.2em;color:var(--accent)}
.agent-text .agent-work.error{color:var(--bad)}
/* An agent's window (5.10), as the site's call log: a bar that stays on top, the agent at 24 px
   and its state in mono; then ruled parts, its connector as one of them. */
.modal-panel.agent-window{padding:0}
.window-bar{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:var(--space-3);min-height:56px;padding:var(--space-2) var(--space-2) var(--space-2) var(--space-5);background:var(--bg);border-bottom:1px solid var(--line)}
.window-title{flex:1 1 auto;min-width:0;font-family:var(--font-mono);font-size:var(--t-tag);font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}
.window-bar .live,.window-bar .agent-off{font-family:var(--font-mono);font-size:var(--t-tag);font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}
.window-bar .modal-close{position:static;flex:none}
.window-body{padding:0 var(--space-6) var(--space-6)}
.window-part{display:flex;flex-direction:column;align-items:stretch;gap:var(--space-3);margin:0;padding:var(--space-5) 0;border-top:1px solid var(--line)}
.window-part:first-child{border-top:0}
.window-part.actions{flex-direction:row;align-items:center}
.window-part h2{margin:0;padding:0;font-size:var(--t-h2)}
.window-part h3{margin:0;font-size:var(--t-body);font-weight:700}
.window-part p{margin:0}
.window-part .agent-headline:first-child{margin-top:0}
.agent-window .card{display:flex;flex-direction:column;gap:var(--space-2)}
.agent-window .card h2{margin:0;padding:0;font-size:var(--t-body);font-weight:700;display:flex;align-items:center;gap:var(--space-2)}
.agent-window .card p{margin:0}
.agent-figures:empty{display:none}
/* The Community manager's window (community-manager.md, section 8): accounts, publications,
   comments, as ruled lines. */
.account-list,.publication-list{margin:0;padding:0;list-style:none}
.account-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-3);min-height:44px;padding:var(--space-2) 0;border-bottom:1px solid var(--line)}
.account-row:last-child{border-bottom:0}
.account-name{flex:1 1 12rem;min-width:0;font-size:var(--t-small)}
.account-figure{font-size:var(--t-small);color:var(--ink-soft)}
.account-figure b{font-family:var(--font-mono);font-weight:600;color:var(--ink)}
.account-row .actions{margin:0}
.social-window{display:flex;flex-direction:column;gap:var(--space-2);margin-bottom:var(--space-5)}
.social-head{margin:var(--space-3) 0 0;font-family:var(--font-mono);font-size:var(--t-tag);font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}
.social-head:first-child{margin-top:0}
.publication-row{display:flex;flex-direction:column;gap:var(--space-1);padding:var(--space-3) 0;border-bottom:1px solid var(--line)}
.publication-row:last-child{border-bottom:0}
.publication-row p{margin:0}
.publication-top{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2)}
.publication-when{font-family:var(--font-mono);font-size:var(--t-micro);color:var(--ink-soft)}
.publication-text{font-size:var(--t-small);font-weight:500}
.publication-reason{font-size:var(--t-small);color:var(--bad)}
.publication-meta{font-size:var(--t-micro);color:var(--ink-soft)}
.publication-row .actions{margin:var(--space-1) 0 0}
/* A publication to decide: each network's post as it will read there. */
.post-previews{display:flex;flex-direction:column;gap:var(--space-2);margin:var(--space-2) 0;padding:0;list-style:none}
.post-preview{padding:var(--space-3);background:var(--bg);border:1px solid var(--line);border-radius:var(--r-md)}
.post-preview p{margin:0}
.post-preview-head{font-size:var(--t-small)}
.post-preview-text{margin-top:var(--space-1);font-size:var(--t-small);white-space:pre-line;overflow-wrap:anywhere}
.post-preview-link{margin-top:var(--space-1);font-family:var(--font-mono);font-size:var(--t-micro);color:var(--link);overflow-wrap:anywhere}
.post-preview-meta{margin-top:var(--space-1);font-size:var(--t-micro);color:var(--ink-soft)}
.decision-when{font-family:var(--font-mono);font-size:var(--t-small);color:var(--link);white-space:nowrap}
.agent-welcome{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px}
.agent-welcome h2{margin:0}
.agent-welcome p{margin:0}
/* The agent just activated arrives with a small bounce, once; its name in the title gradient. */
.agent-welcome>.robot-mark{animation:pop var(--d-mid) var(--ease-bounce) both}
.agent-live{display:flex;flex-direction:column;gap:6px}
.agent-next{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px;font-size:var(--t-small);text-align:left}
.first-agent{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px}
.first-agent h2,.first-agent p{margin:0}
.first-agent-stage{width:min(100%,320px);height:112px;background:var(--bg);border:1px solid var(--line);border-radius:var(--r-md)}
.confetti{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:5}
.confetti i{position:absolute;top:-16px;width:9px;height:14px;border-radius:var(--r-xs);animation:confetti 2.6s var(--ease-fall) forwards}
@keyframes confetti{from{transform:translate3d(0,0,0) rotate(0);opacity:1}80%{opacity:1}to{transform:translate3d(var(--drift),105vh,0) rotate(var(--spin));opacity:0}}

/* -- the characters (_robots.html, from the site's primitives.tsx; 6.1) ------------------ */
.robot-mark{flex:none;overflow:visible}
.robot-shadow,.person-shadow{fill:color-mix(in srgb,var(--ink) 10%,transparent)}
.on-night .robot-shadow,.on-night .person-shadow{fill:var(--figure-shadow-night)}
.robot-body,.person-body{transform-box:fill-box;transform-origin:center bottom}
.robot-stem{stroke:var(--indigo-700)}
.on-night .robot-stem{stroke:var(--indigo-300)}
.robot-antenna{fill:var(--indigo-400)}
.robot-shell{fill:var(--pastel-lilac)}
.robot[data-teinte=indigo] .robot-shell{fill:var(--indigo-500)}
.robot[data-teinte=ciel] .robot-shell{fill:var(--pastel-sky)}
.robot[data-teinte=menthe] .robot-shell{fill:var(--pastel-mint)}
.robot[data-teinte=peche] .robot-shell{fill:var(--pastel-peach)}
.robot[data-teinte=citron] .robot-shell{fill:var(--pastel-lemon)}
.robot[data-teinte=rose] .robot-shell{fill:var(--pastel-pink)}
.robot[data-teinte=lilas] .robot-shell{fill:var(--pastel-lilac)}
.robot-shine{fill:color-mix(in srgb,var(--on-accent) 45%,transparent)}
.robot-visor{fill:var(--night)}
.robot-eyes rect{fill:var(--on-accent)}
/* An agent to activate or to link again, as the site's agent not chosen. */
.robot.off{opacity:.55;filter:grayscale(.8) brightness(.94)}
.person-bust{fill:var(--indigo-600)}
.person-collar{fill:var(--on-accent)}
.person-head{fill:var(--pastel-peach)}
.person-hair,.person-eye{fill:var(--ink)}
.person-smile{stroke:var(--ink)}
.robot-tag rect{fill:var(--surface);stroke:var(--line-strong)}
.robot-tag text{fill:var(--ink)}
.robot-tag.on-night rect{fill:color-mix(in srgb,var(--night-text) 10%,transparent);stroke:color-mix(in srgb,var(--night-text) 15%,transparent)}
.robot-tag.on-night text{fill:var(--night-text)}
.speech-box,.speech-tail{fill:var(--surface)}
.speech-box{stroke:var(--line-strong)}
.speech-text{fill:var(--ink)}
.speech[data-variant=info] .speech-text{fill:var(--ink-soft)}
.speech[data-variant=alert] .speech-box{stroke:var(--bad)}
.speech[data-variant=validate] .speech-box,.speech[data-variant=validate] .speech-tail{fill:var(--accent);stroke:none}
.speech[data-variant=validate] .speech-text{fill:var(--on-accent)}
.speech-tick-disc{fill:color-mix(in srgb,var(--on-accent) 20%,transparent)}
.speech-tick{stroke:var(--on-accent)}
.sheet-box{fill:var(--surface);stroke:var(--line-strong)}
.sheet-lines{stroke:var(--indigo-200)}
.envelope-box{fill:var(--surface);stroke:var(--line-strong)}
.envelope-flap{stroke:var(--indigo-300)}
.envelope[data-tone=validate] .envelope-box{fill:var(--indigo-100);stroke:var(--indigo-400)}
.envelope[data-tone=urgent] .envelope-box,.envelope[data-tone=urgent] .envelope-flap{stroke:var(--bad)}
.robot-path{stroke:var(--indigo-300)}
.night .robot-path,.on-night .robot-path{stroke:color-mix(in srgb,var(--night-text) 20%,transparent)}
.calendar-page{fill:var(--surface)}
.calendar-band,.calendar-day{fill:var(--indigo-200)}
.calendar-edge{stroke:var(--line-strong)}
.calendar-ring{stroke:var(--indigo-400)}
.calendar-day.taken{fill:var(--accent)}
.phone-body{fill:var(--surface);stroke:var(--line-strong)}
.phone-screen{fill:var(--indigo-100)}
.phone-post{stroke:var(--indigo-300)}
.phone-photo{fill:var(--pastel-mint)}
.phone-speaker{stroke:var(--indigo-300)}
.post-box{fill:var(--surface);stroke:var(--line-strong)}
.post-dot{fill:var(--pastel-mint)}
.post-lines{stroke:var(--indigo-200)}
.post-card[data-tone=validate] .post-box{fill:var(--indigo-100);stroke:var(--indigo-400)}

/* Last, so that it wins: on a phone a field is at 16 px, or iOS zooms in on it (5.7). */
@media (max-width:640px){
form.stack input:not([type=checkbox]),form.stack select,form.stack textarea,form.inline select,.rules textarea,.rules input,.login input,.search input,.space-create input,input.copy{font-size:var(--t-input)}
}
