/* ============================================================================
   agendac.css — canonical production stylesheet
   One-time deliberate extraction from the v3 prototype. Ships unchanged.
   Token values mirror tokens.md. Domaine colours = the muted (locked) set.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---- 1. Tokens -------------------------------------------------------- */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* ink / surfaces — neutral zinc (shadcn), terracotta is the single accent */
  --ink: #18181B;  --ink-2: #27272A;  --ink-3: #3F3F46;
  --muted: #52525B;  --faint: #71717A;  --link: #B8470D;
  --bg: #FAFAFA;  --surface: #FFFFFF;  --card: #FFFFFF;
  --tint: #F4F4F5;  --toolbar: #F4F4F5;

  /* borders */
  --border: #E4E4E7;  --border-strong: #18181B;  --divider: #E4E4E7;
  --row: #F4F4F5;  --row-faint: #FAFAFA;  --field-border: #D4D4D8;

  /* accent / status */
  --accent: #B8470D;  --accent-2: #9A3D0B;  --ok: #3F6B52;  --ring: #18181B;
  --status-soon-bg: #9C4A2F;     --status-soon-fg: #FFFFFF;
  --status-open-bg: #E7F0E9;     --status-open-fg: #3F6B52;
  --status-upcoming-bg: #EAEFF4; --status-upcoming-fg: #2C4A6E;
  --status-closed-bg: #EAEFF4;   --status-closed-fg: #5B6B7D;
  --sponsor-border: #B68A2E;     --sponsor-ink: #8A6A22;  --sponsor-dot: #B68A2E;

  /* shadcn/Tailwind-style workflow colors */
  --state-neutral-bg: #F8FAFC;  --state-neutral-fg: #475569;  --state-neutral-border: #E2E8F0;
  --state-new-bg: #EFF6FF;      --state-new-fg: #1D4ED8;      --state-new-border: #BFDBFE;
  --state-review-bg: #EEF2FF;   --state-review-fg: #4338CA;   --state-review-border: #C7D2FE;
  --state-revision-bg: #FFFBEB; --state-revision-fg: #B45309; --state-revision-border: #FDE68A;
  --state-accepted-bg: #ECFDF5; --state-accepted-fg: #047857; --state-accepted-border: #A7F3D0;
  --state-rejected-bg: #FFF1F2; --state-rejected-fg: #BE123C; --state-rejected-border: #FECDD3;
  --state-message-bg: #ECFEFF;  --state-message-fg: #0E7490;  --state-message-border: #A5F3FC;
  --state-internal-bg: #F5F3FF; --state-internal-fg: #6D28D9; --state-internal-border: #DDD6FE;

  /* domaine — DEFAULT / muted lock (override these 8 for the A/B bright set) */
  --dom-shs: #B3361F;        --dom-arts: #6A2E9C;     --dom-droit: #1F4E8C;
  --dom-eco: #C2710C;        --dom-sante: #2E8A52;    --dom-naturelles: #0C7C8C;
  --dom-ingenierie: #9C2D63; --dom-formelles: #4F5B66;

  /* radius / pill */
  --radius-sm: 6px;  --radius: 8px;  --radius-lg: 12px;  --pill: 999px;

  /* spacing scale */
  --sp-1:4px; --sp-2:6px; --sp-3:8px; --sp-4:10px; --sp-5:12px; --sp-6:14px;
  --sp-7:16px; --sp-8:18px; --sp-9:20px; --sp-10:22px; --sp-11:24px; --sp-12:28px;
  --sp-13:32px; --sp-14:36px; --sp-15:40px; --sp-16:44px; --sp-17:48px; --sp-18:56px;
  --sp-19:64px; --sp-20:72px; --sp-21:80px;

  /* layout */
  --maxw: 1240px;  --gutter: 40px;  --header-h: 68px;  --sticky: 84px;
}

/* ---- 2. Reset / base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--field-border); border-radius: 6px; }
.icon { width: 1em; height: 1em; flex: none; }       /* svg sized by font-size */
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---- 3. Layout helpers ------------------------------------------------ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.page { padding: 36px var(--gutter) 80px; max-width: var(--maxw); margin: 0 auto; }
.page--review { max-width: 1400px; }
.section { margin-top: 48px; }
.split > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.doc-grid { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
.split { display: grid; gap: 32px; align-items: start; }
.split--detail  { grid-template-columns: 1fr 340px; gap: 40px; }
.split--listing { grid-template-columns: 272px 1fr; }
.split--form    { grid-template-columns: 1fr 300px; gap: 28px; }
.split--account { grid-template-columns: 1fr 360px; }
.grid-2 { display:grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.grid-3 { display:grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display:grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ---- 4. Type roles ---------------------------------------------------- */
.t-hero   { font-weight:700; font-size:52px; line-height:1.1; letter-spacing:0; }
.t-h1     { font-weight:700; font-size:36px; line-height:1.12; letter-spacing:0; }
.t-h1--lg { font-size:40px; }
.t-h2     { font-weight:600; font-size:22px; line-height:1.15; letter-spacing:0; }
.t-h2--lg { font-weight:700; font-size:26px; }
.t-card   { font-weight:600; font-size:19px; line-height:1.25; }
.t-lede   { font-weight:400; font-size:18px; line-height:1.6; color:var(--ink-3); }
.t-body   { font-weight:400; font-size:17px; line-height:1.7; color:var(--ink-2); }
.t-meta   { font-family:var(--font-mono); font-weight:500; font-size:13px; line-height:1.35; color:var(--muted); }
.t-eyebrow{ font-family:var(--font-mono); font-weight:500; font-size:12px; line-height:1.35; letter-spacing:0; text-transform:uppercase; color:var(--faint); }
.t-label  { font-family:var(--font-mono); font-weight:600; font-size:14px; line-height:1.35; letter-spacing:0; text-transform:uppercase; color:var(--faint);
            margin:0 0 14px; padding-bottom:10px; border-bottom:1px solid var(--divider); }

/* ---- 5. Header / nav / footer ---------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border-strong); }
.site-header__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; }
.header-left  { display: flex; align-items: center; gap: 36px; }
.header-right { display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand__mark { font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: 0; color: var(--ink); }
.workspace-badge { font-family: var(--font-mono); font-weight: 600; font-size: 12px; line-height: 1.35; color: var(--link);
  background: var(--tint); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 9px; white-space: nowrap; }
.workspace-exit { font-weight: 600; font-size: 14px; color: var(--link); }
button.workspace-exit { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.link-like { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; color: var(--link); font-weight: 600; }
.nav { display: flex; gap: 22px; }
.nav a { font-weight: 500; font-size: 15px; color: var(--ink-3); }
.nav a.is-active { color: var(--ink); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 0 13px; border: 1px solid var(--field-border); border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary > svg { width: 18px; height: 18px; }
.mobile-menu__panel { position: absolute; z-index: 80; top: calc(100% + 12px); right: 0; width: min(320px, calc(100vw - 40px));
  background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 16px; box-shadow: 0 16px 36px rgba(9,9,11,.14); }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__nav a { padding: 10px 8px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; color: var(--ink); }
.mobile-menu__nav a:hover { background: var(--tint); }
.mobile-menu__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--row); }
.mobile-menu__actions > a:not(.btn) { font-weight: 600; font-size: 15px; color: var(--link); padding: 8px; }
.lang-toggle { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--faint); cursor: pointer; }
.lang-toggle b { color: var(--ink); }
.icon-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 0; border-radius: var(--radius-sm); }
.icon-btn > svg { width: 18px; height: 18px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff;
  font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }

/* Persistent account menu (assets/account-menu.js) */
.acct { position: relative; display: inline-flex; }
.acct__btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 2px; cursor: pointer; color: var(--ink-3); }
.acct__chevron { width: 16px; height: 16px; }
.acct__panel { position: absolute; z-index: 90; top: calc(100% + 10px); right: 0; width: 264px;
  background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 8px; box-shadow: 0 16px 36px rgba(9,9,11,.16); }
.acct__panel[hidden] { display: none; }
.acct__id { padding: 8px 10px 10px; }
.acct__name { font-weight: 700; font-size: 15px; color: var(--ink); }
.acct__email { font-size: 13px; color: var(--muted); word-break: break-all; }
.acct__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--faint); padding: 8px 10px 4px; }
.acct__item { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 9px 10px; border: 0; background: none; border-radius: var(--radius-sm);
  font-family: inherit; font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; }
.acct__item:hover { background: var(--surface); }
.acct__item.is-active { background: var(--tint); }
.acct__item--danger { color: var(--danger, #B42318); }
.acct__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.acct__dot--person { background: var(--link); }
.acct__dot--org { background: var(--accent, #18181B); }
.acct__sep { height: 1px; background: var(--divider); margin: 6px 4px; }
/* Always-visible re-entry to the account workspace */
.acct-home { padding: 6px 13px; border: 1px solid var(--field-border); border-radius: var(--pill); color: var(--link); font-weight: 600; font-size: 14px; }
.acct-home:hover { border-color: var(--ink-3); background: var(--surface); }

/* Dark account / gestion bar — account-framed pages */
.site-header--dark { background: #18181B; border-bottom: 0; }
.site-header--dark .brand__mark { color: #fff; }
.site-header--dark .nav a { color: rgba(255,255,255,.78); }
.site-header--dark .nav a:hover, .site-header--dark .nav a.is-active { color: #fff; }
.site-header--dark .workspace-badge { color: #A1A1AA; background: transparent; border-color: rgba(255,255,255,.24); }
.site-header--dark .workspace-exit { color: rgba(255,255,255,.82); }
.site-header--dark .workspace-exit:hover { color: #fff; }
.site-header--dark button.workspace-exit { color: rgba(255,255,255,.82); }
.site-header--dark .acct-home { color: #fff; border-color: rgba(255,255,255,.3); }
.site-header--dark .acct-home:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); }
.site-header--dark .avatar { background: #fff; color: #18181B; }
.site-header--dark .acct__btn { color: #fff; }
.site-header--dark .acct__chevron { color: #fff; }
.site-header--dark .mobile-menu summary { color: #fff; }
.site-header--dark .link-back { color: rgba(255,255,255,.82); }

/* Space colors — personal = primary navy (default --dark); gestion = secondary accent */
.site-header--gestion { background: var(--accent); }
.site-header--gestion .nav a { color: rgba(255,255,255,.86); }
.site-header--gestion .nav a:hover, .site-header--gestion .nav a.is-active { color: #fff; }
.site-header--gestion .workspace-badge { color: #fff; border-color: rgba(255,255,255,.42); }
.site-header--gestion .workspace-exit, .site-header--gestion button.workspace-exit { color: rgba(255,255,255,.92); }
.site-header--gestion .acct-home { color: #fff; border-color: rgba(255,255,255,.55); }
.site-header--gestion .acct-home:hover { background: rgba(255,255,255,.14); }
.site-header--gestion .avatar { background: #fff; color: var(--accent); }
.site-header--gestion .acct__dot--org { background: var(--accent); }

/* Connected account bar shown on top of public pages (keeps profile + menu) */
.acct-bar { background: #18181B; color: #fff; position: sticky; top: 0; z-index: 60; }
.acct-bar--gestion { background: var(--accent); }
.acct-bar__in { max-width: 1100px; margin: 0 auto; padding: 5px 24px; min-height: 44px; display: flex; align-items: center; gap: 18px; }
.acct-bar__badge { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.32); border-radius: var(--pill); padding: 4px 10px; white-space: nowrap; }
.acct-bar__nav { display: flex; gap: 18px; }
.acct-bar__nav a { color: rgba(255,255,255,.85); font-weight: 600; font-size: 14px; }
.acct-bar__nav a:hover { color: #fff; }
.acct-bar__right { margin-left: auto; display: flex; align-items: center; }
.acct-bar .acct__btn { color: #fff; }
.acct-bar .acct__chevron { color: #fff; }
.acct-bar .avatar { background: #fff; color: #18181B; }
.acct-bar--gestion .avatar { color: var(--accent); }
@media (max-width: 720px) { .acct-bar__nav { display: none; } }

/* Author proposal view: status stepper (namespaced under .stepper-wrap so it does
   not collide with form.html's wizard .stepper/.step), banner, letter, dates */
.stepper-wrap { background: var(--surface); border-bottom: 1px solid var(--border); }
.stepper-wrap .stepper { max-width: 1100px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.stepper-wrap .step { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; padding: 0; border: 0; background: none; }
.stepper-wrap .step__dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--field-border); background: var(--card); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--muted); flex: none; }
.stepper-wrap .step__label { font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.stepper-wrap .step__line { height: 2px; background: var(--field-border); flex: 1; margin: 0 14px; min-width: 24px; }
.stepper-wrap .step.is-done .step__dot { background: var(--link); border-color: var(--link); color: #fff; }
.stepper-wrap .step.is-done .step__label { color: var(--ink); }
.stepper-wrap .step.is-current .step__dot { border-color: var(--link); color: var(--link); box-shadow: 0 0 0 4px rgba(44,74,110,.12); }
.stepper-wrap .step.is-current .step__label { color: var(--ink); }
.stepper-wrap .step.tone-ok .step__dot { background: #2F855A; border-color: #2F855A; color: #fff; }
.stepper-wrap .step.tone-no .step__dot { background: #9B2C2C; border-color: #9B2C2C; color: #fff; }
.stepper-wrap .step.tone-warn.is-current .step__dot { border-color: #C2410C; color: #C2410C; box-shadow: 0 0 0 4px rgba(194,65,12,.12); }
.act-banner { display: flex; gap: 14px; align-items: flex-start; border-radius: var(--radius); padding: 16px 18px; margin: 0 0 22px; }
.act-banner--do { background: #FFF4E5; border: 1px solid #F0C081; }
.act-banner--wait { background: var(--tint); border: 1px solid var(--border); }
.act-banner--ok { background: #E7F4EC; border: 1px solid #9AD0B0; }
.act-banner--no { background: #FBEAEA; border: 1px solid #E2A6A6; }
.act-banner__t { font-weight: 700; font-size: 15px; color: var(--ink); margin: 0 0 3px; }
.act-banner__b { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.letter { border: 1px solid var(--border); border-left: 4px solid var(--link); border-radius: 0 var(--radius) var(--radius) 0; background: var(--card); padding: 18px 20px; margin: 0 0 24px; }
.letter h3 { font-size: 14px; margin: 0 0 8px; color: var(--ink); }
.letter p { font-size: 15px; line-height: 1.65; color: var(--ink-2); margin: 0; white-space: pre-wrap; }
.dates { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; }
.dates dt { font-size: 12px; color: var(--faint); font-family: var(--font-mono); }
.dates dd { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0; text-align: right; }

/* Committee evaluations (shadcn-style semantic badges) */
.sb { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: var(--pill); border: 1px solid transparent; }
.sb--success { background: #ECFDF3; color: #067647; border-color: #ABEFC6; }
.sb--warning { background: #FFFAEB; color: #B54708; border-color: #FEDF89; }
.sb--destructive { background: #FEF3F2; color: #B42318; border-color: #FECDCA; }
.sb--muted { background: #F2F4F7; color: #475467; border-color: #EAECF0; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dotc { width: 9px; height: 9px; border-radius: 50%; }
.tally { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.eval { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--card); }
.eval + .eval { margin-top: 12px; }
.eval__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.eval__who { font-weight: 700; font-size: 14px; color: var(--ink); }
.eval__aff { font-size: 12.5px; color: var(--muted); }
.eval__c { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 8px 0 0; }
.rec-opts { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 0; }
.rec-opts label { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.invite { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 12px; }
.mlist { display: flex; flex-direction: column; }
.mrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mrow:last-child { border-bottom: 0; }
.mrow__a { display: flex; gap: 8px; flex-wrap: wrap; }
.mini { font-family: inherit; font-size: 12.5px; font-weight: 600; border: 1px solid var(--field-border); background: var(--card); border-radius: var(--radius-sm); padding: 5px 9px; cursor: pointer; color: var(--ink-3); }
.mini:hover { border-color: var(--ink-3); }
.mini--danger { color: #B42318; border-color: #FECDCA; background: #FEF3F2; }
@media (max-width: 560px) { .invite { grid-template-columns: 1fr; } }

/* Safety: long unbroken strings (titles, prose, emails) must wrap, never overflow */
.t-card, .qrow__title, .qrow__sub, .pcard__title, .crow__title, .record__prose,
.eval__c, .eval__who, .eval__aff, .acct__email, .author-line__email, .timeline__title,
.timeline p, .record__facts dd, .prio__title { overflow-wrap: anywhere; word-break: break-word; }
.card > div, .split > div, .record__main, .qrow__main, .prio__main { min-width: 0; }

.site-footer { margin-top: 48px; background: var(--ink); color: #b3bdce; }
.site-footer__top { max-width: var(--maxw); margin: 0 auto; padding: 48px var(--gutter); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.site-footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col__h { font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0; text-transform: uppercase; color: var(--muted); }
.foot-col a { font-size: 15px; color: #b3bdce; }
.site-footer__bottom { border-top: 1px solid #2c3c54; }
.site-footer__bar { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter); display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.site-footer .foot-col__h, .site-footer__bar { color: #C4CEDA; }

/* ---- 6. Buttons ------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn > svg { width: 16px; height: 16px; flex: none; }
.btn--primary   { background: var(--ink); color: #fff; }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost     { background: transparent; color: var(--muted); border-color: var(--field-border); }
.btn--accent    { background: var(--accent); color: #fff; }
.btn--sm        { font-size: 14px; padding: 9px 18px; }
.btn--lg        { font-size: 16px; padding: 13px 26px; }
.btn--block     { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* link with trailing arrow (mono) */
.link-arrow { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-weight: 500; font-size: 14px; color: var(--link); }
.link-arrow > svg { width: 13px; height: 13px; }
.link-back { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-weight: 500; font-size: 14px; color: var(--link); }
.link-back > svg { width: 15px; height: 15px; }

/* ---- 7. Badges / pastille -------------------------------------------- */
.badge { font-family: var(--font-mono); font-weight: 600; font-size: 12px; padding: 4px 10px; border: 1px solid transparent; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.badge--soon     { background: var(--status-soon-bg);     color: var(--status-soon-fg); }
.badge--open     { background: var(--status-open-bg);     color: var(--status-open-fg); }
.badge--upcoming { background: var(--status-upcoming-bg); color: var(--status-upcoming-fg); }
.badge--closed   { background: var(--status-closed-bg);   color: var(--status-closed-fg); }
.badge--new      { background: var(--state-new-bg);      color: var(--state-new-fg);      border: 1px solid var(--state-new-border); }
.badge--review   { background: var(--state-review-bg);   color: var(--state-review-fg);   border: 1px solid var(--state-review-border); }
.badge--revision { background: var(--state-revision-bg); color: var(--state-revision-fg); border: 1px solid var(--state-revision-border); }
.badge--accepted { background: var(--state-accepted-bg); color: var(--state-accepted-fg); border: 1px solid var(--state-accepted-border); }
.badge--rejected { background: var(--state-rejected-bg); color: var(--state-rejected-fg); border: 1px solid var(--state-rejected-border); }
.badge--pending  { background: var(--state-neutral-bg);  color: var(--state-neutral-fg);  border: 1px solid var(--state-neutral-border); }
.badge--sponsor  { font-size: 12px; letter-spacing: 0; padding: 4px 10px; background: transparent;
  border: 1px solid var(--sponsor-border); color: var(--sponsor-ink); }
.badge--sponsor .pastille { background: var(--sponsor-dot); }

/* domaine pastille (dot) + tag */
.pastille { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; background: var(--faint); }
.pastille--lg { width: 12px; height: 12px; }
.pastille--shs { background: var(--dom-shs); }
.pastille--arts { background: var(--dom-arts); }
.pastille--droit { background: var(--dom-droit); }
.pastille--eco { background: var(--dom-eco); }
.pastille--sante { background: var(--dom-sante); }
.pastille--naturelles { background: var(--dom-naturelles); }
.pastille--ingenierie { background: var(--dom-ingenierie); }
.pastille--formelles { background: var(--dom-formelles); }
.domaine-tag { font-family: var(--font-mono); font-weight: 600; font-size: 12px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 7px; }

/* ---- 8. Cards / lists ------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card--sponsored { border-color: #e7d6ad; }
.card--flush { padding: 0; overflow: hidden; }
.card__num { font-family: var(--font-mono); font-weight: 400; font-size: 13px; color: var(--faint); }
.card__title { font-weight: 600; font-size: 21px; line-height: 1.25; }
.card__summary { font-size: 15px; line-height: 1.55; color: var(--muted); margin-top: 7px; }
.card__meta { display: flex; gap: 16px; align-items: center; }
.card__footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--row); }

.list { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.list__row { display: flex; align-items: center; gap: 18px; padding: 16px 22px; border-bottom: 1px solid var(--row); }
.list__row:last-child { border-bottom: 0; }

.institution-hero { padding-top: 44px; padding-bottom: 44px; display: grid !important; grid-template-columns: 96px minmax(0,1fr) auto; gap: 28px; align-items: start; }
.institution-hero__mark { width: 96px; height: 96px; border-radius: 6px; background: var(--ink); color: #F7FAFD; font-weight: 600; font-size: 30px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.institution-hero__mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.institution-hero__body { min-width: 0; }
.institution-hero__body .t-lede { max-width: 680px; }
.institution-hero__actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.org-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.org-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--field-border);
  border-radius: var(--radius-sm); background: var(--card); color: var(--ink-3); font-weight: 600; font-size: 14px; }
.organizer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.organizer-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.organizer-card:hover { border-color: var(--field-border); background: var(--surface); }
.organizer-card__mark { width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; overflow: hidden; }
.organizer-card__mark img { width: 100%; height: 100%; object-fit: cover; }
.organizer-card__role { display: block; font-family: var(--font-mono); font-weight: 600; font-size: 12px; line-height: 1.35; text-transform: uppercase; color: var(--faint); }
.organizer-card__name { display: block; margin-top: 2px; font-weight: 700; font-size: 18px; line-height: 1.2; color: var(--ink); }
.organizer-card__meta { display: block; margin-top: 3px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.people-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; max-width: 760px; }
.person-row { display: grid; grid-template-columns: minmax(130px, .36fr) minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--row); }
.person-row:last-child { border-bottom: 1px solid var(--row); }
.person-row__role { font-family: var(--font-mono); font-weight: 600; font-size: 12px; line-height: 1.35; text-transform: uppercase; color: var(--faint); }
.person-row__name { font-weight: 700; font-size: 18px; line-height: 1.25; color: var(--ink); }
.person-row__meta { margin-top: 3px; font-size: 15px; line-height: 1.45; color: var(--muted); }

/* ---- 9. Rail / aside (sticky panel) ----------------------------------- */
.rail { position: sticky; top: var(--sticky); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.rail--facets { padding: 22px; }

/* key-facts list (definition pairs in the detail rail) */
.key-facts { display: flex; flex-direction: column; }
.key-facts__row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--row); }
.key-facts__row:last-child { border-bottom: 0; }
.key-facts__k { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0; text-transform: uppercase; color: var(--faint); flex: none; }
.key-facts__v { font-weight: 500; font-size: 14px; color: var(--ink); text-align: right; }

/* timeline / calendar rows */
.cal-row { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--row); }
.cal-row__label { font-weight: 500; font-size: 16px; flex: 1; }
.cal-row__date { font-family: var(--font-mono); font-weight: 500; font-size: 14px; min-width: 120px; text-align: right; }

/* the call body card (detail) */
.call-card { background: var(--card); border: 1px solid var(--divider); border-radius: 5px; padding: 30px 32px; margin-top: 24px; }
.call-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--row);
  font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0; text-transform: uppercase; color: var(--faint); }
.call-card__head > svg { width: 14px; height: 14px; }
.call-card p { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin: 0 0 16px; }
.call-card h3 { font-weight: 600; font-size: 20px; line-height: 1.35; color: var(--ink); margin: 28px 0 10px; }

/* info strip (left-accent note) */
.note { background: var(--tint); border-left: 3px solid var(--link); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; }
.note__h { font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0; text-transform: uppercase; color: var(--link); margin-bottom: 6px; }
.note--error { border-left-color: var(--accent); background: #FFF7F2; }

/* ---- 10. Forms -------------------------------------------------------- */
.field { display: block; }
.field__label { font-weight: 600; font-size: 14px; margin-bottom: 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field__hint { font-family: var(--font-mono); font-weight: 400; font-size: 13px; color: var(--faint); }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: var(--accent); background: #FFF7F2; }
.field__error { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--accent); font-weight: 600; }
.field__help { display: block; margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--link); font-weight: 600; }
.word-count { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-top: 7px; }
.word-count__value, .word-count__message { font-family: var(--font-mono); font-weight: 500; font-size: 13px; line-height: 1.35; color: var(--muted); }
.word-count.is-over .word-count__value, .word-count.is-over .word-count__message { color: var(--accent); font-weight: 600; }
.form-actions { gap: 12px; }
.input, .textarea, .select {
  width: 100%; font-family: var(--font-sans); font-weight: 400; font-size: 15px; color: var(--ink);
  padding: 11px 14px; background: var(--bg); border: 1px solid var(--field-border); border-radius: var(--radius-sm); }
.input--mono { font-family: var(--font-mono); }
.textarea { line-height: 1.6; min-height: 90px; resize: vertical; }
.select { display: flex; align-items: center; justify-content: space-between; color: var(--ink); cursor: pointer; }
select.select { display: block; appearance: none; line-height: 1.4; }
.search-field { display: flex; align-items: center; gap: 7px; font-size: 15px; color: var(--faint);
  padding: 9px 12px; background: var(--bg); border: 1px solid var(--field-border); border-radius: var(--radius-sm); }
.search-field > svg { width: 14px; height: 14px; }
.search-bar { display: flex; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.search-bar__icon { padding: 0 16px; display: flex; align-items: center; color: var(--muted); }
.search-bar input { flex: 1; border: 0; outline: 0; font-size: 16px; padding: 15px 0; background: transparent; }

/* chips */
.chip { appearance: none; font-family: inherit; line-height: 1.2; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; padding: 8px 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--field-border); background: var(--card); color: var(--ink-3); cursor: pointer; }
.chip.is-selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip > svg { width: 12px; height: 12px; }
.chip--tag { background: var(--tint); border-color: transparent; color: var(--link); font-size: 13px; padding: 6px 12px; }
.chip--solid { background: var(--ink); color: #fff; border-color: var(--ink); font-size: 13px; padding: 6px 13px; }

/* checkbox row */
.check-row { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; cursor: pointer; }
.check-row.has-error { color: var(--accent); }
.check-row.has-error input { outline: 2px solid var(--accent); outline-offset: 2px; }
.checkbox { width: 15px; height: 15px; border: 1.5px solid var(--field-border); border-radius: var(--radius-sm);
  background: var(--card); flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.checkbox.is-on { background: var(--ink); border-color: var(--ink); }
.checkbox > svg { width: 10px; height: 10px; }

/* stepper */
.stepper { display: flex; gap: 8px; flex-wrap: wrap; }
.step { flex: 1; min-width: 120px; display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.step__num { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--field-border); background: var(--card);
  color: var(--faint); font-family: var(--font-mono); font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.step.is-done .step__num   { background: var(--ok); border-color: transparent; color: #fff; }
.step.is-active .step__num { background: var(--ink); border-color: transparent; color: #fff; }
.step__label { font-weight: 600; font-size: 14px; color: var(--faint); }
.step.is-active .step__label, .step.is-done .step__label { color: var(--ink); }

/* mode / channel choice card */
.choice { position: relative; display: block; cursor: pointer; border: 1.5px solid var(--border); background: var(--card); border-radius: 5px; padding: 24px; }
.choice--compact { padding: 18px; }
.choice.is-selected, .choice:has(.choice__input:checked) { border-color: var(--link); background: #F4F8FC; }
.choice:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.choice__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice__code { font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--link); }
.choice__radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--field-border); background: var(--card); flex: none; }
.choice.is-selected .choice__radio, .choice:has(.choice__input:checked) .choice__radio { border-color: var(--link); background: var(--link); box-shadow: inset 0 0 0 5px var(--card); }
.choice__title { font-weight: 600; font-size: 18px; line-height: 1.25; margin-top: 12px; }
.choice__copy { font-size: 15px; line-height: 1.55; color: var(--muted); margin-top: 7px; }
.license-grid { grid-template-columns: repeat(3,1fr); margin-top: 14px; }

/* channel-aware submit button (detail rail / card CTA) */
.submit-btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  font-weight: 600; font-size: 16px; padding: 13px; border: 0; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; cursor: pointer; }
.submit-btn > svg { width: 16px; height: 16px; }

/* success / status circle */
.status-circle { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.status-circle--ok   { background: var(--status-open-bg); color: var(--ok); }
.status-circle--mail { background: var(--tint); color: var(--link); }
.status-circle > svg { width: 30px; height: 30px; }

/* pipeline (editorial states) */
.pipeline { display: flex; align-items: center; gap: 0; }
.pipeline__step { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1; }
.pipeline__dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--field-border); }
.pipeline__dot.is-active { background: var(--accent); }
.pipeline__label { font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0; text-transform: uppercase; color: var(--faint); text-align: center; }
.pipeline__line { height: 2px; flex: 1; background: var(--divider); margin: 0 -4px 18px; }

/* ---- 11. Quick-filter pills + misc ------------------------------------ */
.pills { display: flex; flex-wrap: wrap; gap: 9px; }
.pill { font-weight: 500; font-size: 14px; padding: 8px 15px; border-radius: var(--pill); border: 1px solid var(--field-border); color: var(--ink-3); }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stat__n { font-weight: 600; font-size: 34px; line-height: 1; color: var(--ink); }
.stat__n--accent { color: var(--accent); }
.stat__label { font-weight: 500; font-size: 14px; color: var(--muted); margin-top: 8px; }

/* data table (dashboard) */
.dtable { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.dtable__head, .dtable__row { display: grid; grid-template-columns: 2.6fr 1.2fr 1.3fr 1fr .7fr .9fr; gap: 12px; align-items: center; }
.dtable__head { padding: 14px 22px; background: var(--bg); border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0; text-transform: uppercase; color: var(--faint); }
.dtable__row { padding: 18px 22px; border-bottom: 1px solid var(--row); }
.dtable__row:last-child { border-bottom: 0; }
.dtable__row strong { display: block; font-weight: 700; font-size: 15px; color: var(--ink); }
.dtable__row em { display: block; margin-top: 3px; font-style: normal; font-size: 13px; color: var(--muted); }
.dtable__row--empty { grid-template-columns: 1fr; color: var(--muted); }
.dtable__actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; font-weight: 500; font-size: 13px; color: var(--link); }
.dtable__actions button { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border-radius: var(--radius-sm); }

/* submissions review */
.review-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(420px,.68fr); gap: 20px; align-items: start; }
.organizer-access { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; margin-bottom: 24px; }
.dtable__head--submissions,
.dtable__row--submissions { grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: start; }
.dtable__row--submissions.is-selected { background: var(--surface); }
.submission-summary { min-width: 0; }
.submission-summary strong { max-width: 72ch; font-size: 16px; line-height: 1.3; }
.submission-summary em { margin-top: 5px; }
.submission-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 11px; font-family: var(--font-mono); font-size: 12px; line-height: 1.35; color: var(--muted); }
.submission-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 190px; }
.submission-actions .btn { min-height: 38px; }
.review-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: 92px; }
.review-panel[hidden] { display: none; }
.review-panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--row); }
.review-panel__section { padding: 16px 0; border-bottom: 1px solid var(--row); }
.review-panel__section h3 { margin: 0 0 8px; font-size: 14px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.review-panel__section p { font-size: 15px; line-height: 1.65; color: var(--ink-2); white-space: pre-wrap; }
.review-form { padding-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.author-line { padding: 10px 0; border-bottom: 1px solid var(--row); }
.author-line:last-child { border-bottom: 0; }
.author-line strong { display: block; color: var(--ink); font-size: 15px; }
.author-line span { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; }
.author-line p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.timeline__item {
  --timeline-bg: var(--state-neutral-bg);
  --timeline-fg: var(--state-neutral-fg);
  --timeline-border: var(--state-neutral-border);
  border: 1px solid var(--timeline-border);
  border-left: 4px solid var(--timeline-fg);
  border-radius: var(--radius);
  background: var(--timeline-bg);
  padding: 12px 14px;
}
.timeline__item--new { --timeline-bg: var(--state-new-bg); --timeline-fg: var(--state-new-fg); --timeline-border: var(--state-new-border); }
.timeline__item--review { --timeline-bg: var(--state-review-bg); --timeline-fg: var(--state-review-fg); --timeline-border: var(--state-review-border); }
.timeline__item--revision { --timeline-bg: var(--state-revision-bg); --timeline-fg: var(--state-revision-fg); --timeline-border: var(--state-revision-border); }
.timeline__item--accepted { --timeline-bg: var(--state-accepted-bg); --timeline-fg: var(--state-accepted-fg); --timeline-border: var(--state-accepted-border); }
.timeline__item--rejected { --timeline-bg: var(--state-rejected-bg); --timeline-fg: var(--state-rejected-fg); --timeline-border: var(--state-rejected-border); }
.timeline__item--message { --timeline-bg: var(--state-message-bg); --timeline-fg: var(--state-message-fg); --timeline-border: var(--state-message-border); }
.timeline__item--internal { --timeline-bg: var(--state-internal-bg); --timeline-fg: var(--state-internal-fg); --timeline-border: var(--state-internal-border); }
.timeline__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.timeline__tag, .timeline__date, .timeline__actor {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.35;
  color: var(--timeline-fg);
}
.timeline__tag { text-transform: uppercase; }
.timeline__date { font-weight: 500; opacity: .78; text-align: right; }
.timeline__actor { margin-top: 7px; opacity: .78; }
.timeline__title { font-weight: 700; font-size: 14px; line-height: 1.35; color: var(--timeline-fg); }
.timeline__item p { margin: 5px 0 0; font-size: 14px; line-height: 1.55; color: var(--timeline-fg); opacity: .9; white-space: pre-wrap; }

/* eyebrow + section heading helpers reused above */

/* ---- 12. Responsive --------------------------------------------------- */
@media (max-width: 900px) {
  .site-header__inner { height: auto; flex-wrap: wrap; row-gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .header-left { flex-wrap: wrap; gap: 12px 20px; }
  .header-right { flex-wrap: wrap; }
  .nav { flex-wrap: wrap; gap: 14px; }
  .site-header--nav .site-header__inner { height: var(--header-h); flex-wrap: nowrap; row-gap: 0; padding-top: 0; padding-bottom: 0; align-items: center; }
  .site-header--nav .header-left { flex-wrap: nowrap; gap: 0; min-width: 0; }
  .site-header--nav .nav, .site-header--nav .header-right { display: none; }
  .site-header--nav .workspace-badge { margin-left: 12px; }
  .site-header--nav .mobile-menu { display: block; margin-left: auto; }
  .institution-hero { grid-template-columns: 96px minmax(0,1fr); }
  .institution-hero__actions { grid-column: 2; align-items: flex-start; }
  .doc-grid, .split, .grid-3, .grid-4, .review-layout, .organizer-access { grid-template-columns: 1fr; }
  .rail { position: static; top: auto; }
  .review-panel { position: static; top: auto; }
  .hero-row { flex-wrap: wrap; }
}
@media (max-width: 1100px) {
  .review-layout { grid-template-columns: 1fr; }
  .review-panel { position: static; top: auto; }
}
@media (max-width: 700px) {
  .dtable__head { display: none; }
  .dtable__row { grid-template-columns: 1fr; gap: 6px; align-items: start; padding: 16px 18px; }
  .dtable__row--submissions { gap: 12px; }
  .submission-actions { justify-content: flex-start; min-width: 0; flex-wrap: wrap; }
  .dtable__actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .site-header__inner { align-items: flex-start; }
  .header-left, .header-right { width: 100%; justify-content: space-between; }
  .site-header--nav .site-header__inner { align-items: center; }
  .site-header--nav .header-left { width: auto; }
  .mobile-menu__panel { right: 0; }
  .nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .nav a { flex: none; min-height: 32px; display: inline-flex; align-items: center; }
  .icon-btn { width: 44px; height: 44px; }
  .grid-2 { grid-template-columns: 1fr; }
  .t-hero { font-size: 34px; }
  .t-h1, .t-h1--lg { font-size: 28px; }
  .page { padding: 28px var(--gutter) 64px; }
  .search-bar { flex-wrap: wrap; }
  .search-bar__icon { padding: 0 12px; }
  .search-bar input { min-width: 0; padding: 13px 0; }
  .search-bar .btn { width: 100%; border-radius: 0; }
  .card { padding: 18px; }
  .card__footer { flex-direction: column; align-items: stretch; gap: 12px; }
  .card__meta { flex-wrap: wrap; gap: 8px 12px; }
  .card__footer .submit-btn { width: 100% !important; }
  .organizer-list { grid-template-columns: 1fr; }
  .person-row { grid-template-columns: 1fr; gap: 4px; }
  .list__row { flex-wrap: wrap; align-items: flex-start; gap: 10px 12px; }
  .list__row > .t-meta { width: auto !important; text-align: left !important; }
  .cal-row { flex-wrap: wrap; align-items: flex-start; }
  .cal-row__date { min-width: 0; text-align: left; }
  .key-facts__row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .key-facts__v { text-align: left; }
  .btn-row { width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }
  .form-actions { flex-direction: column; align-items: stretch !important; }
  .form-actions > .btn { width: 100%; }
  .institution-hero { grid-template-columns: 72px minmax(0,1fr); gap: 18px; padding-top: 32px; padding-bottom: 32px; }
  .institution-hero__mark { width: 72px; height: 72px; font-size: 24px; }
  .institution-hero__actions { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 480px) {
  .institution-hero { grid-template-columns: 1fr; }
  .institution-hero__body .t-lede { max-width: none; }
}

/* ---- 13. Self-host fonts (uncomment for production; drop woff2 in /assets/fonts/) ----
@font-face { font-family:'Source Sans 3'; font-weight:400 800; font-display:swap; src:url('assets/fonts/source-sans-3.woff2') format('woff2'); }
@font-face { font-family:'IBM Plex Mono'; font-weight:400 600; font-display:swap; src:url('assets/fonts/ibm-plex-mono.woff2') format('woff2'); }
------------------------------------------------------------------------------------- */

/* ---- 14. Organizer queue (submissions.html) ---- */
.queue-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.queue-filters[hidden] { display: none; }
.queue-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--field-border);
  background: var(--card); border-radius: var(--pill); font-family: inherit; font-weight: 600; font-size: 14px; color: var(--ink-3); cursor: pointer; }
.queue-chip span { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.queue-chip:hover { border-color: var(--ink-3); }
.queue-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.queue-chip.is-active span { color: rgba(255,255,255,.7); }

.queue { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.qrow { display: grid; grid-template-columns: 14px 1fr auto auto 18px; align-items: center; gap: 16px;
  padding: 16px 18px; border-bottom: 1px solid var(--border); color: var(--ink); }
.qrow:last-child { border-bottom: 0; }
.qrow:hover { background: var(--surface); }
.queue-flag { width: 8px; height: 8px; border-radius: 50%; background: var(--accent, #C8472E); }
.queue-flag--off { background: transparent; }
.qrow__main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.qrow__title { font-weight: 700; font-size: 16px; color: var(--ink); }
.qrow__sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow__date { font-size: 13px; color: var(--faint); white-space: nowrap; }
.qrow__chev { width: 16px; height: 16px; color: var(--faint); }
.queue-empty { padding: 28px 18px; color: var(--muted); font-size: 15px; }

/* ---- 15. Proposal record (proposal.html) ---- */
.record-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.record-nav__pager { display: flex; align-items: center; gap: 12px; }
.record__head { padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.record__grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 32px; align-items: start; }
.record__main { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.record__side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: var(--sticky, 84px); }
.record__section { }
.record__h { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.record__prose { font-size: 16px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; margin: 0; }
.record__meta-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.record__facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; }
.record__facts dt { font-size: 13px; color: var(--faint); }
.record__facts dd { font-size: 13px; color: var(--ink); margin: 0; word-break: break-word; text-align: right; }
.record__form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.author-line__tag { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--link); }
.author-line__email { font-size: 13px; color: var(--muted); }
@media (max-width: 880px) {
  .record__grid { grid-template-columns: 1fr; }
  .record__side { position: static; }
}

/* ---- 16. Dashboard ---- */
.dash-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.dash-grid .card { padding: 22px; }
.prio { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px; border-radius: var(--radius-sm); color: var(--ink); }
.prio + .prio { border-top: 1px solid var(--border); }
.prio:hover { background: var(--surface); }
.prio__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prio__title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prio__sub { font-size: 12.5px; color: var(--muted); }
@media (max-width: 880px) { .dash-grid { grid-template-columns: 1fr; } }

/* Status distribution — proportional bars using the workflow tokens */
.sbar { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.sbar__row { display: grid; grid-template-columns: 112px 1fr 26px; align-items: center; gap: 12px; }
.sbar__label { font-size: 14px; color: var(--ink-2); }
.sbar__track { height: 22px; background: var(--row); border-radius: var(--radius-sm); overflow: hidden; }
.sbar__fill { display: block; height: 100%; border-radius: var(--radius-sm); }
.sbar__n { font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--ink); text-align: right; }
.sbar__row--zero .sbar__label, .sbar__row--zero .sbar__n { color: var(--faint); }

/* Clamp runaway proposal titles (e.g. an abstract pasted into the title) */
.qrow__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Rich-text editor (publish form) */
.rte { border: 1px solid var(--field-border); border-radius: var(--radius-sm); background: var(--bg); overflow: hidden; }
.rte__toolbar { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--border); background: var(--surface); }
.rte__btn { min-width: 32px; height: 30px; padding: 0 9px; border: 1px solid transparent; border-radius: var(--radius-sm); background: none; cursor: pointer; font-size: 14px; font-family: inherit; color: var(--ink-2); }
.rte__btn:hover { background: var(--tint); }
.rte__area { min-height: 200px; padding: 14px 16px; outline: none; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.rte__area:focus { box-shadow: inset 0 0 0 2px var(--link); }
.rte__area:empty::before { content: attr(data-placeholder); color: var(--faint); }
.rte__area p { margin: 0 0 12px; }
.rte__area h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 16px 0 6px; }
.rte__area ul, .rte__area ol { margin: 0 0 12px; padding-left: 22px; }
.rte__area a { color: var(--link); text-decoration: underline; }
.file-input { font-size: 14px; color: var(--ink-2); }

/* Domaine multi-select chips (publish form) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--field-border); border-radius: var(--pill); font-size: 14px; cursor: pointer; background: var(--card); color: var(--ink-2); }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip:hover { border-color: var(--ink-3); }
.chip:has(input:checked) { border-color: var(--ink); background: var(--tint); color: var(--ink); font-weight: 600; }
.call-domaines { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.call-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Free-tag input (disciplines, keywords) */
.taginput { border: 1px solid var(--field-border); border-radius: var(--radius-sm); background: var(--bg); padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.taginput__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.taginput__chips:empty { display: none; }
.taginput .input { border: 0; background: transparent; padding: 4px 6px; }
.taginput .input:focus { box-shadow: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--pill); background: var(--tint); font-size: 13.5px; color: var(--ink-2); }
.tag button { border: 0; background: none; cursor: pointer; font-size: 15px; line-height: 1; color: var(--faint); padding: 0; }
.tag button:hover { color: var(--ink); }

/* Restore a chevron on native selects (publish form v2) */
.select { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352525B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }

/* Searchable combobox (Type, Fonction) */
.combo { position: relative; }
.combo__field { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 14px; background: var(--bg); border: 1px solid var(--field-border); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.combo__field:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.combo__value.is-placeholder { color: var(--faint); }
.combo__chev { width: 16px; height: 16px; color: var(--muted); flex: none; }
.combo__pop { position: absolute; z-index: 50; top: calc(100% + 4px); left: 0; right: 0; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 12px 28px rgba(9,9,11,.12); padding: 8px; }
.combo__search { width: 100%; padding: 8px 10px; border: 1px solid var(--field-border); border-radius: var(--radius-sm); font: inherit; margin-bottom: 6px; }
.combo__list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow: auto; }
.combo__list li { padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; font-size: 15px; }
.combo__list li:hover, .combo__list li.is-active { background: var(--tint); }
.combo__list li.is-sel { font-weight: 600; }
.combo__list li.is-empty { color: var(--faint); cursor: default; }

/* Form validation states */
.field--invalid .input, .field--invalid .select, .field--invalid .combo__field,
.field--invalid .taginput, .field--invalid .rte, .field--invalid .chips { border-color: var(--accent); }
.field__err { display: block; font-size: 13px; color: var(--accent); margin-top: 5px; }
.row--invalid { border-color: var(--accent) !important; }
.is-locked { opacity: .5; pointer-events: none; user-select: none; filter: grayscale(.3); }
.form-summary { border: 1px solid var(--state-rejected-border); background: var(--state-rejected-bg);
  color: var(--state-rejected-fg); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.form-summary__h { font-weight: 700; font-size: 15px; }
.form-summary ul { margin: 8px 0 0; padding-left: 20px; font-size: 14px; }
.pub fieldset legend .req { color: var(--accent); font-weight: 700; }
.pub .hint .kbd { font-family: var(--font-mono); font-size: 12px; background: var(--tint); padding: 1px 5px; border-radius: 4px; }

/* Login / signup tab toggle */
.auth-tabs { display: flex; gap: 4px; padding: 4px; background: var(--row); border: 1px solid var(--field-border); border-radius: 10px; }
.auth-tab { flex: 1; appearance: none; border: 0; background: transparent; border-radius: 7px; padding: 9px 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .12s ease, color .12s ease; }
.auth-tab.is-active { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.07); }
.auth-tab:hover:not(.is-active) { color: var(--ink-2); }
