/* Butineur — feuille de styles */
:root {
  --bg: #faf8f3;
  --panel: #ffffff;
  --panel-2: #f9f7f1;
  --text: #1c1810;
  --text-2: #3d3628;
  --muted: #776e5c;
  --faint: #a69d8a;
  --border: #ebe5d8;
  --border-strong: #dcd3c0;
  --primary: #b45309;
  --primary-600: #92400e;
  --primary-50: #fff6dc;
  --primary-100: #ffe9a8;
  --honey: #ffc21a;
  --honey-600: #f5ad00;
  --on-honey: #1c1405;
  --success: #15803d;
  --success-50: #ecfdf3;
  --warning: #b45309;
  --warning-50: #fffbeb;
  --danger: #dc2626;
  --danger-50: #fef2f2;
  --info: #0369a1;
  --info-50: #f0f9ff;
  --sidebar: #1a150c;
  --sidebar-text: #d6ccb8;
  --sidebar-active: rgba(255, 194, 26, .13);
  --shadow-sm: 0 1px 2px rgba(41, 30, 8, .05);
  --shadow: 0 1px 3px rgba(41, 30, 8, .07), 0 4px 14px rgba(41, 30, 8, .05);
  --shadow-lg: 0 18px 50px rgba(41, 30, 8, .2);
  --radius: 12px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #12100a;
  --panel: #1b1810;
  --panel-2: #211d14;
  --text: #f3eee2;
  --text-2: #d8cfbc;
  --muted: #a39881;
  --faint: #7c735f;
  --border: #2e281c;
  --border-strong: #3d3526;
  --primary: #fbbf24;
  --primary-600: #fcd34d;
  --primary-50: rgba(251, 191, 36, .1);
  --primary-100: rgba(251, 191, 36, .2);
  --honey: #fbbf24;
  --honey-600: #f59e0b;
  --success: #4ade80;
  --success-50: rgba(74, 222, 128, .1);
  --warning: #fbbf24;
  --warning-50: rgba(251, 191, 36, .1);
  --danger: #f87171;
  --danger-50: rgba(248, 113, 113, .1);
  --info: #38bdf8;
  --info-50: rgba(56, 189, 248, .1);
  --sidebar: #0c0a06;
  --shadow: 0 1px 3px rgba(0, 0, 0, .4);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 14.5px; font-weight: 650; }
p { margin: 0 0 8px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
::selection { background: var(--primary-100); }

/* --- Mise en page ------------------------------------------------------------ */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cpath d='M28 0 56 16.2v32.4L28 64.8 0 48.6V16.2zM28 64.8V97M0 16.2-28 0M56 16.2 84 0' fill='none' stroke='%23ffc21a' stroke-opacity='.05' stroke-width='1.5'/%3E%3C/svg%3E") bottom left / 56px 97px; color: var(--sidebar-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 16px 12px; gap: 4px; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; }
.brand-logo { width: 40px; height: 40px; display: grid; place-items: center; flex: none; filter: drop-shadow(0 4px 10px rgba(255, 176, 0, .35)); }
.brand-name { font-weight: 800; font-size: 17px; line-height: 1.1; letter-spacing: -.01em; color: #fff; }
.brand-sub { font-size: 11.5px; color: #a4987e; }
.nav-section { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #8a7d62; padding: 14px 10px 6px; font-weight: 600; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--sidebar-text); font-weight: 500; text-decoration: none; transition: background .12s, color .12s; }
.nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav a.active { background: var(--sidebar-active); color: #fff; }
.nav a.active svg { color: var(--honey); }
.nav a .count { margin-left: auto; background: var(--honey); color: var(--on-honey); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; min-width: 20px; text-align: center; }
.nav a .count.muted { background: rgba(255, 255, 255, .12); color: #d6ccb8; }
.nav svg { width: 18px; height: 18px; flex: none; }
.sidebar-foot { margin-top: auto; padding: 10px; font-size: 12px; color: #a4987e; border-top: 1px solid rgba(255, 255, 255, .07); }
.sidebar-foot .sync-line { display: flex; align-items: center; gap: 6px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar .search { flex: 1; max-width: 520px; position: relative; }
.topbar .search input { width: 100%; padding-left: 36px; background: var(--panel); }
.topbar .search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }
.topbar .spacer { flex: 1; }
.menu-btn { display: none; }
.content { padding: 24px 28px 60px; max-width: 1480px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* --- Composants ------------------------------------------------------------------- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { display: flex; align-items: center; gap: 8px; }
.card-body { padding: 16px 20px; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--border); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--panel); color: var(--text); font: inherit; font-weight: 550; font-size: 13.5px; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .12s, border-color .12s, box-shadow .12s, transform .05s; }
.btn:hover { background: var(--panel-2); border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .input:focus, .select:focus, textarea:focus { outline: 2px solid var(--primary-100); outline-offset: 1px; border-color: var(--primary); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.primary { background: var(--honey); border-color: var(--honey-600); color: var(--on-honey); font-weight: 650; box-shadow: 0 1px 2px rgba(180, 120, 0, .25); }
.btn.primary:hover { background: var(--honey-600); border-color: var(--honey-600); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--panel-2); border-color: var(--border); }
.btn.soft { background: var(--primary-50); border-color: transparent; color: var(--primary); }
.btn.soft:hover { background: var(--primary-100); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-50); border-color: var(--danger); }
.btn.success { background: var(--success); border-color: var(--success); color: #fff; }
.btn.sm { height: 28px; padding: 0 9px; font-size: 12.5px; border-radius: 7px; }
.btn.sm svg { width: 14px; height: 14px; }
.btn.icon { width: 34px; padding: 0; }
.btn.sm.icon { width: 28px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.active { background: var(--primary-50); border-color: var(--primary); color: var(--primary); }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.input, .select, textarea.input { height: 34px; padding: 0 11px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--panel); color: var(--text); font: inherit; font-size: 13.5px; width: 100%; min-width: 0; }
textarea.input { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.45; }
.select { padding-right: 28px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input.sm, .select.sm { height: 28px; font-size: 12.5px; }
label.field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
label.field .help { font-weight: 400; color: var(--muted); font-size: 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.badge { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--panel-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.badge.primary { background: var(--primary-50); color: var(--primary); border-color: transparent; }
.badge.success { background: var(--success-50); color: var(--success); border-color: transparent; }
.badge.warning { background: var(--warning-50); color: var(--warning); border-color: transparent; }
.badge.danger { background: var(--danger-50); color: var(--danger); border-color: transparent; }
.badge.info { background: var(--info-50); color: var(--info); border-color: transparent; }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge svg { width: 12px; height: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.chip .x { cursor: pointer; opacity: .6; font-weight: 700; }
.chip .x:hover { opacity: 1; color: var(--danger); }
.chip.kw { background: var(--primary-50); border-color: transparent; color: var(--primary); }
.chip.ex { background: var(--danger-50); border-color: transparent; color: var(--danger); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font: inherit; font-weight: 550; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tabs button .n { font-size: 11px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; padding: 0 6px; color: var(--muted); }
.tabs svg { width: 16px; height: 16px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--text-2); cursor: pointer; font: inherit; font-size: 13px; font-weight: 550; }
.pill:hover { border-color: var(--faint); }
.pill.active { background: var(--text); border-color: var(--text); color: var(--panel); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.pill .n { font-size: 11px; opacity: .75; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--panel-2); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--panel-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

.progress { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--honey-600); border-radius: 999px; transition: width .3s; }
.progress.success > span { background: var(--success); }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.xs { font-size: 11.5px; }
.strong { font-weight: 650; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.right { margin-left: auto; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.hidden { display: none !important; }
.text-success { color: var(--success); } .text-danger { color: var(--danger); } .text-warning { color: var(--warning); } .text-primary { color: var(--primary); }
.pre { white-space: pre-wrap; }
.icon-inline { width: 15px; height: 15px; vertical-align: -3px; }

/* KPI */
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.kpi .label { font-size: 12.5px; color: var(--muted); font-weight: 550; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 27px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .hint { font-size: 12px; color: var(--muted); }
.kpi .ico { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.kpi .ico svg { width: 19px; height: 19px; }
.kpi.clickable { cursor: pointer; transition: border-color .12s, transform .12s; }
.kpi.clickable:hover { border-color: var(--primary); }

/* Liste d'AO */
.ao-list { display: flex; flex-direction: column; gap: 10px; }
.ao { display: grid; grid-template-columns: auto 52px minmax(0, 1fr) auto; gap: 14px; padding: 15px 18px; align-items: start; transition: border-color .12s, box-shadow .12s; position: relative; }
.ao:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.ao.unread::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--honey); }
.ao .sel { padding-top: 4px; }
.ao-title { font-size: 15px; font-weight: 650; color: var(--text); cursor: pointer; line-height: 1.35; }
.ao-title:hover { color: var(--primary); }
.ao.unread .ao-title { font-weight: 720; }
.ao-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 5px; color: var(--muted); font-size: 12.5px; }
.ao-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.ao-meta svg { width: 14px; height: 14px; }
.ao-desc { color: var(--text-2); font-size: 13px; margin-top: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ao-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.ao-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 150px; }
.ao-actions { display: flex; gap: 4px; }
.deadline { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.deadline .d { font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.deadline .r { font-size: 11.5px; color: var(--muted); }
.deadline.urgent .d, .deadline.urgent .r { color: var(--danger); }
.deadline.soon .d { color: var(--warning); }
.deadline.past .d { color: var(--faint); text-decoration: line-through; }
.score { --v: 0; --c: var(--primary); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--border) 0); position: relative; flex: none; }
.score::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--panel); }
.score b { position: relative; z-index: 1; font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums; }
.score.lg { width: 64px; height: 64px; }
.score.lg b { font-size: 16px; }
.score.lg::after { inset: 5px; }
.star { color: var(--faint); }
.star.on { color: #f59e0b; }
.star.on svg { fill: #f59e0b; }

.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input, .toolbar .select { width: auto; }
.bulkbar { position: sticky; bottom: 16px; z-index: 15; display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-top: 14px; background: var(--text); color: var(--panel); border-radius: 12px; box-shadow: var(--shadow-lg); }
.bulkbar .btn { background: transparent; color: inherit; border-color: rgba(255, 255, 255, .25); }
:root[data-theme="dark"] .bulkbar .btn { border-color: rgba(0, 0, 0, .25); }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty > svg:not(.bee) { width: 42px; height: 42px; color: var(--faint); margin-bottom: 10px; }
.empty h3 { color: var(--text); margin-bottom: 6px; }

/* Kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.kcol { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100vh - 210px); min-height: 160px; }
.kcol-head { display: flex; align-items: center; gap: 8px; padding: 11px 13px; font-weight: 650; font-size: 13px; border-bottom: 1px solid var(--border); }
.kcol-head .dot { width: 9px; height: 9px; border-radius: 50%; }
.kcol-head .n { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.kcol-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; flex: 1; }
.kcol.drop { outline: 2px dashed var(--primary); outline-offset: -4px; background: var(--primary-50); }
.kcard { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; cursor: grab; box-shadow: var(--shadow-sm); }
.kcard:hover { border-color: var(--border-strong); }
.kcard.dragging { opacity: .45; }
.kcard .t { font-weight: 620; font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kcard .b { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kcard .f { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 9px; font-size: 12px; }

/* Fiche AO */
.ao-header { padding: 20px 22px; margin-bottom: 18px; }
.ao-header h1 { font-size: 20px; line-height: 1.3; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 18px; }
.fact .k { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.fact .v { margin-top: 2px; font-weight: 550; word-break: break-word; }
.link-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.link-tile { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--panel); text-decoration: none !important; transition: border-color .12s, background .12s; }
.link-tile:hover { border-color: var(--primary); background: var(--primary-50); }
.link-tile .ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); flex: none; }
.link-tile .ico svg { width: 18px; height: 18px; }
.link-tile .t { font-weight: 620; font-size: 13.5px; }
.link-tile .s { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.link-tile.featured { border-color: var(--primary); background: var(--primary-50); }
.alert { display: flex; gap: 12px; padding: 13px 15px; border-radius: 10px; border: 1px solid; font-size: 13.5px; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert.warning { background: var(--warning-50); border-color: color-mix(in srgb, var(--warning) 35%, transparent); color: var(--text); }
.alert.warning svg { color: var(--warning); }
.alert.info { background: var(--info-50); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.alert.info svg { color: var(--info); }
.alert.danger { background: var(--danger-50); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.alert.danger svg { color: var(--danger); }
.alert.success { background: var(--success-50); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.alert.success svg { color: var(--success); }

.dropzone { display: block; border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--muted); transition: border-color .12s, background .12s; cursor: pointer; }
.dropzone:hover, .dropzone.over { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.dropzone svg { width: 30px; height: 30px; margin-bottom: 6px; }
.files .file { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; }
.files .file:hover { background: var(--panel-2); }
.files .file .fi { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; flex: none; letter-spacing: .02em; }
.files .folder-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 12px 4px; display: flex; align-items: center; gap: 6px; }
.files .file .acts { margin-left: auto; display: flex; gap: 2px; opacity: .5; transition: opacity .12s; }
.files .file:hover .acts { opacity: 1; }

.cl-section { margin-bottom: 18px; }
.cl-section.later .cl-item { opacity: .62; }
details.fold > summary { cursor: pointer; list-style: none; }
.fill-list { display: flex; flex-direction: column; gap: 4px; max-height: 58vh; overflow: auto; padding-right: 4px; }
.fill-row { display: grid; grid-template-columns: minmax(180px, 38%) 1fr auto; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 8px; }
.fill-row:hover { background: var(--panel-2); }
.fill-row.check { grid-template-columns: auto 1fr auto; }
.fill-row .fl { font-size: 12.5px; line-height: 1.35; }
.fill-row.todo .fl::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warning, #d97706); margin-right: 6px; vertical-align: 1px; }
.fill-row .badge { font-size: 10.5px; white-space: nowrap; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold:not([open]) > summary { border-bottom: 0; }
.cl-section h3 .badge { text-transform: none; letter-spacing: 0; font-weight: 500; }
.cl-section h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cl-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); margin-bottom: 6px; align-items: start; }
.cl-item.done { background: var(--panel-2); }
.cl-item.done .lbl { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.cl-item.na { opacity: .55; }
.cl-status { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--border-strong); background: var(--panel); display: grid; place-items: center; cursor: pointer; margin-top: 1px; padding: 0; color: transparent; }
.cl-status svg { width: 14px; height: 14px; }
.cl-status.doing { border-color: var(--warning); background: var(--warning-50); color: var(--warning); }
.cl-status.done { border-color: var(--success); background: var(--success); color: #fff; }
.cl-status.na { border-color: var(--faint); background: var(--panel-2); color: var(--faint); }
.cl-item .lbl { font-weight: 580; }
.cl-item .hint { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cl-item .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; align-items: center; }
.cl-item .tools { display: flex; gap: 2px; align-items: center; }

.gng-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 70px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); }
.rating { display: inline-flex; gap: 3px; }
.rating button { width: 32px; height: 30px; border-radius: 7px; border: 1px solid var(--border-strong); background: var(--panel); color: var(--text-2); cursor: pointer; font: inherit; font-weight: 650; font-size: 13px; }
.rating button.on { background: var(--honey); border-color: var(--honey-600); color: var(--on-honey); }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 0 0 16px; }
.tl-item::before { content: ""; position: absolute; left: -19px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--panel); border: 2px solid var(--primary); }
.tl-item.note::before { border-color: var(--warning); }
.tl-item.linked::before { border-color: var(--danger); background: var(--danger); }
.tl-item .when { font-size: 11.5px; color: var(--muted); }

/* Calendrier */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--border); border-top: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.cal .dow { padding: 8px 10px; font-size: 11.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--panel-2); }
.cal .day { min-height: 112px; padding: 6px 7px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal .day.other { background: var(--panel-2); }
.cal .day.other .num { color: var(--faint); }
.cal .day.today .num { background: var(--honey); color: var(--on-honey); }
.cal .num { font-size: 12px; font-weight: 650; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal .ev { font-size: 11.5px; padding: 2px 6px; border-radius: 5px; background: var(--primary-50); color: var(--primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; font-weight: 550; }
.cal .ev.deadline { background: var(--danger-50); color: var(--danger); }
.cal .ev.questions { background: var(--warning-50); color: var(--warning); }
.cal .ev.visit { background: var(--info-50); color: var(--info); }
.cal .ev.task { background: var(--panel-2); color: var(--text-2); border: 1px solid var(--border); }

/* Modale, tiroir, toasts */
.overlay { position: fixed; inset: 0; background: rgba(8, 11, 23, .5); backdrop-filter: blur(2px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { background: var(--panel); border-radius: 16px; box-shadow: var(--shadow-lg); width: min(640px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: pop .18s; border: 1px solid var(--border); }
.modal.wide { width: min(980px, 100%); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h2 { flex: 1; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--text); color: var(--panel); padding: 11px 15px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13.5px; max-width: 380px; animation: pop .2s; display: flex; gap: 10px; align-items: flex-start; }
.toast.error { background: var(--danger); color: #fff; }
.toast.success { background: var(--success); color: #fff; }
.popover { position: absolute; z-index: 90; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 200px; padding: 6px; animation: pop .12s; }
.popover .item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 13.5px; }
.popover .item:hover { background: var(--panel-2); }
.popover .item svg { width: 16px; height: 16px; color: var(--muted); }
.popover .sep { height: 1px; background: var(--border); margin: 5px 0; }
.notif-panel { width: 380px; max-height: 70vh; overflow-y: auto; padding: 0; }
.notif { padding: 11px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.notif:hover { background: var(--panel-2); }
.notif.unread { background: var(--primary-50); }
.notif .t { font-weight: 620; font-size: 13px; }
.notif .b { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

.tag-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px 7px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--panel); min-height: 34px; align-items: center; cursor: text; }
.tag-input:focus-within { outline: 2px solid var(--primary-100); border-color: var(--primary); }
.tag-input input { border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; flex: 1; min-width: 120px; padding: 2px; }

.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; flex: none; }
.spinner.lg { width: 28px; height: 28px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--panel-2), var(--border), var(--panel-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bars .bar span { width: 100%; max-width: 34px; background: var(--honey); border-radius: 5px 5px 2px 2px; min-height: 2px; opacity: .85; transition: opacity .12s; }
.bars .bar:hover span { opacity: 1; }
.bars .bar small { font-size: 10.5px; color: var(--muted); }
.bars .bar b { font-size: 11px; color: var(--text-2); }
.hbar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 12.5px; margin-bottom: 7px; }
.hbar .track { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.hbar .track span { display: block; height: 100%; background: var(--honey-600); border-radius: 999px; }

.funnel { display: flex; gap: 6px; }
.funnel .stage { flex: 1; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); cursor: pointer; min-width: 0; }
.funnel .stage:hover { border-color: var(--primary); }
.funnel .stage .n { font-size: 21px; font-weight: 750; }
.funnel .stage .l { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ai-block { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--panel); }
.ai-block h3 { margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.ai-block ul { margin: 0; padding-left: 18px; }
.ai-block li { margin-bottom: 4px; }

kbd { font-family: var(--mono); font-size: 11px; padding: 1px 5px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--panel-2); color: var(--muted); }

/* Responsive */
@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  .app.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .menu-btn { display: inline-flex; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .ao { grid-template-columns: auto minmax(0, 1fr); }
  .ao .score-cell { display: none; }
  .ao-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; }
  .grid-2, .grid-3, .grid-4, .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .cal .day { min-height: 70px; }
  .cal .ev { font-size: 10px; }
  .topbar .search { max-width: none; }
}

@media print {
  .sidebar, .topbar, .no-print, .tabs, .toolbar { display: none !important; }
  .app { display: block; }
  .content { padding: 0; }
  .card { box-shadow: none; border-color: #ccc; }
  body { background: #fff; }
}

/* Mascotte */
.bee { display: block; overflow: visible; flex: none; }
.bee-anim .bee-bob { animation: bee-bob 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bee-anim .bee-wings { animation: bee-flap .16s ease-in-out infinite alternate; transform-box: view-box; transform-origin: 100px 74px; }
@keyframes bee-bob { 50% { transform: translateY(-5px) rotate(-2deg); } }
@keyframes bee-flap { to { transform: scaleY(.8); } }
@media (prefers-reduced-motion: reduce) { .bee-anim .bee-bob, .bee-anim .bee-wings { animation: none; } }
.empty .bee { margin: 0 auto 6px; }
.loader { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 20px; color: var(--muted); }
.loader .bee-anim .bee-bob { animation-duration: 1.1s; }
.hero { display: flex; align-items: center; gap: 22px; padding: 18px 24px; margin-bottom: 18px; background: linear-gradient(110deg, var(--primary-50), var(--panel) 65%); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -30px; top: -20px; width: 260px; height: 200px; opacity: .5; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cpath d='M28 0 56 16.2v32.4L28 64.8 0 48.6V16.2zM28 64.8V97M0 16.2-28 0M56 16.2 84 0' fill='none' stroke='%23f5ad00' stroke-opacity='.35' stroke-width='1.5'/%3E%3C/svg%3E") 0 0 / 56px 97px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.hero h1 { font-size: 24px; }
.hero .sub { color: var(--text-2); margin-top: 4px; }
.hero .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.bubble { position: relative; display: inline-block; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 7px 12px; font-size: 13px; color: var(--text-2); box-shadow: var(--shadow-sm); margin-top: 8px; }
@media (max-width: 820px) { .hero { flex-direction: column; text-align: center; } .hero .actions { margin: 0 auto; justify-content: center; } }

/* Aperçu des brouillons IA */
.memo-preview h2 { font-size: 20px; margin: 4px 0 12px; }
.memo-preview h3 { font-size: 16px; margin: 20px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--honey); }
.memo-preview h4 { font-size: 14px; margin: 14px 0 6px; }
.memo-preview p, .memo-preview li { line-height: 1.6; }
.memo-preview ul { padding-left: 20px; }
.memo-preview mark { background: var(--primary-100); color: var(--primary-600); padding: 0 4px; border-radius: 4px; }
.memo-preview .table { margin: 8px 0 14px; }

/* Visionneuse de documents */
.viewer { position: fixed; inset: 0; z-index: 120; background: var(--bg); display: flex; flex-direction: column; animation: fade .15s; }
.viewer-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--panel); }
.viewer-bar .fi { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 9px; font-weight: 800; color: #fff; flex: none; }
.viewer-main { flex: 1; display: flex; min-height: 0; }
.viewer-list { width: 270px; flex: none; overflow-y: auto; border-right: 1px solid var(--border); background: var(--panel); padding: 8px; }
.viewer-list button { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: none; padding: 6px 8px; border-radius: 8px; font: inherit; font-size: 13px; color: var(--text-2); cursor: pointer; text-align: left; }
.viewer-list button:hover { background: var(--panel-2); }
.viewer-list button.active { background: var(--primary-50); color: var(--primary-600); font-weight: 600; }
.viewer-list .fi { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 7px; font-weight: 800; color: #fff; flex: none; }
.viewer-dir { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 8px 4px; }
.viewer-stage { flex: 1; min-width: 0; overflow: auto; display: flex; flex-direction: column; }
.viewer-stage > .loader, .viewer-none { margin: auto; text-align: center; padding: 30px; }
.viewer-frame { flex: 1; width: 100%; border: 0; background: #fff; }
.viewer-frame.paper { background: #fff; color-scheme: light; }
.viewer-sheets { display: flex; gap: 2px; flex: none; overflow-x: auto; padding: 0 10px; border-top: 1px solid var(--border); background: var(--panel); }
.viewer-sheets button { flex: none; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; height: 32px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.viewer-sheets button:hover { background: var(--panel-2); color: var(--text); }
.viewer-sheets button.active { border-bottom-color: var(--honey-600); color: var(--text); background: var(--primary-50); }
.viewer-img { flex: 1; display: grid; place-items: center; padding: 20px; background: repeating-conic-gradient(var(--panel-2) 0 25%, var(--panel) 0 50%) 0 0 / 22px 22px; }
.viewer-img img, .viewer-img video { max-width: 100%; max-height: calc(100vh - 110px); box-shadow: var(--shadow-lg); border-radius: 4px; }
.viewer-text { margin: 0; padding: 22px 26px; font: 13px/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; }
.viewer-table { padding: 16px; overflow: auto; }
/* Classeur : grille de la feuille (mêmes cases que l'éditeur de bordereaux), papier blanc même en thème sombre */
.viewer-grid { flex: 1; min-height: 0; overflow: auto; background: #fff; color-scheme: light; }
.viewer-table .table td, .viewer-table .table th { white-space: nowrap; font-size: 12.5px; }
.viewer-zip { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 4px; }
.viewer-zip li { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.viewer-zip .fi { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; font-size: 7px; font-weight: 800; color: #fff; flex: none; }
.file .name-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; text-align: left; max-width: 100%; display: block; }
.file .name-link:hover { color: var(--primary); text-decoration: underline; }
@media (max-width: 760px) { .viewer-list { display: none; } .viewer-bar .btn:not(.icon) { padding: 0 8px; } }

/* Espace « Répondre » */
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.subtabs button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.subtabs button:hover { border-color: var(--border-strong); color: var(--text); }
.subtabs button.active { background: var(--honey); border-color: var(--honey-600); color: var(--on-honey); }
.subtabs button svg { width: 15px; height: 15px; }

/* Fiche d'un AO : navigation unique à gauche (étudier, répondre, déposer) et bandeau « Prochaine étape » */
.next-step { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 18px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--honey) 45%, var(--border)); background: color-mix(in srgb, var(--honey) 9%, var(--panel)); }
.next-step .ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--honey); color: var(--on-honey); }
.next-step .ico svg { width: 18px; height: 18px; }
.next-step .t { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.next-step .btn svg { width: 15px; height: 15px; }
.ao-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 20px; align-items: start; }
.ao-layout.folded { grid-template-columns: 52px minmax(0, 1fr); }
.ao-rail { position: sticky; top: 74px; display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); max-height: calc(100vh - 90px); overflow-y: auto; }
.ao-rail .grp { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }
.ao-rail .grp:first-child { padding-top: 2px; }
.ao-rail button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 34px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13.5px; font-weight: 550; color: var(--text-2); cursor: pointer; text-align: left; }
.ao-rail button:hover { background: var(--panel-2); color: var(--text); }
.ao-rail button.active { background: color-mix(in srgb, var(--honey) 22%, transparent); color: var(--text); font-weight: 650; }
.ao-rail button.active svg { color: var(--honey-600); }
.ao-rail button svg { flex: none; width: 16px; height: 16px; }
.ao-rail button .l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ao-rail .n { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 650; color: var(--muted); background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.ao-rail .n svg { width: 12px; height: 12px; }
.ao-rail .n.ok { color: var(--success); background: var(--success-50); border-color: transparent; }
.ao-rail .n.ko { color: var(--danger); background: var(--danger-50); border-color: transparent; }
.ao-rail .rail-hint { display: flex; gap: 8px; margin: 10px 4px 2px; padding: 10px; border-radius: 8px; background: var(--panel-2); font-size: 12px; line-height: 1.4; color: var(--muted); }
.ao-rail .rail-hint svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.ao-rail .sep { height: 1px; background: var(--border); margin: 8px 4px; }
.ao-rail .fold { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ao-layout.folded .ao-rail { padding: 8px 6px; }
.ao-layout.folded .ao-rail .grp { font-size: 0; padding: 6px 0; margin: 2px 6px; border-top: 1px solid var(--border); }
.ao-layout.folded .ao-rail .grp:first-child { border-top: 0; }
.ao-layout.folded .ao-rail button { justify-content: center; padding: 6px 0; }
.ao-layout.folded .ao-rail .l, .ao-layout.folded .ao-rail .n, .ao-layout.folded .ao-rail .rail-hint { display: none; }
@media (max-width: 900px) {
  .ao-head-top { flex-direction: column; gap: 10px !important; }
  .ao-head-top > .grow { width: 100%; }
  .ao-layout, .ao-layout.folded { grid-template-columns: minmax(0, 1fr); }
  .ao-rail { position: static; flex-direction: row; overflow-x: auto; max-height: none; padding: 6px; gap: 4px; }
  .ao-rail .grp, .ao-rail .sep, .ao-rail .fold, .ao-rail .rail-hint { display: none; }
  .ao-rail button { width: auto; flex: none; white-space: nowrap; }
  .ao-layout.folded .ao-rail .l, .ao-layout.folded .ao-rail .n { display: inline; }
  .next-step { flex-wrap: wrap; }
}
@media print { .ao-layout { display: block; } }
.subtabs .n { font-size: 11px; background: rgba(0, 0, 0, .07); border-radius: 999px; padding: 1px 7px; display: inline-flex; align-items: center; }
.subtabs .n svg { width: 11px; height: 11px; }
.progress.danger > span { background: var(--danger); }
.sep-line { height: 1px; background: var(--border); margin: 10px 0; }
b.lg { font-size: 18px; font-variant-numeric: tabular-nums; }
.tips { margin: 0; padding-left: 18px; display: grid; gap: 7px; line-height: 1.5; }
.rej-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rej-steps li { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding-left: 10px; border-left: 3px solid var(--border-strong); }
.rej-steps li.done { border-left-color: var(--success); }
.rej-steps li.due { border-left-color: var(--honey-600); }
.rej-steps li.late { border-left-color: var(--danger); }
.rej-steps li.late .rej-date { color: var(--danger); font-weight: 600; }
.rej-steps li.todo { border-left-color: var(--primary); }
.rej-date { font-size: 12.5px; color: var(--muted); padding-top: 1px; }
.rej-letter { display: grid; grid-template-columns: 270px 1fr; gap: 20px; align-items: start; }
.letter-preview { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel); padding: 20px 24px; max-height: 58vh; overflow: auto; font-size: 13px; line-height: 1.5; }
.letter-preview p { margin: 0 0 10px; }
.letter-preview p.right { text-align: right; }
.letter-preview ul { margin: 0 0 10px; padding-left: 20px; }
@media (max-width: 760px) { .rej-letter { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: var(--border); }
.timeline li { display: flex; align-items: center; gap: 12px; padding: 8px 0; position: relative; }
.timeline .tl-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--panel); flex: none; display: grid; place-items: center; cursor: pointer; padding: 0; color: #fff; z-index: 1; }
.timeline .tl-dot:hover { border-color: var(--primary); }
.timeline .tl-dot svg { width: 14px; height: 14px; }
.timeline li.done .tl-dot { background: var(--success); border-color: var(--success); }
.timeline li.done .strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.timeline li.late .tl-dot { border-color: var(--danger); }
.timeline li.soon .tl-dot { border-color: var(--honey-600); }
.timeline li.final .tl-dot { border-color: var(--primary); background: var(--primary-50); }
.timeline .tl-date { position: relative; font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; cursor: pointer; padding: 3px 8px; border-radius: 6px; border: 1px dashed transparent; }
.timeline label.tl-date:hover { border-color: var(--border-strong); }
.timeline .tl-date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.timeline li.late .tl-date { color: var(--danger); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 8px; border-radius: 8px; }
.checks li[data-go] { cursor: pointer; }
.checks li[data-go]:hover { background: var(--panel-2); }
.checks li > svg:first-child { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.checks li.ok > svg:first-child { color: var(--success); }
.checks li.warn > svg:first-child { color: var(--warning); }
.checks li.error > svg:first-child { color: var(--danger); }
.checks li.info > svg:first-child { color: var(--info); }
.checks li > svg.faint { width: 15px; height: 15px; margin-top: 2px; }
.alert .bee { flex: none; }

.lot-pick { align-items: flex-start; padding: 9px 10px; border: 1px solid var(--border); border-radius: 9px; }
.lot-pick input { margin-top: 2px; }
.price-table td { padding: 6px 6px; vertical-align: middle; }
.price-table th { padding: 8px 6px; }
.price-table .input.num { text-align: right; font-variant-numeric: tabular-nums; }
.price-table .input.missing { border-color: color-mix(in srgb, var(--warning) 55%, transparent); background: var(--warning-50); }

.memo-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.memo-outline { position: sticky; top: 12px; }
.memo-outline ol { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow-y: auto; }
.memo-outline li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 13px; cursor: pointer; color: var(--text-2); }
.memo-outline li:hover { background: var(--panel-2); }
.memo-outline li.active { background: var(--primary-50); color: var(--primary-600); font-weight: 600; }
.memo-outline .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--border-strong); }
.memo-outline .dot.draft { background: var(--honey-600); }
.memo-outline .dot.done { background: var(--success); }
.memo-outline .dot.flag { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 30%, transparent); }
.memo-editor .title-input { font-size: 16px; font-weight: 700; height: 38px; border-color: transparent; background: transparent; padding-left: 6px; }
.memo-editor .title-input:hover, .memo-editor .title-input:focus { border-color: var(--border-strong); background: var(--panel); }
.memo-text { min-height: 52vh; height: auto; padding: 14px 16px; line-height: 1.6; font-size: 14px; resize: vertical; }
.memo-paper { border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; min-height: 52vh; background: var(--panel); }

.question.repondue { border-left: 3px solid var(--success); }
.question.envoyee { border-left: 3px solid var(--honey-600); }
.question .answer { background: var(--panel-2); border-radius: 9px; padding: 10px 12px; }
.suggest { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.suggest:last-child { border-bottom: 0; }

@media (max-width: 1100px) { .memo-layout { grid-template-columns: 1fr; } .memo-outline { position: static; } }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Bordereaux de l'acheteur remplis dans Butineur */
.bpu-file .badge { flex: none; }
.name-link.inline { display: inline; font-weight: 500; color: var(--primary); }
.bpu-head .bpu-progress { min-width: 150px; }
.bpu-sheets { border: 1px solid var(--border); border-bottom: 0; border-radius: 10px 10px 0 0; padding: 0 6px; }
.bpu-sheets .bpu-n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--honey); color: var(--on-honey); font-size: 10.5px; line-height: 16px; text-align: center; }
.bpu-sheets .bpu-ok { width: 13px; height: 13px; color: var(--success); vertical-align: -2px; }
.bpu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 12px; align-items: start; }
.bpu-grid-wrap { overflow: auto; max-height: calc(100vh - 230px); min-height: 320px; border: 1px solid var(--border); border-radius: 0 0 10px 10px; background: #fff; color-scheme: light; }
.bpu-head + .bpu-layout .bpu-grid-wrap { border-radius: 10px; }
.bpu-grid { border-collapse: collapse; table-layout: fixed; font: 12.5px/1.3 Arial, Helvetica, sans-serif; color: #1a1a1a; background: #fff; }
.bpu-grid td { position: relative; padding: 2px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; cursor: default; }
.bpu-grid.gridlines td { box-shadow: inset -1px -1px 0 #e6e6e6; }
.bpu-grid thead th { position: sticky; top: 0; z-index: 2; height: 22px; background: #f4f1ea; color: #6b6457; font: 600 11px/22px system-ui, sans-serif; text-align: center; border-right: 1px solid #e2dccf; border-bottom: 1px solid #d6cbb5; }
.bpu-grid th.rh { position: sticky; left: 0; z-index: 1; background: #f4f1ea; color: #6b6457; font: 600 11px system-ui, sans-serif; text-align: center; border-right: 1px solid #d6cbb5; border-bottom: 1px solid #e2dccf; }
.bpu-grid thead th.corner { left: 0; z-index: 3; }
.bpu-grid td.fx { color: #1d3d6e; }
.bpu-grid td.fx.bad { color: #9a5b00; text-decoration: underline dotted; }
.bpu-grid td.picked { box-shadow: inset 0 0 0 2px #b7791f !important; }
.bpu-grid td.in { padding: 0; }
.bpu-in { display: block; width: 100%; height: 100%; min-height: 20px; border: 0; margin: 0; padding: 2px 5px; background: transparent; font: inherit; color: #111; text-align: right; outline: none; }
.bpu-grid td.in.todo { background: #fff3c4 !important; box-shadow: inset 0 0 0 1px #f0c23b; }
.bpu-grid td.in.opt .bpu-in { text-align: left; }
.bpu-grid td.in.filled { background: #fffdf5 !important; }
.bpu-grid td.in.auto { background: #f6faf3 !important; }
.bpu-grid td.in.derived .bpu-in::placeholder { color: #6b6457; font-style: italic; opacity: 1; }
.bpu-grid td.in::after { content: ''; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; }
.bpu-grid td.in.src-bareme::after { background: #e0a100; }
.bpu-grid td.in.src-tarifs::after { background: #2f80ed; }
.bpu-grid td.in.src-chiffrage::after { background: #27ae60; }
.bpu-grid td.in.src-historique::after { background: #7c5cc4; }
.bpu-grid td.in.src-ia::after { background: #d946ef; }
.bpu-in:focus { background: #fff; box-shadow: inset 0 0 0 2px #d99a00; }
.bpu-grid td.in.opt .bpu-in, .bpu-grid td.in[class*='company'] .bpu-in, .bpu-in[data-text] { text-align: left; }
.bpu-side { position: sticky; top: 12px; max-height: calc(100vh - 120px); overflow: auto; }
.bpu-ctx .strong { line-height: 1.4; }
.bpu-val .v { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.bpu-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 8px 10px; margin-bottom: 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); font: inherit; color: var(--text); cursor: pointer; }
.bpu-opt:hover { border-color: var(--honey-600); background: var(--primary-50); }
.bpu-totals { display: grid; gap: 6px; }
.bpu-totals .row { gap: 8px; align-items: baseline; padding-bottom: 6px; border-bottom: 1px dashed var(--border); }
.bpu-formula { display: block; margin-top: 4px; padding: 6px 8px; border-radius: 6px; background: var(--panel-2); font: 12px/1.4 var(--mono); word-break: break-all; }
.bpu-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 12px; color: var(--text-2); }
.bpu-legend .lg { display: inline-block; width: 14px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; border: 1px solid #d6cbb5; }
.bpu-legend .lg.todo { background: #fff3c4; border-color: #f0c23b; }
.bpu-legend .lg.filled { background: #fffdf5; }
.bpu-legend .lg.auto { background: #f6faf3; box-shadow: inset -4px 0 0 #e0a100; }
.bpu-legend .lg.derived { background: repeating-linear-gradient(135deg, #fff 0 3px, #eee 3px 6px); }
.bpu-auto { width: 330px; padding: 12px; }
.bpu-src { display: flex; gap: 10px; align-items: flex-start; padding: 6px 4px; border-radius: 6px; cursor: pointer; }
.bpu-src > span { display: flex; flex-direction: column; gap: 1px; }
.bpu-src input { margin-top: 3px; }
.bpu-src.off { opacity: .55; cursor: not-allowed; }
.input-suffix { display: flex; align-items: center; gap: 6px; }
.input-suffix span { font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 1100px) { .bpu-layout { grid-template-columns: 1fr; } .bpu-side { position: static; max-height: none; } }
.bpu-head .fi { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 9px; font-weight: 800; color: #fff; flex: none; }
.bpu-list-wrap { padding: 12px; display: grid; gap: 14px; }
.bpu-list { width: 100%; border-collapse: collapse; font: 13px/1.35 system-ui, -apple-system, sans-serif; color: #1a1a1a; }
.bpu-list th { position: sticky; top: 0; z-index: 1; background: #f4f1ea; color: #4d473c; font-size: 11.5px; font-weight: 650; text-align: left; padding: 7px 8px; border-bottom: 1px solid #d6cbb5; }
.bpu-list tbody th { position: static; width: 220px; background: #faf8f3; }
.bpu-list td { padding: 0 8px; height: 30px; border-bottom: 1px solid #eee8dc; vertical-align: middle; }
.bpu-list td.in { padding: 0; width: 120px; min-width: 110px; border-left: 1px solid #eee8dc; }
.bpu-list td.in .bpu-in { height: 30px; }
.bpu-list td.lbl { max-width: 520px; white-space: normal; line-height: 1.3; padding-top: 4px; padding-bottom: 4px; }
.bpu-list td.code, .bpu-list th.code { width: 56px; color: #6b6457; font-variant-numeric: tabular-nums; }
.bpu-list .num { text-align: right; font-variant-numeric: tabular-nums; }
.bpu-list td.fx { color: #1d3d6e; white-space: nowrap; }
.bpu-list tr.sec td { height: auto; padding: 8px 8px 5px; background: #fbf6e7; font-weight: 650; font-size: 12px; color: #6b5310; }
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-2); }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.seg button svg { width: 14px; height: 14px; }
.seg button.active { background: var(--panel); color: var(--text); box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.08)); }
.memo-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.memo-model { text-align: left; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); font: inherit; color: var(--text); cursor: pointer; transition: border-color .12s, background .12s; }
.memo-model:hover { border-color: var(--honey-600); background: var(--primary-50); }
.memo-model.suggested { border-color: var(--honey-600); box-shadow: 0 0 0 1px var(--honey-600) inset; }

/* Photothèque, photos du mémoire et portfolios */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
button.chip { cursor: pointer; font: inherit; font-size: 12px; }
button.chip.on { background: var(--honey); border-color: var(--honey-600); color: var(--on-honey); font-weight: 600; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.media-grid.pick { max-height: 58vh; overflow-y: auto; padding: 2px; }
.media-tile { position: relative; display: flex; flex-direction: column; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--panel); cursor: pointer; text-align: left; font: inherit; color: var(--text); transition: border-color .12s, box-shadow .12s; }
.media-tile:hover { border-color: var(--honey-600); }
.media-tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: var(--panel-2); }
.media-tile .cap { padding: 7px 9px; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.media-tile .cap b { display: block; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-tile .tick { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .9); border: 1px solid var(--border); display: grid; place-items: center; color: transparent; }
.media-tile .tick svg { width: 14px; height: 14px; }
.media-tile.on { border-color: var(--honey-600); box-shadow: 0 0 0 2px var(--honey-600); }
.media-tile.on .tick { background: var(--honey); border-color: var(--honey-600); color: var(--on-honey); }
.media-tile.match::after { content: 'Suggestion'; position: absolute; top: 8px; left: 8px; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #6b5310; }
.media-edit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.media-edit > img { width: 100%; border-radius: 10px; max-height: 62vh; object-fit: contain; background: var(--panel-2); }
@media (max-width: 760px) { .media-edit { grid-template-columns: 1fr; } }
.memo-final .memo-cover-thumb, .memo-cover-thumb { width: 54px; height: 38px; border-radius: 6px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); }
.memo-cover-thumb.lg { width: 132px; height: 88px; border-radius: 8px; }
.modal.memo-pages-modal { width: min(920px, 100%); height: calc(100vh - 40px); }
.memo-pages-modal .modal-body { flex: 1; background: var(--panel-2); }
.memo-pages-bar { gap: 10px; margin-bottom: 4px; }
.memo-pages { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; gap: 22px; padding: 14px 0 6px; }
.memo-pages.two { grid-template-columns: repeat(2, minmax(0, 400px)); gap: 22px 16px; }
.memo-page { margin: 0; }
.memo-page img { display: block; width: 100%; height: auto; background: #fff; border-radius: 2px; box-shadow: 0 1px 3px rgba(0, 0, 0, .14), 0 10px 28px rgba(0, 0, 0, .10); }
.memo-page figcaption { text-align: center; font-size: 11.5px; color: var(--faint); margin-top: 7px; }
.memo-cover-thumb svg { width: 18px; height: 18px; }
.pf-edit-page { border: 1px solid var(--border); border-radius: 12px; padding: 10px; background: var(--panel); }
.pf-alone { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); }
.pf-alone.on { border-color: color-mix(in srgb, var(--honey) 55%, var(--border)); background: color-mix(in srgb, var(--honey) 8%, var(--panel)); }
.pf-sheet { display: grid; gap: 6px; aspect-ratio: 210 / 250; max-height: 640px; margin-top: 8px; background: #fff; border-radius: 6px; padding: 8px; box-shadow: inset 0 0 0 1px var(--border); }
.pf-cell { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; border-radius: 6px; overflow: hidden; background: #f4f1ea; }
.pf-cell img { flex: 1; min-height: 0; width: 100%; object-fit: contain; display: block; }
.pf-cell.empty { cursor: pointer; border: 2px dashed #d6cbb5; background: #fbf8f1; }
.pf-cell.empty:hover { border-color: var(--honey-600); }
.pf-ph { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; text-align: center; color: #6b6457; font-size: 12px; }
.pf-ph svg { width: 22px; height: 22px; opacity: .6; }
.pf-ph b { color: #1a1a1a; font-size: 12.5px; }
.pf-ph span { font-size: 11px; }
.pf-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .12s; }
.pf-cell:hover .pf-tools, .pf-cell.empty .pf-tools { opacity: 1; }
.pf-label, .pf-cap { flex: none; width: 100%; border: 0; border-top: 1px solid #e9e4dc; background: #fff; font: inherit; color: #1a1a1a; padding: 4px 7px; outline: none; }
.pf-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #4d473c; }
.pf-cap { font-size: 11.5px; color: #6b6457; border-top: 0; padding-top: 0; }
.pf-label:focus, .pf-cap:focus { background: #fffbea; }
.memo-preview .md-fig { margin: 10px 0 14px; }
.memo-preview .md-fig img { width: auto; max-width: 100%; border-radius: 8px; display: block; max-height: 420px; }
.memo-preview .md-fig.demi { width: 62%; } .memo-preview .md-fig.tiers { width: 42%; }
.memo-preview figcaption { font-size: 12px; color: var(--muted); margin-top: 5px; }
.memo-preview .md-row { display: grid; gap: 8px; margin: 10px 0 14px; }
.memo-preview .md-row.n2 { grid-template-columns: 1fr 1fr; } .memo-preview .md-row.n3 { grid-template-columns: repeat(3, 1fr); } .memo-preview .md-row.n4 { grid-template-columns: repeat(4, 1fr); }
.memo-preview .md-row figure { margin: 0; }
.memo-preview .md-row img { width: 100%; height: auto; border-radius: 8px; display: block; }
.memo-preview blockquote { margin: 10px 0; padding: 10px 14px; background: var(--panel-2); border-left: 3px solid var(--honey-600); border-radius: 6px; }
.popover.pop-scroll { max-height: min(70vh, 520px); overflow-y: auto; }
/* Cachet de l'entreprise (Paramètres › Entreprise) : aperçu sur fond blanc, comme sur un document */
.cachet-preview { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: grid; place-items: center; min-height: 90px; }
.cachet-preview img { max-width: 100%; max-height: 140px; object-fit: contain; }
.cachet-preview.empty { background: var(--panel-2); text-align: center; }
/* Vérification du mémoire par rapport au DCE */
.memo-check-bar { gap: 10px; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.memo-check-bar > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.chk-n { font-weight: 600; }
.chk-n.ok { color: var(--success); } .chk-n.partial { color: var(--warning); } .chk-n.missing { color: var(--danger); }
.chk-group { font-size: 14px; margin: 18px 0 8px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.chk-list { display: flex; flex-direction: column; gap: 6px; }
.chk-item { display: flex; gap: 10px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.chk-item.sub { margin-left: 22px; padding: 7px 10px; }
.chk-item.crit .chk-label { font-weight: 650; }
.chk-label { font-size: 13.5px; line-height: 1.4; }
.chk-ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.chk-ic svg { width: 14px; height: 14px; }
.chk-item.ok .chk-ic { background: var(--success-50); color: var(--success); }
.chk-item.partial .chk-ic { background: var(--warning-50); color: var(--warning); }
.chk-item.missing .chk-ic { background: var(--danger-50); color: var(--danger); }
.chk-item.missing { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }
