/* =====================================================================
   Kanban collaboratif — feuille de styles principale
   Inspiration : Trello, Deck (Nextcloud), Notion, ClickUp
   Thèmes : clair et sombre (attribut data-theme sur <html>)
   ===================================================================== */

/* ---------- 1. Jetons de design ------------------------------------ */
:root {
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;

    --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06), 0 1px 3px rgb(15 23 42 / 0.08);
    --shadow: 0 4px 12px rgb(15 23 42 / 0.08), 0 2px 4px rgb(15 23 42 / 0.04);
    --shadow-lg: 0 20px 45px rgb(15 23 42 / 0.18);

    --topbar-h: 60px;
    --sidebar-w: 248px;
    --column-w: 300px;

    /* Couleurs sémantiques d'échéance */
    --due-ok: #16a34a;
    --due-soon: #ea580c;
    --due-late: #dc2626;
    --due-none: #64748b;

    --focus: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}

/* Thème clair */
html[data-theme="light"] {
    --bg: #f4f6fa;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #eef2f7;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #0f172a;
    --text-soft: #475569;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-soft: #dbeafe;
    --accent-contrast: #ffffff;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #d97706;
    --overlay: rgb(15 23 42 / 0.45);
    --board-bg: #eef2f7;
}

/* Thème sombre */
html[data-theme="dark"] {
    --bg: #0b1220;
    --surface: #131c2e;
    --surface-2: #182338;
    --surface-3: #1f2c44;
    --border: #26334d;
    --border-strong: #354566;
    --text: #e8eef8;
    --text-soft: #b3c0d6;
    --text-muted: #8b9ab5;
    --accent: #5b8def;
    --accent-soft: #1e3054;
    --accent-contrast: #06101f;
    --danger: #f87171;
    --success: #4ade80;
    --warning: #fbbf24;
    --overlay: rgb(3 7 18 / 0.7);
    --board-bg: #0e1729;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow: 0 4px 14px rgb(0 0 0 / 0.45);
    --shadow-lg: 0 24px 50px rgb(0 0 0 / 0.6);
}

/* ---------- 2. Réinitialisation ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 650; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 var(--space-3); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--accent); color: var(--accent-contrast);
    padding: var(--space-2) var(--space-4); border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Barre supérieure ------------------------------------ */
.topbar {
    position: sticky; top: 0; z-index: 40;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.topbar__inner {
    display: flex; align-items: center; gap: var(--space-3);
    height: var(--topbar-h); padding: 0 var(--space-4);
    max-width: 1900px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: var(--space-2); color: var(--text); font-weight: 700; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand__mark {
    display: grid; place-items: center;
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: #fff; font-size: 15px; font-weight: 800;
}
.brand__name { font-size: 0.95rem; letter-spacing: -0.01em; }

.searchbar {
    position: relative; flex: 1 1 320px; max-width: 520px;
}
.searchbar__icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-muted); }
.searchbar input {
    width: 100%; padding: 9px 12px 9px 34px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius-pill); color: var(--text);
}
.searchbar input::placeholder { color: var(--text-muted); }
.searchbar input:focus { background: var(--surface); border-color: var(--accent); }

.topbar__actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.topbar__burger { display: none; }

.iconbtn {
    display: grid; place-items: center;
    width: 38px; height: 38px; padding: 0;
    background: transparent; border: 1px solid transparent;
    border-radius: var(--radius); color: var(--text-soft); cursor: pointer;
    position: relative;
}
.iconbtn:hover { background: var(--surface-3); color: var(--text); }
.iconbtn--sm { width: 28px; height: 28px; font-size: 15px; }
.iconbtn--sm svg { width: 16px; height: 16px; }

html[data-theme="light"] .icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }

.badge { display: inline-flex; align-items: center; justify-content: center; }
.badge--dot {
    position: absolute; top: 7px; right: 7px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--danger); border: 2px solid var(--surface);
}

/* Menu utilisateur */
.usermenu { position: relative; }
.usermenu__panel {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
    min-width: 240px; padding: var(--space-2);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.usermenu__panel[hidden] { display: none; }
.usermenu__panel a {
    display: block; padding: 8px 10px; border-radius: var(--radius-sm);
    color: var(--text); font-size: 0.92rem;
}
.usermenu__panel a:hover { background: var(--surface-3); text-decoration: none; }
.usermenu__panel [data-action="start-tour"] {
    display: block; width: 100%; padding: 8px 10px; border: 0; background: none; text-align: left;
    color: var(--text); font: inherit; font-size: 0.92rem; cursor: pointer; border-radius: var(--radius-sm);
}
.usermenu__panel [data-action="start-tour"]:hover { background: var(--surface-3); }

.tour { position: fixed; inset: 0; z-index: 1000; }
.tour__spot {
    position: fixed; border-radius: var(--radius-sm); pointer-events: none;
    box-shadow: 0 0 0 9999px rgb(15 23 42 / 0.6); outline: 2px solid var(--accent);
    transition: top .2s, left .2s, width .2s, height .2s;
}
.tour__card {
    position: fixed; width: min(340px, calc(100vw - 24px)); padding: var(--space-4);
    background: var(--surface); color: var(--text); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.tour__count { margin: 0; font-size: 0.78rem; color: var(--text-muted); }
.tour__title { margin: 4px 0; font-size: 1.05rem; }
.tour__text { margin: 0 0 var(--space-3); color: var(--text-soft); font-size: 0.92rem; }
.tour__actions { display: flex; align-items: center; gap: var(--space-2); }
.tour__spacer { flex: 1; }
.usermenu__head {
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-2) var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--border); margin-bottom: var(--space-2);
}
.usermenu__head strong { display: block; font-size: 0.92rem; }
.usermenu__head small { color: var(--text-muted); font-size: 0.78rem; word-break: break-all; }
.link-danger { background: none; border: 0; padding: 8px 10px; width: 100%; text-align: left; color: var(--danger); cursor: pointer; border-radius: var(--radius-sm); }
.link-danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }

/* Avatars (initiales, sans image) */
.avatar {
    display: inline-grid; place-items: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--avatar, var(--accent));
    color: #fff; font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.02em; flex: 0 0 auto; user-select: none;
}
.avatar--sm { width: 26px; height: 26px; font-size: 0.68rem; }
.avatar--btn { border: 2px solid var(--border); cursor: pointer; }

/* ---------- 4. Structure ------------------------------------------- */
.shell { display: flex; align-items: flex-start; max-width: 1900px; margin: 0 auto; }

.sidebar {
    position: sticky; top: var(--topbar-h);
    flex: 0 0 var(--sidebar-w); width: var(--sidebar-w);
    height: calc(100vh - var(--topbar-h));
    padding: var(--space-4) var(--space-3);
    background: var(--surface); border-right: 1px solid var(--border);
    overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-5);
}
.sidebar__nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar__link {
    display: flex; align-items: center; gap: var(--space-3);
    padding: 9px 12px; border-radius: var(--radius);
    color: var(--text-soft); font-size: 0.93rem; font-weight: 550;
}
.sidebar__link:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.sidebar__link.is-active { background: var(--accent-soft); color: var(--accent); }
.sidebar__ico { font-size: 1rem; width: 1.2em; text-align: center; }
.sidebar__section { display: flex; flex-direction: column; gap: var(--space-2); }
.sidebar__section--foot { margin-top: auto; }
.sidebar__title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: var(--space-1); }
.sidebar__folders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sidebar__folders a {
    display: flex; align-items: center; gap: var(--space-2);
    padding: 7px 12px; border-radius: var(--radius-sm);
    color: var(--text-soft); font-size: 0.9rem;
}
.sidebar__folders a:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.sidebar__folders .pill { margin-left: auto; }

.main { flex: 1 1 auto; min-width: 0; padding: var(--space-5) var(--space-5) var(--space-7); }
.main > * + * { margin-top: var(--space-5); }

/* ---------- 5. En-têtes de page ------------------------------------ */
.pagehead {
    display: flex; flex-wrap: wrap; align-items: flex-end;
    justify-content: space-between; gap: var(--space-4);
}
.pagehead__sub { color: var(--text-muted); font-size: 0.88rem; margin: var(--space-1) 0 0; }
.pagehead__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

/* ---------- 6. Boutons --------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    padding: 9px 16px; border-radius: var(--radius);
    border: 1px solid var(--border-strong); background: var(--surface);
    color: var(--text); font-size: 0.9rem; font-weight: 570;
    cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, transform .06s;
}
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 86%, black); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text-soft); }
.btn--ghost:hover { background: var(--surface-3); color: var(--text); }
.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--danger:hover { background: color-mix(in srgb, var(--danger) 86%, black); }
.btn--sm { padding: 6px 11px; font-size: 0.83rem; border-radius: var(--radius-sm); }
.btn--block { width: 100%; }
.btnrow { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.spacer { flex: 1 1 auto; }

/* ---------- 7. Formulaires ----------------------------------------- */
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; }

/* Contributeur junior : interface réduite (l'API refuse de toute façon ces actions). */
.is-junior [data-restricted],
.is-junior .card__due,
.is-junior .card__badge { display: none !important; }
.is-junior [data-card-comments],
.is-junior [data-card-checklist] { display: none !important; }
.field__label { font-size: 0.8rem; font-weight: 600; color: var(--text-soft); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="date"], input[type="number"], select, textarea {
    width: 100%; padding: 9px 12px;
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: var(--radius); color: var(--text);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input[type="color"] {
    width: 44px; height: 38px; padding: 2px; border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
}
textarea { resize: vertical; min-height: 72px; }
select { cursor: pointer; }

.inlineform { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-bottom: var(--space-4); }
.inlineform input[type="text"] { flex: 1 1 200px; }
.inlineform input[type="email"] { flex: 1 1 200px; }

.switch { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 0.85rem; color: var(--text-soft); cursor: pointer; }
.switch input { width: auto; }

.filterbar { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filterbar input[type="search"] { flex: 1 1 260px; }
.filterbar select { flex: 0 1 190px; width: auto; }

.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filters select, .filters input { width: auto; min-width: 150px; padding: 7px 10px; font-size: 0.85rem; }

/* Éditeur de description */
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; }
.editor-toolbar[hidden] { display: none; }
.editor-toolbar__button {
    min-width: 34px; min-height: 34px; padding: 4px 8px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text); cursor: pointer;
}
.editor-toolbar__button:hover, .editor-toolbar__button:focus-visible {
    border-color: var(--accent); color: var(--accent);
}
.editor {
    min-height: 120px; padding: 10px 12px;
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: var(--radius); font-size: 0.92rem; overflow-y: auto;
}
.editor:empty::before { content: attr(data-placeholder); color: var(--text-muted); }
.editor:focus { border-color: var(--accent); }
.editor ul, .rich-content ul { list-style: disc; padding-left: 1.5em; margin: 0.4em 0; }
.editor ol, .rich-content ol { list-style: decimal; padding-left: 1.5em; margin: 0.4em 0; }
.editor p, .rich-content p { margin: 0.4em 0; }
.editor hr, .rich-content hr { border: 0; border-top: 1px solid var(--border-strong); margin: 0.75em 0; }

/* ---------- 8. Cartes de statistiques ------------------------------ */
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4); }
.statcard {
    display: flex; flex-direction: column; gap: var(--space-1);
    padding: var(--space-4) var(--space-5);
    background: var(--surface); border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.statcard--open { border-left-color: var(--accent); }
.statcard--done { border-left-color: var(--success); }
.statcard--late { border-left-color: var(--danger); }
.statcard__label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.statcard__value { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.statcard__hint { font-size: 0.78rem; color: var(--text-muted); }

/* ---------- 9. Panneaux / grilles ---------------------------------- */
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.panel--narrow { max-width: 520px; }
.panel__head { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); }
.panel__sub { margin: var(--space-1) 0 0; font-size: 0.83rem; color: var(--text-muted); }
.panel__body { padding: var(--space-5); }
.panel > form, .panel > table, .panel > .btnrow, .panel > .placeholder-note, .panel > .warn { margin: var(--space-5); }
.chartbox { position: relative; height: 280px; }

/* Tableaux de données */
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table__actions { display: flex; gap: var(--space-2); justify-content: flex-end; }
.table input[type="text"], .table select { padding: 6px 9px; font-size: 0.87rem; }
.users-table-wrap { margin: var(--space-5); overflow-x: auto; }
.users-table { min-width: 700px; }
.users-table input[type="email"], .users-table input[type="password"] { padding: 6px 9px; font-size: 0.87rem; }
.user-edit-fields { display: grid; gap: var(--space-2); }
.user-edit-fields[hidden], .user-actions [hidden] { display: none; }
.user-actions, .row-actions { display: flex; justify-content: flex-end; gap: 2px; white-space: nowrap; }
.user-actions .iconbtn, .row-actions .iconbtn { flex: 0 0 28px; }
.row-actions [hidden], .table [data-board-edit][hidden] { display: none; }

.tabs { display: flex; flex-wrap: wrap; gap: var(--space-1); border-bottom: 1px solid var(--border); }
.tabs__tab { padding: 9px 14px; border-radius: var(--radius) var(--radius) 0 0; color: var(--text-soft); font-size: 0.9rem; font-weight: 560; }
.tabs__tab:hover { background: var(--surface-3); text-decoration: none; }
.tabs__tab.is-active { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------- 10. Grille de tableaux --------------------------------- */
.boardgroup + .boardgroup { margin-top: var(--space-6); }
.boardgroup__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.boardgroup__head .pill { margin-left: auto; }

.boardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: var(--space-4); }

.boardcard {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border);
    border-top: 4px solid var(--board, var(--accent));
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: box-shadow .15s, transform .12s;
}
.boardcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.boardcard--archived { opacity: .68; }
.boardcard__link { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); color: var(--text); flex: 1; }
.boardcard__link:hover { text-decoration: none; }
.boardcard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.boardcard__head h3 { font-size: 1rem; }
.boardcard__desc { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.boardcard__meta { display: flex; flex-wrap: wrap; gap: var(--space-3); font-size: 0.79rem; color: var(--text-soft); margin-top: auto; }
.boardcard__stat--done { color: var(--success); }
.boardcard__stat--late { color: var(--due-late); font-weight: 600; }
.boardcard__progress { height: 5px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; }
.boardcard__progress span { display: block; height: 100%; background: var(--success); }
.boardcard__folder { display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-4) var(--space-4); font-size: 0.83rem; color: var(--text-muted); }
.boardcard__folder select { min-width: 0; flex: 1; }
.boardcard__actions {
    position: absolute; top: var(--space-2); right: var(--space-2);
    display: flex; gap: 2px; opacity: 0; transition: opacity .12s;
    background: var(--surface); border-radius: var(--radius-sm);
}
.boardcard:hover .boardcard__actions, .boardcard:focus-within .boardcard__actions { opacity: 1; }

/* ---------- 11. En-tête de tableau Kanban -------------------------- */
.boardhead {
    display: flex; flex-wrap: wrap; align-items: flex-start;
    justify-content: space-between; gap: var(--space-4);
    padding-bottom: var(--space-4); border-bottom: 1px solid var(--border);
}
.boardhead__title h1 { font-size: 1.35rem; }
.boardhead__desc { margin: var(--space-1) 0 0; color: var(--text-muted); font-size: 0.87rem; max-width: 65ch; }
.boardhead__toolbar { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3); flex: 1 1 380px; }
.boardhead__buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- 12. Plateau Kanban ------------------------------------- */
.board {
    display: flex; align-items: flex-start; gap: var(--space-4);
    overflow-x: auto; padding: var(--space-2) var(--space-1) var(--space-5);
    scroll-snap-type: x proximity;
}

.column {
    flex: 0 0 var(--column-w); width: var(--column-w);
    display: flex; flex-direction: column; max-height: calc(100vh - 280px);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
}
.column.is-dragging { opacity: .5; }
.column.is-over { box-shadow: var(--focus); }

.column__head {
    display: flex; align-items: center; gap: var(--space-2);
    padding: var(--space-3) var(--space-3);
    border-bottom: 1px solid var(--border);
    border-top: 3px solid var(--column, var(--text-muted));
    border-radius: var(--radius) var(--radius) 0 0;
    cursor: grab;
}
.column__head:active { cursor: grabbing; }
.column__grip { color: var(--text-muted); font-size: 0.9rem; letter-spacing: -2px; }
.column__title { flex: 1; font-size: 0.92rem; font-weight: 620; cursor: text; }
.column__count {
    display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
    background: var(--surface-3); border-radius: var(--radius-pill);
    font-size: 0.75rem; color: var(--text-soft);
}
.column__count.is-over-limit { background: var(--due-late); color: #fff; }

.column__body {
    flex: 1 1 auto; min-height: 60px; overflow-y: auto;
    padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-3);
}
.column__body.is-over { background: var(--accent-soft); border-radius: var(--radius); }
.column__empty { margin: auto; font-size: 0.82rem; color: var(--text-muted); text-align: center; }
.column__foot { padding: var(--space-2) var(--space-3) var(--space-3); }
.column__add {
    width: 100%; padding: 8px; text-align: left;
    background: transparent; border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm); color: var(--text-muted);
    font-size: 0.85rem; cursor: pointer;
}
.column__add:hover { background: var(--surface-3); color: var(--accent); border-color: var(--accent); }

/* ---------- 13. Cartes --------------------------------------------- */
.card {
    position: relative; display: flex; flex-direction: column; gap: var(--space-2);
    padding: var(--space-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--card-accent, transparent);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
    cursor: pointer; transition: box-shadow .12s, transform .08s, border-color .12s;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.card:active { cursor: grabbing; }
.card.is-dragging { opacity: .45; transform: rotate(1.5deg); }
.card.is-ghost { opacity: .35; }
.card--complete .card__title { color: var(--text-muted); text-decoration: line-through; }

.card__labels { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: var(--radius-pill);
    background: var(--chip, var(--accent)); color: #fff;
    font-size: 0.68rem; font-weight: 650; letter-spacing: 0.01em;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip--lg { font-size: 0.78rem; padding: 4px 11px; }

.card__title { font-size: 0.92rem; font-weight: 580; word-break: break-word; display: flex; justify-content: space-between; align-items: flex-start; gap: 0.4rem; }
.card__emoji { flex: none; font-size: 1.15rem; line-height: 1.1; }
.card__emoji[hidden] { display: none; }
.modal__head { position: relative; }
.emoji-btn { font-size: 1.2rem; }
.emoji-picker { position: absolute; top: 100%; right: 0; z-index: 30; width: min(340px, 92vw); background: var(--surface, #fff); border: 1px solid var(--border, #ddd); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: .6rem; display: flex; flex-direction: column; gap: .5rem; }
.emoji-picker[hidden] { display: none; }
.emoji-picker input { width: 100%; }
.emoji-picker__list { max-height: 240px; overflow-y: auto; }
.emoji-picker__cat { font-size: .72rem; color: var(--text-muted); margin: .4rem 0 .2rem; }
.emoji-picker__grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji-picker__grid button { font-size: 1.3rem; background: none; border: 0; border-radius: 6px; cursor: pointer; padding: .2rem; }
.emoji-picker__grid button:hover { background: rgba(127,127,127,.2); }
.card__desc { margin: 0; font-size: 0.82rem; color: var(--text-muted); word-break: break-word; }

.card__badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: 0.76rem; color: var(--text-soft); }
.card__badge { display: inline-flex; align-items: center; gap: 3px; }

.card__due {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 7px; border-radius: var(--radius-sm);
    font-size: 0.74rem; font-weight: 620;
    border: 1px solid currentColor;
}
.card__due--ok { color: var(--due-ok); background: color-mix(in srgb, var(--due-ok) 12%, transparent); }
.card__due--soon { color: var(--due-soon); background: color-mix(in srgb, var(--due-soon) 14%, transparent); }
.card__due--late { color: var(--due-late); background: color-mix(in srgb, var(--due-late) 16%, transparent); }
.card__late { font-weight: 700; }
.card__foot { display: flex; justify-content: flex-end; }
.card__assignees { display: flex; flex-wrap: wrap; gap: 4px; }
.assignee-options { display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow-y: auto; }
.assignee-option { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.assignee-option input { width: auto; flex: none; }

/* ---------- 14. Modales -------------------------------------------- */
.modal {
    width: min(980px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 0; border: 1px solid var(--border);
    border-radius: var(--radius-lg); background: var(--surface); color: var(--text);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.modal--sm { width: min(520px, calc(100vw - 32px)); }
.modal::backdrop { background: var(--overlay); backdrop-filter: blur(2px); }
.modal[open] { display: flex; flex-direction: column; }

.modal__form { display: flex; flex-direction: column; min-height: 0; }
.modal__head {
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border);
}
.modal__titleinput {
    flex: 1; padding: 6px 8px; font-size: 1.12rem; font-weight: 650;
    background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
}
.modal__titleinput:hover { background: var(--surface-2); }
.modal__titleinput:focus { background: var(--surface); border-color: var(--accent); }

.modal__body { display: grid; gap: var(--space-5); padding: var(--space-5); overflow-y: auto; }
.modal__body--stack { display: flex; flex-direction: column; }
.modal__main, .modal__side { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.modal__section { display: flex; flex-direction: column; gap: var(--space-3); }
.modal__section h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.modal__side { border-top: 1px solid var(--border); padding-top: var(--space-5); }
.modal__side-actions { display: flex; flex-direction: column; gap: var(--space-2); margin-top: auto; }

.modal__foot {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
    padding: var(--space-3) var(--space-5); border-top: 1px solid var(--border); background: var(--surface-2);
}
.modal__meta { font-size: 0.78rem; color: var(--text-muted); }
.modal__foot-actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }

.copyrow { display: flex; gap: var(--space-2); }
.copyrow input { font-family: var(--font-mono); font-size: 0.85rem; }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.checklist__item { display: flex; align-items: center; gap: var(--space-2); font-size: 0.9rem; }
.checklist__item input[type="checkbox"] { width: 16px; height: 16px; }
.checklist__item.is-done span { text-decoration: line-through; color: var(--text-muted); }
.checklist__item span { flex: 1; word-break: break-word; }
.checklist__add, .comments__add { display: flex; gap: var(--space-2); align-items: flex-start; }
.checklist__add input { flex: 1; }
.comments__add { flex-direction: column; }
.comments__add textarea { width: 100%; }
.progressline { height: 5px; background: var(--surface-3); border-radius: var(--radius-pill); overflow: hidden; }
.progressline span { display: block; height: 100%; background: var(--success); }

/* Commentaires */
.comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.comment { display: flex; gap: var(--space-3); }
.comment__body { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3); flex: 1; }
.comment__head { display: flex; align-items: baseline; gap: var(--space-2); margin-bottom: 4px; }
.comment__head strong { font-size: 0.87rem; }
.comment__head time { font-size: 0.74rem; color: var(--text-muted); }
.comment__text { font-size: 0.88rem; white-space: pre-wrap; word-break: break-word; }
.comment__del { background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 0.9rem; }

/* Étiquettes */
.labelset { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.labelset .chip { cursor: pointer; opacity: .45; border: 2px solid transparent; }
.labelset .chip.is-on { opacity: 1; border-color: var(--text); }
.labellist, .memberlist, .invitelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.labellist li, .memberlist li, .invitelist li {
    display: flex; align-items: center; gap: var(--space-2);
    padding: var(--space-2) 0; border-bottom: 1px solid var(--border); font-size: 0.88rem;
}
.labellist li:last-child, .memberlist li:last-child, .invitelist li:last-child { border-bottom: 0; }
.labellist .spacer, .memberlist .spacer, .invitelist .spacer { flex: 1; }
.invitelist code { font-family: var(--font-mono); background: var(--surface-3); padding: 2px 6px; border-radius: var(--radius-sm); }
.invitelist .is-inactive { opacity: .55; text-decoration: line-through; }
.memberlist li { flex-direction: column; align-items: stretch; }
.memberlist__identity, .memberlist__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.memberlist__identity small { overflow-wrap: anywhere; }
.memberlist__action-icon { width: 16px; height: 16px; }
.member-topbar__title { flex: 1 1 10rem; min-width: 0; font-size: 1rem; overflow-wrap: anywhere; }
.member-topbar__access { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.member-help { position: relative; }
.member-help summary {
    display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
    background: var(--surface-3); color: var(--text-soft); cursor: pointer; list-style: none; font-weight: 700;
}
.member-help summary::-webkit-details-marker { display: none; }
.member-help__panel {
    position: absolute; z-index: 45; top: calc(100% + 8px); right: 0; width: min(300px, calc(100vw - 32px));
    padding: var(--space-3); background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
    font-size: 0.85rem;
}
.member-view-link { margin-top: var(--space-4); }
.member-view-link[hidden] { display: none; }
.member-card-edit { margin-top: var(--space-2); }
.member-card-edit summary { color: var(--accent); cursor: pointer; font-weight: 600; }
.member-card-edit > form, .member-card-edit h4 { margin-top: var(--space-3); }
.member-checklist-form { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- 15. Activités, résultats, divers ----------------------- */
.activityfeed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.activityfeed li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.87rem; color: var(--text-soft); }
.activityfeed li:last-child { border-bottom: 0; }
.activityfeed--sm li { font-size: 0.82rem; padding: 7px 0; }
.activityfeed__empty { color: var(--text-muted); font-style: italic; }
.activityfeed time { color: var(--text-muted); font-size: 0.76rem; margin-left: var(--space-2); }

.resultlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.result {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    cursor: pointer;
}
.result:hover { border-color: var(--accent); }
.result__head { flex: 1 1 320px; display: flex; flex-direction: column; }
.result__where { font-size: 0.78rem; color: var(--text-muted); }
.result__meta { font-size: 0.8rem; color: var(--text-soft); }

.empty {
    display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
    padding: var(--space-7) var(--space-5); text-align: center;
    background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
}
.empty p { color: var(--text-muted); max-width: 46ch; }
.empty--error h1 { font-size: 1.8rem; }

.alert { padding: var(--space-3) var(--space-4); border-radius: var(--radius); font-size: 0.88rem; border: 1px solid transparent; }
.alert--error { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: var(--danger); color: var(--danger); }
.alert--success { background: color-mix(in srgb, var(--success) 12%, transparent); border-color: var(--success); color: var(--success); }
.alert--info, .alert--warning { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: var(--accent); color: var(--accent); }

.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 0.7rem; font-weight: 650; }
.tag--ok { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.tag--muted { background: var(--surface-3); color: var(--text-muted); }
.pill { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; background: var(--surface-3); border-radius: var(--radius-pill); font-size: 0.74rem; color: var(--text-soft); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--accent)); display: inline-block; flex: 0 0 auto; }
.hint { font-size: 0.82rem; color: var(--text-muted); }
.warn { font-size: 0.85rem; color: var(--warning); }
.placeholder-note {
    padding: var(--space-4); border: 1px dashed var(--border-strong); border-radius: var(--radius);
    color: var(--text-muted); font-size: 0.85rem; text-align: center; background: var(--surface-2);
}
.placeholder-note code { font-family: var(--font-mono); font-size: 0.8rem; }

/* ---------- 16. Authentification ----------------------------------- */
/* Écran de connexion : deux colonnes (présentation + formulaire). */

.auth {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 480px);
    gap: var(--space-6);
    align-items: stretch;
    max-width: 1100px;
    margin: var(--space-6) auto;
    padding: 0 var(--space-4);
}

/* --- Panneau de présentation --- */
.auth__aside {
    display: flex; flex-direction: column; gap: var(--space-6);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    color: #fff;
    background:
        radial-gradient(120% 90% at 12% 8%, rgb(255 255 255 / 0.16), transparent 55%),
        linear-gradient(150deg, #2563eb 0%, #4f46e5 52%, #7c3aed 100%);
    box-shadow: var(--shadow);
    overflow: hidden; position: relative;
}
.auth__aside::after {
    content: ""; position: absolute; inset: auto -30% -55% auto;
    width: 320px; height: 320px; border-radius: 50%;
    background: rgb(255 255 255 / 0.08);
}
.auth__brand { display: flex; align-items: center; gap: var(--space-3); position: relative; }
.auth__brandname { font-weight: 700; letter-spacing: -0.01em; }
.auth__mark {
    display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 11px;
    background: rgb(255 255 255 / 0.18);
    border: 1px solid rgb(255 255 255 / 0.32);
    font-weight: 800; font-size: 1.05rem; color: #fff;
}
.auth__mark--sm { width: 34px; height: 34px; font-size: 0.95rem;
    background: var(--accent-soft); border-color: transparent; color: var(--accent); }

.auth__pitch { position: relative; }
.auth__pitch h2 { font-size: 1.5rem; line-height: 1.25; margin-bottom: var(--space-3); }
.auth__pitch p { margin: 0; font-size: 0.93rem; color: rgb(255 255 255 / 0.86); max-width: 42ch; }

.auth__features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); position: relative; }
.auth__features li { display: flex; gap: var(--space-3); align-items: flex-start; }
.auth__features strong { display: block; font-size: 0.92rem; }
.auth__features small { color: rgb(255 255 255 / 0.78); font-size: 0.8rem; }
.auth__ico {
    display: grid; place-items: center; flex: 0 0 auto;
    width: 30px; height: 30px; border-radius: 9px;
    background: rgb(255 255 255 / 0.16); font-size: 0.9rem;
}
.auth__foot { margin: auto 0 0; font-size: 0.78rem; color: rgb(255 255 255 / 0.7); position: relative; }

/* --- Colonne formulaire --- */
.auth__panel { display: flex; align-items: center; }
.auth__formwrap {
    width: 100%;
    padding: var(--space-6);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.auth__formwrap .alert { margin-bottom: var(--space-4); }
.auth__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.auth__head > div { min-width: 0; }
.auth__head h1 { font-size: 1.45rem; overflow-wrap: anywhere; }
.auth__sub { margin: 2px 0 0; color: var(--text-muted); font-size: 0.88rem; }

.auth__form { display: flex; flex-direction: column; gap: var(--space-4); }

/* Champ avec icône et bascule d'affichage du mot de passe */
.field__label { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.field__aside { font-size: 0.78rem; font-weight: 500; }
.field__wrap { position: relative; display: block; }
.field__wrap input { padding-left: 40px; padding-right: 42px; }
.field__icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 17px; height: 17px; color: var(--text-muted); pointer-events: none;
}
.field__toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center;
    width: 30px; height: 30px; padding: 0;
    background: transparent; border: 0; border-radius: var(--radius-sm);
    color: var(--text-muted); cursor: pointer;
}
.field__toggle:hover { background: var(--surface-3); color: var(--text); }
.field__toggle.is-on { color: var(--accent); }
.field__toggle svg { width: 17px; height: 17px; }

.btn--lg { padding: 12px 18px; font-size: 0.95rem; }
.auth__submit { margin-top: var(--space-1); }

.auth__links {
    margin-top: var(--space-5); padding-top: var(--space-4);
    border-top: 1px solid var(--border);
    font-size: 0.85rem; color: var(--text-muted);
}
.auth__links p { margin: 0 0 var(--space-2); }
.auth__links p:last-child { margin-bottom: 0; }

body.auth .shell { display: block; }
body.auth .sidebar { display: none; }

/* Grand écran : la carte occupe la hauteur utile, sans déborder. */
@media (min-width: 901px) {
    .auth { min-height: calc(100vh - var(--topbar-h) - var(--space-6) * 2); }
}

/* Tablette et mobile : une seule colonne, présentation repliée en bandeau. */
@media (max-width: 900px) {
    .auth { grid-template-columns: 1fr; max-width: 480px; margin: var(--space-4) auto; }
    .auth__aside {
        padding: var(--space-5);
        background: linear-gradient(150deg, #2563eb 0%, #6d28d9 100%);
    }
    .auth__features { display: none; }
    .auth__pitch h2 { font-size: 1.2rem; }
    .auth__foot { display: none; }
}

@media (max-width: 640px) {
    .auth { padding: 0 var(--space-3); }
    .auth__aside { display: none; }
    .auth__formwrap { padding: var(--space-5); box-shadow: none; border-radius: var(--radius); }
}

/* ---------- 17. Calendrier ----------------------------------------- */
.calendar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.calendar__weekdays, .calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar__weekdays span {
    padding: var(--space-2) var(--space-3); font-size: 0.74rem; font-weight: 650;
    text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.calendar__day { min-height: 108px; padding: var(--space-2); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.calendar__day:nth-child(7n) { border-right: 0; }
.calendar__day.is-outside { background: var(--surface-2); opacity: .55; }
.calendar__day.is-today { background: var(--accent-soft); }
.calendar__num { font-size: 0.78rem; font-weight: 650; color: var(--text-muted); }
.calendar__cards { list-style: none; margin: var(--space-1) 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.calcard { padding: 3px 7px; border-radius: var(--radius-sm); font-size: 0.72rem; cursor: pointer; border-left: 3px solid var(--text-muted); background: var(--surface-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calcard--ok { border-left-color: var(--due-ok); }
.calcard--soon { border-left-color: var(--due-soon); }
.calcard--late { border-left-color: var(--due-late); background: color-mix(in srgb, var(--due-late) 12%, transparent); }

/* ---------- 18. Toasts --------------------------------------------- */
.toasts { position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 60; display: flex; flex-direction: column; gap: var(--space-2); pointer-events: none; }
.toast {
    display: flex; align-items: center; gap: var(--space-3);
    min-width: 240px; max-width: 380px; padding: var(--space-3) var(--space-4);
    background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
    border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 0.87rem;
    pointer-events: auto; animation: toast-in .18s ease-out;
}
.toast--error { border-left-color: var(--danger); }
.toast--success { border-left-color: var(--success); }
.toast__text { flex: 1; }
.toast__close { background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 1.05rem; line-height: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Indicateur de chargement global */
.is-busy { position: relative; }
.is-busy::after {
    content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--surface) 55%, transparent);
    border-radius: inherit; pointer-events: none;
}
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- 19. Responsive ----------------------------------------- */
@media (max-width: 900px) {
    .topbar__burger { display: grid; }
    .sidebar {
        position: fixed; top: var(--topbar-h); left: 0; z-index: 35;
        transform: translateX(-100%); transition: transform .2s ease-out;
        box-shadow: var(--shadow-lg); height: calc(100vh - var(--topbar-h));
    }
    .sidebar.is-open { transform: none; }
    body.sidebar-open::after {
        content: ""; position: fixed; inset: var(--topbar-h) 0 0; background: var(--overlay); z-index: 34;
    }
    .main { padding: var(--space-4); }
    :root { --column-w: 280px; }
}

@media (max-width: 640px) {
    .brand__name { display: none; }
    .searchbar { flex-basis: 100%; order: 3; }
    .topbar__inner { flex-wrap: wrap; height: auto; padding: var(--space-2) var(--space-3); gap: var(--space-2); }
    :root { --topbar-h: 104px; --column-w: 86vw; }
    .boardhead__toolbar { align-items: stretch; }
    .boardhead__buttons { justify-content: flex-start; }
    .statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .statcard__value { font-size: 1.5rem; }
    .calendar__day { min-height: 78px; }
    .table { font-size: 0.83rem; }
    .table th, .table td { padding: 8px; }
    .modal__foot { flex-direction: column; align-items: stretch; }
    .modal__foot-actions { margin-left: 0; }
}

/* ---------- 20. Impression ----------------------------------------- */
@media print {
    .topbar, .sidebar, .boardhead__toolbar, .toasts, .modal { display: none !important; }
    .shell { display: block; }
    .board { display: block; }
    .column { break-inside: avoid; width: 100%; max-height: none; margin-bottom: var(--space-4); }
    body { background: #fff; }
}
