/* Mindsef components. Tokens in tokens.css; one block per component, in this order:
   base, shell, sidebar, tabbar, page head, buttons, forms, cards, badges, tabs, chips, table, rows, empty state,
   banners, metrics, checklist, settings, thread (the draft bubble), inbox, chat, utilities.
   Button variants and sizes follow Chatwoot's components-next/button naming (MIT). */

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-subtle); color: var(--text-default); font: var(--fw-regular) var(--fs-base)/var(--lh-base) var(--font);
  letter-spacing: var(--tracking); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 0; accent-color: var(--brand); }
::selection { background: color-mix(in srgb, var(--brand) 22%, transparent); }
/* C9, C20: the app is dense like the cockpit (11 to 13.5 px text, 24 to 26 px page titles); the site keeps its sizes */
body.app { --fs-xs: 11px; --fs-sm: 12px; --fs-base: 13.5px; --fs-md: 15px; --fs-lg: 16px; --fs-xl: 25px; --fs-2xl: 28px; }
body.app h1 { font-weight: var(--fw-bold); } body.app h2, body.app h3, body.app h4 { font-weight: var(--fw-medium); }
h1, h2, h3, h4 { margin: 0; line-height: var(--lh-tight); font-weight: var(--fw-black); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-xl); } h2 { font-size: var(--fs-lg); } h3 { font-size: var(--fs-md); } h4 { font-size: var(--fs-base); }
p { margin: 0; }
a { color: var(--brand-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-emphasis); }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }   /* judge lot 1: a component's display must never show a hidden element */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--bg-default); padding: var(--s-2) var(--s-3); }
.skip:focus { left: 8px; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; } .icon.lg { width: 24px; height: 24px; }
.muted { color: var(--text-muted); } .subtle { color: var(--text-subtle); }
.small { font-size: var(--fs-sm); } .xsmall { font-size: var(--fs-xs); }
.strong { font-weight: var(--fw-bold); }

/* ---------- shell: sidebar on a computer, tab bar on a phone, one HTML */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.page { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: var(--s-6) var(--s-8) var(--s-12); display: flex; flex-direction: column; gap: var(--s-6); }
.page.wide { max-width: none; padding: 0; gap: 0; flex: 1; }
.page.narrow { max-width: 760px; }

/* ---------- sidebar */
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4) var(--s-3);
  background: var(--bg-default); border-right: 1px solid var(--border-subtle); }
.brand { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-1) var(--s-2) var(--s-4); color: var(--text-default);
  text-decoration: none; font-weight: var(--fw-black); font-size: var(--fs-md); letter-spacing: -0.02em; }
/* The logo (ui/logo.html): two files, one shown. The name is night blue on a light page, white on a dark one (C18). */
.logo { display: block; flex: none; width: auto; height: 28px; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.logo-mark { display: block; flex: none; height: auto; }   /* the symbol alone (ui/logo_mark.html), never stretched */
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: var(--s-3); padding: 7px var(--s-3); border-radius: var(--r-md); color: var(--text-subtle);
  text-decoration: none; font-weight: var(--fw-medium); font-size: var(--fs-base); }
.nav a:hover { background: var(--bg-subtle); color: var(--text-default); }
.nav a[aria-current="page"] { background: var(--brand-subtle); color: var(--brand-text); }
.nav .count { margin-left: auto; min-width: 22px; padding: 0 7px; border-radius: var(--r-full); background: var(--attention-strong); color: var(--text-default);
  font-size: var(--fs-xs); font-weight: var(--fw-bold); text-align: center; line-height: 20px; }
.nav-group { margin-top: var(--s-4); padding: 0 var(--s-3) var(--s-1); font-size: var(--fs-xs); color: var(--text-muted); font-weight: var(--fw-medium); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--s-3); }
.gauge { padding: var(--s-3); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 6px; }
.gauge-bar { height: 6px; border-radius: var(--r-full); background: var(--bg-muted); overflow: hidden; }
.gauge-bar span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.gauge-line { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-subtle); }
.gauge-bar + .gauge-line { margin-top: 4px; }
.gauge-bar.orange span { background: var(--attention-strong); }     /* B273, B152: 80 % of the ceiling */
.gauge-bar.red span { background: var(--error); }                   /* the ceiling reached */
.gauge-link { margin-top: 2px; font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--brand-text); text-decoration: none; }
.gauge-link:hover { text-decoration: underline; }
.account-menu { position: relative; }
.account-menu > summary { list-style: none; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2); border-radius: var(--r-md); cursor: pointer; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary:hover { background: var(--bg-subtle); }
.account-menu .who { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.account-menu .who b { font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-menu .who span { font-size: var(--fs-xs); color: var(--text-muted); }
.menu { position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; z-index: 30; padding: var(--s-1); background: var(--bg-default);
  border: 1px solid var(--border-default); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; }
.menu a, .menu button { display: flex; align-items: center; gap: var(--s-2); width: 100%; padding: var(--s-2) var(--s-3); border: 0; background: none;
  border-radius: var(--r-sm); color: var(--text-default); text-decoration: none; font-size: var(--fs-sm); font-weight: var(--fw-medium); cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--bg-subtle); }
.menu hr { border: 0; border-top: 1px solid var(--border-subtle); margin: var(--s-1) 0; }
.avatar { flex: none; width: 32px; height: 32px; border-radius: var(--r-full); display: grid; place-items: center; font-size: var(--fs-xs);
  font-weight: var(--fw-black); color: var(--brand-text); background: var(--brand-subtle); }
.avatar.lg { width: 44px; height: 44px; font-size: var(--fs-sm); }
img.avatar { object-fit: cover; }                /* B409: a candidate's LinkedIn photo */

/* ---------- top bar and tab bar (phone) */
.topbar { display: none; }
.tabbar { display: none; }
@media (max-width: 1023px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; padding: var(--s-2) var(--s-4);
    background: var(--bg-default); border-bottom: 1px solid var(--border-subtle); }
  .topbar .brand { padding: 0; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--bg-default); border-top: 1px solid var(--border-subtle); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--text-muted);
    text-decoration: none; font-size: 11px; font-weight: var(--fw-medium); }
  .tabbar a[aria-current="page"] { color: var(--brand-text); }
  .tabbar .count { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; padding: 0 5px; border-radius: var(--r-full);
    background: var(--attention-strong); color: var(--text-default); font-size: 11px; font-weight: var(--fw-bold); line-height: 18px; text-align: center; }
  .page { padding: var(--s-4) var(--s-4) calc(88px + env(safe-area-inset-bottom)); gap: var(--s-4); }
  .page.wide { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ---------- page head */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.page-head .titles { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; }
.page-sub { color: var(--text-subtle); max-width: 68ch; }
.page-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--fs-sm); color: var(--text-subtle); text-decoration: none; font-weight: var(--fw-medium); }

/* ---------- buttons: primary, secondary, outline, ghost, danger; sm, md, lg */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-4); border-radius: var(--r-md);
  border: 1px solid transparent; font-weight: var(--fw-bold); font-size: var(--fs-base); text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--bg-default); color: var(--text-default); transition: background-color .12s ease, border-color .12s ease; }
.btn.primary { background: var(--brand); color: var(--text-inverted); }
.btn.primary:hover { background: var(--brand-emphasis); color: var(--text-inverted); }
.btn.secondary { background: var(--brand-subtle); color: var(--brand-text); }
.btn.secondary:hover { background: #D2EAE8; }
.btn.outline { border-color: var(--border-default); }
.btn.outline:hover { border-color: var(--border-strong); color: var(--text-default); }
.btn.ghost { background: transparent; color: var(--text-subtle); }
.btn.ghost:hover { background: var(--bg-muted); color: var(--text-default); }
.btn.danger { background: var(--error); color: var(--text-inverted); }
.btn.danger:hover { background: #911B12; color: var(--text-inverted); }
.btn.danger-outline { border-color: #F1B8B2; color: var(--error); }
.btn.sm { min-height: 32px; padding: 0 var(--s-3); font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn.lg { min-height: 48px; padding: 0 var(--s-6); font-size: var(--fs-md); }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn.icon-only { width: 44px; min-height: 44px; padding: 0; background: transparent; color: var(--text-subtle); border-radius: var(--r-full); }
.btn.icon-only:hover { background: var(--bg-muted); color: var(--text-default); }
.btn.icon-only .icon { width: 20px; height: 20px; }
/* C18: the light / dark button shows the theme it switches to */
.theme-toggle .theme-sun, .theme-toggle[data-now="dark"] .theme-moon { display: none; }
.theme-toggle[data-now="dark"] .theme-sun { display: block; }
button.row { width: 100%; border: 0; border-bottom: 1px solid var(--border-subtle); background: none; color: inherit; cursor: pointer; text-align: left; }
.row.theme-toggle .icon { width: 20px; height: 20px; }
.row.theme-toggle [data-theme-label] { font-weight: var(--fw-bold); }
.link-btn { border: 0; background: none; padding: 0; color: var(--brand-text); font-weight: var(--fw-bold); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-default); }
.hint { font-size: var(--fs-sm); color: var(--text-muted); }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=url],
.field input[type=search], .field input[type=tel], .field input[type=time], .field input[type=date], .field select, .field textarea, textarea.input {
  width: 100%; min-height: 44px; padding: 9px var(--s-3); border: 1px solid var(--border-default); border-radius: var(--r-md); background: var(--bg-default);
  color: var(--text-default); font-size: var(--fs-base); }
.field textarea, textarea.input { min-height: 84px; resize: vertical; line-height: var(--lh-base); field-sizing: content; max-height: 360px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.field.error input, .field.error textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: var(--fs-sm); }
.check { display: flex; align-items: flex-start; gap: var(--s-3); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.switch { position: relative; display: inline-flex; flex: none; width: 42px; height: 24px; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.switch span { width: 100%; height: 100%; border-radius: var(--r-full); background: var(--border-strong); transition: background .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: var(--focus); }
.segmented { display: inline-flex; padding: 3px; border-radius: var(--r-md); background: var(--bg-muted); gap: 2px; flex-wrap: wrap; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; padding: 6px var(--s-3); border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-subtle); }
.segmented input:checked + span { background: var(--bg-default); color: var(--text-default); box-shadow: var(--shadow-raise); }
.segmented input:focus-visible + span { box-shadow: var(--focus); }
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-3); }
.choice-card { position: relative; display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-4); border: 1px solid var(--border-default);
  border-radius: var(--r-lg); background: var(--bg-default); cursor: pointer; }
.choice-card input { position: absolute; top: var(--s-4); right: var(--s-4); accent-color: var(--brand); width: 18px; height: 18px; }
.choice-card:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.choice-card b { padding-right: var(--s-8); }
.choice-card input[type=radio] { min-height: 0; }   /* judge app-4, defect 41: beside its title on a phone too, never on its text (a .field's 44 px is the card's) */
.form-actions { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.errors { margin: 0; padding: var(--s-3) var(--s-4); list-style: none; border-radius: var(--r-md); background: var(--error-subtle); color: var(--error); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.notice { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--success-subtle); color: var(--success); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
/* B415: a form of the team's common settings, read by a salesperson: nothing typed, no button (review 11/11, defect 5) */
fieldset.read-only { display: contents; }
fieldset.read-only button, fieldset.read-only .form-actions, fieldset.read-only .save-bar,
fieldset.read-only details:has(> form) { display: none; }

/* ---------- cards */
.card { background: var(--bg-default); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.card.flush { padding: 0; gap: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.card-head h2, .card-head h3 { font-size: var(--fs-md); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px var(--s-2); border-radius: var(--r-full); font-size: var(--fs-xs); font-weight: var(--fw-bold);
  white-space: nowrap; background: var(--bg-muted); color: var(--text-subtle); }
.badge.brand { background: var(--brand-subtle); color: var(--brand-text); }
.badge.success { background: var(--success-subtle); color: var(--success); }
.badge.attention { background: var(--attention-subtle); color: var(--attention); }
.badge.error { background: var(--error-subtle); color: var(--error); }
.badge.info { background: var(--info-subtle); color: var(--info); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- tabs (URL-driven) */
.tabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--border-subtle); overflow-x: auto; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: var(--s-2) var(--s-3); margin-bottom: -1px; border-bottom: 2px solid transparent;
  color: var(--text-subtle); text-decoration: none; font-weight: var(--fw-bold); font-size: var(--fs-sm); white-space: nowrap; }
.tabs a:hover { color: var(--text-default); }
.tabs a[aria-current="page"] { color: var(--brand-text); border-bottom-color: var(--brand); }
.tabs .n { font-size: var(--fs-xs); color: var(--text-muted); font-weight: var(--fw-medium); }

/* ---------- chips and filter bar */
.filter-bar { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 240px; max-width: 360px; }
.search .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 18px; height: 18px; }
.search input { width: 100%; min-height: 38px; padding: 8px var(--s-3) 8px 36px; border: 1px solid var(--border-default); border-radius: var(--r-md); background: var(--bg-default); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 var(--s-3); border: 1px dashed var(--border-strong);
  border-radius: var(--r-full); background: var(--bg-default); color: var(--text-subtle); font-size: var(--fs-sm); font-weight: var(--fw-bold); text-decoration: none; cursor: pointer; }
.chip.on { border-style: solid; border-color: var(--brand); background: var(--brand-subtle); color: var(--brand-text); }
.chip select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip:focus-within { box-shadow: var(--focus); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 var(--s-3); border: 1px solid var(--border-default); border-radius: var(--r-full);
  background: var(--bg-default); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-subtle); }
.pick input:checked + span { border-color: var(--brand); background: var(--brand-subtle); color: var(--brand-text); }
.pick input:focus-visible + span { box-shadow: var(--focus); }

/* ---------- table */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: left; padding: var(--s-2) var(--s-4); color: var(--text-muted); font-weight: var(--fw-bold); font-size: var(--fs-xs);
  border-bottom: 1px solid var(--border-subtle); background: var(--bg-subtle); white-space: nowrap; }
.table th a { color: inherit; text-decoration: none; }
.table td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: color-mix(in srgb, var(--bg-subtle) 60%, var(--bg-default)); }   /* light and dark */
.table .person { display: flex; align-items: center; gap: var(--s-3); min-width: 180px; }
.table .person a { color: var(--text-default); text-decoration: none; font-weight: var(--fw-bold); }
.table .person a::after { content: ""; position: absolute; inset: 0; }
.table tr { position: relative; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: var(--s-3) var(--s-4); font-size: var(--fs-sm); color: var(--text-subtle); }

/* ---------- list rows (inbox list, settings, activity) */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border-subtle); text-decoration: none; color: inherit; }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .line1 { display: flex; align-items: baseline; gap: var(--s-2); justify-content: space-between; }
.row .line1 b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .line2 { font-size: var(--fs-sm); color: var(--text-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.row:hover { background: var(--bg-subtle); }

/* ---------- empty state (Cal.com EmptyScreen structure) */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-3); padding: var(--s-10) var(--s-6); }
.empty .empty-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-full); background: var(--brand-subtle); color: var(--brand-text); }
.empty p { color: var(--text-subtle); max-width: 46ch; }

/* ---------- banners */
.banner { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-8); font-size: var(--fs-sm); font-weight: var(--fw-medium); flex-wrap: wrap; }
.banner.attention { background: var(--attention-subtle); color: var(--attention); }
.banner.error { background: var(--error-subtle); color: var(--error); }
.banner.info { background: var(--info-subtle); color: var(--info); }
.banner .btn { margin-left: auto; }
@media (max-width: 1023px) { .banner { padding: var(--s-3) var(--s-4); } }

/* ---------- metrics: a number never alone (rule 7): value, its yardstick, its advice */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
@media (max-width: 860px) { .metrics { grid-template-columns: minmax(0, 1fr); } }
.metric { background: var(--bg-default); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-1); text-decoration: none; color: inherit; }
.metric .label { font-size: var(--fs-sm); color: var(--text-subtle); font-weight: var(--fw-medium); }
.metric .value { font-size: var(--fs-xl); font-weight: var(--fw-black); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.metric .yard { font-size: var(--fs-sm); color: var(--text-subtle); }
.metric .advice { font-size: var(--fs-sm); color: var(--brand-text); font-weight: var(--fw-medium); }
.level { display: inline-flex; gap: 3px; vertical-align: middle; }
.level i { width: 14px; height: 6px; border-radius: 2px; background: var(--bg-emphasis); }
.level i.on { background: var(--brand); }
.funnel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.funnel > div { padding: var(--s-4); border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 2px; }
.funnel > div:last-child { border-right: 0; }
.funnel .value { font-size: var(--fs-lg); font-weight: var(--fw-black); font-variant-numeric: tabular-nums; }
.funnel .rate { font-size: var(--fs-xs); color: var(--brand-text); font-weight: var(--fw-bold); }
@media (max-width: 860px) { .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .funnel > div { border-bottom: 1px solid var(--border-subtle); } }
/* A1: one measured figure ({% chiffre %}), the same block on the site, the sign-up and the app: value, what it says,
   base and date, one under the other. Here and not in site.css: /bienvenue (layouts/auth.html) never loads site.css. */
.fact { border-top: 2px solid var(--brand); padding-top: var(--s-3); display: flex; flex-direction: column; gap: var(--s-1); }
.fact .value { font-size: var(--fs-xl); font-weight: var(--fw-black); font-variant-numeric: tabular-nums; }
.fact .src { font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------- checklist (getting started, never blocking) */
.checklist { display: flex; flex-direction: column; }
.checklist a, .checklist div.item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--border-subtle); color: inherit; text-decoration: none; }
.checklist > :last-child { border-bottom: 0; }
.tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; }
.done .tick { border-color: var(--brand); background: var(--brand); color: #fff; }
.checklist .done .what { color: var(--text-muted); text-decoration: line-through; }
.progress { height: 6px; border-radius: var(--r-full); background: var(--bg-muted); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); }

/* ---------- settings (rule 10 and Linear: label, description, control on the right) */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.settings-nav { position: sticky; top: var(--s-6); display: flex; flex-direction: column; gap: 2px; }
.settings-nav .nav-group { margin-top: var(--s-3); padding-left: var(--s-3); }
.settings-nav a { padding: 6px var(--s-3); border-radius: var(--r-md); color: var(--text-subtle); text-decoration: none; font-weight: var(--fw-medium); font-size: var(--fs-sm); }
.settings-nav a:hover { background: var(--bg-muted); color: var(--text-default); }
.settings-nav a[aria-current="page"] { background: var(--bg-default); color: var(--text-default); font-weight: var(--fw-bold); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.settings-body { display: flex; flex-direction: column; gap: var(--s-6); min-width: 0; max-width: 760px; }
.section { display: flex; flex-direction: column; gap: var(--s-3); }
.section > header { display: flex; flex-direction: column; gap: 2px; }
.section > header p { color: var(--text-subtle); font-size: var(--fs-sm); }
.setting { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border-subtle); }
.setting:last-child { border-bottom: 0; }
.setting .what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.setting .what b { font-size: var(--fs-base); }
.setting .what span { font-size: var(--fs-sm); color: var(--text-subtle); }
.setting.stack { flex-direction: column; align-items: stretch; gap: var(--s-3); }
/* judge app-1, defect 21 (B411, nothing drafty): Réglages > Statuts, every name field one width on one edge; the tags
   at their own size, side by side */
.stage-row .what { flex: 1; gap: var(--s-1); }
.stage-row .what .input { width: 100%; max-width: 360px; }
.stage-row > .inline { flex: none; }
.stage-row.is-off .what .input { color: var(--text-subtle); }                   /* B368: a status switched off */
.stage-row .drag-handle { cursor: grab; color: var(--text-subtle); align-self: center; }
/* B155, B157, B368: one width for every control on the right of a setting (Prise de RDV, Statuts et étiquettes); B156:
   the agenda's state and its buttons on one line */
.fixed-controls .setting > .input, .fixed-controls .setting > .inline { flex: 0 0 340px; }
.fixed-controls .setting > .inline .input { flex: 1; min-width: 0; }
.stage-row .stage-tools { flex: 0 0 340px; display: flex; flex-direction: column; gap: var(--s-1); }   /* B368 */
.setting > .inline.actions { flex: none; flex-wrap: nowrap; }
.tag-row .tag-name { flex: 1; min-width: 0; }
.tag-row > .inline { flex: none; flex-wrap: nowrap; }
.tag-row > .inline .input[type="text"] { width: 220px; }
@media (max-width: 1023px) {
  .fixed-controls .setting > .input, .fixed-controls .setting > .inline, .stage-row .stage-tools { flex: none; width: 100%; }
  .tag-row > .inline { flex-wrap: wrap; width: 100%; }
  .tag-row > .inline .input[type="text"] { width: 100%; }
}
.tag-cloud { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.tag-cloud .badge .num { margin-left: 2px; opacity: .75; }
.danger-zone { border-color: #F1C9C4; }
.danger-zone .card-head h2 { color: var(--error); }
@media (max-width: 1023px) {
  .settings { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: var(--s-1); padding-bottom: var(--s-1); }
  .settings-nav .nav-group { display: none; }
  .settings-nav a { white-space: nowrap; border: 1px solid var(--border-subtle); background: var(--bg-default); }
  .setting { flex-direction: column; align-items: flex-start; gap: var(--s-3); padding: var(--s-4); }
  .settings-body .card:not(.flush) { padding: var(--s-4); }      /* judge app-1, 20: every card's text on the rows' edge */
  .stage-row .what { align-self: stretch; }
}

/* ---------- thread. The signature: a draft waiting for you is a dashed bubble; once sent it turns solid. */
.thread { display: flex; flex-direction: column; gap: var(--s-2); }
.msg { max-width: min(560px, 82%); padding: var(--s-2) var(--s-3); border-radius: var(--r-xl); font-size: var(--fs-base); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.them { align-self: flex-start; background: var(--bg-default); border: 1px solid var(--border-subtle); border-bottom-left-radius: var(--r-xs); }
.msg.us { align-self: flex-end; background: var(--bg-inverted); color: var(--text-inverted); border-bottom-right-radius: var(--r-xs); }
.msg.draft { align-self: flex-end; background: var(--bg-default); color: var(--text-default); border: 2px dashed var(--brand); border-bottom-right-radius: var(--r-xs); }
.msg .meta { display: block; margin-top: 2px; font-size: var(--fs-xs); opacity: .7; white-space: normal; }
.msg.voice { font-style: italic; }
.msg.voice .meta { font-style: normal; }
.event-line { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 2px var(--s-3); font-size: var(--fs-xs); color: var(--text-muted); }
.day-line { align-self: center; font-size: var(--fs-xs); color: var(--text-muted); font-weight: var(--fw-bold); padding: var(--s-2) 0; }

/* ---------- inbox, 3 columns on a computer; one column chosen by the URL on a phone */
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr) 320px; height: calc(100vh - var(--banner-h, 0px)); min-height: 560px; }
.inbox > section { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--border-subtle); background: var(--bg-default); }
.inbox > section:last-child { border-right: 0; }
.inbox .col-head { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4) var(--s-4) 0; border-bottom: 1px solid var(--border-subtle); }
.inbox .col-head .tabs { border-bottom: 0; margin: 0 calc(-1 * var(--s-2)); }
.inbox .col-scroll { flex: 1; overflow-y: auto; }
.inbox .conv { background: var(--bg-subtle); }
.inbox .conv-head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-5); background: var(--bg-default); border-bottom: 1px solid var(--border-subtle); flex-wrap: wrap; }
.inbox .conv-head .grow { flex: 1; min-width: 0; }
.inbox .conv-body { flex: 1; overflow-y: auto; padding: var(--s-5); }
.inbox .composer { padding: var(--s-4) var(--s-5); background: var(--bg-default); border-top: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: var(--s-3); }
.inbox .side { background: var(--bg-default); }
.inbox .side .col-scroll { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-5); }
.inbox .row[aria-current="true"] { background: var(--brand-subtle); }
.inbox .row .unread { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.context { display: flex; flex-direction: column; gap: 4px; padding: var(--s-3); border-radius: var(--r-md); background: var(--bg-subtle); font-size: var(--fs-sm); }
.context q { color: var(--text-subtle); }
.draft-box { border: 2px dashed var(--brand); border-radius: var(--r-lg); background: var(--bg-default); }
.draft-box textarea { display: block; width: 100%; min-height: 96px; border: 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); resize: vertical; field-sizing: content; max-height: 320px; background: transparent; }
.draft-box textarea:focus { outline: none; }
.draft-box .draft-actions { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); border-top: 1px dashed var(--border-default); flex-wrap: wrap; }
.draft-box .draft-actions .spacer { flex: 1; }
.yours { display: flex; gap: var(--s-2); align-items: flex-start; padding: var(--s-3); border-radius: var(--r-md); background: var(--attention-subtle); color: var(--attention); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-2) var(--s-4); font-size: var(--fs-sm); margin: 0; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; font-weight: var(--fw-medium); overflow-wrap: anywhere; }
.status-menu { position: relative; }
.status-menu > summary { list-style: none; cursor: pointer; }
.status-menu > summary::-webkit-details-marker { display: none; }
.status-menu .menu { top: calc(100% + 4px); bottom: auto; left: auto; right: 0; min-width: 200px; }
@media (max-width: 1279px) { .inbox { grid-template-columns: 320px minmax(0, 1fr); } .inbox .side { display: none; } .inbox.show-side .side { display: flex; } }
@media (max-width: 1023px) {
  .inbox { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .inbox > section { border-right: 0; }
  .inbox:not(.has-conv) .conv, .inbox.has-conv .list, .inbox .side { display: none; }
  .inbox .conv-body { padding: var(--s-4); }
  .inbox .composer { position: sticky; bottom: calc(58px + env(safe-area-inset-bottom)); }
}

/* ---------- chat bubbles of the assistant (the settings sheet, settings/fiche.html) */
.chat { display: flex; flex-direction: column; gap: var(--s-3); }
.chat .bot, .chat .me { max-width: 88%; padding: var(--s-3) var(--s-4); border-radius: var(--r-xl); line-height: 1.5; white-space: pre-wrap; }
.chat .bot { align-self: flex-start; background: var(--bg-default); border: 1px solid var(--border-subtle); border-bottom-left-radius: var(--r-xs); }
.chat .me { align-self: flex-end; background: var(--brand-subtle); color: var(--brand-text); border-bottom-right-radius: var(--r-xs); }

/* ---------- Mise en route (refonte 05/11, B126, B195, B290): the Stitch board 14 on the 12-column grid of Aujourd'hui.
   The conversation on 8 columns, its last question at the bottom of its own scroll (column-reverse: no script), the
   field under it; « Avancement » on 4 columns, « Lancer Mindsef » at its foot. A phone: the conversation first. */
.onboarding .page-head { align-items: flex-end; }
.board .card.route-talk { padding: 0; gap: 0; }
.route-scroll { flex: 1 1 auto; display: flex; flex-direction: column-reverse; min-height: 0; max-height: calc(100vh - 310px); overflow-y: auto;
  padding: var(--s-8) var(--s-6) var(--s-4); scrollbar-width: thin; mask-image: linear-gradient(to bottom, transparent 0, var(--text-default) var(--s-8)); }   /* a mask: only its opacity counts */
.route-chat { display: flex; flex-direction: column; gap: var(--s-4); }
.route-scroll > .route-chat { margin-bottom: auto; }   /* a short conversation starts at the top; a long one opens on its end */
.say { display: flex; flex-direction: column; gap: var(--s-1); max-width: min(78%, 560px); }
.say.bot { align-self: flex-start; }
.say.me { align-self: flex-end; align-items: flex-end; }
.bubble { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-3) var(--s-5); border-radius: var(--r-xl); line-height: 1.55; overflow-wrap: anywhere; }
.say.bot .bubble { background: var(--bg-muted); color: var(--text-default); }
.say.me .bubble { background: var(--brand); color: var(--text-inverted); font-weight: var(--fw-medium); }
.say .who { padding: 0 var(--s-2); font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--text-subtle); }
.journey-say { white-space: normal; display: flex; flex-direction: column; gap: var(--s-2); }
.journey-say ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: var(--s-1); }
.answers { display: flex; flex-direction: column; gap: var(--s-3); }
.answers:empty, .answers:not(:has(> :not(input))) { display: none; }   /* nothing to answer with buttons: no gap */
.quick { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.btn.soft { background: var(--bg-muted); color: var(--text-default); }
.btn.soft:hover { background: var(--bg-emphasis); color: var(--text-default); }
.route-composer { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-2) var(--s-6) var(--s-6); padding: var(--s-1) var(--s-1) var(--s-1) var(--s-5);
  border-radius: var(--r-full); background: var(--bg-muted); }
.route-composer:focus-within { box-shadow: var(--focus); }
.route-composer textarea { flex: 1; min-width: 0; min-height: 24px; max-height: 120px; padding: 6px 0; border: 0; background: transparent; resize: none; field-sizing: content; }
.route-composer textarea:focus { outline: none; }
.route-composer textarea::placeholder { color: var(--text-subtle); }
.route-composer textarea:disabled { cursor: not-allowed; }
.steps-card .pct { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--brand-text); }
.steps { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-1); flex: 1 1 auto; }
.steps li { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; }
.steps .mark { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-muted); }
.steps .mark i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.steps .done .mark { background: var(--success-subtle); color: var(--success); }
.steps .current .mark { background: var(--brand-subtle); }
.steps .current .mark i { background: var(--brand); }
.step-label { font-weight: var(--fw-medium); white-space: nowrap; }
.step-value { flex: 1; min-width: 0; text-align: right; font-size: var(--fs-sm); color: var(--text-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps .current .step-value { color: var(--brand-text); font-weight: var(--fw-medium); }
.steps .next .step-label, .steps .next .step-value { color: var(--text-muted); }
/* judge app-3, 31: a line left to do once its question is behind: its gesture on the right, never « à venir » */
.steps .todo { flex-wrap: wrap; row-gap: 0; }   /* too long for one line: the gesture goes under its label, never out */
.steps .step-go { margin-left: auto; white-space: nowrap; }
@media (max-width: 1023px) { .steps .step-go { display: inline-flex; align-items: center; min-height: 44px; } }
.launch { display: flex; flex-direction: column; align-items: stretch; gap: var(--s-2); text-align: center; }
.launch-inline { display: none; }
.steps-card .steps li { min-height: 36px; }   /* lot 18: 12 lines, none clickable */
/* B129: « Tester mon setter », the client plays the prospect; a dashed edge says nothing leaves */
.say.trial .bubble { border: 1px dashed var(--border-strong); }
.say.me.trial .bubble { background: var(--bg-default); color: var(--text-default); font-weight: var(--fw-regular); }
.bubble.replay p { margin: 0; }
.bubble.replay .setter-says { color: var(--brand-text); font-weight: var(--fw-medium); }
/* B123: what the history says, each point kept or taken out */
.history-read { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4) calc(var(--s-5) - 1px); border-radius: var(--r-xl);
  border: 1px solid var(--border-subtle); background: var(--bg-default); }
.history-read h3 { font-size: var(--fs-md); margin: 0; }
.sheet-cards > .history-read { border: 0; box-shadow: var(--shadow-card-settings); padding: var(--s-4) var(--s-6); }   /* B123 on the sheet: a card among the cards */
.read-group { display: flex; flex-direction: column; gap: var(--s-2); }
.read-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.read-group li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--border-subtle); flex-wrap: wrap; }
.read-group li:last-child { border-bottom: 0; }
.read-actions { display: inline-flex; gap: var(--s-1); flex: none; }
.read-add { display: flex; gap: var(--s-2); align-items: center; }
.read-add input { flex: 1; min-width: 0; min-height: 34px; padding: 0 var(--s-3); border: 1px solid var(--border-default); border-radius: var(--r-full);
  background: var(--bg-default); color: var(--text-default); }
/* B125: the summary, B131: the levels of autonomy */
.recap { list-style: none; margin: 0; padding: var(--s-2) var(--s-4); display: flex; flex-direction: column; border-radius: var(--r-xl);
  background: var(--bg-default); border: 1px solid var(--border-subtle); }
.recap li { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: var(--s-3); align-items: baseline; padding: var(--s-2) 0;
  border-bottom: 1px solid var(--border-subtle); }
.recap li:last-child { border-bottom: 0; }
.recap .label { font-size: var(--fs-sm); color: var(--text-subtle); }
.recap .value { font-size: var(--fs-sm); overflow-wrap: anywhere; }
.levels { display: flex; flex-direction: column; gap: var(--s-2); }
.level { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: var(--s-3) var(--s-4); text-align: left; cursor: pointer;
  border: 1px solid var(--border-default); border-radius: var(--r-lg); background: var(--bg-default); color: var(--text-default); font: inherit; }
.level:hover { border-color: var(--brand); }
.level.on { border-color: var(--brand); background: var(--brand-subtle); }
.level:focus-visible { box-shadow: var(--focus); outline: none; }
.pick.solo { align-self: flex-start; }
@media (max-width: 1023px) {
  .onboarding .page-head { align-items: flex-start; }
  .route-scroll { max-height: none; overflow: visible; padding: var(--s-5) var(--s-3) var(--s-3); mask-image: none; }
  .say { max-width: 100%; }
  .say.me { max-width: 92%; }
  .bubble { padding: var(--s-3) var(--s-4); }
  .route-composer { margin: var(--s-2) var(--s-3) var(--s-3); padding-left: var(--s-4); }   /* its words start where the bubbles' do */
  .route-composer .btn, .quick .btn { min-height: 44px; }
  .route-composer textarea, .answers .field input, .answers .field textarea { font-size: 16px; }   /* no zoom on a field */
  .answers .pick span { min-height: 44px; }
  .recap li { grid-template-columns: minmax(0, 1fr) auto; }
  .recap .label { grid-column: 1 / -1; }
  .history-read { padding: var(--s-3) calc(var(--s-4) - 1px); }   /* its words start where the bubbles' do */
  .sheet-cards > .history-read { padding: var(--s-3) var(--s-4); }
  .read-actions .btn, .read-add .btn, .read-add input, .recap .link-btn { min-height: 44px; }
  .launch-inline { display: flex; }
  .steps-card .launch { display: none; }   /* on a phone the launch closes the conversation, under the journey */
}

/* ---------- auth screens (sign-up, payment, LinkedIn, sign-in): the form left, a prospect played live right (rule 9,
   B414, Stitch board 15): a white half, a light brand half */
.auth-page { background: var(--bg-default); }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-main { display: flex; flex-direction: column; justify-content: center; gap: var(--s-6); padding: var(--s-10) var(--s-8); max-width: 560px; width: 100%; margin: 0 auto; }
.auth-main h1 { font-size: 32px; letter-spacing: -0.02em; }
.auth-side { background: var(--brand-subtle); color: var(--text-default); padding: var(--s-10) var(--s-8); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: var(--s-6); }
.steps-line { display: flex; gap: var(--s-2); margin: 0; padding: 0; font-size: var(--fs-sm); color: var(--text-muted); font-weight: var(--fw-medium); flex-wrap: wrap; }
.steps-line li { list-style: none; } .steps-line ol { display: contents; }
.steps-line li + li::before { content: "/"; margin-right: var(--s-2); color: var(--border-strong); }
.steps-line .here { color: var(--brand-text); font-weight: var(--fw-bold); }
.steps-line .done { color: var(--text-subtle); }
.or { display: flex; align-items: center; gap: var(--s-3); color: var(--text-muted); font-size: var(--fs-sm); }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--border-subtle); }
.btn.google { border-color: var(--border-default); background: var(--bg-default); }
.heard summary { list-style: none; display: inline-flex; align-items: center; gap: var(--s-1); min-height: 32px; cursor: pointer; font-weight: var(--fw-medium); }
.heard summary::-webkit-details-marker { display: none; }
.heard summary .icon { transition: transform .2s ease; }
.heard[open] summary .icon { transform: rotate(180deg); }
.heard .field { margin-top: var(--s-2); }
.offer-line { line-height: 1.55; }
.auth-foot { line-height: 1.7; }
/* screen 3: Mindsef and LinkedIn, the line drawn once linked */
.link-visual { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-2); }
.link-line { position: relative; width: 80px; border-top: 3px dashed var(--border-default); }
.link-visual.linked .link-line { border-top-style: solid; border-color: var(--brand); }
.link-dot { position: absolute; left: 50%; top: -15px; transform: translateX(-50%); width: 28px; height: 28px; border-radius: var(--r-full); display: grid; place-items: center;
  background: var(--bg-emphasis); color: var(--text-muted); }
.link-visual.linked .link-dot { background: var(--brand); color: var(--text-inverted); }
.link-in { width: 40px; height: 40px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--bg-default); color: var(--brand); box-shadow: var(--shadow-card), 0 0 0 1px var(--border-subtle); }
.link-fact { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); background: var(--bg-subtle); }
.link-fact > .icon { color: var(--text-subtle); }
.link-fact.done { background: var(--success-subtle); }
.link-fact.done b { color: var(--success); }
.link-fact.relink, .link-state.relink { background: var(--error-subtle); }             /* B156: « À reconnecter » */
.link-fact.relink b, .link-state.relink { color: var(--error); }
.link-state { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--info-subtle); color: var(--info); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
@media (max-width: 1023px) {
  .auth { grid-template-columns: minmax(0, 1fr); } .auth-side { order: 2; padding: var(--s-8) var(--s-4); } .auth-main { padding: var(--s-6) var(--s-4); }
  .auth-main h1 { font-size: var(--fs-xl); }
  .heard summary { min-height: 44px; }
}

/* ---------- the prospect played live (B414, ui/live_prospect.html, ui/_scenes_script.html): her sheet goes from step to
   step, the messages write themselves, the meeting slides into the week */
.live { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: var(--s-4); }
.live-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 32px; }
.live-title { font-size: var(--fs-lg); font-weight: var(--fw-bold); letter-spacing: -0.015em; }
.live-pause[data-paused] .when-playing, .live-pause:not([data-paused]) .when-paused { display: none; }
.live-card, .live-thread, .live-agenda { background: var(--bg-default); border-radius: var(--r-xl); box-shadow: var(--shadow-card); }
.live-card { padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.live-who { display: flex; align-items: center; gap: var(--s-3); }
.live-status { flex: none; }
.live-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); }
.live-steps li { position: relative; padding-top: var(--s-3); font-size: var(--fs-xs); line-height: 1.25; color: var(--text-muted); font-weight: var(--fw-medium); }
.live-steps li::before, .live-steps li::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; border-radius: var(--r-full); background: var(--bg-emphasis); }
.live-steps li::after { background: var(--brand); transform: scaleX(0); transform-origin: left center; transition: transform .6s ease; }
.live-steps li.done { color: var(--text-default); }
.live-steps li.done::after { transform: none; }
.live-steps li.here { color: var(--brand-text); font-weight: var(--fw-bold); }
.live-thread { padding: var(--s-4) var(--s-5); gap: var(--s-2); justify-content: flex-start; }
.live-thread .event-line { align-self: flex-start; padding: 2px 0; }
.live .bubble, .fscreen .bubble { display: flex; flex-direction: column; gap: 2px; max-width: 88%; }
.live .bubble.us, .fscreen .bubble.us { align-self: flex-end; align-items: flex-end; }
.live .bubble.them, .fscreen .bubble.them { align-self: flex-start; }
.live .bubble .msg, .fscreen .bubble .msg { max-width: none; margin: 0; font-size: var(--fs-sm); }
.live .msg.us, .fscreen .msg.us { background: var(--brand); color: var(--text-inverted); border: 2px solid transparent; transition: background-color .4s ease, color .4s ease; }
.live[data-now="4"] .msg.draft-live { background: var(--bg-default); color: var(--text-default); border: 2px dashed var(--brand); }
.live .bubble > .meta, .fscreen .bubble > .meta { font-size: var(--fs-xs); color: var(--text-muted); padding: 0 var(--s-2); }
.live .slots { font-weight: var(--fw-bold); }
.live .event-line, .fscreen .event-line { margin: 0; }
.live .typing::after, .fscreen .typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: text-bottom; background: currentColor; animation: live-caret 1s steps(1) infinite; }
.live [data-at], .live [data-until], .fscreen [data-at], .fscreen [data-until] { animation: live-in .35s ease-out both; }
.live-agenda { padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.live-agenda-head { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.live-agenda-head .icon { color: var(--brand); }
.live-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); }
.live-day { position: relative; height: 96px; border-radius: var(--r-md); background: var(--bg-subtle); overflow: hidden; }
.live-day-name { position: absolute; top: 5px; left: 8px; font-size: var(--fs-xs); color: var(--text-muted); font-weight: var(--fw-medium); }
.live-slot, .live-rdv { position: absolute; left: 6px; right: 6px; border-radius: var(--r-sm); }
.live-week .am { top: 28px; height: 30px; } .live-week .pm { top: 62px; height: 16px; } .live-week .late { top: 82px; height: 8px; }
.live-slot.busy { background: var(--bg-emphasis); }
.live-slot.free { border: 2px dashed var(--brand); background: var(--brand-subtle); }
.live .live-slot.free[data-at] { animation: live-in .35s ease-out both, live-blink 1s ease-in-out .35s infinite alternate; }
.live-rdv { display: flex; flex-direction: column; justify-content: center; padding: 0 6px; background: var(--brand); color: var(--text-inverted); font-size: 10px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; box-shadow: var(--shadow-pop); }
.live .live-rdv[data-at] { animation: live-slide .8s cubic-bezier(.2, .9, .3, 1.15) both; }
.live-booked { align-self: flex-start; padding: 0; color: var(--success); font-weight: var(--fw-medium); }
.live-note { font-size: var(--fs-xs); color: var(--text-muted); }
@keyframes live-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes live-slide { from { opacity: 0; transform: translate(160%, -40%) scale(.85); } 55% { opacity: 1; } }
@keyframes live-blink { to { opacity: .45; } }
@keyframes live-caret { 50% { opacity: 0; } }
@media (max-width: 1023px) { .live { max-width: 560px; } }
@media (max-width: 520px) { .live-card, .live-thread, .live-agenda { padding: var(--s-4); } .live-steps li { font-size: 11px; } .live-rdv span { overflow: hidden; text-overflow: ellipsis; } }

/* ---------- utilities */
.stack { display: flex; flex-direction: column; gap: var(--s-3); }
.stack.lg { gap: var(--s-6); }
.inline { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.hide-phone { } .only-phone { display: none; }
@media (max-width: 1023px) { .hide-phone { display: none !important; } .only-phone { display: revert; } }
hr.sep { border: 0; border-top: 1px solid var(--border-subtle); margin: 0; }
.prose { max-width: 70ch; display: flex; flex-direction: column; gap: var(--s-3); }
.prose h2 { margin-top: var(--s-4); } .prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: var(--fs-sm); background: var(--bg-muted); padding: 2px 6px; border-radius: var(--r-xs); overflow-wrap: anywhere; }
.htmx-request.htmx-indicator, .htmx-request .htmx-indicator { opacity: 1; }
.htmx-indicator { opacity: 0; transition: opacity .2s; }

/* ---------- proof thread (the empty inbox's sample, the account's goodbye): on a light background */
.proof { display: flex; flex-direction: column; gap: var(--s-4); max-width: 460px; }
.proof-title { font-weight: var(--fw-bold); font-size: var(--fs-md); }
.proof-thread .msg.them { color: var(--text-default); }
.proof-thread .msg.draft { border-color: var(--brand); background: var(--bg-default); color: var(--text-default); }
.proof-thread .event-line { color: var(--text-muted); }
.proof-note { font-size: var(--fs-sm); color: var(--text-subtle); }
.proof [data-at] { animation: live-in .35s ease-out both; }            /* A6: Claire's thread plays (ui/_scenes_script.html) */
.proof-thread[data-hold] { justify-content: flex-start; }

/* ---------- dashboard pieces */
.target-week { flex-direction: row; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); }
.plan-day { background: var(--brand-subtle); }   /* C3, C21: a tint, never a thick coloured side border */
.plan-day h2 { font-size: var(--fs-lg); max-width: 40ch; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border-subtle); border-radius: var(--r-md); }
.trio > div { display: flex; flex-direction: column; gap: 2px; padding: var(--s-3); border-right: 1px solid var(--border-subtle); }
.trio > div:last-child { border-right: 0; }
.trio b { font-size: var(--fs-lg); }
.trio span { font-size: var(--fs-xs); color: var(--text-subtle); }
.card-head.pad { padding: var(--s-4) var(--s-5) var(--s-2); }
.stack-0 { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }
.inbox-title { font-size: var(--fs-lg); }
.inbox .conv-empty { justify-content: center; }
.tell { display: flex; gap: var(--s-2); align-items: center; }
.tell .input { min-height: 36px; }
.rule-card { margin-top: var(--s-3); }
.draft-box.solid { border-style: solid; border-color: var(--border-default); }
.danger-text { color: var(--error) !important; }
.pad-2 { padding: var(--s-2); display: block; }
.mt-1 { margin-top: var(--s-1); }
.note-text { padding: var(--s-2) var(--s-3); background: var(--bg-subtle); border-radius: var(--r-md); }
.ai-switch { margin: 0; }
.attention-card { border-color: var(--attention-strong); background: var(--attention-subtle); }

/* ---------- report, appointments, learned */
.seg-link { display: block; padding: 6px var(--s-3); border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-subtle); text-decoration: none; }
.seg-link.on { background: var(--bg-default); color: var(--text-default); box-shadow: var(--shadow-raise); }
.up { color: var(--success); } .down { color: var(--error); }
.date-chip { flex: none; width: 48px; display: flex; flex-direction: column; align-items: center; padding: 4px 0; border-radius: var(--r-md); background: var(--brand-subtle); color: var(--brand-text); font-size: var(--fs-xs); }
.date-chip b { font-size: var(--fs-sm); }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); font-size: var(--fs-sm); }
.before-after .before { color: var(--text-muted); text-decoration: line-through; }
@media (max-width: 760px) { .before-after { grid-template-columns: 1fr; } }

/* ---------- error pages */
.error-page { max-width: 560px; margin: 12vh auto; padding: 0 var(--s-4); display: flex; flex-direction: column; gap: var(--s-4); }

/* ---------- sample thread in the empty inbox: the proof thread on a light background, marked « Exemple » */
.sample { max-width: 560px; margin: var(--s-8) auto; padding: 0 var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.sample .proof-thread .msg.draft { background: var(--bg-default); color: var(--text-default); border-color: var(--brand); }
.sample .proof-thread .event-line, .sample .proof-note { color: var(--text-muted); }

/* ---------- fixes after the first local captures (02/11) */
.col-head .search { flex: none; max-width: none; }
@media (min-width: 1024px) {
  body.app { background: linear-gradient(to right, var(--bg-default) calc(var(--sidebar-w) - 1px), var(--border-subtle) calc(var(--sidebar-w) - 1px),
    var(--border-subtle) var(--sidebar-w), var(--bg-subtle) var(--sidebar-w)); }
}
.segmented { align-self: flex-start; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.ticks li { display: flex; gap: var(--s-2); align-items: flex-start; }
.ticks li .icon { color: var(--brand); margin-top: 2px; }
/* The prospect's card is never lost: under the conversation between 1024 and 1279 px, and on a phone. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .inbox.has-conv { height: auto; }
  .inbox.has-conv .list { grid-row: span 2; }
  .inbox.has-conv .side { display: flex; grid-column: 2; border-top: 1px solid var(--border-subtle); }
}
@media (max-width: 1023px) { .inbox.has-conv .side { display: flex; border-top: 1px solid var(--border-subtle); } }
.row .line2 { display: block; }
.rules-link { margin-top: var(--s-3); text-decoration: none; color: var(--brand-text); font-weight: var(--fw-medium); }
ol.ticks.numbered { list-style: decimal; padding-left: 1.2em; }
ol.ticks.numbered li { display: list-item; }

/* ---------- Aujourd'hui (refonte 05/11, B404): the Stitch board 04 v4 on a 12-column grid, the preview of v3 */
details:not([open]) > :not(summary) { display: none; }   /* a closed menu's content takes no place, measured or not */
.avatar.photo { object-fit: cover; background: var(--bg-muted); }
.avatar.xs { width: 28px; height: 28px; font-size: 10px; }
.avatar.xl { width: 56px; height: 56px; font-size: var(--fs-md); }
.board .avatar:not(.photo) { background: var(--bg-emphasis); color: var(--text-subtle); }   /* no photo: initials on grey */
.today-bar { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-3); flex-wrap: wrap; min-height: 32px; }
.today-bar .state { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; justify-content: flex-end; }
:is(.today-bar, .setup-line) .setup { position: relative; }
:is(.today-bar, .setup-line) .setup > summary { list-style: none; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 32px; padding: 0 var(--s-3);
  border-radius: var(--r-full); background: var(--bg-default); box-shadow: var(--shadow-card); cursor: pointer; font-weight: var(--fw-medium); }
:is(.today-bar, .setup-line) .setup > summary::-webkit-details-marker { display: none; }
:is(.today-bar, .setup-line) .setup .progress { width: 48px; }
:is(.today-bar, .setup-line) .setup .menu { top: calc(100% + 8px); bottom: auto; left: auto; right: 0; width: 320px; padding: var(--s-2) var(--s-3); gap: 0; }
:is(.today-bar, .setup-line) .setup .menu > a { padding: var(--s-2) 0; }
:is(.today-bar, .setup-line) .setup .menu .btn { margin-top: var(--s-2); }
/* B124: the pill on every app page, the list floating under it; the step in progress says why it counts */
.setup-line { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: var(--s-4) var(--s-8) 0; display: flex; justify-content: flex-end; }
.setup .menu { z-index: 30; }
.checklist .current .what { color: var(--brand-text); }
.checklist .current .tick { border-color: var(--brand); }
.setup-card > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); cursor: pointer; }
.setup-card > summary::-webkit-details-marker { display: none; }
.setup-card > summary h2 { font-size: var(--fs-md); }
.setup-card .setup-meta { display: inline-flex; align-items: center; gap: var(--s-3); }
.setup-card .setup-meta .progress { width: 160px; }
.setup-card:not([open]) .setup-meta .icon { transform: rotate(-90deg); }
.setup-card .setup-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: var(--s-2) var(--s-4); }
.setup-card .setup-steps a { border-bottom: 0; align-items: flex-start; }
.board .page-head { align-items: center; }
.modes { display: inline-flex; padding: var(--s-1); gap: 0; border-radius: var(--r-full); background: var(--bg-emphasis); }
.modes button { border: 0; background: none; min-height: 32px; padding: 0 var(--s-4); border-radius: var(--r-full); font-size: var(--fs-sm);
  font-weight: var(--fw-medium); color: var(--text-subtle); cursor: pointer; }
.modes button:hover { color: var(--text-default); }
.modes button.on { background: var(--brand); color: var(--text-inverted); }
.board-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6); align-items: stretch; }
.board-grid > * { grid-column: span 12; min-width: 0; }
.board-grid > .span-6 { grid-column: span 6; } .board-grid > .span-3 { grid-column: span 3; } .board-grid > .span-9 { grid-column: span 9; }
.board .card { border: 0; border-radius: var(--r-xl); box-shadow: var(--shadow-card); padding: var(--s-6); gap: var(--s-4); }
.board .card-head h2 { font-size: var(--fs-md); }
.board .progress.lg { height: 8px; }
.goal { font-size: var(--fs-sm); font-weight: var(--fw-medium); }
/* grey blocks inside a card: bg-muted (#F2F2F7, dark #2C2C2E), never the page's own background */
.funnel-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); padding: var(--s-3); border-radius: var(--r-lg); background: var(--bg-muted); margin-top: auto; }
.list-table th { background: var(--bg-muted); }
.funnel-row > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--s-1); }
.funnel-row span { font-size: var(--fs-xs); color: var(--text-subtle); font-weight: var(--fw-medium); }
.funnel-row b { font-size: var(--fs-md); font-weight: var(--fw-medium); }
.funnel-row .booked b { color: var(--brand-text); }
.meter { display: flex; flex-direction: column; gap: var(--s-2); }
.meter-line { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-xs); color: var(--text-subtle); font-weight: var(--fw-medium); }
.meter-line b { color: var(--text-default); }
.reason { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.reason .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c-green); }
.reason.orange .dot { background: var(--attention-strong); } .reason.red .dot { background: var(--c-red); }
#sante .reason:first-of-type { margin-top: auto; }
/* the six piles: one 44 px line each, the count in words, the mode on the right as a switch */
.piles.card { padding: var(--s-3); gap: 0; }
.piles ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-1); flex: 1; }
.pile-more { margin-top: auto; padding-top: var(--s-2); }   /* the whole Relancer list, the one way to it from here */
.pile-more .menu-link { min-height: 44px; padding: 0 var(--s-3); color: var(--text-subtle); font-weight: var(--fw-medium); }
.pile-more .menu-link .icon:last-child { margin-left: auto; }
.pile { position: relative; display: flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-3); border-radius: var(--r-lg); }
.pile:hover { background: var(--bg-muted); }
.pile.on { background: var(--brand-subtle); }
.pile > a { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; min-height: 44px; color: var(--text-default); text-decoration: none; line-height: 1.3; }
.pile > a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* the whole line opens the pile */
.pile-name { font-size: var(--fs-sm); font-weight: var(--fw-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pile.on .pile-name, .pile.on .n { color: var(--brand-text); }
.pile-n { font-size: var(--fs-xs); color: var(--text-subtle); white-space: nowrap; }
.pile-n .n { font-weight: var(--fw-bold); color: var(--text-default); }
.pile form { position: relative; z-index: 1; display: flex; }
.badge.mode { border: 0; cursor: pointer; font-family: inherit; }
span.badge.mode { cursor: default; position: relative; z-index: 1; }
.badge.mode:hover { box-shadow: inset 0 0 0 1px currentColor; }
/* the open pile: tools, list, foot; the preview slides over it */
.list-card.card { position: relative; padding: 0; gap: 0; }
.list-card:has(.preview:not([hidden])) { min-height: 600px; }
.list-card > form { flex: 1; display: flex; flex-direction: column; }   /* a short list keeps its foot at the card's bottom */
.list-card .list-foot { margin-top: auto; }
.list-tools { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; padding: var(--s-4) var(--s-5); }
.list-tools .contents { display: contents; }
.list-tools .chip-row { display: contents; }
.list-tools .export { margin-left: auto; }
.list-tools .status-menu .card, .list-tools .filters-panel .card { position: absolute; z-index: 30; margin-top: var(--s-2); padding: var(--s-4); gap: var(--s-2);
  border-radius: var(--r-lg); box-shadow: var(--shadow-pop); min-width: 240px; }
.list-tools .filters-panel .card { width: min(560px, 90vw); max-height: 70vh; overflow-y: auto; }
.list-tools details { position: relative; }
.list-tools .filters-panel > summary, .list-tools .status-menu > summary { list-style: none; }
.list-tools .filters-panel > summary::-webkit-details-marker { display: none; }
.search.pill { flex: 1 1 220px; max-width: 300px; }
.search.pill input { min-height: 32px; padding: 4px var(--s-3) 4px 32px; border: 0; border-radius: var(--r-full); background: var(--bg-muted); font-size: var(--fs-sm); }
.search.pill .icon { width: 16px; height: 16px; left: var(--s-3); }
.btn.tool-btn { min-height: 32px; padding: 0 var(--s-3); gap: var(--s-2); border-radius: var(--r-full); background: var(--bg-muted); color: var(--text-default);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.btn.tool-btn:hover { background: var(--bg-emphasis); }
.list-tools .chip { min-height: 24px; padding: 0 var(--s-2) 0 var(--s-3); border: 0; background: var(--bg-muted); color: var(--text-default); font-size: var(--fs-xs); font-weight: var(--fw-medium); }
.menu-link { display: flex; gap: var(--s-2); align-items: center; padding: var(--s-2); border-radius: var(--r-sm); color: var(--text-default); text-decoration: none; font-size: var(--fs-sm); }
.menu-link:hover, .menu-link[aria-current="page"] { background: var(--bg-muted); }
.pad-x { padding: 0 var(--s-5) var(--s-3); }
.list-table { table-layout: fixed; }
.list-table th { padding: var(--s-3) var(--s-2); font-size: var(--fs-xs); font-weight: var(--fw-medium); white-space: normal; line-height: 1.25; }
.list-table td { padding: var(--s-3) var(--s-2); vertical-align: middle; }
.list-table .c-check { width: 44px; padding-left: var(--s-5); padding-right: 0; }
.list-table .c-more { width: 52px; text-align: right; padding-right: var(--s-3); }
/* nothing is cut on the right: a long word wraps inside its column; « Pourquoi » holds two lines, the rest in the preview */
/* real LinkedIn headlines are long (lot 4, compte 19): the job gets room and two lines at most, the rest in the preview */
.list-table col.c-name { width: 16%; } .list-table col.c-poste { width: 19%; } .list-table col.c-entreprise { width: 13%; }
.list-table col.c-lieu { width: 9%; } .list-table col.c-taille { width: 10.5%; } .list-table col.c-pourquoi { width: 20.5%; }
.list-table td.c-poste { display: table-cell; } .list-table td.c-poste > .clamp { line-height: 1.35; }
.list-table col.c-intent { width: 14%; } .list-table col.c-text { width: 31%; } .list-table col.c-last { width: 20%; }
.list-table.drafts col.c-name { width: 24%; }
.list-table td { overflow-wrap: anywhere; }
.list-table td.c-taille, .list-table td.c-lieu { color: var(--text-subtle); }
.list-table .person { min-width: 0; gap: var(--s-2); }
.list-table .person .who { min-width: 0; }
.list-table .name { display: block; min-width: 0; color: var(--brand-text); font-weight: var(--fw-bold); text-decoration: none; line-height: 1.3; }
.list-table .person a.name::after { content: none; }
.list-table .name:hover { text-decoration: underline; }
.company { display: flex; align-items: center; gap: var(--s-1); min-width: 0; }
.company .cut { min-width: 0; color: var(--text-default); text-decoration: none; font-weight: var(--fw-medium); line-height: 1.3; }
.company a.cut:hover { color: var(--brand-text); text-decoration: underline; }
.company .site { flex: none; display: inline-flex; color: var(--text-muted); }
.company .site:hover { color: var(--brand-text); }
.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.list-table td.c-pourquoi { color: var(--text-subtle); line-height: 1.35; }
.list-table td.c-last { color: var(--text-subtle); }
.list-table td.c-last > * { display: block; }
.list-table td.c-text textarea { min-height: 40px; padding: var(--s-2); font-size: var(--fs-sm); }
.list-table tbody tr { cursor: pointer; }
.list-table tbody tr.on { background: var(--bg-muted); }
.list-table .link-btn { font-weight: var(--fw-medium); text-align: left; }
.list-table .who .cut { display: block; line-height: 1.3; }
.row-menu { position: relative; display: inline-block; }
.row-menu > summary { list-style: none; width: 32px; min-height: 32px; border-radius: var(--r-md); }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu .menu { top: calc(100% + 4px); bottom: auto; left: auto; right: 0; width: 260px; text-align: left; cursor: default; }
.row-menu .menu .take-out > summary { list-style: none; justify-content: flex-start; width: 100%; color: var(--text-default); font-weight: var(--fw-medium);
  padding-left: calc(var(--s-3) + 16px + var(--s-2)); }                     /* its text on the others', past their icon */
.row-menu .menu .take-out .stack { padding: var(--s-2); gap: var(--s-1); }
.row-menu .menu .take-out .stack .btn { justify-content: flex-start; }
.menu-row { display: flex; gap: var(--s-2); align-items: center; padding: var(--s-1) var(--s-3); }
.menu-row .input { min-height: 32px; padding: 4px var(--s-2); }
.list-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding: var(--s-4) var(--s-5);
  background: var(--bg-muted); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.list-foot .stack-0 { gap: var(--s-1); min-width: 0; max-width: 46ch; }
.list-foot .small { font-weight: var(--fw-medium); color: var(--text-subtle); }
.foot-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hit { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hit input { margin: 0; }
@keyframes preview-in { from { transform: translateX(24px); opacity: 0; } }   /* it slides over the list; reduced motion stops it */
.preview:not([hidden]) { animation: preview-in .2s ease-out; }
.preview { position: absolute; top: 0; right: 0; bottom: 0; z-index: 25; width: min(380px, 100%); display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-6); overflow-y: auto; background: var(--bg-default); border-radius: 0 var(--r-xl) var(--r-xl) 0; box-shadow: var(--shadow-panel); outline: none; }
.preview-head { display: flex; align-items: flex-start; gap: var(--s-3); }
.preview-head h3 { font-size: var(--fs-md); font-weight: var(--fw-bold); line-height: 1.3; }
.preview-head .btn.icon-only { width: 36px; min-height: 36px; margin: -8px -8px 0 0; }
.preview-block { display: flex; flex-direction: column; gap: var(--s-2); }
.preview-block h4 { font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.preview-block.shaded { padding: var(--s-3); border-radius: var(--r-lg); background: var(--bg-muted); }
.xp { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s-1); font-size: var(--fs-sm); }
.why-full { padding: var(--s-3); border-radius: var(--r-lg); background: var(--bg-muted); font-size: var(--fs-sm); line-height: 1.5; }
.preview-links { display: flex; flex-direction: column; padding-top: var(--s-2); border-top: 1px solid var(--border-subtle); }
.preview-links a { display: flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-2); border-radius: var(--r-md);
  color: var(--text-default); text-decoration: none; font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.preview-links a:first-child { color: var(--brand-text); }
.preview-links a:hover { background: var(--bg-muted); }
.preview-links .icon:last-child { color: var(--text-muted); }
.preview-actions { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--border-subtle); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); align-items: start; }
.preview-actions > form:only-child { grid-column: span 2; }
.preview-actions .take-out { position: relative; }
.preview-actions .take-out > summary { list-style: none; }
.preview-actions .take-out > .stack { position: absolute; bottom: calc(100% + 8px); right: 0; width: 280px; padding: var(--s-3); gap: var(--s-1);
  background: var(--bg-default); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); }
.preview-actions .take-out .stack .btn { justify-content: flex-start; }
.tip-card.card, .tips.card { flex-direction: row; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-6); }
.tips.card { flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-2) var(--s-6); }
.tips .tip-card { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; }
.tips .tip-card + .tip-card { border-top: 1px solid var(--border-subtle); }
.tip-card p { font-size: var(--fs-sm); }
.tip-icon { flex: none; display: inline-flex; color: var(--brand-text); }
.tip-actions { display: flex; gap: var(--s-2); flex: none; }
/* B195 (judge lot 4): the journey in three steps, the step the client is at, then the series of the four lists */
.journey.card { gap: var(--s-4); }
.journey .card-head { flex-wrap: wrap; }
.journey-steps, .journey-lists { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); }
.journey-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.journey-steps li { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--text-subtle); }
.journey-steps b { font-weight: var(--fw-medium); }
.journey-steps .tick { font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.journey-steps li.current { color: var(--text-default); }
.journey-steps li.current b { font-weight: var(--fw-bold); }
.journey-steps li.current .tick { border-color: var(--brand); color: var(--brand-text); }
.journey-lists { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.journey-lists > li { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-3); border-radius: var(--r-lg); background: var(--bg-muted); }
.journey-line { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); font-size: var(--fs-sm); }
.journey-line b { font-weight: var(--fw-medium); }
.journey-lists .progress { background: var(--bg-emphasis); }
.journey-offer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }   /* in place of the full bar */
.journey-actions { display: flex; gap: var(--s-2); }
/* ---------- Connexions (refonte 05/11, B407): the Stitch board 05 on Aujourd'hui's list, toolbar and preview */
.board-grid > .span-12 { grid-column: span 12; }
.plan-card.card { flex-direction: row; align-items: center; gap: var(--s-4); padding: var(--s-5) var(--s-6); }
.plan-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-full);
  background: var(--bg-muted); color: var(--brand-text); }
.plan-card p b { font-weight: var(--fw-medium); }
.plan-meter { flex: 0 1 300px; display: flex; align-items: center; gap: var(--s-3); }
.plan-meter .progress { flex: 1; }
.plan-meter .num { font-size: var(--fs-sm); color: var(--text-subtle); white-space: nowrap; }
/* B425: the parcours on top of Connexions (the Bilan's funnel, five steps), the accepted without a first message put
   forward, and each blocked row with its reason and its gesture */
@media (min-width: 1024px) {
  .funnel-steps.five { grid-template-columns: repeat(4, minmax(0, 1fr) 16px) minmax(0, 1fr); }
  .board .card.parcours { padding-left: var(--s-5); padding-right: var(--s-5); }     /* on the list's edge, below it */
}
.fstep.on { background: var(--brand-subtle); }
.parcours-wait { display: inline-flex; align-self: flex-start; align-items: center; gap: var(--s-2); min-height: 32px; padding: 0 var(--s-3);
  border-radius: var(--r-full); background: var(--bg-muted); color: var(--text-default); font-size: var(--fs-sm); text-decoration: none; }
.parcours-wait.late { background: var(--attention-subtle); color: var(--attention); font-weight: var(--fw-medium); }
.page-head .titles .parcours-wait { margin-top: var(--s-2); }
.funnel-wait { display: flex; padding-top: var(--s-2); }
.list-table tbody tr.blocked > td:first-child { box-shadow: inset 3px 0 0 var(--attention-strong); }
.block-why { display: flex; align-items: flex-start; gap: var(--s-1); margin-top: var(--s-1); color: var(--attention); }
.block-why .icon { flex: none; margin-top: 1px; }
.block-why b { font-weight: var(--fw-medium); }
.late-count { color: var(--attention); font-weight: var(--fw-medium); }
.list-card > .tabs { gap: var(--s-6); padding: var(--s-4) var(--s-5) 0; }
.list-card > .tabs a { gap: var(--s-2); padding: var(--s-2) 0 var(--s-3); white-space: nowrap; font-weight: var(--fw-medium); }
.list-card > .tabs .n { min-width: 24px; padding: 0 var(--s-2); border-radius: var(--r-full); background: var(--bg-muted); color: var(--text-subtle);
  line-height: 20px; text-align: center; }
.list-card > .tabs a[aria-current="page"] .n { background: var(--brand-subtle); color: var(--brand-text); }
.list-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-6); padding: 0 var(--s-5) var(--s-4); }
.list-note .older, .list-note .rule { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.list-note .chip { min-height: 28px; padding: 0 var(--s-3); border: 0; background: var(--bg-muted); color: var(--text-default); font-size: var(--fs-xs);
  font-weight: var(--fw-medium); text-decoration: none; }
.list-note .chip.on { background: var(--brand-subtle); color: var(--brand-text); }
.list-note .input { width: 72px; min-height: 32px; padding: 4px var(--s-2); }
.list-table.conn col.c-date { width: 10%; } .list-table.conn col.c-statut { width: 13%; } .list-table.conn col.c-text { width: 25%; }
.list-table.conn col.c-name { width: 17%; } .list-table.conn col.c-poste { width: 17%; } .list-table.conn col.c-entreprise { width: 14%; }
.list-table.conn col.c-lieu { width: 9%; } .list-table.conn col.c-pourquoi { width: 20%; }
.list-table.conn.t-attente col.c-name { width: 14%; } .list-table.conn.t-attente col.c-poste { width: 12%; }
.list-table.conn.t-attente col.c-entreprise { width: 11%; } .list-table.conn.t-attente col.c-lieu { width: 8%; }
.list-table.conn.t-attente col.c-date { width: 9%; } .list-table.conn.t-attente col.c-pourquoi { width: 12%; }
.list-table.conn.t-toutes col.c-pourquoi { width: 15%; }
@media (min-width: 1024px) { .list-table.conn:not(.t-attente, .t-invites) :is(th:first-child, td.c-name) { padding-left: var(--s-5); } }
.list-table td.c-date, .list-table td.c-statut { color: var(--text-subtle); }
.draft { position: relative; display: block; }
.list-table td.c-text .draft textarea { display: block; width: 100%; min-height: 52px; padding: var(--s-2) 36px var(--s-2) var(--s-3); border: 0; border-radius: var(--r-lg);
  background: var(--bg-muted); font-size: var(--fs-sm); line-height: 1.4; resize: none; field-sizing: content; max-height: 8.5em; }
.draft .btn.edit { position: absolute; top: 4px; right: 4px; width: 32px; min-height: 32px; }
.draft .btn.edit .icon { width: 16px; height: 16px; }
.confirm .names { display: block; max-height: 6.5em; overflow-y: auto; font-weight: var(--fw-regular); }
.confirm-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.confirm-actions .btn { margin-left: 0; }
@media (max-width: 1023px) {
  .today-bar { justify-content: flex-start; }
  .today-bar .state { justify-content: flex-start; }
  :is(.today-bar, .setup-line) .setup .menu { left: 0; right: auto; width: min(320px, calc(100vw - 32px)); }
  .setup-line { padding: var(--s-3) var(--s-4) 0; justify-content: flex-start; }
  .board .page-head { align-items: flex-start; }
  .board-grid { gap: var(--s-4); }
  .board-grid > .span-6, .board-grid > .span-3, .board-grid > .span-9 { grid-column: span 12; }
  .board .card { padding: var(--s-4); }
  /* the piles: one row that scrolls */
  .piles.card { padding: 0; background: transparent; box-shadow: none; }
  .piles ul { flex-direction: row; overflow-x: auto; gap: var(--s-2); scrollbar-width: none; padding: 2px var(--s-4); margin: -2px calc(-1 * var(--s-4)); }
  .pile { flex: none; min-width: 156px; background: var(--bg-default); box-shadow: var(--shadow-card); padding: 0 var(--s-2) 0 var(--s-4); }
  .pile.on { background: var(--brand-subtle); order: -1; }      /* the open pile first: in view without scrolling */
  /* judge lot 4: the mode on its own 44 px line under the pile's tab; the tab's link no longer spreads over it */
  .pile { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .pile > a { padding: 0 var(--s-4); }
  .pile > a::after { content: none; }
  .pile form { border-top: 1px solid var(--border-subtle); }
  .badge.mode { justify-content: center; width: 100%; min-height: 44px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
  span.badge.mode { border-top: 1px solid var(--border-subtle); }
  .modes button, .search.pill input { min-height: 44px; }
  .list-table .link-btn { display: inline-flex; align-items: center; min-height: 44px; }
  .company .site { align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .journey-steps, .journey-lists { grid-template-columns: minmax(0, 1fr); }
  .journey-lists > li { padding: var(--s-3) var(--s-4); gap: var(--s-1); }   /* its text on the list's search, 16 px in */
  .journey-offer { row-gap: var(--s-1); }                            /* the question close to its two buttons */
  .pile-more { flex: none; margin-top: 0; padding-top: 0; display: flex; }
  .pile-more .menu-link { background: var(--bg-default); box-shadow: var(--shadow-card); border-radius: var(--r-lg); padding: 0 var(--s-4); gap: var(--s-2); }
  /* the list: one card per person; line 1 the name and its menu, then post and company, place and size, why */
  .list-tools { padding: var(--s-3) var(--s-4); }
  .search.pill { max-width: none; flex-basis: 100%; }
  .list-tools .export { margin-left: 0; }
  .list-table, .list-table tbody { display: block; }
  .list-table colgroup, .list-table thead { display: none; }
  /* the details start under the name, past the photo: the line keeps 80 px on the left, the name takes 36 back */
  .list-table tbody tr { position: relative; display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s-2); row-gap: var(--s-1);
    padding: var(--s-3) var(--s-2) var(--s-3) 80px; border-bottom: 1px solid var(--border-subtle); }
  .list-table tbody tr::before { content: ""; order: 5; flex-basis: 100%; }
  /* Connexions (B407, `.conn`) takes the same card; a tab without a box keeps the 80 px, its name starts after the photo */
  .list-table:is(.invit, .drafts, .conn) td { display: block; width: auto; padding: 0; border: 0; min-width: 0; font-size: var(--fs-sm); }
  .list-table:is(.invit, .drafts, .conn) td.c-check { position: absolute; left: 0; top: var(--s-2); padding: 0; }
  .list-table td.c-check .hit { width: 44px; height: 44px; }                   /* a 44 px target around the box */
  .list-table td.c-check input { width: 20px; height: 20px; }
  .list-table.conn tbody tr.blocked { box-shadow: inset 3px 0 0 var(--attention-strong); }          /* B425: the whole card */
  .list-table.conn tbody tr.blocked > td:first-child { box-shadow: none; }
  .list-table:is(.invit, .drafts, .conn) td.c-name { order: 1; flex: 1 1 calc(100% - 16px); margin-left: -36px; }
  .list-table:is(.invit, .drafts, .conn) td.c-more { order: 2; flex: 0 0 44px; padding: 0; }
  .list-table .row-menu > summary { width: 44px; min-height: 44px; }
  .list-table:is(.invit, .conn) td.c-poste { order: 3; }
  .list-table:is(.invit, .conn) td.c-entreprise { order: 4; }
  .list-table:is(.invit, .conn) td.c-lieu { order: 6; }
  .list-table:is(.invit, .conn) td:is(.c-taille, .c-date) { order: 7; }
  .list-table:is(.invit, .conn) td.c-entreprise .company { display: inline-flex; }
  .list-table:is(.invit, .conn) td.vide { display: none; }   /* a phone shows no line of dashes: what LinkedIn did not give is left out */
  .list-table:is(.invit, .conn) td.c-lieu:not(.vide) + td:is(.c-taille, .c-date)::before { content: "·"; margin-right: var(--s-2); color: var(--text-muted); }
  .list-table:is(.invit, .conn) td.c-pourquoi, .list-table.drafts td.c-intent, .list-table:is(.drafts, .conn) td.c-text,
  .list-table.drafts td.c-last, .list-table.conn td.c-statut { order: 8; flex: 1 1 100%; }
  .list-table:is(.drafts, .conn) td.c-text { order: 9; } .list-table.drafts td.c-last { order: 10; }
  .list-table.conn:not(.t-attente, .t-invites) tbody tr { padding-left: 52px; }  /* no box: the photo 16 px in, the details under the name */
  .list-table td.c-text textarea { min-height: 64px; }
  .plan-card.card { flex-wrap: wrap; gap: var(--s-3); padding: var(--s-4); }
  .plan-card p { flex: 1 1 calc(100% - 56px); }
  .plan-meter { flex: 1 1 100%; }
  .list-card > .tabs { gap: var(--s-4); padding: var(--s-2) var(--s-4) 0; }
  .list-note { padding: 0 var(--s-4) var(--s-3); }
  .list-note .input { font-size: 16px; }
  .list-note .chip { min-height: 44px; }
  .draft .btn.edit { top: 0; right: 0; width: 44px; min-height: 44px; }
  .list-table td.c-text .draft textarea { padding-right: 44px; }
  .search.pill input, .list-table td.c-text textarea, .list-table td.c-text .draft textarea, .menu-row .input { font-size: 16px; }   /* no zoom on a field */
  .list-foot { position: sticky; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 6; padding: var(--s-2) var(--s-4); gap: var(--s-2);
    border-radius: 0 0 var(--r-xl) var(--r-xl); box-shadow: 0 -1px 0 var(--border-subtle); }
  .list-foot > .stack-0 { display: none; }       /* the count is on the button */
  /* judge app-1, defect 12: two long labels go one under the other, never wider than the phone */
  .foot-actions { flex: 1; flex-wrap: wrap; min-width: 0; gap: var(--s-2); } .foot-actions .btn { flex: 1 1 auto; padding: 0 var(--s-2); font-size: var(--fs-sm); }
  .preview { position: fixed; inset: 0; z-index: 40; width: auto; border-radius: 0; padding: var(--s-5) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom)); }
  .list-card:has(.preview:not([hidden])) { min-height: 0; }
  .preview-head .btn.icon-only { width: 44px; min-height: 44px; }     /* judge lot 4, pass 2: the close and the links, 44 px */
  .preview-links a { min-height: 44px; }
  .tip-card.card, .tips .tip-card { flex-wrap: wrap; }
  .tip-actions { width: 100%; padding-left: 32px; }
}

/* ---------- phone (C20): touch targets of 44 px at least; definition lists stack */
@media (max-width: 1023px) {
  .btn, .btn.sm, .chip, .pick span, .tabs a, .input, .field input, .field select, .field textarea, .segmented > * { min-height: 44px; }
  .menu a, .menu button, .site-burger > summary { min-height: 44px; min-width: 44px; display: flex; align-items: center; }   /* judge lot 3: the menus too */
}
@media (max-width: 560px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .kv dd { margin-bottom: var(--s-2); } }

/* ---------- Relancer (refonte 05/11, B393, B410): the Stitch board 06 on the shared list (Aujourd'hui, Connexions) */
.page-actions .link-tool { gap: var(--s-2); color: var(--brand-text); font-weight: var(--fw-medium); }
.pace-card.card { flex-direction: row; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-6); }
.pace-icon { flex: none; display: inline-flex; color: var(--brand-text); }
.pace-card p { font-size: var(--fs-sm); color: var(--text-subtle); }
.pace-card p .xsmall { display: block; }
.pace-card label { flex: none; font-weight: var(--fw-medium); }
.pace-card .input { width: 96px; min-height: 36px; padding: 4px var(--s-3); border: 0; border-radius: var(--r-md); background: var(--bg-muted); text-align: right; }
.board-grid > .page-tabs { gap: var(--s-6); margin-bottom: calc(-1 * var(--s-2)); }
.page-tabs a { gap: var(--s-2); padding: var(--s-2) 0 var(--s-3); white-space: nowrap; font-weight: var(--fw-medium); }
.page-tabs .n { min-width: 24px; padding: 0 var(--s-2); border-radius: var(--r-full); background: var(--bg-muted); color: var(--text-subtle); line-height: 20px; text-align: center; }
.page-tabs a[aria-current="page"] .n { background: var(--brand-subtle); color: var(--brand-text); }
.steps-menu .card { min-width: 300px; }
.step-link { display: flex; align-items: center; gap: var(--s-2); min-height: 36px; padding: 0 var(--s-2); border-radius: var(--r-md); color: var(--text-default);
  text-decoration: none; font-size: var(--fs-sm); }
.step-link:hover { background: var(--bg-muted); }
.step-link.on { color: var(--brand-text); font-weight: var(--fw-medium); }
.step-link.stop { color: var(--text-subtle); }
.step-link .tick { width: 18px; height: 18px; border-width: 1.5px; }
.step-link.on .tick { border-color: var(--brand); background: var(--brand); color: var(--text-inverted); }
.steps-menu .card > p { padding: var(--s-2) var(--s-2) 0; border-top: 1px solid var(--border-subtle); }
.list-table.relances col.c-name { width: 15%; } .list-table.relances col.c-poste { width: 15%; } .list-table.relances col.c-entreprise { width: 12%; }
.list-table.relances col.c-etape { width: 17%; } .list-table.relances col.c-signe { width: 11%; } .list-table.relances col.c-relance { width: 8%; }
.list-table.relances col.c-prevue { width: 12%; }
.list-table.relances td.c-signe { color: var(--text-subtle); }
.list-table.relances td.c-texte { line-height: 1.35; }
.list-table.relances td.c-prevue .xsmall { display: block; margin-top: 2px; }
.badge.step { font-weight: var(--fw-medium); color: var(--text-default); white-space: normal; text-align: left; }
.foot-actions .take-out > summary { list-style: none; width: auto; padding: 0 var(--s-4); }
.foot-actions .take-out > summary::-webkit-details-marker { display: none; }
.row-menu.up .menu { top: auto; bottom: calc(100% + 4px); right: auto; left: 0; width: 280px; padding: var(--s-3); gap: var(--s-2); display: flex; flex-direction: column; }

/* ---------- Réglages > Relances (B79, B200, B410): the Stitch board 07, one card a follow-up */
.relances-form .section-head h2 { font-size: var(--fs-lg); }
.rule-block { display: flex; flex-direction: column; gap: var(--s-4); }
.rule-block > h3 { font-size: var(--fs-md); font-weight: var(--fw-bold); }
.rule-card.card { gap: var(--s-4); padding: var(--s-5) var(--s-6); border: 0; border-radius: var(--r-xl); box-shadow: var(--shadow-card-settings); }
.rule-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--border-subtle); }
.switch-line { display: inline-flex; align-items: center; gap: var(--s-2); cursor: pointer; }
.rule-delays { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.rule-delays .sep { color: var(--text-muted); }
.input.num { width: 64px; min-height: 36px; padding: 4px var(--s-3); border: 0; border-radius: var(--r-md); background: var(--bg-muted); font-weight: var(--fw-medium); }
.rule-field { display: flex; flex-direction: column; gap: var(--s-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.rule-field > legend { padding: 0; margin-bottom: var(--s-2); font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--text-subtle); }
.rule-field .checks { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); }
.rule-field .checks .check { align-items: center; gap: var(--s-2); font-size: var(--fs-sm); }
.rule-field .checks .check input { margin-top: 0; }
.rule-field .checks .among { display: flex; flex-basis: 100%; align-items: center; gap: var(--s-2); }   /* « parmi » on its own line, on the cards edge */
.rule-field .checks select { width: auto; min-height: 32px; padding: 2px var(--s-6) 2px var(--s-2); }
.pills { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pill-check { position: relative; display: inline-flex; cursor: pointer; }
.pill-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill-check span { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 var(--s-3); border-radius: var(--r-full); background: var(--bg-muted);
  color: var(--text-default); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.pill-check.small span { min-height: 28px; font-size: var(--fs-xs); }
.pill-check input:checked + span { background: var(--brand-subtle); color: var(--brand-text); }
.pill-check input:checked + span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-check input:focus-visible + span, .seg input:focus-visible + span { box-shadow: var(--focus); }
.seg { display: inline-flex; align-self: flex-start; padding: 3px; margin-left: -3px; gap: 0; border-radius: var(--r-full); background: var(--bg-muted); }
.seg label { position: relative; display: inline-flex; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--s-4); border-radius: var(--r-full); font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-subtle);
  white-space: nowrap; }   /* judge app-4, defect 44: « Je valide » on one line, three choices beside a long text */
.seg input:checked + span { background: var(--bg-default); color: var(--text-default); box-shadow: var(--shadow-card); }
.rule-card:has(.mode input[value="fixed"]:checked) .ai-only, .rule-card:has(.mode input[value="ai"]:checked) .fixed-only { display: none; }
.rule-card .fixed-only textarea { border: 0; border-radius: var(--r-lg); background: var(--bg-muted); }
.rule-foot { display: flex; }
.rule-foot .link-btn { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--text-subtle); font-weight: var(--fw-medium); text-decoration: none; }
.rule-foot .link-btn:hover { color: var(--error); }
.add-rule { align-self: flex-start; gap: var(--s-2); background: var(--bg-default); box-shadow: var(--shadow-card); border-radius: var(--r-full); }
.stop-line { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); background: var(--bg-muted); color: var(--text-subtle); }
.stop-line .icon { flex: none; margin-top: 2px; }
.stop-line .small { color: var(--text-default); }
.setting.prudence .what span { line-height: 1.45; }
.relances-form .setting .inline { flex: none; flex-wrap: nowrap; align-items: center; }
@media (min-width: 1024px) { .relances-form .choice-card { padding-left: calc(var(--s-6) - 1px); } }   /* its text on the cards' edge */
.save-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap;
  padding: var(--s-3) var(--s-5); border-radius: var(--r-xl); background: var(--bg-default); box-shadow: var(--shadow-pop); }
.save-bar .unsaved { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--text-subtle); font-weight: var(--fw-medium); }
.save-bar .unsaved[hidden] { display: none; }
.save-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.save-actions { display: flex; gap: var(--s-2); margin-left: auto; }
@media (max-width: 1023px) {
  .pace-card.card { flex-wrap: wrap; padding: var(--s-4); }
  .pace-card p { flex: 1 1 calc(100% - 40px); }
  .pace-card label { margin-left: 32px; }
  .pace-card .input { font-size: 16px; }
  .board-grid > .page-tabs { gap: var(--s-4); margin-bottom: 0; }
  .list-card > .pad-x { padding-left: var(--s-4); padding-right: var(--s-4); }
  .page-actions { flex-wrap: wrap; }
  .list-table.relances td { display: block; width: auto; padding: 0; border: 0; min-width: 0; font-size: var(--fs-sm); }
  .list-table.relances td.c-check { position: absolute; left: 0; top: var(--s-2); padding: 0; }
  .list-table.relances td.c-name { order: 1; flex: 1 1 calc(100% - 16px); margin-left: -36px; }
  .list-table.relances td.c-more { order: 2; flex: 0 0 44px; padding: 0; }
  .list-table.relances td.c-poste { order: 3; flex: 1 1 100%; }
  .list-table.relances td.c-entreprise { order: 4; }
  .list-table.relances td.c-etape { order: 6; }
  .list-table.relances td:is(.c-signe, .c-relance, .c-prevue) { order: 7; }
  .list-table.relances td.c-texte { order: 9; flex: 1 1 100%; }
  .list-table.relances td.vide { display: none; }
  .foot-actions .take-out { display: none; }               /* a phone validates; taking people out is in each row's menu */
  .steps-menu .card { min-width: min(300px, calc(100vw - 32px)); }
  .rule-card.card { padding: var(--s-4); }
  .rule-delays .sep { display: none; }
  .rule-field .checks { flex-direction: column; align-items: flex-start; }
  .relances-form .setting .inline { flex-wrap: wrap; }
  .pill-check span, .seg span { min-height: 44px; }
  .input.num { font-size: 16px; min-height: 44px; }
  .save-bar { bottom: calc(60px + env(safe-area-inset-bottom)); padding: var(--s-2) var(--s-4); }
  .save-bar .unsaved { flex: 1 1 100%; }
}

/* ---------- Bilan (refonte 05/11, B98, B99, B102, B397): the Stitch board 09 on the 12-column grid of Aujourd'hui.
   Under the board, in the same cards, the blocks it does not draw: the advice, the shared brain, how it is computed. */
.bilan .page-head { align-items: flex-end; }
.board-grid > .span-8 { grid-column: span 8; } .board-grid > .span-4 { grid-column: span 4; }
.btn.pill { border-radius: var(--r-full); }
.period { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: var(--s-1); border-radius: var(--r-full); background: var(--bg-emphasis); }
.period a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--s-4); border-radius: var(--r-full); color: var(--text-subtle);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); text-decoration: none; white-space: nowrap; }
.period a:hover { color: var(--text-default); }
.period a[aria-current="page"] { background: var(--bg-default); color: var(--brand-text); box-shadow: var(--shadow-card); }
/* the funnel: 8 steps on one line, an arrow between two, the share of the step before and its move against the period before */
.funnel-steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr) 16px) minmax(0, 1fr); align-items: start; column-gap: var(--s-1); }
.funnel-steps .arrow { display: flex; justify-content: center; margin-top: var(--s-8); color: var(--border-strong); }
.fstep { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: var(--s-2); margin: calc(-1 * var(--s-2)) 0; border-radius: var(--r-lg);
  color: var(--text-default); text-decoration: none; }
.fstep:hover { background: var(--bg-subtle); color: var(--text-default); }
.fstep:hover .fstep-label { color: var(--brand-text); }
.fstep-label { font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--text-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fstep-value { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: -0.02em; line-height: 1.2; }
.fstep.win .fstep-value { color: var(--brand-text); }
.fstep-rate { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s-2); min-height: 16px; font-size: var(--fs-xs); }
.fstep-rate .rate { font-weight: var(--fw-bold); }
.fstep-rate .early { color: var(--text-muted); }
.move { font-weight: var(--fw-medium); white-space: nowrap; }
.move.up { color: var(--success); } .move.down { color: var(--error); } .move.same { color: var(--text-muted); }
.funnel-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3) var(--s-8); padding-top: var(--s-2); }
.funnel-note { flex: 1 1 360px; max-width: 72ch; }
.funnel-card .fresh { font-weight: var(--fw-medium); }
.signed { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.signed > a:first-child { display: inline-flex; align-items: baseline; gap: var(--s-2); color: var(--text-default); text-decoration: none; }
.signed > a:first-child b { font-size: var(--fs-xl); font-weight: var(--fw-bold); letter-spacing: -0.02em; }
.signed > a:first-child b.none { font-size: var(--fs-md); font-weight: var(--fw-medium); color: var(--text-subtle); letter-spacing: 0; }
.signed > a:first-child:hover b { color: var(--brand-text); }
/* the consultant: the diagnosis, the action before / after, its buttons, the follow-up as the card's foot */
.consultant .card-head h2 { display: inline-flex; align-items: center; gap: var(--s-2); }
.consultant .card-head h2 .icon { color: var(--brand-text); }
.lead { max-width: 80ch; font-size: var(--fs-md); font-weight: var(--fw-medium); line-height: 1.45; }
.diagnosis { display: flex; flex-direction: column; gap: var(--s-2); }
.figures > summary { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 32px; list-style: none; cursor: pointer;
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--brand-text); }
.figures > summary::-webkit-details-marker { display: none; }
.figures[open] > summary .icon { transform: rotate(180deg); }
.figures .table-wrap { margin-bottom: var(--s-3); }
.bilan .table th { background: var(--bg-muted); }   /* a grey head inside a card, never the page's own background (dark: black) */
.series { display: flex; flex-direction: column; gap: var(--s-3); }
.proposal { display: flex; flex-direction: column; gap: var(--s-3); }
.proposal + .proposal { padding-top: var(--s-4); border-top: 1px solid var(--border-subtle); }
.proposal h3 { font-size: var(--fs-base); font-weight: var(--fw-medium); }
.ab { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.ab.one { grid-template-columns: minmax(0, 1fr); }
.ab-block { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-3); border-radius: var(--r-lg); background: var(--bg-muted); }
.ab-label { font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--text-subtle); }
.ab-block p { color: var(--text-subtle); }
.ab-block.after .ab-label { color: var(--brand-text); }
.ab-block.after p { color: var(--text-default); }
.proposal-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.proposal-actions .btn { min-width: 96px; }
.consultant-foot { display: flex; flex-direction: column; gap: var(--s-1); margin: auto calc(-1 * var(--s-6)) calc(-1 * var(--s-6)); padding: var(--s-4) var(--s-6);
  border-radius: 0 0 var(--r-xl) var(--r-xl); background: color-mix(in srgb, var(--bg-muted) 55%, var(--bg-default)); }
.follow { display: flex; align-items: baseline; gap: var(--s-2); font-size: var(--fs-sm); color: var(--text-subtle); }
.follow b { color: var(--text-default); font-weight: var(--fw-medium); }
.follow .dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); transform: translateY(-2px); }
.follow .dot.up { background: var(--c-green); } .follow .dot.down { background: var(--c-red); }
/* three small cards beside the consultant: their stack ends where the consultant ends */
.side-stack { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.board .side-stack > .card { flex: 1 1 auto; justify-content: center; }
.board .tile { gap: var(--s-1); }
.tile-label { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-subtle); }
.tile-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-2); }
.tile-head b { font-size: var(--fs-sm); font-weight: var(--fw-bold); white-space: nowrap; }
.tile-value { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: -0.02em; line-height: 1.2; }
.tile-empty { font-size: var(--fs-md); font-weight: var(--fw-medium); }
.tile .progress { margin-bottom: var(--s-1); }
.tile-link { color: inherit; text-decoration: none; }               /* B98: a tile's figure opens its people */
.tile-link:hover { color: var(--brand-text); }
.tone-success { color: var(--success); } .tone-attention { color: var(--attention); } .tone-error { color: var(--error); }
/* « Où en sont tes prospects »: one grey column per status, its count and its 3 latest names */
.where .card-head { flex-wrap: wrap; }
.status-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-4); }
.status-col { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; padding-bottom: var(--s-3); border-radius: var(--r-lg); overflow: hidden;
  background: color-mix(in srgb, var(--bg-muted) 55%, var(--bg-default)); }
.status-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 36px; padding: var(--s-2) var(--s-3);
  background: var(--bg-muted); color: var(--text-default); font-size: var(--fs-sm); font-weight: var(--fw-medium); text-decoration: none; }
.status-head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-head b { font-size: var(--fs-xs); color: var(--text-subtle); }
.status-head:hover, .status-head:hover b { color: var(--brand-text); }
.status-col.win .status-head b { color: var(--brand-text); }
.status-col ul { list-style: none; margin: 0; padding: 0 var(--s-3); display: flex; flex-direction: column; gap: var(--s-2); }
.status-col li a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); color: var(--text-default); text-decoration: none; }
.status-col li a:hover { color: var(--brand-text); }
.calc-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--fs-sm); color: var(--text-subtle); }
/* P2 lines (12/11). B106: the free period beside the periods; B205: the funnel's shape greyed on a new account; B100,
   B105: « Où ça coince », the page's one blue zone (C22); B246: the formulas in « Comment c'est calculé ». */
.period-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--s-2); }
.period-free { position: relative; }
.period-free > summary { list-style: none; cursor: pointer; }
.period-free > summary::-webkit-details-marker { display: none; }
.period-free > summary.on { color: var(--brand-text); }
.period-form { position: absolute; right: 0; top: calc(100% + var(--s-2)); z-index: 20; display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-3);
  padding: var(--s-4); border-radius: var(--r-xl); background: var(--bg-default); box-shadow: 0 12px 40px rgba(0, 0, 0, .16); }
.period-form .field { gap: 2px; }
.funnel-example { display: flex; flex-direction: column; gap: var(--s-2); max-width: 560px; opacity: .55; }
.funnel-example .badge { align-self: flex-start; background: var(--bg-muted); color: var(--text-subtle); }
.ex-step { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: var(--s-3); }
.ex-bar { display: block; height: 10px; border-radius: var(--r-full); background: var(--border-strong); }
.funnel-note { flex: 1 1 360px; max-width: 72ch; display: flex; flex-direction: column; gap: var(--s-1); }
.funnel-note .cost { color: var(--text-default); font-weight: var(--fw-medium); }
.card.stuck { background: color-mix(in srgb, var(--c-accent) 7%, var(--bg-default)); gap: var(--s-2); }
.stuck-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--fs-sm); }
.stuck-list a { font-weight: var(--fw-medium); white-space: nowrap; }
.defs > summary { cursor: pointer; color: var(--brand-text); }
.defs ul { margin: var(--s-2) 0 0; padding-left: var(--s-4); display: flex; flex-direction: column; gap: var(--s-1); font-size: var(--fs-xs); }
/* B103: the 12 weeks, one bar per week (people contacted), its reply rate above when it has its base; one series, no legend */
.week-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; align-items: end; margin: 0; }
.week { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.week-rate { min-height: 16px; font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--text-default); white-space: nowrap; }
.week-bar { display: flex; align-items: flex-end; width: 100%; max-width: 32px; height: 96px; }
.week-bar > span { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--c-accent); }
.week:hover .week-bar > span { background: var(--brand-emphasis); }
.week-n { font-size: var(--fs-xs); color: var(--text-default); }
.week-day { font-size: 10px; color: var(--text-subtle); white-space: nowrap; }
.split-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--fs-sm); }
.split-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-3); align-items: center; }
.split-rows .progress { grid-column: 1 / -1; }
.split-rows b { font-variant-numeric: tabular-nums; }
.card-part { display: flex; flex-direction: column; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--border-subtle); }
.card-part h3 { margin: 0; font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.move.inline { margin-left: var(--s-2); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
/* B282, B283, B354: the filters, the PDF, the tiles chosen, the pinned campaigns */
.bilan-tools { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3) var(--s-6); margin-bottom: var(--s-4); }
.bilan-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.bilan-filter-bar .btn .icon, .tiles-edit > summary .icon { margin-right: 4px; }
.tiles-edit > summary.on { color: var(--brand-text); }
.bilan-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-3); left: 0; right: auto; width: max-content; max-width: calc(100vw - 32px); }
.bilan-filters .field { gap: 2px; min-width: 150px; }
.bilan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.bilan-actions .btn .icon { margin-right: 4px; }
.tiles-edit { position: relative; }
.tiles-edit > summary { list-style: none; cursor: pointer; }
.tiles-edit > summary::-webkit-details-marker { display: none; }
.tiles-edit .period-form { flex-direction: column; align-items: stretch; width: min(340px, calc(100vw - 32px)); font-size: var(--fs-sm); }
.tiles-edit .bilan-filters { flex-direction: row; align-items: flex-end; width: max-content; }
.bilan-filter-bar .period-form { right: auto; left: 0; }
.pinned { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4); }
.pinned .chip { border-style: solid; text-decoration: none; color: var(--text-default); }
.pin-form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-bottom: var(--s-4); }
#meilleures .split-rows li, #surveiller .split-rows li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
@media print {
  .sidebar, .topbar, .tabbar, .bilan-tools, .pinned, .pin-form, .period-bar, .tip, .consultant form, .learned-link, .skip { display: none !important; }
  .bilan .board-grid { display: block; }
  .bilan .board-grid > * { break-inside: avoid; margin-bottom: 12px; }
  .card { box-shadow: 0 0 0 1px var(--border-subtle) !important; }
}
@media (max-width: 1023px) {
  .bilan .page-head { align-items: flex-start; }
  .period-bar { justify-content: flex-start; width: 100%; }
  .period-free > summary { display: inline-flex; align-items: center; min-height: 44px; }
  .period-form { position: static; margin-top: var(--s-2); box-shadow: var(--shadow-card); }
  .period-form .input, .period-form .btn { min-height: 44px; }
  .stuck-list a, .defs > summary { display: inline-flex; align-items: center; min-height: 44px; white-space: normal; }
  .ex-step { grid-template-columns: 96px minmax(0, 1fr); }
  .bilan-tools { align-items: center; gap: var(--s-2); }
  .bilan-actions { display: contents; }
  .bilan-actions > .muted { order: 9; width: 100%; }
  .bilan-tools .btn, .tiles-edit > summary { min-height: 44px; }
  .tiles-edit .bilan-filters { flex-direction: column; align-items: stretch; width: auto; }
  .week-bars { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: var(--s-4); }   /* the 12 weeks in two rows of 6 */
  .week-bar { height: 72px; }
  .board-grid > .span-8, .board-grid > .span-4 { grid-column: span 12; }
  .period { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; border-radius: var(--r-xl); }   /* 3 then 2 */
  .period a { grid-column: span 2; justify-content: center; min-height: 44px; padding: 0 var(--s-2); }
  .period a:nth-child(n+4) { grid-column: span 3; }
  .funnel-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); }
  .funnel-steps .arrow { display: none; }
  .fstep { margin: 0; padding: var(--s-2) var(--s-3); background: color-mix(in srgb, var(--bg-muted) 55%, var(--bg-default)); }
  .signed { align-items: flex-start; text-align: left; }
  .ab { grid-template-columns: minmax(0, 1fr); }
  .consultant-foot { margin: auto calc(-1 * var(--s-4)) calc(-1 * var(--s-4)); padding: var(--s-3) var(--s-4); }
  .status-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .status-head { min-height: 44px; }
  /* judge Bilan 1, defect 6: a name never cut (two lines, whole in its title), every lone link of 44 px */
  .status-col li a { display: flex; align-items: center; min-height: 44px; white-space: normal; overflow-wrap: anywhere; }
  .signed > a, .calc-list a, .learned-link a, .tile-goal a, .tile-link { display: inline-flex; align-items: center; min-height: 44px; }
  .signed > a:first-child { align-items: center; }
  .figures > summary { min-height: 44px; }
}

/* ---------- B413 (05/11): the bar over every list (four buttons, « + Filtre », the screen's own), the tabs the client
   chooses, Prospects on the Stitch board 12, the Boîte on the Stitch board 11. Theme variables only. */
.fbar { display: contents; }
.fbreak { display: none; }
.fbtn { position: relative; }
.fbtn > summary { list-style: none; cursor: pointer; }
.fbtn > summary::-webkit-details-marker { display: none; }
.fbtn.on > summary { background: var(--brand-subtle); color: var(--brand-text); }
.fbtn > summary .n { min-width: 18px; padding: 0 5px; border-radius: var(--r-full); background: var(--brand); color: var(--text-inverted);
  font-size: var(--fs-xs); font-weight: var(--fw-bold); line-height: 18px; text-align: center; }
.fpop { position: absolute; z-index: 35; top: calc(100% + 6px); left: 0; width: max-content; min-width: 230px; max-width: 320px;
  max-height: min(440px, 70vh); overflow-y: auto; display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-3);
  background: var(--bg-default); border: 1px solid var(--border-default); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); text-align: left; }
.fbtn.up > .fpop { top: auto; bottom: calc(100% + 6px); }
.fbtn.end > .fpop, .tabs-menu > .fpop, .list-tools .status-menu.fbtn > .fpop { left: auto; right: 0; }
.fpop-title { display: flex; flex-direction: column; gap: 2px; }
.fopts { display: flex; flex-direction: column; gap: 1px; }
.fopt { display: flex; align-items: center; gap: var(--s-2); min-height: 32px; padding: 0 var(--s-2); border-radius: var(--r-sm); font-size: var(--fs-sm);
  color: var(--text-default); text-decoration: none; cursor: pointer; }
.fopt:hover, .fopt.on { background: var(--bg-muted); color: var(--text-default); }
.fopt .check { gap: var(--s-2); align-items: center; }
.fopt input[type=checkbox], .fopt input[type=radio] { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); flex: none; }
.fopt .input.days { width: 76px; min-height: 30px; padding: 2px var(--s-2); }
.fopt .tick { width: 16px; display: inline-flex; color: var(--brand-text); }
.fpop .input { width: 100%; min-height: 34px; }
.fpop .label { font-size: var(--fs-xs); color: var(--text-subtle); font-weight: var(--fw-medium); }
.fpop-foot { position: sticky; bottom: calc(-1 * var(--s-3)); display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--s-2);
  margin: 0 calc(-1 * var(--s-3)) calc(-1 * var(--s-3)); padding: var(--s-2) var(--s-3) var(--s-3); background: var(--bg-default); }
.fmore > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 34px;
  padding: 0 var(--s-2); border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: var(--fw-medium); cursor: pointer; }
.fmore > summary::-webkit-details-marker { display: none; }
.fmore > summary:hover { background: var(--bg-muted); }
.fmore[open] > summary .icon { transform: rotate(180deg); }
.fmore-body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-1) 0 var(--s-2) var(--s-2); }
.fchips { align-items: center; padding: 0 var(--s-5) var(--s-3); }
.fchips .chip { min-height: 28px; padding: 0 var(--s-2) 0 var(--s-3); border: 0; background: var(--bg-muted); color: var(--text-default);
  font-size: var(--fs-xs); font-weight: var(--fw-medium); }
.fchips .chip:hover { background: var(--bg-emphasis); }
.fchips .save > .fpop { min-width: 260px; }
.menu-link .n { margin-left: auto; font-size: var(--fs-xs); color: var(--text-muted); }

/* the tabs: few, then the pinned views; « Onglets » (the gear) chooses them */
.tabs-row { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.tabs-row > .tabs { flex: 0 1 auto; min-width: 0; }
.tabs-row .tabs-menu > summary { color: var(--text-muted); width: 32px; min-height: 32px; }
.tabs .pinned .icon { color: var(--text-muted); }
.pill-tabs > .tabs { border-bottom: 0; gap: var(--s-1); align-items: center; }
.pill-tabs > .tabs a { min-height: 34px; padding: 0 var(--s-3); margin: 0; border: 0; border-radius: var(--r-full); color: var(--text-default);
  font-weight: var(--fw-medium); font-size: var(--fs-base); }
.pill-tabs > .tabs a:hover { background: var(--bg-muted); color: var(--text-default); }
.pill-tabs > .tabs a[aria-current="page"] { background: var(--brand); color: var(--text-inverted); }
.pill-tabs > .tabs .n { min-width: 22px; padding: 0 6px; border-radius: var(--r-full); background: var(--bg-emphasis); color: var(--text-subtle);
  font-size: var(--fs-xs); font-weight: var(--fw-bold); line-height: 18px; text-align: center; }
.pill-tabs > .tabs a[aria-current="page"] .n { background: color-mix(in srgb, var(--text-inverted) 24%, transparent); color: var(--text-inverted); }
.pill-tabs > .tabs a:not(.pinned) + a.pinned { margin-left: var(--s-4); }
.pill-tabs > .tabs a:not(.pinned) + a.pinned::before { content: ""; position: relative; left: calc(-1 * var(--s-3) - 8px); width: 1px; height: 20px;
  background: var(--border-default); }
.list-card > .tabs-row, .board-grid > .tabs-row { border-bottom: 1px solid var(--border-subtle); }
.list-card > .tabs-row { padding: var(--s-4) var(--s-5) 0; }
.list-card > .tabs-row > .tabs, .board-grid > .tabs-row > .tabs { gap: var(--s-6); border-bottom: 0; }
.list-card > .tabs-row > .tabs a, .board-grid > .tabs-row > .tabs a { gap: var(--s-2); padding: var(--s-2) 0 var(--s-3); white-space: nowrap;
  font-weight: var(--fw-medium); }
.list-card > .tabs-row > .tabs .n, .board-grid > .tabs-row > .tabs .n { min-width: 24px; padding: 0 var(--s-2); border-radius: var(--r-full);
  background: var(--bg-muted); color: var(--text-subtle); line-height: 20px; text-align: center; }
.list-card > .tabs-row > .tabs a[aria-current="page"] .n, .board-grid > .tabs-row > .tabs a[aria-current="page"] .n { background: var(--brand-subtle);
  color: var(--brand-text); }
.board-grid > .tabs-row { margin-bottom: calc(-1 * var(--s-2)); }

/* the list's tools on two lines (Stitch 12): the search and the four buttons, then « + Filtre », sort, columns, views, export */
.list-tools .fbtn > summary.btn { white-space: nowrap; }
.list-tools.wide .search.pill { flex: 1 1 220px; max-width: 400px; }
.rdv-tools.list-tools { padding: 0; }
.list-tools.wide .fbar > details:first-of-type { margin-left: auto; }
.list-tools.wide .fbreak { display: block; flex-basis: 100%; height: 0; }
.list-tools.wide .fbtn.add { margin-left: auto; }
.list-tools.wide .export { margin-left: 0; }
.list-tools .status-menu.fbtn > .card { position: absolute; }
.list-card > .chip-row.fchips { padding: 0 var(--s-5) var(--s-3); }

/* Prospects (Stitch 12): the table, the batch bar once rows are ticked, the foot */
.prospects-page .page-head { align-items: center; }
.list-table.pros { table-layout: auto; }
.list-table.pros th { background: var(--bg-subtle); }
.list-table.pros td { white-space: normal; }
@media (max-width: 1023px) {
  .list-table.pros td.register-cell { order: 5; flex: 1 1 100%; }
  .list-table.pros td.register-cell .only-phone { font-weight: var(--fw-medium); }
}
.list-table.pros td.c-name .person { min-width: 180px; }
.list-table.pros td.c-name .name { color: var(--text-default); font-size: var(--fs-base); }
.list-table.pros tbody tr { cursor: pointer; }
.list-table tbody tr.on { background: color-mix(in srgb, var(--brand-subtle) 55%, var(--bg-default)); }
.tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.bulk-bar { position: sticky; bottom: 0; z-index: 8; display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-3) var(--s-5);
  background: var(--bg-muted); border-top: 1px solid var(--border-subtle); }
.bulk-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); }
.bulk-count { font-size: var(--fs-md); white-space: nowrap; }
.bulk-line > .check { align-items: center; gap: var(--s-2); }
.bulk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.bulk-bar .btn.tool-btn { background: var(--bg-default); box-shadow: var(--shadow-card); }
.bulk-bar .btn.tool-btn:hover { background: var(--bg-subtle); }
.list-card > .pagination { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--border-subtle); }

/* the Boîte (Stitch 11): three cards side by side, the list, the conversation, the card */
/* B421: the Boîte's two views (« Mindsef », « Tout LinkedIn ») and the people who wrote outside Mindsef */
.inbox .box-scope { align-self: flex-start; flex-wrap: nowrap; }
.inbox .box-scope .seg-link { padding: 4px var(--s-3); white-space: nowrap; }
.inbox .box-scope .seg-link:focus-visible { box-shadow: var(--focus); outline: none; }
.inbox .outside-note { display: flex; align-items: center; gap: var(--s-2); margin: 0 calc(-1 * var(--s-4)) calc(-1 * var(--s-4)); padding: var(--s-2) var(--s-4);
  border-top: 1px solid var(--border-subtle); font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--text-subtle); text-decoration: none; }
.inbox .outside-note:hover { background: var(--bg-muted); color: var(--text-default); }
.inbox .outside-note:focus-visible { box-shadow: var(--focus); outline: none; }
.network-choice { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.network-choice legend { padding: 0; margin-bottom: var(--s-2); }
.list-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s-3); align-items: end; }
@media (max-width: 1023px) { .inbox .outside-note { min-height: 44px; } }
.inbox .list-search { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.inbox .list-search .search.pill { flex: 1 1 100%; max-width: none; }
.inbox .list-search .btn.tool-btn { min-height: 28px; padding: 0 var(--s-2) 0 10px; gap: 4px; font-size: var(--fs-xs); }
.inbox .pill-tabs > .tabs { flex-wrap: wrap; overflow: visible; gap: 2px; }
.inbox .pill-tabs > .tabs a { min-height: 30px; padding: 0 6px; gap: 4px; font-size: var(--fs-sm); }
.inbox .pill-tabs > .tabs .n { min-width: 18px; padding: 0 5px; }
.inbox .tabs-row { gap: 0; align-items: flex-start; }
.inbox .tabs-row .tabs-menu > summary { width: 28px; min-height: 30px; }
.inbox .col-head { gap: var(--s-3); padding: var(--s-4); }
.inbox .col-head .fchips { padding: 0; }
.inbox .col-head .tabs-row > .tabs { margin: 0; }
.inbox .row { align-items: flex-start; padding: var(--s-3) var(--s-4); }
.inbox .row .grow { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.inbox .row .line1 { align-self: stretch; align-items: center; }
.inbox .row .line1 b { font-size: var(--fs-base); }
.inbox .row .line2 { align-self: stretch; color: var(--text-default); }
.inbox .row .badge { margin-top: var(--s-1); }
/* judge app-1, B33 to B36: a box on each row, the batch bar in place of the search and the filters once one is ticked,
   the row's gestures on hover (its « … » menu on a phone), its pills */
.inbox .row-wrap { position: relative; display: flex; align-items: flex-start; border-bottom: 1px solid var(--border-subtle); }
.inbox .row-wrap:last-child { border-bottom: 0; }
.inbox .row-wrap > .row { flex: 1; min-width: 0; border-bottom: 0; padding-left: var(--s-1); }
.inbox .row-wrap.on, .inbox .row-wrap:has(.row[aria-current="true"]) { background: var(--brand-subtle); }
.inbox .row-check { display: flex; align-items: center; justify-content: center; flex: none; width: 36px; min-height: 44px; padding-top: var(--s-2); cursor: pointer; }
.inbox .row-check input { width: 16px; height: 16px; accent-color: var(--brand); }
.inbox .row .pills { display: flex; flex-wrap: wrap; gap: var(--s-1); max-width: 100%; }
.inbox .row .pills .badge { max-width: 100%; white-space: normal; text-align: left; }   /* a long « À toi : … » wraps, never cut */
.inbox .row-quick { position: absolute; right: var(--s-2); bottom: var(--s-2); z-index: 5; display: none; flex-wrap: nowrap; align-items: center;
  gap: 3px; padding: 3px; border-radius: var(--r-md); background: var(--bg-default); box-shadow: var(--shadow-pop); }
.inbox .row-wrap:hover .row-quick, .inbox .row-wrap:has(:focus-visible) .row-quick, .inbox .row-quick:has(details[open]) { display: flex; }
.inbox .row-quick .btn.tool-btn { min-height: 26px; padding: 0 6px; font-size: var(--fs-xs); white-space: nowrap; box-shadow: none; }
.inbox .row-quick .btn.tool-btn.icon-btn, .inbox .row-quick .fbtn > summary.btn { width: 26px; padding: 0; justify-content: center; }
.inbox .row-quick .fbtn .fpop { right: 0; left: auto; }
.inbox .row-wrap > .row-menu { align-self: center; margin-right: var(--s-1); }
.inbox .row-wrap > .row-menu .menu { width: 280px; }
.inbox .row-menu .menu-field { display: flex; flex-direction: column; gap: 2px; padding: var(--s-1) var(--s-3); }
.inbox .row-menu .menu-field .inline { flex-wrap: nowrap; } .inbox .row-menu .menu-field .input { flex: 1; min-width: 0; }
.inbox .row-menu .menu .btn.tool-btn { justify-content: flex-start; box-shadow: none; }
.inbox .inbox-bulk .bulk-bar { position: static; padding: var(--s-3); border-radius: var(--r-lg); box-shadow: none; background: var(--brand-subtle); }
.inbox .inbox-bulk .bulk-line { gap: var(--s-2); }
.inbox .inbox-bulk .bulk-count { flex: 1 1 100%; font-size: var(--fs-sm); }
.inbox .inbox-bulk .bulk-actions { margin-top: var(--s-2); }
.inbox .inbox-bulk .fbtn .fpop { left: 0; right: auto; }
.handover { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-3);
  padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--attention-subtle); color: var(--attention); }
.handover.done { background: var(--bg-default); color: var(--text-subtle); border: 1px solid var(--border-subtle); }
@media (min-width: 1024px) { .inbox .row-wrap > .row-menu { display: none; } }
@media (max-width: 1023px) {
  .inbox .row-wrap > .row-menu > summary { width: 44px; min-height: 44px; }
  .inbox .row-check { width: 44px; padding-top: var(--s-1); }
  .inbox .row-menu .menu-field .input { font-size: 16px; }     /* no zoom on a field */
}
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.inbox .conv-head { flex-wrap: wrap; align-items: flex-start; gap: var(--s-2) var(--s-3); padding: var(--s-4) var(--s-5); }
.inbox .conv-head .who { flex: 1 1 180px; }
.conv-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-left: auto; }
.conv-actions .no-contact > summary.btn { min-height: 28px; padding: 0 var(--s-1); }
.inbox .conv-empty .empty p { max-width: 62ch; }
.inbox .conv-head .who { display: flex; flex-direction: column; gap: 2px; }
.who-line { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.conv-name { font-size: var(--fs-md); }
.status-pick { display: inline-flex; align-items: center; gap: 2px; list-style: none; cursor: pointer; border-radius: var(--r-full); }
.status-pick::-webkit-details-marker { display: none; }
.status-pick .icon { color: var(--text-muted); }
.auto-note { line-height: 1.35; }
.ai-toggle { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 36px; padding: 0 var(--s-1); border: 0; background: none;
  color: var(--text-default); font-weight: var(--fw-medium); cursor: pointer; white-space: nowrap; }
.ai-toggle .track { position: relative; flex: none; width: 38px; height: 22px; border-radius: var(--r-full); background: var(--border-strong); transition: background .15s; }
.ai-toggle .thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-default);
  box-shadow: var(--shadow-raise); transition: transform .15s; }
.ai-toggle[aria-checked="true"] .track { background: var(--brand); }
.ai-toggle[aria-checked="true"] .thumb { transform: translateX(16px); }
.no-contact > summary { color: var(--text-subtle); white-space: nowrap; }
.no-contact .menu { width: 260px; }
.inbox .thread { gap: var(--s-3); }
.say { display: flex; flex-direction: column; gap: 4px; max-width: min(560px, 82%); }
.say.us { align-self: flex-end; align-items: flex-end; }
.say.them { align-self: flex-start; align-items: flex-start; }
.say .msg { max-width: 100%; }
.say > .meta { padding: 0 var(--s-1); font-size: var(--fs-xs); color: var(--text-muted); font-weight: var(--fw-medium); }
.inbox .msg { padding: var(--s-3) var(--s-4); font-size: var(--fs-md); }
.inbox .msg.us { background: var(--brand); color: var(--text-inverted); }
.inbox .msg.them { background: var(--bg-muted); border-color: transparent; }
.msg.voice { display: flex; flex-direction: column; gap: var(--s-2); font-style: normal; min-width: min(300px, 100%); }
.voice-head { display: flex; align-items: center; gap: var(--s-2); }
.voice-text { font-style: italic; color: var(--text-subtle); font-size: var(--fs-base); }
.msg.us .voice-text { color: inherit; }
.inbox .rule-card { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-4); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-lg); background: var(--bg-subtle); border: 1px solid var(--border-subtle); }
.inbox .composer { gap: var(--s-3); }
.draft-head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-1) var(--s-2); font-size: var(--fs-base); }
.draft-head > .icon { color: var(--brand-text); }
.draft-head .badge { margin-left: auto; }
.inbox .draft-box { border: 1px solid var(--border-subtle); background: var(--bg-subtle); }
.inbox .draft-box textarea { font-size: var(--fs-md); line-height: 1.55; }
.inbox .draft-box .draft-actions { border-top: 1px solid var(--border-subtle); }
.draft-foot { display: flex; align-items: center; gap: var(--s-2); }
.draft-foot .tell { flex: 1; min-width: 0; }
.draft-foot .tell .input { flex: 1; min-width: 0; }
.draft-foot > .btn.primary { border-radius: var(--r-full); padding: 0 var(--s-5); }
.side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.side-title { font-size: var(--fs-md); font-weight: var(--fw-bold); line-height: 1.3; }
.ext { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-text); text-decoration: none; font-weight: var(--fw-medium); white-space: nowrap; }
.facts { margin: 0; display: flex; flex-direction: column; }
.facts > div { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px var(--s-3); padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border-subtle); font-size: var(--fs-sm); }
.facts dt { color: var(--text-subtle); }
.facts dd { margin: 0; font-weight: var(--fw-medium); text-align: right; }
.facts .ok { display: inline-flex; align-items: center; gap: 4px; color: var(--success); }
/* B422: the e-mail and the phone of a prospect, clickable, each with where it comes from */
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.contact-list li { display: flex; align-items: flex-start; gap: var(--s-2); font-size: var(--fs-sm); min-height: 44px; }
.contact-list li > .icon { margin-top: 3px; color: var(--text-subtle); flex: none; }
.contact-list li > span { display: flex; flex-direction: column; min-width: 0; }
.contact-list a, td .contact { color: var(--brand-text); font-weight: var(--fw-medium); overflow-wrap: anywhere; }
td .contact-origin { display: block; }
.side-gesture { display: flex; flex-direction: column; gap: var(--s-2); }
.side-gesture .inline { flex-wrap: nowrap; }
.side-gesture .inline .input { flex: 1; min-width: 0; }
.side-gesture.notes { margin-top: auto; }
.side-gesture.notes .btn { align-self: flex-end; }
.side-empty { align-items: center; justify-content: center; text-align: center; color: var(--text-muted); }
/* B43 to B50, B229 (05/11): the Fil after the Stitch boards 24a, 24b, 24c, on the Boîte's three columns. The status: his
   choice in full, Mindsef's guess in outline (B220); the menu of his statuses, those that ask something open in place. */
.badge.stage { font-weight: var(--fw-medium); }
.badge.stage.chosen { background: var(--brand); color: var(--text-inverted); }
.badge.stage.guessed { background: transparent; color: var(--brand-text); box-shadow: inset 0 0 0 1px var(--brand); }
.badge.stage.proposal { background: transparent; color: var(--text-subtle); box-shadow: inset 0 0 0 1px var(--border-strong); }
.stage-pick .stage-menu { left: 0; right: auto; width: 272px; max-height: min(72vh, 560px); overflow-y: auto; }
.stage-menu form { margin: 0; }
.stage-item.current { color: var(--brand-text); font-weight: var(--fw-bold); }
.stage-item.proposed { box-shadow: inset 0 0 0 1px var(--brand); }
.stage-item .xsmall { margin-left: auto; color: var(--brand-text); font-weight: var(--fw-medium); white-space: nowrap; }
.stage-ask > summary { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm);
  list-style: none; cursor: pointer; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-default); }
.stage-ask > summary::-webkit-details-marker { display: none; }
.stage-ask > summary:hover { background: var(--bg-subtle); }
.stage-ask[open] > summary { background: var(--bg-subtle); }
.stage-form { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-2) var(--s-3) var(--s-3); }
.stage-form .inline { display: flex; gap: var(--s-2); }
.stage-form .inline .input { flex: 1; min-width: 0; }
.stage-note { padding: var(--s-2) var(--s-3) var(--s-1); line-height: 1.4; }
/* B49: « Rendu à toi » at the head of the thread */
.yours.handed { flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-4); padding: var(--s-4); border-radius: var(--r-lg); color: var(--text-default);
  background: var(--attention-subtle); border: 1px solid var(--attention); font-weight: var(--fw-regular); }
.handed-head { display: flex; align-items: center; gap: var(--s-2); color: var(--attention); }
.handed-head .xsmall { margin-left: auto; color: var(--text-subtle); }
.handed-reason { font-weight: var(--fw-medium); }
.handed-summary { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; color: var(--text-subtle); }
.handed-summary li { position: relative; padding-left: var(--s-3); }
.handed-summary li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.handed-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-1); }
.handed-actions form { margin: 0; }
/* B50: the client wrote himself, his own messages marked; the pause and its end */
.by-hand { display: inline-flex; align-items: center; gap: 4px; padding: 0 var(--s-1); font-size: var(--fs-xs); color: var(--text-subtle); }
.hand-pause, .relance-card { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: var(--s-4); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-lg); border: 1px solid var(--border-subtle); background: var(--bg-subtle); font-size: var(--fs-sm); }
.hand-pause > .icon { color: var(--text-subtle); }
.hand-pause form, .relance-card form { margin: 0; }
/* B48: the follow-up proposed from his words */
.relance-card { flex-direction: column; align-items: stretch; gap: var(--s-1); }
.relance-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.relance-line > .icon { color: var(--brand-text); }
.relance-change { position: relative; }
.relance-change > summary { list-style: none; }
.relance-change > summary::-webkit-details-marker { display: none; }
.relance-change[open] > form { display: flex; gap: var(--s-2); margin-top: var(--s-2); }
/* B47, B46: the draft's buttons, then why this reply */
.draft-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.draft-buttons .spacer { flex: 1; }
.draft-buttons .btn.primary { gap: var(--s-1); }
.draft-buttons .link-btn { color: var(--text-subtle); font-weight: var(--fw-medium); }
.why { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-2) var(--s-3); border-radius: var(--r-lg); background: var(--bg-subtle);
  border: 1px solid var(--border-subtle); }
.why-title { font-size: var(--fs-xs); }
.why-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-xs); color: var(--text-subtle); }
.why-list li { display: flex; align-items: flex-start; gap: var(--s-2); }
.why-list .icon { flex: none; margin-top: 1px; color: var(--success); }
.why-list li.warn { color: var(--attention); }
.why-list li.warn .icon { color: var(--attention); }
/* B229: the questions before a slot; B45: the dated journey */
.side-block { display: flex; flex-direction: column; gap: var(--s-2); padding-bottom: var(--s-4); border-bottom: 1px solid var(--border-subtle); }
.side-sub { margin: 0; font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.qa { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.qa form { margin: 0; }
.qa-box { display: flex; align-items: center; gap: var(--s-2); width: 100%; min-height: 32px; padding: 2px 0; border: 0; background: none; cursor: pointer;
  color: var(--text-default); font-size: var(--fs-sm); text-align: left; }
.qa-box .box { flex: none; display: grid; place-items: center; width: 16px; height: 16px; border-radius: var(--r-xs); border: 1px solid var(--border-strong);
  background: var(--bg-default); }
.qa-box.on .box { border-color: var(--brand); background: var(--brand); color: var(--text-inverted); }
.qa-box .box .icon { width: 12px; height: 12px; }
ol.journey { position: relative; margin: 0 0 0 8px; padding: 0 0 0 var(--s-4); list-style: none; display: flex; flex-direction: column; gap: var(--s-2);
  border-left: 1px solid var(--border-default); }
ol.journey li { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); font-size: var(--fs-sm); }
ol.journey li::before { content: ""; position: absolute; left: calc(-1 * var(--s-4) - 5px); top: .45em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg-default); box-shadow: 0 0 0 1px var(--border-strong); }
ol.journey li.done::before { background: var(--brand); box-shadow: 0 0 0 2px var(--bg-default); }
ol.journey li.planned::before { background: var(--bg-default); box-shadow: 0 0 0 1px var(--brand); }
ol.journey li.done .step { font-weight: var(--fw-medium); }
ol.journey li.todo { color: var(--text-muted); }
ol.journey .detail { color: var(--text-subtle); font-size: var(--fs-xs); font-weight: var(--fw-regular); }
ol.journey .when { flex: none; font-size: var(--fs-xs); color: var(--text-muted); }
@media (max-width: 1023px) {
  .stage-pick .stage-menu { position: fixed; left: var(--s-4); right: var(--s-4); top: auto; bottom: calc(72px + env(safe-area-inset-bottom)); width: auto; z-index: 45; }
  .stage-ask > summary, .qa-box, .relance-change > summary.btn, .hand-pause .btn, .relance-card .btn, .handed-actions .btn, .draft-buttons .btn { min-height: 44px; }
  .stage-form .input, .relance-card .input { min-height: 44px; font-size: 16px; }
}
@media (min-width: 1024px) {
  .inbox-page .inbox { grid-template-columns: 352px minmax(0, 1fr) 264px; gap: var(--s-3); padding: var(--s-4); height: 100vh; min-height: 640px; }
  .list-table.pros .row-menu > summary.btn { width: 32px; min-height: 32px; }
  .inbox-page .inbox > section, .inbox-page .inbox > aside { border: 1px solid var(--border-subtle); border-radius: var(--r-lg); overflow: hidden;
    background: var(--bg-default); }
  .inbox-page .inbox .conv { background: var(--bg-default); }
  .inbox-page .inbox .side { display: flex; flex-direction: column; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .inbox-page .inbox { grid-template-columns: 300px minmax(0, 1fr); height: auto; }
  .inbox-page .inbox:not(.has-conv) .side { display: none; }
  .inbox-page .inbox.has-conv .list { grid-row: span 2; max-height: calc(100vh - 48px); position: sticky; top: var(--s-6); }
}

/* phone: the popovers become a sheet over the tab bar, every target 44 px, the table becomes cards */
@media (max-width: 1023px) {
  .fpop, .fbtn.up > .fpop, .fbtn.end > .fpop, .tabs-menu > .fpop, .list-tools .status-menu.fbtn > .fpop { position: fixed; left: var(--s-4); right: var(--s-4);
    top: auto; bottom: calc(72px + env(safe-area-inset-bottom)); width: auto; max-width: none; max-height: 62vh; z-index: 45; }
  .fopt, .fmore > summary { min-height: 44px; }
  .fopt .input.days, .fpop .input { min-height: 44px; font-size: 16px; }
  .tabs-row .tabs-menu > summary { width: 44px; min-height: 44px; }
  .pill-tabs > .tabs a, .inbox .pill-tabs > .tabs a, .inbox .list-search .btn.tool-btn, .tabs-row .tabs-menu > summary.btn { min-height: 44px; }
  .fchips { padding: 0 var(--s-4) var(--s-3); }
  .list-card > .chip-row.fchips { padding: 0 var(--s-4) var(--s-3); }
  .list-tools.wide .fbar > details:first-of-type, .list-tools.wide .fbtn.add { margin-left: 0; }
  .list-tools.wide .fbreak { display: none; }
  .list-tools.wide .search.pill { flex-basis: 100%; max-width: none; }
  .list-table.pros td { display: block; width: auto; padding: 0; border: 0; min-width: 0; font-size: var(--fs-sm); }
  .list-table.pros td.c-check { position: absolute; left: 0; top: var(--s-2); padding: 0; }
  .list-table.pros td.c-name { order: 1; flex: 1 1 calc(100% - 60px); margin-left: -36px; }
  .list-table.pros td.c-more { order: 2; flex: 0 0 44px; padding: 0; }
  .list-table.pros td.c-poste { order: 3; flex: 1 1 100%; }
  .list-table.pros td.c-entreprise { order: 4; }
  .list-table.pros td:is(.c-statut, .c-categorie, .c-etiquettes, .c-echange, .c-cible, .c-lieu, .c-ajout, .c-source) { order: 6; }
  .list-table.pros td:is(.c-email, .c-telephone) { order: 7; flex: 1 1 100%; }   /* B422: under the rest, a line each */
  .list-table.pros td:empty { display: none; }
  .list-table.pros td.c-name .person { min-width: 0; }
  .bulk-bar { bottom: calc(58px + env(safe-area-inset-bottom)); padding: var(--s-3) var(--s-4); }
  .inbox .conv-head { flex-wrap: wrap; padding: var(--s-3) var(--s-4); }
  .inbox .conv-head .who { flex: 1 1 calc(100% - 112px); }
  .conv-actions { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .conv-actions .no-contact > summary.btn { min-height: 44px; }
  .ai-toggle { min-height: 44px; }
  .inbox .composer { position: static; }      /* the draft follows the bubbles: a 350 px card stuck at the bottom hid them */
  .draft-foot { flex-wrap: wrap; }
  .draft-foot .tell { flex: 1 1 100%; }
  .draft-foot > .btn.primary { margin-left: auto; }
  .say { max-width: 88%; }
}

/* ---------- Retenu (refonte 05/11, B110, B114, B206): the Stitch board 13 on the 12-column grid of Aujourd'hui. One head and
   five tabs for the whole memory; « À trancher » on top; the proposed rules, then the active ones by theme on 8 columns;
   the drafts sent untouched and the last corrections on 4. The two columns end together. */
.retenu-tabs { gap: var(--s-5); }
.retenu-tabs a { padding: var(--s-2) 0 var(--s-3); font-size: var(--fs-base); font-weight: var(--fw-medium); }
.retenu-tabs a[aria-current="page"] { font-weight: var(--fw-bold); }
.retenu-tabs .n { font-size: var(--fs-sm); color: var(--text-subtle); }
.tab-lead { display: flex; flex-direction: column; gap: 2px; }
.tab-lead h2 { font-size: var(--fs-md); }
.tab-lead p { max-width: 72ch; font-size: var(--fs-sm); color: var(--text-subtle); }
.settle { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-3) var(--s-6); padding: var(--s-5) var(--s-6);
  border: 1px solid color-mix(in srgb, var(--attention-strong) 45%, transparent); border-radius: var(--r-xl); background: var(--attention-subtle); }
.settle-lead { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--s-1); color: var(--text-subtle); }
.settle h2 { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--text-default); }
.settle .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--attention-strong); }
.settle-row { display: contents; }
.pair { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); min-width: 0; }
.rule-pill { padding: var(--s-1) var(--s-3); border: 1px solid color-mix(in srgb, var(--attention-strong) 45%, transparent); border-radius: var(--r-md);
  background: var(--bg-default); font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-default); overflow-wrap: anywhere; }
.vs { font-size: var(--fs-sm); font-style: italic; color: var(--text-subtle); }
.settle-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-2); }
.settle .btn.outline, .settle .btn.ghost { background: var(--bg-default); }
.side-part { display: flex; flex-direction: column; gap: var(--s-4); }
.side-part + .side-part { padding-top: var(--s-6); border-top: 1px solid var(--border-subtle); }
.rule-list { display: flex; flex-direction: column; }
.proposed-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid var(--border-subtle); }
.proposed-row:first-child { padding-top: 0; border-top: 0; }
.proposed-row:last-child { padding-bottom: 0; }
.rule-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rule-main { font-weight: var(--fw-medium); overflow-wrap: anywhere; }
.rule-meta { font-size: var(--fs-xs); color: var(--text-subtle); overflow-wrap: anywhere; }
.rule-meta > span + span::before { content: " · "; }
.rule-meta.warn { color: var(--attention); }
.choice { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-2); max-width: 55%; }
.rules-card { position: relative; }
.rules-card > .card-head { min-height: calc(40px + var(--s-4)); padding: 0 200px var(--s-4) 0; border-bottom: 1px solid var(--border-subtle); }
.rules-card > .rule-add:not([open]) { margin-bottom: calc(-1 * var(--s-4)); }   /* closed, only its button shows, in the head */
.rule-add > summary { position: absolute; top: var(--s-6); right: var(--s-6); list-style: none; }
.rule-add > summary::-webkit-details-marker { display: none; }
.rule-add[open] > summary { background: var(--bg-muted); }
.add-form { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-lg); background: var(--bg-muted); }
.add-form .field textarea { min-height: 64px; }
.add-form:not(:has(#rule-for option[value="personne"]:checked)) .rule-person { display: none; }   /* B110: « Une personne » */
.theme-index { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.theme-index a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 28px; padding: 0 var(--s-3); border-radius: var(--r-full); background: var(--bg-muted);
  color: var(--text-subtle); font-size: var(--fs-xs); font-weight: var(--fw-medium); text-decoration: none; }
.theme-index a:hover { color: var(--text-default); }
.theme-index .num { color: var(--text-default); }
.note { display: flex; flex-direction: column; scroll-margin-top: var(--s-6); }
.note h3 { padding-top: var(--s-2); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-subtle); }
.rule-rows { margin: 0; padding: 0; list-style: none; }
.rule-row { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--border-subtle); scroll-margin-top: var(--s-6); }
.rule-row:last-child { border-bottom: 0; }
.rule-row > .rule-text { flex: 1 1 auto; }
.rule-row .rule-main { font-weight: var(--fw-regular); }
.rule-row.off .rule-main { color: var(--text-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.applied { flex: none; font-size: var(--fs-sm); color: var(--text-subtle); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rule-row .row-menu .menu form { display: contents; }
.rule-edit { flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-lg); background: var(--bg-muted); }
.big-figure { font-size: 48px; font-weight: var(--fw-bold); line-height: 1; letter-spacing: -0.03em; color: var(--brand-text); }
.untouched .progress.lg { height: 10px; }
.card-titles { display: flex; flex-direction: column; gap: 2px; }
.card-titles h2, .untouched h2 { font-size: var(--fs-md); }
.corrections { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.corrections li { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-3) 0; border-bottom: 1px solid var(--border-subtle); }
.corrections li:first-child { padding-top: 0; }
.corrections li:last-child { border-bottom: 0; padding-bottom: 0; }
.corrections p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.corrections .before { font-size: var(--fs-sm); color: var(--text-muted); }
.corrections .before del { color: var(--text-subtle); text-decoration-thickness: 1px; }
.corrections .after { font-weight: var(--fw-medium); }
.corrections mark { padding: 0 2px; border-radius: 3px; background: var(--brand-subtle); color: var(--brand-text); }
.corrections q:lang(fr) { quotes: "\00AB\00A0" "\00A0\00BB"; }   /* French quotes with their space; other languages keep theirs */
@media (max-width: 1023px) {
  .retenu-tabs { gap: var(--s-4); }
  .retenu-tabs a { min-height: 44px; }
  .settle { grid-template-columns: minmax(0, 1fr); padding: var(--s-4); }
  .settle-actions { justify-content: flex-start; }
  .settle .btn { min-height: 44px; }
  .rule-row .rule-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* one line on a phone, all of it in Modifier */
  .proposed-row { flex-direction: column; align-items: stretch; gap: var(--s-2); }
  .choice { max-width: none; justify-content: flex-start; }
  .choice .btn { min-height: 44px; }
  .rules-card > .card-head { padding-right: 0; }
  .rule-add > summary { position: static; min-height: 44px; }
  .theme-index a { min-height: 44px; }
  .rule-row { flex-wrap: wrap; gap: var(--s-1) var(--s-3); }
  .rule-row > .rule-text { flex: 1 1 calc(100% - 60px); }
  .rule-row .applied { order: 3; flex-basis: 100%; }
  .rule-row .row-menu > summary { width: 44px; min-height: 44px; }
  .add-form .input, .add-form textarea, .rule-edit .input { font-size: 16px; }   /* no zoom on a field */
}

/* ---------- Rendez-vous (refonte 05/11, B411): the Stitch board 10 on the shared list, the meetings by day, the call
   sheet in the preview; Réglages > Rappels de RDV (B412) on Réglages > Relances' cards */
.pose-menu { position: relative; }
.pose-menu > summary { list-style: none; }
.pose-menu > summary::-webkit-details-marker { display: none; }
.btn.pose-btn { gap: var(--s-2); border-radius: var(--r-full); background: var(--bg-default); color: var(--text-default); box-shadow: var(--shadow-card);
  font-weight: var(--fw-medium); }
.btn.pose-btn:hover { background: var(--bg-muted); }
.pose-card.card { position: absolute; right: 0; top: calc(100% + var(--s-2)); z-index: 30; width: min(340px, calc(100vw - 32px)); padding: var(--s-5);
  gap: var(--s-3); border-radius: var(--r-xl); box-shadow: var(--shadow-pop); }
.pose-card .inline { flex-wrap: nowrap; } .pose-card .inline .field { flex: 1; min-width: 0; }
.topbar-action .pose-card.card { left: 0; right: auto; }
.late-card.card { flex-direction: row; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); background: var(--attention-subtle); box-shadow: none; }
.late-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--r-full);
  background: var(--bg-default); color: var(--attention); }
.late-card b { font-weight: var(--fw-medium); color: var(--text-default); }
.late-card a { color: var(--text-default); }
.answer { display: inline-flex; flex-wrap: wrap; gap: var(--s-1); }
.late-card .answer .btn { border: 0; border-radius: var(--r-full); background: var(--bg-default); color: var(--text-default); box-shadow: var(--shadow-card); padding: 0 var(--s-4); }
.late-card .answer .btn:hover { background: var(--bg-muted); }
.list-table.rdv col.c-name { width: 21%; } .list-table.rdv col.c-entreprise { width: 15%; } .list-table.rdv col.c-poste { width: 16%; }
.list-table.rdv col.c-quand { width: 10%; } .list-table.rdv col.c-preuve { width: 13%; } .list-table.rdv col.c-etat { width: 13%; }
.list-table.rdv col.c-action { width: 15%; }
.list-table.rdv.t-passes col.c-action { width: 23%; }
.list-table.rdv.example col.c-name { width: 36%; } .list-table.rdv.example col.c-quand { width: 24%; }
@media (min-width: 1024px) { .list-table.rdv { min-width: 640px; } }
.list-table.rdv td.c-entreprise .cut, .list-table.rdv td.c-preuve { color: var(--text-subtle); font-weight: var(--fw-regular); }
.list-table.rdv td.c-quand .hour { display: block; font-weight: var(--fw-medium); white-space: nowrap; }
.list-table.rdv td.c-quand .rank { display: block; font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; }
.list-table.rdv td.c-etat .badge { white-space: nowrap; }
.list-table.rdv th.c-action, .list-table.rdv td.c-action { text-align: center; }
.list-table.rdv td.c-action .btn { white-space: nowrap; }
.list-table.rdv .person .badge { flex: none; }
.list-table tr.day-head th { padding: var(--s-2) var(--s-5); background: color-mix(in srgb, var(--bg-muted) 55%, transparent); text-align: left;
  font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-default); }
.list-table tr.day-head .day { display: inline-flex; align-items: center; gap: var(--s-2); }
.list-table tr.day-head .icon { color: var(--brand-text); }
.list-table tr.day-head.today th { color: var(--brand-text); }
.list-table tr.day-none td { padding: var(--s-3) var(--s-5); font-size: var(--fs-sm); color: var(--text-muted); }
.list-table tbody tr.day-head, .list-table tbody tr.day-none { cursor: default; }
.list-card:not(:has(input[name="choix"]:checked)) .rdv-foot { display: none; }   /* the foot shows once a meeting is ticked */
.rdv-facts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--border-subtle); }
.rdv-facts .when { display: inline-flex; align-items: center; gap: var(--s-2); flex-basis: 100%; font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.rdv-facts .when .icon { color: var(--brand-text); }
.preview-block.ask { padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); background: var(--attention-subtle); }
.preview-block.ask .field { gap: 2px; }
.preview-block.ask .inline { flex-wrap: nowrap; } .preview-block.ask .inline .input { min-width: 0; }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; }
.sheet { display: flex; flex-direction: column; }
.sheet-line { padding: var(--s-2) 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--text-subtle); }
.sheet-line + .sheet-line { border-top: 1px solid var(--border-subtle); }
.sheet-line b { font-weight: var(--fw-medium); color: var(--text-default); }
.sheet-line ol { margin: var(--s-1) 0 0; padding-left: var(--s-5); }
.sheet-moved { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--attention); }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.sheet-actions form { display: flex; } .sheet-actions .btn { width: 100%; }
#fiche .sheet { margin-bottom: var(--s-2); }
@media (min-width: 1024px) { #rdv:has(.preview:not([hidden])) > :is(.empty, #exemple) { margin-right: 380px; } }   /* the example's sheet beside, never over */
@media (max-width: 1023px) { .preview[data-default] { display: none; } }
.reminder-card .before-only, .reminder-card .day-only, .reminder-card .booked-only, .reminder-card .noshow-only { display: none; }
.reminder-card:has(select.moment option[value="before"]:checked) .before-only,
.reminder-card:has(select.moment option[value="day"]:checked) .day-only { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.reminder-card:has(select.moment option[value="booked"]:checked) .booked-only,
.reminder-card:has(select.moment option[value="noshow"]:checked) .noshow-only { display: block; }
.reminder-card .rule-head .stack-0 { gap: 2px; }
.reminder-card select.input { width: auto; min-height: 36px; padding: 2px var(--s-6) 2px var(--s-3); }
.reminder-card .input.time { width: 112px; min-height: 36px; padding: 4px var(--s-3); border: 0; border-radius: var(--r-md); background: var(--bg-muted); }
@media (max-width: 1023px) {
  .rdv .page-actions { width: 100%; }
  .pose-menu { flex: 1 1 auto; } .pose-menu > summary { width: 100%; }
  .pose-card.card { left: 0; right: auto; }
  .late-card.card { flex-wrap: wrap; padding: var(--s-4); }
  .late-card p { flex: 1 1 calc(100% - 48px); }
  .late-card .answer { width: 100%; padding-left: 44px; }
  .late-card .answer .btn { flex: 1; }
  .list-table.rdv td { display: block; width: auto; padding: 0; border: 0; min-width: 0; font-size: var(--fs-sm); }
  .list-table.rdv td.c-check { position: absolute; left: 0; top: var(--s-2); padding: 0; }
  .list-table.rdv td.c-name { order: 1; flex: 1 1 calc(100% - 16px); margin-left: -36px; }
  .list-table.rdv td.c-more { order: 2; flex: 0 0 44px; padding: 0; }
  .list-table.rdv td.c-entreprise { order: 3; flex: 1 1 100%; }
  .list-table.rdv td.c-poste { order: 3; flex: 1 1 100%; }
  /* judge app-1, defect 14: the hour and its rank on their own line, the proof opens the next one, never after a lone dot */
  .list-table.rdv td.c-quand { order: 6; flex: 1 1 100%; } .list-table.rdv td.c-quand :is(.hour, .rank) { display: inline; }
  .list-table.rdv td.c-quand .rank::before { content: " · "; color: var(--text-muted); }
  .list-table.rdv td.c-preuve { order: 6; }
  .list-table.rdv td.c-etat { order: 6; }
  .list-table.rdv td.c-action { order: 8; flex: 1 1 100%; text-align: left; }
  .list-table.rdv td.c-action .answer { display: flex; } .list-table.rdv td.c-action .answer .btn { flex: 1; }
  .list-table.rdv td.vide { display: none; }
  .list-table.rdv tr.day-head, .list-table.rdv tr.day-none { display: block; padding: 0; }
  .list-table.rdv tr.day-head::before, .list-table.rdv tr.day-none::before { content: none; }
  .list-table.rdv tr.day-head th { display: block; padding: var(--s-2) var(--s-4); }
  .list-table.rdv tr.day-none td { display: block; padding: var(--s-3) var(--s-4); }
  #exemple .list-table.rdv tbody tr { padding-left: 52px; }
  .sheet-actions .btn { min-height: 44px; }
  .reminder-card select.input, .reminder-card .input.time { font-size: 16px; min-height: 44px; }
}

/* ---------- Réglages, ta fiche (D38, B151): the Stitch board 08 kept by Youssef on 05/11. The settings menu is a card
   on a computer (« Ta fiche » first, « Tous les réglages » under it, the pause at its foot) and stays a row of chips on
   a phone; the sheet's cards on 7 of the 12 columns, « Modifier en parlant » on the other 5, beside them. */
@media (min-width: 1024px) {
  .settings-nav { padding: var(--s-2); border-radius: var(--r-xl); background: var(--bg-default); box-shadow: var(--shadow-card-settings); gap: 2px; }
  .settings-nav .nav-group { margin: var(--s-3) 0 var(--s-1); padding: 0 var(--s-3); }
  .settings-nav a { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); }
  .settings-nav a:hover { background: var(--bg-muted); }
  .settings-nav a[aria-current="page"] { background: var(--bg-muted); color: var(--brand-text); font-weight: var(--fw-bold); box-shadow: none; }
}
.settings-nav .sheet-link .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: none; }
.settings-nav .sheet-link .icon { margin-left: auto; display: none; }
.settings-nav .sheet-link[aria-current="page"] .dot, .settings-nav .sheet-link[aria-current="page"] .icon { display: block; }
.nav-pause { margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--border-subtle); }
.nav-pause button { display: flex; align-items: center; gap: var(--s-2); width: 100%; min-height: 36px; padding: 0 var(--s-3); border: 0; border-radius: var(--r-md);
  background: none; color: var(--text-subtle); font-size: var(--fs-sm); font-weight: var(--fw-medium); cursor: pointer; text-align: left; }
.nav-pause button:hover { background: var(--error-subtle); color: var(--error); }
.sheet-head { align-items: center; }
.sheet-state { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); flex-wrap: wrap; padding: var(--s-3) var(--s-6);
  border-radius: var(--r-xl); background: var(--bg-default); box-shadow: var(--shadow-card-settings); }
.sheet-state .state-line { display: flex; align-items: center; gap: var(--s-2) var(--s-4); flex-wrap: wrap; }
.sheet-state .badge { font-size: var(--fs-sm); padding: 4px var(--s-3); }
.settings-body.sheet-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6); align-items: start; max-width: none; }
.sheet-body > * { grid-column: 1 / -1; }
.sheet-body > .sheet-cards { grid-column: span 7; }
.sheet-body > .talk { grid-column: span 5; }
.sheet-body.talk-closed > .sheet-cards { grid-column: span 9; }
.sheet-cards { display: flex; flex-direction: column; gap: var(--s-6); min-width: 0; }
.sheet-card { border-radius: var(--r-xl); background: var(--bg-default); box-shadow: var(--shadow-card-settings); overflow: hidden; scroll-margin-top: var(--s-6); }
.sheet-card > h2 { padding: var(--s-4) var(--s-6); font-size: var(--fs-lg); background: color-mix(in srgb, var(--bg-muted) 55%, var(--bg-default)); }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 52px; padding: var(--s-3) var(--s-6);
  border-top: 1px solid var(--border-subtle); }
.sheet-card > h2 + .sheet-row { border-top: 0; }
.sheet-row .line { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.sheet-row .label, .sheet-row .why { font-size: var(--fs-xs); color: var(--text-subtle); }
.sheet-row .text { overflow-wrap: anywhere; }
.sheet-row .badge { margin-top: var(--s-1); }
.sheet-row .edit { flex: none; display: inline-flex; align-items: center; min-height: 32px; color: var(--brand-text); font-size: var(--fs-sm);
  font-weight: var(--fw-medium); text-decoration: none; }
.sheet-row .edit:hover { text-decoration: underline; }
.sheet-row.ask { flex-wrap: wrap; background: var(--attention-subtle); }
.ask-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.sheet-row.empty-line { color: var(--text-subtle); }
.talk { position: sticky; top: var(--s-6); display: flex; flex-direction: column; max-height: calc(100vh - var(--s-12)); min-width: 0;
  border-radius: var(--r-xl); background: var(--bg-default); box-shadow: var(--shadow-card-settings); overflow: hidden; scroll-margin-top: var(--s-6); }
.talk-head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5); border-bottom: 1px solid var(--border-subtle); }
.talk-head h2 { flex: 1; font-size: var(--fs-lg); }
.talk-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-full); background: var(--brand-subtle); color: var(--brand-text); }
.talk-body { flex: 1; overflow-y: auto; padding: var(--s-5); }
.talk .chat .bot { border: 0; background: var(--bg-muted); }
.talk .chat .me { background: var(--brand); color: var(--text-inverted); }
.talk-choices { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.talk-input { display: flex; align-items: flex-end; gap: var(--s-1); margin: 0 var(--s-4) var(--s-4); padding: var(--s-1) var(--s-1) var(--s-1) var(--s-4);
  border: 1px solid var(--border-default); border-radius: var(--r-xl); background: var(--bg-default); }
.talk-input:focus-within { border-color: var(--brand); box-shadow: var(--focus); }
.talk-input textarea { flex: 1; min-width: 0; min-height: 36px; max-height: 160px; padding: 8px 0; border: 0; resize: none; field-sizing: content; background: transparent; }
.talk-input textarea:focus { outline: none; }
.talk-input .send { flex: none; width: 36px; min-height: 36px; padding: 0; border-radius: var(--r-full); }
/* judge app-3, 36 (C10, C20): the dictation button (web/_micro.html) is one component, this round one wherever a field has
   it: the assistant, the thread's draft, the set-up; 44 px on a phone. button.micro: the site's p.micro is another thing */
button.micro { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--r-full);
  background: none; color: var(--text-subtle); cursor: pointer; }
button.micro:hover { background: var(--bg-muted); color: var(--text-default); }
button.micro.ecoute { color: var(--error); }
.ia-form .choice-card { padding: var(--s-5); }       /* the modes' text on the same edge as the cards under them */
/* B139, B138, B254, B140 (05/11): L'IA et l'envoi on the Réglages forms of the boards 07 and 08 (lines, switches, segments) */
.ia-form .setting .what .series { color: var(--brand-text); font-weight: var(--fw-medium); }
.ia-form .offer-line { margin-top: var(--s-2); }
.ia-form .offer-line .btn { gap: var(--s-1); }
.ia-form .shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.ia-form .inline-num { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.ia-form .field-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: var(--s-2); }
.ia-form .setting .what textarea { margin-top: var(--s-2); }
.ia-form .setting.conduct .inline { flex: none; flex-wrap: nowrap; }
.ia-form .setting.conduct select { width: auto; min-width: 220px; }
.ia-form .setting.conduct .days { display: none; align-items: center; gap: var(--s-2); }
.ia-form .setting.conduct:has(option[value="relancer"]:checked) .days { display: inline-flex; }
.ia-form .choice-card input.input { position: static; width: 100%; height: auto; margin-top: var(--s-2); accent-color: auto; }
.ia-form .switch input:disabled { cursor: default; }
@media (max-width: 1023px) {
  .ia-form .setting.conduct .inline { flex-wrap: wrap; }
  .ia-form .setting.conduct select { min-width: 0; width: 100%; font-size: 16px; min-height: 44px; }
  .ia-form .shortcuts .btn { min-height: 44px; }
}
@media (max-width: 1359px) {
  .sheet-body > .sheet-cards, .sheet-body > .talk, .sheet-body.talk-closed > .sheet-cards { grid-column: 1 / -1; }
  .talk { position: static; max-height: none; }
}
@media (max-width: 1023px) {
  .nav-pause, .settings-nav .sheet-link[aria-current="page"] .dot, .settings-nav .sheet-link[aria-current="page"] .icon { display: none; }
  .sheet-state { padding: var(--s-3) var(--s-4); }
  .sheet-card > h2 { padding: var(--s-3) var(--s-4); }
  .sheet-row { padding: var(--s-3) var(--s-4); }
  .sheet-row .edit { min-height: 44px; }
  .talk-head { padding-left: var(--s-4); }
  .talk-body { padding: var(--s-4); }
  .talk-input { margin: 0 var(--s-3) var(--s-3); }
  .talk-input textarea { font-size: 16px; }
  .talk-input .send, button.micro { width: 44px; height: 44px; min-height: 44px; }
  .talk-choices .btn, .ask-actions .btn { min-height: 44px; }
}

/* ---------- Réglages > Abonnement et factures (6.1): the Stitch board 16 kept by Youssef on 05/11. The formula on 8 of the
   12 columns, the means of payment on the other 4, « Résilier mon abonnement » discreet under them. */
.crumbs { display: flex; align-items: center; gap: var(--s-1); flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-subtle); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--text-default); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text-default); font-weight: var(--fw-medium); }
.settings-body.billing-body { max-width: none; }
.billing-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6); align-items: stretch; }
.billing-card { grid-column: span 8; display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; padding: var(--s-8);
  border-radius: var(--r-xl); background: var(--bg-default); box-shadow: var(--shadow-card-settings); }
.billing-card.pay { grid-column: span 4; }
.billing-card.wide { grid-column: 1 / -1; }
.billing-card h2 { font-size: var(--fs-lg); }
.billing-card .stack { gap: var(--s-2); }
.plan-line { display: flex; align-items: center; gap: var(--s-2) var(--s-3); flex-wrap: wrap; }
.plan-line b { font-size: var(--fs-md); }
.next-charge b { font-weight: var(--fw-medium); }
.yearly-box { margin-top: auto; display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-radius: var(--r-lg);
  background: var(--brand-subtle); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 22%, transparent); }
.yearly-box > .icon { color: var(--brand-text); }
.yearly-box p { flex: 1; min-width: 0; }
.yearly-box .btn { flex: none; background: var(--bg-default); border-color: var(--brand); color: var(--brand-text); }
.pay-line { display: flex; align-items: flex-start; gap: var(--s-3); }
.pay-line .icon { margin-top: 1px; color: var(--text-subtle); }
.billing-card.pay > .btn { margin-top: auto; white-space: normal; text-align: center; padding: var(--s-2) var(--s-4); }
.cancel-link { font-size: var(--fs-sm); }
.cancel-link a { color: var(--text-subtle); text-decoration: none; }
.cancel-link a:hover { color: var(--error); text-decoration: underline; }
@media (max-width: 1279px) { .billing-card, .billing-card.pay { grid-column: 1 / -1; } }
@media (max-width: 1023px) {
  .billing-card { padding: var(--s-5); gap: var(--s-4); }
  .yearly-box { flex-wrap: wrap; padding: var(--s-4); }
  .yearly-box p { flex-basis: calc(100% - 40px); }
  .yearly-box .btn, .billing-card .btn { width: 100%; }
  .cancel-link a { display: inline-flex; align-items: center; min-height: 44px; }
  .invoice-table thead { display: none; }
  .invoice-table, .invoice-table tbody { display: block; }
  .invoice-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-3);
    padding: var(--s-4) 0; border-bottom: 1px solid var(--border-subtle); }
  .invoice-table tr:last-child { border-bottom: 0; }
  .invoice-table td { display: block; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  .invoice-table td:not(:last-child) { grid-column: 1; }
  .invoice-table td:last-child { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
  .invoice-table td .btn { min-height: 44px; }
}

/* ---------- the assistant (B116 to B119): the Stitch board 18 kept by Youssef on 05/11. A fixed, labelled button at the
   bottom right of every app page; a panel on the right, 420 px wide over a light veil on a computer, the whole screen on
   a phone. It shares the sheet's conversation styles (.talk, .chat, .talk-input); the card of an action sits under the
   assistant's last line. */
.assistant-toggle { position: fixed; right: var(--s-6); bottom: var(--s-6); z-index: 35; display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 40px; padding: 0 var(--s-4); border-radius: var(--r-full); background: var(--brand); color: var(--text-inverted);
  box-shadow: var(--shadow-pop); font-size: var(--fs-base); font-weight: var(--fw-medium); text-decoration: none; }
.assistant-toggle:hover { background: var(--brand-emphasis); color: var(--text-inverted); }
/* judge app-3, 35 (B116, as G3 did on a phone): an open thread's card scrolls in its own column, under the floating button.
   There the button goes up into the top bar, labelled, on a computer too; everywhere else it stays where it is. */
.assistant-top { display: none; }
.assistant-top .icon { color: var(--brand-text); }
body:has(.inbox.has-conv) .assistant-toggle { display: none; }
@media (min-width: 1024px) { body:has(.inbox.has-conv) .topbar .assistant-top { display: inline-flex; } }
.assistant-scrim { position: fixed; top: 0; right: 0; bottom: 0; left: var(--sidebar-w); z-index: 39; background: var(--scrim); }
.talk.assistant { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: 420px; max-width: 100vw; max-height: none; border-radius: 0;
  border-left: 1px solid var(--border-subtle); box-shadow: var(--shadow-panel); }
.assistant-head { min-height: 64px; padding: 0 var(--s-3) 0 var(--s-6); border-bottom: 0; gap: var(--s-2); }
.assistant-head h2 { font-size: var(--fs-md); font-weight: var(--fw-bold); }
.assistant-mark { color: var(--brand-text); }
.assistant-body { display: flex; flex-direction: column; gap: var(--s-6); padding: var(--s-2) var(--s-6) var(--s-4); }
.assistant-phrases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.assistant-phrases button { min-height: 44px; padding: var(--s-2) var(--s-3); border: 0; border-radius: var(--r-md); background: var(--bg-muted); color: var(--text-default);
  font-size: var(--fs-sm); line-height: 1.45; text-align: left; cursor: pointer; }
.assistant-phrases button:hover { background: var(--bg-emphasis); }
.assistant-phrases button:last-child:nth-child(odd) { grid-column: 1 / -1; }
.assistant-chat { gap: var(--s-4); }
.assistant-chat .talk-choices .btn, .assistant-gestures .btn { border-radius: var(--r-full); }
.assistant-card { display: flex; flex-direction: column; gap: var(--s-4); max-width: 95%; padding: var(--s-4); border-radius: var(--r-lg);
  background: var(--bg-default); box-shadow: var(--shadow-card); }
.assistant-card > header { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.assistant-card h3 { font-size: var(--fs-base); font-weight: var(--fw-bold); }
.assistant-card .badge { flex: none; background: var(--bg-muted); color: var(--text-subtle); font-weight: var(--fw-medium); }
.assistant-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.assistant-people li { display: flex; align-items: baseline; gap: var(--s-3); padding: var(--s-1) 0; font-size: var(--fs-sm); }
.assistant-people .dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); transform: translateY(-2px); }
.assistant-people .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.assistant-people .draft { color: var(--text-subtle); font-size: var(--fs-xs); line-height: 1.5; white-space: pre-wrap; }
.assistant-text { line-height: 1.55; overflow-wrap: anywhere; }
.assistant-lines { margin: 0; display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--fs-sm); }
.assistant-lines dt { color: var(--text-subtle); font-size: var(--fs-xs); }
.assistant-lines dd { margin: 0; }
.assistant-lines ol { margin: var(--s-1) 0 0; padding-left: 1.3em; }
.assistant-safe { display: flex; align-items: center; gap: var(--s-2); color: var(--text-subtle); font-size: var(--fs-sm); }
.assistant-gestures { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.assistant-gestures .btn { font-weight: var(--fw-medium); }
.assistant-gestures .end { margin-left: auto; }
.assistant-link { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--fs-sm); font-weight: var(--fw-medium); text-decoration: none; }
.assistant-link:hover { text-decoration: underline; }
.talk.assistant .talk-input { margin: var(--s-4); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-3); border: 0; border-radius: var(--r-lg); background: var(--bg-muted); }
.talk.assistant .talk-input:focus-within { box-shadow: var(--focus); }
.talk.assistant .talk-input textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talk-input .send.labelled { width: auto; min-height: 32px; padding: 0 var(--s-3); border-radius: var(--r-md); gap: var(--s-2); }
@media (max-width: 1023px) {
  .assistant-toggle { right: var(--s-4); bottom: calc(72px + env(safe-area-inset-bottom)); min-height: 44px; }
  .page:not(.wide) { padding-bottom: calc(136px + env(safe-area-inset-bottom)); }   /* the last line scrolls above the button */
  /* a conversation keeps its field at the foot of the screen (.inbox .composer): the button goes up into the top bar */
  body:has(.inbox.has-conv) .assistant-toggle { top: var(--s-2); bottom: auto; right: 64px; min-height: 40px; box-shadow: none; }
  .assistant-scrim { display: none; }
  .talk.assistant { width: 100%; z-index: 60; border-left: 0; box-shadow: none; padding-bottom: env(safe-area-inset-bottom); }
  .assistant-head { padding-left: var(--s-4); }
  .assistant-body { padding: var(--s-2) var(--s-4) var(--s-4); }
  .assistant-card { max-width: 100%; }
  .assistant-gestures .btn, .assistant-phrases button { min-height: 44px; }
  .talk.assistant .talk-input { margin: var(--s-3); }
  .talk.assistant .talk-input .send.labelled { min-height: 44px; }
  body.assistant-open { overflow: hidden; }
}

/* ---------- B415, the team account (Stitch board 21): the selector « Toute l'équipe / un commercial », the screen
   Équipe, the column « Commercial » of the lists, the line that says whose settings Réglages changes. */
.team-switch { position: relative; margin: 0 0 var(--s-2); }
.team-switch > summary { list-style: none; display: flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md); background: var(--bg-muted); font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-default); cursor: pointer; }
.team-switch > summary::-webkit-details-marker { display: none; }
.team-switch > summary:hover { background: var(--bg-emphasis); }
.team-switch .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.team-switch .dot.on { background: var(--brand); }
.team-switch .grow { flex: 1; min-width: 0; }
.team-switch .cut { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-switch .menu { top: calc(100% + 4px); bottom: auto; }
.team-switch .menu .tick { display: inline-flex; width: 16px; color: var(--brand-text); }
.topbar .team-switch { flex: 1; min-width: 0; max-width: 220px; margin: 0 var(--s-2); }
.topbar .team-switch > summary { min-height: 44px; }

.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); }
.kpis .tile { gap: var(--s-2); }
.kpi-line { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; }
.flush-card.card { padding: 0; gap: 0; overflow: hidden; }
.flush-card .card-head.pad { padding: var(--s-5) var(--s-6) var(--s-4); }
.sellers-table thead th { background: var(--bg-muted); white-space: normal; line-height: 1.3; }
.board .sellers-table tbody th { background: transparent; }
.sellers-table td, .sellers-table th { padding: var(--s-3) var(--s-2); vertical-align: middle; }   /* 9 columns (app-2, 24) */
.sellers-table td:first-child, .sellers-table th:first-child { padding-left: var(--s-6); }
.sellers-table .n { text-align: right; white-space: nowrap; }
.offers-table td { vertical-align: top; }                                  /* B189: the offers side by side */
.offers-table .offer-base, .offers-table .offer-state { display: block; font-weight: var(--fw-regular); text-transform: none; letter-spacing: 0; }
.offers-verdict { margin: 0; padding: var(--s-4) var(--s-6) var(--s-5); }
.sellers-table th.seller { color: var(--text-default); font-size: var(--fs-sm); font-weight: var(--fw-medium); text-transform: none; letter-spacing: 0; }
.sellers-table th.seller > * { vertical-align: middle; }
.sellers-table th.seller .avatar { display: inline-grid; margin-right: var(--s-2); }
.sellers-table tfoot th, .sellers-table tfoot td { background: var(--bg-muted); color: var(--text-default); font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.sellers-table .cut { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sellers-table .inline-form { display: inline; }
.sellers-table .seller .link-btn { color: var(--text-default); font-weight: var(--fw-medium); text-decoration: none; text-align: left; min-height: 32px; }
.sellers-table .seller .link-btn:hover { color: var(--brand-text); text-decoration: underline; }
.goal-cell { display: inline-flex; align-items: center; gap: var(--s-2); min-width: 72px; }
.goal-cell .progress { flex: 1; min-width: 32px; }
.flush-card { justify-content: space-between; }                  /* the total sits at the card's foot, as on the board */
.flush-card > .table-wrap { flex: 1; display: flex; }
.flush-card .sellers-table { align-self: stretch; width: 100%; }
.list-card .worked { display: block; width: fit-content; max-width: 100%; margin: var(--s-1) 0 0; white-space: normal; line-height: 1.3; }
.base-count { font-size: var(--fs-md); font-weight: var(--fw-medium); }
.kept-apart { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); background: var(--bg-muted); }
.kept-apart .icon { flex: none; margin-top: 2px; color: var(--brand-text); }
.roles-list { margin: 0; padding-left: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--fs-sm); color: var(--text-subtle); }
.roles-list li::marker { color: var(--brand); }
.roles-card .menu-link { color: var(--brand-text); font-weight: var(--fw-medium); padding-left: 0; }
.base-card .card-head .icon, .roles-card .card-head .icon { color: var(--text-muted); }

.c-commercial { white-space: nowrap; font-size: var(--fs-sm); color: var(--text-subtle); max-width: 160px; }
col.c-commercial { width: 140px; }
.c-commercial .cut { display: block; overflow: hidden; text-overflow: ellipsis; }
.seller-tag { display: block; font-size: var(--fs-xs); color: var(--brand-text); font-weight: var(--fw-medium); }
.group-head { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.list-card .worked { font-size: var(--fs-xs); }
.team-health { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.team-health li { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); }
.team-health .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope-line { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); margin-bottom: var(--s-4); border-radius: var(--r-md);
  background: var(--brand-subtle); color: var(--brand-text); }
.member .xsmall { display: block; }
@media (max-width: 1023px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .head-actions { width: 100%; }
  .head-actions .btn { min-height: 44px; }
  .sellers-table td, .sellers-table th { padding: var(--s-2) var(--s-3); }
  .flush-card .card-head.pad { padding: var(--s-4) var(--s-4) var(--s-3); }
  .offers-verdict { padding: var(--s-3) var(--s-4) var(--s-4); }                     /* B189: on the card head's line */
  .sellers-table td:first-child, .sellers-table th:first-child { padding-left: var(--s-4); }
}

/* ---------- B417 « Relancer ce groupe » (05/11): the shortcuts at the top of Relancer, the group strip over the list,
   the panel drawn on the preview card of Stitch board 22, the « Relances de groupe » cards (its campaign cards) */
.shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.shortcuts > .small { margin-right: var(--s-1); }
.shortcut { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 36px; padding: 0 var(--s-4); border-radius: var(--r-full);
  background: var(--bg-default); box-shadow: var(--shadow-card); color: var(--text-default); font-size: var(--fs-sm); font-weight: var(--fw-bold); text-decoration: none; }
.shortcut .icon { color: var(--text-subtle); }
.shortcut:hover { background: var(--bg-muted); color: var(--text-default); }
.shortcut.on, .shortcut.on:hover { background: var(--brand); color: var(--text-inverted); }
.shortcut.on .icon { color: currentColor; }
.group-strip { display: flex; align-items: center; gap: var(--s-3); margin: 0 var(--s-5) var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); background: var(--brand-subtle); }
.group-strip-icon { display: grid; color: var(--brand-text); }
.group-strip .xsmall { display: block; margin-top: 2px; }
.group-strip .btn { flex: none; }
.group-panel.card { padding: 0; gap: 0; }
.group-form { display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-6); }
.group-head { display: flex; align-items: flex-start; gap: var(--s-3); }
.group-head h2 { font-size: var(--fs-lg); line-height: 1.25; }
.group-head .btn.icon-only { margin: -10px -10px 0 0; }
.group-block { display: flex; flex-direction: column; gap: var(--s-3); }
.group-label { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-subtle); letter-spacing: .02em; }
.seg-radio { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: var(--s-1); border-radius: var(--r-full); background: var(--bg-emphasis); }
.seg-radio label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 var(--s-3); border-radius: var(--r-full);
  font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-subtle); text-align: center; cursor: pointer; }
.seg-radio input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg-radio label:has(input:checked) { background: var(--bg-default); color: var(--text-default); box-shadow: var(--shadow-card); }
.seg-radio label:has(input:focus-visible) { box-shadow: var(--focus); }
.group-form:has(input[name="message"][value="ai"]:checked) .only-fixed { display: none; }
.group-form:not(:has(input[name="message"][value="ai"]:checked)) .only-ai { display: none; }
.group-form textarea.input { min-height: 76px; }
.group-people { display: flex; flex-direction: column; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.group-people li { display: flex; align-items: flex-start; gap: var(--s-3); }
.group-people .stack-0 { gap: 2px; }
.group-who { display: flex; flex-direction: column; min-width: 0; }
.group-quote { display: block; margin-top: var(--s-1); padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--bg-muted); font-size: var(--fs-sm); line-height: 1.4; }
.group-quote[hidden] { display: none; }
.group-people .link-btn { align-self: flex-start; margin-top: 2px; }
.group-block > .btn { align-self: flex-start; }
.group-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.group-fields .stack-0 { gap: var(--s-1); font-weight: var(--fw-medium); }
.group-fields .input { width: 100%; min-height: 40px; }
.group-pace { display: flex; align-items: center; gap: var(--s-2); color: var(--text-subtle); }
.group-foot { display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--border-subtle); }
.group-stop { color: var(--text-subtle); }
.group-alert { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--attention-subtle); color: var(--attention); font-weight: var(--fw-medium); }
.group-alert.card { padding: var(--s-4) var(--s-6); }
.group-card.card { gap: var(--s-4); }
.group-card-head { display: flex; align-items: flex-start; gap: var(--s-4); }
.group-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: var(--fs-md); }
.group-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.group-actions form { display: contents; }
.group-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin: 0; padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); background: var(--bg-subtle); }
.group-figures dt { font-size: var(--fs-sm); color: var(--text-subtle); }
.group-figures dd { margin: 0; font-size: var(--fs-xl); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; line-height: 1.2; }
.group-figures dd.rdv { color: var(--brand-text); }
.group-message { color: var(--text-subtle); }
.group-message .xsmall { display: block; }
/* B81: the steps « Quand / Alors / Jusqu'à », and the follow-up said in one sentence */
.group-step { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--brand-text); }
.group-steps { display: grid; gap: var(--s-3); margin: 0; padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); background: var(--bg-subtle); }
.group-steps > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s-3); }
.group-steps dt { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--brand-text); padding-top: 2px; }
.group-steps dd { margin: 0; font-size: var(--fs-sm); }
.group-steps dd .xsmall { display: block; margin-top: 2px; }
.say-group { display: flex; flex: 1 1 340px; gap: var(--s-2); min-width: 0; margin-left: auto; }
.say-group .input { flex: 1 1 auto; min-width: 0; min-height: 36px; }
.say-group .btn { flex: none; }
@media (max-width: 1023px) {
  .shortcut { min-height: 44px; }
  .say-group { flex-basis: 100%; flex-wrap: wrap; margin-left: 0; }
  .say-group .input { flex-basis: 100%; min-height: 44px; font-size: 16px; }
  .say-group .btn { width: 100%; min-height: 44px; }
  .group-steps { padding: var(--s-3) var(--s-4); }
  .group-steps > div { grid-template-columns: 1fr; gap: 2px; }
  .group-strip { flex-wrap: wrap; margin: 0 var(--s-4) var(--s-3); }
  .group-strip p { flex-basis: calc(100% - 40px); }
  .group-strip .btn { width: 100%; min-height: 44px; }
  .group-form { padding: var(--s-4); }
  .group-who { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: var(--s-2); }
  .group-quote { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .seg-radio label, .group-block > .btn, .group-foot .btn, .group-actions .btn, .group-people .link-btn { min-height: 44px; }
  .group-fields .input, .group-form textarea.input { font-size: 16px; }
  .group-card-head { flex-direction: column; gap: var(--s-3); }
  .group-actions { width: 100%; }
  .group-actions .btn { flex: 1 1 auto; }
  .group-figures { padding: var(--s-3) var(--s-4); gap: var(--s-2); }
  .group-figures dd { font-size: var(--fs-lg); }
}

/* B419: « Ouvrir sur un constat ». The client's grid (priority, what he looks at, his threshold, how he says it) and
   his checks, corrected in place; a field's label shows above it on a phone. The finding under a first message. */
.audit-block { display: flex; flex-direction: column; gap: var(--s-2); }
.audit-block h3 { margin: 0; font-size: var(--fs-md); }
.audit-block-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.audit-grid, .audit-checks { display: flex; flex-direction: column; gap: var(--s-2); }
.audit-head, .audit-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-2); align-items: stretch; }
.audit-head > :nth-child(1), .audit-row > :nth-child(1) { grid-column: span 1; }
.audit-head > :nth-child(2), .audit-row > :nth-child(2) { grid-column: span 3; }
.audit-head > :nth-child(n+3), .audit-row > :nth-child(n+3) { grid-column: span 4; }
.audit-row textarea.input { flex: 1; }
.audit-head { padding: 0 var(--s-1); font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-subtle); }
.audit-row label, .check-row label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.audit-row .input, .check-row .input { width: 100%; font-size: var(--fs-sm); }
.audit-row textarea.input { min-height: 44px; resize: vertical; }
.audit-row.new .input, .check-row.new .input { border-style: dashed; }
.audit-row .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.check-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-2); align-items: end; }
.check-row > :first-child { grid-column: span 8; }
.check-row > :last-child { grid-column: span 4; }
.check-row .lbl { font-size: var(--fs-xs); color: var(--text-subtle); }
.check-row + .check-row .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dictate { display: flex; align-items: flex-start; gap: var(--s-2); }
.dictate textarea { flex: 1; min-width: 0; }
.finding-line { display: flex; align-items: flex-start; gap: var(--s-1); margin-top: var(--s-1); color: var(--text-subtle); }
.finding-line .icon { flex: none; margin-top: 1px; color: var(--brand); }
.finding-line b { color: var(--text-default); }
.why-list li.why-source .icon { color: var(--brand); }
.why-list li.why-source a { color: var(--brand-text); overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .audit-head { display: none; }
  .audit-row > :nth-child(n), .check-row > :nth-child(n) { grid-column: 1 / -1; }
  .audit-row, .check-row { grid-template-columns: minmax(0, 1fr); padding: var(--s-3); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); }
  .audit-row .lbl, .check-row + .check-row .lbl { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: var(--fs-xs); color: var(--text-subtle); }
  .audit-row .input, .check-row .input { font-size: 16px; min-height: 44px; }
}

/* ---------- B166, the bell (Stitch board 23 kept by Youssef 05/11): in the top bar, its count of unread, the menu under
   it (one notification a line with its next action, « Tout marquer comme lu », « Paramètres »). On a computer the bar
   holds it alone on the right (the sidebar has the brand and the account); on a phone it sits before the avatar. */
@media (min-width: 1024px) {
  .main-col { --topbar-h: 56px; }
  .topbar { display: flex; align-items: center; justify-content: flex-end; height: var(--topbar-h); padding: 0 var(--s-8);
    background: var(--bg-default); border-bottom: 1px solid var(--border-subtle); }
  .topbar > .brand, .topbar > .team-switch, .topbar .topbar-me { display: none; }
  .inbox-page .inbox { height: calc(100vh - var(--topbar-h)); }
}
.topbar-end { display: flex; align-items: center; gap: var(--s-1); }
.bell { position: relative; }
.bell > summary { list-style: none; }
.bell > summary::-webkit-details-marker { display: none; }
.bell-button { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-full);
  color: var(--text-subtle); cursor: pointer; }
.bell-button:hover, .bell[open] > .bell-button { background: var(--bg-muted); color: var(--text-default); }
.bell-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full);
  background: var(--brand); color: var(--text-inverted); font-size: 11px; font-weight: var(--fw-bold); line-height: 18px; text-align: center; }
.bell-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 35; width: 360px; display: flex; flex-direction: column;
  background: var(--bg-default); border: 1px solid var(--border-subtle); border-radius: var(--r-xl); box-shadow: var(--shadow-pop); overflow: hidden; }
.bell-head { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-4); }
.bell-head h2 { font-size: var(--fs-lg); }
.bell-settings { margin-left: auto; font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--brand-text); text-decoration: none; }
.bell-settings:hover { text-decoration: underline; }
.bell-list { list-style: none; margin: 0; padding: 0; max-height: min(60vh, 480px); overflow-y: auto; }
.bell-list li { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--border-subtle); }
.bell-list li:hover { background: color-mix(in srgb, var(--bg-muted) 55%, var(--bg-default)); }
.bell-line { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.bell-line p { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-default); overflow-wrap: anywhere; }
.bell-list li.unread .bell-line p::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 6px 2px 0; border-radius: 50%;
  background: var(--brand); vertical-align: middle; }
.bell-line .when { flex: none; font-size: var(--fs-xs); color: var(--text-subtle); }
.bell-body { font-size: var(--fs-xs); color: var(--text-subtle); overflow-wrap: anywhere; }
.bell-list .btn { align-self: flex-end; min-height: 28px; border-radius: var(--r-full); }
.bell-empty { padding: var(--s-4); border-top: 1px solid var(--border-subtle); font-size: var(--fs-sm); color: var(--text-subtle); }
.bell-foot { padding: var(--s-1); text-align: center; background: color-mix(in srgb, var(--bg-muted) 55%, var(--bg-default)); }
.bell-foot button { min-height: 32px; padding: 0 var(--s-3); border: 0; background: none; color: var(--text-subtle); font-size: var(--fs-sm);
  font-weight: var(--fw-medium); cursor: pointer; }
.bell-foot button:hover { color: var(--text-default); }
@media (max-width: 1023px) {
  .bell-button { width: 44px; height: 44px; }
  .bell-panel { position: fixed; left: var(--s-2); right: var(--s-2); top: 64px; width: auto; max-height: calc(100vh - 150px); }
  .bell-list { max-height: none; flex: 1 1 auto; }
  .bell-list .btn, .bell-foot button, .bell-settings { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ---------- B165, Réglages > Notifications (Stitch board 23 kept by Youssef 05/11): one card, the table event by channel
   (in the app, by mail, on the phone) grouped as the board, the team's choice, then the way to the phone under it. */
.settings-body.notif-body { max-width: none; }
.notif-card { display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-6) var(--s-8); border-radius: var(--r-xl);
  background: var(--bg-default); box-shadow: var(--shadow-card-settings); }
.notif-scroll { overflow-x: auto; }
.notif-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.notif-table thead th { height: 44px; width: 13%; padding: 0 var(--s-2); background: color-mix(in srgb, var(--bg-muted) 55%, var(--bg-default));
  color: var(--text-subtle); font-size: var(--fs-sm); font-weight: var(--fw-bold); text-align: center; }
.notif-table thead th:first-child { width: auto; padding-left: var(--s-4); text-align: left; border-radius: var(--r-md) 0 0 var(--r-md); }
.notif-table thead th:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }
.notif-table .notif-group th { padding: var(--s-6) var(--s-4) var(--s-2); text-align: left; font-size: var(--fs-xs); font-weight: var(--fw-bold);
  letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.notif-table tbody th[scope="row"] { padding: var(--s-3) var(--s-4); text-align: left; font-weight: var(--fw-regular); }
.notif-table .ev { display: block; font-size: var(--fs-md); font-weight: var(--fw-medium); color: var(--text-default); }
.notif-table .help { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--text-subtle); }
.notif-table td { padding: 0 var(--s-2); text-align: center; }
.notif-table tbody tr:not(.notif-group):hover { background: color-mix(in srgb, var(--bg-muted) 35%, var(--bg-default)); }
.notif-tick { display: inline-grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.notif-tick input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.notif-team { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); padding: var(--s-4); border-top: 1px solid var(--border-subtle); }
.notif-team .what { display: flex; flex-direction: column; gap: 2px; }
.notif-team .what span { font-size: var(--fs-sm); color: var(--text-subtle); }
.notif-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-6); flex-wrap: wrap; padding: var(--s-3) var(--s-4);
  border-radius: var(--r-lg); background: color-mix(in srgb, var(--bg-muted) 55%, var(--bg-default)); }
.notif-foot .notif-say { display: flex; align-items: flex-start; gap: var(--s-2); flex: 1 1 420px; min-width: 0; font-size: var(--fs-sm); color: var(--text-subtle); }
.notif-foot .notif-say > div { display: flex; flex-direction: column; gap: var(--s-1); }
.notif-foot .notif-say .icon { margin-top: 2px; color: var(--text-muted); }
.notif-foot .devices { color: var(--text-default); font-weight: var(--fw-medium); }
.notif-foot .notif-lead { color: var(--text-default); }
.notif-steps { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 1023px) {
  .notif-card { padding: var(--s-4); gap: var(--s-4); }
  .notif-table thead th { padding: 0 2px; font-size: var(--fs-xs); }
  .notif-table thead th:first-child { padding-left: var(--s-3); }
  .notif-table tbody th[scope="row"], .notif-table .notif-group th { padding-left: var(--s-3); padding-right: var(--s-2); }
  .notif-table td { padding: 0; }
  .notif-table .ev { font-size: var(--fs-base); }
  .notif-team { padding: var(--s-4) 0 0; gap: var(--s-3); }
  .notif-foot .notif-say > .icon { display: none; }
  .notif-foot .form-actions .btn, .notif-card > .form-actions .btn { min-height: 44px; }
}

/* ---------- tip (C23): the sentences beyond the first, in an infobulle */
.tip { position: relative; display: inline-flex; align-items: center; vertical-align: middle; margin-left: var(--s-1);
  color: var(--text-subtle); cursor: help; border-radius: var(--r-full); }
.tip:hover, .tip:focus-visible { color: var(--brand-text); }
.tip:focus { outline: none; }
.tip:focus-visible { box-shadow: var(--focus); }
.tip:hover::after, .tip:focus::after { content: attr(data-tip); position: absolute; z-index: 60; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%); width: max-content; max-width: min(300px, 80vw); padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md); background: var(--bg-inverted); color: var(--text-inverted); box-shadow: var(--shadow-pop);
  font-size: var(--fs-xs); font-weight: var(--fw-regular); line-height: var(--lh-base); text-align: left; text-transform: none;
  letter-spacing: normal; white-space: normal; pointer-events: none; }
@media (max-width: 1023px) {
  .tip { min-width: 24px; min-height: 24px; justify-content: center; }
  .tip:hover::after, .tip:focus::after { left: auto; right: -8px; transform: none; }
}

/* ---------- cadre (05/11): the common frame and the cockpit's components, LISTE-FOND B2, B3, B4, C3, C6, C7, C8, C10
   to C13, and the judge's G3. Values from tokens.css only; dark mode through the same variables. */

/* B2, C7: the light sidebar, always labelled, in groups; the nav scrolls so the two cards at its foot stay seen */
.sidebar { background: var(--bg-default); border-right: 1px solid var(--border-subtle); }
.sidebar .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.nav a { border-radius: var(--r-md); }
.nav a:hover { background: var(--bg-muted); }
.nav a[aria-current="page"] { background: var(--brand); color: var(--text-inverted); }
.nav a[aria-current="page"] .icon { color: var(--text-inverted); }
.nav-group { margin-top: var(--s-3); }
.gauge { border: 0; border-radius: var(--r-lg); background: var(--bg-muted); }
.account-card { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-2); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.account-card .who-row { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-1); min-width: 0; }
.account-card .who { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.account-card .who b { font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-card .who span { font-size: var(--fs-xs); color: var(--text-muted); }
.account-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.account-links a, .account-links button { display: flex; align-items: center; gap: var(--s-2); width: 100%; min-height: 30px; padding: 0 var(--s-2);
  border: 0; border-radius: var(--r-md); background: none; color: var(--text-subtle); font-size: var(--fs-xs); font-weight: var(--fw-medium);
  text-decoration: none; cursor: pointer; white-space: nowrap; }
.account-links a:hover, .account-links button:hover { background: var(--bg-muted); color: var(--text-default); }
.account-links a[aria-current="page"] { color: var(--brand-text); }

/* B3, C8: the top bar, no title, the cockpit's page colour and line */
.topbar { display: flex; align-items: center; gap: var(--s-3); position: sticky; top: 0; z-index: 25; min-height: 56px;
  padding: var(--s-2) var(--s-8); background: var(--bg-subtle); border-bottom: 1px solid var(--border-subtle); }
.topbar-action { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.topbar-pills { display: inline-flex; gap: var(--s-2); }
.only-desk { display: inline-flex; }
.pill.state-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 var(--s-3); border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: var(--fw-medium); text-decoration: none; white-space: nowrap; }
.pill.state-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.state-pill.active { background: var(--success-subtle); color: var(--success); }
.pill.state-pill.paused { background: var(--attention-subtle); color: var(--attention); }
.pill.state-pill.stopped { background: var(--error-subtle); color: var(--error); }
.pill.state-pill.validate, .pill.state-pill.mixed { background: var(--brand-subtle); color: var(--brand-text); }
.pill.state-pill.auto { background: var(--success-subtle); color: var(--success); }
.pill.state-pill:hover { box-shadow: inset 0 0 0 1px currentColor; }
.topbar-setup .setup { position: relative; }
.topbar-setup .setup > summary { list-style: none; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 30px; padding: 0 var(--s-3);
  border-radius: var(--r-full); background: var(--bg-default); box-shadow: var(--shadow-card); cursor: pointer; font-weight: var(--fw-medium); }
.topbar-setup .setup > summary::-webkit-details-marker { display: none; }
.topbar-setup .setup .progress { width: 48px; }
/* C13: the list under its pill, floating, the page never darkened */
.topbar-setup .setup .menu { top: calc(100% + 8px); bottom: auto; left: auto; right: 0; width: 320px; padding: var(--s-2) var(--s-3); gap: 0; }
.topbar-setup .setup .menu > a { padding: var(--s-2) 0; }
.topbar-setup .setup .menu .btn { margin-top: var(--s-2); }
@media (min-width: 1024px) {
  .setup-line { display: none; }                       /* the pill lives in the top bar on a computer */
  .today-bar .badge, .today-bar .setup { display: none; }   /* the same pills are in the top bar */
}

/* B4: the named confirmation, then the toast */
.confirm-dialog { width: min(440px, calc(100vw - 32px)); padding: var(--s-6); border: 0; border-radius: var(--r-xl); background: var(--bg-default);
  color: var(--text-default); box-shadow: var(--shadow-pop); }
.confirm-dialog::backdrop { background: var(--scrim); }
.confirm-dialog h2 { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.confirm-dialog .confirm-actions { justify-content: flex-end; margin-top: var(--s-5); }
.notice.toast { position: fixed; left: 50%; bottom: var(--s-6); z-index: 70; transform: translateX(-50%); width: max-content;
  max-width: min(560px, calc(100vw - 32px)); padding: var(--s-3) var(--s-5); border-radius: var(--r-lg); background: var(--bg-inverted);
  color: var(--text-inverted); box-shadow: var(--shadow-pop); font-size: var(--fs-sm); font-weight: var(--fw-medium);
  animation: toast-out .3s ease 6s forwards; }
@keyframes toast-out { to { opacity: 0; visibility: hidden; } }
/* B1: a text opened in the app's own window */
.window-dialog { width: min(820px, calc(100vw - 32px)); height: min(80vh, 900px); padding: 0; border: 0; border-radius: var(--r-xl);
  background: var(--bg-default); color: var(--text-default); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; overflow: hidden; }
.window-dialog:not([open]) { display: none; }
.window-dialog::backdrop { background: var(--scrim); }
.window-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border-subtle); }
.window-dialog iframe { flex: 1; width: 100%; border: 0; background: var(--bg-default); }
body.bare { background: var(--bg-default); }
.bare-page { padding: var(--s-6) var(--s-4); }

/* C3: cards without a border, 21.6 px, a soft shadow and a 1 px ring; hover for a clickable one, 2 px accent when chosen */
.card { border: 0; border-radius: var(--r-xl); box-shadow: var(--shadow-card); }
a.card:hover, .card.clickable:hover, .card[data-href]:hover { background: var(--bg-hover); }
.card.on, .card.chosen, .card[aria-current="true"] { box-shadow: 0 0 0 2px var(--brand); }
.attention-card { border: 0; background: var(--attention-subtle); }

/* C6: the status pills, rounded, 11 px, semibold */
.badge { font-size: 11px; font-weight: var(--fw-medium); }
.badge.brand { background: color-mix(in srgb, var(--brand) 12%, var(--bg-default)); }

/* C10: the main button a blue pill, 13 px semibold; fields 12 px; the switch 42 x 25, green when on; segments; tiles */
.btn.primary { border-radius: var(--r-full); font-size: 13px; font-weight: var(--fw-medium); }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=url],
.field input[type=search], .field input[type=tel], .field input[type=time], .field input[type=date], .field select, .field textarea, textarea.input {
  border-radius: var(--r-lg); border-color: var(--border-default); }
.switch { width: 42px; height: 25px; }
.switch span::after { width: 19px; height: 19px; }
.switch input:checked + span { background: var(--c-green); }
.switch input:checked + span::after { transform: translateX(17px); }
.segmented, .seg, .modes { background: var(--bg-muted); }
.choice-card { border: 2px solid var(--border-default); }
.choice-card:has(input:checked) { border-color: var(--brand); box-shadow: none; background: var(--brand-subtle); }

/* C11: the draft in an orange-edged card, bubbles of 18 px with a 6 px corner, the send bar's shadow */
.msg { border-radius: var(--r-bubble); }
.msg.them { background: var(--bg-muted); border-color: transparent; border-bottom-left-radius: var(--r-bubble-tail); }
.msg.us { background: var(--brand); color: var(--text-inverted); border-bottom-right-radius: var(--r-bubble-tail); }
.msg.draft { border: 1.5px solid var(--c-orange); background: color-mix(in srgb, var(--c-orange) 5%, var(--bg-default));
  border-bottom-right-radius: var(--r-bubble-tail); }
.draft-box { border: 1.5px solid var(--c-orange); border-radius: var(--r-xl); background: color-mix(in srgb, var(--c-orange) 5%, var(--bg-default)); }
.draft-box .msg + .msg, .draft-box > * + * { border-top: 1px dashed color-mix(in srgb, var(--c-orange) 40%, transparent); }
.inbox .composer { border-top: 1px solid var(--border-subtle); box-shadow: var(--shadow-composer); }

/* C12: rows on a line, the list's head on grey, the open row lighter, chosen chips in near-black */
.table th { background: var(--bg-muted); }
.table td { border-bottom-color: var(--border-subtle); }
.table tr.open td, .table tr[aria-expanded="true"] td { background: var(--bg-hover); }
.chip { border-radius: var(--r-full); }
.chip.on { border-style: solid; border-color: var(--bg-inverted); background: var(--bg-inverted); color: var(--text-inverted); }

/* G3 (judge app-2), C20: on a phone the assistant sits in the top bar, never over a sticky bar's right button; the
   switches take a 44 px target */
@media (max-width: 1023px) {
  .topbar { padding: var(--s-2) var(--s-4); background: var(--bg-default); }
  .only-desk { display: none !important; }
  .btn.only-phone, .topbar .brand.only-phone { display: inline-flex; }
  .topbar .brand { padding: 0; }
  .assistant-toggle { display: none !important; }
  .switch input { inset: -10px -2px; }
  .notice.toast { top: calc(var(--s-3) + env(safe-area-inset-top)); bottom: auto; }
}
.rows-head { padding: var(--s-3) var(--s-4) var(--s-1); font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--text-muted); }

/* ---------- B145, B146: the target's panel (app/_cible.html), at the getting started and in Réglages > Offre et cible */
.cible-panel { display: flex; flex-direction: column; gap: var(--s-6); }
.cible-part { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.cible-part h3 { font-size: var(--fs-md); }
.cible-part fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.cible-part legend { padding: 0; margin-bottom: var(--s-1); }
.cible-part .check { font-weight: var(--fw-medium); }
.cible-part .check .hint { font-weight: var(--fw-regular); }
.place-chip { padding-right: 2px; max-width: 100%; }
.place-chip > span { overflow-wrap: anywhere; }
.place-chip.unknown { border-style: dashed; border-color: var(--attention-strong); background: var(--attention-subtle); color: var(--attention); }
.place-chip .x { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0;
  border-radius: var(--r-full); background: transparent; color: inherit; cursor: pointer; }
.place-chip .x:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.place-chip .x:focus-visible { outline: none; box-shadow: var(--focus); }
.chip-add { font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.chip-add:hover { border-color: var(--brand); color: var(--brand-text); }
.place-search { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.place-search .input { flex: 1 1 220px; max-width: 420px; }
.place-ask { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-3) var(--s-4); border: 1px solid var(--brand);
  border-radius: var(--r-lg); background: var(--brand-subtle); }
.place-ask p { margin: 0; }
.place-ask .btn { white-space: normal; text-align: left; height: auto; padding-top: var(--s-1); padding-bottom: var(--s-1); }
.cible-note { margin: 0; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); font-size: var(--fs-sm); }
.cible-note.attention { background: var(--attention-subtle); color: var(--attention); }
.test-result { display: flex; align-items: flex-start; gap: var(--s-2); margin: 0; font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.test-result.kept { color: var(--success); }
.test-result.out { color: var(--error); }
.moves { display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--fs-sm); }
.moves p { margin: 0; }
.moves-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s-1); }
.moves-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2); }
.recap-lines { margin: 0; padding-left: var(--s-5); display: flex; flex-direction: column; gap: var(--s-1); }
@media (max-width: 1023px) {
  .place-chip .x { width: 44px; height: 44px; }
  .place-search .btn, .place-ask .btn, .cible-part .check { min-height: 44px; }
  .place-search .input { max-width: none; }
}
