/* ============================================
   PMO App — Domain-Specific Styles
   Built on design-kit (Swiss Rationalist).
   Only PMO tokens, components, and overrides here.
   Generic UI handled by /design-kit/index.css.
   ============================================ */

/* ── PMO Domain Tokens ── */
:root {
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.04);
}

/* ============================================
   PROJECT CARD (used in grid cells)
   ============================================ */

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r1);
  padding: 10px;
  min-height: 120px;
  font-size: var(--t-14);
  color: var(--ink-1);
  cursor: pointer;
  transition: all var(--dt-fast);
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.project-card-bottom-group {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.project-card-stage-bar {
  position: relative;
  height: 5px;
}
.project-card-stage-label {
  font-size: 9px;
  letter-spacing: 0.01em;
  color: var(--ink-4);
  text-align: left;
}
.project-card-stage-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #000;
  transform: translateX(-1px);
}
.project-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* Info button — top-right corner */
.project-card-info {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--ink-4);
  cursor: pointer;
  border-radius: 50%;
  opacity: 0;
  transition: all var(--dt-fast);
}
.project-card:hover .project-card-info { opacity: 1; }
.project-card-info:hover {
  color: var(--ink-1);
  background: var(--line);
}

.project-card-name {
  font-weight: 500;
  padding-right: 20px;
}

.project-card-code {
  color: var(--ink-3);
  font-weight: 400;
}

.project-card-sponsor {
  color: var(--ink-3);
}

.project-card-accompanist {
  color: var(--ink-3);
}

/* Bottom row — effort left, deps right */
.project-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s8);
}

.project-card > .project-card-bottom {
  margin-top: auto;
}

/* Execution health (RAG) square — derived from planning milestones */
.project-card-health {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid transparent;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card-health::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 1.5px;
}
.health-green { background: var(--ok-dim); border-color: var(--ok); }
.health-green::after { background: var(--ok); }
.health-orange { background: var(--warn-dim); border-color: var(--warn); }
.health-orange::after { background: var(--warn); }
.health-red { background: var(--err-dim); border-color: var(--err); }
.health-red::after { background: var(--err); }

/* ============================================
   GÉRANCE — PMO-wide échéances overview (table)
   Urgency dot + colour on the date cell; type shown via icon + label.
   ============================================ */
.echeance-row { cursor: pointer; }
.echeance-date { display: inline-flex; align-items: center; gap: var(--s8, 8px); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.echeance-dot { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--line-strong); flex-shrink: 0; }
.echeance-date.is-overdue { color: var(--err); font-weight: 600; }
.echeance-date.is-overdue .echeance-dot { background: var(--err); }
.echeance-date.is-soon { color: var(--warn); font-weight: 600; }
.echeance-date.is-soon .echeance-dot { background: var(--warn); }
.echeance-late { margin-left: var(--s8, 8px); font-size: var(--t-11, 11px); font-weight: 600; color: var(--err); font-variant-numeric: tabular-nums; }
/* Summary stat card that doubles as a filter toggle (Gérance "En retard") */
.stat-card-toggle { display: block; width: 100%; text-align: left; font: inherit; cursor: pointer; }
.stat-card-toggle:hover { border-color: var(--line-strong); }
.stat-card-toggle.is-active { border-color: var(--err); box-shadow: inset 0 0 0 1px var(--err); }
.echeance-type { display: inline-flex; align-items: center; gap: var(--s4, 4px); color: var(--ink-2); font-size: var(--t-13, 13px); }

/* ── Gérance — shared bits reused by the calendar view's expanded task strip ── */
.gerance-meta-card-code { color: var(--ink-3); font-weight: 400; }
.gerance-meta-task-row {
  display: flex;
  align-items: center;
  gap: var(--s4);
  font-size: var(--t-13);
  color: var(--ink-2);
  border-radius: 3px;
  padding: 2px 4px;
  margin: 0 -4px;
  cursor: pointer;
}
.gerance-meta-task-row:hover { background: var(--surface-2, var(--line)); color: var(--ink-1); }
.gerance-meta-task-row.is-blocked { color: var(--err); }
.gerance-meta-task-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gerance-meta-task-meta { color: var(--ink-3); font-weight: 400; }

.project-card-deps {
  display: flex;
  gap: var(--s4);
  font-size: var(--t-12);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.project-card-dep {
  letter-spacing: 0.01em;
  padding: 2px 6px;
  border-radius: 3px;
}

.dep-needs { color: #0e8a9e; background: rgba(14, 138, 158, 0.1); }
.dep-blocks { color: #c87a1a; background: rgba(200, 122, 26, 0.1); }
[data-theme="dark"] .dep-needs { color: #3cc0d4; background: rgba(60, 192, 212, 0.12); }
[data-theme="dark"] .dep-blocks { color: #e8a545; background: rgba(232, 165, 69, 0.12); }

/* ── Card dependency highlighting ── */
.project-card--dimmed {
  opacity: 0.25;
  transition: opacity var(--dt-fast);
}
.project-card--focused {
  border-color: var(--ink-1);
  box-shadow: var(--shadow-sm);
}
.project-card--needs {
  border-color: #0e8a9e;
  background: rgba(14, 138, 158, 0.08);
}
.project-card--enables {
  border-color: #c87a1a;
  background: rgba(200, 122, 26, 0.08);
}
.project-card--both {
  border-image: linear-gradient(135deg, #0e8a9e 50%, #c87a1a 50%) 1;
  background: linear-gradient(135deg, rgba(14, 138, 158, 0.08) 50%, rgba(200, 122, 26, 0.08) 50%);
}
/* Dark mode */
[data-theme="dark"] .project-card--needs {
  border-color: #3cc0d4;
  background: rgba(60, 192, 212, 0.1);
}
[data-theme="dark"] .project-card--enables {
  border-color: #e8a545;
  background: rgba(232, 165, 69, 0.1);
}
[data-theme="dark"] .project-card--both {
  border-image: linear-gradient(135deg, #3cc0d4 50%, #e8a545 50%) 1;
  background: linear-gradient(135deg, rgba(60, 192, 212, 0.1) 50%, rgba(232, 165, 69, 0.1) 50%);
}

/* Title click navigates — underline hint on hover */
.project-card-name {
  cursor: pointer;
}
.project-card-name:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   PAGE LOADING
   ============================================ */

.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

/* ============================================
   INBOX PAGE
   ============================================ */

/* ── Inbox list cards ── */
.inbox-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r1);
  padding: var(--s16);
  cursor: pointer;
  transition: all var(--dt-fast);
}
.inbox-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.inbox-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s12);
}

.inbox-card-name {
  font-size: var(--t-15);
  font-weight: 600;
  color: var(--ink-1);
  line-height: 1.3;
}

.inbox-card-goal {
  font-size: var(--t-13);
  color: var(--ink-2);
  margin-top: var(--s4);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inbox-card-meta {
  display: flex;
  align-items: center;
  gap: var(--s8);
  margin-top: var(--s12);
  flex-wrap: wrap;
}

.inbox-card-actions {
  display: flex;
  gap: var(--s4);
  flex-shrink: 0;
}

/* ── Initiative form layout ── */
.initiative-form {
  max-width: 720px;
}

/* Split layout: form left, timeline right (edit mode).
   The left column is capped at the form's 720px max-width and packed to the
   start so the 400px side panel sits adjacent to the form instead of floating
   out to the window's right edge. */
.initiative-form-split {
  display: grid;
  grid-template-columns: minmax(0, 720px) 400px;
  column-gap: 75px;
  row-gap: var(--s16);
  align-items: start;
  justify-content: start;
}
.initiative-form-split-left {
  min-width: 0;
}
.initiative-form-split-right {
  min-width: 0;
  align-self: start;
}

/* Optional breathing room for the full-width header lifted above the split
   (added by the header agent). Inert if the class isn't used. */
.initiative-form-header {
  margin-bottom: var(--s16);
}

@media (max-width: 1024px) {
  .initiative-form-split {
    grid-template-columns: 1fr;
  }
  .initiative-form-split-right {
    max-height: none;
  }
}

/* Form font overrides — inputs +2pt, titles +1pt */
.initiative-form .section-label {
  font-size: var(--t-11);
}
.initiative-form .form-label {
  font-size: var(--t-12);
}
.initiative-form .form-input--bare {
  font-size: var(--t-15);
}
.initiative-form .form-input--bare.bare-title {
  font-size: 1.375rem; /* 22px, up from 20px */
}
.initiative-form .selectable {
  font-size: var(--t-14);
}
.initiative-form .bullet-text {
  font-size: var(--t-15);
}
.initiative-form .tag-input-field {
  font-size: var(--t-15);
}
.initiative-form .form-input {
  font-size: var(--t-15);
}

/* ── Stage tabs (within initiative form) ── */
.initiative-form .tabs {
  margin-top: var(--s4);
  margin-bottom: var(--s20);
  /* Hug the tabs so the underline spans exactly under them (symmetric padding);
     allowed to grow wider than the form if needed — no scrollbar. */
  width: max-content;
}
.initiative-form .tab {
  padding: var(--s8) var(--s12);
  font-size: var(--t-12);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.initiative-form .tab-check {
  width: 11px; height: 11px; margin-right: 4px; flex: 0 0 auto;
  color: var(--ok, #16a34a);
}
.initiative-form .tab.done:not(.active) { color: var(--ink-2); }

/* Dark mode: filled accent buttons read as tinted (accent text on accent-dim) —
   matching the selectable squares. Solid white-on-accent is illegible with a
   light custom accent like cyan. */
[data-theme="dark"] .btn-accent {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}
[data-theme="dark"] .btn-accent:hover {
  background: color-mix(in srgb, var(--accent-dim) 65%, var(--accent) 35%);
  color: var(--accent);
  border-color: var(--accent);
}
[data-theme="dark"] .btn-accent:disabled {
  background: transparent;
  color: var(--ink-3);
  border-color: var(--line);
}

.stage-placeholder {
  padding: var(--s24) 0;
  color: var(--ink-3);
  font-size: var(--t-14);
}

.form-back {
  display: inline-flex;
  align-items: center;
  gap: var(--s4);
  font-size: var(--t-12);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: var(--s24);
  transition: color var(--dt-fast);
}
.form-back:hover { color: var(--ink-1); }

/* ── Form sections — separated by rules ── */
.form-section {
  padding-bottom: var(--s20);
  margin-bottom: var(--s20);
  border-bottom: 1px solid var(--line);
}
.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}
/* Skip section rule when last element already has a bottom border */
.initiative-form .form-section:has(> :last-child .form-input--bare),
.initiative-form .form-section:has(> :last-child .tag-input-container) {
  border-bottom: none;
}

/* ── Editable bullet list (deliverables) ── */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s8);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
}
.bullet-item:last-child {
  border-bottom: none;
}

.bullet-marker {
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  background: var(--ink-3);
  margin-top: 8px;
}

.bullet-text {
  flex: 1;
  font-size: var(--t-13);
  color: var(--ink-1);
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  font-family: var(--font);
  line-height: 1.5;
  resize: none;
  overflow: hidden;
}
.bullet-text::placeholder {
  color: var(--ink-3);
}

.bullet-remove {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--ink-3);
  padding: 0;
  opacity: 0;
  transition: all var(--dt-fast);
}
.bullet-item:hover .bullet-remove {
  opacity: 1;
}
.bullet-remove:hover {
  color: var(--err);
}

.bullet-add {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) 0;
  font-size: var(--t-12);
  color: var(--ink-3);
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--dt-fast);
}
.bullet-add:hover {
  color: var(--accent);
}

/* ── Autosuggest Dropdown ── */
.autosuggest-wrapper {
  position: relative;
}

.autosuggest-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  min-width: 180px;
  z-index: 50;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: none;
  max-height: 180px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.autosuggest-option {
  padding: var(--s8) var(--s12);
  font-size: var(--t-13);
  color: var(--ink-1);
  cursor: pointer;
  transition: background var(--dt-fast);
}
.autosuggest-option:hover {
  background: var(--accent-dim);
}

.autosuggest-search {
  width: 100%;
  padding: var(--s8) var(--s12);
  font-size: var(--t-13);
  border: none;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-1);
  outline: none;
  position: sticky;
  top: 0;
  box-sizing: border-box;
}

.autosuggest-create {
  color: var(--accent);
  font-weight: 500;
  border-top: 1px solid var(--line);
}

/* ── Form footer ── */
.form-footer {
  display: flex;
  gap: var(--s8);
  justify-content: flex-end;
  padding-top: var(--s16);
  border-top: 1px solid var(--line);
  margin-top: var(--s24);
}

/* ── Two-col form grid ── */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
}

/* ── Completion bar (horizontal segments) ── */
.completion-bar {
  display: flex;
  gap: 2px;
  align-items: center;
}

.completion-seg {
  width: 8px;
  height: 3px;
  background: var(--line);
}
.completion-seg.filled {
  background: var(--accent);
}

/* ── Project select (for dependencies) ── */
.project-select-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s8);
  padding: var(--s4) var(--s8);
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: var(--r1);
  font-size: var(--t-13);
}

/* ── Tag input (infrastructure) ── */
.tag-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
  min-height: 32px;
  cursor: text;
  transition: border-color var(--dt-fast);
}
.tag-input-container:focus-within {
  border-bottom-color: var(--accent);
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: var(--s4);
  padding: 2px 6px;
  font-size: var(--t-12);
  font-weight: 500;
  background: var(--bg-inset);
  color: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--r1);
}

.tag-remove {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--ink-3);
  padding: 0;
  transition: color var(--dt-fast);
}
.tag-remove:hover {
  color: var(--err);
}

.tag-input-field {
  flex: 1;
  min-width: 100px;
  border: none;
  outline: none;
  font-size: var(--t-13);
  font-family: var(--font);
  background: transparent;
  color: var(--ink-1);
  padding: 2px 0;
}
.tag-input-field::placeholder {
  color: var(--ink-3);
}

/* ============================================
   LIST PAGE
   ============================================ */

.list-row-clickable {
  cursor: pointer;
  transition: background var(--dt-fast);
}
.list-row-clickable:hover td {
  background: var(--accent-dim);
}
.list-row-selected td {
  background: var(--accent-dim);
}

/* ── Detail panel sections ── */
.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s8);
  margin-bottom: var(--s20);
}

.detail-section {
  padding-bottom: var(--s20);
  margin-bottom: var(--s20);
  border-bottom: 1px solid var(--line);
}
.detail-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.detail-label {
  font-size: var(--t-10);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s8);
}

.detail-text {
  font-size: var(--t-14);
  color: var(--ink-1);
  line-height: 1.65;
  white-space: pre-line;
}

.detail-list {
  margin: 0;
  padding-left: var(--s16);
  font-size: var(--t-14);
  color: var(--ink-1);
  line-height: 1.65;
}
.detail-list li { margin-bottom: var(--s4); }
.detail-list li:last-child { margin-bottom: 0; }

.detail-row {
  font-size: var(--t-14);
  color: var(--ink-1);
  margin-bottom: var(--s8);
  display: flex;
  align-items: baseline;
  gap: var(--s8);
}
.detail-row:last-child { margin-bottom: 0; }

.detail-row-label {
  font-weight: 600;
  font-size: var(--t-12);
  color: var(--ink-2);
  min-width: 80px;
  flex-shrink: 0;
}

.detail-collabs {
  margin-top: var(--s8);
  display: flex;
  flex-direction: column;
}

.detail-collab {
  display: flex;
  justify-content: space-between;
  font-size: var(--t-14);
  padding: var(--s8) 0;
  border-bottom: 1px solid var(--line);
}
.detail-collab:last-child {
  border-bottom: none;
}

.detail-dep-group {
  margin-bottom: var(--s16);
}
.detail-dep-group:last-child {
  margin-bottom: 0;
}

.detail-dep-item {
  font-size: var(--t-14);
  color: var(--ink-1);
  padding: var(--s4) 0 var(--s4) var(--s12);
  border-left: 2px solid var(--accent-mid);
  margin-bottom: var(--s4);
}
.detail-dep-item:last-child { margin-bottom: 0; }

/* ============================================
   CALENDAR MEETINGS (in detail panel)
   ============================================ */

.meeting-item {
  position: relative;
  padding: var(--s8) 0;
  border-bottom: 1px solid var(--line);
}
.meeting-item:last-child {
  border-bottom: none;
}

.meeting-date {
  font-size: var(--t-11);
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.meeting-subject {
  font-size: var(--t-14);
  color: var(--ink-1);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 30ch;
}

.meeting-meta {
  display: flex;
  align-items: center;
  gap: var(--s12);
  margin-top: var(--s4);
  font-size: var(--t-12);
  color: var(--ink-3);
}

.meeting-join {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.meeting-join:hover {
  text-decoration: underline;
}

.meetings-group {
  margin-bottom: var(--s12);
}
.meetings-group:last-child {
  margin-bottom: 0;
}

.meetings-group-label {
  font-size: var(--t-11);
  font-weight: 600;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s8);
  margin-top: var(--s8);
}

/* Meeting header — label + add button */
.meeting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s4);
}

/* Cancelled meetings */
.meeting-item--cancelled {
  opacity: 0.55;
}
.meeting-subject--cancelled {
  text-decoration: line-through;
  color: var(--ink-3);
}
.meeting-badge--cancelled {
  display: inline-block;
  font-size: var(--t-10);
  font-weight: 600;
  color: #c53030;
  background: #fff5f5;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: 1px;
}

/* Combined info line (attendees · location · duration) */
.meeting-info {
  font-size: var(--t-12);
  color: var(--ink-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meeting-info-sep::before { content: ' · '; }

/* Action bar for meeting/transcription entries */
.meeting-actions {
  display: flex;
  align-items: center;
  gap: var(--s8);
  margin-top: var(--s4);
  font-size: var(--t-12);
}

/* Hover-reveal for secondary actions */
.meeting-actions .meeting-delete-btn,
.meeting-actions .meeting-attach-btn {
  opacity: 0;
  transition: opacity var(--dt-fast);
}
.meeting-item:hover .meeting-actions .meeting-delete-btn,
.meeting-item:hover .meeting-actions .meeting-attach-btn {
  opacity: 1;
}

/* Inline icon utility */
.timeline-icon {
  display: inline-flex;
  vertical-align: -1px;
  margin-right: 4px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Link/unlink buttons */
.meeting-link-btn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--t-12);
  color: var(--ink-3);
  padding: 2px;
  border-radius: var(--r1);
  transition: color var(--dt-fast);
}
.meeting-link-btn:hover {
  color: var(--accent);
}

/* Link dropdown */
.meeting-link-dropdown {
  position: relative;
  display: inline-flex;
}
.meeting-link-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r8);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  max-height: 180px;
  overflow-y: auto;
  padding: var(--s4) 0;
  margin-top: 2px;
}
.meeting-link-option {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
  padding: var(--s4) var(--s8);
  font-size: var(--t-12);
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
.meeting-link-option:hover {
  background: var(--bg-inset);
}

/* Source indicator */
.meeting-source {
  font-size: var(--t-10);
  color: var(--ink-3);
  margin-left: auto;
}

/* Transcript button (dummy) */
.meeting-transcript-btn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--t-12);
  color: var(--ink-3);
}
.meeting-transcript-btn:hover {
  color: var(--accent);
}

/* Delete button for manual meetings */
.meeting-delete-btn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: var(--r4);
  color: var(--ink-3);
}
.meeting-delete-btn:hover {
  color: #c53030;
  background: #fff5f5;
}

/* Inline meeting form */
.meeting-form {
  display: flex;
  flex-direction: column;
  gap: var(--s8);
  padding: var(--s12);
  margin-bottom: var(--s12);
  border: 1px solid var(--line);
  border-radius: var(--r8);
  background: var(--bg-inset);
}

/* Calendar sync button */
.calendar-sync-btn.active {
  background: var(--accent-dim);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin {
  animation: spin 1s linear infinite;
}

/* ============================================
   Detail Panel Split Layout
   ============================================ */


/* ============================================
   Timeline Entry Variants
   ============================================ */

.timeline-entry--transcription {
  border-left: 3px solid var(--accent);
  padding-left: var(--s8);
}
.timeline-entry--event {
  border-left: 3px solid var(--accent);
  padding-left: var(--s8);
}
.timeline-entry--combined {
  border-left: 3px solid var(--accent-dim);
  padding-left: var(--s8);
}

/* Activity dot — accent indicator for entries with reply threads */
.timeline-activity-dot {
  position: absolute;
  top: var(--s8);
  right: -14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Comment entries in timeline */
.timeline-entry--comment {
  padding-left: var(--s8);
  border-left: 3px solid var(--line);
  border-bottom: none;
  margin-bottom: 35px;
}
.timeline-comment-header {
  display: flex;
  align-items: center;
  gap: var(--s8);
  margin-bottom: 2px;
}
/* Top-level timeline comments sit in a .meeting-item, not a .task-update,
   so the .task-update:hover reveal never fires — reveal on entry hover. */
.timeline-entry--comment:hover .timeline-comment-header .task-update-actions { opacity: 1; }

/* Active transcript button (linked) */
.meeting-transcript-btn--active {
  color: var(--accent) !important;
  font-weight: 500;
  cursor: pointer;
}
.meeting-transcript-btn--active:hover {
  text-decoration: underline;
}

/* Disabled transcript button */
.meeting-transcript-btn--disabled {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--t-12);
  color: var(--ink-3);
  opacity: 0.5;
  cursor: default;
}

/* Inline summary snippet for transcription entries */
.transcript-summary-inline {
  font-size: var(--t-12);
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: var(--s4);
  background: var(--bg-inset);
  border-radius: var(--r4);
  padding: var(--s4) var(--s8);
}
/* Project code tag in timeline transcription date row */
.transcript-code {
  display: inline-block;
  margin-left: var(--s6, 6px);
  font-size: var(--t-11);
  color: var(--ink-3);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ============================================
   Transcript styles (modal uses design-kit)
   ============================================ */

.transcript-summary {
  background: var(--bg-inset);
  border-radius: var(--r8);
  padding: var(--s12);
  font-size: var(--t-13);
  color: var(--ink-2);
  line-height: 1.6;
  white-space: pre-wrap;
}

.transcript-text {
  font-size: var(--t-13);
  color: var(--ink-1);
  line-height: 1.7;
  white-space: pre-wrap;
  font-family: inherit;
}

/* Grouped speaker blocks */
.transcript-blocks {
  display: flex;
  flex-direction: column;
  gap: var(--s12);
}
.transcript-block {
  padding-bottom: var(--s12);
  border-bottom: 1px solid var(--line);
}
.transcript-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.transcript-block-header {
  display: flex;
  align-items: baseline;
  gap: var(--s8);
  margin-bottom: var(--s4);
}
.transcript-speaker {
  font-size: var(--t-13);
  font-weight: 600;
}
.transcript-time {
  font-size: var(--t-11);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.transcript-block-text {
  font-size: var(--t-13);
  color: var(--ink-1);
  line-height: 1.65;
}
/* Naming a voice (shared voice library) */
.transcript-speaker-edit {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--s4);
  font-family: inherit;
}
.transcript-speaker-edit svg { opacity: 0.45; }
.transcript-speaker-edit:hover { text-decoration: underline dotted; }
.transcript-speaker-edit:hover svg { opacity: 1; }
.speaker-editor {
  display: flex;
  flex-direction: column;
  gap: var(--s8);
  margin: var(--s4) 0 var(--s8);
  padding: var(--s12);
  background: var(--bg-inset);
  border-radius: var(--r1);
}
.speaker-editor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s8);
}
.speaker-editor-row .form-input { flex: 1 1 200px; min-width: 0; }
.speaker-editor-caption { font-size: var(--t-11); color: var(--ink-3); }
.speaker-editor-hint { font-size: var(--t-11); color: var(--ink-3); }
.transcript-shared {
  font-size: var(--t-12);
  color: var(--ink-2);
  margin-bottom: var(--s12);
}
.transcript-error {
  font-size: var(--t-12);
  color: var(--err);
  margin-bottom: var(--s12);
}

/* ============================================
   TASK MANAGEMENT (Kanban Board)
   ============================================ */

/* ── Task Card (compact kanban card) ── */

.task-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r1);
  padding: var(--s12);
  font-size: var(--t-13);
  color: var(--ink-1);
  cursor: grab;
  transition: border-color var(--dt-fast), box-shadow var(--dt-fast);
  line-height: 1.4;
  user-select: none;
  box-sizing: border-box;
  width: 300px;
  height: 140px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.task-card--locked {
  cursor: default;
}
.task-card:hover {
  border-color: var(--accent);
}
.task-card:active {
  cursor: grabbing;
}
.task-card--locked:active {
  cursor: default;
}
.task-card:hover .project-card-info { opacity: 1; }

/* Someone else's task on a shared project/task board (issue #29) — pushed
   below the viewer's own tasks and rendered secondary: muted but still
   fully legible on hover/focus. */
.task-card--dimmed {
  opacity: 0.55;
  filter: grayscale(0.3);
}
.task-card--dimmed:hover {
  opacity: 0.9;
  filter: none;
}

/* Task sitting in a "Blocked" column (issue #39) — left accent, and the fixed
   card height relaxes so the reason line (and its edit textarea) can grow. */
.task-card--blocked {
  height: auto;
  min-height: 140px;
  border-left: 3px solid var(--err);
}
.task-card-blocked-reason {
  font-size: var(--t-12);
  color: var(--err);
  line-height: 1.4;
  overflow-wrap: break-word;
  cursor: text;
  margin-top: var(--s4);
}
.task-card-blocked-reason:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.task-card-blocked-reason--static {
  cursor: default;
}
.task-card-blocked-reason--static:hover {
  text-decoration: none;
}
.task-card-blocked-input {
  width: 100%;
  font: inherit;
  font-size: var(--t-12);
  color: var(--err);
  background: var(--bg-inset, transparent);
  border: 1px solid var(--err);
  border-radius: var(--r1);
  padding: var(--s4);
  margin-top: var(--s4);
  resize: vertical;
  min-height: 40px;
  box-sizing: border-box;
}

.task-card-linked {
  display: flex;
  align-items: center;
  gap: var(--s4);
  font-size: var(--t-11);
  color: var(--accent, var(--ink-2));
  margin-top: var(--s4);
}

/* Linked milestone line — one line, ellipsised (full name in the tooltip). */
.task-card-milestone {
  display: flex;
  align-items: center;
  gap: var(--s4);
  font-size: var(--t-11);
  color: var(--ink-2);
  margin-top: var(--s4);
  min-width: 0;
}
.task-card-milestone > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-card-milestone > svg { flex-shrink: 0; }
.task-card-milestone--none { color: var(--ink-3); font-style: italic; }

.task-card-title {
  font-weight: 500;
  font-size: var(--t-13);
  cursor: pointer;
  padding-right: var(--s16);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.task-card-title:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.task-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  margin-top: auto;
  padding-top: var(--s8);
}

.task-card-dates {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.task-card-due, .task-card-planned {
  display: flex;
  align-items: center;
  gap: var(--s4);
  font-size: var(--t-11);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.task-card-due--overdue {
  color: #c53030;
}

.docs { display: flex; flex-direction: column; gap: 6px; }
.docs-header { display: flex; align-items: center; gap: 6px; font-size: var(--t-12); font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.04em; }
.docs-item { display: flex; align-items: flex-start; gap: 8px; font-size: var(--t-13); color: var(--ink-3); }
.docs-item > svg { flex-shrink: 0; margin-top: 3px; }
.docs-item-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.docs-name { color: var(--ink-1); font-weight: 500; overflow-wrap: anywhere; }
.docs-meta { font-size: var(--t-11, 11px); color: var(--ink-3); }
.docs-hint { font-size: var(--t-11, 11px); color: var(--ink-3); margin-top: -2px; }
.docs-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.docs-link-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.docs-link-form .form-input { flex: 1 1 200px; min-width: 0; }
.docs--compact { gap: 4px; }
.docs--compact .docs-item { font-size: var(--t-12); }
.vjt-todo-docs { display: inline-flex; align-items: center; gap: 2px; font-size: var(--t-11, 11px); color: var(--ink-3); }
.vjt-todo-docs.has-docs { color: var(--accent); }
.vjt-todo-docs-panel { margin: 4px 0 6px 26px; padding: 6px 8px; border-left: 2px solid var(--line); }
.docs-register { margin-top: var(--s24, 24px); }
.docs-register-table { overflow-x: auto; }
.docs-register-table td { vertical-align: top; font-size: var(--t-13); }
.docs-register-table .docs-name { display: inline-flex; align-items: center; gap: 4px; }
.docs-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.docs-general { margin-bottom: var(--s12, 12px); padding: var(--s8) var(--s12, 12px); border: 1px solid var(--line); border-radius: 6px; }
.docs-general-title { font-size: var(--t-12); font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.docs-attach-pick { display: flex; gap: 6px; align-items: center; min-width: 260px; }
.docs-attach-pick > :first-child { flex: 1; min-width: 0; }
.docs-attach-btn { white-space: nowrap; }
.docs-delete-btn { flex-shrink: 0; width: 22px; height: 22px; background: transparent; color: var(--ink-3); }
.docs-delete-btn:hover:not(:disabled) { background: transparent; color: var(--err); }
.docs-attach-col .docs-delete-btn { margin-left: 4px; vertical-align: top; }
.docs-replace-btn { flex-shrink: 0; width: 22px; height: 22px; background: transparent; color: var(--ink-3); }
.docs-replace-btn:hover:not(:disabled) { background: transparent; color: var(--accent); }
.docs-attach-col .docs-attach-btn + .docs-attach-btn { margin-left: 4px; }
.attachment-picker-hint { flex-basis: 100%; font-size: var(--t-11, 11px); color: var(--ink-3); }

.task-collab-hint { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: var(--t-12); color: var(--ink-3); line-height: 1.45; }
.task-collab-hint svg { flex-shrink: 0; margin-top: 2px; }
.task-collab-hint a { color: var(--accent); white-space: nowrap; }

.task-card-assignee {
  font-size: var(--t-11);
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

/* Stable short card id (issue #27) — "T-123" / "P-42", discreet mono tag so
   a card can be referenced unambiguously (e.g. in meetings) without
   competing with the title/assignee for attention. Shared by task cards
   (project board + standalone Kanban) and pushes itself to the row's end
   via margin-left: auto regardless of which sibling meta is present. */
.card-id {
  font-family: var(--font-mono);
  font-size: var(--t-10);
  color: var(--ink-4, var(--ink-3));
  letter-spacing: 0.01em;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Cell hover "+" button ── */

.kanban-cell-add {
  opacity: 0;
  transition: opacity var(--dt-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s4);
  border: 1px dashed var(--line);
  border-radius: var(--r1);
  cursor: pointer;
  color: var(--ink-3);
  font-size: var(--t-12);
  margin-top: var(--s4);
}
.matrix-grid-cell:hover .kanban-cell-add {
  opacity: 1;
}
.kanban-cell-add:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── Quick add form (inline in cell) ── */

.kanban-quick-add {
  display: flex;
  gap: var(--s4);
  margin-top: var(--s4);
}
.kanban-quick-add .form-input {
  font-size: var(--t-12);
  padding: var(--s4) var(--s8);
  flex: 1;
}

/* ── Kanban row label (vertical project name) ── */

.kanban-row-label {
  font-size: var(--t-11);
  letter-spacing: 0.08em;
  gap: var(--s8);
  padding: var(--s12) var(--s4);
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-all;
  line-height: 1.4;
}
.kanban-row-code {
  font-size: var(--t-10);
  color: var(--ink-3);
  font-weight: 400;
  letter-spacing: 0.05em;
}
/* Vertical project title, clickable through to the project overview (issue #37) */
.kanban-row-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.kanban-row-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Organisation tâches: the project name stays vertical but larger, and follows
   the scroll down its row until the next project's row comes (ticket #79). The
   rotation moves from the sticky-left cell to the inner span, which sticks to
   the top under the column headers. */
.kanban-row-label--sticky { writing-mode: horizontal-tb; transform: none; align-items: flex-start; padding: var(--s12) 0; z-index: 2; }
.kanban-row-sticky {
  position: sticky; top: 56px;
  display: flex; align-items: center; gap: var(--s8);
  writing-mode: vertical-rl; transform: rotate(180deg);
  max-height: calc(100vh - 240px);
  word-break: normal; overflow-wrap: anywhere;
}
.kanban-row-label--sticky .kanban-row-link { font-size: var(--t-14, 14px); font-weight: 700; letter-spacing: 0.04em; }
.kanban-row-label--sticky .kanban-row-code { font-size: var(--t-12, 12px); }

/* ── Task filters toolbar ── */

.tasks-toolbar {
  display: flex;
  align-items: center;
  gap: var(--s12);
  padding: var(--s12) var(--s16);
  flex-wrap: wrap;
}

.tasks-toolbar select {
  font-size: var(--t-13);
  padding: var(--s4) var(--s8);
  border: 1px solid var(--line);
  border-radius: var(--r1);
  background: var(--surface);
  color: var(--ink-1);
  min-width: 140px;
}

/* A task reached via a linked (non-home) project — every field inside is
   inert, editing only happens from the home project's board. */
.task-detail-readonly {
  pointer-events: none;
  opacity: 0.65;
}

/* ── Task detail metadata grid ── */

.task-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s12);
}
.task-detail-meta-field {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.task-detail-meta-label {
  font-size: var(--t-11);
  font-weight: 500;
  color: var(--ink-3);
}

/* ── Task detail dependency groups ── */

.task-detail-deps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
}
.task-detail-dep-group {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

/* ── Task dependency picker ── */

.task-dep-picker {
  padding: var(--s12);
  border: 1px solid var(--line);
  border-radius: var(--r1);
  background: var(--bg-inset);
  display: flex;
  flex-direction: column;
  gap: var(--s8);
}
.task-dep-picker-title {
  font-size: var(--t-12);
  font-weight: 600;
  color: var(--ink-1);
}
.task-dep-picker-list {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  max-height: 200px;
  overflow-y: auto;
}
.task-dep-picker-item {
  display: flex;
  align-items: center;
  gap: var(--s8);
  padding: var(--s4) var(--s8);
  font-size: var(--t-12);
  color: var(--ink-1);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r1);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--dt-fast);
}
.task-dep-picker-item:hover {
  border-color: var(--accent);
}
.task-dep-picker-item-status {
  font-size: var(--t-11);
  color: var(--ink-3);
  margin-left: auto;
  flex-shrink: 0;
}
.task-dep-picker-create {
  display: flex;
  gap: var(--s4);
}
.task-dep-picker-create .form-input {
  font-size: var(--t-12);
}

/* ── Task timeline (in detail panel) ── */

.task-updates-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.task-updates-list--collapsed {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}
.task-updates-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  width: 100%;
  padding: var(--s4) 0;
  border: none;
  background: none;
  font-size: var(--t-12);
  color: var(--ink-3);
  cursor: pointer;
  font-family: inherit;
  transition: color var(--dt-fast);
}
.task-updates-expand:hover { color: var(--accent); }

.task-update {
  padding: var(--s8) 0;
  border-bottom: 1px solid var(--line);
}
.task-update:last-child {
  border-bottom: none;
}

.task-update-header {
  display: flex;
  align-items: baseline;
  gap: var(--s8);
  margin-bottom: var(--s4);
}
.task-update-author {
  font-size: var(--t-12);
  font-weight: 600;
  color: var(--ink-1);
}
.task-update-time {
  font-size: var(--t-11);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.task-update-type {
  font-size: var(--t-11);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.task-update-actions {
  margin-left: auto;
  display: flex;
  gap: var(--s4);
  opacity: 0;
  transition: opacity 0.15s;
}
.task-update:hover .task-update-actions { opacity: 1; }
.task-update-actions .btn-icon {
  width: 20px;
  height: 20px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  border-radius: var(--r1);
}
.task-update-actions .btn-icon:hover { color: var(--ink-1); background: var(--bg-inset); }

.task-update-content {
  font-size: var(--t-13);
  color: var(--ink-1);
  line-height: 1.6;
  white-space: pre-line;
}
.task-update-edit .form-input--bare {
  font-size: var(--t-13);
  min-height: 40px;
}

.task-update--nested {
  border-left: 2px solid var(--line);
}

.task-update-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s4);
  margin-top: var(--s4);
  padding: 0;
  border: none;
  background: none;
  font-size: var(--t-11);
  color: var(--ink-3);
  cursor: pointer;
  font-family: inherit;
  opacity: 0;
  transition: opacity 0.15s;
}
.task-update:hover .task-update-reply-btn { opacity: 1; }
.task-update-reply-btn:hover { color: var(--accent); }

.task-update-inline-reply {
  padding: var(--s8) 0 var(--s8) var(--s16);
  border-left: 2px solid var(--accent);
  margin-bottom: var(--s4);
}
.task-update-inline-reply .form-input--bare {
  font-size: var(--t-13);
  min-height: 32px;
}

/* ── Task update input ── */

.task-update-form {
  display: flex;
  flex-direction: column;
  gap: var(--s8);
  margin-top: var(--s8);
}

.task-update-form .form-input--bare {
  font-size: var(--t-13);
  min-height: 32px;
}

.task-update-form-actions {
  display: flex;
  gap: var(--s8);
}

/* ── Task dependency chips ── */

.task-dep-list {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.task-dep-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s8);
  font-size: var(--t-12);
  padding: var(--s4) var(--s8);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r1);
}

.task-dep-item-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-dep-item-status {
  font-size: var(--t-11);
  color: var(--ink-3);
}

/* ── Create task modal ── */

.create-task-form {
  display: flex;
  flex-direction: column;
  gap: var(--s12);
}

/* ── Kanban grid cell gaps ── */

.matrix-grid-cell .task-card + .task-card {
  margin-top: var(--s4);
}

/* ============================================
   ROLES & PERMISSIONS
   ============================================ */

/* Direction badge in sidebar */
.badge-direction {
  background: var(--accent-bg, rgba(0,112,243,0.08));
  color: var(--accent);
  font-size: var(--t-10);
  padding: 2px 6px;
  border-radius: var(--r1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Status events in timeline (compact divider style) ── */

.timeline-entry--setup_change,
.timeline-entry--task_event {
  background: none !important;
  border: none !important;
  padding: var(--s4) 0 !important;
}

.timeline-status-line {
  display: flex;
  align-items: center;
  gap: var(--s8);
}

.timeline-status-date {
  font-size: var(--t-11);
  color: var(--ink-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-status-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
  min-width: 12px;
}

.timeline-status-text {
  font-size: var(--t-12);
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 30ch;
}

.timeline-status-text--link {
  color: var(--ink-2);
  text-decoration: none;
  cursor: pointer;
}
.timeline-status-text--link:hover {
  color: var(--accent);
}

.timeline-status-actor {
  font-size: var(--t-11);
  color: var(--ink-4);
  text-align: center;
  margin-top: 1px;
}

/* ── Reply threads on timeline entries ── */

.timeline-entry-thread {
  margin-top: var(--s4);
}

.timeline-entry-thread-actions {
  display: flex;
  gap: var(--s8);
  opacity: 0;
  transition: opacity var(--dt-fast);
}

.meeting-item:hover .timeline-entry-thread-actions,
.timeline-entry-thread:has(.timeline-entry-comments) .timeline-entry-thread-actions { opacity: 1; }

.timeline-entry-reply-btn {
  font-size: var(--t-11) !important;
  color: var(--ink-3);
  padding: 2px var(--s4) !important;
}
.timeline-entry-reply-btn:hover { color: var(--accent); }

.timeline-entry-comments {
  margin-top: var(--s4);
  padding-left: var(--s12);
  border-left: 2px solid var(--line);
}

.project-comments-section {
  margin-top: var(--s8);
}

/* ── @Mention dropdown ── */

.mention-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r1);
  box-shadow: var(--shadow-md);
  z-index: 100;
  margin-bottom: 4px;
}

.mention-group-label {
  font-size: var(--t-11);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--s4) var(--s8);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.mention-option {
  display: flex;
  align-items: center;
  gap: var(--s8);
  width: 100%;
  padding: var(--s4) var(--s8);
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-size: var(--t-13);
  color: var(--ink-1);
}
.mention-option:hover,
.mention-option--selected {
  background: var(--accent-bg, rgba(0,112,243,0.06));
}

.mention-option-initials {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-bg, rgba(0,112,243,0.08));
  color: var(--accent);
  font-size: var(--t-11);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mention-option-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mention-option-role {
  font-size: var(--t-11);
  color: var(--ink-3);
  text-transform: capitalize;
}

/* ── Mention highlight in content ── */

.mention-highlight {
  color: var(--accent);
  font-weight: 600;
}

/* ── Tagged users bar ── */

.tagged-users-bar {
  display: flex;
  align-items: center;
  gap: var(--s4);
  font-size: var(--t-11);
  color: var(--ink-3);
  flex-wrap: wrap;
}

.tagged-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--accent-bg, rgba(0,112,243,0.08));
  color: var(--accent);
  padding: 1px 6px;
  border-radius: var(--r1);
  font-size: var(--t-11);
  font-weight: 500;
}

.tagged-user-remove {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--accent);
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  opacity: 0.7;
}
.tagged-user-remove:hover {
  opacity: 1;
}

/* ── Visibility badges ── */

.visibility-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--t-10);
  padding: 1px 4px;
  border-radius: var(--r1);
}

.visibility-badge--project {
  color: var(--ink-3);
}

.visibility-badge--public {
  color: var(--accent);
}

/* ── Project questions section ── */

.project-questions-section {
  border-top: 1px solid var(--line);
  margin-top: var(--s8);
}

/* ── Permission matrix (admin panel) ── */

.permission-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-13);
}

.permission-matrix th {
  text-align: left;
  padding: var(--s8);
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 2px solid var(--line);
  font-size: var(--t-12);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.permission-matrix td {
  padding: var(--s8);
  border-bottom: 1px solid var(--line);
  color: var(--ink-1);
}

.permission-matrix tr:last-child td {
  border-bottom: none;
}

.permission-check {
  color: var(--accent);
  font-weight: 600;
}

.permission-conditional {
  color: var(--ink-3);
  font-size: var(--t-12);
  font-style: italic;
}

.permission-denied {
  color: var(--ink-4, #ccc);
}

/* ═══════════════════════════════════════════ */
/* Notification Bell                           */
/* ═══════════════════════════════════════════ */

.notification-bell {
  position: relative;
}

.notification-bell-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--ink-2);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--r1);
  transition: color 0.15s;
}
.notification-bell-btn:hover {
  color: var(--ink-1);
  background: var(--bg-inset);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--err);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 480px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r1);
  box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,.15));
  z-index: 200;
  display: flex;
  flex-direction: column;
}

.notification-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.notification-dropdown-title {
  font-weight: 600;
  font-size: var(--t-13);
}

.notification-dropdown-list {
  overflow-y: auto;
  flex: 1;
}

.notification-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--ink-3);
  font-size: var(--t-13);
}

.notification-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.1s;
}
.notification-item:last-child { border-bottom: none; }
.notification-item:hover { background: var(--bg-inset); }

.notification-item--unread {
  background: var(--accent-dim, rgba(var(--accent-rgb, 99,102,241), 0.06));
}

.notification-item-title {
  font-weight: 600;
  font-size: var(--t-13);
  margin-bottom: 2px;
}

.notification-item-body {
  font-size: var(--t-12);
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item-time {
  font-size: var(--t-11);
  color: var(--ink-3);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════ */
/* Inbox Tabs                                  */
/* ═══════════════════════════════════════════ */

.inbox-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s20);
  overflow-x: auto;
  scrollbar-width: none;
}

.inbox-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: var(--t-13);
  font-weight: 500;
  color: var(--ink-3);
  transition: color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.inbox-tab:hover { color: var(--ink-1); }
@media (max-width: 640px) { .inbox-tab { padding: 10px 12px; } }
.inbox-tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--err);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
}

/* ═══════════════════════════════════════════ */
/* Change Request Cards                        */
/* ═══════════════════════════════════════════ */

.cr-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: var(--s16);
}

.cr-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r8);
  padding: 14px 18px;
  transition: border-color 0.15s;
}
.cr-card:hover { border-color: var(--accent); }

.cr-card--pending {
  border-left: 3px solid var(--accent);
}

.cr-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cr-card-project {
  font-weight: 600;
  font-size: var(--t-14);
}
/* The project's number before its name on the inbox cards. */
.inbox-code { margin-right: var(--s8); font-family: var(--font-mono); font-size: var(--t-12); font-weight: 500; color: var(--ink-3); }

.cr-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-size: var(--t-12);
  color: var(--ink-3);
}

.cr-card-comment {
  font-style: italic;
  color: var(--ink-2);
}

.badge-cr-pending { background: var(--accent); color: #fff; }
.badge-cr-approved { background: var(--ok, #22c55e); color: #fff; }
.badge-cr-rejected { background: var(--err); color: #fff; }

/* ═══════════════════════════════════════════ */
/* Change Request Review                       */
/* ═══════════════════════════════════════════ */

.cr-review {
  max-width: 800px;
}

.cr-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s12);
}
.cr-review-header h3 { margin: 0; }

.cr-review-meta {
  display: flex;
  gap: 16px;
  font-size: var(--t-12);
  color: var(--ink-3);
  margin-bottom: var(--s16);
}

.staleness-warning {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-radius: var(--r6);
  padding: 10px 14px;
  font-size: var(--t-12);
  color: var(--ink-1);
  margin-bottom: var(--s16);
}

.cr-no-changes {
  padding: 24px;
  text-align: center;
  color: var(--ink-3);
  font-size: var(--t-13);
}

.cr-diff-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--s20);
}

.diff-entry {
  border: 1px solid var(--border);
  border-radius: var(--r6);
  overflow: hidden;
}

.diff-field-label {
  background: var(--surface-2);
  padding: 8px 14px;
  font-weight: 600;
  font-size: var(--t-12);
  border-bottom: 1px solid var(--border);
}

.diff-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.diff-old, .diff-new {
  padding: 10px 14px;
  font-size: var(--t-12);
  overflow: hidden;
}
.diff-old {
  background: rgba(239, 68, 68, 0.04);
  border-right: 1px solid var(--border);
}
.diff-new {
  background: rgba(34, 197, 94, 0.04);
}

.diff-label {
  font-size: var(--t-11);
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}

.diff-old .diff-label { color: var(--err); }
.diff-new .diff-label { color: var(--ok, #22c55e); }

.diff-old pre, .diff-new pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: var(--t-12);
}

.cr-review-actions {
  border-top: 1px solid var(--border);
  padding-top: var(--s16);
}

.cr-review-actions textarea {
  width: 100%;
  margin-bottom: var(--s12);
}

.cr-review-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ═══════════════════════════════════════════ */
/* Direction Banner                            */
/* ═══════════════════════════════════════════ */

.direction-banner {
  background: var(--accent-dim, rgba(var(--accent-rgb, 99,102,241), 0.08));
  border: 1px solid var(--accent);
  border-radius: var(--r6);
  padding: 10px 16px;
  font-size: var(--t-13);
  color: var(--ink-1);
  margin-bottom: var(--s16);
}

.direction-banner--success {
  background: rgba(34, 197, 94, 0.08);
  border-color: var(--ok, #22c55e);
}

.direction-banner--error {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--err);
}

/* ============================================
   ATTACHMENTS (file picker + attachment list)
   ============================================ */

.attachment-picker {
  display: contents;
}

.attachment-picker-btn {
  color: var(--ink-3);
  padding: var(--s4);
  border-radius: var(--r1);
  transition: color var(--dt-fast);
}
.attachment-picker-btn:hover {
  color: var(--accent);
}

.attachment-picker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  padding: var(--s4) 0;
  width: 100%;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s4);
  padding: 2px var(--s8) 2px var(--s6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r1);
  font-size: var(--t-11);
  color: var(--ink-2);
  max-width: 260px;
}

.attachment-chip svg {
  flex-shrink: 0;
  color: var(--ink-3);
}

.attachment-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-1);
}

.attachment-chip--download .attachment-chip-name {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}
.attachment-chip--download .attachment-chip-name:hover {
  text-decoration: underline;
}

.attachment-chip-size {
  flex-shrink: 0;
  color: var(--ink-3);
  font-size: var(--t-10);
}

.attachment-chip-remove {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 50%;
  color: var(--ink-3);
  transition: color var(--dt-fast);
}
.attachment-chip-remove:hover {
  color: var(--err);
}

.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  margin-top: var(--s4);
}

/* Attach button in meeting meta row */
.meeting-attach-btn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  color: var(--ink-3);
  padding: 2px;
  border-radius: var(--r1);
  transition: color var(--dt-fast);
}
.meeting-attach-btn:hover {
  color: var(--accent);
}

/* Attachment form actions layout */
.task-update-form-actions {
  display: flex;
  align-items: center;
  gap: var(--s8);
  margin-top: var(--s4);
}

/* ── Header Search ── */
.header-search {
  display: flex;
  align-items: center;
  position: relative;
}
.header-search-input {
  width: 180px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r2, 4px);
  background: transparent;
  padding: 0 var(--s24, 24px) 0 var(--s28, 28px);
  font-size: var(--t-12, 12px);
  color: var(--ink-1);
  transition: border-color 0.15s, width 0.15s;
}
.header-search-input::placeholder { color: var(--ink-3); }
.header-search-input:focus {
  border-color: var(--accent);
  outline: none;
  width: 240px;
}
.header-search-icon {
  position: absolute;
  left: 8px;
  color: var(--ink-3);
  pointer-events: none;
}
.header-search-clear {
  position: absolute;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
}
.header-search-clear:hover { color: var(--ink-1); background: var(--accent-dim, rgba(0,0,0,0.05)); }
/* In a page's filter row: same height as the filter triggers, surface background. */
.toolbar-search .header-search-input { height: 30px; width: 200px; background: var(--surface); border-radius: var(--r1); }
.toolbar-search .header-search-input:focus { width: 260px; }

/* ── Draft Save ── */
.draft-banner {
  background: var(--accent-dim, rgba(var(--accent-rgb, 99,102,241), 0.08));
  border: 1px solid var(--accent);
  border-radius: var(--r6, 6px);
  padding: var(--s8, 8px) var(--s16, 16px);
  margin-bottom: var(--s16, 16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--t-13, 13px);
  color: var(--ink-2);
}
.draft-indicator {
  font-size: var(--t-11, 11px);
  color: var(--ink-3);
  margin-left: var(--s8, 8px);
}

/* ── My Submissions ── */
.my-submissions {
  margin-bottom: var(--s24, 24px);
}
.my-submissions-header {
  display: flex;
  align-items: center;
  gap: var(--s8, 8px);
  margin-bottom: var(--s12, 12px);
}

/* ── Grid No Results ── */
.grid-no-results {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: var(--s32, 32px);
}

/* ── App shell scroll model ────────────────────────────────────────────────
   The topbar is fixed; the shell fills the rest of the viewport and the BODY
   never scrolls (only inside the authenticated shell — the login page is left
   free to scroll). Ordinary pages scroll inside .content, giving a single
   scrollbar. Full-height pages (matrix grids, calendar) hand the scroll to
   their own inner container, so there's one scrollbar and the content reaches
   the bottom edge — no second body scrollbar and no leftover band under the
   grid. */
html, body { height: 100%; }
body:has(.shell) { overflow: hidden; }
.content {
  height: calc(100vh - var(--topbar-h, 48px));
  min-height: 0;
  overflow-y: auto;
}

/* Dev environment banner (env-kit, DEPLOY_ENV=dev): env-kit styles the bar and
   sets --dev-env-banner-h; PMO's full-height shell and login page stay clear of it. */
html.has-dev-env-banner body:has(.shell) { padding-bottom: 0; }
/* The same warning at the top of every screen: a stripe across, and a tab hanging from it. */
.dev-env-top { display: none; }
html.has-dev-env-banner .dev-env-top {
  display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 1001; height: 4px;
  background: var(--warn, #c08820); pointer-events: none; text-align: center;
}
html.has-dev-env-banner .dev-env-top span {
  display: inline-block; padding: 1px 12px 3px; border-radius: 0 0 6px 6px; vertical-align: top;
  background: var(--warn, #c08820); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.3;
  letter-spacing: 0.06em; text-transform: uppercase;
}
html.has-dev-env-banner .content {
  height: calc(100vh - var(--topbar-h, 48px) - var(--dev-env-banner-h));
}
html.has-dev-env-banner .login-page {
  min-height: calc(100vh - var(--dev-env-banner-h));
}
/* In the app the bar starts right of the sidebar, so the sidebar keeps its full
   height (the session recorder sits at its bottom). The narrower bar wraps to a
   third line on mid-size screens, so it gets a little taller there. */
html.has-dev-env-banner:has(.shell) .dev-env-banner { left: var(--sidebar-w); }
html.has-dev-env-banner:has(.shell--collapsed) .dev-env-banner { left: 48px; }
@media (min-width: 721px) and (max-width: 1100px) {
  html.has-dev-env-banner:has(.shell) { --dev-env-banner-h: 72px; }
}

/* Full-height pages: the .page frame stops scrolling and becomes a flex column
   (so an impersonation banner + page can share the height); the inner region
   owns the scroll and sits flush to the bottom.
   min-width:0 lets a wide grid own its own horizontal scroll so the sticky left
   row labels pin (otherwise the flex item grows and the body scrolls sideways). */
.content:has(.grid-page),
.content:has(.cal-page) {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.content:has(.grid-page) > .page,
.content:has(.cal-page) > .page {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  padding-bottom: 0;            /* grid reaches the bottom — no artificial band */
  display: flex;
  flex-direction: column;
}
.grid-page,
.cal-page {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;                 /* fill the page instead of a fragile 100vh calc */
}
.grid-page { display: flex; flex-direction: column; }
.grid-page .matrix-grid-container {
  flex: 1 1 auto;
  min-height: 0;
}

/* ── Pipeline: collapse tall side-state cells (Backlog / Deferred) ──────────
   When a Backlog/Deferred cell holds >4 cards, cap its height and fade the
   bottom out; a "Show all (N)" button expands it. Keeps the matrix compact. */
.pipeline-cell-stack {
  display: flex;
  flex-direction: column;
  gap: var(--s8, 8px);
}
.pipeline-cell-capped {
  max-height: 460px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.pipeline-cell-expand {
  width: 100%;
  margin-top: var(--s4, 4px);
}

/* ── Pipeline: freeze the row labels on horizontal scroll ───────────────────
   The kit applies the vertical-text rotation transform to .matrix-grid-row,
   which is also the sticky element; move the rotation to an inner span and lift
   the z-index so the row labels stay pinned at the left like the column
   headers stay pinned at the top. */
.pipeline-page .matrix-grid-row {
  writing-mode: horizontal-tb;
  transform: none;
  z-index: 2;
}
.pipeline-page .matrix-grid-row .matrix-row-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

/* ── Project outline → tasks quick-access list ── */
.project-tasks-list {
  display: flex;
  flex-direction: column;
  gap: var(--s4, 4px);
}

/* ── Project detail side panel: tasks list (rail-card format + fade-after-4) ── */
.panel-tasks-list {
  display: flex;
  flex-direction: column;
  gap: var(--s4, 4px);
}
/* In the panel each rail card is a link, not a drag handle. It also carries no
   bottom-right code slug here, so drop the slug's reserved bottom padding. */
.panel-tasks-list .cal-rail-task {
  cursor: pointer;
  padding-bottom: var(--s8, 8px);
}
/* Cap at ~4 cards with a bottom fade until expanded (mirrors .pipeline-cell-capped). */
.panel-tasks-capped {
  max-height: 232px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.panel-tasks-expand {
  width: 100%;
  margin-top: var(--s4, 4px);
}

/* ── Project detail side panel: documents list ──
   Compact file rows matching the side-panel language: thin rules, muted meta,
   no boxes or pills. Each row links straight to the download route. */
.pdp-docs {
  display: flex;
  flex-direction: column;
}
.pdp-doc {
  display: flex;
  align-items: center;
  gap: var(--s8, 8px);
  padding: var(--s8, 8px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-1);
  text-decoration: none;
  font-size: var(--t-13, 13px);
  transition: color var(--dt-fast, 0.12s);
}
.pdp-doc:last-child { border-bottom: none; }
.pdp-doc-row { display: flex; align-items: center; gap: var(--s4, 4px); border-bottom: 1px solid var(--line); }
.pdp-doc-row:last-child { border-bottom: none; }
.pdp-doc-row .pdp-doc { flex: 1; min-width: 0; border-bottom: none; }
.pdp-doc:hover { color: var(--accent); }
.pdp-doc-icon {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--ink-3);
}
.pdp-doc:hover .pdp-doc-icon { color: var(--accent); }
.pdp-doc-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pdp-doc-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.pdp-doc-by {
  font-size: var(--t-11, 11px);
  color: var(--ink-3);
  font-weight: 400;
}
.pdp-doc-size {
  flex-shrink: 0;
  font-size: var(--t-11, 11px);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* ============================================
   PRÉQUALIFICATION PANELS (RCAJO + AI)
   ============================================ */

.pq-panel {
  margin-bottom: var(--s4, 4px);
}

.pq-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s8, 8px);
  margin-bottom: var(--s4, 4px);
}

.pq-error {
  font-size: var(--t-12, 12px);
  color: var(--err);
}

.pq-cap-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s8, 8px);
}

/* Resource row inside a capability card */
.pq-resource {
  padding: var(--s8, 8px) 0;
  border-top: 1px solid var(--line);
}
.pq-resource:first-child {
  border-top: none;
}
.pq-resource-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s8, 8px);
  flex-wrap: wrap;
}
.pq-resource-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--s12, 12px);
}

/* Score (current → target) */
.pq-score {
  font-size: var(--t-13, 13px);
  color: var(--ink-1);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}
.pq-score-arrow {
  color: var(--ink-3);
}
.pq-score-input {
  width: 56px;
  font-size: var(--t-13, 13px);
  padding: 2px var(--s4, 4px);
  border: 1px solid var(--line);
  border-radius: var(--r1, 4px);
  background: var(--surface);
  color: var(--ink-1);
  font-variant-numeric: tabular-nums;
}

/* Criticality mini-bar */
.criticality {
  display: inline-flex;
  align-items: center;
  gap: var(--s4, 4px);
}
.criticality-bar {
  display: inline-flex;
  gap: 2px;
}
.criticality-seg {
  width: 4px;
  height: 12px;
  background: var(--line);
  border-radius: 1px;
}
.criticality-seg.on {
  background: var(--accent);
}
.criticality-num {
  font-size: var(--t-11, 11px);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* Add rows (capability / resource) */
.pq-add {
  display: flex;
  align-items: center;
  gap: var(--s8, 8px);
  flex-wrap: wrap;
}
.pq-add--sub {
  width: 100%;
}
.pq-add-input {
  display: flex;
  align-items: center;
  gap: var(--s4, 4px);
  flex: 1;
  min-width: 220px;
}
.pq-add-input .form-input {
  font-size: var(--t-13, 13px);
  flex: 1;
}
.pq-picker-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4, 4px);
  font-size: var(--t-12, 12px);
  color: var(--ink-2);
  background: none;
  border: 1px dashed var(--line);
  border-radius: var(--r1, 4px);
  padding: 4px var(--s8, 8px);
  cursor: pointer;
  max-width: 280px;
}
.pq-picker-trigger:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sequencing */
/* Sub-labels match .form-label (sentence case, bold, ink-1) — not uppercase/muted */
.pq-sub-label {
  display: block;
  font-size: var(--t-11, 11px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-1);
  margin-bottom: var(--s4, 4px);
}
.initiative-form .pq-sub-label { font-size: var(--t-12, 12px); }
.pq-seq-item {
  font-size: var(--t-13, 13px);
  line-height: 1.5;
}
.pq-recommendation {
  display: flex;
  align-items: center;
  gap: var(--s8, 8px);
  flex-wrap: wrap;
}

/* Warn badge (sequence later) */
.badge-warn {
  background: var(--warn, #d97706);
  color: #fff;
}

/* ── Préqualification refinements: editable notes, standalone resources,
      sequencing rows, and the dependency graph ── */

/* Label row that pairs a sub-label with an inline action (Clear / count) */
.pq-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s8, 8px);
  margin-bottom: var(--s4, 4px);
}
.pq-label-row .pq-sub-label {
  margin-bottom: 0;
}

/* Editable sequencing row: name + comment input + remove, wraps gracefully */
.pq-seq-row {
  display: flex;
  align-items: center;
  gap: var(--s8, 8px);
  flex-wrap: wrap;
  padding: var(--s4, 4px) 0;
}
.pq-seq-name {
  font-weight: 500;
  font-size: var(--t-13, 13px);
  color: var(--ink-1);
}
.pq-seq-comment {
  flex: 1;
  min-width: 160px;
  font-size: var(--t-13, 13px);
}

/* Dependency graph: predecessors → this project → successors */
.pq-graph {
  display: flex;
  align-items: center;
  gap: var(--s8, 8px);
  flex-wrap: wrap;
  padding: var(--s8, 8px);
  border: 1px solid var(--line);
  border-radius: var(--r1, 4px);
  background: var(--surface);
}
.pq-graph-col {
  display: flex;
  flex-direction: column;
  gap: var(--s4, 4px);
  flex: 1 1 140px;
  min-width: 0;
}
.pq-graph-col--self {
  flex: 0 0 auto;
}
.pq-node {
  border: 1px solid var(--line);
  border-radius: var(--r1, 4px);
  background: var(--surface);
  padding: var(--s4, 4px) var(--s8, 8px);
  font-size: var(--t-12, 12px);
  line-height: 1.4;
  color: var(--ink-2);
  text-align: center;
  word-break: break-word;
}
.pq-node--self {
  border: 2px solid var(--accent);
  background: var(--accent-dim);
  color: var(--ink-1);
  font-weight: 600;
}
.pq-node--muted {
  border-style: dashed;
  color: var(--ink-3);
  font-style: italic;
}
.pq-arrow {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
  font-weight: 700;
}
.pq-node-name { display: block; }
.pq-node-stage {
  display: block;
  margin-top: 2px;
  font-size: var(--t-11, 11px);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pq-node--self .pq-node-name { color: var(--ink-1); }

/* ── Préqualification v3: fuzzy add, aligned resource table, source tags, dep cards ── */

/* Type-to-search add control */
.pq-fuzzy { position: relative; flex: 1 1 auto; min-width: 240px; }
.pq-fuzzy-input { width: 100%; font-size: var(--t-13, 13px); }

/* Resource table — fixed columns so Maturity/Criticality align & compare across rows */
.pq-res-wrap { border-top: 1px solid var(--line); }
.pq-res-wrap:first-of-type { border-top: none; }
.pq-res { display: flex; align-items: center; gap: var(--s8, 8px); padding: var(--s8, 8px) 0; }
.pq-res-head { padding: var(--s4, 4px) 0; border-bottom: 1px solid var(--line); }
.pq-res-head > span {
  font-size: var(--t-11, 11px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pq-res-main { flex: 1 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: var(--s4, 4px); flex-wrap: wrap; }
.pq-res-title { font-weight: 500; font-size: var(--t-13, 13px); color: var(--ink-1); }
.pq-res-mat {
  flex: 0 0 112px;
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px;
  font-size: var(--t-13, 13px); color: var(--ink-1); font-variant-numeric: tabular-nums;
}
.pq-mat-cur { color: var(--ink-3); }
.pq-mat-arrow { color: var(--ink-3); font-size: var(--t-13, 13px); }
.pq-mat-tgt { font-weight: 600; }
.pq-mat-input {
  width: 46px; text-align: right;
  font-size: var(--t-13, 13px); padding: 1px var(--s4, 4px);
  border: 1px solid var(--line); border-radius: var(--r1, 4px);
  background: var(--surface); color: var(--ink-1); font-variant-numeric: tabular-nums;
}
.pq-res-crit { flex: 0 0 120px; display: inline-flex; justify-content: flex-end; }
.pq-res-act { flex: 0 0 22px; display: inline-flex; justify-content: flex-end; }

/* Info icon revealing the RCAJO description */
.pq-info-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; padding: 0;
  border: none; background: none; color: var(--ink-3); cursor: pointer; border-radius: 50%;
}
.pq-info-btn:hover, .pq-info-btn.on { color: var(--accent); background: var(--accent-dim); }

/* Source-tagged text blocks — make provenance explicit */
.pq-rcajo-desc, .pq-pistache {
  font-size: var(--t-12, 12px); line-height: 1.5; color: var(--ink-2);
  margin-top: var(--s4, 4px); padding-left: var(--s8, 8px);
  border-left: 2px solid var(--line);
}
.pq-src-tag {
  display: inline-block; margin-right: var(--s4, 4px);
  font-size: var(--t-11, 11px); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0 5px; border-radius: var(--r1, 4px); vertical-align: 1px;
}
.pq-src-rcajo { color: var(--accent); background: var(--accent-dim); }
.pq-src-pistache { color: var(--ink-3); background: var(--line); }
.pq-badge-new { background: var(--line); color: var(--ink-2); }

/* Dependency cards (sequencing) — clear project/resource identity + frameless reason */
.pq-dep-card {
  border: 1px solid var(--line); border-radius: var(--r1, 4px);
  background: var(--surface); padding: var(--s8, 8px) var(--s12, 12px);
}
.pq-dep-head { display: flex; align-items: center; gap: var(--s8, 8px); flex-wrap: wrap; }
.pq-dep-kind {
  font-size: var(--t-11, 11px); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3); flex: 0 0 auto;
}
.pq-dep-name { font-weight: 600; font-size: var(--t-14, 14px); color: var(--ink-1); flex: 0 1 auto; min-width: 0; }
.pq-dep-tags { display: inline-flex; align-items: center; gap: var(--s4, 4px); flex: 0 0 auto; margin-left: auto; }
.pq-dep-card .form-input--bare { margin-top: var(--s4, 4px); font-size: var(--t-13, 13px); }
.badge-muted { background: transparent; color: var(--ink-3); border: 1px dashed var(--line); }

/* Fuzzy dropdown shows ALL options when empty — make it scroll */
.pq-fuzzy .autosuggest-dropdown { max-height: 280px; overflow-y: auto; }

/* Project info popover (Problem / Goal / Deliverables) inside a dependency card */
.pq-proj-info {
  margin-top: var(--s8, 8px);
  padding: var(--s8, 8px);
  border: 1px solid var(--line);
  border-radius: var(--r1, 4px);
  background: var(--bg-inset, var(--bg));
  display: flex; flex-direction: column; gap: var(--s8, 8px);
}
.pq-proj-info-row { font-size: var(--t-13, 13px); color: var(--ink-2); line-height: 1.5; }
.pq-proj-info-k {
  display: block;
  font-size: var(--t-11, 11px); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 1px;
}
.pq-proj-info-list { margin: 0; padding-left: var(--s16, 16px); }

/* Explanatory text in entry fields is italic, smaller and lighter app-wide — it
   should read as a subdued hint, never compete with labels/headings. */
input::placeholder, textarea::placeholder {
  font-style: italic;
  font-size: var(--t-12, 12px);
  color: var(--ink-4, var(--ink-3));
  opacity: 1;
}

/* Anchored info popover (portal-rendered, fixed at the icon) */
.pq-popover {
  position: fixed;
  z-index: 1000;
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r1, 4px);
  box-shadow: var(--shadow-md, 0 6px 20px rgba(0,0,0,0.14));
  padding: var(--s12, 12px);
  font-size: var(--t-13, 13px);
  color: var(--ink-2);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: var(--s8, 8px);
}
.pq-pop-tag {
  align-self: flex-start;
  font-size: var(--t-11, 11px); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim); padding: 0 6px; border-radius: var(--r1, 4px);
}
.pq-pop-title { font-weight: 700; font-size: var(--t-14, 14px); color: var(--ink-1); }
.pq-pop-body { white-space: pre-wrap; }

/* User-toggleable Strategic label (pistache sets the initial value) */
.pq-strategic-toggle {
  font-size: var(--t-11, 11px); font-weight: 600; letter-spacing: 0.02em;
  padding: 2px var(--s8, 8px); border-radius: var(--r1, 1px); cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  transition: all var(--dt-fast, 0.12s);
}
.pq-strategic-toggle:hover { border-color: var(--accent); color: var(--accent); }
.pq-strategic-toggle.on { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* pistache AI commentary reads as italic explanatory text (tag stays upright) */
.pq-pistache { font-style: italic; }
.pq-pistache .pq-src-tag, .pq-rcajo-desc .pq-src-tag { font-style: normal; }

/* Per-item "Ask pistache" assist button */
.pq-ask {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--t-11, 11px); font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); background: var(--accent-dim);
  border: none; border-radius: var(--r1, 4px); padding: 2px var(--s8, 8px); cursor: pointer;
}
.pq-ask:hover { filter: brightness(0.97); }
.pq-ask:disabled { opacity: 0.6; cursor: default; }
.pq-dep-reason { margin-top: var(--s4, 4px); }
.pq-dep-reason-bar { display: flex; justify-content: flex-end; margin-bottom: 2px; }
.pq-dep-reason-ro { font-size: var(--t-13, 13px); color: var(--ink-2); white-space: pre-wrap; margin-top: var(--s4, 4px); }

/* Sponsor-contacted checkbox */
.pq-checkbox {
  display: inline-flex; align-items: center; gap: var(--s8, 8px);
  font-size: var(--t-13, 13px); color: var(--ink-1); cursor: pointer; margin-bottom: var(--s16, 16px);
}
.pq-checkbox input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* Decision (verdict) block */
.pq-decision { display: flex; flex-direction: column; gap: var(--s8, 8px); }
.pq-decision-help { margin: 0; font-size: var(--t-13, 13px); font-style: italic; color: var(--ink-3); }
.pq-decision-current { margin: 0; font-size: var(--t-12, 12px); color: var(--ink-3); }

/* Scoping allocations — frameless cells, aligned columns, computed hours */
.alloc-head, .alloc-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1.4fr) minmax(0, 1.2fr) 84px 52px 58px 22px;
  gap: var(--s8, 8px);
  align-items: center;
}
.alloc-head > span {
  font-size: var(--t-11, 11px); font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-3); text-align: right; padding-bottom: 2px;
}
.alloc-head > span:nth-child(2), .alloc-head > span:nth-child(3) { text-align: left; }
.alloc-row { padding: 2px 0; border-bottom: 1px solid var(--line); }
.alloc-chevron {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: none; cursor: pointer; color: var(--ink-3); padding: 0;
}
.alloc-chevron:hover { color: var(--accent); }
.alloc-chevron .icon-sm { transition: transform var(--dt-fast, 0.12s); }
.alloc-name { font-weight: 500; font-size: var(--t-13, 13px); color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alloc-row .form-input--bare { font-size: var(--t-13, 13px); padding: 2px 0; }
.alloc-pct { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; }
.alloc-pct .form-input--bare { width: 38px; text-align: right; padding: 2px 0; }
.alloc-pct > span { color: var(--ink-3); font-size: var(--t-12, 12px); }
.alloc-num { text-align: right; font-variant-numeric: tabular-nums; font-size: var(--t-13, 13px); color: var(--ink-2); }
.alloc-add { display: flex; align-items: flex-end; gap: var(--s8, 8px); margin-top: var(--s8, 8px); }
.alloc-add .autosuggest-wrapper { flex: 1; }
.alloc-total {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: var(--s12, 12px); padding: var(--s8, 8px) var(--s12, 12px);
  border: 1px solid var(--line); border-radius: var(--r1, 4px); background: var(--bg-inset, var(--bg));
}
.alloc-total-k { font-size: var(--t-12, 12px); font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); }
.alloc-total-v { font-size: var(--t-16, 16px); font-weight: 700; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.alloc-hint { font-size: var(--t-12, 12px); font-style: italic; color: var(--ink-3); margin-bottom: var(--s8, 8px); }

/* A person's cross-project allocations (expanded under a row) */
.alloc-expand {
  margin: 2px 0 var(--s8, 8px) 28px;
  padding: var(--s8, 8px) var(--s12, 12px);
  border-left: 2px solid var(--line);
  background: var(--bg-inset, var(--bg));
  border-radius: 0 var(--r1, 4px) var(--r1, 4px) 0;
}
.alloc-expand-empty { font-size: var(--t-12, 12px); font-style: italic; color: var(--ink-3); }
.alloc-expand-head, .alloc-expand-row {
  display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) 44px 52px;
  gap: var(--s8, 8px); align-items: center;
}
.alloc-expand-head > span { font-size: var(--t-11, 11px); font-weight: 600; color: var(--ink-3); }
.alloc-expand-head > span:nth-child(4), .alloc-expand-head > span:nth-child(5) { text-align: right; }
.alloc-expand-row { padding: 3px 0; font-size: var(--t-13, 13px); color: var(--ink-2); }
.alloc-expand-proj, .alloc-expand-role { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alloc-expand-proj { color: var(--ink-1); font-weight: 500; }
.alloc-expand-total {
  display: flex; justify-content: space-between; margin-top: var(--s4, 4px); padding-top: var(--s4, 4px);
  border-top: 1px solid var(--line); font-size: var(--t-12, 12px); font-weight: 600; color: var(--ink-2);
}

/* Planning milestones — draggable cards, frameless fields */
.ms-card {
  border: 1px solid var(--line); border-radius: var(--r1, 4px);
  background: var(--surface); padding: var(--s12, 12px);
  display: flex; flex-direction: column; gap: var(--s12, 12px);
}
.ms-card-head { display: flex; align-items: center; gap: var(--s8, 8px); }
.ms-drag { display: inline-flex; border: none; background: none; color: var(--ink-3); cursor: grab; padding: 0; }
.ms-drag:active { cursor: grabbing; }
.ms-card-tag { font-size: var(--t-11, 11px); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); flex: 1; }
.ms-remove { display: inline-flex; border: none; background: none; color: var(--ink-3); cursor: pointer; padding: 0; }
.ms-remove:hover { color: var(--err); }
/* A cancelled milestone keeps its place in the Planning editor, greyed and read-only. */
.ms-card--cancelled { border-style: dashed; background: var(--surface-2, var(--surface)); }
.ms-card--cancelled .ms-card-tag { flex: none; }
.ms-cancelled-name { flex: 1; color: var(--ink-3); text-decoration: line-through; font-weight: 600; }
.ms-cancelled-info { font-size: var(--t-12, 12px); color: var(--ink-3); line-height: 1.5; }
.ms-field { display: flex; flex-direction: column; }
.ms-field > .pq-sub-label { margin-bottom: 2px; }
.ms-due-history { margin-top: var(--s4, 4px); }
.ms-due-history-list {
  list-style: none; margin: var(--s4, 4px) 0 0; padding: var(--s8, 8px);
  border: 1px solid var(--line); border-radius: var(--r1, 4px); background: var(--surface);
  display: flex; flex-direction: column; gap: var(--s4, 4px);
}
.ms-due-history-list li { font-size: var(--t-12, 12px); color: var(--ink-2); }
.ms-assign { display: flex; align-items: flex-start; gap: var(--s8, 8px); padding: var(--s4, 4px) 0; border-top: 1px solid var(--line); }
.ms-assign:first-of-type { border-top: none; }
.ms-assign-name { font-weight: 500; font-size: var(--t-13, 13px); color: var(--ink-1); flex: 0 0 120px; }
.ms-assign .autosuggest-wrapper, .ms-assign textarea { flex: 1; }
.ms-assign-add { display: flex; align-items: center; gap: var(--s4, 4px); flex-wrap: wrap; margin-top: var(--s4, 4px); }
.ms-chip {
  font-size: var(--t-12, 12px); padding: 2px var(--s8, 8px); border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer;
}
.ms-chip:hover { border-color: var(--accent); color: var(--accent); }
.ms-chip.on { background: var(--accent); border-color: transparent; color: #fff; }
.ms-chip:disabled { cursor: default; }
.ms-deliv { margin-top: var(--s8, 8px); display: flex; flex-direction: column; gap: var(--s4, 4px); }
.ms-deliv-chips { display: flex; flex-wrap: wrap; gap: var(--s4, 4px); }

/* Deliverable cards — title + fold-out body (editor + read-only accordion) */
.deliv-card {
  border: 1px solid var(--line); border-radius: var(--r1, 4px);
  background: var(--surface); padding: var(--s8, 8px) var(--s12, 12px);
  display: flex; flex-direction: column; gap: var(--s8, 8px);
}
.deliv-card-head { display: flex; align-items: center; gap: var(--s8, 8px); }
.deliv-card-head > input, .deliv-card-head > span { flex: 1; }
.deliv-fold { display: inline-flex; border: none; background: none; color: var(--ink-3); cursor: pointer; padding: 0; flex: 0 0 auto; }
.deliv-fold:disabled { cursor: default; }

/* Execution — milestone phases with editable status */
.ms-exec { padding: var(--s8, 8px) 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s4, 4px); }
.ms-exec:first-of-type { border-top: none; }
.ms-exec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s8, 8px); }
.ms-exec-title { font-weight: 600; font-size: var(--t-14, 14px); color: var(--ink-1); }
.ms-exec-due { font-size: var(--t-12, 12px); color: var(--ink-3); }
.ms-exec-due.overdue { color: var(--err); font-weight: 600; }

/* Handover — achieved-outcome rows */
.ho-cap { display: flex; flex-direction: column; }
.ho-cap-title { font-weight: 600; font-size: var(--t-13, 13px); color: var(--ink-1); margin-bottom: 2px; }
.ho-res { display: grid; grid-template-columns: minmax(0, 1.6fr) 88px 112px; gap: var(--s8, 8px); align-items: center; padding: 4px 0; border-top: 1px solid var(--line); }
.ho-cap .ho-res:first-of-type { border-top: none; }
.ho-res-name { font-size: var(--t-13, 13px); color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-res-target { text-align: right; font-variant-numeric: tabular-nums; font-size: var(--t-13, 13px); color: var(--ink-3); }
.ho-res-ach { display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--s4, 4px); }
.ho-ach-input { width: 44px; text-align: right; padding: 2px 0; font-variant-numeric: tabular-nums; }

/* Left-aligned filter bar (Pipeline, Tasks) */
.filter-bar { display: flex; align-items: center; gap: var(--s12, 12px); flex-wrap: wrap; justify-content: flex-start; }

/* Fuzzy multi-select filter */
.msf { position: relative; display: inline-flex; align-items: center; gap: var(--s4, 4px); }
.msf-label { font-size: var(--t-11, 11px); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.msf-control {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px;
  min-width: 150px; max-width: 320px; padding: 3px var(--s8, 8px);
  border: 1px solid var(--line); border-radius: var(--r1, 4px); background: var(--surface); cursor: text;
}
.msf-control:focus-within { border-color: var(--accent); }
.msf-chip {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: var(--t-11, 11px); padding: 1px 4px 1px 6px; border-radius: var(--r1, 4px);
  background: var(--accent-dim); color: var(--accent);
}
.msf-chip-x { display: inline-flex; align-items: center; border: none; background: none; color: inherit; cursor: pointer; padding: 0; opacity: 0.7; }
.msf-chip-x:hover { opacity: 1; }
.msf-input { flex: 1; min-width: 56px; border: none; background: none; outline: none; font-size: var(--t-12, 12px); color: var(--ink-1); padding: 1px 0; }
.msf-input::placeholder { font-style: italic; color: var(--ink-4, var(--ink-3)); }
.msf-dropdown { min-width: 200px; max-height: 280px; overflow-y: auto; }
.msf-on { color: var(--accent); font-weight: 600; }
.msf-check { display: inline-block; width: 12px; color: var(--accent); }

/* Page controls hoisted into the LEFT of the topbar (next to the logo) */
.header-actions { display: flex; align-items: center; gap: var(--s16, 16px); flex-wrap: wrap; }
/* Filter bar lives inside the fixed-height (48px) topbar, so it must stay on a
   single row. Selecting a project adds a chip; without these constraints the
   control (and the bar) wrap to a second line and bleed out of the topbar band. */
.header-filter-bar { display: flex; align-items: center; gap: var(--s12, 12px); flex-wrap: nowrap; min-width: 0; }
.header-filter-bar .msf { min-width: 0; }
.header-filter-bar .msf-control {
  min-width: 130px; max-width: 240px;
  flex-wrap: nowrap;            /* chips stay on one line instead of stacking */
  overflow-x: auto;            /* scroll horizontally if selections overflow */
  scrollbar-width: none;        /* hide the scrollbar (Firefox) */
}
.header-filter-bar .msf-control::-webkit-scrollbar { display: none; }  /* hide the scrollbar (WebKit) */

/* MultiSelectFilter reused as a form field (e.g. task "linked projects") —
   stretch to the field's full width instead of the filter-bar's fixed sizing. */
.linked-projects-field .msf { display: flex; width: 100%; }
.linked-projects-field .msf-control { min-width: 0; max-width: none; width: 100%; }
.topbar-stage-control { display: flex; align-items: center; gap: var(--s8, 8px); }
.topbar-stage-label { font-size: var(--t-11, 11px); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.topbar-stage-control > div { min-width: 170px; }

/* Council: deferred/reviewed date line */
.council-card-dates {
  margin-top: var(--s4, 4px);
  font-size: var(--t-12, 12px);
  color: var(--ink-3);
}

.project-task-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s8, 8px);
  padding: var(--s8, 8px);
  border: 1px solid var(--line);
  border-radius: var(--r1, 4px);
  color: var(--ink-1);
  text-decoration: none;
  font-size: var(--t-13, 13px);
}
.project-task-link:hover {
  background: var(--bg-inset, var(--bg));
  border-color: var(--line-strong);
}
.project-task-link-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================
   MY CALENDAR — the person's work week (Mon–Fri)
   The week on top (its own scroll), the person's open tasks underneath.
   Dropping a task plans a work session — an instance: the task stays in
   the list. Sessions move, resize from their bottom edge and go with ×.
   Same language as the task planning view (.tlt-*): bordered surface,
   sticky headers, status colours, today tinted with a red "now" line.
   ============================================ */

.cal-page {
  /* height comes from the full-height page flex-fill in the app shell scroll
     model above (fills .page, no fragile 100vh calc). */
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cal-page > .page-toolbar { flex-wrap: wrap; align-items: center; gap: var(--s8, 8px) var(--s16, 16px); }

/* Colours by state — planned (indigo), due within a week (orange),
   overdue (red), done (green), private (grey). */
.mycal-session, .mycal-group, .mycal-task-card {
  --c-bg: var(--tlt-prog-bg); --c-edge: var(--tlt-prog-edge); --c-ink: var(--tlt-prog-ink);
}
.mycal-session.is-soon, .mycal-group.is-soon, .mycal-task-card.is-soon {
  --c-bg: var(--tlt-orange-dim); --c-edge: var(--tlt-orange); --c-ink: var(--ink-1);
}
.mycal-session.is-overdue, .mycal-group.is-overdue, .mycal-task-card.is-overdue {
  --c-bg: var(--tlt-block-bg); --c-edge: var(--tlt-block-edge); --c-ink: var(--tlt-block-ink);
}
.mycal-session.is-done {
  --c-bg: var(--tlt-done-bg); --c-edge: var(--tlt-done-edge); --c-ink: var(--tlt-done-ink);
}
.mycal-session.is-locked {
  --c-bg: var(--tlt-todo-bg); --c-edge: var(--tlt-todo-edge); --c-ink: var(--tlt-todo-ink);
}
/* ── Top bar: the week (‹ label ›) as one block, back to this week, whose
   calendar (PMO and PMO accompanists only), then the colours as dots, like the
   list's group titles. One line, every control 32px tall. ── */
.cal-page > .toolbar.mycal-toolbar { flex-wrap: wrap; align-items: center; gap: var(--s8, 8px) var(--s12, 12px); margin-bottom: var(--s12, 12px); }
.mycal-weeknav {
  display: inline-flex; align-items: stretch; height: 32px;
  border: 1px solid var(--line); border-radius: var(--r1, 6px); background: var(--surface); overflow: hidden;
}
.mycal-weeknav-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; padding: 0;
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
}
.mycal-weeknav-btn:hover { background: var(--bg); color: var(--accent); }
.mycal-weeknav-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mycal-weeknav-label {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; min-width: 210px; justify-content: center;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  font-size: var(--t-13, 13px); font-weight: 600; color: var(--ink-1); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.mycal-weeknav-num { font-size: var(--t-11, 11px); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.mycal-today { height: 32px; padding: 0 12px; font-size: var(--t-13, 13px); border: 1px solid var(--line); background: var(--surface); }
.mycal-today:disabled { opacity: 1; color: var(--ink-3); background: transparent; border-color: transparent; cursor: default; }
.mycal-person { min-width: 190px; max-width: 240px; }
.mycal-person .form-input { height: 32px; min-height: 32px; padding: 0 10px; font-size: var(--t-13, 13px); }
.mycal-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-left: auto;
  font-size: var(--t-12, 12px); color: var(--ink-3);
}
.mycal-legend-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mycal-dot { --c-edge: var(--tlt-prog-edge); width: 8px; height: 8px; border-radius: 50%; background: var(--c-edge); flex-shrink: 0; }
.mycal-dot.is-soon { --c-edge: var(--tlt-orange); }
.mycal-dot.is-overdue { --c-edge: var(--tlt-block-edge); }
.mycal-dot.is-done { --c-edge: var(--tlt-done-edge); }
.mycal-dot.is-outlook { background: var(--bg-inset); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ── The week ── */
.mycal-board {
  flex: 1 1 auto;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
.mycal-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; }
.mycal-grid {
  display: grid;
  grid-template-columns: 56px repeat(5, minmax(128px, 1fr));
  position: relative;
}

/* Day headers (sticky on top; the corner on top and left). */
.mycal-corner {
  grid-row: 1; grid-column: 1;
  position: sticky; top: 0; left: 0; z-index: 7;
  background: var(--surface);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line-strong);
}
.mycal-head {
  grid-row: 1;
  position: sticky; top: 0; z-index: 6;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
  min-height: 52px; padding: 8px 12px;
  background: var(--surface);
  border-left: 1px solid var(--line); border-bottom: 1px solid var(--line-strong);
}
.mycal-head-name { font-size: var(--t-11, 11px); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.mycal-head-date {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 6px;
  border-radius: var(--r-full, 999px);
  font-size: var(--t-15, 15px); font-weight: 700; color: var(--ink-1);
  font-variant-numeric: tabular-nums;
}
.mycal-head.is-past .mycal-head-date { color: var(--ink-3); }
/* Today: tinted header with an accent rule, the date in a filled circle. */
.mycal-head.is-today { background: var(--accent-dim); box-shadow: inset 0 -3px 0 var(--accent); }
.mycal-head.is-today .mycal-head-name { color: var(--accent); }
.mycal-head.is-today .mycal-head-date { background: var(--accent); color: var(--surface); }
/* All-day Outlook events, under the date. */
.mycal-head-allday {
  flex-basis: 100%; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg-inset);
  font-size: var(--t-11, 11px); color: var(--ink-2);
  font-family: inherit; text-align: left; cursor: pointer;
}
.mycal-head-allday:hover { border-color: var(--line-strong); color: var(--ink-1); }

/* Hour gutter (sticky on the left). */
.mycal-gutter {
  grid-row: 2; grid-column: 1;
  position: sticky; left: 0; z-index: 5;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.mycal-gutter-hour {
  position: absolute; right: var(--s8, 8px);
  padding-top: 3px;
  font-size: var(--t-11, 11px); font-weight: 600; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* Day columns: hour rules solid, half hours faint; past days greyed, today tinted. */
.mycal-day { grid-row: 2; position: relative; border-left: 1px solid var(--line); }
.mycal-day.is-past { background: rgba(128, 128, 128, 0.04); }
.mycal-day.is-today { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.mycal-cell { position: absolute; left: 0; right: 0; border-top: 1px solid color-mix(in srgb, var(--line) 45%, transparent); }
.mycal-cell.is-hour { border-top-color: var(--line); }
.mycal-cell:first-child { border-top-color: transparent; }

/* Now, on today's column. */
.mycal-now { position: absolute; left: -1px; right: 0; z-index: 4; height: 2px; margin-top: -1px; background: var(--err); pointer-events: none; }
.mycal-now::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--err); }

/* Where a dragged task or session will land. */
.mycal-ghost {
  position: absolute; left: 3px; right: 3px; z-index: 3;
  box-sizing: border-box; padding: 3px 8px;
  border: 2px dashed var(--accent); border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: var(--t-11, 11px); font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* A work session — draggable, resizable from its bottom edge. */
.mycal-session {
  position: absolute; left: 3px; right: 3px; z-index: 2;
  display: flex; flex-direction: column; gap: 1px;
  box-sizing: border-box; padding: 4px 8px 6px;
  overflow: hidden;
  border: 1px solid var(--c-edge); border-left-width: 4px; border-radius: 6px;
  background: var(--c-bg); color: var(--c-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  font-size: var(--t-12, 12px); line-height: 1.3;
  cursor: grab; user-select: none;
}
.mycal-session:hover { z-index: 3; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.mycal-session[data-dragging] { opacity: 0.35; }
.mycal-session.is-short { justify-content: center; padding-top: 1px; padding-bottom: 1px; }
.mycal-session-title {
  display: flex; align-items: center; gap: 4px; min-width: 0;
  padding-right: 14px;
  font-weight: 600; white-space: nowrap; overflow: hidden;
}
.mycal-session-title > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mycal-session-title svg { flex-shrink: 0; }
.mycal-session-meta { font-size: var(--t-11, 11px); opacity: 0.8; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mycal-session-remove {
  position: absolute; top: 3px; right: 3px;
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 4px; background: none;
  color: inherit; cursor: pointer;
  opacity: 0; transition: opacity var(--dt-fast, 0.1s);
}
.mycal-session:hover .mycal-session-remove { opacity: 0.7; }
.mycal-session-remove:hover { opacity: 1; color: var(--err); background: var(--surface); }
.mycal-session-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.mycal-session-resize::after {
  content: ''; position: absolute; left: 50%; bottom: 2px;
  width: 18px; height: 2px; margin-left: -9px; border-radius: 1px;
  background: var(--c-edge); opacity: 0; transition: opacity var(--dt-fast, 0.1s);
}
.mycal-session:hover .mycal-session-resize::after { opacity: 0.8; }
/* The session being moved, under the pointer (sized by the drag overlay). */
.mycal-session--overlay { position: relative; left: auto; right: auto; width: 100%; height: 100%; cursor: grabbing; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }

/* Outlook meetings — read-only, quiet grey, no stripes. */
.mycal-outlook {
  position: absolute; left: 3px; right: 3px; z-index: 1;
  display: flex; flex-direction: column; gap: 1px;
  box-sizing: border-box; padding: 4px 8px;
  overflow: hidden;
  border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 6px;
  background: var(--bg-inset); color: var(--ink-2);
  font-size: var(--t-12, 12px); line-height: 1.3;
  font-family: inherit; text-align: left; cursor: pointer;
}
.mycal-outlook:hover { border-color: var(--line-strong); color: var(--ink-1); }
.mycal-outlook:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mycal-outlook-desc { display: inline-block; vertical-align: -1px; margin-right: 4px; color: var(--ink-3); }
.mycal-outlook-title { flex-shrink: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mycal-outlook-meta { min-height: 0; overflow: hidden; font-size: var(--t-11, 11px); color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Clickable title / project code — underline on hover, never a pill. */
.mycal-title-link { cursor: pointer; }
.mycal-title-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.code-link { cursor: pointer; }
.code-link:hover { text-decoration: underline; }

/* ── My tasks, under the week ── */
.mycal-tray {
  flex: 0 1 auto; min-height: 0; max-height: 34vh;
  overflow: auto;
  margin: var(--s12, 12px) 0 var(--s16, 16px);
  padding: 12px 14px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface);
}
.mycal-tray-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.mycal-tray-title { font-size: var(--t-13, 13px); font-weight: 700; color: var(--ink-1); }
.mycal-tray-count { font-size: var(--t-12, 12px); font-weight: 600; color: var(--ink-3); }
.mycal-tray-hint { font-size: var(--t-12, 12px); color: var(--ink-3); }
.mycal-tray-empty { font-size: var(--t-13, 13px); color: var(--ink-3); }
.mycal-group + .mycal-group { margin-top: 12px; }
.mycal-group-title {
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
  font-size: var(--t-11, 11px); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.mycal-group-title::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c-edge); }
.mycal-group.is-overdue .mycal-group-title { color: var(--err); }
.mycal-group.is-soon .mycal-group-title { color: var(--tlt-orange); }
.mycal-group-count { font-weight: 600; color: var(--ink-3); }
/* The cards are the Kanban board's .task-card (same size, border, type);
   .mycal-tray-item is the draggable wrapper and carries the drag state. */
.mycal-cards { display: flex; flex-wrap: wrap; gap: var(--s8, 8px); }
.mycal-tray-item { display: block; width: 300px; max-width: 100%; }
.mycal-tray-item[data-dragging] { opacity: 0.5; }
.mycal-tray-item[data-dnd-overlay] .task-card { border-color: var(--accent); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); cursor: grabbing; }
/* The Kanban card, plus the bar on its left in the colour of its group (overdue, due within a week, later). */
.mycal-task-card { max-width: 100%; border-left: 4px solid var(--c-edge); }
.mycal-task-card:hover { border-left-color: var(--c-edge); }
.mycal-task-card .task-card-title { -webkit-line-clamp: 3; }
/* Bottom-right of a session: its copy in Outlook (in place / retry pending). */
.mycal-session-outlook {
  position: absolute; right: 6px; bottom: 7px;
  display: inline-flex; align-items: center;
  opacity: 0.7;
}
.mycal-session-outlook.is-failed { color: var(--tlt-orange); opacity: 1; }
.mycal-task-card .task-card-dates { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
/* The project code in front of a title — on cards and on planned sessions. */
.mycal-code { font-family: var(--font-mono); font-size: var(--t-11, 11px); font-weight: 600; letter-spacing: 0.01em; color: var(--accent); margin-right: 5px; }
.mycal-session-title .mycal-code { color: inherit; font-weight: 700; }
/* The project (or the Kanban board) the card belongs to; the project opens its overview. */
.task-card-project { display: flex; align-items: center; gap: 4px; margin-top: 2px; min-width: 0; font-size: var(--t-11, 11px); color: var(--ink-3); }
.task-card-project > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-card-project > svg { flex-shrink: 0; }
.task-card-project.is-link { cursor: pointer; }
.task-card-project.is-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.task-card-due--soon { color: var(--tlt-orange); }
.mycal-card-count { padding: 0 7px; border-radius: var(--r-full, 999px); background: var(--accent-dim); color: var(--accent); font-size: var(--t-11, 11px); font-weight: 700; white-space: nowrap; }

/* ── Project overview, as an overlay (from a card) ── */
.project-overview-modal { max-width: 720px; }
.po-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.po-kicker { font-size: var(--t-11, 11px); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.po-code { font-family: var(--font-mono); font-weight: 500; color: var(--ink-3); margin-right: var(--s8, 8px); }
.po-head { display: flex; flex-direction: column; gap: var(--s8, 8px); margin-bottom: var(--s16, 16px); }
.po-labels { display: flex; flex-wrap: wrap; gap: 6px; }
.po-label { font-size: var(--t-11, 11px); font-weight: 500; padding: 1px 8px; border: 1px solid var(--line); border-radius: var(--r-full, 999px); color: var(--ink-2); background: var(--surface); }
.po-label--blocked { color: var(--err); border-color: var(--err); }
.po-failed { font-size: var(--t-13, 13px); color: var(--ink-3); }
.project-overview-modal .form-input--bare { cursor: default; }
.project-overview-modal .selectable:disabled { cursor: default; opacity: 1; }

/* Rail-card format, still used by the project side panel's task list. */
.cal-rail-task {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r1, 4px);
  padding: var(--s8, 8px) var(--s8, 8px) var(--s16, 16px);
  background: var(--surface);
  cursor: grab;
  user-select: none;
  transition: border-color var(--dt-fast, 0.1s);
}
.cal-rail-task:hover { border-color: var(--accent); }
.cal-rail-task:active { cursor: grabbing; }
.cal-rail-task[data-dragging] { opacity: 0.3; }
.cal-rail-task-main { display: flex; flex-direction: column; gap: 1px; }
.cal-rail-task-title { font-size: var(--t-13, 13px); color: var(--ink-1); font-weight: 500; }
/* Source indicator pinned to the bottom-right corner of a rail card —
   project tasks show the aeXY slug; Kanban cards reuse the accent corner. */
.cal-rail-code {
  position: absolute;
  right: var(--s6, 6px);
  bottom: var(--s4, 4px);
  font-size: var(--t-10, 10px);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}
.cal-rail-task-due {
  display: inline-block;
  margin-top: var(--s4, 4px);
  font-size: var(--t-11, 11px);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* ============================================
   Standalone Kanban Boards (.kb-*)
   Muted, thin-rule language matching .ms-* — square corners, no pills.
   ============================================ */

.kb-page { padding: 0; }   /* .page already pads; the toolbar lines up with every other page */

/* Create-board control (portaled into the topbar) */
.kb-create { display: inline-flex; align-items: center; gap: var(--s8, 8px); }
.kb-create-input { font-size: var(--t-13, 13px); padding: var(--s4, 4px) var(--s8, 8px); width: 200px; }

/* Boards list */
.kb-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s12, 12px);
}
.kb-board-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--s8, 8px);
  padding: var(--s16, 16px);
  border: 1px solid var(--line);
  border-radius: var(--r1, 4px);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--dt-fast, 120ms), box-shadow var(--dt-fast, 120ms);
}
.kb-board-card:hover {
  border-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent-dim, transparent);
}
.kb-board-card-name {
  font-size: var(--t-15, 15px);
  font-weight: 600;
  color: var(--ink-1);
  line-height: 1.3;
}
.kb-board-card-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--s4, 4px);
  font-size: var(--t-12, 12px);
  color: var(--ink-3);
}

/* Board view */
.kb-board-view { padding: var(--s16, 16px) var(--s24, 24px) var(--s24, 24px); display: flex; flex-direction: column; gap: var(--s16, 16px); height: 100%; }
.kb-board-head {
  display: flex;
  align-items: center;
  gap: var(--s12, 12px);
}
.kb-board-head .form-back {
  margin-bottom: 0;
}
.kb-board-title {
  font-size: var(--t-18, 18px);
  font-weight: 600;
  color: var(--ink-1);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-columns {
  display: flex;
  gap: var(--s12, 12px);
  overflow-x: auto;
  padding-bottom: var(--s8, 8px);
  align-items: flex-start;
}
.kb-column {
  flex: 0 0 280px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r1, 4px);
  background: var(--bg-inset, var(--bg, transparent));
}
.kb-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s8, 8px) var(--s12, 12px);
  border-bottom: 1px solid var(--line);
}
.kb-column-label {
  font-size: var(--t-11, 11px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.kb-column-count { font-size: var(--t-12, 12px); color: var(--ink-3); }
.kb-column-body {
  display: flex;
  flex-direction: column;
  gap: var(--s8, 8px);
  padding: var(--s8, 8px);
  min-height: 80px;
  transition: background var(--dt-fast, 120ms);
}
.kb-column-body[data-dnd-over] { background: var(--accent-dim, transparent); }

/* Card */
.kb-card {
  border: 1px solid var(--line);
  border-radius: var(--r1, 4px);
  background: var(--surface);
  padding: var(--s8, 8px) var(--s10, 10px);
  display: flex;
  flex-direction: column;
  gap: var(--s4, 4px);
  cursor: grab;
  user-select: none;
}
.kb-card:active { cursor: grabbing; }
.kb-card[data-dnd-overlay] { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); cursor: grabbing; }
.kb-card-title { font-size: var(--t-13, 13px); font-weight: 500; color: var(--ink-1); line-height: 1.35; }
.kb-card-desc { font-size: var(--t-12, 12px); color: var(--ink-3); line-height: 1.4; overflow-wrap: break-word; }
.kb-card-meta { display: flex; align-items: center; gap: var(--s8, 8px); flex-wrap: wrap; }
.kb-card-assignee { font-size: var(--t-11, 11px); color: var(--ink-3); }
.kb-card-due { display: flex; align-items: center; gap: var(--s4, 4px); font-size: var(--t-11, 11px); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.kb-card-due--overdue { color: var(--err); }

/* Add-card affordance */
.kb-add-card {
  border: 1px dashed var(--line);
  border-radius: var(--r1, 4px);
  background: transparent;
  color: var(--ink-3);
  font-size: var(--t-12, 12px);
  display: inline-flex;
  align-items: center;
  gap: var(--s4, 4px);
  padding: var(--s6, 6px) var(--s8, 8px);
  cursor: pointer;
  transition: border-color var(--dt-fast, 120ms), color var(--dt-fast, 120ms);
}
.kb-add-card:hover { border-color: var(--accent); color: var(--accent); }
.kb-add-card.open {
  border-style: solid;
  flex-direction: column;
  align-items: stretch;
  gap: var(--s6, 6px);
  padding: var(--s8, 8px);
  cursor: default;
}
.kb-add-card-input { font-size: var(--t-13, 13px); padding: var(--s4, 4px) var(--s8, 8px); }
.kb-add-card-actions { display: flex; align-items: center; gap: var(--s4, 4px); }

/* Members list (inside modal) */
.kb-members { display: flex; flex-direction: column; }
.kb-member {
  display: flex;
  align-items: center;
  gap: var(--s8, 8px);
  padding: var(--s8, 8px) 0;
  border-top: 1px solid var(--line);
}
.kb-member:first-child { border-top: none; }
.kb-member-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.kb-member-name { font-size: var(--t-13, 13px); font-weight: 500; color: var(--ink-1); }
.kb-member-owner { color: var(--ink-3); font-weight: 400; }
.kb-member-email { font-size: var(--t-12, 12px); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-member-remove {
  display: inline-flex;
  border: none;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
  padding: var(--s4, 4px);
}
.kb-member-remove:hover { color: var(--err); }

/* ============================================
   TASK PLANNING — my échéances timeline (Jalons + Mes tâches)
   A sticky-left-column CSS grid (same pattern as the design-kit matrix grid):
   corner + month headers, then one row per lane. Horizontally scrollable;
   a "today" line is absolutely positioned over the whole grid.
   ============================================ */
.tl-page { padding: var(--s20, 20px) 0; }

.tl-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s16, 16px); margin-bottom: var(--s16, 16px); }
.tl-legend-item.tl-legend-label { font-weight: 600; color: var(--ink-2); }
.tl-legend-item { display: inline-flex; align-items: center; gap: var(--s4, 4px); font-size: var(--t-12, 12px); color: var(--ink-3); }
.tl-legend-dot { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--line-strong); }
.tl-legend-dot.is-overdue { background: var(--err); }
.tl-legend-dot.is-soon { background: var(--warn); }

.tl-scroll { overflow-x: auto; border: 1px solid var(--line); }
.tl-grid {
  display: grid;
  grid-template-columns: var(--tl-cols);
  position: relative;
  min-width: max-content;
}

.tl-corner {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tl-month-head {
  padding: var(--s8, 8px) var(--s12, 12px);
  font-size: var(--t-11, 11px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tl-month-head.is-today { color: var(--accent); background: var(--accent-dim); }

.tl-lane-label {
  position: sticky;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  background: var(--surface);
  padding: var(--s8, 8px) var(--s12, 12px);
  font-size: var(--t-11, 11px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tl-month-cell {
  min-height: 72px;
  padding: var(--s8, 8px);
  display: flex;
  flex-direction: column;
  gap: var(--s8, 8px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tl-week-group { display: flex; flex-direction: column; gap: var(--s4, 4px); }

.tl-chip {
  position: relative;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-mid);
  border-radius: var(--r1, 4px);
  background: var(--bg-inset);
  padding: var(--s4, 4px) var(--s8, 8px);
  cursor: pointer;
  overflow: hidden;
  transition: background var(--dt-fast, 0.1s), border-color var(--dt-fast, 0.1s);
}
.tl-chip:hover { background: var(--accent-dim); border-left-color: var(--accent); }
.tl-chip.is-overdue { border-left-color: var(--err); }
.tl-chip.is-overdue:hover { background: var(--err-dim); }
.tl-chip.is-soon { border-left-color: var(--warn); }
.tl-chip.is-soon:hover { background: var(--warn-dim); }
.tl-chip-title {
  display: block;
  font-size: var(--t-12, 12px);
  color: var(--ink-1);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tl-chip-num {
  display: inline-block;
  margin-right: 4px;
  padding: 0 4px;
  border-radius: var(--r1, 4px);
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: var(--t-10, 10px);
}
.tl-chip-dates {
  display: block;
  font-size: var(--t-10, 10px);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tl-chip-code {
  display: block;
  font-size: var(--t-10, 10px);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.tl-today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--err);
  z-index: 3;
  pointer-events: none;
}

/* ── Gérance — resources view ── */
/* Fixed layout + no-wrap/ellipsis: rows always stay on one line (fits a
   12" laptop without horizontal scroll) instead of wrapping cell text when
   a column is narrower than its content. */
/* width:100% (inherited from .table) + this max-width means it fills a
   generous space on 14"+ screens but still shrinks to fit narrower ones —
   table-layout:fixed keeps all columns scaling down together rather than
   overflowing when the container is narrower than their combined widths. */
.res-alloc-table { max-width: 1300px; table-layout: fixed; }
.res-alloc-table th,
.res-alloc-table td {
  padding: 10px 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* The Comm./Collab. header spells out both full words on two lines (with
   their icon) instead of a single abbreviated line that had nowhere to go
   when truncated — so it needs to opt back out of the nowrap-ellipsis rule. */
.res-alloc-table th.res-type-th { white-space: normal; overflow: visible; text-overflow: clip; }
.res-type-header { display: flex; flex-direction: column; gap: 3px; font-weight: 600; }
.res-type-header span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.res-group-muted { opacity: 0.55; filter: grayscale(0.7); }
.res-group-muted:hover { opacity: 0.8; }
.res-summary-card { max-width: 1300px; }
.res-total-pct { font-size: var(--t-13, 13px); font-weight: 500; color: var(--ink-3); font-family: var(--font-sans, inherit); }
.res-type-icons { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }
.res-type-icons span { display: inline-flex; }
.res-group-label {
  font-size: var(--t-11, 11px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-4);
  margin-bottom: var(--s8, 8px);
}
.res-row-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: none;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  vertical-align: -3px;
  margin-right: 2px;
  border-radius: 3px;
}
.res-row-expand-btn:hover { color: var(--ink-1); background: var(--line); }

.res-subrow td { background: var(--bg-inset, var(--bg)); }
.res-subrow-empty { font-size: var(--t-12); color: var(--ink-3); font-style: italic; padding-left: 22px; }
.res-subrow-name { padding-left: 22px; color: var(--ink-1); }

/* ============================================
   GÉRANCE — calendar view (portfolio Gantt)
   One lane per project; milestones drawn as bars positioned by
   estimated_start/estimated_end, deadline as a marker icon. Absolutely
   positioned bars over a fixed-width track (not a per-cell grid like Task
   Planning above) so a milestone can span across month boundaries.
   ============================================ */
.cal-legend-swatch { width: 12px; height: 8px; border-radius: 2px; display: inline-block; }
.cal-legend-swatch.cal-bar-done { background: var(--accent); }
.cal-legend-swatch.cal-bar-urg-normal {
  background-color: var(--ok-dim);
  background-image: repeating-linear-gradient(45deg, var(--ok) 0, var(--ok) 2px, transparent 2px, transparent 4px);
}
.cal-legend-swatch.cal-bar-urg-soon {
  background-color: var(--warn-dim);
  background-image: repeating-linear-gradient(45deg, var(--warn) 0, var(--warn) 2px, transparent 2px, transparent 4px);
}
.cal-legend-swatch.cal-bar-urg-overdue {
  background-color: var(--err-dim);
  background-image: repeating-linear-gradient(45deg, var(--err) 0, var(--err) 2px, transparent 2px, transparent 4px);
}
.cal-legend-swatch.cal-bar-pending { background: var(--line-strong); }

.cal-scroll { overflow-x: auto; border: 1px solid var(--line); cursor: grab; }
.cal-scroll.is-dragging { cursor: grabbing; user-select: none; }
.cal-inner { position: relative; min-width: max-content; }

/* Above the sticky project names (4), which scroll under it vertically. */
.cal-header { display: flex; position: sticky; top: 0; z-index: 5; background: var(--surface); }
.cal-corner {
  position: sticky; left: 0; z-index: 3; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cal-month-head {
  flex-shrink: 0;
  padding: var(--s8, 8px) var(--s12, 12px);
  font-size: var(--t-11, 11px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  box-sizing: border-box;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cal-month-head.is-today { color: var(--accent); background: var(--accent-dim); }

.cal-body { position: relative; }
.cal-row { display: flex; transition: opacity var(--dt-fast), filter var(--dt-fast); }
.cal-row.is-blocked { opacity: 0.55; filter: grayscale(0.7); }
/* The project's name stays opaque over everything scrolling under it
   sideways: deadline markers, follow-up dots, chips (2) and the today /
   as-of lines (3) pass beneath it, not through it. */
.cal-row-label {
  position: sticky; left: 0; z-index: 4; flex-shrink: 0;
  display: flex; align-items: flex-start; gap: var(--s4, 4px);
  background: var(--surface);
  padding: var(--s8, 8px) var(--s8, 8px) var(--s8, 8px) var(--s12, 12px);
  box-sizing: border-box;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cal-row-label-main { flex: 1; min-width: 0; cursor: pointer; }
.cal-row-title {
  font-size: var(--t-13, 13px);
  font-weight: 500;
  color: var(--ink-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-row-label-main:hover .cal-row-title { color: var(--accent); }
.cal-row-sponsor {
  font-size: var(--t-11, 11px);
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-row-details {
  margin-top: var(--s4, 4px);
  padding-top: var(--s4, 4px);
  border-top: 1px solid var(--line);
  white-space: normal;
}
.cal-row-detail-line {
  font-size: var(--t-11, 11px);
  color: var(--ink-3);
  line-height: 1.4;
}
.cal-row-expand-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  border: none;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}
.cal-row-expand-btn:hover { color: var(--ink-1); background: var(--line); }

.cal-row-track {
  position: relative;
  flex-shrink: 0;
  min-height: 56px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--line);
  /* Month gridlines are computed inline (backgroundImage) — they depend on MONTH_W. */
}

.cal-bar {
  position: absolute;
  border-radius: 4px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  background: var(--surface);
}
/* Status swatch on top (solid/hatched/outline) — kept separate from the text
   row below so a hatch pattern never runs behind the milestone name. */
.cal-bar-pattern { height: 9px; flex-shrink: 0; }
.cal-bar-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 2px 0 6px;
  overflow: hidden;
}
.cal-bar-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--t-12, 12px);
  font-weight: 500;
  color: var(--ink-1);
}
.cal-bar-expand-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: none;
  background: transparent;
  color: var(--ink-3);
  opacity: 0.75;
  cursor: pointer;
}
.cal-bar-expand-btn:hover { opacity: 1; background: var(--line); }
.cal-bar-expand-btn.active { opacity: 1; color: var(--accent); background: var(--accent-dim); }
.cal-bar-done { border: 1px solid var(--accent); }
.cal-bar-done .cal-bar-pattern { background: var(--accent); }

/* Active (in-progress) milestone — coloured by its own RAG urgency (from its
   due date) rather than a fixed accent, so an at-risk current jalon stands
   out on the timeline the same way it does elsewhere in the app. */
.cal-bar-active.cal-bar-urg-normal { border: 1px solid var(--ok); }
.cal-bar-active.cal-bar-urg-normal .cal-bar-pattern {
  background-color: var(--ok-dim);
  background-image: repeating-linear-gradient(45deg, var(--ok) 0, var(--ok) 3px, transparent 3px, transparent 6px);
}
.cal-bar-active.cal-bar-urg-soon { border: 1px solid var(--warn); }
.cal-bar-active.cal-bar-urg-soon .cal-bar-pattern {
  background-color: var(--warn-dim);
  background-image: repeating-linear-gradient(45deg, var(--warn) 0, var(--warn) 3px, transparent 3px, transparent 6px);
}
.cal-bar-active.cal-bar-urg-overdue { border: 1px solid var(--err); }
.cal-bar-active.cal-bar-urg-overdue .cal-bar-pattern {
  background-color: var(--err-dim);
  background-image: repeating-linear-gradient(45deg, var(--err) 0, var(--err) 3px, transparent 3px, transparent 6px);
}

.cal-bar-pending { border: 1px solid var(--line-strong); }
.cal-bar-pending .cal-bar-pattern { background: var(--line-strong); }

.cal-row-expand {
  padding: var(--s8, 8px) var(--s12, 12px);
  border-bottom: 1px solid var(--line);
  background: var(--bg-inset, var(--bg));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s8, 8px);
}
/* marginLeft set inline per group, to align under its milestone's own start
   on the timeline above, rather than a single shared left edge. */
.cal-expand-group { min-width: 220px; max-width: 100%; }

.cal-bar-info-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-3);
  padding: 0;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.cal-bar-info-btn:hover { color: var(--accent); border-color: var(--accent); }

.cal-deadline-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--err);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  z-index: 2;
}

/* Activity rail: the bottom band of every row — what happened on the
   project, on its day. Recessed background and month lines only (no week
   ticks), so the chips read as a layer of their own, apart from the plan's
   bars and grid above. */
.cal-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  background-color: var(--bg-inset, var(--bg));
  border-top: 1px solid var(--line);
  /* Own stacking layer: chips stay under the sticky project-name column. */
  z-index: 0;
}
/* The same band under the project's name, with its totals. */
.cal-rail-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  background-color: var(--bg-inset, var(--bg));
  border-top: 1px solid var(--line);
  font-size: var(--t-11, 11px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cal-rail-sum { display: inline-flex; align-items: center; gap: 4px; }
.cal-rail-sum.is-meeting { color: var(--accent); }
.cal-rail-sum.is-task { color: var(--ok); }
/* Suivi PMO: accent while the period's session is still to plan, green once it is in the calendar. */
.cal-followup { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; cursor: pointer; }
.cal-followup-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.cal-followup { color: var(--warn); }
.cal-followup.is-planned { color: var(--ok); font-weight: 500; }
/* Expected "Suivi PMO" sessions: a dot per slot, straddling the rail's top edge. */
.cal-followup-mark {
  position: absolute; top: -5px; z-index: 2; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; box-sizing: border-box; border: 2px solid var(--warn); background: var(--warn);
  box-shadow: 0 0 0 2px var(--bg-inset, var(--bg)); cursor: pointer;
}
/* Held: solid green. Planned: blue like the meetings still to come (dashed accent chips), a ring. */
.cal-followup-mark.is-held { border-color: var(--ok); background: var(--ok); }
.cal-followup-mark.is-planned { border-color: var(--accent); background: var(--accent-dim, var(--bg-inset, var(--bg))); }
.cal-followup-mark.is-expected { border-color: var(--line-strong); background: var(--bg-inset, var(--bg)); }
.cal-followup-mark.is-legend { position: static; display: inline-block; margin: 0 2px 0 0; box-shadow: none; vertical-align: middle; }

/* One chip per group of events close in time: a meeting half (accent) and a
   task-done half (green), each with a count above 1. Geometry mirrored in
   utils/geranceHistory.ts (chipWidth) so chips never overlap. */
.cal-chip {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 6px;
  box-sizing: border-box;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
  z-index: 1;
}
.cal-chip:hover,
.cal-chip:focus-visible,
.cal-chip.is-open {
  border-color: var(--accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  outline: none;
  z-index: 2;
}
.cal-chip-seg { display: inline-flex; align-items: center; gap: 3px; }
.cal-chip-seg.is-meeting { color: var(--accent); }
.cal-chip-seg.is-task { color: var(--ok); }
.cal-chip-legend { position: static; transform: none; box-shadow: none; cursor: default; }
.tl-legend-sep { width: 1px; height: 14px; background: var(--line); }

/* The card a chip opens (portal, fixed at the chip). */
.cal-card {
  position: fixed;
  z-index: 1000;
  box-sizing: border-box;
  max-height: 340px;
  overflow-y: auto;
  padding: 10px 0 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  font-size: var(--t-12, 12px);
  color: var(--ink-2);
}
.cal-card-head {
  padding: 0 12px 8px;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-11, 11px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cal-card-sec { padding: 8px 0 2px; }
.cal-card-sec + .cal-card-sec { border-top: 1px solid var(--line); }
.cal-card-sec-title { display: flex; align-items: center; gap: 6px; padding: 0 12px 4px; font-weight: 600; }
.cal-card-sec.is-meeting .cal-card-sec-title { color: var(--accent); }
.cal-card-sec.is-task .cal-card-sec-title { color: var(--ok); }
.cal-card-item {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 4px 12px;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  color: var(--ink-1);
  cursor: pointer;
}
.cal-card-item:hover:not(:disabled) { background: var(--bg-inset, var(--bg)); }
.cal-card-item:disabled { cursor: default; color: var(--ink-3); }
.cal-card-date { flex: 0 0 62px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cal-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cal-card-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-card-by { font-size: var(--t-11, 11px); color: var(--ink-3); }
.cal-card-more { padding: 2px 12px 4px 84px; font-size: var(--t-11, 11px); color: var(--ink-3); }

/* Time slider (legend row). Every part has a fixed size — the date label,
   the reset button (hidden, not removed, on today) — so nothing reflows and
   the thumb never shifts under the pointer while dragging. */
.cal-legend { row-gap: var(--s8, 8px); }
.cal-timeslider {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 5px 0 10px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--r1, 4px);
  background: var(--surface);
  color: var(--ink-3);
  font-size: var(--t-12, 12px);
}
.cal-timeslider.is-past { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.cal-timeslider-icon { flex: 0 0 auto; }
/* Thin track filled up to the thumb (--fill, set inline), round accent thumb. */
.cal-timeslider-range {
  flex: 0 0 auto;
  width: 220px;
  height: 4px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 2px;
  background: linear-gradient(to right, var(--accent) 0, var(--accent) var(--fill, 100%), var(--line-strong) var(--fill, 100%), var(--line-strong) 100%);
  cursor: pointer;
}
.cal-timeslider-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--accent), 0 1px 3px rgba(0, 0, 0, 0.25);
}
.cal-timeslider-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--accent), 0 1px 3px rgba(0, 0, 0, 0.25);
}
.cal-timeslider-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.cal-timeslider-value {
  flex: 0 0 auto;
  width: 78px;
  overflow: hidden;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink-1);
}
.cal-timeslider.is-past .cal-timeslider-value { color: var(--accent); font-weight: 600; }
.cal-timeslider-reset {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}
.cal-timeslider-reset:hover:not(:disabled) { background: var(--accent); color: #fff; }
.cal-timeslider-reset:disabled { visibility: hidden; }

/* Replaying a past day: rows that weren't on this calendar then keep their
   place, greyed. No fade while replaying, or every step would animate. */
.cal-body.is-replay .cal-row { transition: none; }
.cal-row.is-absent { opacity: 0.35; filter: grayscale(1); }

/* The slider's day: dashed line through the rows, date flag in the month header. */
.cal-asof-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px dashed var(--accent);
  z-index: 3;
  pointer-events: none;
}
.cal-asof-flag {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.cal-today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--err);
  z-index: 3;
  pointer-events: none;
}

/* Gérance resource comparison (per-person Gantt): each person's row reads as
   its own distinct card — rounded border + gap — instead of the plain
   line-separated rows of the project calendar, since the whole point is to
   scan and compare separate people at a glance. The gap is left transparent
   (shows the page's own --bg through, reading as a light grey) rather than
   painted --surface white, and doubled in height so the break between two
   collaborators is unmistakable. The track keeps its own explicit --bg so it
   doesn't collapse into the same tone as the now-transparent gap. */
.rescmp-body { background: transparent; }
.rescmp-card {
  margin-bottom: var(--s24, 24px);
  border: 1px solid var(--line);
  border-radius: var(--r-8, 8px);
}
.rescmp-card:last-child { margin-bottom: 0; }
.rescmp-drag-handle {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border: none;
  background: none;
  color: var(--ink-3);
  cursor: grab;
  padding: 0;
  margin-top: 2px;
}
.rescmp-drag-handle:hover { color: var(--ink-1); }
.rescmp-drag-handle:active { cursor: grabbing; }
/* Rounded on the two pieces directly (not via overflow:hidden on the card
   itself) — .cal-row-label is position:sticky, and a hidden-overflow
   ancestor would become its new scroll-clip boundary and break the
   stick-to-viewport behaviour while panning the timeline horizontally. */
.rescmp-card .cal-row-label { border-top-left-radius: var(--r-8, 8px); border-bottom-left-radius: var(--r-8, 8px); }
.rescmp-card .cal-row-track {
  background-color: var(--bg);
  border-bottom: none;
  border-top-right-radius: var(--r-8, 8px);
  border-bottom-right-radius: var(--r-8, 8px);
}

/* Outline-only read as too faint, so the interior now carries a light but
   visible accent gradient too — same idea as the calendar header's
   is-today month highlight (var(--accent-dim)), just a touch more
   saturated on its far corner so it reads as a gradient, not a flat tint.
   Built entirely from var(--accent)/var(--surface) via color-mix rather than
   a hardcoded hex, so a runtime accent change (AccentContext) is picked up
   automatically. One flat treatment for every bar, on purpose: this view is
   about magnitude (height, see barHeightFor) and timing (position), not
   risk — a red/orange/green RAG legend like the project calendar's would
   just be noise here, since it isn't answering "is this late", it's
   answering "how much, and until when". */
.rescmp-bar {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 14%, var(--surface) 86%),
    color-mix(in srgb, var(--accent) 30%, var(--surface) 70%)
  );
  border: 2px solid var(--accent);
}
.rescmp-bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--t-12, 12px);
  font-weight: 500;
  color: var(--accent-hover);
}

/* Native date/time pickers render near-black calendar/clock icons in dark mode;
   colour-scheme: dark makes them match the font colour. Global — covers the task
   detail modal inputs. */
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="time"] { color-scheme: dark; }

/* ── Profile menu (user tag dropdown: name, email, language) ── */
.profile-menu {
  position: relative;
  display: flex;
  align-items: center;
}
.profile-menu-trigger {
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--r1);
  padding: 3px var(--s8);
  cursor: pointer;
  font: inherit;
}
.profile-menu-trigger:hover,
.profile-menu-trigger[aria-expanded="true"] {
  border-color: var(--line);
  background: var(--surface);
}
.profile-menu-chevron {
  color: var(--ink-3);
  transition: transform var(--dt-fast);
}
.profile-menu-chevron--open { transform: rotate(180deg); }
.profile-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: var(--s8);
  z-index: 60;
}
.profile-menu-header { padding: var(--s4) var(--s8) var(--s8); }
.profile-menu-name {
  font-size: var(--t-13);
  font-weight: 600;
  color: var(--ink-1);
}
.profile-menu-email {
  font-size: var(--t-11);
  color: var(--ink-3);
  margin-top: 2px;
  word-break: break-all;
}
.profile-menu-divider {
  height: 1px;
  background: var(--line);
  margin: var(--s4) 0 var(--s8);
}
.profile-menu-section-label {
  font-size: var(--t-10, 10px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 var(--s8) var(--s4);
}
.profile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s8);
  width: 100%;
  border: none;
  background: transparent;
  border-radius: var(--r1);
  padding: var(--s4) var(--s8);
  font-size: var(--t-12);
  color: var(--ink-2);
  cursor: pointer;
  text-align: left;
}
.profile-menu-item:hover { background: var(--bg); color: var(--ink-1); }
.profile-menu-item--active { color: var(--accent); font-weight: 600; }

/* ── [Proposition: vue-jalons-taches] ─────────────────────────────────
   Project → milestones → tasks → to-do tree. Remove this block together
   with src/client/proposals/vue-jalons-taches/ if the proposal is dropped. */
.vjt-muted { color: var(--ink-3); font-size: var(--t-12); }
.vjt-ok { color: var(--ok); flex-shrink: 0; }
.vjt-chevron { background: none; border: none; padding: 0; color: var(--ink-3); cursor: pointer; display: inline-flex; flex-shrink: 0; }
.vjt-progress { display: inline-flex; align-items: center; gap: var(--s4); flex-shrink: 0; }
.vjt-progress-track { width: 64px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.vjt-progress-fill { display: block; height: 100%; background: var(--accent, var(--ok)); }
.vjt-progress-label { font-size: var(--t-11); color: var(--ink-3); font-family: var(--font-mono); }
.vjt-project-summary { display: flex; align-items: center; gap: var(--s12); flex-wrap: wrap; font-size: var(--t-13); color: var(--ink-2); }

.vjt-person { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-12); padding: 1px var(--s8); border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.vjt-person-count { font-size: var(--t-11); font-weight: 700; color: var(--accent, var(--ink-1)); }
.vjt-ms-deliverables li { margin-bottom: var(--s4); }
.vjt-deliv-title { font-weight: 600; color: var(--ink-1); }
.vjt-deliv-body { color: var(--ink-3); font-size: var(--t-12); white-space: pre-wrap; }
/* With their validation (home page): a mark before each deliverable, the action at the end of its line. */
.vjt-ms-deliverables--validation ul { list-style: none; padding-left: 0; }
.vjt-ms-deliverables--validation .vjt-deliv-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s8); min-height: 28px; }
.vjt-ms-deliverables--validation .vjt-deliv-head > svg { flex-shrink: 0; }
.vjt-ms-deliverables--validation .vjt-deliv-body { margin-left: 22px; }

.vjt-task.is-done .vjt-task-title { color: var(--ink-2); }
.vjt-task-add, .vjt-todo-add { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s8); }
.vjt-task-add input, .vjt-todo-add input { flex: 1; }

.vjt-todos-header { display: flex; align-items: center; gap: var(--s4); font-weight: 600; font-size: var(--t-12); color: var(--ink-2); margin-bottom: var(--s4); }
.vjt-todo-toggle { gap: 4px; }
.vjt-todo-toggle.active { color: var(--accent, var(--ink-1)); }
.vjt-todo { display: flex; align-items: center; gap: var(--s4); padding: 2px 0; font-size: var(--t-13); color: var(--ink-1); }
.vjt-todo-check { display: flex; align-items: center; gap: var(--s8); flex: 1; min-width: 0; cursor: pointer; }
.vjt-todo-item.is-done .vjt-todo-label { color: var(--ink-3); text-decoration: line-through; }
.vjt-todo-label { flex: 1; }
.vjt-todo-remove { opacity: 0; }
.vjt-todo:hover .vjt-todo-remove, .vjt-todo-remove:focus { opacity: 1; }
.vjt-warning--inline { margin: 0 0 var(--s4); }
.vjt-todo-desc { margin: 0 0 var(--s4) 22px; font-size: var(--t-12); color: var(--ink-2); white-space: pre-wrap; border-left: 2px solid var(--line); padding-left: var(--s8); }
.vjt-todo-desc.is-editable { cursor: text; }
.vjt-todo-desc.is-editable:hover { border-left-color: var(--accent, var(--ink-3)); }
.vjt-todo-desc-input { margin: 2px 0 var(--s4) 22px; width: calc(100% - 22px); font-size: var(--t-12); }
.vjt-chevron-spacer { display: inline-block; width: 12px; flex-shrink: 0; }
.vjt-todo-rename { flex: 1; min-width: 0; font-size: var(--t-13); }
.vjt-todos .vjt-todo-item .vjt-todo-desc, .vjt-todos .vjt-todo-item .vjt-todo-desc-input { margin-left: 22px; }
.vjt-task .vjt-todo-desc, .vjt-task .vjt-todo-desc-input { margin-left: 38px; }
.vjt-task .vjt-todo-desc-input { width: calc(100% - 38px); }
.vjt-todo-date { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; font-size: var(--t-11); color: var(--ink-3); font-family: var(--font-mono); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; cursor: pointer; }
.vjt-todo-date:disabled { cursor: default; }
.vjt-todo-date.is-overdue { color: var(--err); border-color: var(--err); }
.vjt-todo-dates-edit { display: flex; align-items: center; gap: var(--s12); flex-wrap: wrap; margin: 2px 0 var(--s4) 22px; font-size: var(--t-12); color: var(--ink-3); }
.vjt-todo-dates-edit label { display: inline-flex; align-items: center; gap: var(--s4); }
.vjt-task .vjt-todo-dates-edit { margin-left: 38px; }
button.vjt-task-title { background: none; border: none; padding: 0; text-align: left; font: inherit; font-size: var(--t-13); }
button.vjt-task-title:hover { color: var(--accent, var(--ink-1)); text-decoration: underline; }
button.vjt-task-title.is-locked { cursor: not-allowed; color: var(--ink-2); text-decoration: none; }
/* Private task: closed padlock on the card (TaskCard). */
.task-card-private-lock { display: inline-flex; align-items: center; color: var(--warn); }
.task-card-docs { display: inline-flex; align-items: center; gap: 2px; font-size: var(--t-11, 11px); color: var(--accent); }
/* Public / private choice inside an opened task (TaskPrivacyField). */
.task-privacy-field .selectable-group { display: inline-flex; }
.task-privacy-field .selectable { display: inline-flex; align-items: center; gap: 4px; }

/* ── [Proposition: roles-projet] ── team table with a Role column; role tooltips */
/* The fixed columns are as narrow as their content: what is left goes to the description, which
   wraps on as many lines as it needs (Yves 05.12). Rows are aligned on their first line. */
.alloc-table { container-type: inline-size; }
.alloc-head.alloc--roles, .alloc-row.alloc--roles {
  grid-template-columns: 22px minmax(120px, 0.7fr) 156px minmax(0, 2fr) 60px 44px 44px 22px;
}
.alloc-head.alloc--roles > span:nth-child(4) { text-align: left; }
.alloc-row.alloc--roles { align-items: start; padding: 3px 0; }
.alloc-row.alloc--roles > .alloc-name, .alloc-row.alloc--roles > .alloc-num,
.alloc-row.alloc--roles > .alloc-consulted, .alloc-row.alloc--roles > span.alloc-precision { padding-top: 5px; }
.alloc-row.alloc--roles > .alloc-pct, .alloc-row.alloc--roles > textarea.alloc-precision { margin-top: 3px; }
.alloc-row.alloc--roles > .alloc-chevron, .alloc-row.alloc--roles > .tag-remove { margin-top: 8px; }
.alloc-precision { font-size: var(--t-13, 13px); line-height: 1.45; color: var(--ink-1); white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.project-role-trigger { width: 100%; justify-content: space-between; min-width: 0; }
.project-role-trigger > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Too narrow for a description beside the rest: it gets a line of its own under the person. */
@container (max-width: 700px) {
  .alloc-head.alloc--roles, .alloc-row.alloc--roles { grid-template-columns: 22px minmax(0, 1fr) 156px 60px 44px 44px 22px; }
  .alloc-head.alloc--roles > span:nth-child(4) { display: none; }
  .alloc-row.alloc--roles > .alloc-precision { grid-column: 2 / -2; grid-row: 2; margin-top: 0; padding-top: 0; }
}
/* A Consulted person: no allocation, one line across the three time columns (two in a person's other projects). */
.alloc-consulted { grid-column: span 3; text-align: right; font-size: var(--t-12, 12px); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alloc-expand-row .alloc-consulted { grid-column: span 2; }
.project-role-header { display: inline-flex; align-items: center; gap: 3px; cursor: help; text-align: left; }
.project-role-label { cursor: help; }
.roles-table td:first-child { width: 60px; color: var(--ink-3); font-family: var(--font-mono); }
.roles-table td:nth-child(2) { width: 180px; font-weight: 600; }
.roles-stages td:first-child { width: 180px; font-weight: 600; white-space: nowrap; }
.roles-team { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.roles-team-row { display: grid; grid-template-columns: 200px 1fr; gap: var(--s16); padding: var(--s12, 12px) var(--s16); border-top: 1px solid var(--line); }
.roles-team-row:first-child { border-top: none; }
.roles-team-name { font-weight: 600; }
.roles-team-role { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.roles-team-desc { font-size: var(--t-13); color: var(--ink-3); font-style: italic; }
.roles-team-precision { font-size: var(--t-13); color: var(--ink-1); background: var(--accent-dim); border-left: 3px solid var(--accent); padding: 4px var(--s8); border-radius: 0 4px 4px 0; }
.roles-team-tag { display: block; font-style: normal; font-size: var(--t-11, 11px); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
.roles-team-precision .roles-team-tag { color: var(--accent); }
@media (max-width: 640px) { .roles-team-row { grid-template-columns: 1fr; gap: 4px; } }
/* A task must belong to a milestone: notice where it can't be created or saved. */
.task-milestone-notice { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0; font-size: var(--t-12); color: var(--warn); line-height: 1.45; }
.task-milestone-notice svg { flex-shrink: 0; margin-top: 2px; }
.task-milestone-notice a { color: var(--accent); white-space: nowrap; }
.kanban-quick-add--notice { align-items: flex-start; }

/* [Proposition: vue-jalons-taches] Next-step prompts: validate the task, close the milestone, deliver the project. */
.vjt-prompt > svg { color: var(--ok); flex-shrink: 0; }
.vjt-prompt > span { flex: 1 1 220px; min-width: 0; }
.vjt-todos .vjt-prompt { margin: var(--s4) 0 var(--s8); }
.vjt-prompt--project { margin: var(--s12, 12px) 0 0; }
/* Scoping tab: small, greyed, read-only reminder of the goal and deliverables (Overview). */
.scoping-reminder { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--s12, 12px); padding: 6px 10px; background: var(--bg-inset); border-left: 2px solid var(--line); border-radius: 0 4px 4px 0; font-size: var(--t-12); color: var(--ink-3); }
.scoping-reminder-head { font-size: var(--t-11, 11px); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.scoping-reminder-row { display: flex; gap: var(--s8); min-width: 0; }
.scoping-reminder-name { flex: 0 0 72px; font-weight: 600; }
.scoping-reminder-text { flex: 1; min-width: 0; }
.scoping-reminder-goal { white-space: pre-wrap; }

/* [Proposition: vue-jalons-taches] Project side panel: tighter history lines. */
.timeline--compact { line-height: 1.35; }
/* Only the vertical spacing: the meeting / transcription entries keep their
   left padding next to their accent bar (.timeline-entry--event etc.). */
.timeline--compact .meeting-item { padding-top: 3px; padding-bottom: 3px; }
.timeline--compact .timeline-entry--comment { margin-bottom: var(--s8); }
.timeline--compact .timeline-entry--setup_change,
.timeline--compact .timeline-entry--task_event { padding: 1px 0 !important; }
.timeline--compact .timeline-status-actor { margin: 0; line-height: 1.2; }
.timeline--compact .timeline-comment-header { margin-bottom: 0; }
.timeline--compact .project-comments-section { margin-bottom: var(--s8); }

/* [Proposition: vue-jalons-taches] A to-do item's comment thread. */
.vjt-todo-comments { display: flex; flex-direction: column; gap: 4px; }

/* Comment box: "Enter to send" hint, left of the Send button. */
.task-update-form-actions { align-items: center; }
.task-update-send-hint { margin-left: auto; font-size: var(--t-11, 11px); color: var(--ink-3); }

/* [Proposition: vue-jalons-taches] "Description et suivi": last update and earlier versions. */
.vjt-todo-history { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s8); margin: 0 0 var(--s4) 22px; font-size: var(--t-11, 11px); color: var(--ink-3); }
.vjt-task .vjt-todo-history { margin-left: 38px; }
.vjt-todo-history-toggle { display: inline-flex; align-items: center; gap: 2px; background: none; border: none; padding: 0; color: var(--ink-3); font-size: inherit; cursor: pointer; }
.vjt-todo-history-toggle:hover { color: var(--accent); }
.vjt-todo-history-item { flex-basis: 100%; border-left: 2px solid var(--line); padding-left: var(--s8); margin-top: 2px; }
.vjt-todo-history-meta { font-style: italic; }
.vjt-todo-history-text { white-space: pre-wrap; color: var(--ink-2); }

/* [Proposition: vue-jalons-taches] A task's former private note, read-only until moved to a to-do item. */
.legacy-notes { white-space: pre-wrap; font-size: var(--t-13); color: var(--ink-2); background: var(--bg-inset); border-left: 2px solid var(--line); padding: 6px 10px; border-radius: 0 4px 4px 0; }

/* ============================================
   [Proposition: timeline-taches] Task timeline (replaces "Planification des
   tâches") + change log panel.
   One grid: a sticky task column on the left, sticky month/week headers on
   top, one 150px column per week. Each task is a band in its status colour
   from creation to due date, with its dates as pins inside it (planned: map,
   due: hourglass, Done: check; pushed-back dates in grey).
   ============================================ */
:root {
  --tlt-orange: #e8730c;
  --tlt-orange-dim: #fdf0e3;
  --tlt-todo-bg: #eceef2;  --tlt-todo-edge: #9aa0ad;  --tlt-todo-ink: #3d4350;
  --tlt-prog-bg: #e4e3fa;  --tlt-prog-edge: #5f5cc4;  --tlt-prog-ink: #1a1682;
  --tlt-block-bg: #fbe3e3; --tlt-block-edge: #d63031; --tlt-block-ink: #8f1d1e;
  --tlt-done-bg: #ddf1e5;  --tlt-done-edge: #3a7d5e;  --tlt-done-ink: #22543d;
  --tlt-head-h: 68px;      /* month row 28px + week row 40px */
}
[data-theme="dark"] {
  --tlt-orange: #ff9a3d;
  --tlt-orange-dim: #33220f;
  --tlt-todo-bg: #2b2d33;  --tlt-todo-edge: #6a7080;  --tlt-todo-ink: #d0d3db;
  --tlt-prog-bg: #29285a;  --tlt-prog-edge: #7d7af0;  --tlt-prog-ink: #d4d3ff;
  --tlt-block-bg: #461d1d; --tlt-block-edge: #ff6b6b; --tlt-block-ink: #ffd0d0;
  --tlt-done-bg: #17382a;  --tlt-done-edge: #5cc08e;  --tlt-done-ink: #c2efd6;
}

/* The page must not stretch to the grid's width: the grid scrolls inside. */
.content:has(.tlt-page) { min-width: 0; }
.tlt-page { min-width: 0; }

/* ── Toolbar + legend ── */
.tlt-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s12, 12px); margin-bottom: var(--s12, 12px); }
.tlt-today-btn { margin-left: auto; }
.tlt-toggle { display: inline-flex; align-items: center; gap: var(--s6, 6px); font-size: var(--t-13, 13px); color: var(--ink-2); cursor: pointer; }
.tlt-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-bottom: var(--s12, 12px); font-size: var(--t-12, 12px); color: var(--ink-3); }
.tlt-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.tlt-legend-sep { width: 1px; height: 16px; background: var(--line); }
.tlt-legend-msline { width: 0; height: 16px; border-left: 2px dashed var(--accent-mid); }
.tlt-legend-today { width: 2px; height: 16px; background: var(--err); border-radius: 1px; }
.tlt-swatch { width: 24px; height: 12px; border-radius: 4px; border: 1px solid; border-left-width: 4px; }

/* Status colours (band, swatch, status chip). */
.tlt-swatch.is-todo, .tlt-band.is-todo, .tlt-status.is-todo { background: var(--tlt-todo-bg); border-color: var(--tlt-todo-edge); color: var(--tlt-todo-ink); }
.tlt-swatch.is-progress, .tlt-band.is-progress, .tlt-status.is-progress { background: var(--tlt-prog-bg); border-color: var(--tlt-prog-edge); color: var(--tlt-prog-ink); }
.tlt-swatch.is-blocked, .tlt-band.is-blocked, .tlt-status.is-blocked { background: var(--tlt-block-bg); border-color: var(--tlt-block-edge); color: var(--tlt-block-ink); }
.tlt-swatch.is-done, .tlt-band.is-done, .tlt-status.is-done { background: var(--tlt-done-bg); border-color: var(--tlt-done-edge); color: var(--tlt-done-ink); }

/* ── Grid ── */
.tlt-scroll {
  overflow: auto;
  max-height: calc(100vh - 230px);
  border: 1px solid var(--line);
  border-radius: var(--r2, 8px);
  background: var(--surface);
}
.tlt-grid {
  display: grid;
  grid-template-columns: var(--tlt-cols);
  position: relative;
  min-width: max-content;
  --tlt-weeklines: repeating-linear-gradient(to right, transparent 0, transparent calc(var(--tlt-week) - 1px), var(--line) calc(var(--tlt-week) - 1px), var(--line) var(--tlt-week));
}

/* Headers (sticky on top; the corner on top and left). */
.tlt-corner {
  grid-row: 1 / span 2; grid-column: 1;
  position: sticky; left: 0; top: 0; z-index: 7;
  display: flex; align-items: flex-end;
  padding: 10px 14px;
  background: var(--surface);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line-strong);
  font-size: var(--t-11, 11px); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.tlt-month {
  grid-row: 1;
  position: sticky; top: 0; z-index: 6;
  height: 28px; display: flex; align-items: center;
  background: var(--surface);
  border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line);
  font-size: var(--t-12, 12px); font-weight: 600; color: var(--ink-1); text-transform: capitalize;
}
/* The month name stays readable while its weeks scroll under the task column. */
.tlt-month > span { position: sticky; left: 312px; padding: 0 12px; }
.tlt-week {
  position: sticky; top: 28px; z-index: 6;
  height: 40px; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 0 12px;
  background: var(--surface);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line-strong);
}
.tlt-week-num { font-size: var(--t-12, 12px); font-weight: 700; color: var(--ink-1); }
.tlt-week-range { font-size: var(--t-11, 11px); color: var(--ink-3); white-space: nowrap; }
.tlt-week.is-current { background: var(--accent-dim); }
.tlt-week.is-current .tlt-week-num { color: var(--accent); }

/* Today: the current week tinted, and a line on today's date. */
.tlt-today-col { position: absolute; top: var(--tlt-head-h); bottom: 0; background: var(--accent); opacity: 0.045; pointer-events: none; }
.tlt-today-line { position: absolute; top: var(--tlt-head-h); bottom: 0; width: 2px; margin-left: -1px; background: var(--err); z-index: 2; pointer-events: none; }

/* Milestone rows. */
.tlt-ms-label {
  grid-column: 1;
  position: sticky; left: 0; z-index: 5;
  display: flex; align-items: center; gap: 8px; min-width: 0;
  min-height: 38px; padding: 7px 14px;
  background: var(--bg-inset);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.tlt-ms-icon { color: var(--accent); flex-shrink: 0; }
/* The milestone's number in the plan (J1, J2…), where the icon was. */
.tlt-ms-num { flex-shrink: 0; padding: 1px 6px; border-radius: var(--r1, 4px); background: var(--accent-dim); color: var(--accent); font-size: var(--t-12, 12px); font-weight: 700; font-variant-numeric: tabular-nums; }
.tlt-ms-kind { flex-shrink: 0; font-size: var(--t-10, 10px); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
/* The whole name, on as many lines as it takes (the row grows with it). */
.tlt-ms-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; font-size: var(--t-13, 13px); font-weight: 600; color: var(--ink-1); }
.tlt-ms-track {
  grid-column: 2 / -1;
  position: relative;
  background-color: rgba(128, 128, 128, 0.07);
  background-image: var(--tlt-weeklines);
  border-bottom: 1px solid var(--line);
}
.tlt-ms-end { position: absolute; top: 7px; bottom: 7px; width: 0; border-left: 2px solid var(--accent); z-index: 1; }
.tlt-ms-end-label {
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; padding: 2px 9px; border-radius: var(--r-full, 999px);
  background: var(--surface); border: 1px solid var(--accent-mid);
  font-size: var(--t-11, 11px); font-weight: 600; color: var(--accent);
}

/* Task rows: label. */
.tlt-label {
  grid-column: 1;
  position: sticky; left: 0; z-index: 5;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0;
  min-height: 64px; padding: 8px 10px 8px 14px;
  background: var(--surface);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.tlt-label.is-dimmed > * { opacity: 0.4; }
.tlt-label-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tlt-title {
  flex: 1 1 auto; min-width: 0;
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  font: inherit; font-size: var(--t-13, 13px); font-weight: 600; color: var(--ink-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tlt-title:hover { color: var(--accent); }
.tlt-muted { color: var(--ink-3); flex-shrink: 0; }
.tlt-icon-btn {
  flex-shrink: 0; display: inline-flex; padding: 3px; border: 0; border-radius: 4px;
  background: none; color: var(--ink-3); cursor: pointer; opacity: 0; transition: opacity var(--dt-fast, 0.1s);
}
.tlt-label:hover .tlt-icon-btn, .tlt-icon-btn:focus-visible { opacity: 1; }
.tlt-icon-btn:hover { color: var(--ink-1); background: var(--bg-inset); }
/* Orange = changed since the PM last validated it; no colour = no change. */
.tlt-changes {
  flex-shrink: 0; margin-left: auto; border: 0; cursor: pointer;
  padding: 3px 9px; border-radius: var(--r-full, 999px);
  background: var(--tlt-orange); color: #fff;
  font-size: var(--t-11, 11px); font-weight: 700; white-space: nowrap;
}
.tlt-changes:hover { filter: brightness(1.08); }
.tlt-label-meta { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--t-12, 12px); color: var(--ink-3); }
.tlt-status { flex-shrink: 0; padding: 1px 8px; border: 1px solid; border-radius: var(--r-full, 999px); font-size: var(--t-11, 11px); font-weight: 600; white-space: nowrap; }
.tlt-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlt-moved { flex-shrink: 0; font-size: var(--t-11, 11px); font-weight: 600; color: var(--warn); white-space: nowrap; }

/* Task rows: timeline. */
.tlt-track-cell {
  grid-column: 2 / -1;
  position: relative; min-height: 64px;
  background-image: var(--tlt-weeklines);
  border-bottom: 1px solid var(--line);
}
.tlt-track { position: absolute; inset: 0; }
.tlt-track-cell.is-dimmed .tlt-track { opacity: 0.3; filter: grayscale(1); }
.tlt-band { position: absolute; top: 6px; bottom: 6px; z-index: 1; border: 1px solid; border-left-width: 4px; border-radius: 8px; }
/* Dragged to move its dates (ticket #80): the band moves both, its right edge the due date, the round mark the planned date. */
.tlt-band.is-draggable { cursor: grab; touch-action: none; }
.tlt-band.is-dragging { cursor: grabbing; opacity: 0.55; }
.tlt-band.is-moving { opacity: 0.6; cursor: progress; }
.tlt-band-grip { position: absolute; top: -1px; bottom: -1px; right: -4px; width: 9px; cursor: ew-resize; touch-action: none; border-radius: 0 8px 8px 0; }
.tlt-band-grip:hover { background: rgb(0 0 0 / 0.12); }
.tlt-planned-grip { position: absolute; top: 2px; width: 10px; height: 10px; z-index: 4; border-radius: 50%; cursor: ew-resize; touch-action: none; background: var(--surface); border: 2px solid var(--accent); opacity: 0; transition: opacity var(--dt-fast, 0.1s); }
.tlt-track:hover .tlt-planned-grip { opacity: 1; }
.tlt-band-ghost { position: absolute; top: 4px; bottom: 4px; z-index: 5; border: 2px dashed var(--accent); border-radius: 8px; background: var(--accent-dim); pointer-events: none; display: flex; align-items: center; }
.tlt-band-ghost-label { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--surface); color: var(--ink-1); font-size: 11px; font-weight: 600; white-space: nowrap; }
/* The milestone's planned end, repeated on each of its tasks. */
.tlt-ms-line { position: absolute; top: 0; bottom: 0; width: 0; margin-left: -1px; border-left: 2px dashed var(--accent-mid); z-index: 2; }

/* Dates inside the band. */
.tlt-pin {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  height: 20px; padding: 0 8px 0 2px;
  border: 1px solid var(--line); border-radius: var(--r-full, 999px);
  background: var(--surface); color: var(--ink-1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  font-size: var(--t-11, 11px); font-weight: 600; line-height: 1; white-space: nowrap;
}
.tlt-pin:hover { z-index: 4; }
.tlt-pin.is-end { padding: 0 2px 0 8px; }
.tlt-pin.lane-top { top: 11px; }
.tlt-pin.lane-bottom { bottom: 11px; }
.tlt-pin.lane-mid { top: 50%; transform: translateY(-50%); }
.tlt-pin-icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; color: #fff;
}
.tlt-pin.is-planned .tlt-pin-icon { background: var(--accent); }
.tlt-pin.is-due .tlt-pin-icon { background: var(--ink-1); color: var(--surface); }
.tlt-pin.is-due.is-late { color: var(--err); border-color: var(--err); }
.tlt-pin.is-due.is-late .tlt-pin-icon { background: var(--err); color: #fff; }
.tlt-pin.is-done .tlt-pin-icon { background: var(--ok); }
.tlt-pin.is-blocked { color: var(--err); border-color: var(--err); }
.tlt-pin.is-blocked .tlt-pin-icon { background: var(--err); color: #fff; }
.tlt-pin.is-unblocked { color: var(--ok); border-color: var(--ok); }
.tlt-pin.is-unblocked .tlt-pin-icon { background: var(--ok); color: #fff; }
/* Pushed-back date: grey; hovering it tells the initial date, the change and the new date. */
.tlt-pin.is-previous { z-index: 2; color: var(--ink-3); background: var(--bg-inset); border-style: dashed; box-shadow: none; cursor: help; }
.tlt-pin.is-previous .tlt-pin-icon { background: var(--line-strong); }
.tlt-pin.is-legend { position: static; height: auto; padding: 0; border: 0; background: none; box-shadow: none; }

/* A task created before dates were required, still without a due date. */
.tlt-missing {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border: 1px dashed var(--warn); border-radius: var(--r-full, 999px);
  background: var(--warn-dim); color: var(--warn);
  font-size: var(--t-11, 11px); font-weight: 600; white-space: nowrap;
}

/* ── Change log panel ── */
.tlt-log .panel-slide-head { align-items: flex-start; }
.tlt-log-kicker { margin-bottom: 2px; font-size: var(--t-11, 11px); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tlt-orange); }
.tlt-log-sub { margin-top: 3px; font-size: var(--t-12, 12px); color: var(--ink-3); }
.tlt-log-section { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; min-height: 28px; }
.tlt-log-list + .tlt-log-section { margin-top: 26px; }
.tlt-log-section-title { font-size: var(--t-11, 11px); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.tlt-log-section-title.is-pending { color: var(--tlt-orange); }
.tlt-log-empty { margin: 0 0 10px; font-size: var(--t-13, 13px); color: var(--ink-3); }
.tlt-log-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tlt-log-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.tlt-log-item.is-pending { border-left: 3px solid var(--tlt-orange); background: var(--tlt-orange-dim); }
.tlt-log-icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-inset); color: var(--ink-2); }
.tlt-log-item.is-pending .tlt-log-icon { background: var(--surface); color: var(--tlt-orange); }
.tlt-log-body { flex: 1; min-width: 0; }
.tlt-log-what { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: var(--t-13, 13px); line-height: 1.45; color: var(--ink-1); }
.tlt-log-field { font-weight: 600; color: var(--ink-2); }
.tlt-log-old { color: var(--ink-3); text-decoration: line-through; }
.tlt-log-arrow { color: var(--ink-3); }
.tlt-log-tag { padding: 1px 8px; border-radius: var(--r-full, 999px); background: var(--warn-dim); color: var(--warn); font-size: var(--t-11, 11px); font-weight: 600; }
.tlt-log-text { margin-top: 6px; padding: 6px 9px; border-radius: 6px; background: var(--bg-inset); font-size: var(--t-12, 12px); color: var(--ink-2); white-space: pre-wrap; }
.tlt-log-text.is-old { color: var(--ink-3); text-decoration: line-through; }
.tlt-log-meta { margin-top: 4px; font-size: var(--t-11, 11px); color: var(--ink-3); }
.tlt-log-ok { flex-shrink: 0; align-self: center; }

/* [Proposition: vue-jalons-taches] Manual status picker on a task row (To Do / In Progress / Blocked). */
.vjt-status-select { width: auto; min-width: 110px; height: 26px; padding: 0 24px 0 8px; font-size: var(--t-12, 12px); }

/* [Proposition: vue-jalons-taches] Readability pass on the Execution view:
   the milestone summary shows folded, a late milestone shows it, done tasks
   fold away, and the task form labels its dates. */
.vjt-task-add { flex-wrap: wrap; gap: var(--s8); }
.vjt-task-add .vjt-task-add-title { flex: 1 1 220px; }
.vjt-task-add-date { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-12); color: var(--ink-3); white-space: nowrap; }
.vjt-task-add .vjt-task-add-date .date-field { flex: none; width: 9.5em; }
.vjt-task-add-due { font-size: var(--t-12); color: var(--ink-3); white-space: nowrap; }
.vjt-task-add-due.is-missing { color: var(--warn); white-space: normal; }

/* [Proposition: vue-jalons-taches] Plan et exécution, 05.12.2026. Folded, a milestone's head says it all:
   number and status, name, dates, progress. Unfolded, it shows one thing at a time (tasks, details,
   documents) and one action. Task lines read in columns: mark, title, list, who, when, status. */
.vjt-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s8) var(--s12, 12px); margin-bottom: var(--s12, 12px); }
.pd-card .vjt-tools { margin: 0; padding: var(--s12, 12px) var(--s16); border-bottom: 1px solid var(--line); }
.vjt-filter { display: inline-flex; }
.vjt-filter .chg-segment-btn { flex: 0 0 auto; padding: 5px 12px; cursor: pointer; }
.vjt-none { padding: var(--s16); font-size: var(--t-13); }
.vjt-add-ms { margin-bottom: var(--s16); }
.pd-card .vjt-add-ms { margin: 0; padding: var(--s12, 12px) var(--s16); border-bottom: 1px solid var(--line); }

/* The milestone and its head */
.vjt-ms { border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); margin-bottom: var(--s12, 12px); }
.vjt-ms.is-late { border-left: 3px solid var(--err); }
.vjt-ms-head { display: flex; align-items: flex-start; gap: var(--s16); padding: 14px var(--s16); cursor: pointer; }
.vjt-ms-head.is-static { cursor: default; }
.vjt-ms-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.vjt-ms-meta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s4) var(--s8); min-height: 20px; }
.vjt-ms-id { font-size: var(--t-11); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.vjt-ms-id::after { content: '·'; margin-left: var(--s8); font-weight: 400; }
.vjt-ms-meta .badge { display: inline-flex; align-items: center; gap: 4px; }
.vjt-ms-title { font-weight: 700; font-size: var(--t-15, 15px); line-height: 1.35; color: var(--ink-1); }
.vjt-ms-summary { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s20, 20px); min-height: 24px; font-size: var(--t-12); color: var(--ink-2); }
.vjt-ms-dates { display: inline-flex; align-items: center; gap: 6px; }
.vjt-ms-dates > svg { flex-shrink: 0; color: var(--ink-3); }
.vjt-ms-dates.is-late, .vjt-ms-dates.is-late > svg { color: var(--err); }
.vjt-ms-dates.is-late { font-weight: 600; }
.vjt-ms-progress { display: inline-flex; align-items: center; gap: var(--s8); }
.vjt-ms-progress b { font-weight: 600; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.vjt-ms-progress .vjt-progress-track { width: 96px; }
.vjt-ms-progress .vjt-progress-label { display: none; }
.vjt-ms-cue { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; border: 0; background: none; font: inherit; font-size: var(--t-12); color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.vjt-ms-head:hover .vjt-ms-cue, .vjt-ms-cue:focus-visible { color: var(--accent); }
/* A cancelled milestone stays in its place, greyed and struck through. */
.vjt-ms.is-cancelled { background: var(--surface-2, var(--surface)); border-style: dashed; }
.vjt-ms.is-cancelled .vjt-ms-title { color: var(--ink-3); font-weight: 600; text-decoration: line-through; }
.vjt-ms-cancel-info { font-size: var(--t-12, 12px); color: var(--ink-3); line-height: 1.5; }
.vjt-ms-archived { margin: 0; padding: 0 var(--s16) var(--s12, 12px) calc(var(--s16) + var(--s20, 20px)); font-size: var(--t-12, 12px); color: var(--ink-3); }
.vjt-link { padding: 0; border: 0; background: none; font: inherit; color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.vjt-link:hover { color: var(--accent); }
.vjt-prompt { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s8); margin: 0 var(--s16) var(--s12, 12px); padding: var(--s8) var(--s12, 12px); border: 1px solid var(--ok); border-radius: 6px; background: var(--ok-dim, transparent); font-size: var(--t-13); color: var(--ink-1); }
.vjt-warning { display: flex; align-items: center; gap: var(--s4); margin: 0 0 var(--s8); font-size: var(--t-12); color: var(--warn); }

/* Unfolded: the tabs with the milestone's one action, then what the tab shows */
.vjt-ms-panel { border-top: 1px solid var(--line); }
.vjt-ms-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s4) var(--s12, 12px); padding: 0 var(--s16) 0 var(--s4); border-bottom: 1px solid var(--line); }
.vjt-ms-tabs { margin: 0 0 -1px; border-bottom: 0; }
.vjt-ms-tabs .tab { display: inline-flex; align-items: center; gap: 6px; padding: 10px var(--s12, 12px); font-size: var(--t-12); }
.vjt-tab-n, .vjt-section-n { min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--line); color: var(--ink-2); font-size: var(--t-11); font-weight: 600; line-height: 16px; letter-spacing: 0; text-align: center; }
.vjt-ms-tabs .tab.active .vjt-tab-n { background: var(--accent); color: #fff; }
.vjt-ms-view { padding: var(--s12, 12px) var(--s16) var(--s16); }
.vjt-section-line { display: flex; align-items: center; justify-content: space-between; gap: var(--s12, 12px); min-height: 24px; margin-bottom: var(--s4); }
.vjt-section-label { display: flex; align-items: center; gap: var(--s8); margin: 0; font-size: var(--t-11); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.vjt-section-note { font-weight: 400; letter-spacing: 0; text-transform: none; }
.vjt-reading { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-12); color: var(--ink-3); }
.vjt-empty { padding: var(--s8) 0; font-size: var(--t-13); color: var(--ink-3); }

/* A task: mark, title, then its cells in columns (they go under the title when the room is short) */
.vjt-task { border-top: 1px solid var(--line); }
.vjt-task-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s4) var(--s12, 12px); min-height: 44px; padding: var(--s8) 0; }
.vjt-check { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0; border: 1.5px solid var(--line-strong, var(--ink-3)); border-radius: 50%; background: var(--surface); color: transparent; transition: border-color var(--dt-fast), background var(--dt-fast), color var(--dt-fast); }
button.vjt-check { cursor: pointer; }
button.vjt-check:hover { border-color: var(--ok); color: var(--ok); }
button.vjt-check.is-blocked { border-style: dashed; }
button.vjt-check.is-blocked:hover { border-color: var(--warn); color: transparent; }
.vjt-check.is-done { border-color: var(--ok); background: var(--ok); color: #fff; }
button.vjt-check.is-done:hover { background: var(--surface); color: var(--ok); }
.vjt-check.is-static { border-color: var(--line); }
.vjt-task-main { flex: 1 1 240px; min-width: 0; display: flex; align-items: center; gap: var(--s8); }
.vjt-task-main > * { flex-shrink: 0; }
.vjt-task-main > .vjt-task-title { flex: 0 1 auto; min-width: 0; }
.vjt-task-main .vjt-todo-docs { width: auto; height: 22px; padding: 0 4px; background: none; }
.vjt-task-main .vjt-todo-docs:hover { background: var(--line); }
.vjt-task-title { font-size: var(--t-13); line-height: 1.4; color: var(--ink-1); cursor: pointer; }
.vjt-task-cells { flex: 0 1 auto; max-width: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: var(--s4) var(--s12, 12px); margin-left: auto; }
.vjt-task-todo { flex: 0 0 88px; display: flex; justify-content: flex-end; }
.vjt-todo-toggle.is-empty { border-color: transparent; background: none; color: var(--ink-3); }
.vjt-todo-toggle.is-empty:hover { border-color: var(--line); color: var(--ink-1); }
.vjt-task-owner { flex: 0 0 120px; min-width: 0; display: inline-flex; align-items: baseline; gap: 4px; font-size: var(--t-12); color: var(--ink-2); }
.vjt-task-owner-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vjt-task-owner.is-none { color: var(--ink-3); }
.vjt-task-owner-more { flex-shrink: 0; color: var(--ink-3); }
.vjt-task-due { flex: 0 0 88px; font-size: var(--t-12); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vjt-task-due.is-overdue { color: var(--err); font-weight: 600; }
.vjt-task-status { flex: 0 0 118px; display: flex; }
.vjt-task-status .vjt-status-select { width: 100%; min-width: 0; }
.vjt-task-tools { flex: 0 0 52px; display: inline-flex; justify-content: flex-end; gap: 2px; opacity: 0; transition: opacity var(--dt-fast); }
.vjt-task-row:hover .vjt-task-tools, .vjt-task-row:focus-within .vjt-task-tools { opacity: 1; }
.vjt-task-tools .btn-icon { width: 24px; height: 24px; background: none; }
.vjt-task-tools .btn-icon:hover { background: var(--line); }
@media (hover: none) { .vjt-task-tools { opacity: 1; } }
@media (max-width: 720px) {
  .vjt-task-main { flex-basis: calc(100% - 30px); }
  .vjt-task-cells { flex: 1 1 100%; max-width: calc(100% - 30px); margin-left: 30px; }
  .vjt-task-todo, .vjt-task-owner, .vjt-task-due, .vjt-task-tools { flex-basis: auto; }
  .vjt-task-status { flex: 0 1 140px; }
  .vjt-ms-head { flex-direction: column; gap: var(--s8); }
  .vjt-filter, .vjt-ms-tabs { flex-wrap: wrap; max-width: 100%; }
}
.vjt-task .vjt-todos { padding: 0 0 var(--s8) 30px; }
.vjt-warning--task { margin: 0 0 var(--s8) 30px; }
.vjt-prompt--task { margin: 2px 0 var(--s8) 30px; }
.vjt-task-add { margin: 0 0 var(--s8); padding: var(--s8) var(--s12, 12px); border: 1px solid var(--line); border-radius: var(--r2); background: var(--bg); }
.vjt-task-add-actions { display: inline-flex; gap: var(--s4); }
.vjt-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 10px 0; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-size: var(--t-12); font-weight: 500; color: var(--ink-2); cursor: pointer; }
.vjt-more:hover { color: var(--accent); }
.vjt-done-toggle { justify-content: center; }

/* The details: who works on it, what it is, what it delivers, closing or cancelling it */
.vjt-details { display: flex; flex-direction: column; gap: var(--s16); }
.vjt-detail { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vjt-ms-people { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s4); }
.vjt-ms-desc { max-width: 76ch; font-size: var(--t-13); line-height: 1.5; color: var(--ink-2); white-space: pre-wrap; }
.vjt-ms-deliverables { font-size: var(--t-13); }
.vjt-ms-deliverables:not(.vjt-ms-deliverables--validation) ul { margin: 0; padding-left: var(--s20, 20px); }
.vjt-ms-deliverables--validation ul { margin: 0; }
.vjt-details > .card { margin: 0; }
.vjt-ms-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: var(--s8); padding-top: var(--s12, 12px); border-top: 1px solid var(--line); }

/* [Proposition: documents] On the Execution tab the side panel only links down to the register. */
.docs-summary-compact { display: flex; align-items: center; justify-content: space-between; gap: var(--s8); }
.docs-summary-compact .btn { display: inline-flex; align-items: center; gap: 4px; }

/* Topbar: e-mails waiting because of my changes (PendingEmailsButton). */
.pending-emails-panel { width: 300px; }
.pending-emails-help { margin: 0 var(--s8) var(--s8); font-size: var(--t-12); line-height: 1.45; color: var(--ink-3); }
.pending-emails-list { list-style: none; margin: 0 0 var(--s8); padding: 0; border-top: 1px solid var(--line); }
.pending-emails-list li { display: flex; flex-direction: column; gap: 1px; padding: 6px var(--s8); border-bottom: 1px solid var(--line); }
.pending-emails-panel--wide { width: 380px; max-height: 70vh; overflow-y: auto; }
.pending-emails-person { display: flex; align-items: flex-start; gap: 6px; width: 100%; padding: 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink-3); }
.pending-emails-person > svg { margin-top: 3px; flex-shrink: 0; }
.pending-emails-person-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pending-emails-detail { display: flex; flex-direction: column; gap: var(--s8); margin: var(--s8) 0 var(--s4) 19px; }
.pending-emails-item { display: flex; flex-direction: column; gap: 4px; padding-left: var(--s8); border-left: 2px solid var(--line); }
.pending-emails-item-head { display: flex; align-items: flex-start; gap: var(--s4); }
.pending-emails-item-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pending-emails-item-label { font-size: var(--t-11); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.pending-emails-item-title { font-size: var(--t-13); color: var(--ink-1); overflow-wrap: anywhere; }
.pending-emails-item-actions { display: flex; flex-shrink: 0; }
.pending-emails-note-text,
.pending-emails-comment { margin: 0; padding: 4px var(--s8); background: var(--bg-inset); font-size: var(--t-12); line-height: 1.45; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.pending-emails-comment .btn-icon { vertical-align: middle; margin-left: 4px; }
.pending-emails-form { display: flex; flex-direction: column; gap: 6px; }
.pending-emails-form-actions { display: flex; justify-content: flex-end; gap: 6px; }
.pending-emails-add { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; }
.pending-emails-name { font-size: var(--t-13); font-weight: 600; color: var(--ink-1); }
.pending-emails-meta { font-size: var(--t-11); color: var(--ink-3); }
.pending-emails-send { display: inline-flex; align-items: center; gap: 6px; width: 100%; justify-content: center; }
.pending-emails-done { padding: var(--s8); font-size: var(--t-13); color: var(--ok); }

/* Project view: link to the project's task board, a key shortcut at the top of the side panel. */
.project-board-link { display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; width: 100%; margin-bottom: var(--s12); text-decoration: none; }

/* Planification des tâches: project header row when several projects are shown. */
.tlt-proj-label {
  grid-column: 1;
  position: sticky; left: 0; z-index: 5;
  display: flex; align-items: center; gap: 8px; min-width: 0;
  min-height: 34px; padding: 6px 14px;
  background: var(--accent-dim);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong);
  text-decoration: none;
}
.tlt-proj-label:hover .tlt-proj-name { color: var(--accent); }
.tlt-proj-code { flex-shrink: 0; font-family: var(--font-mono); font-size: var(--t-11, 11px); color: var(--ink-3); }
.tlt-proj-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-13, 13px); font-weight: 700; color: var(--ink-1); }
.tlt-proj-track { grid-column: 2 / -1; background: var(--accent-dim); border-bottom: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong); }

/* ============================================
   Toolbar filters (components/FilterSelect.tsx) — the one filter control used
   in every page toolbar. 30px high like the kit's search field; an active
   filter takes the kit's .selectable.active look (accent tint + border). The
   trigger never grows with the selection ("AE44 +2"); the popover floats.
   ============================================ */
.toolbar .toolbar-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s8); flex: 0 0 auto; }
.toolbar .toolbar-filters { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s8); min-width: 0; flex: 1 1 auto; }
/* Page toolbar: filters wrap within their own area; page actions stay top-right on the first line. */
.toolbar.page-toolbar { flex-wrap: nowrap; align-items: flex-start; flex-shrink: 0; }

.fsel { position: relative; display: inline-flex; align-items: stretch; flex: 0 0 auto; }
.fsel-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; max-width: 260px; min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--r1);
  background: var(--surface); color: var(--ink-1);
  font: inherit; font-size: var(--t-12); line-height: 1; white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--dt-fast, 0.1s), background var(--dt-fast, 0.1s);
}
.fsel-trigger:hover { border-color: var(--line-strong); }
.fsel-trigger:focus-visible, .fsel-toggle:focus-visible, .fsel-clear:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fsel-label { flex-shrink: 0; color: var(--ink-3); font-weight: 500; }
.fsel-label::after { content: ':'; }
.fsel-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--ink-1); }
.fsel-value.is-empty { font-weight: 500; color: var(--ink-2); }
.fsel-more {
  flex-shrink: 0; padding: 1px 5px; border-radius: var(--r2);
  background: var(--accent); color: #fff; font-size: var(--t-11, 11px); font-weight: 700;
}
.fsel-chevron { flex-shrink: 0; color: var(--ink-3); transition: transform var(--dt-fast, 0.1s); }
.fsel.is-open .fsel-chevron { transform: rotate(180deg); }
.fsel.is-active .fsel-trigger { background: var(--accent-dim); border-color: var(--accent); }
.fsel.is-active .fsel-value { color: var(--accent); }
.fsel.is-active .fsel-label { color: var(--accent); opacity: 0.8; }
.fsel.is-active:has(.fsel-clear) .fsel-trigger { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: none; }
.fsel-clear {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 30px; padding: 0;
  border: 1px solid var(--accent); border-left: 1px solid var(--accent-mid);
  border-radius: 0 var(--r1) var(--r1) 0;
  background: var(--accent-dim); color: var(--accent); cursor: pointer;
}
.fsel-clear:hover { background: var(--accent); color: #fff; }

.fsel-panel {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 80;
  width: 300px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex; flex-direction: column; overflow: hidden;
}
.fsel-panel.is-right { left: auto; right: 0; }
.fsel-search { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.fsel-search input { flex: 1; min-width: 0; border: none; outline: none; background: none; font: inherit; font-size: var(--t-13); color: var(--ink-1); }
.fsel-list { list-style: none; margin: 0; padding: 4px; max-height: 300px; overflow-y: auto; outline: none; }
.fsel-option {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: var(--r1);
  font-size: var(--t-13); color: var(--ink-1); cursor: pointer;
}
.fsel-option.is-focused { background: var(--bg-inset); }
.fsel-option.is-selected .fsel-option-label { font-weight: 600; color: var(--accent); }
.fsel-option-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsel-option-sub { margin-left: auto; flex-shrink: 0; font-size: var(--t-11, 11px); color: var(--ink-3); }
.fsel-empty { padding: 10px 8px; font-size: var(--t-12); color: var(--ink-3); }
.fsel-box, .fsel-tick {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; color: #fff;
}
.fsel-box { border: 1px solid var(--line-strong); border-radius: var(--r1); background: var(--surface); }
.fsel-option.is-selected .fsel-box, .fsel-toggle.is-active .fsel-box { background: var(--accent); border-color: var(--accent); }
.fsel-tick { color: var(--accent); }
.fsel-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 8px 6px 12px; border-top: 1px solid var(--line);
  font-size: var(--t-11, 11px); color: var(--ink-3);
}

.fsel-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--r1);
  background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: var(--t-12); font-weight: 500; white-space: nowrap; cursor: pointer;
}
.fsel-toggle:hover { border-color: var(--line-strong); color: var(--ink-1); }
.fsel-toggle.is-active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); font-weight: 600; }

.fsel-reset {
  height: 30px; padding: 0 6px; border: none; background: none; cursor: pointer;
  font: inherit; font-size: var(--t-12); color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px;
}
.fsel-reset:hover { color: var(--accent); }

/* Kit chips and segmented buttons sit at the same 30px height inside a toolbar. */
.toolbar .chip, .toolbar .selectable { height: 30px; display: inline-flex; align-items: center; }
.toolbar .search-input { height: 30px; }

/* Sidebar "Projets récents": code in mono, bold, accent colour; name truncated on one line. */
.nav-link.nav-recent { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.nav-recent-code { flex-shrink: 0; font-family: var(--font-mono); font-size: var(--t-11, 11px); font-weight: 600; color: var(--accent); }
.nav-link.nav-recent.active .nav-recent-code { color: inherit; }
.nav-recent-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Planification: same spacing as the other pages; "Aller à aujourd'hui" at the end of the legend. */
.tl-page.tlt-page { padding: 0; }
.tlt-legend .tlt-legend-today-btn { margin-left: auto; }

/* Sidebar: breathing room under the collapse bar (the first group now has a title). */
.sidebar-nav { padding-top: var(--s16); }

/* Sidebar badge — new initiatives in the Boîte de réception (InboxBadge). */
.nav-link.has-badge { display: flex; align-items: center; gap: var(--s8); }
/* A long label next to its badge wraps rather than lose its end ("Demandes de modification"). */
.nav-link.has-badge .nav-link-label { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.nav-badge {
  margin-left: auto; flex-shrink: 0;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-full, 999px);
  background: var(--accent); color: #fff;
  font-size: var(--t-11, 11px); font-weight: 700; line-height: 1;
}
.nav-badge.is-pulsing { animation: nav-badge-pulse 0.8s ease-out 2; }
@keyframes nav-badge-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { box-shadow: 0 0 0 8px transparent; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .nav-badge.is-pulsing { animation: none; } }
.shell--collapsed .nav-badge { display: none; }

/* Sidebar "un seul projet" (NavCodeFilter): Accueil, Pipeline and Portefeuille
   take a project number at the right end of their row. The link keeps the whole
   row (label never moves, same height); the slot sits on top of its right end,
   16px from the edge like the Boîte de réception badge, on the label's baseline. */
.nav-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
.nav-row > .nav-link { grid-area: 1 / 1 / 2 / 3; min-width: 0; }
.nav-row > .nav-link .nav-link-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-row.has-code > .nav-link, .nav-row.is-editing > .nav-link { padding-right: calc(var(--s16) + 64px); }
/* Pointing at the number keeps the row's hover look. */
.nav-row:hover > .nav-link:not(.active) { color: var(--ink-1); background: color-mix(in srgb, var(--accent-dim) 50%, transparent); }
.nav-code-slot {
  grid-area: 1 / 2 / 2 / 3; position: relative; z-index: 1;
  margin-right: var(--s16);
  display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--font-mono); font-size: var(--t-11, 11px); line-height: 18px;
}
.nav-code-hint, .nav-code-tag, .nav-code-clear {
  height: 18px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; line-height: inherit; color: var(--ink-3);
}
.nav-code-hint { padding: 0 1px; opacity: 0; transition: opacity var(--dt-fast), color var(--dt-fast); }
.nav-row:hover .nav-code-hint, .nav-row:focus-within .nav-code-hint { opacity: 1; }
.nav-code-hint:hover, .nav-code-hint:focus-visible { color: var(--ink-1); }
@media (hover: none) { .nav-code-hint { opacity: 0.6; } }
.nav-code-tag { color: var(--ink-1); }
.nav-row .nav-link.active ~ .nav-code-slot .nav-code-tag { color: var(--accent); font-weight: 600; }
.nav-code-tag:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav-code-clear { width: 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r1); }
.nav-code-clear:hover, .nav-code-clear:focus-visible { color: var(--ink-1); background: var(--bg-inset); }
.nav-code-input {
  width: 7ch; height: 18px; padding: 0; margin: 0;
  border: 0; border-bottom: 1px solid var(--ink-3); border-radius: 0; background: transparent;
  font: inherit; line-height: inherit; color: var(--ink-1); text-align: right;
}
.nav-code-input::placeholder { color: var(--ink-3); }
.nav-code-input:focus { outline: none; border-bottom-color: var(--accent); }

/* The page's filter row while it shows one project: number, name, ✕. Same 30px as the search box it replaces. */
.code-filter-chip {
  display: inline-flex; align-items: center; gap: var(--s8); min-width: 0; max-width: 440px; height: 30px;
  padding: 0 4px 0 10px; border: 1px solid var(--accent); border-radius: var(--r1); background: var(--surface);
  font-size: var(--t-12, 12px); color: var(--ink-1);
}
.code-filter-chip-code { flex-shrink: 0; font-family: var(--font-mono); font-size: var(--t-11, 11px); font-weight: 600; color: var(--accent); }
.code-filter-chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-filter-chip-clear {
  flex-shrink: 0; width: 22px; height: 22px; padding: 0; border: 0; border-radius: var(--r1);
  display: inline-flex; align-items: center; justify-content: center;
  background: none; color: var(--ink-3); cursor: pointer;
}
.code-filter-chip-clear:hover, .code-filter-chip-clear:focus-visible { color: var(--ink-1); background: var(--accent-dim); }
.home-code-filter { display: flex; margin-bottom: calc(-1 * var(--s16)); }

/* Kanban Projets: a cell's "+" is a button that opens the create-task dialog for that project and column. */
button.kanban-cell-add { width: 100%; background: none; font: inherit; }
button.kanban-cell-add:focus-visible { opacity: 1; outline: 2px solid var(--accent); outline-offset: 1px; }

/* ── Live presence: other people on the same screen (live/Presence.tsx) ── */
.live-avatars { display: inline-flex; align-items: center; flex-shrink: 0; }
.live-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px;
  background: hsl(var(--live-hue, 210) 55% 42%); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em; line-height: 1;
  border: 2px solid var(--surface); cursor: default; white-space: nowrap;
}
.live-avatars .live-avatar + .live-avatar { margin-left: -6px; }
.live-avatar--sm { min-width: 20px; height: 20px; padding: 0 5px; font-size: 10px; border-width: 1.5px; }
/* On a card someone else moves or has open: their initials in the corner, and a ring. */
.live-focus { position: absolute; top: -8px; right: -6px; display: inline-flex; gap: 2px; z-index: 2; pointer-events: auto; }
[data-dnd-draggable]:has(> .live-focus) { outline: 2px solid hsl(210 55% 42% / 0.35); outline-offset: 1px; border-radius: var(--r2, 8px); }
/* Someone else dragging a card: its faded copy follows them cell by cell. */
.live-ghost { position: relative; opacity: 0.55; pointer-events: none; margin-bottom: var(--s8, 8px); border-radius: var(--r2, 8px); outline: 2px dashed hsl(var(--live-hue, 210) 55% 42%); outline-offset: 1px; }
/* Someone else's pointer, with their initials (LiveCursors). */
.live-cursor { position: fixed; left: 0; top: 0; z-index: 3000; pointer-events: none; display: flex; align-items: flex-start; gap: 2px; transition: transform 120ms linear; }
.live-cursor svg { fill: hsl(var(--live-hue, 210) 55% 42%); stroke: var(--surface); stroke-width: 1.2; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.25)); }
.live-cursor .live-avatar { background: hsl(var(--live-hue, 210) 55% 42%); margin-top: 12px; }
/* What someone else is typing in a field, before saving (live/LiveField.tsx). */
.live-drafts { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.live-draft {
  border-left: 3px solid hsl(var(--live-hue, 210) 55% 42%);
  background: hsl(var(--live-hue, 210) 55% 42% / 0.07);
  border-radius: 0 var(--r2, 8px) var(--r2, 8px) 0; padding: 6px 10px;
}
.live-draft-who { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3, #666); }
.live-draft-dots::after { content: '…'; animation: live-dots 1.2s steps(3, end) infinite; display: inline-block; overflow: hidden; vertical-align: bottom; width: 0; }
@keyframes live-dots { to { width: 1.2em; } }
.live-draft-text { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; color: var(--ink, inherit); }
/* "Mode collaborateur" (live/Collab.tsx): the bar at the bottom — presenting, following, or follow again. */
.collab-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2500;
  display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 12px; border-radius: 999px;
  background: hsl(var(--live-hue, 210) 55% 42%); color: #fff;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.2); font-size: 13px;
}
.collab-bar.is-presenting { background: var(--accent, hsl(210 55% 42%)); }
.collab-bar.is-offer { background: var(--surface); color: var(--ink); border: 1px solid var(--line, #ddd); }
.collab-bar .live-avatar { border-color: #fff; }
.collab-bar-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collab-bar-btn { flex-shrink: 0; border-radius: 999px; background: rgb(255 255 255 / 0.18); color: inherit; border: 1px solid rgb(255 255 255 / 0.45); }
.collab-bar.is-offer .collab-bar-btn { background: var(--accent); color: #fff; border-color: transparent; }
.collab-btn { white-space: nowrap; }
.collab-btn[aria-disabled="true"] { opacity: 0.55; cursor: help; }
/* Following: how much I see (full: they present or record the session; else only the screen moves). */
.collab-bar.is-full { box-shadow: 0 0 0 2px rgb(255 255 255 / 0.55) inset; }
.collab-locked { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2, inherit); background: rgb(0 0 0 / 0.04); }
.collab-locked svg { flex-shrink: 0; margin-top: 2px; }
/* A window opened by the person I follow: shown on my screen, theirs to use (inert). */
.modal.is-watched { outline: 2px solid hsl(210 55% 42%); outline-offset: 2px; }
.modal-watched {
  display: flex; align-items: center; gap: 6px; padding: 6px var(--s16);
  background: hsl(210 55% 42%); color: #fff; font-size: 12px;
  border-radius: var(--r-lg, 10px) var(--r-lg, 10px) 0 0;
}
.pd-note--watched { color: hsl(210 55% 42%); margin-bottom: var(--s8); }
/* On a board card someone is typing in: ✎ with their initials (TypingBadge). */
.live-typing { top: auto; bottom: -8px; }

/* Task overlay footer: "contact the creator", "move to another project",
   Cancel and Save don't fit in the 480px modal on narrow screens — wrap them
   instead of letting the left-hand buttons spill out of the window. */
.task-detail-modal-footer {
  flex-wrap: wrap;
  row-gap: var(--s8);
}


/* One-line fields that wrap and grow (LineTextarea): a long title or to-do label stays readable. */
.line-textarea { display: block; resize: none; overflow: hidden; line-height: 1.4; }
.vjt-task-add textarea, .vjt-todo-add textarea { flex: 1; }

/* ══════════════════════════════════════════════════
   Project page
   Same language as the rest of the app (Gérance, Conseil, follow-up view):
   white cards on the grey page, one header card for the project, a strict
   two-column grid. Every block is a card with a header row (title left,
   actions right) and a body; lists run as ruled rows inside their card.
   One primary button per context (advance, save); the rest outlined/small.
   ══════════════════════════════════════════════════ */

/* .btn-xs was used (history, filters) but never defined: a hair tighter than .btn-sm. */
.btn-xs { padding: 1px 6px; font-size: var(--t-11); gap: 4px; }

.project-page { max-width: 1320px; }
.project-page .initiative-form { max-width: none; }
.pd-back { margin-bottom: var(--s12); }

/* ── Masthead card ── */
.pd-masthead {
  margin-bottom: var(--s20);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r2);
}
.pd-masthead-top { display: flex; align-items: flex-start; gap: var(--s16); padding: 16px 20px 12px; }
.pd-masthead-id { flex: 1; min-width: 0; }
.pd-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s8);
  margin-bottom: 4px;
  font-size: var(--t-11);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.project-page .pd-title {
  display: block;
  width: 100%;
  padding: 2px 0;
  font-size: 1.5rem;
  line-height: 1.3;
  border-bottom: 1px solid transparent;
  white-space: normal;
  overflow-wrap: anywhere;
}
/* The name is shown whole: a long one goes on the next lines (LiveTitleInput). */
.project-page textarea.pd-title { overflow: hidden; resize: none; font-family: inherit; }
.project-page textarea.pd-title:hover { border-bottom-color: var(--line); }
.project-page textarea.pd-title:focus { border-bottom-color: var(--accent); }
.pd-masthead-tools { display: flex; align-items: center; gap: var(--s8); flex: 0 0 auto; padding-top: 2px; }
.pd-masthead-tools .btn { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }

/* ── Stage bar: the lower bands of the masthead ── */
.stage-bar { border-top: 1px solid var(--line); }
.stage-steps-row {
  display: flex;
  align-items: center;
  gap: var(--s16);
  padding: 12px 20px;
  overflow-x: auto;
}
.stage-steps { display: flex; flex: 1; min-width: max-content; list-style: none; margin: 0; padding: 0; }
.stage-step { display: flex; align-items: center; flex: 1 1 0; min-width: max-content; }
.stage-step:last-child { flex: 0 0 auto; }
.stage-step:not(:last-child)::after {
  content: '';
  flex: 1;
  min-width: 12px;
  height: 1px;
  margin: 0 8px;
  background: var(--line);
}
.stage-step.is-done:not(:last-child)::after { background: var(--ok); }
.stage-step-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  margin: 0 -4px;
  border: 0;
  border-radius: var(--r1);
  background: none;
  font: inherit;
  color: inherit;
  white-space: nowrap;
}
button.stage-step-inner { cursor: pointer; }
button.stage-step-inner:hover { background: var(--bg-inset); }
button.stage-step-inner:hover .stage-name { color: var(--ink-1); }
.stage-dot {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
}
.is-done .stage-dot { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.is-current .stage-dot { border: 2px solid var(--accent); background: radial-gradient(circle, var(--accent) 0 3px, var(--surface) 3.5px); }
.stage-name { font-size: var(--t-12); color: var(--ink-3); }
.is-done .stage-name { color: var(--ink-2); }
.is-current .stage-name { color: var(--ink-1); font-weight: 600; }
.stage-sides { display: flex; align-items: center; gap: var(--s12); padding-left: var(--s16); border-left: 1px solid var(--line); }
.stage-side {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--t-12);
  color: var(--ink-3);
  white-space: nowrap;
  cursor: pointer;
}
.stage-side:hover { color: var(--ink-1); text-decoration: underline; text-underline-offset: 3px; }
/* What the next stage needs: a quiet band, the one advance button on the right. */
.stage-next {
  display: flex;
  align-items: center;
  gap: var(--s16);
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-inset);
  border-radius: 0 0 var(--r2) var(--r2);
}
.stage-next-body { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.stage-next-title { font-size: var(--t-13); font-weight: 600; color: var(--ink-1); }
.stage-next-help { font-size: var(--t-13); color: var(--ink-2); }
.stage-checklist { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.stage-checklist button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--t-13);
  color: var(--ink-1);
  cursor: pointer;
}
.stage-checklist button:hover span { text-decoration: underline; text-underline-offset: 3px; }
.stage-checklist .is-ok button { color: var(--ink-2); }
.stage-checklist .is-ok svg { color: var(--ok); }
.stage-checklist .is-missing svg { color: var(--ink-3); }
.stage-next-actions { flex: 0 0 auto; display: flex; gap: var(--s8); }

/* ── Tabs: the app's underline tabs, across the full width ── */
.project-page .pd-tabs { width: auto; margin: 0 0 var(--s20); }
.initiative-form .tab.is-locked:not(.active) { color: var(--ink-3); }
.initiative-form .tab-lock { width: 11px; height: 11px; margin-right: 4px; flex: 0 0 auto; opacity: 0.7; }

/* ── Grid: content left, documents and history right ── */
.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s20); align-items: start; }
.pd-main, .pd-side { display: flex; flex-direction: column; gap: var(--s16); min-width: 0; }
@media (max-width: 1100px) { .pd-layout { grid-template-columns: minmax(0, 1fr); } }

/* ── Card ── */
.pd-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); }
.pd-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s8);
  min-height: 44px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}
.pd-card-title { margin: 0; font-size: var(--t-13); font-weight: 600; color: var(--ink-1); }
.pd-card-actions { display: flex; align-items: center; gap: var(--s8); }
.pd-card-actions .btn { display: inline-flex; align-items: center; gap: 4px; }
.pd-card-actions .selectable { padding: 2px 10px; font-size: var(--t-12) !important; }
.pd-card-body { padding: 16px; }
.pd-card-body--flush { padding: 0; }
.pd-card-body > .form-group:last-child,
.pd-card-body > .form-grid-2:last-child .form-group { margin-bottom: 0; }
.pd-note { margin: 0 0 var(--s12); font-size: var(--t-13); color: var(--ink-3); }
.pd-card-body > .pd-note:last-child, .pd-note.pd-card-body { margin-bottom: 0; }
.pd-plain-list { margin: 0; padding-left: 20px; font-size: var(--t-14); color: var(--ink-1); }
.pd-plain-list li { margin: 2px 0; }
.stage-locked { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: var(--t-13); color: var(--ink-3); }
.pd-locked { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 24px; text-align: center; color: var(--ink-3); }
.pd-locked-title { font-size: var(--t-15); font-weight: 600; color: var(--ink-1); }
.pd-locked-desc { max-width: 420px; font-size: var(--t-13); }

/* The two Stratégie panels draw their own header: made into the card header. */
.pd-card--panel > .pq-panel { margin: 0; padding: 0 16px 16px; }
.pd-card--panel .pq-panel-header {
  min-height: 44px;
  margin: 0 -16px 16px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}
.pd-card--panel .pq-panel-header .section-label { font-size: var(--t-13); font-weight: 600; letter-spacing: normal; text-transform: none; color: var(--ink-1); }

/* Allocation table total: a total line, not a grey box. */
.project-page .alloc-total { margin-top: var(--s12); padding: var(--s8) 0 0; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; background: none; }
.project-page .alloc-total-v { font-size: var(--t-15); }

/* Follow-up inside its card: milestones as ruled rows, the documents register as the card's last band. */
.vjt-embedded-summary { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pd-card .vjt-ms { margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.pd-card .vjt-ms.is-late { border-left: 3px solid var(--err); }
.pd-card .vjt > .btn { margin: 12px 16px !important; }
.pd-card .docs-register { margin: 0; padding: 16px; border-top: 1px solid var(--line); }
.pd-card .docs-register-title { margin: 0 0 var(--s12) !important; font-size: var(--t-13); font-weight: 600; letter-spacing: normal; text-transform: none; color: var(--ink-1); }
.pd-card .docs-general { border-radius: var(--r1); }

/* ── Side cards: the panels' own headers become card headers ── */
.pd-side-card > .detail-section { margin: 0 !important; padding: 0 16px 16px; border: 0; }
.pd-side-card > .detail-section > .meeting-header,
.pd-side-card > .detail-section > .detail-label:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin: 0 -16px 12px !important;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}
.pd-side-card .detail-label { font-size: var(--t-13); font-weight: 600; letter-spacing: normal; text-transform: none; color: var(--ink-1); margin: 0; }
.pd-side-card .meeting-header .detail-label > svg:first-child { display: none; }
.pd-side-card > .docs-summary-compact { min-height: 44px; padding: 8px 16px; }

/* ── Save bar: stays at the bottom of the screen while the form scrolls ──
   .tk-actionbar (Améliorations PMO, the actions of a ticket) is the same bar in the ticket's panel. */
.pd-savebar, .tk-actionbar {
  position: sticky;
  bottom: var(--s12);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--s8);
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .pd-savebar, [data-theme="dark"] .tk-actionbar { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.pd-savebar-state { margin-right: auto; font-size: var(--t-13); color: var(--ink-3); }
.pd-savebar.is-dirty .pd-savebar-state { color: var(--warn); font-weight: 600; }
.pd-savebar-err { color: var(--err); font-weight: 500; }
/* What the scoping still lacks: a reminder, the save stays possible (ticket #132). */
.pd-savebar-warn { color: var(--tlt-orange); font-weight: 500; }

/* ── Settings dialog ── */
.pd-setting { padding: 0 0 var(--s16); margin-bottom: var(--s16); border-bottom: 1px solid var(--line); }
.pd-setting:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.pd-setting-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s8); margin-bottom: var(--s12); }
.pd-setting-title { font-size: var(--t-13); font-weight: 600; color: var(--ink-1); }

/* ── Aperçu ── */
.synth { display: flex; flex-direction: column; gap: var(--s16); }
.synth-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s12); margin: 0; }
.synth-fact { min-width: 0; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); }
.synth-fact dt { font-size: var(--t-11); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.synth-fact dd { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; margin: 6px 0 0; font-size: var(--t-15); font-weight: 600; color: var(--ink-1); }
.synth-full { max-width: 100%; overflow-wrap: anywhere; }
.synth-sub { font-size: var(--t-12); font-weight: 400; color: var(--ink-3); }
.synth-meter { display: block; width: 100%; height: 3px; margin-top: 6px; background: var(--line); }
.synth-meter > span { display: block; height: 100%; background: var(--ok); }
.synth-note { margin: 0; font-size: var(--t-13); color: var(--ink-3); }
.synth-later { font-size: var(--t-13); font-weight: 400; color: var(--ink-3); }
.synth-empty { color: var(--ink-3); font-weight: 400; }
.synth-text { display: block; white-space: pre-wrap; }

.synth-dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px var(--s16); margin: 0; }
.synth-dl dt { font-size: var(--t-13); color: var(--ink-3); }
.synth-dl dd { margin: 0; min-width: 0; font-size: var(--t-14); line-height: 1.5; color: var(--ink-1); }

.synth-ms, .synth-deliv { list-style: none; margin: 0; padding: 0; }
.synth-ms-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto 80px;
  gap: var(--s12);
  align-items: baseline;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.synth-ms-row:last-child, .synth-deliv li:last-child { border-bottom: 0; }
.synth-ms-mark { width: 8px; height: 8px; align-self: start; margin-top: 6px; border: 1.5px solid var(--line-strong); }
.is-done .synth-ms-mark { background: var(--ok); border-color: var(--ok); }
.is-active .synth-ms-mark { background: var(--accent); border-color: var(--accent); }
.is-late .synth-ms-mark { background: var(--err); border-color: var(--err); }
.synth-ms-main { min-width: 0; }
.synth-ms-name { font-size: var(--t-14); color: var(--ink-1); }
.synth-ms-n, .synth-deliv-n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.synth-ms-n { margin-right: 8px; }
.synth-ms-dates { font-size: var(--t-13); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.synth-ms-state { font-size: var(--t-11); letter-spacing: 0.04em; text-transform: uppercase; text-align: right; color: var(--ink-3); }
.is-done .synth-ms-state { color: var(--ok); }
.is-active .synth-ms-state { color: var(--accent); }
.is-late .synth-ms-state, .is-late .synth-ms-dates { color: var(--err); }
.synth-deliv li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: var(--s12);
  align-items: baseline;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.synth-deliv-main { min-width: 0; }
.synth-deliv-title { font-size: var(--t-14); color: var(--ink-1); }
.synth-deliv-body { margin-top: 2px; font-size: var(--t-13); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.synth-deliv-by { font-size: var(--t-12); color: var(--ink-3); white-space: nowrap; }
.synth-team { border-collapse: collapse; }
.synth-team td { padding: 0 var(--s16) 4px 0; font-size: var(--t-14); vertical-align: baseline; }
.synth-team tr:last-child td { padding-bottom: 0; }
.synth-team-role { font-size: var(--t-13) !important; color: var(--ink-3); }
.synth-team-pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }

@media (max-width: 720px) {
  .synth-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .synth-dl { grid-template-columns: 1fr; gap: 2px; }
  .synth-dl dd { margin-bottom: 8px; }
  .synth-ms-row { grid-template-columns: 8px minmax(0, 1fr) 80px; }
  .synth-ms-dates { grid-column: 2; grid-row: 2; }
  .stage-next { flex-direction: column; align-items: stretch; }
  .pd-masthead-top { flex-direction: column; }
}
/* Compact documents summary (follow-up open): the whole block is the header row. */
.pd-side-card > .docs-summary-compact.detail-section { padding: 8px 16px; }
.pd-side-card > .docs-summary-compact > .detail-label:first-child { min-height: 0; margin: 0 !important; padding: 0; border: 0; }

/* ══════════════════════════════════════════════════
   Info tooltip (ⓘ): explanations on hover / focus instead of paragraphs
   ══════════════════════════════════════════════════ */
.info-tip { position: relative; display: inline-flex; align-items: center; vertical-align: -1px; color: var(--ink-3); }
.info-tip-btn { display: inline-flex; align-items: center; padding: 1px; border-radius: 50%; cursor: pointer; outline: none; }
.info-tip-btn:hover, .info-tip.is-open .info-tip-btn { color: var(--accent); }
.info-tip-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Opened by a click only; a light card, closed by a click elsewhere or Esc. */
.info-tip-bubble {
  position: absolute;
  top: calc(100% + 6px);
  left: -8px;
  z-index: 220;
  width: max-content;
  max-width: 260px;
  padding: 8px 10px;
  font-size: var(--t-12);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.45;
  white-space: normal;
  text-align: left;
  color: var(--ink-1);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  cursor: auto;
}
.info-tip--end .info-tip-bubble { left: auto; right: -8px; }
@media (max-width: 720px) { .info-tip-bubble { max-width: calc(100vw - 64px); } }
.info-tip-bubble a { color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
:root[data-theme="dark"] .info-tip-bubble { color: var(--ink-1); background: var(--bg-inset); border: 1px solid var(--line-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .info-tip-bubble { color: var(--ink-1); background: var(--bg-inset); border: 1px solid var(--line-strong); } }
.form-label--tip { display: inline-flex; align-items: center; gap: 6px; }
.task-privacy-field { display: flex; align-items: center; gap: var(--s8); }

/* ══════════════════════════════════════════════════
   Task page — same frame as the project page (masthead, card grid)
   ══════════════════════════════════════════════════ */
.td-project-link { color: var(--ink-2); text-decoration: none; letter-spacing: 0.04em; }
.td-project-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.td-eyebrow-note { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-3); }
.td-delete:hover { color: var(--err); border-color: var(--err); }
/* The task page's foot: its delete button, at the bottom as in the task window (ticket #87). */
.td-foot { display: flex; justify-content: flex-end; padding-top: var(--s12); border-top: 1px solid var(--line); }
.task-page .pd-title[readonly] { cursor: default; }
/* Status: the board columns, the current one selected — the lower band of the masthead. */
.td-status { display: flex; align-items: center; gap: var(--s16); padding: 12px 20px; border-top: 1px solid var(--line); }
.td-status-label { font-size: var(--t-11); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.td-status .selectable { padding: 0 12px; height: 28px; font-size: var(--t-12) !important; }
.td-status .selectable:disabled { cursor: default; }
.td-status .selectable:disabled:not(.active) { opacity: 0.6; }
.td-readonly-band .stage-next-title { display: inline-flex; align-items: center; gap: 6px; }
.td-count { margin-left: 8px; font-family: var(--font-mono); font-size: var(--t-12); font-weight: 500; color: var(--ink-3); }
.pd-card-title .info-tip { margin-left: 6px; }

/* Card bodies: the embedded lists drop their own top spacing. */
.task-page .pd-card-body > .vjt-todos { margin: 0; }
.task-page .pd-card-body > .docs { margin: 0; padding: 0; border: 0; }
.task-page .pd-card-body > .legacy-notes { margin: 0; }

/* Dependencies: two columns, each with its label and its add action on one line. */
.td-deps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s20); }
.td-dep-group { display: flex; flex-direction: column; gap: var(--s8); min-width: 0; }
.td-dep-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s8); min-height: 28px; }
.td-sub-label { font-size: var(--t-12); font-weight: 600; color: var(--ink-2); }
.td-dep-head .btn { display: inline-flex; align-items: center; gap: 4px; }

/* Détails: one aligned list — label column, value column, same control height. */
.td-props { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 16px; align-items: start; }
.td-prop { display: contents; }
.td-prop-label { display: flex; align-items: center; gap: 6px; min-height: 32px; font-size: var(--t-13); white-space: nowrap; color: var(--ink-3); }
.td-prop-value { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.td-prop-text { display: flex; align-items: center; min-height: 32px; font-size: var(--t-13); color: var(--ink-1); }
.td-props .form-input,
.td-props .autosuggest-wrapper .form-input { height: 32px; min-height: 32px; padding: 0 10px; font-size: var(--t-13); }
.td-props .autosuggest-wrapper { width: 100%; }
.td-props .msf, .td-props .msf > div { display: flex; width: 100%; }
.td-props .msf-label:empty { display: none; }
.td-props .msf-control { width: 100%; max-width: none; min-width: 0; min-height: 32px; padding: 4px 10px; }
.td-props .msf-input { font-size: var(--t-13); }
.td-props .selectable-group { flex-wrap: nowrap; }
.td-props .selectable { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; height: 32px; font-size: var(--t-12) !important; white-space: nowrap; }
.td-props .task-milestone-notice { margin: 0; }
.td-inline { display: flex; align-items: center; gap: var(--s8); }
.td-inline > .autosuggest-wrapper { flex: 1; min-width: 0; }
.td-props .btn-icon { flex: 0 0 auto; }

@media (max-width: 720px) {
  .td-status { flex-direction: column; align-items: flex-start; gap: var(--s8); padding: 12px 16px; }
  .td-deps { grid-template-columns: 1fr; }
}
/* Read-only copy: the cards stay white, only their contents are dimmed. */
.task-page .pd-main.task-detail-readonly, .task-page .td-props.task-detail-readonly { opacity: 1; }
.task-page .pd-main.task-detail-readonly .pd-card-body, .task-page .td-props.task-detail-readonly .td-prop-value { opacity: 0.65; }

/* ══════════════════════════════════════════════════
   Project page — the stage's "À faire" view
   ══════════════════════════════════════════════════ */
/* The stage whose view is open: underlined in the header steps. */
.stage-step.is-viewed .stage-name { color: var(--ink-1); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); text-underline-offset: 5px; }
/* The "À faire" tab stands out a little from the topic tabs. */
.pd-tabs .tab--stage { font-weight: 600; color: var(--accent); }
.pd-tabs .tab--stage.active { color: var(--ink-1); }

/* Cards scrolled to stop just under the top of the window. */
.project-page .pd-card, .project-page .pd-tabs { scroll-margin-top: 16px; }

/* Step number in a card title: square, accent when to do, green tick when done, quiet when optional. */
.pd-card-title { display: flex; align-items: center; gap: 10px; }
.pd-step {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 20px; height: 20px; border-radius: var(--r1);
  font-family: var(--font-mono); font-size: var(--t-11); font-weight: 700; line-height: 1;
}
.pd-step--todo { background: var(--accent); color: var(--surface); }
.pd-step--done { background: var(--ok); color: var(--surface); }
.pd-step--opt { border: 1px solid var(--line-strong); color: var(--ink-3); }
/* The assessment panels draw their own header: the number goes in front through --step-label. */
.pd-card--panel.has-step .pq-panel-header::before {
  content: var(--step-label);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 20px; height: 20px; margin-right: 10px; border-radius: var(--r1);
  font-family: var(--font-mono); font-size: var(--t-11); font-weight: 700; line-height: 1;
}
.pd-card--panel.step-todo .pq-panel-header::before { background: var(--accent); color: var(--surface); }
.pd-card--panel.step-done .pq-panel-header::before { background: var(--ok); color: var(--surface); }
.pd-card--panel.step-opt .pq-panel-header::before { border: 1px solid var(--line-strong); color: var(--ink-3); }

/* Intro card: what the stage is about, then its steps — each one scrolls to its card. */
.pd-stage-help { margin: 0 0 var(--s12); font-size: var(--t-14, 14px); line-height: 1.5; color: var(--ink-1); }
.pd-steps { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pd-steps li { border-bottom: 1px solid var(--line); }
.pd-steps-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 0;
  border: 0; background: none; font: inherit; font-size: var(--t-13); color: var(--ink-1); text-align: left;
}
button.pd-steps-item { cursor: pointer; }
button.pd-steps-item:hover span:not(.pd-step):not(.pd-steps-opt) { text-decoration: underline; text-underline-offset: 3px; }
.pd-steps-opt { margin-left: auto; font-size: var(--t-12); color: var(--ink-3); }

/* The decision at the end of the view: the header band's content, inside a card. */
.stage-next.stage-next--card { padding: 0; border: 0; background: none; border-radius: 0; }
.pd-decision-check { margin-bottom: var(--s12); }
.pd-card--panel.has-step .pq-panel-header { justify-content: flex-start; }
.pd-card--panel.has-step .pq-panel-header > :last-child:not(:first-child) { margin-left: auto; }
.stage-next.stage-next--card { flex-direction: column; align-items: stretch; gap: var(--s12); }
.stage-next--card .stage-next-actions { justify-content: flex-start; }

/* Field history: "Historique (n)" in a card header, the changes in a popover. */
.fh { position: relative; }
.fh > .btn { display: inline-flex; align-items: center; gap: 4px; }
.fh-pop {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  width: min(460px, calc(100vw - 48px)); max-height: 420px; overflow-y: auto;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); text-align: left; font-weight: 400;
}
.fh-title { margin-bottom: 8px; font-size: var(--t-11); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.fh-list { margin: 0; padding: 0; list-style: none; }
.fh-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.fh-meta { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-12); color: var(--ink-3); }
.fh-meta strong { color: var(--ink-1); font-weight: 600; }
.fh-change { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; margin-top: 4px; font-size: var(--t-13); line-height: 1.45; }
.fh-old { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); overflow-wrap: anywhere; white-space: pre-wrap; }
.fh-new { color: var(--ink-1); overflow-wrap: anywhere; white-space: pre-wrap; }
.fh-arrow { color: var(--ink-3); }
.pd-panel-history { display: flex; justify-content: flex-end; padding: 0 16px 12px; }
/* Phone width: the topic tabs wrap rather than run off the screen. */
@media (max-width: 720px) {
  .project-page .pd-tabs { display: flex; flex-wrap: wrap; max-width: 100%; }
}

/* The stage's step list: in the right column on wide screens, at the top of
   the page when the right column drops below the content (same breakpoint as .pd-layout). */
.pd-only-narrow { display: none; }
@media (max-width: 1100px) {
  .pd-only-narrow { display: block; }
  .pd-only-wide { display: none; }
}
.project-page .pd-side .project-board-link { margin-bottom: 0; }

/* ── Chronologie: an activity feed ──
   Automatic entries (stage, edits, team, tasks, documents, milestones) sit on
   one vertical line, each with its icon: what was done, then who and when.
   Stage changes stand out (accent). Comments carry the author's initials and
   their text in a light bubble, so a person's words read apart from events. */
.meeting-item.timeline-entry--setup_change,
.meeting-item.timeline-entry--task_event { border-bottom: 0; padding: 0 !important; }
.tl-act { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; column-gap: 10px; align-items: start; padding: 6px 0; }
/* The line runs down the whole entry (its reply thread included), so consecutive entries join up. */
.meeting-item.timeline-entry--setup_change::before,
.meeting-item.timeline-entry--task_event::before { content: ''; position: absolute; left: 11.5px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.meetings-group-label + .timeline-entry--setup_change::before,
.meetings-group-label + .timeline-entry--task_event::before,
.meetings-group-label + .timeline-entry--comment::before { top: 12px; }
.meeting-item.timeline-entry--setup_change > .timeline-entry-thread,
.meeting-item.timeline-entry--task_event > .timeline-entry-thread { margin: 0 0 0 34px; }
.tl-act-icon {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: var(--r1);
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-2);
}
.tl-act--stage .tl-act-icon { background: var(--accent); border-color: var(--accent); color: #fff; }
.tl-act--edit .tl-act-icon { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.tl-act--session .tl-act-icon { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tl-act--task .tl-act-icon, .tl-act--milestone .tl-act-icon { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.tl-act-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding-top: 2px; }
.tl-act-text {
  font-size: var(--t-13); line-height: 1.4; color: var(--ink-1); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tl-act--stage .tl-act-text { font-weight: 600; }
a.tl-act-text--link { text-decoration: none; }
a.tl-act-text--link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.tl-act-meta { font-size: var(--t-11); color: var(--ink-3); }
.tl-act-tools { display: flex; align-items: center; gap: 2px; opacity: 0; transition: opacity var(--dt-fast, 120ms); }
.tl-act:hover .tl-act-tools, .tl-act:focus-within .tl-act-tools { opacity: 1; }

.meeting-item.timeline-entry--comment { position: relative; padding: 6px 0 6px 34px; border-left: 0; margin-bottom: 4px; }
.timeline-entry--comment::before { content: ''; position: absolute; left: 11.5px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-avatar {
  position: absolute; left: 0; top: 6px; z-index: 1; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: var(--r1);
  background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-mid);
  font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
}
.timeline-entry--comment .timeline-comment-header { min-height: 24px; }
.timeline-entry--comment .task-update-author { font-weight: 600; color: var(--ink-1); }
.timeline-entry--comment .task-update-time { color: var(--ink-3); font-size: var(--t-11); }
.timeline-entry--comment > .task-update-content {
  margin-top: 2px; padding: 8px 10px; background: var(--bg-inset); border-radius: var(--r2);
  font-size: var(--t-13); line-height: 1.45; color: var(--ink-1);
}
.timeline--compact .meeting-item.timeline-entry--comment { margin-bottom: 4px; }

/* Documents register (Plan et exécution): title and filters on one line, the
   table, then the project's general documents (charter, contract…) and their
   add buttons, under a rule rather than in a nested box. */
.pd-card .docs-register { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s8) var(--s12); }
.pd-card .docs-register > .docs-register-title { order: 1; flex: 1 1 auto; margin: 0 !important; }
.pd-card .docs-register > .toolbar { order: 2; margin: 0; flex-wrap: wrap; }
.pd-card .docs-register > .docs-register-table,
.pd-card .docs-register > .vjt-muted,
.pd-card .docs-register > .spinner { order: 3; flex: 1 1 100%; }
.pd-card .docs-register > .vjt-muted { font-size: var(--t-13); color: var(--ink-3); }
.pd-card .docs-register > .docs-general { order: 4; flex: 1 1 100%; margin: var(--s8) 0 0; padding: var(--s12) 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.meeting-item.timeline-entry--setup_change:last-child::before,
.meeting-item.timeline-entry--task_event:last-child::before,
.meeting-item.timeline-entry--comment:last-child::before { bottom: auto; height: 18px; }

/* Register table: name, added by, date, and "Rattacher à…" always in place at
   the right of every row (a fixed column, so it lines up row to row). */
.docs-register-table td:nth-child(2), .docs-register-table td.docs-date { white-space: nowrap; }
.docs-register-table .docs-attach-col { width: 1%; white-space: nowrap; text-align: right; }
.docs-register-table tr.is-attaching td { border-bottom: 0; }
.docs-register-table .docs-attach-row td { padding-top: 0; }
.docs-register-table .docs-attach-pick { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.docs-register-table .docs-attach-pick > :first-child { width: min(420px, 100%); }
.vjt-embedded-summary:empty { display: none; }

/* ── Session recorder: a tab in the top bar and the deck it slides out (layout/SessionRecorder.tsx) ── */
/* The menu still scrolls on a short screen, without a visible bar. */
.sidebar-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.sidebar-nav::-webkit-scrollbar { display: none; }

/* The deck is a night-time machine in both themes. It sets its own tokens, so
   the kit's controls inside it follow. Colours as in recorder/synthwave.ts. */
.rec-dock {
  --neon-night: #0b0420;
  --neon-deck: #150a30;
  --neon-edge: #2c1852;
  --neon-pink: #ff2a6d;
  --neon-hot: #e0115f;
  --neon-magenta: #b000a6;
  --neon-cyan: #2de2e6;
  --neon-yellow: #ffd319;
  --neon-text: #f5eeff;
  --rec-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  align-self: stretch;
  display: flex;
}
.topbar-right:has(.rec-dock) { align-self: stretch; }

/* The tab */
.rec-tab {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  height: 100%;
  padding: 0 var(--s12);
  cursor: pointer;
  color: var(--ink-2);
  font-size: var(--t-13); font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.rec-tab:hover { background: var(--bg-inset); color: var(--ink-1); }
.rec-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rec-tab.is-meeting { color: var(--accent); background: var(--accent-dim); font-weight: 600; }
.rec-tab-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: currentColor; }
.rec-tab.is-meeting .rec-tab-dot { animation: rec-pulse 1.8s ease-in-out infinite; }

/* Open, or recording: the tab turns into the top of the deck. */
.rec-dock.is-open .rec-tab,
.rec-tab.is-live, .rec-tab.is-held {
  background: var(--neon-deck);
  color: var(--neon-text);
}
.rec-dock.is-open .rec-tab::before,
.rec-tab.is-live::before, .rec-tab.is-held::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-magenta) 55%, var(--neon-cyan));
  box-shadow: 0 0 10px rgba(255, 42, 109, 0.7);
}
/* Over the top bar's bottom rule, so tab and deck read as one piece. */
.rec-dock.is-open .rec-tab { height: calc(100% + 1px); margin-bottom: -1px; }
.rec-tab.is-live .rec-tab-dot { background: var(--neon-pink); box-shadow: 0 0 8px var(--neon-pink); animation: rec-pulse 1.6s ease-in-out infinite; }
.rec-tab.is-held .rec-tab-dot { background: #9d8bc6; }
.rec-tab.is-warn .rec-tab-dot { background: var(--neon-yellow); box-shadow: 0 0 8px var(--neon-yellow); }
.rec-tab-meter { display: block; width: 26px; height: 16px; }
.rec-tab-clock {
  font-family: var(--font-mono); font-size: var(--t-13); font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
  color: #fff; text-shadow: 0 0 8px rgba(45, 226, 230, 0.65);
}
.rec-tab.is-held .rec-tab-clock { color: #cdbcf2; text-shadow: none; }
.rec-tab-badge { flex-shrink: 0; color: var(--ink-3); }
.rec-tab-badge.is-failed { color: var(--err); }
.rec-dock.is-open .rec-tab-badge { color: #9d8bc6; }
.rec-dock.is-open .rec-tab-badge.is-failed { color: var(--neon-pink); }
@media (max-width: 1100px) { .rec-tab-label { display: none; } }

/* The flap clips the deck, which slides out from under the top bar. Its padding
   leaves room for the deck's shadow inside the clip. */
.rec-flap {
  position: absolute; top: calc(100% + 1px); right: -48px;
  width: calc(400px + 96px); max-width: calc(100vw - 8px);
  padding: 0 48px 72px;
  overflow: hidden;
  pointer-events: none;
}
.rec-dock.is-open .rec-deck { pointer-events: auto; }
.rec-deck {
  --surface: var(--neon-deck);
  --bg: #10072a;
  --bg-inset: var(--neon-night);
  --ink-1: var(--neon-text);
  --ink-2: #cdbcf2;
  --ink-3: #a594cc;
  --line: #34205c;
  --line-strong: #563a8e;
  --accent: var(--neon-cyan);
  --accent-hover: #7ff3f5;
  --accent-dim: rgba(45, 226, 230, 0.12);
  --err: var(--neon-pink);
  --warn: #ffbe55;
  --ok: #45f0a8;
  background: var(--neon-deck);
  color: var(--ink-2);
  border: 1px solid var(--neon-edge);
  border-top: 0;
  box-shadow: 0 22px 44px -16px rgba(11, 4, 32, 0.6), 0 0 32px -8px rgba(255, 42, 109, 0.22);
  transform: translateY(calc(-100% - 4px));
  visibility: hidden;
  transition: transform 360ms var(--rec-ease), visibility 0s linear 360ms;
}
.rec-dock.is-open .rec-deck {
  transform: none;
  visibility: visible;
  transition: transform 360ms var(--rec-ease), visibility 0s;
}

/* The screen */
.rec-screen { position: relative; height: 150px; background: var(--neon-night); border-bottom: 1px solid var(--neon-edge); overflow: hidden; }
.rec-screen-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rec-screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px);
}
.rec-hud {
  position: absolute; left: 4px; top: 4px;
  padding: 8px 36px 12px 10px;
  display: flex; flex-direction: column; gap: 3px; pointer-events: none;
  background: radial-gradient(ellipse at 30% 45%, rgba(11, 4, 32, 0.78), rgba(11, 4, 32, 0) 72%);
}
.rec-hud-state {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: var(--t-10); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: #cdbcf2;
}
.rec-hud-state.is-live { color: #ff9cc0; text-shadow: 0 0 8px rgba(255, 42, 109, 0.85); }
.rec-hud-state.is-live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--neon-pink); box-shadow: 0 0 10px var(--neon-pink);
  animation: rec-pulse 1.6s ease-in-out infinite;
}
.rec-hud-state.is-meeting { color: var(--neon-cyan); text-shadow: 0 0 8px rgba(45, 226, 230, 0.6); }
.rec-hud-state.is-warn { color: var(--neon-yellow); }
.rec-hud-clock {
  font-family: var(--font-mono); font-size: 1.75rem; line-height: 1.1; letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 0 6px rgba(45, 226, 230, 0.9), 0 0 20px rgba(45, 226, 230, 0.45);
}
.rec-close {
  all: unset; position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  color: #cdbcf2; cursor: pointer;
}
.rec-close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.rec-close:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: -2px; }

/* The controls */
.rec-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; font-size: var(--t-13); }
.rec-what { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink-1); font-size: var(--t-15); font-weight: 600; }
.rec-code {
  flex-shrink: 0; padding: 1px 6px;
  font-family: var(--font-mono); font-size: var(--t-12); font-weight: 500; letter-spacing: 0.06em;
  color: var(--neon-cyan); border: 1px solid rgba(45, 226, 230, 0.45);
}
.rec-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-what .rec-link, .rec-field-head .rec-link { margin-left: auto; flex-shrink: 0; padding-left: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.rec-field-head { display: flex; align-items: baseline; gap: 8px; }
.rec-muted { color: var(--ink-3); font-size: var(--t-12); display: flex; align-items: center; gap: 6px; }
.rec-note { color: var(--warn); line-height: 1.4; font-size: var(--t-12); }
.rec-nosound { display: flex; flex-direction: column; gap: 8px; }
.rec-field { display: flex; flex-direction: column; gap: 5px; }
.rec-field-label { font-size: var(--t-10); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.rec-deck .form-select { background: var(--neon-night); border-color: var(--line-strong); }
.rec-deck .form-select option { background: var(--neon-deck); color: var(--neon-text); }
.rec-source { display: flex; border: 1px solid var(--line-strong); }
.rec-source button {
  all: unset; flex: 1; text-align: center; cursor: pointer; padding: 7px 8px;
  font-size: var(--t-12); color: var(--ink-2); white-space: nowrap;
}
.rec-source button + button { border-left: 1px solid var(--line-strong); }
.rec-source button.is-on { background: rgba(45, 226, 230, 0.12); color: var(--neon-cyan); font-weight: 600; box-shadow: inset 0 -2px 0 var(--neon-cyan); }
.rec-source button:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: -2px; }

.rec-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rec-actions--live { flex-wrap: nowrap; }
.rec-actions--live .rec-btn { flex: 1 1 0; }
.rec-btn {
  all: unset; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; cursor: pointer;
  font-size: var(--t-13); font-weight: 600; color: var(--ink-1);
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s, box-shadow 0.15s, filter 0.15s;
}
.rec-btn:hover { border-color: var(--neon-cyan); box-shadow: 0 0 14px rgba(45, 226, 230, 0.28); }
.rec-btn:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }
.rec-btn:disabled { opacity: 0.45; cursor: default; box-shadow: none; border-color: var(--line-strong); filter: none; }
.rec-btn--hot, .rec-btn--go {
  color: #fff; border-color: transparent;
  background: linear-gradient(90deg, var(--neon-hot), var(--neon-magenta));
  box-shadow: 0 0 18px rgba(255, 42, 109, 0.35);
}
.rec-btn--hot:hover, .rec-btn--go:hover:not(:disabled) { border-color: transparent; box-shadow: 0 0 26px rgba(255, 42, 109, 0.6); filter: brightness(1.08); }
.rec-btn--go { width: 100%; height: 42px; }
.rec-actions .rec-btn--go { width: auto; flex: 1 1 auto; }
.rec-go-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; flex-shrink: 0; }
.rec-icon-btn {
  all: unset; box-sizing: border-box; cursor: pointer; flex: 0 0 auto;
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-3); border: 1px solid transparent;
}
.rec-icon-btn:hover { color: var(--neon-pink); border-color: rgba(255, 42, 109, 0.45); }
.rec-icon-btn:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }
.rec-link { all: unset; cursor: pointer; color: var(--neon-cyan); font-size: var(--t-12); }
.rec-link:hover { text-decoration: underline; }
.rec-link:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }
.rec-error {
  display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px;
  color: #ff9cc0; line-height: 1.4; font-size: var(--t-12);
  border: 1px solid rgba(255, 42, 109, 0.4); background: rgba(255, 42, 109, 0.08);
}
.rec-error > svg { margin-top: 1px; flex-shrink: 0; }
.rec-error .rec-link { margin-left: auto; flex-shrink: 0; }
.rec-error-detail { display: block; margin-top: 2px; color: var(--ink-3); font-size: var(--t-10); word-break: break-word; }
.rec-status {
  display: flex; align-items: flex-start; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line);
  color: var(--ink-3); line-height: 1.4; font-size: var(--t-12);
}
.rec-status > svg { margin-top: 2px; flex-shrink: 0; }
.rec-status > span { min-width: 0; }
.rec-status--completed { color: var(--ok); }
.rec-status--failed { color: #ff9cc0; }
.rec-status .rec-link { margin-left: auto; flex-shrink: 0; align-self: center; }
.rec-spin { animation: rec-spin 1s linear infinite; flex-shrink: 0; }
@keyframes rec-spin { to { transform: rotate(360deg); } }
@keyframes rec-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) {
  .rec-deck, .rec-dock.is-open .rec-deck { transition: none; }
  .rec-tab-dot, .rec-tab.is-meeting .rec-tab-dot, .rec-tab.is-live .rec-tab-dot, .rec-hud-state.is-live::before { animation: none; }
}

/* Timeline: a recording Speakr is still transcribing. */
.meeting-transcript-btn--pending {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: var(--t-12); color: var(--ink-3); font-style: italic;
}

/* ── Uploaded audio (components/AudioImportDialog.tsx): meeting or audio document ── */
.modal.aimp { max-width: 500px; }
.aimp-body { display: flex; flex-direction: column; gap: var(--s12); }
.aimp-file {
  display: flex; align-items: center; gap: var(--s12);
  padding: var(--s8) var(--s12); background: var(--bg-inset); border: 1px solid var(--line); border-radius: var(--r1);
  color: var(--accent);
}
.aimp-file-main { min-width: 0; flex: 1; }
.aimp-file-name { font-size: var(--t-13); font-weight: 500; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aimp-file-meta { font-size: var(--t-11); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.aimp-question { font-size: var(--t-12); font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.04em; margin-top: var(--s4); }
.aimp-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); }
.aimp-kind {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr; column-gap: var(--s8); row-gap: 2px; align-items: center;
  padding: var(--s12); border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface);
  transition: border-color var(--dt-fast), background var(--dt-fast);
}
.aimp-kind > svg { color: var(--ink-3); }
.aimp-kind-name { font-size: var(--t-13); font-weight: 600; color: var(--ink-1); }
.aimp-kind-hint { grid-column: 1 / -1; font-size: var(--t-11); line-height: 1.4; color: var(--ink-3); }
.aimp-kind:hover { border-color: var(--line-strong); }
.aimp-kind:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.aimp-kind.is-on { border-color: var(--accent); background: var(--accent-dim); }
.aimp-kind.is-on > svg { color: var(--accent); }
.aimp-kind:disabled { cursor: default; opacity: 0.6; }
.aimp-meeting { display: flex; flex-direction: column; gap: var(--s8); padding-top: var(--s4); }
.aimp-when { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); }
.aimp-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.aimp-field > span { font-size: var(--t-11); font-weight: 500; color: var(--ink-3); }
.aimp-field .form-select, .aimp-field .form-input { width: 100%; min-width: 0; }
.aimp-hint { display: flex; align-items: center; gap: 4px; font-size: var(--t-11); line-height: 1.4; color: var(--ink-3); margin-top: -2px; }
.aimp-hint--ok { color: var(--ok); }
.aimp-hint > svg { flex-shrink: 0; }
.aimp-warn { font-size: var(--t-12); line-height: 1.45; color: var(--warn); background: var(--warn-dim); padding: var(--s8) var(--s12); border-radius: var(--r1); }
.aimp-progress { position: relative; height: 24px; border-radius: var(--r1); background: var(--bg-inset); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.aimp-progress-bar { position: absolute; inset: 0 auto 0 0; background: var(--accent-dim); transition: width 200ms linear; }
.aimp-progress > span { position: relative; font-size: var(--t-11); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.aimp-footer .aimp-plain { margin-right: auto; color: var(--ink-3); }
@media (max-width: 520px) {
  .aimp-kinds, .aimp-when { grid-template-columns: 1fr; }
  .aimp-footer { flex-wrap: wrap; }
}

/* A meeting with several transcripts (Speakr's, the recorder's, uploaded audio): one button each. */
.meeting-actions { flex-wrap: wrap; row-gap: 2px; }
.meeting-transcript { display: inline-flex; align-items: center; gap: 2px; }
.meeting-transcript-btn--failed { display: inline-flex; align-items: center; gap: 2px; font-size: var(--t-12); color: var(--err); }

/* An audio document's transcript, under its name. */
.docs-transcript {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; width: fit-content;
  font-size: var(--t-11); font-weight: 500; color: var(--accent); margin-top: 1px;
}
.docs-transcript:hover { text-decoration: underline; }
.docs-transcript--pending { cursor: default; font-weight: 400; font-style: italic; color: var(--ink-3); }
.docs-transcript--pending:hover, .docs-transcript--failed:hover { text-decoration: none; }
.docs-transcript--failed { cursor: default; font-weight: 400; color: var(--err); }
.docs-register-table td .docs-transcript { display: flex; margin-left: 18px; }

/* [Proposition: documents] Adding files and links from the side panel's Documents card. */
.docs-summary-add { display: flex; flex-direction: column; gap: 6px; margin-top: var(--s8, 8px); padding-top: var(--s8, 8px); border-top: 1px solid var(--line); }
.docs-summary-add .docs-link-form { flex-direction: column; align-items: stretch; }
.docs-summary-add .docs-link-form .form-input { flex: 0 0 auto; }
/* The register as a card of its own (Aperçu, before Execution): no separator above it. */
.pd-card--docs > .docs-register { border-top: 0; }

/* Transcribing a recording again (transcript window, and beside a failed transcript). */
.transcript-toolbar { display: flex; justify-content: flex-end; margin-bottom: var(--s8); }
.transcript-toolbar .btn { display: inline-flex; align-items: center; gap: 4px; }
.transcript-toolbar { gap: var(--s4); }
.transcript-move { display: flex; flex-direction: column; gap: var(--s4); margin-bottom: var(--s12); padding-bottom: var(--s12); border-bottom: 1px solid var(--line); }
.transcript-move-row { display: flex; gap: var(--s8); align-items: center; flex-wrap: wrap; }
.transcript-move-row .form-select { flex: 1; min-width: 200px; }
.transcript-move-error { color: var(--warn); }
.redo-transcript {
  display: flex; flex-direction: column; gap: var(--s8);
  margin-bottom: var(--s12); padding: var(--s12);
  background: var(--bg-inset); border-radius: var(--r1);
}
.redo-transcript-dialog .redo-transcript { margin-bottom: 0; background: none; padding: 0; }
.redo-transcript-help { font-size: var(--t-13); color: var(--ink-2); line-height: 1.5; }
.redo-transcript-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s8); font-size: var(--t-12); color: var(--ink-2); }
.redo-transcript-count { width: 88px; flex: 0 0 auto; }
.redo-transcript-hint { font-size: var(--t-11); color: var(--ink-3); }
.redo-transcript-actions { display: flex; flex-wrap: wrap; gap: var(--s8); }
.docs-transcript-failed { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s8); }
.docs-register-table td .docs-transcript-failed { display: flex; margin-left: 18px; }
.docs-register-table td .docs-transcript-failed .docs-transcript { margin-left: 0; }

/* ============================================
   HOME — Accueil (my tasks by project, the projects I sponsor)
   Built from the app's own pieces: task cards as on the boards, pd-card
   blocks as on the project page, meetings and activity as in the Chronologie.
   ============================================ */

.home-page { max-width: 1480px; }
.home-sections { display: flex; flex-direction: column; gap: var(--s32); }
.home-section { display: flex; flex-direction: column; gap: var(--s12); }
.home-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px var(--s12); }
.home-section-head .section-label { margin: 0; }
.home-section-summary { font-size: var(--t-13); color: var(--ink-2); }
.home-spacer { flex-grow: 1; }
.home-code { font-family: var(--font-mono); font-size: var(--t-11); color: var(--ink-3); flex-shrink: 0; }
.home-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.home-meta { font-size: var(--t-11); color: var(--ink-3); }
.home-muted { color: var(--ink-3); font-size: var(--t-13); margin: 0; }
.home-late { color: var(--err); font-weight: 600; }
.home-link-btn {
  background: none; border: 0; padding: 0; font: inherit; font-size: var(--t-12);
  color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.home-link-btn:hover { color: var(--ink-1); }
.home-more-link {
  display: inline-flex; align-items: center; gap: var(--s4); flex-shrink: 0;
  font-size: var(--t-12); font-weight: 500; color: var(--accent); text-decoration: none;
}
.home-more-link:hover { color: var(--ink-1); }
.home-empty-actions { display: flex; gap: var(--s8); justify-content: center; margin-top: var(--s12); }
.home-show-all { align-self: flex-start; }
.home-message { padding: var(--s24); font-size: var(--t-13); color: var(--ink-2); display: flex; justify-content: center; }
.home-message--loading { min-height: 480px; align-items: center; }
/* A count, as in a board column's header. */
.home-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; flex-shrink: 0;
  font-family: var(--font-mono); font-size: var(--t-10); font-weight: 500; color: var(--ink-2);
  background: var(--bg-inset); border: 1px solid var(--line); border-radius: var(--r1);
}

/* Name tags: initials in a square, in the accent colour. */
.home-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.home-tag {
  display: inline-grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0;
  border-radius: var(--r1); background: var(--accent); color: #fff; border: 1px solid var(--accent);
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; line-height: 1;
}
.home-tag--lg { width: 36px; height: 36px; font-size: var(--t-12); }
.home-tag--more { background: var(--bg-inset); color: var(--ink-2); border-color: var(--line); width: auto; padding: 0 5px; }
/* Dark mode: tinted like the accent buttons (white on a light accent is illegible). */
[data-theme="dark"] .home-tag:not(.home-tag--more) { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }

/* Progress bars */
.home-progress { display: flex; align-items: center; gap: var(--s8); font-size: var(--t-11); color: var(--ink-2); }
.home-progress-track { flex-grow: 1; height: 6px; background: var(--bg-inset); border-radius: var(--r-full); overflow: hidden; display: block; }
.home-progress-track--thin { flex-grow: 0; width: 100%; height: 3px; }
.home-progress-fill { display: block; height: 100%; background: var(--accent); transition: width var(--dt-mid) var(--ease); }

/* Health of a project in Execution */
.home-health { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-12); color: var(--ink-1); min-width: 0; }
.home-health strong { font-weight: 600; }
.home-health .home-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-health-dot { width: 8px; height: 8px; border-radius: var(--r-full); flex-shrink: 0; background: var(--line-strong); }
.home-health-dot.is-green { background: var(--ok); }
.home-health-dot.is-orange { background: var(--warn); }
.home-health-dot.is-red { background: var(--err); }

/* A task's status: a pill (a select on my own tasks), and the same as a small mark. */
.home-status {
  position: relative; display: inline-flex; align-items: center; gap: 5px; height: 22px; max-width: 100%;
  padding: 0 8px; font-size: var(--t-11); font-weight: 600; white-space: nowrap;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r2);
}
.home-status > i, .home-dot { width: 6px; height: 6px; flex-shrink: 0; background: currentColor; }
.home-status.is-doing { color: var(--accent); background: var(--accent-dim); border-color: var(--accent-mid); }
.home-status.is-blocked { color: var(--err); background: var(--err-dim); border-color: var(--err); }
.home-status.is-backlog { color: var(--ink-3); border-style: dashed; }
.home-status.is-done { color: var(--ok); background: var(--ok-dim); border-color: var(--ok); }
.home-status.is-editable { padding-right: 6px; cursor: pointer; }
.home-status.is-editable:hover { border-color: var(--accent); }
.home-status.is-editable:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.home-status select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; outline: none;
  font: inherit; color: inherit; padding: 0 16px 0 0; margin-right: -14px; cursor: pointer; min-width: 0;
}
.home-status select option { color: var(--ink-1); background: var(--surface); font-weight: 400; }
.home-status svg { pointer-events: none; flex-shrink: 0; }
.home-dot { background: var(--line-strong); transform: translateY(-1px); }
.home-dot.is-doing { background: var(--accent); }
.home-dot.is-blocked { background: var(--err); }
.home-dot.is-backlog { background: transparent; border: 1px solid var(--ink-3); }
.home-done-btn { gap: 4px; }
.home-done-btn:hover:not(:disabled) { color: var(--ok); border-color: var(--ok); }

/* A task card as on the boards, sized to its content. */
.task-card.task-card--mini {
  width: auto; height: auto; min-height: 0; padding: 10px 12px; overflow: visible;
  cursor: default; user-select: text;
}
.task-card--mini.task-card--blocked { min-height: 0; }
.task-card--mini .task-card-title { padding-right: var(--s16); color: var(--ink-1); text-decoration: none; -webkit-line-clamp: 3; }
/* The ⓘ that opens the side pane, as on the boards; also shown on keyboard focus. */
.task-card--mini .project-card-info { top: 6px; right: 6px; }
.task-card--mini:focus-within .project-card-info { opacity: 1; }
.task-card--mini span.task-card-title { cursor: default; color: var(--ink-3); }
.task-card--mini a.task-card-title:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.task-card--mini .task-card-meta { justify-content: flex-start; flex-wrap: wrap; gap: 4px 10px; padding-top: 8px; }
.task-card--mini .task-card-assignee { max-width: 180px; }
.task-card-todos { display: inline-flex; align-items: center; gap: 3px; font-size: var(--t-11); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.task-card-foot {
  display: flex; align-items: center; gap: 6px; margin: 10px -12px -10px; padding: 6px 8px 6px 12px;
  border-top: 1px solid var(--line); background: var(--bg);
}
.task-card--blocked .task-card-foot { margin-left: -12px; }

/* ── Mes tâches: one column per project, its tasks as cards ── */
.home-task-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s12); }
.home-tcol {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--bg-inset); border: 1px solid var(--line); border-radius: var(--r2);
}
/* Every head has the same two lines (project; milestone and progress), so cards line up across columns. */
.home-tcol-head { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.home-tcol-title-row { display: flex; align-items: baseline; gap: var(--s8); min-width: 0; }
.home-tcol-stage { flex-shrink: 0; white-space: nowrap; }
.home-tcol-title {
  flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--t-13); font-weight: 600; color: var(--ink-1); text-decoration: none;
}
.home-tcol-title:hover { color: var(--accent); }
.home-tcol-ms { display: flex; flex-direction: column; justify-content: center; gap: 4px; height: 25px; }
.home-tcol-ms-row { display: flex; align-items: center; gap: 6px; font-size: var(--t-12); color: var(--ink-2); min-width: 0; }
.home-tcol-ms-row svg { flex-shrink: 0; color: var(--ink-3); }
.home-tcol-ms-name { flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-tcol-ms-row .home-mono { font-size: var(--t-11); color: var(--ink-3); }
.home-tcol-foot { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.home-tcol-note { display: flex; align-items: center; gap: 6px; font-size: var(--t-11); color: var(--ink-2); min-width: 0; }
.home-tcol-note svg { flex-shrink: 0; color: var(--ink-3); }
.home-tcol-note span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-tcol-body { display: flex; flex-direction: column; gap: var(--s8); padding: var(--s8); flex-grow: 1; }
.home-tcol-more {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
  padding: 6px 8px; font: inherit; font-size: var(--t-12); color: var(--ink-2); cursor: pointer;
  background: transparent; border: 1px dashed var(--line-strong); border-radius: var(--r1);
  transition: color var(--dt-fast) var(--ease), border-color var(--dt-fast) var(--ease), background var(--dt-fast) var(--ease);
}
.home-tcol-more:hover { color: var(--accent); border-color: var(--accent); background: var(--surface); }
.home-tcol-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ── Mes projets sponsorisés: one dense strip of tabs, then the selected project ── */
/* Each group's edge colour; the section head shows them as its legend. */
.home-ptab--running, .home-plegend-item--running, .home-tcol--running { --group-edge: var(--accent); }
.home-ptab--planning, .home-plegend-item--planning, .home-tcol--planning { --group-edge: color-mix(in srgb, var(--accent) 38%, transparent); }
.home-ptab--preparing, .home-plegend-item--preparing, .home-tcol--preparing { --group-edge: var(--line-strong); }
.home-ptab--blocked, .home-plegend-item--blocked, .home-tcol--blocked { --group-edge: var(--err); }
/* Mes tâches: a column's group shows as its head's top edge, as the tabs' left edge below. */
.home-tcol[class*='home-tcol--'] .home-tcol-head { box-shadow: inset 0 3px 0 var(--group-edge); }
.home-plegend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.home-plegend-item { display: inline-flex; align-items: center; gap: 6px; }
.home-plegend-item i { width: 3px; height: 12px; border-radius: 1px; background: var(--group-edge); }
/* Tabs in a grid; each tab draws its own lines, so an unfilled cell stays plain. */
.home-ptabs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r1); overflow: hidden;
}
.home-ptab {
  display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: left; padding: 8px 12px 9px 14px;
  border: 0; background: var(--surface); color: var(--ink-2); font: inherit; cursor: pointer;
  box-shadow: inset 3px 0 0 var(--group-edge, transparent), 1px 0 0 var(--line), 0 1px 0 var(--line);
  transition: background var(--dt-fast) var(--ease);
}
.home-ptab--preparing { background: var(--bg-inset); }
.home-ptab:hover { background: var(--bg); }
.home-ptab.is-active {
  background: var(--accent-dim);
  box-shadow: inset 0 3px 0 var(--accent), inset 3px 0 0 var(--group-edge, transparent), 1px 0 0 var(--line), 0 1px 0 var(--line);
}
.home-ptab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.home-ptab-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s8); }
.home-ptab .home-code { font-size: var(--t-11); }
.home-ptab-top .home-mono { font-size: var(--t-11); color: var(--ink-3); white-space: nowrap; }
/* The full name, on as many lines as it needs. */
.home-ptab-title { font-size: var(--t-13); font-weight: 600; line-height: 1.35; color: var(--ink-1); overflow-wrap: anywhere; }
.home-ptab--preparing .home-ptab-title { color: var(--ink-2); }
.home-ptab-meta { display: flex; align-items: center; margin-top: auto; padding-top: 2px; min-height: 16px; font-size: var(--t-11); color: var(--ink-3); }
.home-ptab-meta .home-health { font-size: var(--t-11); }
.home-ptab-blocked { display: inline-flex; align-items: center; gap: 4px; color: var(--err); font-weight: 600; }
.home-phead-blocked { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 6px 10px; border-left: 3px solid var(--err); background: var(--err-dim); color: var(--ink-1); font-size: var(--t-13); white-space: pre-line; }
.home-phead-blocked svg { flex-shrink: 0; margin-top: 3px; color: var(--err); }

.home-sponsor-detail { min-width: 0; margin-top: var(--s16); }
.home-pdetail { display: flex; flex-direction: column; gap: var(--s16); transition: opacity var(--dt-mid) var(--ease); }
.home-pdetail.is-loading { opacity: 0.55; }

/* What the project is about */
.home-phead-main { display: flex; flex-direction: column; gap: 10px; padding: var(--s16) var(--s20); }
.home-phead-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s8) var(--s12); }
.home-phead-title { margin: 0; font-size: var(--t-20); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink-1); }
.home-goal { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); max-width: 900px; }
.home-goal p, p.home-goal { margin: 0; font-size: var(--t-14); line-height: 1.55; color: var(--ink-2); white-space: pre-line; }
.home-goal p.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
p.home-goal.home-muted { color: var(--ink-3); font-size: var(--t-13); }
.home-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.home-fact { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px var(--s20); border-right: 1px solid var(--line); }
.home-fact:last-child { border-right: 0; }
.home-fact dt { font-size: var(--t-10); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.home-fact dd { margin: 0; font-size: var(--t-13); font-weight: 600; color: var(--ink-1); overflow-wrap: anywhere; }
.home-fact dd.home-mono { font-weight: 500; font-size: var(--t-12); }

/* Before Planning: where the project stands */
.home-stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.home-stepper li {
  flex: 1 1 0; min-width: 104px; display: flex; align-items: center; gap: var(--s8);
  padding: 10px var(--s8) 4px 0; border-top: 3px solid var(--line); font-size: var(--t-12); color: var(--ink-3);
}
.home-stepper li + li { padding-left: var(--s8); }
.home-stepper li.is-done { border-top-color: var(--ok); color: var(--ink-2); }
.home-stepper li.is-current { border-top-color: var(--accent); color: var(--ink-1); font-weight: 600; }
.home-stepper-num {
  display: inline-grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0;
  font-family: var(--font-mono); font-size: var(--t-11); border: 1px solid var(--line-strong); border-radius: var(--r1);
}
.home-stepper li.is-done .home-stepper-num { color: var(--ok); border-color: var(--ok); }
.home-stepper li.is-current .home-stepper-num { color: var(--surface); background: var(--accent); border-color: var(--accent); }

/* The cards under the planning */


/* Who does what */
.home-people { display: flex; flex-direction: column; gap: var(--s8); }
.home-person {
  display: flex; gap: 10px; padding: 10px var(--s12);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2);
  transition: border-color var(--dt-fast) var(--ease);
}
.home-person:hover { border-color: var(--line-strong); }
.home-person-main { display: flex; flex-direction: column; gap: 3px; flex-grow: 1; min-width: 0; }
.home-person-name { display: flex; align-items: center; gap: var(--s8); font-size: var(--t-15); font-weight: 600; color: var(--ink-1); }
.home-person .home-meta { font-size: var(--t-13); color: var(--ink-2); }
.home-person-name > span:first-child { flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-person-idle { margin-top: 4px; font-size: var(--t-13); color: var(--ink-3); }
.home-person-tasks { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 6px; }
.home-person-tasks li { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: var(--t-14); line-height: 1.4; color: var(--ink-2); }
.home-person-tasks li.home-meta { font-size: var(--t-13); }
.home-person-tasks a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-1); text-decoration: none; }
.home-person-tasks a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.home-person-tasks .home-muted { font-size: var(--t-14); }

/* Meetings as in the Chronologie */
.home-meetings .meetings-group-label { margin-top: 0; }
.home-meetings .meetings-group + .meetings-group { margin-top: var(--s16); }
.home-meetings .meeting-subject { max-width: none; }
.home-meetings .meeting-item { padding-top: 6px; padding-bottom: 6px; }
.home-meetings-none { margin: 0 0 var(--s16); font-size: var(--t-12); }

/* Latest news on the Chronologie's activity line */
.home-feed { padding: var(--s8) var(--s16) var(--s12); }

/* ── The planning axis, with the Gérance calendar's marks (.cal-bar, .cal-chip, .cal-rail, .cal-today-line) ── */
.home-spine-body { padding: var(--s12) var(--s16) var(--s16); }
.home-spine { display: flex; flex-direction: column; gap: var(--s12); }
.home-spine-legend.tl-legend { margin-bottom: 0; gap: 6px var(--s16); }
.home-spine-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r1); }
.home-spine-canvas { position: relative; }
.home-spine-month { position: absolute; top: 0; border-left: 1px solid var(--line-strong); pointer-events: none; }
.home-spine-month span {
  position: absolute; top: 4px; left: 6px; white-space: nowrap;
  font-size: var(--t-11); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3);
}
/* A Gérance bar that is a button here (it focuses the milestone below). */
.home-spine-bar { padding: 0; font: inherit; text-align: left; color: inherit; }
.home-spine-bar .cal-bar-pattern { display: block; }
.home-spine-bar:hover { box-shadow: var(--shadow-sm); }
.home-spine-bar.is-focused { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); z-index: 2; }
.home-spine-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.home-spine-bar-count { flex-shrink: 0; padding-right: 4px; font-family: var(--font-mono); font-size: var(--t-10); color: var(--ink-2); }
/* A meeting still to come: the same chip, outlined dashed. */
.cal-chip.is-upcoming { border-style: dashed; border-color: var(--accent); box-shadow: none; background: var(--surface); }
.home-spine-undated { font-size: var(--t-12); color: var(--ink-3); }
.home-spine-empty { font-size: var(--t-13); color: var(--ink-3); padding: var(--s8) 0; }

@media (max-width: 960px) {
  .home-fact { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Admin › Journal (ChangeJournal): every change, by hand (Manuel), via MCP or Slack. */
.journal { display: flex; flex-direction: column; gap: var(--s12); }
.journal-toolbar { justify-content: space-between; flex-wrap: wrap; gap: var(--s8); }
.journal-field { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-12, 12px); color: var(--ink-3); }
.journal-field .form-input { height: 30px; padding: 0 8px; font-size: var(--t-12, 12px); }
.journal-project { width: 80px; font-family: var(--font-mono); }
.journal-error { color: var(--err); }
.journal-table td { vertical-align: top; }
.journal-col-when { white-space: nowrap; width: 1%; }
.journal-col-when svg { display: inline-block; vertical-align: -1px; margin-right: 4px; color: var(--ink-3); }
.journal-row { cursor: pointer; }
.journal-row.is-open td { background: var(--accent-dim); }
.journal-via { white-space: nowrap; }
.journal-via--web { color: var(--ink-2); }
.journal-via--mcp { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.journal-what { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s8); }
.journal-action { font-weight: 600; }
.journal-code { font-family: var(--font-mono); font-size: var(--t-11, 11px); font-weight: 600; color: var(--accent); }
.journal-entity { color: var(--ink-2); }
.journal-summary { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; font-size: var(--t-12, 12px); color: var(--ink-3); }
.journal-detail td { background: var(--bg-inset); }
/* A project's « Journal » tab: the summary band and « Fait par le PMO ». */
.journal-summary-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s8); }
.journal-stat { display: flex; flex-direction: column; gap: 2px; padding: var(--s8) var(--s12); border: 1px solid var(--line); border-radius: 8px; background: var(--bg-inset); min-width: 0; }
.journal-stat.is-warn { border-color: var(--warn); background: var(--warn-dim); }
.journal-stat-value { font-size: 20px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.journal-stat-value--date { font-size: 15px; }
.journal-stat-label { font-size: var(--t-12, 12px); color: var(--ink-3); }
.journal-by-pmo { margin-left: 6px; border-color: var(--warn); color: var(--warn); font-size: 10px; white-space: nowrap; }
.journal-changes { margin: var(--s8) 0; background: var(--surface); }
.journal-changes td { word-break: break-word; max-width: 420px; }
.journal-request pre { margin-top: var(--s8); max-height: 280px; overflow: auto; padding: var(--s8); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r1); font-size: var(--t-11, 11px); }
.journal-approval { margin-top: 4px; white-space: nowrap; }

/* ── Boîte de réception › Changements MCP (components/changeSets/ChangeSetsReview.tsx) ── */
.cs-intro { max-width: 760px; margin-bottom: var(--s12); }
.cs-card { cursor: default; }
.cs-card:hover { border-color: var(--line); box-shadow: none; }
.cs-card.is-open { border-color: var(--accent); }
.cs-card-head { display: flex; align-items: center; gap: var(--s8); width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.cs-card-head svg { flex-shrink: 0; color: var(--ink-3); }
.cs-card-head .inbox-card-name { flex: 1; min-width: 0; }
.cs-meta { margin-top: var(--s8); padding-left: 22px; }
.cs-status { white-space: nowrap; }
.cs-status--open, .cs-status--submitted { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.cs-status--applied { border-color: var(--ok); color: var(--ok); }
.cs-status--partly_applied, .cs-status--failed { border-color: var(--warn); color: var(--warn); }
.cs-status--rejected, .cs-status--discarded { color: var(--ink-3); }
.cs-body { margin-top: var(--s12); padding-left: 22px; }
.cs-summary { white-space: pre-wrap; font-size: var(--t-13); color: var(--ink-1); line-height: 1.5; margin-bottom: var(--s8); }
.cs-open-note { margin-bottom: var(--s8); }
.cs-items { list-style: none; margin: var(--s8) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s8); }
.cs-item { border: 1px solid var(--line); border-radius: var(--r1); padding: var(--s8) var(--s12); background: var(--surface); }
.cs-item--conflict, .cs-item--failed { border-color: var(--warn); }
.cs-item--applied { border-left: 3px solid var(--ok); }
.cs-item--rejected, .cs-item--withdrawn { opacity: 0.6; }
.cs-item-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s8); }
.cs-check { margin: 0; transform: translateY(1px); cursor: pointer; }
.cs-check-gap { display: inline-block; width: 13px; }
.cs-seq { font-family: var(--font-mono); font-size: var(--t-11, 11px); color: var(--ink-3); }
.cs-op { font-weight: 600; }
.cs-target { color: var(--ink-2); }
.cs-new { font-size: var(--t-11, 11px); text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); font-weight: 600; }
.cs-item-status--applied { border-color: var(--ok); color: var(--ok); }
.cs-item-status--failed, .cs-item-status--conflict { border-color: var(--warn); color: var(--warn); }
.cs-changes { margin: var(--s8) 0 0 21px; width: calc(100% - 21px); background: var(--surface); }
.cs-changes td { word-break: break-word; max-width: 380px; vertical-align: top; white-space: pre-wrap; }
.cs-changes td:first-child { width: 22%; color: var(--ink-3); }
.cs-before { color: var(--ink-3); }
.cs-after { color: var(--ink-1); font-weight: 500; }
.cs-values { margin: var(--s8) 0 0 21px; display: grid; grid-template-columns: max-content 1fr; gap: 2px var(--s12); font-size: var(--t-12, 12px); }
.cs-values > div { display: contents; }
.cs-values dt { color: var(--ink-3); }
.cs-values dd { margin: 0; color: var(--ink-1); white-space: pre-wrap; word-break: break-word; }
.cs-live { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; margin: var(--s8) 0 0 21px; font-size: var(--t-12, 12px); }
.cs-live svg { flex-shrink: 0; transform: translateY(2px); }
.cs-live ul { flex-basis: 100%; margin: 2px 0 0 18px; padding: 0; }
.cs-live--conflict, .cs-live--error { color: var(--warn); }
.cs-live--waiting { color: var(--ink-3); }
.cs-live--ok { color: var(--ok); }
.cs-message { margin-top: var(--s12); }
.cs-message--ok { color: var(--ok); }
.cs-message--err { color: var(--warn); }
.cs-footer { margin-top: var(--s12); padding-top: var(--s12); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s8); }
.cs-select { display: flex; gap: var(--s4); }
.cs-note { width: 100%; max-width: 640px; resize: vertical; font-size: var(--t-13); }
.cs-actions { display: flex; align-items: center; gap: var(--s8); flex-wrap: wrap; }
@media (max-width: 640px) {
  .cs-card-head { flex-wrap: wrap; }
  .cs-card-head .inbox-card-name { flex-basis: calc(100% - 22px); }
  .cs-card-head .cs-status { margin-left: 22px; }
  .cs-meta, .cs-body { padding-left: 0; }
  .cs-changes, .cs-values, .cs-live { margin-left: 0; width: 100%; }
}



/* A file dragged over a project page: where it goes (ProjectFileDrop). */
.file-drop-overlay {
  position: fixed; inset: 0; z-index: 900; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim);
  border: 3px dashed var(--accent);
}
.file-drop-card {
  display: flex; flex-direction: column; align-items: center; gap: var(--s8);
  max-width: min(420px, calc(100vw - 32px)); padding: var(--s16) var(--s24);
  background: var(--surface); color: var(--ink-1); border: 1px solid var(--line);
  border-radius: var(--r1); box-shadow: var(--shadow-md);
  font-weight: 600; text-align: center;
}
.file-drop-status {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 900;
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: var(--r1);
  background: var(--ink-1); color: var(--surface);
  box-shadow: var(--shadow-md); font-size: var(--t-14);
}

/* Task board as a shared sheet (live/BoardLive.tsx): my selected card, the
   others' selections framed in their colour with their name, a title typed in
   the card, and a card someone else just changed lighting up. */
[data-dnd-draggable][data-selected] > .task-card { outline: 2px solid var(--accent); outline-offset: 1px; }
[data-dnd-draggable][data-live-framed="person"] { outline: 2px solid hsl(var(--live-hue, 210) 55% 45%); outline-offset: 2px; border-radius: var(--r1); }
[data-dnd-draggable][data-live-framed="flash"] > .task-card { animation: live-card-flash 4s ease-out; }
@keyframes live-card-flash {
  0%, 30% { box-shadow: 0 0 0 3px hsl(var(--live-hue, 210) 55% 45% / 0.7); background: hsl(var(--live-hue, 210) 60% 50% / 0.14); }
  100% { box-shadow: 0 0 0 0 transparent; background: var(--surface); }
}
.live-flags { position: absolute; top: -9px; left: 8px; display: inline-flex; gap: 4px; z-index: 3; pointer-events: none; max-width: calc(100% - 16px); }
.live-flag {
  background: hsl(var(--live-hue, 210) 55% 42%); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; padding: 0 6px;
  border-radius: 4px 4px 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live-flag--flash { animation: live-flag-fade 4s forwards; }
@keyframes live-flag-fade { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
.task-card-title-input {
  display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 0 var(--s16) 0 0;
  font: inherit; font-weight: 500; font-size: var(--t-13); line-height: 1.4; color: var(--ink-1);
  background: transparent; border: none; outline: none; resize: none; overflow: hidden; cursor: text;
}
.task-card-title--remote { color: hsl(var(--live-hue, 210) 55% 38%); cursor: default; }
.live-caret { display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: text-bottom; background: hsl(var(--live-hue, 210) 55% 42%); animation: live-caret-blink 1s steps(2, start) infinite; }
@keyframes live-caret-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  [data-dnd-draggable][data-live-framed="flash"] > .task-card, .live-flag--flash, .live-caret { animation: none; }
}

/* Document versions (proposals/documents/versions.tsx): "v3" beside a file,
   the list of versions, the editor button, and what became of a version. */
.doc-version-chip {
  display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0;
  margin-left: var(--s4); padding: 0 6px; height: 18px; border-radius: 9px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-3);
  font-size: var(--t-11); font-weight: 600; cursor: pointer; vertical-align: middle;
}
.doc-version-chip:hover { color: var(--accent); border-color: var(--accent); }
.doc-version-chip--static { cursor: default; }
.doc-version-chip--static:hover { color: var(--ink-3); border-color: var(--line); }
.docs-edit-btn { flex-shrink: 0; width: 22px; height: 22px; background: transparent; color: var(--ink-3); }
.docs-edit-btn:hover:not(:disabled) { background: transparent; color: var(--accent); }
.docs-attach-col .docs-edit-btn { vertical-align: top; }
.doc-version-notice p { margin: 0 0 var(--s8); font-size: var(--t-13); color: var(--ink-2); line-height: 1.5; }
.doc-version-notice p:last-child { margin-bottom: 0; }
.doc-versions { list-style: none; margin: 0; padding: 0; }
.doc-version { display: flex; align-items: center; gap: var(--s8); padding: var(--s8) 0; border-bottom: 1px solid var(--line); }
.doc-version:last-child { border-bottom: 0; }
.doc-version-n { flex-shrink: 0; width: 32px; font-weight: 700; color: var(--ink-2); font-size: var(--t-13); }
.doc-version-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.doc-version-what { font-size: var(--t-13); color: var(--ink-1); }
.doc-version-tag {
  margin-left: var(--s4); padding: 0 5px; border-radius: 4px; font-size: var(--t-11);
  background: var(--accent); color: var(--surface);
}
.doc-versions-error { color: var(--err); margin: 0; }

/* The editor window (pages/DocumentEditorPage.tsx): a bar, then the editor filling the rest. */
.doc-editor { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--surface); }
.doc-editor-bar {
  display: flex; align-items: center; gap: var(--s8); flex-wrap: wrap;
  padding: var(--s8) var(--s16); border-bottom: 1px solid var(--line); background: var(--surface);
}
.doc-editor-name { font-weight: 700; color: var(--ink-1); font-size: var(--t-14); min-width: 0; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-editor-status { color: var(--ink-3); font-size: var(--t-13); }
.doc-editor-status.is-error { color: var(--err); }
.doc-editor-people { display: flex; gap: var(--s4); margin-left: auto; }
.doc-editor-banner {
  display: flex; align-items: center; gap: var(--s8); flex-wrap: wrap;
  padding: var(--s4) var(--s16); font-size: var(--t-13); color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.doc-editor-banner--newer { color: var(--ink-1); font-weight: 600; }
.doc-editor-banner--quiet { color: var(--ink-3); }
.doc-editor-main { position: relative; flex: 1; min-height: 0; }
.doc-editor-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.doc-editor-message { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--s16); color: var(--ink-2); text-align: center; }

/* Project documents as the project's Seafile library holds them
   (proposals/documents/DocumentsFolders.tsx): crumbs, folders, files, and what
   stays in PMO. Rows wrap their actions on narrow screens. */
.docs-view-switch { margin-bottom: var(--s8); }
.pd-card .docs-register > .docs-view-switch { order: 2; margin: 0; }
.pd-card .docs-register > .docs-folders { order: 3; flex: 1 1 100%; }
.docs-folders { position: relative; display: flex; flex-direction: column; gap: var(--s8); min-width: 0; border-radius: var(--r1); }
.docs-folders.is-files-over { outline: 2px dashed var(--accent); outline-offset: 4px; background: var(--accent-dim); }
.docs-folders-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s4) var(--s12); }
.docs-folders-lib { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: var(--s8); min-width: 0; }
.docs-folders-lib-name { font-weight: 600; color: var(--ink-1); font-size: var(--t-13); overflow-wrap: anywhere; }
.docs-folders-open { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-12); color: var(--accent); }
.docs-folders-warn {
  display: flex; align-items: center; gap: var(--s8); padding: var(--s4) var(--s8);
  border: 1px solid var(--line); border-left: 3px solid var(--warn); background: var(--warn-dim); border-radius: var(--r1);
  font-size: var(--t-12); color: var(--ink-2);
}
.docs-folders-warn--action { justify-content: space-between; }
.docs-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: var(--t-13); }
.docs-crumb-wrap { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
.docs-crumb-sep { color: var(--ink-3); flex-shrink: 0; }
.docs-crumb {
  padding: 2px 6px; border: 1px solid transparent; border-radius: var(--r1); background: none;
  font: inherit; color: var(--accent); cursor: pointer; overflow-wrap: anywhere; text-align: left;
}
.docs-crumb:hover { background: var(--accent-dim); }
.docs-crumb.is-current { color: var(--ink-1); font-weight: 600; cursor: default; }
.docs-crumb.is-current:hover { background: none; }
.docs-crumb.is-drop { border-color: var(--accent); background: var(--accent-dim); }
.docs-folders-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.docs-folder-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r1); min-width: 0; }
.docs-folder-list > div + div { border-top: 1px solid var(--line); }
.docs-folder-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s8); padding: var(--s8); min-width: 0; font-size: var(--t-13); }
.docs-folder-row[draggable="true"] { cursor: grab; }
.docs-folder-row.is-drop { background: var(--accent-dim); box-shadow: inset 0 0 0 2px var(--accent); }
.docs-folder-row--compact { padding: var(--s4) 0; border: 0; }
.docs-folder-icon { flex-shrink: 0; color: var(--ink-3); margin-top: 2px; }
.docs-folder-row--folder .docs-folder-icon { color: var(--accent); }
.docs-folder-main { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.docs-folder-name-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); min-width: 0; }
.docs-folder-open {
  align-self: flex-start; padding: 0; border: 0; background: none; font: inherit; font-weight: 600;
  color: var(--ink-1); cursor: pointer; text-align: left; overflow-wrap: anywhere;
}
.docs-folder-open:hover { color: var(--accent); }
.docs-folder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-left: auto; }
.docs-folder-actions .btn-icon { width: 24px; height: 24px; background: transparent; color: var(--ink-3); }
.docs-folder-actions .btn-icon:hover:not(:disabled) { background: transparent; color: var(--accent); }
.docs-folder-actions .docs-delete-btn:hover:not(:disabled) { color: var(--err); }
.docs-folder-rename { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); min-width: 0; flex: 1 1 auto; }
.docs-folder-rename .form-input { flex: 1 1 160px; min-width: 0; height: 30px; }
.docs-folder-ext { color: var(--ink-3); font-size: var(--t-13); }
.docs-folder-move {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s8);
  padding: var(--s8); background: var(--bg-inset);
}
.docs-folder-move > :nth-child(2) { flex: 1 1 220px; min-width: 0; }
.docs-folders-empty { padding: var(--s12) var(--s8); color: var(--ink-3); font-size: var(--t-13); }
.docs-folders-dropnote { display: flex; align-items: center; gap: var(--s4); padding: var(--s8); color: var(--accent); font-weight: 600; font-size: var(--t-13); }
.docs-folders-section { display: flex; flex-direction: column; gap: 2px; padding-top: var(--s8); border-top: 1px solid var(--line); }
.docs-folders-section-title { font-size: var(--t-12); font-weight: 600; color: var(--ink-2); }
@media (max-width: 480px) {
  .docs-folder-actions { margin-left: 26px; }
}

/* ── Deleting a project: what becomes of its Seafile library (DeleteProjectModal) ── */
.modal.delete-project { max-width: 440px; }
.delete-project-text { margin: 0 0 var(--s8); font-size: var(--t-13); color: var(--ink-2); line-height: 1.5; overflow-wrap: anywhere; }
.delete-project-text:last-child { margin-bottom: 0; }
.delete-project-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.delete-project-error { color: var(--err); }
.delete-project-choices { border: 0; margin: 0 0 var(--s8); padding: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--s8); }
.delete-project-choices legend { padding: 0; margin-bottom: var(--s8); font-size: var(--t-13); font-weight: 600; color: var(--ink-1); }
.delete-project-choice { display: flex; gap: var(--s8); align-items: flex-start; padding: var(--s8) 10px; border: 1px solid var(--line); border-radius: var(--r1); cursor: pointer; }
.delete-project-choice input { margin-top: 3px; accent-color: var(--accent); }
.delete-project-choice span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.delete-project-choice strong { font-size: var(--t-13); font-weight: 600; }
.delete-project-choice small { font-size: var(--t-12); color: var(--ink-3); line-height: 1.4; overflow-wrap: anywhere; }
.delete-project-choice.is-on { border-color: var(--accent); background: var(--bg-inset); }
.delete-project-choice.is-danger.is-on { border-color: var(--err); }
.delete-project-choice.is-danger input { accent-color: var(--err); }
.delete-project-sure { display: flex; gap: var(--s8); align-items: flex-start; font-size: var(--t-13); color: var(--ink-2); cursor: pointer; padding-left: 2px; }
.delete-project-sure input { margin-top: 3px; accent-color: var(--err); }
.delete-project-go:not(:disabled) { color: var(--err); }
.delete-project-go:disabled { opacity: .5; cursor: not-allowed; }

/* DateField: a date with the app's own calendar, which someone following a person sees too. */
.date-field { position: relative; display: inline-flex; align-items: center; width: 100%; min-width: 0; }
.date-field-input { width: 100%; padding-right: 26px; }
.date-field-btn { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); display: inline-flex; padding: 3px; border: 0; border-radius: var(--r1, 4px); background: transparent; color: var(--ink-3); cursor: pointer; }
.date-field-btn:hover:not(:disabled) { color: var(--accent); background: var(--bg); }
.date-field-btn:disabled { cursor: default; opacity: 0.5; }
.date-cal { position: fixed; z-index: 2400; width: 264px; padding: var(--s8, 8px); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r2, 8px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16); font-size: var(--t-13, 13px); color: var(--ink-1); }
.date-cal.is-followed { outline: 2px solid hsl(var(--live-hue, 210) 55% 42%); }
.date-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.date-cal-title { font-weight: 600; text-transform: capitalize; }
.date-cal-nav { display: inline-flex; padding: 4px; border: 0; border-radius: var(--r1, 4px); background: transparent; color: var(--ink-2); cursor: pointer; }
.date-cal-nav:hover:not(:disabled) { background: var(--bg); color: var(--accent); }
.date-cal-nav:disabled { cursor: default; opacity: 0.4; }
.date-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.date-cal-grid--months { grid-template-columns: repeat(3, 1fr); }
.date-cal-weekday { text-align: center; font-size: var(--t-11, 11px); color: var(--ink-3); text-transform: capitalize; padding: 2px 0; }
.date-cal-day { padding: 5px 0; border: 1px solid transparent; border-radius: var(--r1, 4px); background: transparent; color: var(--ink-1); font: inherit; text-align: center; text-transform: capitalize; cursor: pointer; }
.date-cal-day:hover:not(:disabled) { background: var(--bg); border-color: var(--line); }
.date-cal-day:disabled { cursor: default; color: var(--ink-3); }
.date-cal-day.is-other { color: var(--ink-3); }
.date-cal-day.is-today { border-color: var(--line-strong); }
.date-cal-day.is-selected, .date-cal-day.is-selected:disabled { background: var(--accent); border-color: var(--accent); color: #fff; }
.date-cal-foot { display: flex; justify-content: space-between; margin-top: 6px; }

/* A text cut to a few lines with "Lire la suite" (components/ClampedText.tsx):
   the journal's automatic entries and the Accueil's news comments. */
.home-news-text { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tl-act-text.is-open, .home-news-text.is-open { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
.clamped-toggle {
  align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; font-size: var(--t-12);
  color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.clamped-toggle:hover { color: var(--ink-1); }
.task-update-content > .clamped-toggle { display: block; margin-top: 2px; }

/* My calendar: the tasks to plan in a column right of the week (it scrolls on
   its own), under it on narrow screens. */
.mycal-body { flex: 1 1 auto; min-height: 0; display: flex; margin-bottom: var(--s16, 16px); }
.mycal-body > .mycal-board { flex: 1 1 auto; min-width: 0; }
.mycal-body > .mycal-tray { flex: 0 0 var(--mycal-tray-w, 320px); min-width: 0; max-height: none; margin: 0; }
/* Cards one under the other, two (or more) side by side once the list is wide enough. */
.mycal-body > .mycal-tray .mycal-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.mycal-body > .mycal-tray .mycal-tray-item { width: 100%; }
/* On a card: how many people are on the task (responsible + collaborators), when several. */
.mycal-card-people { display: inline-flex; align-items: center; gap: 3px; font-size: var(--t-11, 11px); font-weight: 600; color: var(--ink-3); }

/* Project tabs over the task list, like the sheet tabs of a spreadsheet: the
   chosen one is taller, sits in front and opens onto the list; the others
   tuck behind each other. The strip stays in place while the list scrolls. */
.mycal-tabs {
  position: sticky; top: -12px; z-index: 3;
  margin: 0 -14px 10px; padding: 12px 14px 0;
  background: var(--surface);
}
/* When the projects do not fit, the tabs go on to more rows (ticket #127), packed
   tight: no gap between rows. */
.mycal-tabs-strip {
  display: flex; flex-wrap: wrap; align-items: flex-end; row-gap: 0; min-height: 32px;
  padding: 2px 8px 0 7px;
  overflow: visible;
  background: linear-gradient(var(--line), var(--line)) left bottom / 100% 1px no-repeat;
}
.mycal-tabs-strip::-webkit-scrollbar { display: none; }
.mycal-tabs.has-left .mycal-tabs-strip { -webkit-mask-image: linear-gradient(to right, transparent, #000 22px); mask-image: linear-gradient(to right, transparent, #000 22px); }
.mycal-tabs.has-right .mycal-tabs-strip { -webkit-mask-image: linear-gradient(to left, transparent, #000 22px); mask-image: linear-gradient(to left, transparent, #000 22px); }
.mycal-tabs.has-left.has-right .mycal-tabs-strip { -webkit-mask-image: linear-gradient(to right, transparent, #000 22px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to right, transparent, #000 22px, #000 calc(100% - 22px), transparent); }
.mycal-tab {
  flex: 0 0 auto; position: relative;
  display: inline-flex; align-items: center; gap: 4px;
  height: 23px; margin: 0 0 1px -5px; padding: 0 8px;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 7px 7px 0 0;
  background: var(--bg-inset); color: var(--ink-3);
  font-family: var(--font-mono); font-size: var(--t-11, 11px); font-weight: 600; letter-spacing: 0.01em; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
/* Each row starts with its first tab tucked 5px under the strip's left padding, like the others. */
.mycal-tab--all, .mycal-tab--text { font-family: inherit; letter-spacing: 0; }
.mycal-tab--text .mycal-tab-label { max-width: 74px; overflow: hidden; text-overflow: ellipsis; }
/* Hover never changes a tab's size (that moved the rows and the list below):
   the tab lights up in the accent colour instead. */
.mycal-tab:hover { z-index: 1; color: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 8px color-mix(in srgb, var(--accent) 45%, transparent); }
.mycal-tab.is-active:hover { border-color: var(--line-strong); box-shadow: inset 0 2px 0 var(--accent), 0 -2px 6px rgba(0, 0, 0, 0.08); }
.mycal-tab:focus-visible { z-index: 3; outline: 2px solid var(--accent); outline-offset: -2px; }
/* The chosen tab keeps the same size as the others (a bigger one moved the rows
   and the list below on every click): it shows by its white face, accent text
   and accent bar on top (same weight too: bold text would widen it). */
.mycal-tab.is-active {
  z-index: 2; margin-bottom: 0; height: 24px;
  background: var(--surface); color: var(--accent);
  border-color: var(--line-strong); box-shadow: inset 0 2px 0 var(--accent), 0 -2px 6px rgba(0, 0, 0, 0.08);
  cursor: default;
}
.mycal-tab-dot { display: none; width: 5px; height: 5px; border-radius: 50%; }
.mycal-tab.is-overdue .mycal-tab-dot { display: block; background: var(--err); }
.mycal-tab.is-soon .mycal-tab-dot { display: block; background: var(--tlt-orange); }
/* The chosen project's name, under its tab (it opens the project overview). */
.mycal-tabs-name {
  display: block; width: 100%; padding: 7px 2px 0; border: 0; background: none; text-align: left;
  font-family: inherit; font-size: var(--t-12, 12px); font-weight: 600; line-height: 1.3; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mycal-tabs-name.is-link { cursor: pointer; }
.mycal-tabs-name.is-link:hover { color: var(--ink-1); text-decoration: underline; text-underline-offset: 2px; }
/* A tab's project name, on hover. */
.mycal-tab-tip {
  position: fixed; z-index: 1200; transform: translateX(-50%);
  display: flex; align-items: baseline; gap: 6px;
  max-width: min(300px, calc(100vw - 16px)); padding: 5px 9px;
  border-radius: 6px; background: var(--ink-1); color: var(--surface);
  font-size: var(--t-12, 12px); font-weight: 500; line-height: 1.3;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); pointer-events: none;
  animation: mycal-tab-tip-in 0.1s ease-out;
}
.mycal-tab-tip-code { font-family: var(--font-mono); font-size: var(--t-11, 11px); font-weight: 700; }
.mycal-tab-tip-count { opacity: 0.65; font-weight: 600; }
@keyframes mycal-tab-tip-in { from { opacity: 0; transform: translate(-50%, -3px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .mycal-tab { transition: none; } .mycal-tab-tip { animation: none; } }
@media (max-width: 1000px) {
  .mycal-body { flex-direction: column; gap: var(--s12, 12px); }
  .mycal-resizer { display: none; }
  .mycal-body > .mycal-tray { flex: 0 1 auto; max-height: 34vh; }
  .mycal-body > .mycal-tray .mycal-cards { display: flex; flex-wrap: wrap; }
  .mycal-body > .mycal-tray .mycal-tray-item { width: 300px; max-width: 100%; }
}
/* The list's left edge: drag it to widen or narrow the list (double-click: back to 320px). */
.mycal-resizer {
  flex: 0 0 12px; position: relative; cursor: col-resize; touch-action: none; outline: none;
}
.mycal-resizer::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 5px; width: 2px; border-radius: 1px;
  background: transparent; transition: background var(--dt-fast, 120ms);
}
.mycal-resizer:hover::after, .mycal-resizer:focus-visible::after, .mycal-resizer:active::after { background: var(--accent); }

/* My calendar: the ⓘ next to "Mes tâches à planifier" (a hand: it opens on
   click too) and its bubble, fixed on the page so the list never clips it. */
.mycal-tray-info { cursor: pointer; }
.mycal-hint-tip {
  position: fixed; z-index: 1200; width: max-content; max-width: min(320px, calc(100vw - 16px));
  padding: 8px 10px; border-radius: var(--r1, 6px);
  background: var(--ink-1); color: var(--surface);
  font-size: var(--t-12, 12px); font-weight: 400; line-height: 1.45;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); pointer-events: none;
}
:root[data-theme="dark"] .mycal-hint-tip { color: var(--ink-1); background: var(--bg-inset); border: 1px solid var(--line-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mycal-hint-tip { color: var(--ink-1); background: var(--bg-inset); border: 1px solid var(--line-strong); } }

/* ── Changements (pages/ChangesPage.tsx): Changements MCP + Demandes de modification ──
   A review queue on the left, the open item on the right; on a narrow
   screen the list sits above the item. */
.chg-page-head { margin-bottom: var(--s16); max-width: 820px; }
.chg-eyebrow { margin: 0 0 2px; font-size: var(--t-11); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.chg-page-head .page-title { margin: 0 0 var(--s4); }
.chg-intro { margin: 0; color: var(--ink-2); font-size: var(--t-13); line-height: 1.5; }

/* Two panes of a fixed width that fill the height and scroll by themselves:
   the page never gets a scrollbar of its own, and nothing moves sideways
   whatever is listed or open. */
.content:has(.chg-page) { display: flex; flex-direction: column; }
/* Améliorations PMO: no scroll boxes, the whole page scrolls (Yves 28.11). */
/* Side by side, the open ticket stays in view beside the list and scrolls in its own box, at most a window
   tall, down to its decision; the list scrolls with the page (Yves 28.11). */
/* Its height follows where its top is (--tk-top, measured by TicketsPage: under the page title at first, 16px
   under the top bar once the list is scrolled), so it always ends at the bottom of the window and the bar of
   actions at its foot stays in view. */
.tk-page .chg-detail { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - var(--tk-top, calc(var(--topbar-h, 48px) + 16px)) - var(--dev-env-banner-h, 0px) - 16px); }
/* Four categories on one line: a slightly wider list, labels that never break. */
.tk-page .chg-layout { grid-template-columns: 376px minmax(0, 1fr); }
@container (max-width: 760px) { .tk-page .chg-layout { grid-template-columns: minmax(0, 1fr); } }
.tk-page .chg-segment-btn { flex: 1 1 auto; gap: 4px; padding: 5px 6px; white-space: nowrap; }
@container (max-width: 760px) { .tk-page .chg-detail { position: static; max-height: none; } }
@container (max-width: 760px) { .tk-page .chg-detail { position: static; } }
.chg-page { container-type: inline-size; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chg-page-head { flex-shrink: 0; }
.chg-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: var(--s16); }
.chg-queue { display: flex; flex-direction: column; gap: var(--s8); min-height: 0; overflow-y: auto; scrollbar-gutter: stable; scrollbar-width: thin; }
.chg-queue > * { flex-shrink: 0; }
.chg-queue > .chg-segment { position: sticky; top: 0; z-index: 1; }
/* One column: the list, then the open item under it, in the page's own scroll. */
@container (max-width: 760px) {
  .chg-layout { flex: none; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding-bottom: var(--s20, 20px); }
  .chg-queue { overflow: visible; }
  .chg-queue > .chg-segment { position: static; }
}

.chg-segment { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: var(--r2, 8px); background: var(--bg); }
.chg-segment-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 8px; border: 0; border-radius: calc(var(--r2, 8px) - 2px); background: none; color: var(--ink-2); font: inherit; font-size: var(--t-12); font-weight: 600; cursor: pointer; }
.chg-segment-btn:hover { color: var(--ink-1); }
.chg-segment-btn.is-on { background: var(--surface); color: var(--ink-1); box-shadow: var(--shadow-sm); }
.chg-segment-n { min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--line); color: var(--ink-2); font-size: var(--t-11); line-height: 16px; }
.chg-segment-btn.is-on .chg-segment-n { background: var(--accent); color: #fff; }
@container (max-width: 420px) { .chg-segment { flex-wrap: wrap; } .chg-segment-btn { flex: 1 0 auto; } }
/* One column: the list is the page; no empty panel under it. */
@container (max-width: 760px) { .chg-detail.chg-detail--idle { display: none; } }
.chg-mine { display: flex; align-items: center; gap: 6px; font-size: var(--t-12); color: var(--ink-2); cursor: pointer; }

.chg-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
/* What the assistant has learned from its proposals: a quiet fold under the list. */
.chg-lessons { border-top: 1px solid var(--line); padding-top: var(--s8); font-size: var(--t-12); color: var(--ink-2); }
.chg-lessons-head { display: flex; align-items: center; gap: 6px; width: 100%; padding: 2px 0; border: 0; background: none; color: var(--ink-2); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.chg-lessons-head:hover { color: var(--ink-1); }
.chg-lessons-body { display: flex; flex-direction: column; gap: 6px; padding: 6px 0 0 19px; line-height: 1.45; }
.chg-lessons-body p { margin: 0; color: var(--ink-3); }
.chg-lessons-body ul, .chg-lessons-body ol { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 4px; }
.chg-lessons-body ol { color: var(--ink-1); }
.chg-card { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: var(--s8) var(--s12); border: 1px solid var(--line); border-left: 3px solid transparent; border-radius: var(--r1); background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color 0.12s, background-color 0.12s; }
.chg-card:hover { border-color: var(--line-strong, var(--ink-3)); }
.chg-card.is-waiting { border-left-color: var(--accent); }
.chg-card.is-open { border-color: var(--accent); background: var(--accent-dim, var(--surface)); }
.chg-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chg-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s8); min-width: 0; }
.chg-card-title { flex: 1; min-width: 0; font-weight: 600; font-size: var(--t-13); color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chg-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: var(--t-12); color: var(--ink-3); }
.chg-card-meta strong { color: var(--ink-1); font-weight: 600; }
/* What the request asks, in a few words. */
.chg-card-summary { font-size: var(--t-12); color: var(--ink-1); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.chg-code { flex-shrink: 0; padding: 1px 6px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--t-11); font-weight: 600; color: var(--ink-2); letter-spacing: 0.02em; }
.chg-code--sm { padding: 0 4px; font-size: var(--t-10, 10px); }
.chg-inline-icon { display: inline-block; vertical-align: -2px; }

.chg-pill { flex-shrink: 0; display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: var(--t-11); font-weight: 600; white-space: nowrap; border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); }
.chg-pill--pending, .chg-pill--open, .chg-pill--submitted, .chg-pill--proposed { border-color: var(--accent); color: var(--accent); }
.chg-pill--approved, .chg-pill--applied, .chg-pill--sent { border-color: var(--ok); color: var(--ok); background: var(--ok-dim, transparent); }
.chg-pill--partly_applied, .chg-pill--failed, .chg-pill--conflict { border-color: var(--warn); color: var(--warn); background: var(--warn-dim, transparent); }
.chg-pill--rejected, .chg-pill--discarded, .chg-pill--withdrawn { color: var(--ink-3); }

.chg-empty { display: flex; flex-direction: column; align-items: center; gap: var(--s4); padding: var(--s20, 20px) var(--s12); border: 1px dashed var(--line); border-radius: var(--r1); color: var(--ink-3); text-align: center; }
.chg-empty p { margin: 0; font-size: var(--t-13); }
.chg-empty .chg-note { font-size: var(--t-12); }

.chg-detail { --chg-pad: var(--s20, 20px); min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface); }
@container (max-width: 520px) { .chg-detail { --chg-pad: var(--s12); } }
@container (max-width: 760px) { .chg-detail { overflow: visible; } }
.chg-detail-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s8); min-height: 200px; padding: var(--s16); text-align: center; color: var(--ink-3); font-size: var(--t-13); }
.chg-detail-empty p { margin: 0; min-height: 1.4em; }
.chg-detail-empty svg { opacity: 0.6; }
.chg-detail-head { flex-shrink: 0; position: relative; padding: var(--s16) calc(var(--chg-pad) + 32px) var(--s12) var(--chg-pad); border-bottom: 1px solid var(--line); }
.chg-detail-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; padding: var(--s16) var(--chg-pad); }
.chg-detail-body > :first-child { margin-top: 0; }
@container (max-width: 760px) { .chg-detail-body { flex: none; overflow: visible; } }
.chg-detail-titles { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s8); }
.chg-detail-title { margin: 0; font-size: var(--t-15, 15px); font-weight: 700; color: var(--ink-1); line-height: 1.3; }
.chg-detail-title a { color: inherit; text-decoration: none; }
.chg-detail-title a:hover { text-decoration: underline; }
.chg-detail-meta { margin: var(--s4) 0 0; font-size: var(--t-12); color: var(--ink-3); }
.chg-detail-meta a { color: var(--accent); }
.chg-close { position: absolute; top: var(--s12); right: var(--s12); }
.chg-summary { margin: 0 0 var(--s12); white-space: pre-wrap; font-size: var(--t-13); line-height: 1.55; color: var(--ink-1); }

.chg-h3 { display: flex; align-items: center; gap: 6px; margin: var(--s16) 0 var(--s8); font-size: var(--t-12); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.chg-h3:first-of-type { margin-top: var(--s4); }
.chg-h3--warn { color: var(--warn); }
.chg-note { margin: var(--s8) 0 0; font-size: var(--t-12); color: var(--ink-3); line-height: 1.45; }
.chg-note--ok { color: var(--ok); font-weight: 600; }
.chg-note--err { color: var(--err); }

.chg-callout { display: flex; gap: var(--s8); margin: 0 0 var(--s12); padding: var(--s8) var(--s12); border-radius: var(--r1); border: 1px solid var(--line); background: var(--bg); font-size: var(--t-13); color: var(--ink-1); }
.chg-callout svg { flex-shrink: 0; margin-top: 2px; }
.chg-callout p { margin: 2px 0 0; color: var(--ink-2); font-size: var(--t-12); }
.chg-callout blockquote { margin: var(--s4) 0 0; padding-left: var(--s8); border-left: 2px solid var(--line); color: var(--ink-2); white-space: pre-wrap; }
.chg-callout { flex-wrap: wrap; }
.chg-callout--warn { border-color: var(--warn); background: var(--warn-dim, var(--bg)); }
.chg-callout--warn svg { color: var(--warn); }
.chg-callout--approved { border-color: var(--ok); background: var(--ok-dim, var(--bg)); }
.chg-callout--rejected { border-color: var(--line-strong, var(--line)); }

/* before → after */
.chg-rows { display: flex; flex-direction: column; gap: var(--s12); }
.chg-group-title { margin: 0 0 var(--s4); font-size: var(--t-12); font-weight: 600; color: var(--ink-3); }
.chg-list { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r1); overflow: hidden; }
.chg-row { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: var(--s12); padding: 7px var(--s12); font-size: var(--t-13); }
.chg-row + .chg-row { border-top: 1px solid var(--line); }
.chg-row--block { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
@container (max-width: 520px) { .chg-row { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.chg-field { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; color: var(--ink-2); font-weight: 500; word-break: break-word; }
.chg-values { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
.chg-row--block .chg-values { flex-direction: column; align-items: stretch; }
.chg-before, .chg-after { white-space: pre-wrap; word-break: break-word; }
.chg-before { color: var(--ink-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--err) 55%, transparent); }
.chg-after { color: var(--ink-1); font-weight: 500; }
.chg-row--block .chg-before, .chg-row--block .chg-after { padding: 6px var(--s8); border-radius: 4px; }
.chg-row--block .chg-before { background: var(--err-dim, var(--bg)); text-decoration: none; }
.chg-row--block .chg-after { background: var(--ok-dim, var(--bg)); }
.chg-row--block .chg-arrow { display: none; }
.chg-arrow { color: var(--ink-3); }
.chg-rows--undo .chg-list { border-color: var(--warn); }
.chg-rows--undo .chg-after { color: var(--warn); }
/* A proposal's text corrected in place before applying it (Changements MCP). */
.chg-editable { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; min-width: 0; }
.chg-editable--wide { display: flex; align-items: flex-start; }
.chg-editable--wide > .chg-after { flex: 1 1 auto; min-width: 0; }
.chg-edit-btn { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 1px solid transparent; border-radius: 4px; background: none; color: var(--ink-3); cursor: pointer; flex: none; }
.chg-edit-btn:hover, .chg-edit-btn:focus-visible { color: var(--accent); border-color: var(--line); background: var(--bg); }
.chg-edit-btn:disabled { opacity: 0.5; cursor: default; }
.chg-item:not(:hover):not(:focus-within) .chg-edit-btn { opacity: 0.55; }
.chg-edit { display: flex; flex-direction: column; gap: 6px; width: 100%; min-width: 0; }
.chg-edit-input { width: 100%; font: inherit; font-size: var(--t-13); }
textarea.chg-edit-input { resize: none; }
.chg-edit-buttons { display: flex; align-items: center; gap: 6px; }
.chg-edit-error { color: var(--err); font-size: var(--t-12, 12px); flex-basis: 100%; }
.chg-tag--edited { background: var(--accent-dim, transparent); color: var(--accent); cursor: help; }

/* One item (a milestone, a deliverable…) and its changes. */
.chg-group-body { display: flex; flex-direction: column; gap: var(--s8); }
.chg-itemgroup { border: 1px solid var(--line); border-radius: var(--r1); overflow: hidden; }
.chg-itemgroup-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s8); padding: 7px var(--s12); background: var(--bg); font-size: var(--t-13); font-weight: 600; color: var(--ink-1); }
.chg-itemgroup-name { min-width: 0; overflow-wrap: anywhere; }
.chg-itemgroup .chg-list { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.chg-itemgroup--completed { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.chg-itemgroup--cancelled { border-color: color-mix(in srgb, var(--err) 40%, var(--line)); }
.chg-action { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 1px 8px; border-radius: 999px; font-size: var(--t-11); font-weight: 700; white-space: nowrap; }
.chg-action--completed { background: var(--accent); color: #fff; }
.chg-action--cancelled { background: var(--err); color: #fff; }
.chg-action-detail { display: flex; flex-direction: column; gap: 4px; padding: var(--s8) var(--s12); border-top: 1px solid var(--line); font-size: var(--t-13); }
.chg-action-detail p { margin: 0; }
.chg-reason { color: var(--ink-1); white-space: pre-wrap; line-height: 1.45; }
.chg-reason > span { color: var(--ink-3); font-weight: 600; margin-right: 4px; }
.chg-action-tasks { color: var(--ink-2); font-size: var(--t-12); }
.chg-action-tasks.is-warn { color: var(--warn); font-weight: 600; }

/* A new thing's values, side by side. */
.chg-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s8) var(--s16); }
.chg-fact { min-width: 0; }
.chg-fact--wide { grid-column: 1 / -1; }
.chg-fact dt { font-size: var(--t-11); color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.chg-fact dd { margin: 2px 0 0; font-size: var(--t-13); color: var(--ink-1); font-weight: 500; overflow-wrap: anywhere; white-space: pre-wrap; }

.chg-tag { display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; border-radius: 999px; font-size: var(--t-10, 10px); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 16px; }
.chg-tag--add { background: var(--ok-dim, transparent); color: var(--ok); }
.chg-tag--remove { background: var(--err-dim, transparent); color: var(--err); }
.chg-tag--pmo { background: var(--warn-dim, transparent); color: var(--warn); }
.chg-tag--approval { background: var(--accent-dim, transparent); color: var(--accent); margin-right: 6px; }
/* « Envoyé pour validation »: a task for someone else waits for the sponsor or the lead. */
.task-held-notice { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: flex; align-items: center; gap: 12px; max-width: min(640px, calc(100vw - 32px)); padding: 10px 14px; border-radius: 10px;
  background: var(--bg-elev, var(--bg)); border: 1px solid var(--accent); box-shadow: 0 6px 24px rgba(0,0,0,.18); font-size: 13px; }
.task-held-notice a { font-weight: 600; white-space: nowrap; }

/* MCP: one proposed change */
.chg-pickbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s8); margin-bottom: var(--s8); font-size: var(--t-12); color: var(--ink-2); }
.chg-pickbar > span { margin-right: auto; font-weight: 600; }
.chg-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s8); }
.chg-item { padding: var(--s12); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: var(--r1); background: var(--surface); transition: border-color 0.12s, background-color 0.12s; }
.chg-item.is-picked { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent-dim, var(--bg)) 35%, var(--surface)); }
.chg-item--conflict, .chg-item--failed, .chg-item--error { border-color: var(--warn); }
.chg-item--applied, .chg-item--sent { border-left: 3px solid var(--ok); }
.chg-item--rejected { opacity: 0.6; }
.chg-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s8); }
.chg-check { margin: 0; width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.chg-check-gap { display: inline-block; width: 15px; }
.chg-seq { font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--t-11); color: var(--ink-3); }
.chg-op { font-weight: 600; font-size: var(--t-13); color: var(--ink-1); }
.chg-target { color: var(--ink-2); font-size: var(--t-13); min-width: 0; overflow-wrap: anywhere; }
.chg-target-wrap { display: inline-flex; flex-direction: column; min-width: 0; }
.chg-target-project { color: var(--ink-3); font-size: var(--t-12); overflow-wrap: anywhere; }
.chg-item-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.chg-item-body { margin: var(--s8) 0 0 23px; }
@container (max-width: 520px) { .chg-item-body { margin-left: 0; } }
.chg-live { display: flex; gap: 6px; margin: var(--s8) 0 0 23px; font-size: var(--t-12); color: var(--ink-3); }
.chg-live svg { flex-shrink: 0; margin-top: 2px; }
.chg-live ul { margin: 2px 0 0 16px; padding: 0; }
.chg-live--warn { color: var(--warn); }
.chg-live--err { color: var(--err); }
.chg-live--ok { color: var(--ok); }
.chg-live a { color: inherit; font-weight: 600; }

/* the decision */
.chg-decide { flex-shrink: 0; padding: var(--s12) var(--chg-pad); border-top: 1px solid var(--line); border-radius: 0 0 var(--r2, 8px) var(--r2, 8px); background: var(--surface); }
@container (max-width: 760px) { .chg-decide { position: sticky; bottom: 0; box-shadow: 0 -6px 12px -10px rgba(0, 0, 0, 0.25); } }
.chg-comment { width: 100%; font-size: var(--t-13); }
.chg-decide-buttons { display: flex; justify-content: flex-end; align-items: center; gap: var(--s8); margin-top: var(--s8); }
.chg-reject { color: var(--err); }
.chg-reject:hover { background: var(--err-dim, transparent); }

/* ── Améliorations PMO (pages/TicketsPage.tsx): the Changements panes, plus a ticket's own parts ── */
.tk-new { margin: var(--s8) 0; align-self: flex-start; }
.tk-pill--analysing { color: var(--ink-3); }
.tk-pill--needs_clarification { border-color: var(--warn); color: var(--warn); background: var(--warn-dim, transparent); }
.tk-pill--open, .tk-pill--in_progress { border-color: var(--accent); color: var(--accent); }
.tk-pill--to_validate { border-color: var(--accent); color: var(--accent); background: var(--accent-dim, transparent); }
.tk-pill--implemented { border-color: var(--ok); color: var(--ok); background: var(--ok-dim, transparent); }
.tk-pill--refused { color: var(--ink-3); }
.tk-text { margin: 0 0 var(--s8); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; font-size: var(--t-13); color: var(--ink); }
.tk-mono, .tk-files { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.tk-files { margin: 0 0 var(--s8); padding-left: var(--s16); }
.tk-quotes { list-style: none; margin: 0 0 var(--s8); padding: 0; display: flex; flex-direction: column; gap: 6px; }
/* The passage of the recording around the request: folded by default, read when the quotes are not enough. */
.tk-passage { margin: 0 0 var(--s8); }
.tk-passage-head { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: var(--t-12); font-weight: 600; cursor: pointer; }
.tk-passage-head:hover { text-decoration: underline; }
.tk-passage-text { margin: 6px 0 0; padding: var(--s8) var(--s12); max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r1); background: var(--bg); font: inherit; font-size: var(--t-12); line-height: 1.5; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.tk-quotes li { padding: 6px var(--s12); border-left: 3px solid var(--line-strong, var(--line)); font-size: var(--t-13); color: var(--ink-2); line-height: 1.5; overflow-wrap: anywhere; }
.tk-quote-who { color: var(--ink-3); font-size: 12px; }
/* ── Function HQ (client/functions) ── */
.fn-list-head { margin: var(--s12) 0 var(--s4, 4px); font-size: var(--t-12); font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.fn-manual { display: flex; flex-direction: column; gap: 6px; margin: var(--s8) 0; padding: var(--s8); border: 1px solid var(--line); border-radius: var(--r1); }
.fn-new-draft { margin: var(--s8) 0 0; }
.fn-new-draft-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fn-new-draft-row .form-input { width: auto; }
.fn-panel-foot .fn-delete { margin-left: auto; color: var(--err); }
.fn-items { list-style: none; margin: 0 0 var(--s8); padding: 0; display: flex; flex-direction: column; }
.fn-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s12); align-items: start; padding: 7px 0; border-bottom: 1px solid var(--line); }
.fn-item-main { display: flex; gap: var(--s8); align-items: flex-start; cursor: pointer; font-size: var(--t-13); line-height: 1.45; color: var(--ink-1); }
.fn-item-main input { margin-top: 3px; flex-shrink: 0; }
.fn-item.is-done .fn-item-text { color: var(--ink-3); text-decoration: line-through; }
.fn-item-tools { display: inline-flex; align-items: center; gap: var(--s8); flex-wrap: wrap; justify-content: flex-end; }
.fn-tool { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border: 0; border-radius: var(--r1); background: none; color: var(--ink-3); font-size: 12px; cursor: pointer; }
.fn-tool:hover { background: var(--surface-2, var(--bg)); color: var(--ink-1); }
.fn-tool.is-on { color: var(--accent); font-weight: 600; }
.fn-item-note { grid-column: 1 / -1; margin-left: 24px; width: auto; font-size: var(--t-12); }
.fn-add { display: flex; flex-wrap: wrap; gap: var(--s8); align-items: center; margin-top: var(--s8); }
.fn-add .form-input { flex: 1 1 240px; }
.fn-carry-check { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-12); color: var(--ink-2); cursor: pointer; }
.fn-notes, .fn-series { list-style: none; margin: 0 0 var(--s8); padding: 0; display: flex; flex-direction: column; gap: var(--s8); }
.fn-notes li { padding: 6px var(--s12); border-left: 3px solid var(--line-strong, var(--line)); }
.fn-notes .tk-text { margin: 2px 0 0; }
.fn-gap { margin-top: var(--s8); }
.fn-guide-foot { display: flex; flex-wrap: wrap; gap: var(--s8); align-items: center; }
.tk-done-hint { color: var(--ok, var(--accent)); font-weight: 600; }
.tk-questions { margin: 0 0 var(--s8); padding-left: var(--s16); display: flex; flex-direction: column; gap: var(--s12); }
.tk-question { margin: 0 0 4px; font-weight: 600; font-size: var(--t-13); }
.tk-answer { margin: 0; white-space: pre-wrap; font-size: var(--t-13); overflow-wrap: anywhere; }
.tk-answer-by, .tk-comment-head { color: var(--ink-3); font-size: 12px; }
.tk-comments { list-style: none; margin: 0 0 var(--s8); padding: 0; display: flex; flex-direction: column; gap: var(--s8); }
.tk-comments li { padding: var(--s8) var(--s12); border: 1px solid var(--line); border-radius: var(--r-md, 8px); background: var(--bg); }
.tk-comments .tk-text { margin: 4px 0 0; }
.tk-row { display: flex; justify-content: flex-end; margin-top: 6px; }
.tk-gap { margin-top: var(--s12); }
/* A ticket to validate: what was done, the link to dev, the steps to follow. */
.tk-validate { border-color: var(--accent); }
.tk-validate > div { flex: 1; min-width: 0; }
.tk-validate-h { margin: var(--s12) 0 var(--s4); font-size: var(--t-12); font-weight: 600; color: var(--ink-1); }
.tk-validate .tk-text { margin: 0; color: var(--ink); font-size: var(--t-13); }
.tk-steps { margin: var(--s8) 0; padding-left: var(--s20, 20px); display: flex; flex-direction: column; gap: var(--s4); font-size: var(--t-13); line-height: 1.5; color: var(--ink); }
.tk-steps li { padding-left: 2px; overflow-wrap: anywhere; }
/* The actions of a ticket, in a bar that follows the reading (rule shared with .pd-savebar): its message,
   what the chosen action still needs, then the buttons. */
.tk-actionbar { flex-direction: column; align-items: stretch; margin-top: var(--s16); }
.tk-actionbar-msg { margin: 0; }
.tk-actionbar-form { display: flex; flex-direction: column; gap: 6px; }
.tk-actionbar-form .form-label { margin: var(--s4) 0 0; }
.tk-actionbar-form .form-label:first-child { margin-top: 0; }
.tk-actionbar-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--s8); }
.tk-actionbar-lead { margin-right: auto; }

/* ── Function HQ: a tab per session type (kit .tabs), the marche à suivre as a
   stepper (the stage bar's dots, run vertically), the timeline, the session ── */
.fn-page .chg-page-head { max-width: none; margin-bottom: 0; }
.fn-tabs { margin: var(--s12) 0 var(--s16); flex-wrap: wrap; }
.fn-tabs .tab { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.fn-tab-add { padding-left: var(--s12); padding-right: var(--s12); }
.fn-tab-link { margin-left: auto; color: var(--accent); }
.fn-type { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fn-type-layout { grid-template-columns: 360px minmax(0, 1fr); }

.fn-section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s8); }
.fn-section-title { margin: 0; font-size: var(--t-11); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.fn-section-sub { margin: 2px 0 var(--s8); font-size: var(--t-12); color: var(--ink-3); }
.fn-guide { padding: var(--s12); border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface); }
.fn-tl-head { margin-top: var(--s8); }

/* The stepper: numbered dots on a vertical line, as in the stage bar. Done:
   green with a check; current (first not done): accent ring. */
.fn-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fn-step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s12); align-items: start; padding: 0 0 var(--s12) 0; }
.fn-step:last-child { padding-bottom: 0; }
.fn-step:not(:last-child)::before { content: ''; position: absolute; left: 9px; top: 20px; bottom: 0; width: 1px; background: var(--line-strong); }
.fn-step.is-done:not(:last-child)::before { background: var(--ok); }
.fn-steps > .fn-step > .fn-step-dot, .fn-step .fn-item-main > .fn-step-dot { flex: 0 0 auto; }
.fn-step-dot {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 19px; height: 19px; border-radius: var(--r-full); border: 1.5px solid var(--line-strong); background: var(--surface);
  font-size: 10px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; box-sizing: border-box;
}
.fn-steps:not(.is-live) .fn-step { grid-template-columns: 19px minmax(0, 1fr); gap: var(--s8); }
.fn-step-text { font-size: var(--t-13); line-height: 1.45; color: var(--ink-1); padding-top: 1px; }
.fn-step.is-done .fn-step-dot { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.fn-step.is-current .fn-step-dot { border: 2px solid var(--accent); color: var(--accent); }
.fn-step.is-current .fn-item-text { font-weight: 600; }
.fn-step.is-done .fn-item-text { color: var(--ink-3); }
.fn-steps.is-live .fn-item-main { display: flex; gap: var(--s8); align-items: flex-start; cursor: pointer; font-size: var(--t-13); line-height: 1.45; color: var(--ink-1); }
.fn-steps.is-live .fn-item-text { padding-top: 1px; }
.fn-step-check { position: absolute; opacity: 0; width: 19px; height: 19px; margin: 0; cursor: pointer; z-index: 2; }
.fn-step-check:focus-visible + .fn-step-dot { outline: 2px solid var(--accent); outline-offset: 2px; }
.fn-step label:hover .fn-step-dot { border-color: var(--accent); }
.fn-step .fn-item-note { grid-column: 1 / -1; margin-left: 27px; width: auto; font-size: var(--t-12); }

/* Step-by-step editor */
.fn-editor { display: flex; flex-direction: column; gap: var(--s8); }
.fn-editor-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s8) var(--s12); align-items: end; }
.fn-editor-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fn-editor-step { display: grid; grid-template-columns: 19px minmax(0, 1fr) auto auto auto; gap: 4px; align-items: center; }
.fn-editor-num { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: var(--r-full); border: 1.5px solid var(--line-strong); font-size: 10px; font-weight: 700; color: var(--ink-3); box-sizing: border-box; }
.fn-editor-add { align-self: flex-start; }
.fn-editor-archive { margin-left: auto; }
.fn-page > .fn-editor { max-width: 860px; padding: var(--s16); border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface); }

/* Timeline */
.fn-tl { list-style: none; margin: 0; padding: 0 0 0 14px; position: relative; display: flex; flex-direction: column; gap: 6px; }
.fn-tl::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line-strong); }
.fn-tl-entry { position: relative; }
.fn-tl-dot { position: absolute; left: -14px; top: 16px; width: 9px; height: 9px; border-radius: var(--r-full); background: var(--surface); border: 1.5px solid var(--line-strong); box-sizing: border-box; }
.fn-tl-entry.is-closed .fn-tl-dot { background: var(--ok); border-color: var(--ok); }
.fn-tl-entry.is-open .fn-tl-dot { background: var(--accent); border-color: var(--accent); }
.fn-tl-entry.is-unopened .fn-tl-dot { border-style: dashed; }
.fn-tl-card {
  all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: var(--s12);
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface); cursor: pointer;
}
.fn-tl-card:hover { border-color: var(--line-strong); }
.fn-tl-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fn-tl-entry.is-open .fn-tl-card { border-color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); }
.fn-tl-entry.is-unopened .fn-tl-card { border-style: dashed; }
.fn-tl-date { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; padding-top: 1px; }
.fn-tl-day { font-size: 18px; font-weight: 700; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.fn-tl-month { font-size: var(--t-11); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
.fn-tl-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fn-tl-title { display: flex; align-items: baseline; gap: 6px; font-size: var(--t-13); font-weight: 600; color: var(--ink-1); line-height: 1.35; }
.fn-tl-title > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.fn-tl-meta { font-size: var(--t-12); color: var(--ink-3); }
.fn-tl-hint { font-size: var(--t-12); color: var(--accent); }
.fn-tl-continue { margin-top: 4px; font-size: var(--t-12); }
.fn-tl-progress { display: block; height: 3px; background: var(--bg-inset); overflow: hidden; }
.fn-tl-progress > span { display: block; height: 100%; background: var(--ok); }
.fn-tl-achieved { margin: 0; padding: 0 0 0 14px; font-size: var(--t-12); color: var(--ink-2); line-height: 1.4; }
.fn-tl-achieved li::marker { content: '✓  '; color: var(--ok); }
.fn-tl-note { font-size: var(--t-12); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; border-left: 2px solid var(--line-strong); padding-left: 6px; }
.fn-tl-badges { display: flex; flex-wrap: wrap; gap: 4px var(--s8); font-size: 11px; color: var(--ink-3); }
.fn-tl-badges > span { display: inline-flex; align-items: center; gap: 3px; }
.fn-tl-badges .is-accent { color: var(--accent); font-weight: 600; }
.fn-tl-badges .is-ok { color: var(--ok); }

/* The session, in the HQ and in the companion */
.fn-detail { padding: 0; }
.fn-panel { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.fn-panel-loading { display: grid; place-items: center; padding: var(--s20, 20px); }
.fn-panel-head { padding: var(--s16) var(--s20, 20px) var(--s12); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.fn-panel-titles { display: flex; align-items: baseline; gap: var(--s8); }
.fn-panel-title { margin: 0; font-size: var(--t-16, 16px); font-weight: 600; color: var(--ink-1); }
.fn-panel-meta { margin: 0; font-size: var(--t-12); color: var(--ink-3); }
.fn-closed { color: var(--ok); font-weight: 600; }
.fn-progress { display: flex; align-items: center; gap: var(--s12); }
.fn-progress-track { flex: 1; height: 4px; background: var(--bg-inset); overflow: hidden; }
.fn-progress-bar { display: block; height: 100%; background: var(--ok); transition: width var(--dt-mid) var(--ease); }
.fn-progress-label { font-size: var(--t-12); font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fn-panel-body { flex: 1; min-height: 0; overflow-y: auto; padding: var(--s16) var(--s20, 20px); display: flex; flex-direction: column; gap: var(--s16); }
.fn-panel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s12); padding: var(--s12) var(--s20, 20px); border-top: 1px solid var(--line); }
.fn-panel-foot .fn-tool { margin-left: auto; text-decoration: none; }
.fn-group { display: flex; flex-direction: column; gap: 6px; }
.fn-group-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s8); }
.fn-group-title { margin: 0; font-size: var(--t-11); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.fn-group.is-carried { padding-left: var(--s12); border-left: 2px solid var(--warn); }
.fn-item.is-carry .fn-item-text::after, .fn-step.is-carry .fn-item-text::after { content: ' ↻'; color: var(--accent); }
.fn-transcript { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: var(--s8); align-self: flex-start; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r1); cursor: pointer; font-size: var(--t-13); color: var(--ink-1); }
.fn-transcript:hover { border-color: var(--accent); color: var(--accent); }
.fn-proposals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.fn-proposal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s12); align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fn-proposal-text { display: flex; flex-direction: column; gap: 3px; font-size: var(--t-13); color: var(--ink-1); line-height: 1.4; }
.fn-proposal-text > span { color: var(--ink-2); font-size: var(--t-12); }
.fn-proposal-quote { font-size: var(--t-12); color: var(--ink-3); border-left: 2px solid var(--line-strong); padding-left: 6px; quotes: none; }
.fn-proposal-tools { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.fn-proposals.is-decided { border-top: 0; }
.fn-proposals.is-decided .fn-proposal { padding: 4px 0; border-bottom-style: dashed; }
.fn-proposals.is-decided .fn-proposal-text { font-size: var(--t-12); color: var(--ink-3); }
.fn-proposals .fn-tool { text-decoration: none; }
.spin { animation: spin 1s linear infinite; }

/* The companion: a tab next to Enregistrement, a flap out on the right (kit .panel-slide geometry) */
.fnc-dock { position: relative; align-self: stretch; display: flex; }
.fnc-dock.is-open .fnc-tab { background: var(--bg-inset); color: var(--ink-1); box-shadow: inset 0 -2px 0 var(--accent); }
.fnc-flap {
  position: fixed; top: var(--topbar-h, 48px); right: 0; bottom: 0; z-index: 60;
  width: min(420px, 100vw); display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--line-strong); box-shadow: -8px 0 30px rgba(0, 0, 0, 0.06);
  transform: translateX(100%); visibility: hidden;
  transition: transform 260ms var(--ease), visibility 0s linear 260ms;
}
.fnc-dock.is-open .fnc-flap { transform: none; visibility: visible; transition: transform 260ms var(--ease); }
@media (prefers-reduced-motion: reduce) { .fnc-flap, .fnc-dock.is-open .fnc-flap { transition: none; } }
/* The tab fills up as the session's steps are ticked (ticket #69): a synthwave
   gradient sweeping from left to right, a flash at each new step, a glow when
   all is done. */
.fnc-tab.has-progress { overflow: hidden; }
.fnc-tab-progress { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.fnc-tab > :not(.fnc-tab-progress) { position: relative; z-index: 1; }
.fnc-tab-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, rgb(176 0 166 / 0.22), rgb(255 42 109 / 0.26), rgb(45 226 230 / 0.30));
  background-size: 200% 100%;
  border-right: 2px solid var(--neon-cyan);
  box-shadow: inset 0 -3px 0 var(--neon-pink);
  transition: width 700ms cubic-bezier(0.22, 1.4, 0.36, 1);
  animation: fnc-sweep 4s linear infinite;
}
.fnc-tab.is-complete .fnc-tab-fill { border-right-color: transparent; box-shadow: inset 0 -3px 0 var(--neon-cyan), 0 0 12px rgb(45 226 230 / 0.6); }
.fnc-tab-flash {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgb(255 211 25 / 0.55), rgb(255 42 109 / 0.45), transparent);
  animation: fnc-flash 900ms ease-out forwards;
}
.fnc-tab-count { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--neon-hot); }
.fnc-tab.is-complete .fnc-tab-count { color: var(--ok, #1f8a4c); }
@keyframes fnc-sweep { from { background-position: 0% 0; } to { background-position: 200% 0; } }
@keyframes fnc-flash { from { transform: translateX(-100%); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fnc-tab-fill { animation: none; transition: none; } .fnc-tab-flash { display: none; } }
/* "À côté de la page" (Profil › Compte, ticket #70): the page narrows instead of being covered. */
html.has-fnc-section .content { margin-right: min(420px, 100vw); transition: margin-right 260ms var(--ease); }
html.has-fnc-section .fnc-flap { box-shadow: none; }

/* QG: threads of a type about a person (Synchro PMO) or a project (Suivi PMO).
   Left: one card per thread; right: the thread's sequence, its session below. */
.fn-streams { gap: var(--s8); }
.fn-st-search { width: 100%; }
.fn-st-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fn-st-card {
  all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: var(--s8); align-items: start;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface); cursor: pointer;
}
.fn-st-card:hover { border-color: var(--line-strong); }
.fn-st-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fn-st-card.is-open { border-color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); }
.fn-st-card.is-none { border-style: dashed; }
.fn-st-icon { color: var(--ink-3); padding-top: 2px; }
.fn-st-card.is-open .fn-st-icon { color: var(--accent); }
.fn-st-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fn-st-name { font-size: var(--t-13); font-weight: 600; color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fn-st-meta { display: flex; flex-direction: column; gap: 1px; font-size: var(--t-12); color: var(--ink-3); }
.fn-st-foot { display: flex; flex-wrap: wrap; gap: 2px var(--s8); font-size: 11px; color: var(--ink-3); }
.fn-st-foot > span { display: inline-flex; align-items: center; gap: 3px; }
.fn-st-foot .is-accent { color: var(--accent); font-weight: 600; }
.fn-st-foot .is-warn, .fn-warn { color: var(--warn); font-weight: 600; }
.fn-trend { align-self: center; }
.fn-trend-open { fill: var(--line-strong); }
.fn-trend-late { fill: var(--warn); }
.fn-st-card.is-open .fn-trend-open { fill: color-mix(in srgb, var(--accent) 45%, transparent); }

.fn-stream { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.fn-stream-head { flex-shrink: 0; padding: var(--s16) var(--s20, 20px) var(--s12); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.fn-stream-head .fn-panel-titles { flex-wrap: wrap; }
.fn-stream > .fn-panel { flex: 1; height: auto; }
.fn-stream > .fn-panel .fn-panel-head { padding-top: var(--s12); }
.fn-stream > .chg-detail-empty { flex: 1; }

/* The sequence: numbered stops on a line, the first to the next; open = accent,
   closed = green, not opened yet = dashed, upcoming = calendar. */
.fn-seq { list-style: none; margin: var(--s4, 4px) 0 0; padding: 0 0 4px; display: flex; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: thin; }
.fn-seq-item { display: flex; align-items: center; flex-shrink: 0; }
.fn-seq-item > button {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 0 6px; align-items: center;
  padding: 5px 8px; border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface); min-width: 64px;
}
.fn-seq-item > button:hover { border-color: var(--line-strong); }
.fn-seq-item > button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fn-seq-item > button:disabled { cursor: default; opacity: 0.6; }
.fn-seq-n {
  grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: var(--r-full);
  border: 1.5px solid var(--line-strong); font-size: 10px; font-weight: 700; color: var(--ink-3); box-sizing: border-box; font-variant-numeric: tabular-nums;
}
.fn-seq-date { font-size: var(--t-12); font-weight: 600; color: var(--ink-1); white-space: nowrap; }
.fn-seq-badges { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--ink-3); min-height: 12px; font-variant-numeric: tabular-nums; }
.fn-seq-badges .is-warn { color: var(--warn); font-weight: 700; }
.fn-seq-badges .is-accent { color: var(--accent); }
.fn-seq-who { grid-column: 1 / -1; font-size: 10px; color: var(--ink-3); }
.fn-seq-link { width: 14px; height: 1px; background: var(--line-strong); flex-shrink: 0; }
.fn-seq-item.is-closed .fn-seq-n { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.fn-seq-item.is-closed + .fn-seq-item .fn-seq-link, .fn-seq-item.is-closed > .fn-seq-link { background: var(--ok); }
.fn-seq-item.is-open > button { border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.fn-seq-item.is-open .fn-seq-n { border: 2px solid var(--accent); color: var(--accent); }
.fn-seq-item.is-unopened > button { border-style: dashed; }
.fn-seq-item.is-upcoming .fn-seq-n { border-style: dashed; color: var(--accent); }
.fn-seq-item.is-add > button { grid-template-columns: auto auto; grid-template-rows: auto; color: var(--accent); border-style: dashed; margin-left: 14px; }
.fn-seq-item.is-add .fn-seq-date { color: var(--accent); }
.fn-guide--pane { margin: var(--s16); }

/* Who a Synchro is with */
.fn-person { margin: 0; display: flex; align-items: center; gap: var(--s8); flex-wrap: wrap; font-size: var(--t-13); color: var(--ink-1); font-weight: 600; }
.fn-person.is-editing { font-weight: 400; }
.fn-person .form-select { max-width: 280px; }

/* A Synchro at task level */
.fn-work { gap: 4px; }
.fn-moves { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fn-move { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: var(--s8); align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: var(--t-12); }
.fn-move:last-child { border-bottom: 0; }
.fn-move-icon { color: var(--ink-3); align-self: center; display: inline-flex; }
.fn-move.is-done .fn-move-icon { color: var(--ok); }
.fn-move.is-created .fn-move-icon { color: var(--accent); }
.fn-move.is-blocked .fn-move-icon { color: var(--warn); }
button.fn-move-title { all: unset; cursor: pointer; }
.fn-move-title { color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.fn-move-title:hover { text-decoration: underline; }
button.fn-move-title:focus-visible { outline: 2px solid var(--accent); }
.fn-move-what { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-3); white-space: nowrap; }
.fn-work-project .fn-list-head { margin-top: var(--s8); }
.fn-work-project .fn-list-head a { color: inherit; text-decoration: none; display: inline-flex; gap: 6px; align-items: baseline; }
.fn-work-project .fn-list-head a:hover { color: var(--accent); }
.fn-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fn-task { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 1px var(--s8); align-items: center; padding: 6px 0 6px 8px; border-left: 2px solid var(--line); border-bottom: 1px solid var(--line); }
.fn-task.is-late { border-left-color: var(--warn); }
.fn-task.is-blocked { border-left-color: var(--err); }
.fn-task-title { all: unset; cursor: pointer; font-size: var(--t-13); color: var(--ink-1); line-height: 1.35; }
.fn-task-title:hover { text-decoration: underline; }
.fn-task-title:focus-visible { outline: 2px solid var(--accent); }
.fn-task-meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 2px var(--s8); font-size: 11px; color: var(--ink-3); }
.fn-task > .fn-tool { grid-column: 2; grid-row: 1 / span 2; }
.fn-task-status { text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.fn-task.is-blocked .fn-task-status { color: var(--err); }
.fn-newtask { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 140px auto auto; gap: 6px; align-items: center; margin: 4px 0 var(--s8); }
.fn-proposal-kind { font-size: 11px !important; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent) !important; }
.fn-proposal.is-task_done .fn-proposal-kind { color: var(--ok) !important; }
.fn-proposal.is-task_change .fn-proposal-kind { color: var(--warn) !important; }
.fn-proposal-text .form-select { margin-top: 4px; max-width: 320px; }

/* Mes Synchros PMO */
.fn-mine { max-width: 860px; }
.fn-mine-now { margin: var(--s8) 0 0; font-size: var(--t-13); }
.fn-mine-now a { color: var(--accent); font-weight: 600; }
.fn-mine-next { margin: var(--s16) 0 0; padding: var(--s12); border: 1px dashed var(--accent); border-radius: var(--r1); color: var(--ink-1); font-size: var(--t-13); }
.fn-mine-next p { margin: 0; display: flex; align-items: center; gap: 6px; }
.fn-mine-list { list-style: none; margin: var(--s16) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s12); position: relative; }
.fn-mine-item { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s12); position: relative; }
.fn-mine-item:not(:last-child)::before { content: ''; position: absolute; left: 11px; top: 26px; bottom: calc(-1 * var(--s12)); width: 1px; background: var(--line-strong); }
.fn-mine-n { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; border-radius: var(--r-full); background: var(--ok); color: var(--surface); font-size: 11px; font-weight: 700; margin-top: 10px; position: relative; z-index: 1; }
.fn-mine-card { padding: var(--s12) var(--s16); border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.fn-mine-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s8); }
.fn-mine-head h2 { margin: 0; font-size: var(--t-14, 14px); font-weight: 600; color: var(--ink-1); text-transform: capitalize; }
.fn-mine-snap { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.fn-mine-card .fn-group-title { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.fn-mine-points { margin: 0; padding-left: 18px; font-size: var(--t-13); color: var(--ink-1); line-height: 1.45; }
.fn-mine-points .is-done { color: var(--ink-3); text-decoration: line-through; }
.fn-mine-summary summary { cursor: pointer; font-size: var(--t-12); color: var(--accent); }
.fn-mine-summary .tk-text { margin: 6px 0 0; white-space: pre-wrap; }

@media (max-width: 900px) {
  .fn-newtask { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fn-newtask > .form-input:first-child { grid-column: 1 / -1; }
  .fn-move { grid-template-columns: 18px minmax(0, 1fr); }
  .fn-move-what { grid-column: 2; white-space: normal; }
}

.fnc-head { padding: var(--s12) var(--s16); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; background: var(--bg-inset); }
.fnc-head-row { display: flex; align-items: center; gap: var(--s8); }
.fnc-type { flex: 1; font-weight: 600; }
.fnc-why { margin: 0; font-size: var(--t-12); color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.fnc-live { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--accent); animation: rec-pulse 1.8s ease-in-out infinite; }
.fnc-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fnc-body .fn-panel-head { padding: var(--s12) var(--s16) var(--s8); }
.fnc-body .fn-panel-body { padding: var(--s12) var(--s16); }
.fnc-body .fn-panel-foot { padding: var(--s8) var(--s16); }
.fnc-empty { padding: var(--s16); }

/* ── Kanban Fonction board, drawn as the task grid (pages/KanbanBoardsPage.tsx) ── */
.kb-grid-title { font-size: var(--t-14, 14px); font-weight: 600; color: var(--ink-1); }
.kb-grid-count { margin-left: 6px; font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.kb-grid-rowname { cursor: default; }
.kb-grid-rowname:hover { color: inherit; text-decoration: none; }
.kb-task-card-desc {
  margin-top: var(--s4); font-size: var(--t-12); color: var(--ink-2); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line;
}
.kb-grid-page .toolbar-filters { display: flex; align-items: center; gap: var(--s12); }
.kb-grid-page .toolbar-filters .form-back { margin-bottom: 0; }

/* Mon calendrier: the week keeps the screen's height, the person's task planning
   follows below it, and the page scrolls down to it (pages/CalendarPage.tsx). */
.cal-page.has-planning { overflow-y: auto; }
.cal-page.has-planning > .mycal-body { flex: 0 0 auto; height: max(520px, calc(100dvh - 190px)); }
.mycal-planning { flex: 0 0 auto; border-top: 1px solid var(--line); padding-top: var(--s16, 16px); }
.mycal-planning .tlt-page.is-embedded { padding: 0 0 var(--s24, 24px); }
.tlt-embed-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 var(--s12, 12px); font-size: var(--t-14, 14px); font-weight: 600; color: var(--ink-1); }
.tlt-embed-hint { font-size: var(--t-12, 12px); font-weight: 400; color: var(--ink-3); }
.mycal-planning .tlt-scroll { max-height: none; }

/* ── Planning view: full titles, who as what, folding (proposals/timeline-taches) ── */
.tlt-title { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.35; }
.tlt-label-top { align-items: flex-start; }
.tlt-label-meta { flex-wrap: wrap; }
.tlt-who { white-space: normal; overflow: visible; font-size: var(--t-12, 12px); color: var(--ink-2); line-height: 1.4; }
.tlt-who-role { font-size: var(--t-10, 10px); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.tlt-who-sep { color: var(--ink-3); }
.tlt-band.is-cut { border-left-width: 1px; border-left-style: dashed; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.tlt-proj-label { justify-content: space-between; }
.tlt-proj-open { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; }
.tlt-proj-open:hover .tlt-proj-name { color: var(--accent); }
.tlt-proj-label .tlt-proj-page { opacity: 0.6; }
.tlt-proj-label:hover .tlt-proj-page { opacity: 1; }
.tlt-fold {
  grid-column: 1; position: sticky; left: 0; z-index: 5;
  display: flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--surface); color: var(--accent); cursor: pointer; text-align: left;
  font: inherit; font-size: var(--t-12, 12px); font-weight: 600;
}
.tlt-fold:hover { background: var(--accent-dim); }
.tlt-fold-track { grid-column: 2 / -1; border-bottom: 1px solid var(--line); background-image: var(--tlt-weeklines); }
.tlt-embed-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: var(--s12, 12px); }
.tlt-embed-head .tlt-embed-title { margin: 0; }

/* ── Task and project panels opened from the planning ── */
.panel-slide.tlt-task-panel, .panel-slide.tlt-project-panel { width: min(560px, 100vw); display: flex; flex-direction: column; }
.tlt-task-panel .panel-slide-title, .tlt-project-panel .panel-slide-title { font-size: var(--t-18, 18px); overflow-wrap: anywhere; }
.tlt-panel-kicker {
  display: inline-flex; align-items: baseline; gap: 6px; margin-bottom: 6px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: var(--t-12, 12px); font-weight: 600; color: var(--ink-2); text-align: left;
}
button.tlt-panel-kicker:hover { color: var(--accent); }
.tlt-panel-kicker.is-static { cursor: default; }
.tlt-panel-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }
.tlt-panel-tools { display: flex; align-items: center; gap: var(--s8, 8px); flex-shrink: 0; }
.tlt-role { font-size: var(--t-11, 11px); font-weight: 700; padding: 1px 6px; border: 1px solid var(--line-strong); border-radius: var(--r1, 2px); color: var(--ink-2); }
.tlt-role.is-assignee { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.tlt-role.is-collaborator { border-color: var(--accent-mid); color: var(--accent); }
.tlt-panel-tabs { padding: 0 var(--s20, 20px); flex-shrink: 0; }
.tlt-panel-badge { margin-left: 6px; padding: 0 5px; border-radius: var(--r1, 2px); background: var(--tlt-orange); color: #fff; font-size: var(--t-10, 10px); font-weight: 700; }
.tlt-panel-badge.is-plain { background: var(--accent-dim); color: var(--accent); }
.panel-slide.tlt-task-panel .panel-slide-body, .panel-slide.tlt-project-panel .panel-slide-body { overflow-y: auto; }
.tlt-panel-plan { display: flex; flex-direction: column; gap: var(--s16, 16px); }
.tlt-panel-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tlt-panel-date { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: var(--surface); min-width: 0; }
.tlt-panel-date strong { font-size: var(--t-14, 14px); color: var(--ink-1); overflow-wrap: anywhere; }
.tlt-panel-date-label { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-10, 10px); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.tlt-panel-date-hint { font-size: var(--t-12, 12px); color: var(--ink-3); }
.tlt-panel-date.is-soon { box-shadow: inset 3px 0 0 var(--tlt-orange); }
.tlt-panel-date.is-soon .tlt-panel-date-hint { color: var(--tlt-orange); font-weight: 600; }
.tlt-panel-date.is-late { box-shadow: inset 3px 0 0 var(--err); }
.tlt-panel-date.is-late .tlt-panel-date-hint { color: var(--err); font-weight: 600; }
.tlt-panel-warn { display: flex; align-items: center; gap: 6px; margin: -8px 0 0; font-size: var(--t-12, 12px); color: var(--err); }
.tlt-panel-note { margin: -8px 0 0; font-size: var(--t-12, 12px); color: var(--ink-3); }
.tlt-panel-block h3 { margin: 0 0 8px; font-size: var(--t-11, 11px); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.tlt-panel-block.is-blocked { padding: 10px 12px; border-left: 3px solid var(--err); background: var(--err-dim, var(--bg-inset)); }
.tlt-panel-block.is-blocked p { margin: 0; }
.tlt-panel-text { margin: 0; white-space: pre-wrap; font-size: var(--t-13, 13px); line-height: 1.5; color: var(--ink-1); overflow-wrap: anywhere; }
.tlt-panel-people { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; font-size: var(--t-13, 13px); }
.tlt-panel-people dt { color: var(--ink-3); }
.tlt-panel-people dd { margin: 0; color: var(--ink-1); }
.tlt-panel-people .is-me { font-weight: 700; color: var(--accent); }
.tlt-panel-subtitle { margin: 6px 0 4px; font-size: var(--t-12, 12px); font-weight: 600; color: var(--ink-2); }
.tlt-panel-deps, .tlt-panel-updates, .tlt-panel-list, .tlt-pp-tasks, .tlt-pp-team, .tlt-pp-counts, .tlt-pp-ms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tlt-panel-deps li { font-size: var(--t-13, 13px); }
.tlt-dep-status { display: inline-block; min-width: 70px; font-size: var(--t-11, 11px); font-weight: 600; color: var(--ink-3); }
.tlt-panel-updates li { padding: 8px 10px; border-left: 2px solid var(--line-strong); background: var(--bg-inset); }
.tlt-panel-update-meta { margin-bottom: 3px; font-size: var(--t-11, 11px); color: var(--ink-3); }
.tlt-panel-list li { position: relative; padding-left: 14px; font-size: var(--t-13, 13px); }
.tlt-panel-list li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 5px; height: 5px; background: var(--ink-3); }
.tlt-panel-more { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; font-size: var(--t-12, 12px); font-weight: 600; }
.tlt-pp-label { font-size: var(--t-11, 11px); font-weight: 600; padding: 1px 6px; border: 1px solid var(--line-strong); border-radius: var(--r1, 2px); color: var(--ink-2); }
.tlt-pp-label.is-blocked { border-color: var(--err); color: var(--err); }
.tlt-pp-health { font-size: var(--t-11, 11px); font-weight: 600; padding: 1px 6px; border-radius: var(--r1, 2px); color: #fff; }
.tlt-pp-health.is-red { background: var(--err); }
.tlt-pp-health.is-orange { background: var(--tlt-orange); }
.tlt-pp-health.is-green { background: var(--ok); }
.tlt-pp-tasks li, .tlt-pp-team li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); background: var(--surface); }
.tlt-pp-tasks li.is-mine, .tlt-pp-team li.is-mine { border-left: 3px solid var(--accent); }
.tlt-pp-task { padding: 0; border: 0; background: none; text-align: left; font: inherit; font-size: var(--t-13, 13px); font-weight: 600; color: var(--ink-1); cursor: pointer; overflow-wrap: anywhere; }
button.tlt-pp-task:hover { color: var(--accent); }
.tlt-pp-task-meta { font-size: var(--t-12, 12px); color: var(--ink-3); }
.tlt-pp-task-meta .is-late { color: var(--err); font-weight: 600; }
.tlt-pp-counts li { display: flex; justify-content: space-between; padding: 6px 10px; border-bottom: 1px solid var(--line); font-size: var(--t-13, 13px); }
.tlt-pp-ms li { display: flex; gap: 10px; align-items: flex-start; }
.tlt-pp-ms-dot { flex: 0 0 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--r-full, 50%); font-size: var(--t-11, 11px); font-weight: 700; color: var(--ink-2); background: var(--surface); }
.tlt-pp-ms li.is-completed .tlt-pp-ms-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.tlt-pp-ms li.is-next .tlt-pp-ms-dot { border: 2px solid var(--accent); color: var(--accent); }
.tlt-pp-ms-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: var(--t-13, 13px); }

/* ── Outlook meeting opened from Mon calendrier ── */
.panel-slide.mtg-panel { width: min(520px, 100vw); display: flex; flex-direction: column; }
.mtg-panel .panel-slide-title { font-size: var(--t-18, 18px); overflow-wrap: anywhere; }
.panel-slide.mtg-panel .panel-slide-body { overflow-y: auto; }
.mtg-panel .tlt-panel-block h3 { display: flex; align-items: center; gap: 5px; }
.mtg-panel .tlt-pp-label { display: inline-flex; align-items: center; gap: 4px; }
.mtg-panel .tlt-panel-people { margin-bottom: 8px; }
.mtg-join { align-self: flex-start; margin-top: 6px; }
.mtg-none { margin: 0; font-style: italic; }
.mtg-group + .mtg-group { margin-top: 6px; }
.mtg-resp.is-declined { color: var(--err); }
.mtg-resp.is-accepted, .mtg-resp.is-organizer { color: var(--ok); }
.mtg-people { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.mtg-people li { padding: 2px 8px; border: 1px solid var(--line); background: var(--surface); font-size: var(--t-13, 13px); color: var(--ink-1); }
.mtg-opt { color: var(--ink-3); font-size: var(--t-11, 11px); }
.mtg-panel .tlt-panel-text a { color: var(--accent); overflow-wrap: anywhere; }

/* Folded sidebar: one plain icon per page, a line between groups (AppShell groups). */
.shell--collapsed .sidebar .nav-rail { display: flex; }
.nav-rail { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.nav-rail-group { display: flex; flex-direction: column; padding: 6px 0; }
.nav-rail-group + .nav-rail-group { border-top: 1px solid var(--line); }
.nav-rail-link {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 36px; color: var(--ink-3); border-left: 2px solid transparent; text-decoration: none;
  transition: color var(--dt-fast), background var(--dt-fast);
}
.nav-rail-link:hover { color: var(--ink-1); background: color-mix(in srgb, var(--accent-dim) 50%, transparent); }
.nav-rail-link.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-dim); }
.nav-rail-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.shell--collapsed .nav-rail-badge .nav-badge {
  display: inline-flex; position: absolute; top: 3px; right: 4px;
  min-width: 14px; height: 14px; padding: 0 3px; font-size: 9px;
}
.tlt-sponsor { flex-shrink: 0; padding: 0 5px; border: 1px solid var(--accent); border-radius: var(--r1, 2px); color: var(--accent); font-size: var(--t-10, 10px); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.tlt-proj-open { flex-wrap: wrap; row-gap: 2px; }
/* A long project name wraps and the row grows with it, never cut. */
.tlt-proj-open .tlt-proj-name { white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.3; }

/* Mon calendrier on a phone: one day per screen width, swipe from day to day. */
@media (max-width: 720px) {
  .mycal-scroll { container-type: inline-size; scroll-snap-type: x mandatory; scroll-padding-left: 44px; }
  .mycal-grid { grid-template-columns: 44px repeat(5, calc(100cqi - 44px)); }
  .mycal-head { scroll-snap-align: start; }
  .mycal-toolbar { flex-wrap: wrap; }
  .mycal-legend { display: none; }
}

/* ── Mon calendrier: work sessions on the planning ── */
/* One mark per day the task is (or was) in the person's calendar, inside the band (which reaches the last
   session), behind the dates' pins, with the day's number at its foot. Hover (0.35 s) or click: SessionTip. */
.tlt-session {
  position: absolute; top: 9px; bottom: 9px; z-index: 2;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2px;
  border: 1px solid var(--accent); border-radius: 3px; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; cursor: pointer;
}
.tlt-session:hover, .tlt-session:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 1px; }
.tlt-session sup { font-size: 8px; margin-left: 1px; }
.tlt-session.is-done { border-color: var(--ok); background: var(--ok); }
.tlt-session.is-missed { border-color: var(--err); background: var(--surface); color: var(--err); text-decoration: line-through; }
.tlt-session.is-open { border-color: var(--ink-3); border-style: dashed; background: var(--surface); color: var(--ink-2); }
.tlt-session.is-legend { position: static; display: inline-block; width: 12px; height: 14px; padding: 0; cursor: default; }
.tlt-session-tag {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 7px; border: 1px solid var(--accent); border-radius: var(--r-full, 999px);
  background: var(--surface); color: var(--accent); cursor: pointer;
  font: inherit; font-size: var(--t-11, 11px); font-weight: 600; white-space: nowrap;
}
.tlt-session-tag.is-review { border-color: var(--ink-3); border-style: dashed; color: var(--ink-2); }
.tlt-session-more { margin-left: 2px; color: var(--ink-3); }
.tlt-panel-sessions h3 { display: flex; align-items: center; gap: 5px; }
.tlt-sess-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tlt-sess { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px; border-left: 3px solid var(--accent); background: var(--bg-inset); font-size: var(--t-12, 12px); }
.tlt-sess.is-done { border-left-color: var(--ok); }
.tlt-sess.is-missed { border-left-color: var(--err); }
.tlt-sess.is-open { border-left-color: var(--line-strong); }
.tlt-sess-when { min-width: 0; }
.tlt-sess-actions { display: inline-flex; gap: 4px; flex-shrink: 0; }
.tlt-sess-btn {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px;
  border: 1px solid var(--line-strong); border-radius: var(--r-full, 999px);
  background: var(--surface); color: var(--ink-2); cursor: pointer;
  font: inherit; font-size: var(--t-11, 11px); font-weight: 600;
}
.tlt-sess-btn.is-done.is-on { border-color: var(--ok); background: var(--ok); color: #fff; }
.tlt-sess-btn.is-missed.is-on { border-color: var(--err); background: var(--err); color: #fff; }
.tlt-session.is-past { border-color: var(--line-strong); background: var(--line-strong); color: var(--ink-1); }
.tlt-sess.is-past { border-left-color: var(--line-strong); }

/* The small card of a work session (SessionTip). */
.tlt-stip {
  position: fixed; z-index: 1000; transform: translate(-50%, -100%);
  width: max-content; max-width: 280px; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink-1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16); font-size: var(--t-12, 12px); line-height: 1.4; pointer-events: none;
}
.tlt-stip.is-below { transform: translate(-50%, 0); }
.tlt-stip-title { margin-bottom: 6px; font-weight: 700; }
.tlt-stip-row + .tlt-stip-row { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.tlt-stip-when { display: flex; align-items: center; gap: 5px; color: var(--ink-2); }
.tlt-stip-day::first-letter { text-transform: uppercase; }
.tlt-stip-time { margin-top: 2px; font-size: var(--t-13, 13px); font-weight: 600; font-variant-numeric: tabular-nums; }
.tlt-stip-dur { font-weight: 400; color: var(--ink-3); }
.tlt-stip-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 3px; color: var(--ink-3); }
.tlt-stip-state { font-weight: 600; }
.tlt-stip-state.is-next { color: var(--accent); }
.tlt-stip-state.is-done { color: var(--ok); }
.tlt-stip-state.is-missed { color: var(--err); }

/* ── Conseil › COPIL (pages/copil) ── */
.copil { display: flex; flex-direction: column; gap: var(--s12); }
.copil-muted { color: var(--ink-3); }
.copil-late { color: var(--err); }
.copil-ok { color: var(--ok); }
.copil-error { color: var(--err); font-size: var(--t-12); margin: var(--s4) 0 0; }
.copil-code { font-family: var(--font-mono); font-size: var(--t-11); color: var(--ink-3); }
.copil-period { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s8); padding: var(--s8) var(--s12); border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); }
.copil-period-main, .copil-period-side { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s8); font-size: var(--t-12); }
.copil-period-label { font-weight: 600; color: var(--ink-1); font-size: var(--t-13); }
.copil-period-pick { width: auto; max-width: 280px; padding: 4px 8px; font-size: var(--t-12); }
.copil-period-date { width: auto; padding: 3px 6px; font-size: var(--t-12); }
.copil-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--s8); }
.copil-stat { display: flex; flex-direction: column; gap: 2px; padding: var(--s8) var(--s12); border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); }
.copil-stat-n { font-size: 22px; font-weight: 700; color: var(--ink-1); font-variant-numeric: tabular-nums; line-height: 1.1; }
.copil-stat-label { font-size: var(--t-12); color: var(--ink-2); }
.copil-stat-sub { font-size: var(--t-11); color: var(--warn); }
.copil-stat.is-ok .copil-stat-n { color: var(--ok); }
.copil-stat.is-warn .copil-stat-n { color: var(--warn); }
.copil-stat.is-err .copil-stat-n { color: var(--err); }
.copil-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s8); font-size: var(--t-12); }
.copil-toolbar-gap { flex: 1; }
.copil-toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); cursor: pointer; }
.copil-progress { color: var(--ink-3); }
.copil-board { display: flex; gap: var(--s8); overflow-x: auto; padding-bottom: var(--s8); align-items: flex-start; }
.copil-col { flex: 0 0 220px; display: flex; flex-direction: column; gap: 6px; padding: var(--s8); border-radius: var(--r2); background: var(--bg-inset); min-height: 80px; }
.copil-col.is-left { opacity: .85; }
.copil-col-head { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--t-12); font-weight: 600; color: var(--ink-2); padding: 0 2px 4px; }
.copil-col-n { font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.copil-col-empty { color: var(--ink-3); font-size: var(--t-12); text-align: center; padding: var(--s8) 0; }
.copil-card { display: flex; flex-direction: column; gap: 4px; text-align: left; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface); cursor: pointer; font: inherit; color: inherit; transition: border-color var(--dt-fast); }
.copil-card:hover, .copil-card:focus-visible { border-color: var(--accent); }
.copil-card.is-moved { border-left: 3px solid var(--accent); }
.copil-card-top { display: flex; justify-content: space-between; align-items: center; }
.copil-card-name { font-size: var(--t-13); font-weight: 500; color: var(--ink-1); line-height: 1.3; overflow-wrap: anywhere; }
.copil-card-prev { font-size: var(--t-11); color: var(--ink-3); }
.copil-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.copil-badge { display: inline-flex; align-items: center; gap: 3px; font-size: var(--t-11); padding: 1px 6px; border-radius: var(--r-full); background: var(--bg-inset); color: var(--ink-2); white-space: nowrap; }
.copil-badge.is-new { background: var(--accent-dim); color: var(--accent); }
.copil-badge.is-ok { background: var(--ok-dim); color: var(--ok); }
.copil-badge.is-warn { background: var(--warn-dim); color: var(--warn); }
.copil-badge.is-err { background: var(--err-dim); color: var(--err); }
.copil-decision { display: inline-block; align-self: flex-start; font-size: var(--t-11); font-weight: 600; padding: 1px 8px; border-radius: var(--r-full); background: var(--bg-inset); color: var(--ink-2); }
.copil-decision.is-promote, .copil-decision.is-on_track { background: var(--ok-dim); color: var(--ok); }
.copil-decision.is-defer, .copil-decision.is-trouble { background: var(--err-dim); color: var(--err); }
.copil-decision.is-watch, .copil-decision.is-keep { background: var(--warn-dim); color: var(--warn); }

.panel-slide.copil-panel { width: min(600px, 100vw); display: flex; flex-direction: column; }
.panel-slide.copil-panel .panel-slide-body { overflow-y: auto; flex: 1; }
.copil-panel-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 2px; }
.copil-stage { font-size: var(--t-11); color: var(--ink-2); padding: 0 6px; border: 1px solid var(--line); border-radius: var(--r-full); }
.copil-flag { display: inline-flex; align-items: center; gap: 3px; font-size: var(--t-11); padding: 0 6px; border-radius: var(--r-full); }
.copil-flag.is-blocked { background: var(--err-dim); color: var(--err); }
.copil-flag.is-new { background: var(--accent-dim); color: var(--accent); }
.copil-panel-who { display: flex; flex-wrap: wrap; gap: var(--s12); font-size: var(--t-12); color: var(--ink-2); margin-top: 4px; }
.copil-panel-tools { display: flex; align-items: flex-start; gap: 4px; flex-shrink: 0; }
.copil-seance-nav { display: inline-flex; align-items: center; gap: 2px; }
.copil-seance-pos { font-size: var(--t-12); color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 44px; text-align: center; }
.copil-panel-body { display: flex; flex-direction: column; gap: var(--s16); }
.copil-block h3 { display: flex; align-items: center; gap: 6px; font-size: var(--t-11); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin: 0 0 var(--s8); }
.copil-text { font-size: var(--t-13); color: var(--ink-1); line-height: 1.5; margin: 0 0 var(--s8); white-space: pre-wrap; }
.copil-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px var(--s12); font-size: var(--t-12); margin: 0; }
.copil-facts dt { color: var(--ink-3); }
.copil-facts dd { margin: 0; color: var(--ink-1); }
.copil-note { display: flex; gap: 6px; align-items: flex-start; font-size: var(--t-12); padding: 6px 8px; border-radius: var(--r1); margin: var(--s8) 0 0; }
.copil-note.is-blocked { background: var(--err-dim); color: var(--err); }
.copil-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: var(--t-13); color: var(--ink-1); margin: 0 0 6px; }
.copil-sub { display: flex; align-items: center; gap: 6px; font-size: var(--t-13); font-weight: 500; color: var(--ink-1); margin: var(--s8) 0 4px; }
.copil-list { margin: 0 0 6px; padding-left: 20px; font-size: var(--t-12); color: var(--ink-1); display: flex; flex-direction: column; gap: 3px; }
.copil-details { margin: 4px 0; font-size: var(--t-12); }
.copil-details summary { cursor: pointer; color: var(--accent); padding: 2px 0; }
.copil-details[open] summary { margin-bottom: 4px; }
.copil-diff { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 2px; color: var(--ink-2); }
.copil-diff-old { text-decoration: line-through; color: var(--ink-3); }
.copil-people { width: 100%; border-collapse: collapse; font-size: var(--t-12); margin-top: var(--s8); }
.copil-people th { text-align: left; font-weight: 500; color: var(--ink-3); border-bottom: 1px solid var(--line); padding: 4px 6px; }
.copil-people td { padding: 4px 6px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.copil-people th:not(:first-child), .copil-people td:not(:first-child) { text-align: right; }
.copil-decide { border-top: 1px solid var(--line-strong); padding: var(--s12) var(--s16); background: var(--surface); display: flex; flex-direction: column; gap: var(--s8); }
.copil-decide-title { font-size: var(--t-11); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.copil-decided { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s8); font-size: var(--t-12); }
.copil-decided-text { color: var(--ink-1); }
.copil-comment { font-size: var(--t-13); }
.copil-decide-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.copil-review { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-12); color: var(--ink-2); margin-left: auto; }
.copil-review input { width: auto; padding: 3px 6px; font-size: var(--t-12); }
.copil-assess { border: 1px solid var(--line); background: var(--surface); color: var(--ink-1); }
.copil-assess.is-on_track:hover { background: var(--ok-dim); border-color: var(--ok); }
.copil-assess.is-watch:hover { background: var(--warn-dim); border-color: var(--warn); }
.copil-assess.is-trouble:hover { background: var(--err-dim); border-color: var(--err); }
.copil-report-modal { max-width: 680px; width: calc(100vw - 32px); }
.copil-report-modal .modal-body { max-height: 70vh; overflow-y: auto; }
.copil-report { position: relative; font-size: var(--t-13); color: var(--ink-1); }
.copil-report h2 { font-size: var(--t-15); margin: 0 0 var(--s8); padding-right: 90px; }
.copil-report h3 { font-size: var(--t-13); margin: var(--s12) 0 4px; }
.copil-report p { margin: 0 0 4px; }
.copil-report-item { padding-left: 14px; position: relative; }
.copil-report-item::before { content: '•'; position: absolute; left: 2px; color: var(--ink-3); }
.copil-report-copy { position: absolute; top: 0; right: 0; }
@media (max-width: 640px) {
  .copil-col { flex-basis: 78vw; }
  .copil-review { margin-left: 0; }
}
/* COPIL: hours and the planning's history */
.copil-hours { width: 100%; border-collapse: collapse; font-size: var(--t-12); }
.copil-hours th, .copil-hours td { text-align: left; vertical-align: top; padding: 5px 6px; border-bottom: 1px solid var(--line); }
.copil-hours thead th { font-weight: 500; color: var(--ink-3); }
.copil-hours tbody th { font-weight: 500; color: var(--ink-2); width: 34%; }
.copil-hours td { font-variant-numeric: tabular-nums; color: var(--ink-1); }
.copil-hours-sub { font-size: var(--t-11); color: var(--ink-3); margin-top: 2px; }
.copil-hours-note { font-size: var(--t-11); margin: 6px 0 0; }
.copil-hours-bar { height: 6px; border-radius: var(--r-full); background: var(--bg-inset); margin-top: 6px; overflow: hidden; }
.copil-hours-bar span { display: block; height: 100%; border-radius: var(--r-full); background: var(--accent); }
.copil-hours-bar span.is-over { background: var(--err); }
.copil-seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r1); overflow: hidden; margin-bottom: var(--s8); }
.copil-seg button { font: inherit; font-size: var(--t-12); padding: 4px 10px; border: 0; background: var(--surface); color: var(--ink-2); cursor: pointer; }
.copil-seg button + button { border-left: 1px solid var(--line); }
.copil-seg button.is-on { background: var(--accent-dim); color: var(--ink-1); font-weight: 600; }
.copil-drift { margin: 4px 0 var(--s8); }
.copil-drift-legend { display: flex; flex-wrap: wrap; gap: 4px var(--s12); font-size: var(--t-11); color: var(--ink-2); margin-bottom: 4px; }
.copil-drift-legend span { display: inline-flex; align-items: center; gap: 4px; }
.copil-drift-plot { position: relative; }
.copil-drift-plot svg { display: block; overflow: visible; }
.copil-drift .dr-grid { stroke: var(--line); stroke-width: 1; }
.copil-drift .dr-tick { font-size: 10px; fill: var(--ink-3); }
.copil-drift .dr-today { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.copil-drift .dr-today-label { font-size: 10px; font-weight: 600; fill: var(--ink-2); }
.copil-drift .dr-name { font-size: 11px; fill: var(--ink-1); }
.copil-drift .dr-base { stroke: var(--line); stroke-width: 1; }
.copil-drift .dr-span { stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; opacity: .5; }
.copil-drift .dr-span.is-late { stroke: var(--err); opacity: .35; }
.copil-drift .dr-arc { fill: none; stroke: var(--ink-3); stroke-width: 1.5; }
.copil-drift .dr-arc.is-period { stroke: var(--accent); stroke-width: 2; }
.copil-drift .dr-head { fill: var(--ink-3); }
.copil-drift .dr-head.is-period { fill: var(--accent); }
.copil-drift .dr-hit { fill: none; stroke: transparent; stroke-width: 12; cursor: help; outline: none; }
.copil-drift .dr-first { fill: var(--surface); stroke: var(--ink-2); stroke-width: 1.5; cursor: help; outline: none; }
.copil-drift .dr-now { fill: var(--ink-1); stroke: var(--surface); stroke-width: 2; cursor: help; outline: none; }
.copil-drift .dr-now.is-done { fill: var(--ok); }
.copil-drift .dr-first:focus-visible, .copil-drift .dr-now:focus-visible { stroke: var(--accent); stroke-width: 3; }
.copil-drift .dr-shift { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.copil-drift .dr-shift.is-late { fill: var(--err); }
.copil-drift .dr-shift.is-ok { fill: var(--ok); }
.copil-tip { position: absolute; transform: translate(-50%, calc(-100% - 8px)); pointer-events: none; z-index: 5; background: var(--ink-1); color: var(--surface); font-size: var(--t-11); line-height: 1.4; padding: 6px 8px; border-radius: var(--r1); max-width: 260px; white-space: normal; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.copil-tip-title { font-weight: 600; }
.copil-log { width: 100%; border-collapse: collapse; font-size: var(--t-11); margin-top: 4px; }
.copil-log th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 3px 4px; border-bottom: 1px solid var(--line); }
.copil-log td { padding: 3px 4px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-1); }
.copil-log tr.is-period td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.copil-drift .dr-now.is-cancelled { fill: var(--surface); stroke: var(--ink-3); stroke-dasharray: 2 2; }
/* COPIL: milestone change cards */
.copil-mcards { display: flex; flex-direction: column; gap: var(--s8); margin: var(--s8) 0; }
.copil-mcards > .copil-sub { margin: 0; }
.copil-mcard { border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.copil-mcard.is-compact { padding: 8px 10px; gap: 6px; }
.copil-mcard.is-gone { background: var(--bg-inset); }
.copil-mcard.is-gone .copil-mcard-name { text-decoration: line-through; color: var(--ink-2); }
.copil-mcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s8); }
.copil-mcard-name { font-size: var(--t-13); font-weight: 600; color: var(--ink-1); line-height: 1.35; overflow-wrap: anywhere; }
.copil-mcard-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; align-items: center; flex-shrink: 0; max-width: 55%; }
.copil-mcard-shift { font-size: var(--t-13); font-weight: 700; font-variant-numeric: tabular-nums; padding: 1px 8px; border-radius: var(--r-full); }
.copil-mcard-shift.is-late { color: var(--err); background: var(--err-dim); }
.copil-mcard-shift.is-ok { color: var(--ok); background: var(--ok-dim); }
.copil-mcard-date { font-size: var(--t-12); color: var(--ink-2); margin: 0; }
.copil-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: var(--t-12); }
.copil-chain-part { display: inline-flex; align-items: center; gap: 6px; }
.copil-chain-date { padding: 2px 8px; border-radius: var(--r1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.copil-chain-date.is-replaced { background: var(--bg-inset); color: var(--ink-3); text-decoration: line-through; }
.copil-chain-date.is-now { background: var(--ink-1); color: var(--surface); font-weight: 600; }
.copil-chain-move { display: inline-flex; flex-direction: column; align-items: center; min-width: 64px; line-height: 1.15; gap: 1px; }
.copil-chain-line { position: relative; align-self: stretch; height: 0; border-top: 1.5px solid currentColor; margin: 2px 6px 2px 0; }
.copil-chain-line::after { content: ''; position: absolute; right: -6px; top: -4.75px; border-left: 6px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.copil-chain-move.is-late { color: var(--err); }
.copil-chain-move.is-ok { color: var(--ok); }
.copil-chain-days { font-weight: 700; font-size: var(--t-11); font-variant-numeric: tabular-nums; }
.copil-chain-who { font-size: 10px; color: var(--ink-3); white-space: nowrap; }
.copil-scale { position: relative; height: 14px; margin: 0 4px; }
.copil-scale::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--line); border-radius: 1px; }
.copil-scale-today { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--ink-3); }
.copil-scale-span { position: absolute; top: 5px; height: 4px; border-radius: 2px; }
.copil-scale-span.is-late { background: var(--err); opacity: .55; }
.copil-scale-span.is-ok { background: var(--ok); opacity: .55; }
.copil-scale-old, .copil-scale-now { position: absolute; top: 2px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; }
.copil-scale-old { background: var(--surface); border: 1.5px solid var(--ink-3); }
.copil-scale-now { background: var(--ink-1); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--ink-1); }
.copil-scale-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3); margin: 0 4px -4px; }
.copil-mcard-edit { border-top: 1px solid var(--line); padding-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.copil-mcard-edit-head { font-size: var(--t-12); color: var(--ink-1); }
.copil-diffbox { display: flex; flex-direction: column; gap: 2px; font-size: var(--t-12); line-height: 1.45; }
.copil-diffline { display: grid; grid-template-columns: 14px 1fr; gap: 4px; padding: 2px 6px; border-radius: var(--r1); white-space: pre-wrap; overflow-wrap: anywhere; }
.copil-diffline.is-del { background: var(--err-dim); color: var(--ink-2); }
.copil-diffline.is-del span:last-child { text-decoration: line-through; text-decoration-color: var(--err); }
.copil-diffline.is-add { background: var(--ok-dim); color: var(--ink-1); }
.copil-diffline.is-same { color: var(--ink-3); }
.copil-diffsign { font-weight: 700; text-align: center; }
.copil-diffline.is-del .copil-diffsign { color: var(--err); }
.copil-diffline.is-add .copil-diffsign { color: var(--ok); }
.copil-diffkept summary { font-size: var(--t-11); color: var(--ink-3); cursor: pointer; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* A project put on hold: its planned work sessions (HoldSessionsPrompt) */
.hold-modal { max-width: 640px; width: calc(100vw - 32px); }
.hold-modal .modal-title { display: flex; align-items: center; gap: 8px; }
.hold-modal .modal-body { max-height: 65vh; overflow-y: auto; }
.hold-lead { margin: 0 0 6px; color: var(--ink-1); font-size: var(--t-13); }
.hold-help { margin: 0 0 var(--s12); color: var(--ink-2); font-size: var(--t-12); }
.hold-muted { color: var(--ink-3); font-weight: 400; }
.hold-list { display: flex; flex-direction: column; gap: var(--s8); }
.hold-person { border: 1px solid var(--line); border-radius: var(--r2); padding: 4px 8px 8px; margin: 0; }
.hold-person legend { padding: 0 4px; font-size: var(--t-13); }
.hold-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.hold-row { display: grid; grid-template-columns: auto minmax(150px, max-content) 1fr auto; align-items: center; gap: 4px 10px; padding: 5px 6px; border-radius: var(--r1); font-size: var(--t-12); cursor: pointer; }
.hold-row:hover { background: var(--bg-inset); }
.hold-when { color: var(--ink-1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hold-task { color: var(--ink-2); overflow-wrap: anywhere; }
.hold-tag { font-size: var(--t-11); padding: 1px 8px; border-radius: var(--r-full); background: var(--ok-dim); color: var(--ok); white-space: nowrap; }
.hold-row.is-out .hold-tag { background: var(--err-dim); color: var(--err); }
.hold-row.is-out .hold-when, .hold-row.is-out .hold-task { text-decoration: line-through; text-decoration-color: var(--err); }
.hold-error { color: var(--err); font-size: var(--t-12); margin: var(--s8) 0 0; }
.hold-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1200; background: var(--ink-1); color: var(--surface); padding: 8px 14px; border-radius: var(--r2); font-size: var(--t-13); box-shadow: 0 6px 18px rgba(0,0,0,.2); animation: hold-toast 4s ease forwards; }
@keyframes hold-toast { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hold-toast { animation-duration: 4s; animation-timing-function: steps(1, end); } }
@media (max-width: 560px) {
  .hold-row { grid-template-columns: auto 1fr; }
  .hold-row .hold-task, .hold-row .hold-tag { grid-column: 2; }
  .hold-row .hold-tag { justify-self: start; }
}
.hold-modal .modal-footer { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.hold-modal .hold-row .hold-task { color: var(--ink-2); }
.hold-modal .hold-row .hold-when { color: var(--ink-1); }
.hold-modal .hold-row.is-out .hold-task, .hold-modal .hold-row.is-out .hold-when { color: var(--ink-3); }

/* A newer version is deployed than the one this tab runs (live/UpdateBanner.tsx). */
.update-banner {
  position: fixed; right: 16px; bottom: 16px; z-index: 2600;
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: var(--r1, 6px);
  background: var(--surface); color: var(--ink-1); box-shadow: 0 4px 16px rgb(0 0 0 / 0.18); font-size: var(--t-13, 13px);
}
.docs-sort { all: unset; margin-left: auto; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-size: var(--t-11, 11px); font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-3); padding: 2px 6px; border-radius: var(--r1, 4px); }
.docs-sort:hover { color: var(--ink-1); background: var(--bg-inset); }
.docs-sort.is-on { color: var(--accent); }
.docs-sort:focus-visible { outline: 2px solid var(--accent); }
.docs-meta-version { font-weight: 600; color: var(--ink-2); }
.docs-meta-where { color: inherit; text-decoration: underline dotted; }
.doc-versions-where { margin: 0 0 10px; font-size: var(--t-12, 12px); color: var(--ink-2); }
.docs-register-version { display: block; }
.docs-sort-btn { margin-left: auto; }
.docs-sort-btn.active { color: var(--accent); }
/* "Lier à un document existant", under a document's versions. */
.doc-versions-link { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.doc-versions-link > .autosuggest-wrapper { width: 100%; }
.doc-versions-link-confirm { margin: 0; font-size: var(--t-12, 12px); color: var(--ink-1); }
.doc-versions-link-actions { display: flex; gap: 6px; align-self: flex-end; }
/* A ticket's technical part: for the developer, closed by default (TicketsPage). */
.tk-technical { margin-top: var(--s12, 12px); border-top: 1px solid var(--line); padding-top: 8px; }
.tk-technical > summary { cursor: pointer; font-size: var(--t-12, 12px); color: var(--ink-3); }
.tk-technical[open] > summary { margin-bottom: 6px; }
.tk-technical .tk-text { color: var(--ink-2); font-size: var(--t-12, 12px); }
.tk-technical-h { margin: 8px 0 4px; font-size: var(--t-12, 12px); color: var(--ink-3); }

/* Groups of deliverables (components/DeliverablesEditor.tsx) */
.deliv-groups { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: var(--s12, 12px); }
.deliv-groups-label { font-size: var(--t-11, 11px); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); margin-right: 2px; }
.deliv-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-1); font-size: var(--t-12, 12px); line-height: 1.3;
}
button.deliv-chip { cursor: pointer; }
button.deliv-chip:hover { border-color: var(--line-strong); }
button.deliv-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.deliv-chip svg { color: var(--ink-3); }
.deliv-chip.is-on { border-color: var(--accent); }
.deliv-chip.is-add { color: var(--ink-3); border-style: dashed; }
.deliv-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid; flex-shrink: 0; box-sizing: border-box; }
.deliv-group-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: var(--r1, 4px); background: var(--bg-inset); }
.deliv-group-edit > .form-input { flex: 1 1 180px; min-width: 0; }
.deliv-swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.deliv-swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.deliv-swatch.is-on { border-color: var(--ink-1); }
.deliv-swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.deliv-section + .deliv-section { margin-top: var(--s16, 16px); }
.deliv-section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: var(--t-12, 12px); font-weight: 600; color: var(--ink-2); }
.deliv-section-count { color: var(--ink-3); font-weight: 400; }
.deliv-section-add { all: unset; cursor: pointer; color: var(--ink-3); display: inline-flex; padding: 2px; border-radius: 3px; }
.deliv-section-add:hover { color: var(--ink-1); background: var(--bg-inset); }
.deliv-card-head > .deliv-group-pick { flex: 0 0 auto; }
.deliv-group-pick .deliv-chip { max-width: 170px; }
.deliv-group-pick-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deliv-group-menu { left: auto; right: 0; min-width: 190px; }
.deliv-group-option { display: flex; align-items: center; gap: 8px; }

/* Acceptance criteria of a deliverable (components/DeliverableCriteria.tsx) */
.crit-block { display: flex; flex-direction: column; gap: 4px; }
.crit { display: flex; flex-direction: column; gap: 2px; }
.crit-row { display: flex; align-items: center; gap: 8px; min-height: 26px; font-size: var(--t-13, 13px); color: var(--ink-1); }
.crit-row input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.crit-row input[type="checkbox"]:disabled { cursor: default; }
.crit-row .crit-text { flex: 1; min-width: 0; }
.crit-row.is-done .crit-text { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.crit-by { font-size: var(--t-11, 11px); color: var(--ink-3); white-space: nowrap; }
.crit-add { display: flex; align-items: center; gap: 8px; color: var(--ink-3); padding-left: 2px; }
.crit-add > input { flex: 1; font-size: var(--t-13, 13px); }
.crit-count { display: inline-flex; align-items: center; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: var(--t-11, 11px); font-weight: 600; line-height: 17px; background: var(--bg-inset); color: var(--ink-3); flex: 0 0 auto !important; }
.crit-count.is-done { background: color-mix(in srgb, var(--ok, #22a06b) 16%, transparent); color: var(--ok, #22a06b); }
.ms-chip.on .crit-count { background: rgba(255,255,255,0.22); color: #fff; }
.ms-crit { margin-top: 6px; padding: 6px 10px; border-left: 2px solid var(--line); }
.ms-crit-head { font-size: var(--t-12, 12px); font-weight: 600; color: var(--ink-2); margin-bottom: 2px; }

/* A recording under way in one of my projects, on a colleague's device (live/SharedRecordingBanner.tsx). */
.recshare { display: flex; flex-direction: column; flex-shrink: 0; }
.recshare-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
  padding: var(--s4, 4px) var(--s20, 20px); border-bottom: 1px solid var(--err);
  background: var(--err-dim); color: var(--ink-1); font-size: var(--t-13, 13px);
}
.recshare-row.is-paused, .recshare-row.is-stopping { border-bottom-color: var(--line); background: var(--bg-inset); }
.recshare-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--err); flex-shrink: 0; animation: recshare-pulse 1.6s ease-in-out infinite; }
.recshare-row.is-paused .recshare-dot, .recshare-row.is-stopping .recshare-dot { background: var(--ink-3); animation: none; }
.recshare-what { flex: 1 1 240px; min-width: 0; }
.recshare-warn { color: var(--err); font-weight: 600; }
.recshare-actions { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.recshare-actions .btn { display: inline-flex; align-items: center; gap: 5px; }
.recshare-error { padding: var(--s4, 4px) var(--s20, 20px); font-size: var(--t-12, 12px); color: var(--err); }
@keyframes recshare-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .recshare-dot { animation: none; } }

/* A milestone ending after the project's end (Cadrage): said, not refused, with the way to move the end. */
.ms-date-warn { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; font-size: var(--t-12, 12px); color: var(--warn); }
.ms-date-warn .btn { padding: 0 6px; min-height: 0; }

/* « Planifier une séance » (components/PlanMeetingPanel, ticket 16).
   Two columns: who and when on the left, the free slots as day cards on the
   right; the invitation's text below; the chosen slot repeated in the footer. */
.meet-modal { max-width: 940px; width: calc(100vw - 32px); }
.meet-modal .modal-title { display: flex; align-items: center; gap: 8px; }
.meet-modal .modal-title svg { color: var(--accent); }
.meet-header { align-items: flex-start; }
.meet-heading { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.meet-sub { margin: 0 0 0 26px; color: var(--ink-3); font-size: var(--t-12); }
.meet-body { max-height: 74vh; padding: 0; }
.meet-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); border-bottom: 1px solid var(--line); }
.meet-col { padding: var(--s20); min-width: 0; }
.meet-col + .meet-col { border-left: 1px solid var(--line); }
.meet-slots-col { background: var(--bg-inset); }
.meet-section + .meet-section { margin-top: var(--s24); }
.meet-invite { padding: var(--s20); margin: 0; }
.meet-h { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--s12); font-size: var(--t-11); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.meet-step { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: var(--r1);
  background: var(--accent); color: #fff; font-size: var(--t-10); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.meet-count { margin-left: auto; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.meet-help { margin: 4px 0 0; color: var(--ink-3); font-size: var(--t-12); }
.meet-warn { margin: var(--s12) var(--s20) 0; padding: 8px 12px; border-left: 2px solid var(--warn); background: var(--warn-dim); color: var(--ink-1); font-size: var(--t-12); }
.meet-col .meet-warn { margin: 0 0 var(--s12); }
.meet-error { margin: 0 var(--s20) var(--s12); padding: 8px 12px; border-left: 2px solid var(--err); color: var(--err); font-size: var(--t-12); }
.meet-col .meet-error { margin: 0 0 var(--s12); }
.meet-loading { display: flex; align-items: center; gap: 8px; margin: 0; padding: var(--s24) var(--s20); color: var(--ink-3); font-size: var(--t-13); }
@keyframes meet-spin { to { transform: rotate(360deg); } }
.meet-spin { animation: meet-spin 0.9s linear infinite; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .meet-spin { animation: none; } }

/* Participants: one row per person; a click takes them in or out. */
.meet-people { list-style: none; margin: 0 0 var(--s8); padding: 0; display: flex; flex-direction: column; gap: 4px; }
.meet-person { display: flex; align-items: center; gap: 10px; width: 100%; padding: 5px 8px; border: 1px solid var(--line);
  border-radius: var(--r1); background: var(--surface); color: var(--ink-3); font: inherit; text-align: left; cursor: pointer;
  transition: border-color 120ms, background 120ms, color 120ms; }
.meet-person:hover:not(:disabled) { border-color: var(--line-strong); }
.meet-person:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.meet-person.is-on { border-color: var(--accent-mid); background: var(--accent-dim); color: var(--ink-1); }
.meet-person.is-disabled { cursor: not-allowed; border-style: dashed; background: transparent; }
.meet-person.is-added { cursor: default; }
.meet-avatar { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: var(--r1); background: var(--bg-inset); color: var(--ink-3); font-size: var(--t-11); font-weight: 600; letter-spacing: 0.02em; }
.meet-person.is-on .meet-avatar { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-mid); }
.meet-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.meet-name { font-size: var(--t-13); font-weight: 500; color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meet-person:not(.is-on) .meet-name { text-decoration: line-through; text-decoration-color: var(--line-strong); }
.meet-person.is-disabled .meet-name { text-decoration: none; }
.meet-role { font-size: var(--t-11); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meet-tick { flex: 0 0 auto; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--r1); color: #fff; }
.meet-person.is-on .meet-tick { background: var(--accent); border-color: var(--accent); }
.meet-person.is-disabled .meet-tick { visibility: hidden; }
.meet-remove { flex: 0 0 auto; display: inline-flex; padding: 3px; border: 0; background: none; color: var(--ink-3); cursor: pointer; border-radius: var(--r1); }
.meet-remove:hover { color: var(--err); background: var(--surface); }
.meet-add { position: relative; display: flex; gap: var(--s8); align-items: center; }
.meet-add-icon { position: absolute; left: 10px; color: var(--ink-3); pointer-events: none; }
.meet-add .form-input { flex: 1; min-width: 0; padding-left: 32px; }

/* Duration as one segmented control, the period as from → to. */
.meet-seg { display: flex; border: 1px solid var(--line); border-radius: var(--r1); overflow: hidden; margin-bottom: var(--s12); background: var(--surface); }
.meet-seg-btn { flex: 1; padding: 7px 4px; border: 0; border-left: 1px solid var(--line); background: none; color: var(--ink-2);
  font: inherit; font-size: var(--t-12); font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; white-space: nowrap; }
.meet-seg-btn:first-child { border-left: 0; }
.meet-seg-btn:hover { background: var(--bg-inset); color: var(--ink-1); }
.meet-seg-btn.is-on { background: var(--accent); color: #fff; }
.meet-seg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.meet-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: var(--s8); }
.meet-range-field { display: flex; flex-direction: column; min-width: 0; }
.meet-range-field .form-label { margin-bottom: 4px; }
.meet-range-arrow { margin-bottom: 11px; color: var(--ink-3); }
.meet-hint { display: flex; gap: 8px; align-items: flex-start; margin: var(--s12) 0 0; padding: 8px 10px; background: var(--bg-inset);
  border-radius: var(--r1); color: var(--ink-2); font-size: var(--t-12); line-height: 1.45; }
.meet-hint svg { flex: 0 0 auto; margin-top: 2px; color: var(--accent); }

/* Free slots: a card per day, the times inside it. */
.meet-hours { display: flex; align-items: center; gap: 6px; margin: -6px 0 var(--s12); color: var(--ink-3); font-size: var(--t-11); }
.meet-days { display: flex; flex-direction: column; gap: 6px; transition: opacity 150ms; }
.meet-days.is-stale { opacity: 0.45; pointer-events: none; }
.meet-day { display: grid; grid-template-columns: 54px 1fr; border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface); }
.meet-day.has-pick { border-color: var(--accent-mid); }
.meet-date { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 0; border-right: 1px solid var(--line); line-height: 1.1; }
.meet-day.has-pick .meet-date { background: var(--accent-dim); }
.meet-date-wd, .meet-date-m { font-size: var(--t-10); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.meet-date-d { font-size: var(--t-17); font-weight: 600; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.meet-times { display: flex; flex-wrap: wrap; align-content: center; gap: 6px; padding: 8px 10px; }
.meet-slot { display: inline-flex; align-items: baseline; gap: 3px; padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--r1);
  background: var(--surface); color: var(--ink-1); font: inherit; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: border-color 120ms, background 120ms; }
.meet-slot:hover { border-color: var(--accent); }
.meet-slot:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.meet-slot-start { font-size: var(--t-13); font-weight: 600; }
.meet-slot-end { font-size: var(--t-11); color: var(--ink-3); }
.meet-slot.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.meet-slot.is-on .meet-slot-end { color: rgba(255, 255, 255, 0.75); }
.meet-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: var(--s32) var(--s16); text-align: center;
  color: var(--ink-3); border: 1px dashed var(--line-strong); border-radius: var(--r1); }
.meet-empty p { margin: 0; max-width: 34ch; font-size: var(--t-12); }

/* The invitation's text. */
.meet-invite-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s20); }
.meet-invite-grid .form-group { margin: 0; }
.meet-grow { resize: none; overflow: hidden; min-height: 0; line-height: 1.45; }
.meet-types { margin-bottom: var(--s16); }
.meet-types .form-label { display: block; margin-bottom: 6px; }
.meet-type-list { display: flex; flex-wrap: wrap; gap: 6px; }
.meet-type { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: var(--t-12); font-weight: 500; cursor: pointer; transition: border-color 120ms, background 120ms; }
.meet-type:hover { border-color: var(--line-strong); color: var(--ink-1); }
.meet-type:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.meet-type.is-on { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }

/* Footer: what will be sent. */
.meet-footer { gap: var(--s8); }
.meet-summary { display: flex; align-items: center; gap: 8px; margin-right: auto; min-width: 0; color: var(--ink-3); font-size: var(--t-12); }
.meet-summary.is-ready { color: var(--ink-1); }
.meet-summary.is-ready svg { color: var(--accent); flex: 0 0 auto; }
.meet-summary strong { font-weight: 600; font-size: var(--t-13); }
.meet-summary-n { margin-left: 8px; color: var(--ink-3); }
.meet-footer .btn { display: inline-flex; align-items: center; gap: 6px; }

/* Sent. */
.meet-sent { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: var(--s32) var(--s20); text-align: center; }
.meet-sent-mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: var(--s8);
  border-radius: var(--r1); background: var(--ok-dim); color: var(--ok); }
.meet-sent p { margin: 0; }
.meet-sent-title { font-size: var(--t-15); font-weight: 600; color: var(--ink-1); max-width: 46ch; }
.meet-sent-what { color: var(--ink-1); font-size: var(--t-13); }
.meet-sent-when { color: var(--ink-3); font-size: var(--t-13); margin-bottom: var(--s12) !important; }
.meet-sent .btn { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 760px) {
  .meet-grid { grid-template-columns: 1fr; }
  .meet-col + .meet-col { border-left: 0; border-top: 1px solid var(--line); }
  .meet-invite-grid { grid-template-columns: 1fr; gap: var(--s12); }
  .meet-footer { flex-wrap: wrap; }
  .meet-summary { flex-basis: 100%; }
  .meet-sub { margin-left: 0; }
}

/* « Aligner » (ticket 28, components/ProjectAlignPanel): Pistache's proposals, before → after. */
.align-modal { max-width: 680px; width: calc(100vw - 32px); }
.align-modal .modal-title { display: flex; align-items: center; gap: 8px; }
.align-modal .modal-body { max-height: 70vh; overflow-y: auto; }
.align-modal .modal-footer { justify-content: space-between; gap: var(--s8); flex-wrap: wrap; }
.align-help, .align-summary { margin: 0 0 var(--s12); color: var(--ink-3); font-size: var(--t-12); }
.align-lead { margin: 0 0 var(--s8); color: var(--ink-1); font-size: var(--t-13); font-weight: 600; }
.align-status { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: var(--t-13); }
.align-ok { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--s8); padding: 8px 10px; border-radius: var(--r1); background: var(--ok-dim); color: var(--ink-1); font-size: var(--t-13); }
.align-ok svg { color: var(--ok); flex-shrink: 0; }
.align-error { margin: 0 0 var(--s8); color: var(--err); font-size: var(--t-13); }
.align-warn { margin: var(--s8) 0 0; padding: 6px 10px; border-radius: var(--r1); background: var(--warn-dim); color: var(--ink-1); font-size: var(--t-12); }
.align-card { margin-bottom: var(--s12); padding: var(--s12); border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface); }
.align-card.is-accepted { border-color: var(--ok); }
.align-card.is-rejected .align-after { text-decoration: line-through; color: var(--ink-3); }
.align-field { margin: 0 0 var(--s8); font-size: var(--t-13); font-weight: 600; color: var(--ink-1); }
.align-diff { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--s12); font-size: var(--t-13); }
.align-label { color: var(--ink-3); font-size: var(--t-12); padding-top: 1px; }
.align-before { color: var(--ink-3); white-space: pre-wrap; word-break: break-word; }
.align-after { color: var(--ink-1); font-weight: 500; white-space: pre-wrap; word-break: break-word; }
.align-reason { color: var(--ink-2); font-style: italic; }
.align-choice { margin-top: var(--s8); }
.align-choice .selectable { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 560px) {
  .align-diff { grid-template-columns: 1fr; gap: 2px; }
  .align-label { padding-top: 6px; }
}

/* ── Penpot canvases (components/Penpot.tsx) ── */
.penpot-bar { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s12, 12px); }
.penpot-join { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.penpot-unlinked { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.penpot-mark { color: var(--accent); flex: 0 0 auto; }
.penpot-doc-extra { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: inherit; text-decoration: none; }
.penpot-thumb { width: 64px; height: 40px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r1); background: var(--bg-inset); flex: 0 0 auto; }
.penpot-thumb--empty { display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); }
.penpot-space { display: flex; flex-direction: column; gap: 4px; }
.penpot-space-join { margin-left: auto; color: var(--ink-3); }
.docs-penpot-foot:empty { display: none; }
.docs-penpot-foot { margin-top: var(--s16); padding-top: var(--s12); border-top: 1px solid var(--line); }
.docs-penpot-foot .penpot-space { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.penpot-space-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.penpot-space-btn .penpot-space-join { margin-left: 2px; }

/* #94 Gérance: « Suivi PMO » sessions apart from the other meetings — same icon, their own colour. */
:root { --followup: #a3357f; }
[data-theme="dark"] { --followup: #e489cb; }
.cal-chip-seg.is-followup { color: var(--followup); }
.cal-rail-sum.is-followup { color: var(--followup); }
.cal-card-sec.is-followup .cal-card-sec-title { color: var(--followup); }
.cal-chip.is-upcoming.is-followup-upcoming { border-color: var(--followup); }

/* #96 Gérance: the PMO accompanist under the sponsor. */
.cal-row-accompanist { color: var(--ink-2); }

/* #98 Gérance: plan a « Suivi PMO » from the row. */
.cal-rail-plan {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; padding: 0; border: 1px solid transparent; border-radius: 6px;
  background: none; color: var(--followup); cursor: pointer;
}
.cal-rail-plan:hover, .cal-rail-plan:focus-visible { border-color: var(--followup); background: var(--surface); outline: none; }
/* #53 recorder: on another project's page, record for that project in one click */
.rec-page-alt { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.rec-page-alt .rec-btn { align-self: flex-start; }

/* #117 recorder « Ouvrir »: the transcript's row in the Chronologie lights up briefly */
.meeting-item.is-flash { animation: tl-flash 2.4s ease-out; }
@keyframes tl-flash { 0%, 40% { box-shadow: 0 0 0 2px var(--accent); } 100% { box-shadow: 0 0 0 2px transparent; } }
@media (prefers-reduced-motion: reduce) { .meeting-item.is-flash { animation: none; box-shadow: 0 0 0 2px var(--accent); } }
/* #88 — a field someone else is editing: locked, greyed, with their name (live/LiveField.tsx). */
.is-live-locked:is(input, textarea) { background: var(--bg-inset); color: var(--ink-3); cursor: not-allowed; }
.live-value.is-live-locked { border-left: 3px solid hsl(var(--live-hue, 210) 55% 42%); padding-left: var(--s8); }
.live-value-body { opacity: 0.6; cursor: not-allowed; }
/* Ticket 121: a field someone else has under their hand; no box of its own otherwise. */
.live-value-idle { display: contents; }
.live-value.is-live-open { border-left: 3px solid hsl(var(--live-hue, 210) 55% 42%); padding-left: var(--s8); background: hsl(var(--live-hue, 210) 60% 50% / 0.06); border-radius: 2px; }
.live-lock-note { display: flex; align-items: center; gap: 6px; margin-top: var(--s4); font-size: var(--t-12); color: var(--ink-3); }
/* #111 — what each task status means, behind an ⓘ in its column header */
.matrix-grid-col .info-tip { margin-left: 4px; }

/* #110 — a milestone's planned end, edited in the Execution view */
.vjt-ms-end-edit { display: inline-flex; align-items: center; gap: var(--s4, 4px); vertical-align: middle; }
.vjt-ms-end-edit .date-field { width: 9.5em; flex: none; }
.vjt-ms-end-btn { padding: 0 var(--s4, 4px); margin-left: var(--s4, 4px); opacity: .6; }
.vjt-ms-end-btn:hover { opacity: 1; }
.vjt-ms-end-error { margin-left: var(--s8, 8px); font-size: var(--t-12, 12px); }

/* #107 — the project page's Documents card: a clear header, the Penpot canvases and space inside it */
.pd-docs-card { border-top: 3px solid var(--accent, var(--ink-1)); }
.pd-side-card .docs-summary-head { display: flex; align-items: center; gap: var(--s6, 6px); font-size: var(--t-14, 14px); }
.docs-summary-head-icon { color: var(--accent, var(--ink-2)); flex: none; }
.docs-summary-hint { font-size: var(--t-11, 11px); color: var(--ink-3, var(--ink-2)); margin-bottom: var(--s8, 8px); line-height: 1.35; }
.pdp-canvases { padding: 0 16px 12px; }
.pdp-canvases-label { display: flex; align-items: center; gap: var(--s6, 6px); font-size: var(--t-12, 12px); font-weight: 600; color: var(--ink-2); margin-bottom: var(--s4, 4px); }
.pdp-canvases .pdp-doc { display: flex; align-items: center; gap: var(--s8, 8px); }
.pdp-canvas-open { margin-left: auto; color: var(--ink-3, var(--ink-2)); flex: none; }
.pd-docs-card-penpot { padding: 0 16px 16px; }
.pd-docs-card-penpot:empty { display: none; }

/* #64 — the window never moves under the fixed top bar: no elastic overscroll of the page itself (macOS) */
html:has(.shell), body:has(.shell) { overscroll-behavior: none; }
/* #102 Améliorations PMO › Dicter un ticket / un commentaire */
.tk-new-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: var(--s8) 0; }
.tk-new-row .tk-new { margin: 0; }
.tk-row { gap: 6px; flex-wrap: wrap; align-items: center; }
.tk-dictate.is-recording { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tk-dictate-help { font-size: 12px; opacity: .8; }
.tk-dictate-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--err); animation: tk-dictate-pulse 1.2s ease-in-out infinite; }
@keyframes tk-dictate-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .tk-dictate-dot { animation: none; } }
.tk-dictations { margin: 0 0 var(--s8); }
.tk-dictations-h { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin: var(--s8) 0 4px; opacity: .75; }
.tk-dictations ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tk-dictation { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.tk-dictation-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tk-dictation-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; opacity: .8; }
.tk-dictation--failed { border-color: var(--err); }
.tk-dictation-audio { width: 100%; height: 32px; }
.tk-dictation .tk-row { justify-content: flex-start; margin-top: 0; }
/* #95 « Planifier une séance »: the slots week by week */
/* The weeks: one strip that slides (scrollbar or wheel), no arrows. */
.meet-weeks { display: flex; gap: 4px; margin: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.meet-weeks::-webkit-scrollbar { display: none; }
.meet-weeks + .slidebar { margin-top: 6px; }
.meet-weeks, .meet-weeks + .slidebar { margin-bottom: var(--s8); }
.meet-weeks:has(+ .slidebar) { margin-bottom: 0; }

/* The app's own horizontal scrollbar (SlideBar.tsx) */
.slidebar { position: relative; height: 8px; border-radius: var(--r-full); background: var(--bg-inset); border: 1px solid var(--line); cursor: pointer; touch-action: none; }
.slidebar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.slidebar-thumb { position: absolute; top: -1px; bottom: -1px; min-width: 24px; border-radius: var(--r-full); background: var(--line-strong); cursor: grab; transition: background-color 0.12s ease; }
.slidebar:hover .slidebar-thumb { background: var(--accent-mid, var(--ink-3)); }
.slidebar-thumb:active { cursor: grabbing; background: var(--accent); }
.meet-week { flex: 0 0 auto; min-width: 72px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 8px; border: 1px solid var(--line);
  border-radius: var(--r1); background: var(--surface); color: var(--ink-1); font: inherit; cursor: pointer; }
.meet-week:hover { border-color: var(--accent-mid); }
.meet-week:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.meet-week-d { display: inline-flex; align-items: center; gap: 2px; font-size: var(--t-11); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.meet-week-n { font-size: var(--t-10); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.meet-week.is-empty .meet-week-d { color: var(--ink-3); font-weight: 500; }
.meet-week.is-on { border-color: var(--accent); background: var(--accent); color: #fff; }
.meet-week.is-on .meet-week-n, .meet-week.is-on .meet-week-d { color: #fff; }
.meet-week--more { justify-content: center; border-style: dashed; color: var(--ink-2); }
.meet-week-label { margin: 0 0 var(--s8); color: var(--ink-3); font-size: var(--t-11); }

/* #99 the project's usual Suivi PMO slot: in the planner, and in the Cadrage */
.meet-usual { margin: 0 0 var(--s12); padding: 8px 10px; border: 1px dashed var(--accent-mid); border-radius: var(--r1); background: var(--surface); }
.meet-usual-h { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: var(--t-12); font-weight: 600; color: var(--ink-1); }
.meet-usual-h svg { color: var(--accent); }
.meet-usual .meet-times { padding: 0; }
.meet-usual-slot.is-busy { opacity: 0.55; cursor: not-allowed; border-style: dashed; }
.meet-usual-slot.is-busy:hover { border-color: var(--line); }
.fu-slot { display: flex; flex-direction: column; gap: 4px; }
.fu-slot-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s8) var(--s12); }
.fu-slot-field { display: flex; flex-direction: column; min-width: 0; }
.fu-slot-field .form-label { margin-bottom: 2px; font-size: var(--t-11); }
.fu-slot-field .form-input, .fu-slot-field .form-select { width: auto; min-width: 92px; }
.fu-slot-clear { align-self: flex-end; }
.fu-slot-help { margin: 0; color: var(--ink-3); font-size: var(--t-12); }
.fu-slot-ro { font-size: var(--t-13); color: var(--ink-1); }
/* #91 Propositions IA: what a change is about and does, at a glance; changes per project */
.chg-kind { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 3px 10px 3px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: var(--t-12, 12px); font-weight: 600; color: var(--ink-2); letter-spacing: 0.01em; }
.chg-kind svg { flex-shrink: 0; }
.chg-kind-action { padding-left: 6px; border-left: 1px solid var(--line); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--t-11, 11px); }
.chg-kind--create { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.chg-kind--create .chg-kind-action, .chg-kind--create svg { color: var(--ok); }
.chg-kind--update .chg-kind-action, .chg-kind--update svg { color: var(--accent); }
.chg-kind--delete { border-color: color-mix(in srgb, var(--err) 45%, var(--line)); }
.chg-kind--delete .chg-kind-action, .chg-kind--delete svg { color: var(--err); }
.chg-kind--comment .chg-kind-action { color: var(--ink-3); }
.chg-target-main { flex: 1 1 12rem; min-width: 0; font-size: var(--t-14, 14px); font-weight: 650; color: var(--ink-1); overflow-wrap: anywhere; }
.chg-item-head .chg-item-tags { margin-left: 0; }
.chg-item-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--s8); margin: 3px 0 0 23px; font-size: var(--t-12); color: var(--ink-3); }
.chg-item-tags .chg-seq { align-self: center; font-size: var(--t-10, 10px); opacity: 0.8; }
.chg-item-op { color: var(--ink-2); }
.chg-item-project { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }

.chg-projtab-n { margin-left: 4px; font-size: var(--t-11); color: var(--ink-3); font-weight: 500; }
.chg-projgroup + .chg-projgroup { margin-top: var(--s16, 16px); }
.chg-projgroup-title { display: flex; align-items: center; gap: var(--s8); margin: 0 0 var(--s8); font-size: var(--t-13); font-weight: 650; color: var(--ink-1); }
@container (max-width: 520px) { .chg-item-sub { margin-left: 0; } }

/* #113/#115 Propositions IA: every proposed value can be corrected, with an editor that fits it */
.chg-edit--block { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; }
.chg-edit-stack { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.chg-edit-hint { font-size: var(--t-12); color: var(--ink-3); }
.chg-edit-person { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chg-edit-person .form-input { flex: 1 1 10rem; min-width: 0; font-size: var(--t-13); }
.chg-edit-add { align-self: flex-start; }
.chg-edit-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chg-edit-chip { display: inline-flex; align-items: center; gap: 2px; padding: 1px 2px 1px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: var(--t-12); }
.chg-edit-checks { max-height: 14rem; overflow-y: auto; padding: 4px 0; }
.chg-edit-check { display: flex; align-items: flex-start; gap: 6px; font-size: var(--t-13); cursor: pointer; }
.chg-edit-check input { margin-top: 3px; accent-color: var(--accent); }
.chg-edit-date { max-width: 11rem; }

/* #63 / #95 — each day: my day as a strip, slots with their free-room count; rooms as chips; Teams and a room together */
.meet-day { grid-template-columns: 76px 1fr; }
.meet-date-wd { font-size: var(--t-11); font-weight: 600; text-transform: capitalize; letter-spacing: 0; color: var(--ink-1); }
.meet-day-body { display: flex; flex-direction: column; min-width: 0; padding: 8px 10px; gap: 6px; }
.meet-day-body .meet-times { padding: 0; }
.meet-strip-wrap { display: flex; flex-direction: column; gap: 3px; }
.meet-strip-row { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 6px; }
.meet-strip-who { font-size: var(--t-10); font-weight: 600; color: var(--ink-3); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; }
.meet-strip-row.is-me .meet-strip-who { color: var(--ink-1); }
.meet-strip-wrap.is-multi .meet-strip-row:not(.is-me) .meet-strip { height: 8px; }
.meet-strip { position: relative; height: 10px; border-radius: 5px; background: var(--bg-inset); border: 1px solid var(--line); overflow: hidden; }
.meet-strip-lunch { position: absolute; top: 0; bottom: 0;
  background: repeating-linear-gradient(135deg, transparent 0 3px, var(--line) 3px 4px); }
.meet-strip-busy { position: absolute; top: 0; bottom: 0; background: var(--ink-3); opacity: 0.55; }
.meet-strip-slot { position: absolute; top: -1px; bottom: -1px; border-radius: 3px; }
.meet-strip-slot.is-on { background: var(--accent); }
.meet-strip-slot.is-hover { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); }
.meet-strip-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.meet-strip-scale { position: relative; height: 11px; font-size: var(--t-10); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.meet-strip-scale span { position: absolute; transform: translateX(-50%); line-height: 11px; }
.meet-strip-scale span:first-child { transform: none; }
.meet-strip-scale span:last-child { transform: translateX(-100%); }
.meet-strip-text { margin: 0; font-size: var(--t-11); color: var(--ink-2); }
.meet-hours-rooms { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; }
.meet-day-body .meet-slot { padding: 5px 8px; }
.meet-strip { height: 12px; }
.meet-slot-rooms { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; font-size: var(--t-11); color: var(--ink-3); }
.meet-slot.is-on .meet-slot-rooms { color: rgba(255, 255, 255, 0.85); }
.meet-rooms { display: flex; flex-wrap: wrap; gap: 6px; }
.meet-room { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--r1);
  background: var(--surface); color: var(--ink-1); font: inherit; font-size: var(--t-13); cursor: pointer; }
.meet-room:hover { border-color: var(--accent); }
.meet-room:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.meet-room-seats { font-size: var(--t-11); color: var(--ink-3); }
.meet-room.is-on { background: var(--accent-dim); border-color: var(--accent); }
.meet-teams { display: flex; align-items: center; gap: 6px; margin-top: var(--s8, 8px); font-size: var(--t-13); cursor: pointer; }

/* Propositions IA — « Modifier »: the whole card's values edited at once */
.chg-modify-btn { display: inline-flex; align-items: center; gap: 4px; }
.chg-bulk { display: flex; flex-direction: column; gap: var(--s12, 12px); padding: var(--s12, 12px); border: 1px solid var(--accent); border-radius: var(--r1); background: var(--accent-dim); }
.chg-bulk-bar { display: flex; align-items: center; gap: var(--s8, 8px); flex-wrap: wrap; }

/* Propositions IA — project tabs like Mon calendrier's, the project's brief under them */
.mycal-tabs.chg-projtabs { position: static; margin: var(--s8) 0 0; padding: 0; background: transparent; }
.chg-projtabs .chg-projtab-n { margin-left: 5px; font-family: var(--font-sans, inherit); font-size: var(--t-10); color: var(--ink-3); font-weight: 500; }
.chg-projtabs .mycal-tab.is-active .chg-projtab-n { color: var(--ink-3); }
.chg-brief { display: flex; flex-direction: column; gap: 6px; margin: 0 0 var(--s12); padding: var(--s12) var(--s16);
  border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 var(--r1) var(--r1); background: var(--surface); }
.chg-projtabs + .chg-brief { margin-top: 0; }
.chg-brief:not(.chg-projtabs + .chg-brief) { border-top: 1px solid var(--line-strong); border-radius: var(--r1); margin-top: var(--s8); }
.chg-brief-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.chg-brief-name { margin: 0; font-size: var(--t-15, 15px); font-weight: 700; color: var(--ink-1); min-width: 0; }
.chg-brief-label { padding: 1px 7px; border: 1px solid var(--line); border-radius: var(--r-full); font-size: var(--t-11); color: var(--ink-2); background: var(--bg-inset); }
.chg-brief-label--blocked { color: var(--err); border-color: var(--err); }
.chg-brief-open { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.chg-brief-about { margin: 0; font-size: var(--t-13); color: var(--ink-2); line-height: 1.45; white-space: pre-wrap;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chg-brief-people { margin: 0; font-size: var(--t-12, 12px); color: var(--ink-3); }
.chg-brief-wait { padding: 4px 0; }

/* A new thing's name: bold, the whole width */
.chg-facts { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.chg-fact--title dd, .chg-fact--title .chg-after { font-size: var(--t-15, 15px); font-weight: 700; }
.chg-fact--title .chg-edit-input { font-weight: 700; font-size: var(--t-14, 14px); }

/* A milestone: number, name, dates, what it is about — read and pick */
.chg-ms { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; }
.chg-ms-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.chg-ms-n { font-family: var(--font-mono); font-size: var(--t-11); font-weight: 700; color: var(--accent); }
.chg-ms-name { font-weight: 600; color: var(--ink-1); }
.chg-ms-dates { font-size: var(--t-11); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chg-ms-about { font-size: var(--t-12, 12px); font-weight: 400; color: var(--ink-2); line-height: 1.4; white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chg-ms-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; width: 100%; }
.chg-ms-opt { display: flex; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface); color: var(--ink-1);
  font: inherit; font-size: var(--t-13); cursor: pointer; text-align: left; }
.chg-ms-opt:hover { border-color: var(--accent); }
.chg-ms-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.chg-ms-opt.is-on { border-color: var(--accent); background: var(--accent-dim); box-shadow: inset 0 0 0 1px var(--accent); }
.chg-ms-opt--none { align-items: center; color: var(--ink-3); }

/* Propositions IA — breathing room under the tabs; text boxes as tall as their text */
.chg-projtabs + .chg-projgroup, .chg-projtabs + .chg-brief + .chg-projgroup { margin-top: var(--s12, 12px); }
textarea.chg-edit-auto { resize: none; overflow: hidden; min-height: 0; line-height: 1.45; }

/* Améliorations PMO — the decision sits at the end of the ticket, in its flow */

/* Propositions IA — the card's title under its label (kind badge), the tags staying on the first line */
.chg-item-head .chg-target-main { order: 3; flex: 1 0 100%; padding-left: 23px; }
.chg-item-head .chg-item-tags { margin-left: auto; }

/* Gérance — the sponsor in ink; on hover, the project's name runs on past its cell, on the plain surface colour */
.cal-row-sponsor--main { color: var(--ink-1); }
.cal-row-title-wrap { position: relative; }
.cal-row-title-full { display: none; position: absolute; top: -3px; left: 0; z-index: 8; width: max-content;
  font-size: var(--t-13, 13px); font-weight: 500; color: var(--ink-1); white-space: nowrap; cursor: pointer;
  padding: 3px 8px 3px 0; border-radius: 0 4px 4px 0;
  background: var(--surface); }
.cal-row-label-main:hover .cal-row-title-full { color: var(--accent); }
.cal-row-title-wrap:hover .cal-row-title-full { display: block; }
.cal-row-title-wrap:hover .cal-row-title { visibility: hidden; }
.cal-row-label:has(.cal-row-title-wrap:hover) { z-index: 9; }

/* Planner — the room as a dropdown: green check = free for the whole slot */
.meet-roomsel { position: relative; }
.meet-roomsel-btn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line-strong);
  border-radius: var(--r1); background: var(--surface); color: var(--ink-1); font: inherit; font-size: var(--t-13); text-align: left; cursor: pointer; }
.meet-roomsel-btn:hover:not(:disabled) { border-color: var(--accent); }
.meet-roomsel-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.meet-roomsel-btn:disabled { cursor: default; background: var(--bg-inset); color: var(--ink-3); }
.meet-roomsel.is-open .meet-roomsel-btn { border-color: var(--accent); }
.meet-roomsel-value { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
.meet-roomsel-placeholder { flex: 1; color: var(--ink-2); }
.meet-roomsel-btn:disabled .meet-roomsel-placeholder { color: var(--ink-3); }
.meet-roomsel-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meet-roomsel-seats { flex-shrink: 0; font-size: var(--t-11); color: var(--ink-3); }
.meet-roomsel-count { flex-shrink: 0; font-size: var(--t-11); color: var(--ok); font-weight: 600; }
.meet-roomsel-chev { flex-shrink: 0; color: var(--ink-3); transition: transform 0.12s ease; }
.meet-roomsel.is-open .meet-roomsel-chev { transform: rotate(180deg); }
.meet-roomsel-ok { flex-shrink: 0; color: var(--ok); }
.meet-roomsel-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  max-height: 260px; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: var(--r1); background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16); }
.meet-roomsel-opt { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 4px; font-size: var(--t-13); color: var(--ink-1); cursor: pointer; }
.meet-roomsel-opt:hover { background: var(--bg-inset); }
.meet-roomsel-opt.is-on { background: var(--accent-dim); }
.meet-roomsel-opt .meet-roomsel-name { flex: 1; }
.meet-roomsel-opt--none { color: var(--ink-2); padding-left: 30px; }
.meet-roomsel-tick { flex-shrink: 0; color: var(--accent); }
.meet-roomsel-empty { padding: 7px 8px; font-size: var(--t-12, 12px); color: var(--ink-3); }

/* Cadrage › Suivi PMO — the rhythm, the usual slot, the next three months */
.fu-plan { display: flex; flex-direction: column; gap: var(--s12); }
.fu-plan-row { display: flex; flex-direction: column; gap: var(--s4); }
.fu-plan-slot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s8); }
.fu-plan-slot-text { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: var(--t-13); color: var(--ink-1); }
.fu-plan-slot-text svg { color: var(--accent); }
.fu-plan-slot-from { color: var(--ink-3); }
.fu-plan-slot-none { font-size: var(--t-13); color: var(--ink-3); }
.fu-months-wrap { display: flex; flex-direction: column; gap: var(--s8); padding: var(--s12); border: 1px solid var(--line); border-radius: var(--r1); background: var(--bg-inset); }
.fu-months-head { display: flex; align-items: center; gap: 6px; font-size: var(--t-11); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.fu-months-count { margin-left: auto; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.fu-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--s12); }
.fu-month { min-width: 0; padding: var(--s8); border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface); }
.fu-month-name { margin-bottom: 4px; font-size: var(--t-12, 12px); font-weight: 700; color: var(--ink-1); text-transform: capitalize; }
.fu-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.fu-dow { font-size: 10px; font-weight: 600; color: var(--ink-3); text-align: center; padding-bottom: 2px; }
.fu-day { position: relative; display: flex; align-items: center; justify-content: center; height: 20px; border-radius: 50%; font-size: 10.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fu-day.is-weekend { color: var(--ink-3); opacity: 0.55; }
.fu-day.is-past { color: var(--ink-3); }
.fu-day.is-today { box-shadow: inset 0 0 0 1px var(--ink-2); font-weight: 700; }
.fu-day.has-expected, .fu-dot.has-expected { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); font-weight: 700; }
.fu-day.has-planned, .fu-dot.has-planned { background: var(--accent); color: var(--accent-fg, #fff); font-weight: 700; }
.fu-day.has-held, .fu-dot.has-held { background: var(--ok); color: #fff; font-weight: 700; }
.fu-day.has-missing, .fu-dot.has-missing { box-shadow: inset 0 0 0 1.5px var(--warn); color: var(--warn); font-weight: 700; }
.fu-day.has-conflict, .fu-dot.has-conflict { background: color-mix(in srgb, var(--warn) 22%, transparent); box-shadow: inset 0 0 0 1.5px var(--warn); color: var(--ink-1); font-weight: 700; }
.fu-legend { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s16); font-size: var(--t-11); color: var(--ink-3); }
.fu-legend span { display: inline-flex; align-items: center; gap: 5px; }
.fu-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }

/* The finder */
.fu-dayfilter { margin-bottom: var(--s8); }
.fu-series { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s8); }
.fu-serie { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: var(--s8) var(--s12); border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface); color: var(--ink-1); font: inherit; text-align: left; cursor: pointer; }
.fu-serie:hover { border-color: var(--accent); }
.fu-serie.is-on { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); background: var(--accent-dim); }
.fu-serie-head { display: flex; align-items: center; gap: var(--s8); font-size: var(--t-13); }
.fu-serie-when { flex: 1; min-width: 0; }
.fu-serie-current { padding: 1px 6px; border-radius: 999px; background: var(--bg-inset); font-size: var(--t-11); color: var(--ink-2); }
.fu-serie-score { flex-shrink: 0; padding: 1px 8px; border-radius: 999px; font-size: var(--t-11); font-weight: 700; background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--ink-1); }
.fu-serie-score.is-most { background: color-mix(in srgb, var(--ok) 14%, transparent); }
.fu-serie-score.is-all { background: var(--ok); color: #fff; }
.fu-serie-sub { font-size: var(--t-11); color: var(--ink-3); }
.fu-serie-strip { display: flex; gap: 2px; }
.fu-occ { flex: 1; min-width: 0; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 3px; background: color-mix(in srgb, var(--ok) 20%, transparent); }
.fu-occ.is-busy { background: color-mix(in srgb, var(--warn) 45%, transparent); }
.fu-occ-date { font-size: 9px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.fu-serie-detail { display: flex; flex-direction: column; gap: var(--s8); padding: var(--s8) 0 var(--s4); }
.fu-matrix { display: grid; gap: 2px; align-items: center; }
.fu-matrix-who { font-size: var(--t-11); font-weight: 700; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fu-matrix-cell { height: 10px; border-radius: 2px; background: color-mix(in srgb, var(--ok) 22%, transparent); }
.fu-matrix-cell.is-busy { background: var(--warn); }
.fu-matrix-cell.is-unknown { background: var(--line); }
.fu-more { align-self: center; margin-top: var(--s8); }
.fu-finder .fu-months { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* ── The Accord (components/AccordView, MyAccordRequests) and the COPIL's verdict ── */
.stage-step.is-gated .stage-name { color: var(--ink-3); }
.stage-step.is-gated .stage-dot { border-style: dashed; }
.copil-verdict-badge { white-space: nowrap; }
.accord-count { font-weight: 400; font-size: var(--t-12); color: var(--ink-3); margin-left: var(--s8); }
.accord-sub-label { font-size: var(--t-12); font-weight: 600; color: var(--ink-1); margin-bottom: var(--s4); }
.accord-link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-align: left; }
.accord-link:hover { text-decoration: underline; }
.accord-quote { color: var(--ink-2); font-size: var(--t-13); white-space: pre-wrap; }

.accord-prop { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: var(--s8) var(--s16); margin: 0; }
.accord-prop-row { display: contents; }
.accord-prop dt { font-size: var(--t-12); font-weight: 600; color: var(--ink-3); }
.accord-prop dd { margin: 0; font-size: var(--t-13); color: var(--ink-1); white-space: pre-wrap; min-width: 0; }

.accord-team { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.accord-person { padding: var(--s12) 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s8); }
.accord-person:first-child { border-top: 0; padding-top: 0; }
.accord-person-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) 9.5em 15.5em; gap: var(--s12); align-items: baseline; }
.accord-person-main .accord-chip { justify-self: end; }
.accord-person-name { font-weight: 600; color: var(--ink-1); min-width: 0; }
.accord-person-role { color: var(--ink-2); font-size: var(--t-13); min-width: 0; }
.accord-person-time { color: var(--ink-2); font-size: var(--t-13); font-variant-numeric: tabular-nums; }
.accord-person-answer { display: flex; flex-wrap: wrap; gap: var(--s8); align-items: baseline; font-size: var(--t-13); padding-left: var(--s16); border-left: 2px solid var(--line); }
.accord-person-actions { display: flex; flex-wrap: wrap; gap: var(--s8); }
/* The Accord's people as cards: who (name, role, time), their answer, then their part in the plan. */
.accord-team--cards { gap: var(--s12); }
.accord-team--cards .accord-person, .accord-team--cards .accord-person:first-child { border: 1px solid var(--line); border-radius: var(--r-md, 6px); padding: var(--s16); gap: var(--s12); background: var(--surface); }
.accord-person-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s12); }
.accord-person-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.accord-person-head .accord-person-name { font-size: var(--t-15); }
.accord-person-meta { font-size: var(--t-13); color: var(--ink-2); }
.accord-person-meta .accord-person-time { color: var(--ink-1); }
/* Who does what, from the plan's milestones (utils/accordWork): milestone · the person's part · end date. */
.accord-work { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: var(--t-13); line-height: 1.45; background: var(--bg); border-radius: var(--r-md, 6px); }
.accord-work th { text-align: left; font-size: var(--t-11); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); padding: var(--s8) var(--s12) var(--s4); }
.accord-work td { padding: var(--s8) var(--s12); color: var(--ink-1); vertical-align: top; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.accord-work th:first-child { width: 34%; }
.accord-person-actions:empty { display: none; }
.accord-work .is-date { width: 8.5em; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.accord-work-ms { font-weight: 600; }
.accord-work-empty { color: var(--ink-2); font-style: italic; }
.accord-work-none { margin: 0; font-size: var(--t-13); color: var(--ink-2); }
.accord-banner .accord-work { background: var(--surface); }
.accord-work-outside { margin: var(--s12) 0 0; font-size: var(--t-13); color: var(--warn); }
@media (max-width: 720px) { .accord-person-main { grid-template-columns: 1fr max-content; } }

.accord-chip { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-12); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.accord-chip.is-agreed { border-color: var(--ok); color: var(--ok); background: var(--ok-dim); }
.accord-chip.is-pending { border-color: var(--warn); color: var(--warn); background: var(--warn-dim); }
.accord-chip.is-counter { border-color: var(--accent-mid); color: var(--accent); background: var(--accent-dim); }
.accord-chip.is-declined { border-color: var(--err); color: var(--err); background: var(--err-dim); }
.accord-chip.is-draft { color: var(--ink-3); border-style: dashed; }

.accord-answer { display: flex; flex-direction: column; gap: var(--s8); }
.accord-answer-ask { margin: 0; font-size: var(--t-13); color: var(--ink-1); }
.accord-answer-actions { display: flex; flex-wrap: wrap; gap: var(--s8); }
.accord-answer-form { display: flex; flex-direction: column; gap: var(--s8); }
.accord-pct { display: inline-flex; align-items: baseline; gap: var(--s8); font-size: var(--t-13); color: var(--ink-2); }
.accord-pct input { width: 4em; }

.accord-banner, .accord-mine { border: 1px solid var(--accent-mid); background: var(--accent-dim); border-radius: var(--r-md, 6px); padding: var(--s12) var(--s16); margin-bottom: var(--s16); display: flex; flex-direction: column; gap: var(--s12); }
.accord-mine { margin: var(--s12) 0; }
.accord-banner-title { font-weight: 600; color: var(--accent); }
.accord-mine-item, .accord-banner-item { display: flex; flex-direction: column; gap: var(--s8); padding-top: var(--s8); border-top: 1px solid var(--accent-mid); }
.accord-mine-item:first-of-type, .accord-banner-item:first-of-type { border-top: 0; padding-top: 0; }
.accord-mine-head { display: flex; flex-wrap: wrap; gap: var(--s8); align-items: baseline; }
.accord-mine-project { font-weight: 600; color: var(--ink-1); text-decoration: none; }
.accord-mine-project:hover { text-decoration: underline; }

.accord-changes { margin-top: var(--s16); }
.accord-copil-now { margin: 0 0 var(--s4); display: flex; gap: var(--s8); align-items: baseline; }
.accord-question { margin-top: var(--s12); display: flex; flex-direction: column; gap: var(--s8); padding: var(--s12); background: var(--warn-dim); border-radius: var(--r-md, 6px); }
.accord-verdicts { list-style: none; margin: var(--s12) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s8); font-size: var(--t-13); }
.copil-decision.is-v-approved { color: var(--ok); }
.copil-decision.is-v-preapproved { color: var(--accent); }
.copil-decision.is-v-question { color: var(--warn); }
.copil-decision.is-v-deferred { color: var(--err); }

/* « Suivi PMO » series (FollowUpPlanner › SeriesSend) */
.fu-series { margin-top: var(--s12); padding-top: var(--s12); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s8); }
.fu-series-body { display: flex; flex-wrap: wrap; gap: var(--s8); align-items: center; }
.fu-series-sent { display: inline-flex; gap: 4px; align-items: center; color: var(--ok); font-size: var(--t-13); }
.fu-series-done { color: var(--ok); font-size: var(--t-13); }
.fu-series-form { display: flex; flex-direction: column; gap: var(--s8); padding: var(--s12); background: var(--bg-inset); border-radius: var(--r-md, 6px); }
.fu-series-people { display: flex; flex-wrap: wrap; gap: var(--s8) var(--s16); align-items: center; }
.fu-series-people .accord-sub-label { flex-basis: 100%; margin: 0; }
.fu-series-person { display: inline-flex; gap: 6px; align-items: center; font-size: var(--t-13); color: var(--ink-1); }
.fu-series-add { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-3); }
.fu-series-actions { display: flex; gap: var(--s8); }

/* ── Programmes (Yves 28.11): the list, a programme's projects, the badges ── */
.prg-page { max-width: 980px; }
.prg-intro { margin: 0; color: var(--ink-2); font-size: var(--t-13); line-height: 1.5; }
.prg-new { display: flex; gap: var(--s8); margin-bottom: var(--s16); max-width: 560px; }
.prg-new .form-input { flex: 1; }
.prg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s8); }
.prg-item { display: flex; flex-direction: column; gap: 6px; padding: var(--s12) var(--s16); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; text-decoration: none; }
.prg-item:hover { border-color: var(--accent); }
.prg-item.is-blocked { border-left: 3px solid var(--err); }
.prg-item-top { display: flex; align-items: center; gap: var(--s8); flex-wrap: wrap; }
.prg-item-name { font-weight: 600; color: var(--ink-1); }
.prg-stage { margin-left: auto; font-size: var(--t-12); color: var(--ink-2); }
.prg-item-meta { display: flex; gap: var(--s12); flex-wrap: wrap; font-size: var(--t-12); color: var(--ink-3); }
.prg-summary { display: inline-flex; gap: var(--s8); flex-wrap: wrap; align-items: center; font-size: var(--t-12); color: var(--ink-2); }
.prg-summary-row { margin: 0 0 var(--s12); }
.prg-help { margin: 0 0 var(--s12); }
.prg-flag { display: inline-flex; padding: 0 6px; border-radius: 999px; font-size: var(--t-11); font-weight: 600; white-space: nowrap; }
.prg-flag.is-blocked { color: var(--err); background: var(--err-dim, transparent); }
.prg-flag.is-late { color: var(--warn); background: var(--warn-dim, transparent); }
.prg-table { width: 100%; border-collapse: collapse; font-size: var(--t-13); }
.prg-table th { text-align: left; font-size: var(--t-11); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.prg-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prg-table td > * + * { margin-top: 2px; }
.prg-table td > .prg-flag, .prg-table td > .prg-meta { display: block; width: fit-content; }
.prg-table tr.is-blocked td:first-child { box-shadow: inset 3px 0 0 var(--err); }
.prg-proj { display: flex; align-items: baseline; gap: 6px; color: var(--ink-1); text-decoration: none; font-weight: 600; }
.prg-proj:hover .prg-proj-name { text-decoration: underline; }
.prg-meta { font-size: var(--t-12); color: var(--ink-3); }
.prg-next { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.prg-next.is-late .tlt-ms-num { background: var(--err-dim, transparent); color: var(--err); }
.prg-next.is-late .prg-meta { color: var(--err); }
.prg-actions { width: 40px; white-space: nowrap; text-align: right; }
.prg-actions .btn svg { flex-shrink: 0; }
.prg-progress { white-space: nowrap; }
.prg-attach { display: flex; gap: var(--s8); margin-top: var(--s12); max-width: 560px; }
.prg-attach .form-input { flex: 1; min-width: 0; }
.prg-badge { text-decoration: none; }
a.prg-badge:hover { text-decoration: underline; }
.prg-filter-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border: 1px solid var(--accent); border-radius: 999px; font-size: var(--t-12); font-weight: 600; }
.prg-filter-chip a { color: var(--accent); text-decoration: none; }
@media (max-width: 760px) {
  .prg-table thead { display: none; }
  .prg-table, .prg-table tbody, .prg-table tr, .prg-table td { display: block; }
  .prg-table tr { padding: var(--s8) 0; border-bottom: 1px solid var(--line); }
  .prg-table td { border: 0; padding: 2px 0; }
}
.prg-people { list-style: none; margin: 0; padding: 0; }
.prg-people > li { display: grid; grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); gap: var(--s8) var(--s12); padding: 8px 0; border-bottom: 1px solid var(--line); align-items: start; }
.prg-people > li:last-child { border-bottom: 0; }
.prg-person { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.prg-person-name { font-weight: 600; color: var(--ink-1); font-size: var(--t-13); }
.prg-flag.is-team { color: var(--accent); background: var(--accent-dim, transparent); }
.prg-person-projects { display: flex; flex-wrap: wrap; gap: 6px; }
.prg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 2px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--t-12); color: var(--ink-2); text-decoration: none; background: var(--surface); }
.prg-chip:hover { border-color: var(--accent); color: var(--ink-1); }
@media (max-width: 760px) { .prg-people > li { grid-template-columns: 1fr; } }
/* Programmes: card tag, eyebrow, deliverable coverage, hours, session invitees */
.prg-tag { display: inline-flex; margin-left: 6px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--accent); color: var(--accent); font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--t-10, 10px); font-weight: 600; vertical-align: 1px; }
.prg-tag.is-programme { background: var(--accent); color: var(--surface); font-family: inherit; text-transform: uppercase; letter-spacing: 0.04em; }
.prg-eyebrow { color: var(--accent); text-decoration: none; font-weight: 700; }
.prg-eyebrow:hover { text-decoration: underline; }
.prg-cover { list-style: none; margin: 0; padding: 0; }
.prg-cover > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s8) var(--s12); padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; }
.prg-cover > li:last-child { border-bottom: 0; }
.prg-cover-title { font-size: var(--t-13); color: var(--ink-1); }
.prg-cover-by { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.prg-cover-pick { width: auto; min-width: 0; max-width: 220px; padding: 2px 6px; font-size: var(--t-12); }
.prg-chip a { display: inline-flex; text-decoration: none; }
.prg-chip-x { display: inline-flex; padding: 0; border: 0; background: none; color: var(--ink-3); cursor: pointer; }
.prg-chip-x:hover { color: var(--err); }
.prg-hours { margin: 0 0 var(--s12); font-size: var(--t-13); color: var(--ink-1); font-weight: 600; }
.meet-prg { margin: var(--s8) 0; padding: var(--s8); border: 1px dashed var(--line); border-radius: 8px; }
.meet-prg-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s8); font-size: var(--t-12); font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.meet-prg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.meet-prg-person { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font-size: var(--t-12); }
.meet-prg-person:hover { border-color: var(--accent); }
.meet-prg-person .meet-role { color: var(--ink-3); }
@media (max-width: 760px) { .prg-cover > li { grid-template-columns: 1fr; } .prg-cover-by { justify-content: flex-start; } }

/* ── Nouveautés (pages/ReleasesPage.tsx): the release at the foot of the sidebar, and each release's notes ── */
.sidebar-release {
  margin-top: auto;
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s8);
  padding: var(--s12) var(--s16);
  border-top: 1px solid var(--line);
  font-size: var(--t-12); color: var(--ink-3); text-decoration: none;
}
.sidebar-release:hover, .sidebar-release.active { color: var(--ink); }
.sidebar-release-version { font-variant-numeric: tabular-nums; }
.rel-page { max-width: none; container-type: inline-size; }
/* The notes, and beside them PMO in figures (pages/ReleaseStats.tsx): it stays in view while the notes scroll. */
.rel-layout { display: grid; grid-template-columns: minmax(0, 820px); gap: var(--s24); align-items: start; }
/* The notes keep their 820px first; the figures take what is left, between 300 and 400px. */
.rel-layout.has-stats { grid-template-columns: minmax(0, 820px) clamp(300px, calc(100cqw - 820px - var(--s24)), 400px); }
.rel-list { min-width: 0; }
.rel-stats { position: sticky; top: var(--s16); min-width: 0; max-height: calc(100vh - var(--rel-top, calc(var(--topbar-h, 48px) + var(--s16))) - var(--dev-env-banner-h, 0px) - var(--s16)); overflow-y: auto; scrollbar-width: thin; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r1); }
/* A narrow window: one column. The figures come first but stay short, so the notes are still on the first screen:
   the week and the totals, the charts with « Voir plus de chiffres ». */
@container (max-width: 900px) {
  .rel-layout.has-stats { grid-template-columns: minmax(0, 1fr); }
  .rel-stats { position: static; max-height: none; order: -1; }
  .rel-stats:not(.is-more) .rel-st-charts { display: none; }
  .rel-stats:not(.is-more) .rel-st-sub { margin-bottom: 0; }
}
@container (min-width: 560px) and (max-width: 900px) { .rel-stats .rel-st-tiles { grid-template-columns: repeat(4, 1fr); } }
.rel-st-sec { padding: var(--s12) var(--s16); border-top: 1px solid var(--line); }
.rel-st-sec:first-child { border-top: 0; }
.rel-st-label { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s8); margin: 0 0 10px; font-size: var(--t-10); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-1); }
.rel-st-label small { font-size: var(--t-11); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.rel-st-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s12) var(--s16); }
.rel-st-val-big { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink-1); }
.rel-st-name { margin-top: 1px; font-size: var(--t-12); color: var(--ink-2); }
.rel-st-cmp { margin-top: 3px; font-size: var(--t-11); line-height: 1.35; color: var(--ink-3); }
.rel-st-hero { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s4) 14px; font-size: var(--t-13); color: var(--ink-2); }
.rel-st-hero-n { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink-1); }
.rel-st-hero strong { font-weight: 600; color: var(--ink-1); }
.rel-st-sub { margin: var(--s4) 0 10px; font-size: var(--t-12); color: var(--ink-2); }
.rel-st-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s8); margin: var(--s8) 0 2px; font-size: var(--t-12); color: var(--ink-2); }
.rel-st-legend { display: flex; gap: var(--s12); font-size: var(--t-11); }
.rel-st-legend i, .rel-st-tip-row i { display: inline-block; background: var(--accent); }
.rel-st-legend i { width: 8px; height: 8px; margin-right: 5px; border-radius: var(--r1); }
.rel-st-legend i.is-out, .rel-st-tip-row i.is-out { background: var(--ink-3); }
.rel-st-chart { display: block; width: 100%; cursor: crosshair; outline: none; touch-action: pan-y; }
.rel-st-chart:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rel-st-chart svg { display: block; }
.rel-st-chart text { font-family: var(--font); font-size: 10.5px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.rel-st-grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.rel-st-base { stroke: var(--line-strong); stroke-width: 1; shape-rendering: crispEdges; }
.rel-st-area { fill: var(--accent); opacity: 0.1; }
.rel-st-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rel-st-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.rel-st-cross { stroke: var(--ink-3); stroke-width: 1; shape-rendering: crispEdges; }
.rel-st-bar { fill: var(--accent); }
.rel-st-bar.is-out { fill: var(--ink-3); }
.rel-st-chart .is-dim { opacity: 0.45; }
.rel-st-chart text.rel-st-val { fill: var(--ink-1); font-weight: 600; }
.rel-st-since { margin: 0 0 var(--s4); font-size: var(--t-12); color: var(--ink-2); }
.rel-st-since strong { font-weight: 600; color: var(--ink-1); }
.rel-st-more { margin-left: calc(-1 * var(--s8)); }
.rel-st-extra .rel-st-label { margin: 14px 0 var(--s8); }
.rel-st-parts { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; gap: 7px 10px; align-items: center; font-size: var(--t-12); color: var(--ink-2); }
.rel-st-track > span { display: block; height: 8px; min-width: 2px; border-radius: 0 var(--r1) var(--r1) 0; background: var(--accent); }
.rel-st-part-val { text-align: right; white-space: nowrap; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.rel-st-part-val span { color: var(--ink-3); }
.rel-st-table { overflow-x: auto; scrollbar-width: thin; }
.rel-st-table table { width: 100%; border-collapse: collapse; font-size: var(--t-11); font-variant-numeric: tabular-nums; }
.rel-st-table th, .rel-st-table td { padding: 3px var(--s4); text-align: right; border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.rel-st-table th { font-weight: 600; line-height: 1.25; vertical-align: bottom; white-space: normal; color: var(--ink-1); }
.rel-st-table th:first-child, .rel-st-table td:first-child { padding-left: 0; text-align: left; }
.rel-st-table th:last-child, .rel-st-table td:last-child { padding-right: 0; }
.rel-st-note { margin: 10px 0 0; font-size: var(--t-11); line-height: 1.5; color: var(--ink-3); }
/* The hovered week's figures: drawn on the body (the page is a size container, which would hold a fixed box). */
.rel-st-tip { position: fixed; z-index: 400; pointer-events: none; width: max-content; max-width: 240px; padding: var(--s8) 10px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r1); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); font-size: var(--t-12); color: var(--ink-2); }
.rel-st-tip-title { margin-bottom: var(--s4); font-size: var(--t-11); color: var(--ink-3); }
.rel-st-tip-row { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.rel-st-tip-row i { width: 10px; height: 2px; }
.rel-st-tip-row b { font-weight: 600; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.rel-release { margin-bottom: var(--s16); }
.rel-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s12); margin: 0 0 var(--s8); font-size: var(--t-15); }
.rel-version { font-weight: 600; }
.rel-date { font-size: var(--t-12); font-weight: 400; color: var(--ink-3); }
.rel-notes h3 { font-size: var(--t-13); font-weight: 600; margin: var(--s16) 0 var(--s4); }
.rel-notes ul { margin: 0; padding-left: var(--s24); }
.rel-notes li { margin: var(--s4) 0; line-height: 1.5; }
.rel-notes p { margin: var(--s8) 0; }
.rel-now { margin: var(--s8) 0 0; font-size: var(--t-13); color: var(--ink-2); }
.rel-bump { font-size: var(--t-11); font-weight: 500; padding: 1px var(--s8); border-radius: 999px; border: 1px solid var(--line); color: var(--ink-3); }
.rel-bump.is-milestone, .rel-bump.is-first { color: var(--ink); border-color: var(--ink-3); }
.rel-notes li strong { font-weight: 600; color: var(--ink); }
.rel-notes li { color: var(--ink-2); }

/* What a project touches (functions, processes): project section, deliverable cards, tasks */
.impacts { display: flex; flex-direction: column; gap: var(--s12); }
.impacts > .btn { align-self: flex-start; }
.impacts-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s16, 16px); }
.impacts-column { display: flex; flex-direction: column; gap: var(--s8); min-width: 0; }
.impacts-title { margin: 0; font-size: var(--t-12); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.impact-row { padding: var(--s8) var(--s12); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; gap: 4px; font-size: var(--t-12); min-width: 0; }
.impact-row.is-done { border-color: var(--ok, #22a06b); }
.impact-row.is-editing { border-style: dashed; }
.impact-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s8); }
.impact-tag { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.impact-tag.is-open { color: var(--warn); }
.impact-what { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.impact-status, .impact-owners, .impact-actions, .impact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s12); }
.impact-links { gap: 4px var(--s8); }
.impact-task { display: inline-flex; align-items: center; gap: 2px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; }
.impact-deliv { width: auto; max-width: 100%; font-size: 11px; padding: 2px 6px; height: auto; }
.impact-form { padding: var(--s8) var(--s12); border: 1px dashed var(--line-strong); border-radius: 6px; display: flex; flex-direction: column; gap: var(--s8); font-size: var(--t-12); }
.impact-choice { display: flex; flex-wrap: wrap; gap: 6px; }
.impact-choice label { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.impact-choice label.active { border-color: var(--accent); color: var(--accent); }
.impact-choice input { margin: 0; }
.impact-field { display: flex; flex-direction: column; gap: 4px; }
.impact-chosen { display: flex; align-items: center; gap: 6px; }
.impact-results { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; }
.impact-results button { text-align: left; padding: 6px 10px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; color: var(--ink-1); font-size: var(--t-12); }
.impact-results button:hover:not(:disabled) { background: var(--bg-inset, var(--line)); }
.impact-results button:disabled { opacity: .5; cursor: default; }
.impact-remark { display: flex; flex-direction: column; gap: 6px; }
.impact-form code, .impact-row code, .impact-results code { font-size: 11px; color: var(--ink-2); margin-right: 2px; }
.deliv-impacts { margin-top: var(--s8); display: flex; flex-direction: column; gap: 6px; }
.deliv-impacts-head { display: flex; align-items: baseline; gap: var(--s8); }
.task-impacts { display: flex; flex-direction: column; gap: 6px; }
.impact-ref { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s8); font-size: 11px; }
.impact-pin { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s8); }
.impact-mentions { display: flex; flex-direction: column; gap: var(--s8); padding-top: var(--s8); border-top: 1px solid var(--line); }
.impact-mention { padding: var(--s8) var(--s12); border: 1px dashed var(--line-strong); border-radius: 6px; display: flex; flex-direction: column; gap: 4px; font-size: var(--t-12); min-width: 0; }

/* ══════════════════════════════════════════════════
   Task window: the task page's layout in a window (content left, details
   and actions right), and documents as one dense row each.
   ══════════════════════════════════════════════════ */
.td-modal { width: 94%; }
.td-modal > .modal-body { background: var(--bg); }
.td-modal-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s16); }
.td-modal .pd-main, .td-modal .pd-side { gap: var(--s12); }
.td-modal .pd-card-title { font-size: var(--t-14); }
.td-modal .pd-card-head { min-height: 40px; }
.td-modal .pd-card-body { padding: 12px 16px; }
.td-modal .pd-card-body > .vjt-todos, .td-modal .pd-card-body > .docs { margin: 0; padding: 0; border: 0; }
.td-modal-lead > .form-group:last-child { margin-bottom: 0; }
.td-modal .pd-side .selectable-group { gap: 4px; }
.td-modal .pd-side .selectable { padding: 3px 10px; }
@media (max-width: 860px) { .td-modal-layout { grid-template-columns: minmax(0, 1fr); } }
/* The actions, one under the other, each a full row. */
.td-actions { display: flex; flex-direction: column; gap: 2px; margin: -4px -8px; }
.td-actions .btn { justify-content: flex-start; gap: var(--s8); width: 100%; padding: 6px 8px; font-size: var(--t-12); font-weight: 500; border-color: transparent; background: transparent; text-align: left; }
.td-actions .btn:hover { background: var(--bg-inset); }
.td-actions .td-delete { color: var(--err); }
.td-actions .td-delete:hover { border-color: transparent; background: var(--err-dim); }

/* To-do list: the add line is the next item, an empty box and a field. */
.vjt-todo-add { gap: var(--s8); margin-top: var(--s4); padding: 2px 0; }
.vjt-todo-add-box { flex: none; width: 14px; height: 14px; border: 1.5px dashed var(--line-strong); border-radius: var(--r2); }
.vjt-todo-add textarea { border-bottom-color: transparent; padding: 2px 0; }
.vjt-todo-add textarea:focus { border-bottom-color: var(--accent); }
.vjt-todo-add-btn { flex: none; width: 24px; height: 24px; background: transparent; color: var(--accent); border: 1px solid var(--line); }
.vjt-todo-add-btn:disabled { color: var(--ink-3); border-color: transparent; opacity: 0.7; }
.vjt-todo-empty { margin: 2px 0 0 22px; font-size: var(--t-11); }

/* Documents: one row each (symbol of the file type, name, version and day); the rest opens on request. */
.docs-row { flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 0; padding: 4px 0; border-bottom: 1px solid var(--line); }
.docs > .docs-row:last-of-type { border-bottom: 0; }
.docs--compact .docs-row { padding: 2px 0; border-bottom: 0; }
.docs-row-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; }
.docs-row .docs-item-main { flex: 1 1 140px; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.docs-row .docs-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.docs-row-short { flex: none; font-size: var(--t-11); color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.docs-row-where { flex: none; padding: 0 6px; border: 1px solid var(--line); border-radius: var(--r2); font-size: var(--t-11); color: var(--ink-2); white-space: nowrap; }
.docs-more-btn { flex: none; width: 22px; height: 22px; background: transparent; color: var(--ink-3); }
.docs-more-btn:hover { background: transparent; color: var(--accent); }
.docs-row-more { flex: 0 0 100%; padding: 0 0 4px 28px; overflow-wrap: anywhere; }
.pdp-doc-row.docs-row { padding: 0; }
.pdp-doc-row.docs-row .pdp-doc { padding-block: 5px; }
.pdp-doc-row.docs-row .pdp-doc-main { justify-content: center; }
.docs-summary-head .info-tip { margin-left: 6px; }
.file-type-icon { display: block; flex: none; }
.pdp-doc-row.docs-row .pdp-doc { flex: 1 1 110px; min-width: 90px; }
.docs-row-tools { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.pdp-doc-row.docs-row .docs-row-more { padding-left: 30px; }
.td-modal-title { font-size: var(--t-15); }

/* Accord de l'équipe: name, role and time on one line; the person's milestones on white, numbered n (of total). */
.accord-team--cards .accord-person-id { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: var(--s12); row-gap: 2px; }
.accord-work { background: transparent; border-radius: 0; }
.accord-work th { border-bottom: 1px solid var(--line-strong); }
.accord-work th:first-child, .accord-work td:first-child { padding-left: 0; }
.accord-work th:last-child, .accord-work td:last-child { padding-right: 0; }
.accord-work tbody tr:first-child td { border-top: 0; }
.accord-work-n { display: inline-block; margin-right: var(--s8); font-family: var(--font-mono); font-size: var(--t-12); font-weight: 500; color: var(--ink-3); white-space: nowrap; }
/* The milestone's number has its own column (« Jalon »: 1 (4)), before its name. */
.accord-work .is-n { width: 5.5em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.accord-work td.is-n { font-family: var(--font-mono); font-size: var(--t-12); color: var(--ink-2); }
.accord-work th:first-child { width: 5.5em; }
.accord-work th:nth-child(2) { width: 30%; }
/* What is proposed: a thin grey line between its parts (problem, goal, scope…). */
.accord-prop { gap: 0; }
.accord-prop dt { padding: var(--s8) var(--s16) var(--s8) 0; }
.accord-prop dd { padding: var(--s8) 0; }
.accord-prop-row + .accord-prop-row > dt, .accord-prop-row + .accord-prop-row > dd { border-top: 1px solid var(--line); }
.accord-prop-row:first-child > dt, .accord-prop-row:first-child > dd { padding-top: 0; }
.accord-prop-row:last-child > dt, .accord-prop-row:last-child > dd { padding-bottom: 0; }
/* Plan et exécution: « Voir le détail » sits right beside the milestone's title. */
.vjt-ms-titleline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s12); }
.vjt-ms-titleline .vjt-ms-title { min-width: 0; }
/* Documents du projet, full list: the dense rows of the side summary, in a card of its own. */
.pd-card .docs-register > .docs-register-list { order: 3; flex: 1 1 100%; }
.docs-register-title { display: flex; align-items: center; gap: 6px; }
.docs-row-extra { flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 0 0 4px 30px; }
.docs-row-extra:empty { display: none; }
.docs-row-attach { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.docs-row-attach > :first-child { width: min(420px, 100%); }
.docs-register-list .docs-row-tools .docs-attach-btn { white-space: nowrap; }
/* Accord: the three answers from the start; « autre chose » = another time or another part. */
.accord-answer-noting { font-size: var(--t-12); color: var(--ink-2); }
.accord-person .accord-answer:has(> .accord-answer-noting) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s8); }
.accord-counter-kind { align-self: flex-start; }
/* Documents du projet, rebuilt: head (title | view), one toolbar (add | filters), the list, Penpot at the foot. */
.pd-card .docs-register.docs-reg { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: var(--s12); }
.pd-card .docs-register.docs-reg > * { order: 0; flex: none; margin: 0; }
.docs-reg-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s8) var(--s12); }
.docs-reg-head .docs-register-title { margin: 0 !important; font-size: var(--t-13); font-weight: 600; color: var(--ink-1); }
.docs-reg-tools { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s8) var(--s12); }
.docs-reg-add { flex: 1 1 240px; min-width: 0; }
.docs-reg-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s8); margin-left: auto; }
.docs-reg-foot { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s8); padding-top: var(--s12); border-top: 1px solid var(--line); }
.docs-reg-foot:not(:has(button, a)) { display: none; }
.docs-reg-foot .penpot-bar { flex: 1 1 260px; margin: 0; }
.docs-reg-foot .penpot-space { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
/* Documents du projet: Penpot at the beginning — settings on one line, canvases as tiles, four to a row. */
.docs-reg-penpot { display: flex; flex-direction: column; gap: var(--s8); padding-bottom: var(--s12); border-bottom: 1px solid var(--line); }
.docs-reg-penpot:not(:has(button, a)) { display: none; }
.docs-reg-penpot-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s8); }
.penpot-tiles-label { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font-size: var(--t-12); font-weight: 600; color: var(--ink-2); }
.docs-reg-penpot-head .penpot-bar { display: contents; }
.docs-reg-penpot-head .penpot-bar > :not(.docs-actions) { flex: 1 1 100%; order: 5; }
.docs-reg-penpot-head .penpot-space { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.penpot-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s12); }
@media (max-width: 720px) { .penpot-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.penpot-tile { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-md, 6px); background: var(--surface); color: var(--ink-1); text-decoration: none; }
.penpot-tile:hover { border-color: var(--accent); }
.penpot-tile-thumb { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r1); background: var(--bg-inset, var(--bg)); margin-bottom: 4px; }
.penpot-tile-thumb--empty { display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.penpot-tile-name { font-size: var(--t-13); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.penpot-tile-date { font-size: var(--t-11); color: var(--ink-3); }
/* Dossiers view, in the same dense style as the list: one line per folder or file, thin lines, tools on the right. */
.docs-reg .docs-folder-list { border: 0; border-radius: 0; }
.docs-reg .docs-folder-row { flex-wrap: nowrap; align-items: center; padding: 5px 0; column-gap: 8px; }
.docs-reg .docs-folder-row--compact { padding: 4px 0; border-bottom: 1px solid var(--line); }
.docs-reg .docs-folders-section > .docs-folder-row--compact:last-child { border-bottom: 0; }
.docs-reg .docs-folder-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; margin-top: 0; }
.docs-reg .docs-folder-main { flex: 1 1 auto; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 0; }
.docs-reg .docs-folder-name-line { flex: 1 1 160px; }
.docs-reg .docs-folder-main > .docs-meta { flex: none; margin-left: auto; font-size: var(--t-11); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.docs-reg .docs-folder-open { font-weight: 500; }
.docs-reg .docs-folder-actions { flex-wrap: nowrap; flex: none; }
.docs-reg .docs-folder-actions .btn-icon { width: 22px; height: 22px; }
@media (hover: hover) {
  .docs-reg .docs-folder-actions { opacity: 0; transition: opacity 0.12s; }
  .docs-reg .docs-folder-row:hover .docs-folder-actions, .docs-reg .docs-folder-row:focus-within .docs-folder-actions { opacity: 1; }
}
/* Documents du projet: folders as a tree (unfolded or folded); view and sort on the left, adding on the right. */
.docs-tree-tools { justify-content: space-between; align-items: flex-start; gap: var(--s8) var(--s12); }
.docs-tree-view { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s8); }
.docs-tree-add { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; margin-left: auto; }
.docs-tree-add .docs-link-form { flex: 1 1 100%; }
.docs-tree.is-drop { box-shadow: inset 0 0 0 2px var(--accent); }
.docs-reg .docs-tree .docs-folder-row { border-bottom: 1px solid var(--line); }
.docs-reg .docs-tree > div + div, .docs-reg .docs-tree div + div { border-top: 0; }
.docs-tree-toggle { flex: none; width: 20px; height: 20px; background: transparent; color: var(--ink-3); }
.docs-tree-toggle:hover { background: transparent; color: var(--accent); }
.docs-reg .docs-folder-row--file > .docs-folder-icon { margin-left: 28px; }
.docs-reg .docs-folder-main > .docs-row-short { flex: none; margin-left: auto; }
.docs-reg .docs-folder-main > .docs-row-short + .docs-meta { margin-left: 0; }
.docs-reg-tools .docs-reg-filters { margin-left: 0; }
.docs-reg-tools .docs-reg-add { flex: 0 1 auto; margin-left: auto; }
.docs-reg-tools .docs-reg-add .docs-actions { justify-content: flex-end; }
/* Folder tree: note, then version · date, then « Versions » and download — all on the right of the line. */
.docs-reg .docs-folder-main > .docs-meta { margin-left: auto; }
.docs-reg .docs-folder-main > .docs-meta + .docs-row-short { margin-left: 0; }
.docs-row-vtools { flex: none; display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 104px; }
.docs-row-vtools:empty { min-width: 104px; }
.docs-tree-view .filter-select, .docs-tree-view .fs-root { flex: none; }
/* « + ▾ »: the plus adds at once, the chevron opens every way to add. */
.split-add { position: relative; display: inline-flex; flex: none; }
.split-add-main { display: inline-flex; align-items: center; gap: 4px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.split-add-more { padding-inline: 5px; margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.split-add-menu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 30; min-width: 220px; padding: 4px; background: var(--surface); border: 1px solid var(--line-strong, var(--line)); border-radius: var(--r-md, 6px); box-shadow: var(--shadow-2, 0 6px 20px rgba(0,0,0,.12)); display: flex; flex-direction: column; }
.split-add-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 0; border-radius: var(--r1); background: none; font: inherit; font-size: var(--t-13); color: var(--ink-1); text-align: left; text-decoration: none; cursor: pointer; white-space: nowrap; }
.split-add-item:hover:not(:disabled) { background: var(--accent-dim); color: var(--accent); }
.split-add-item:disabled { color: var(--ink-3); cursor: default; }
/* Documents du projet, cleaner: add in the head, the table's own head row, the library at the foot. */
.docs-reg-addslot { display: flex; align-items: center; gap: var(--s8); margin-left: auto; }
.docs-reg-penpot-head .penpot-bar > .split-add { flex: none; order: 0; }
.docs-tree-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s12); padding: 0 0 6px; border-bottom: 1px solid var(--line-strong, var(--line)); font-size: var(--t-11); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.docs-tree-head-name { display: inline-flex; align-items: center; gap: var(--s12); margin-right: auto; }
.docs-tree-foldall { border: 0; background: none; padding: 0; font: inherit; font-size: var(--t-12); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--accent); cursor: pointer; }
.docs-tree-foldall:hover { text-decoration: underline; }
.docs-tree-head-filters { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s8); font-weight: 400; letter-spacing: 0; text-transform: none; }
.docs-tree-sort { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer; text-transform: uppercase; }
.docs-tree-sort svg { opacity: 0.35; }
.docs-tree-sort.active { color: var(--accent); }
.docs-tree-sort.active svg { opacity: 1; }
.docs-reg .docs-folders { gap: 0; }
.docs-reg .docs-folders > .docs-link-form, .docs-reg .docs-folders > .docs-folder-move, .docs-reg .docs-folders > .docs-folders-warn { margin-bottom: var(--s8); }
.docs-tree-foot { margin-top: var(--s12); font-size: var(--t-12); color: var(--ink-3); }
.docs-tree-foot .docs-folders-lib-name { font-weight: 400; font-size: var(--t-12); color: var(--ink-3); }
.docs-reg .docs-folders-empty { padding: var(--s12) 0; }
.docs-reg-docsline { display: flex; align-items: center; gap: var(--s8); }
.pd-card .docs-register.docs-reg > .docs-reg-docsline { margin-bottom: calc(var(--s4) - var(--s12)); }
/* Table head: sorts on the left, filters of fixed width on the right — nothing moves when a value is chosen. */
.docs-tree-head { flex-wrap: nowrap; min-height: 34px; }
.docs-tree-head-name { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; row-gap: 2px; }
.docs-tree-head-filters { flex: none; flex-wrap: nowrap; }
.docs-filter-slot { display: inline-flex; flex: none; width: 190px; }
.docs-filter-slot--wide { width: 230px; }
.docs-filter-slot > .fsel { width: 100%; }
.docs-filter-slot > .fsel > .fsel-trigger { width: 100%; max-width: none !important; justify-content: space-between; overflow: hidden; }
.docs-tree-foldall:disabled { color: var(--ink-3); cursor: default; text-decoration: none; }
@media (max-width: 720px) { .docs-tree-head { flex-wrap: wrap; } .docs-tree-head-filters { flex-wrap: wrap; } }
.docs-filter-slot > .fsel > .fsel-trigger { justify-content: flex-start; }
.docs-filter-slot > .fsel > .fsel-trigger .fsel-chevron { margin-left: auto; flex: none; }
/* Milestone dates: editing them changes neither the height nor the width of the line. */
.vjt-ms-dates:has(.vjt-ms-end-btn), .vjt-ms-dates:has(.vjt-ms-end-edit) { min-width: 292px; height: 24px; }
.vjt-ms-end-edit { height: 24px; }
.vjt-ms-end-edit .date-field { width: 8.4em; }
.vjt-ms-end-edit .date-field-input, .vjt-ms-end-edit .form-input { height: 24px; min-height: 0; padding-block: 0; padding-left: 6px; font-size: var(--t-12); line-height: 22px; }
.vjt-ms-end-edit .btn { height: 24px; min-height: 0; padding: 0 5px; }
.vjt-ms-summary { flex-wrap: wrap; }
.docs-reg-libslot { display: flex; align-items: center; margin-left: auto; }
/* Filters on the left, on their own line over « Nom » and « Modifié ». */
.docs-tree-headwrap { display: flex; flex-direction: column; gap: var(--s8); }
.docs-tree-headwrap > .docs-tree-head-filters { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: var(--s8); }
.docs-tree-head { min-height: 0; padding-bottom: 6px; }
/* Page head: section and title on one line, the explanation in an ⓘ after the title. */
.chg-titleline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
/* The section is part of the title: same font and size, only quieter. */
.chg-crumb { color: var(--ink-3); font-weight: inherit; }
.chg-crumb::after { content: '›'; margin: 0 0.4em; color: var(--ink-3); }
.chg-titleline .page-title { margin: 0; }
.chg-titleline .info-tip { align-self: center; }
.chg-page-head > .chg-titleline { margin-bottom: var(--s4); }
/* One page head everywhere: the white band of Conseil and Échéances, edge to edge, whatever the page's own width. */
.page > .chg-page-head { position: relative; z-index: 1; max-width: none; margin: calc(-1 * var(--s20)) 0 var(--s16); padding: var(--s16) 4px; }
.page > .chg-page-head::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--surface);
  box-shadow: 0 0 0 100vmax var(--surface), 0 1px 0 100vmax var(--line); clip-path: inset(0 -100vmax -1px); }
.page > .chg-page-head > .chg-titleline:last-child { margin-bottom: 0; }
.chg-page-head--row { display: flex; align-items: center; justify-content: space-between; gap: var(--s16); }
/* « Brouillon » on a task card (ticket 123). */
.task-draft-tag { display: inline-block; margin-right: 6px; padding: 0 6px; border: 1px dashed var(--ink-3); border-radius: 999px; font-size: var(--t-11); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-2); vertical-align: 1px; }
.task-draft-check { display: inline-flex; align-items: center; gap: var(--s8); font-size: var(--t-13); cursor: pointer; }
/* A slot under someone's long calendar block (ticket 129): offered, dashed, « à confirmer ». */
.meet-slot.is-maybe { border-style: dashed; }
.meet-slot-maybe { font-size: var(--t-11); color: var(--ink-3); font-style: italic; }
/* Milestone ends moved from a task's window (ticket 151). */
.ms-dates-overlay { z-index: 1200; }
.ms-dates-open { margin-top: 4px; }
.ms-dates-help { margin: 0 0 var(--s12); font-size: var(--t-13); color: var(--ink-2); line-height: 1.5; }
.ms-dates-list { display: flex; flex-direction: column; gap: 6px; }
.ms-dates-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 150px; align-items: center; gap: var(--s8); padding: 4px 6px; border-radius: 6px; }
.ms-dates-row.is-current { background: var(--bg-inset); }
.ms-dates-n { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: var(--t-12); text-align: right; }
.ms-dates-name { font-size: var(--t-13); overflow-wrap: anywhere; }
.ms-dates-here { margin-left: 8px; font-size: var(--t-11); color: var(--ink-3); }
.ms-dates-error { margin: var(--s12) 0 0; font-size: var(--t-13); color: var(--danger, #b42318); }
/* A regular slot proposed when a project leaves the inbox (ticket 130). */
.slot-prompt-project { margin: 0 0 var(--s8); font-weight: 600; font-size: var(--t-13); }
.slot-prompt-text { margin: 0 0 var(--s8); font-size: var(--t-13); color: var(--ink-2); line-height: 1.5; }
.slot-prompt-later { color: var(--ink-3); margin-bottom: 0; }

/* ══════════════════════════════════════════════════
   Submit a project (pages/SubmitProjectPage.tsx): the project page's own parts
   (header card, cards, frameless fields that grow, bottom bar) at the width of
   its main column. No boxed input here, as nowhere on a project (Yves 05.12).
   ══════════════════════════════════════════════════ */
.submit-page { max-width: 760px; }
/* A title not written yet shows its line, so one sees where to write (a project's own name shows it on hover only). */
.submit-page textarea.pd-title { border-bottom-color: var(--line); }
.submit-page textarea.pd-title::placeholder { font-weight: 400; }
.submit-page .pd-eyebrow label { cursor: text; }
/* What a submission needs: the stage bar's round mark, green with a white tick once the answer is written. */
.submit-page .stage-checklist .stage-dot svg { color: var(--surface); }
/* The explanations run to a few sentences: a wider bubble than a label's usual one. */
.submit-page .info-tip-bubble { max-width: min(380px, calc(100vw - 64px)); }
.submit-tip-example { display: block; margin-top: 6px; font-style: italic; }
.submit-page .pd-savebar .btn { display: inline-flex; align-items: center; gap: 4px; }
.submit-draft { display: flex; align-items: center; gap: var(--s8); margin: 0; }
/* « Demander à Pistache »: its remark under the answer it is about, in the look of « Aligner » (.align-*). */
.submit-remark { display: flex; align-items: flex-start; gap: 6px; font-size: var(--t-13); line-height: 1.45; }
.submit-remark svg { flex: 0 0 auto; margin-top: 3px; color: var(--ink-2); }
.submit-page .align-ok, .submit-page .align-status, .submit-page .align-error, .submit-advice { margin: 0; }
/* After the submission: what happens next, in the card's reading size. */
.submit-next { margin: 0; font-size: var(--t-14); line-height: 1.5; color: var(--ink-1); }
.submit-ok { color: var(--ok); }
/* Required fields still empty after a refused action (ticket 121): marked until filled. */
.req-missing { display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: var(--t-11); font-weight: 600; letter-spacing: 0; text-transform: none; vertical-align: 1px; }
.form-group:has(> .form-label .req-missing) { box-shadow: inset 3px 0 0 var(--accent); padding: 6px 8px 6px 12px; background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 4px; }
.btn.is-blocked { opacity: 0.55; }
/* The unsaved-changes question (ticket 150): above any window. */
.unsaved-overlay { z-index: 1300; }
.unsaved-text { margin: 0; font-size: var(--t-13); color: var(--ink-2); line-height: 1.5; }
