/* AgentBoard — thème clair/sombre, composants, kanban, graphiques */
:root {
  color-scheme: light;
  --page: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --hover: rgba(11, 11, 11, 0.04);
  --text: #191919;
  --text-2: #666666;
  --text-3: #8a8a8a;
  --border: rgba(11, 11, 11, 0.10);
  --border-strong: rgba(11, 11, 11, 0.18);
  --grid: #e7e7e7;
  --axis: #c2c2c2;
  --accent: #257de0;
  --accent-wash: rgba(37, 125, 224, 0.10);
  --good-text: #006c10;
  --bad-text: #c0302f;
  --st-backlog: #b8b8b8;
  --st-todo: #8a8a8a;
  --st-in_progress: #257de0;
  --st-review: #6a4ce2;
  --st-blocked: #dc3c3d;
  --st-done: #0aac23;
  --track: #eceef1;
  --warn: #fbb315;
  --warn-text: #8a5a00;
  --series-scope: #8a8a8a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0b0b0b; --surface: #191919; --surface-2: #222222; --hover: rgba(255, 255, 255, 0.05);
    --text: #efefef; --text-2: #9c9c9c; --text-3: #7a7a7a;
    --border: rgba(255, 255, 255, 0.10); --border-strong: rgba(255, 255, 255, 0.18);
    --grid: #303030; --axis: #474747; --accent: #338ced; --accent-wash: rgba(51, 140, 237, 0.14);
    --good-text: #53c556; --bad-text: #eb6263;
    --st-backlog: #5c5c5c; --st-todo: #8a8a8a; --st-in_progress: #338ced; --st-review: #9887ef;
    --st-blocked: #dc3c3d; --st-done: #0aac23; --track: #2a2a2a;
    --warn-text: #fbb315; --series-scope: #9c9c9c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0b0b0b; --surface: #191919; --surface-2: #222222; --hover: rgba(255, 255, 255, 0.05);
  --text: #efefef; --text-2: #9c9c9c; --text-3: #7a7a7a;
  --border: rgba(255, 255, 255, 0.10); --border-strong: rgba(255, 255, 255, 0.18);
  --grid: #303030; --axis: #474747; --accent: #338ced; --accent-wash: rgba(51, 140, 237, 0.14);
  --good-text: #53c556; --bad-text: #eb6263;
  --st-backlog: #5c5c5c; --st-todo: #8a8a8a; --st-in_progress: #338ced; --st-review: #9887ef;
  --st-blocked: #dc3c3d; --st-done: #0aac23; --track: #2a2a2a;
    --warn-text: #fbb315; --series-scope: #9c9c9c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.45 var(--font); background: var(--page); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 22px; }
h2 { font-size: 15px; }
code, pre { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--text-2); }
.small { font-size: 12px; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 10px 24px; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 6px 12px; border-radius: 8px; color: var(--text-2); font-weight: 500; }
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a.active { background: var(--accent-wash); color: var(--accent); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); padding: 4px 10px; border-radius: 99px; border: 1px solid var(--border); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.live.on .live-dot { background: var(--st-done); box-shadow: 0 0 0 0 rgba(10, 172, 35, 0.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(10, 172, 35, 0.45); } 70% { box-shadow: 0 0 0 7px rgba(10, 172, 35, 0); } 100% { box-shadow: 0 0 0 0 rgba(10, 172, 35, 0); } }

/* ---------- Boutons & champs ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface); font-weight: 500; white-space: nowrap;
}
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad-text); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 4px 10px; font-size: 12.5px; }
.icon-btn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text-2); }
.icon-btn:hover { color: var(--text); background: var(--hover); }
.input, .select, .textarea {
  width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface);
}
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.textarea { resize: vertical; min-height: 80px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.row { display: flex; gap: 12px; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Mise en page ---------- */
.main { max-width: 1480px; margin: 0 auto; padding: 24px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { color: var(--text-2); margin-top: 4px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: baseline; gap: 10px; padding: 16px 18px 0; }
.card-head .hint { color: var(--text-2); font-size: 12px; }
.card-head .right { margin-left: auto; }
.card-body { padding: 14px 18px 18px; }
.section { margin-top: 24px; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.section-title .count { color: var(--text-2); font-size: 13px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 16px; }
@media (max-width: 1000px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Tuiles KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { padding: 14px 16px; }
.kpi .label { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 28px; font-weight: 600; margin-top: 4px; letter-spacing: -0.02em; }
.kpi .value .unit { font-size: 15px; font-weight: 500; color: var(--text-2); margin-left: 2px; }
.kpi .delta { font-size: 12px; margin-top: 2px; color: var(--text-2); }
.delta.up { color: var(--good-text); }
.delta.down { color: var(--bad-text); }
.kpi.hero .value { font-size: 48px; line-height: 1.05; }

/* ---------- Barres de progression ---------- */
.meter { height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.4s ease; }
.meter.thin { height: 4px; }
.segbar { display: flex; gap: 2px; height: 8px; border-radius: 99px; overflow: hidden; background: var(--track); }
.segbar > span { height: 100%; min-width: 2px; }
.segbar > span:first-child { border-radius: 99px 0 0 99px; }
.segbar > span:last-child { border-radius: 0 99px 99px 0; }
.segbar > span:only-child { border-radius: 99px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-2); }
.legend .key { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- Statuts, priorités, agents ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.status svg { flex: none; }
.prio { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); }
.prio.urgent { color: var(--st-blocked); font-weight: 600; }
.avatar {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none;
  font-size: 10px; font-weight: 700; color: #fff; letter-spacing: 0.02em; box-shadow: 0 0 0 2px var(--surface);
}
.avatar.lg { width: 32px; height: 32px; font-size: 12px; }
.avatar.dark-ink { color: #0b0b0b; }
.avatar.none { background: transparent; border: 1.5px dashed var(--axis); box-shadow: none; }
.agent { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.avatars { display: inline-flex; }
.avatars .avatar + .avatar { margin-left: -6px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }

/* ---------- Cartes projet ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.project-card { display: block; padding: 16px 18px; transition: transform 0.12s ease, box-shadow 0.12s ease; cursor: pointer; }
.project-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.project-card .top { display: flex; align-items: flex-start; gap: 10px; }
.project-card .name { font-weight: 600; font-size: 15px; }
.project-card .repo { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.project-card .pct { margin-left: auto; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.project-card .desc { color: var(--text-2); font-size: 13px; margin: 8px 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.project-card .counts { display: flex; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.project-card .foot { display: flex; align-items: center; margin-top: 12px; font-size: 12px; color: var(--text-2); }
.project-card .foot .avatars { margin-left: auto; }
.empty { text-align: center; padding: 48px 24px; color: var(--text-2); }
.empty h2 { color: var(--text); margin-bottom: 6px; font-size: 17px; }
.empty .btn { margin-top: 14px; }

/* ---------- Fil d'activité ---------- */
.feed { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.feed li { display: flex; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--border); font-size: 13px; }
.feed li:first-child { border-top: none; }
.feed .what { flex: 1; min-width: 0; }
.feed .what b { font-weight: 600; }
.feed .what .msg { color: var(--text-2); margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.feed .when { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.feed li.fresh { animation: flash 1.6s ease; }
@keyframes flash { from { background: var(--accent-wash); } to { background: transparent; } }
.link { color: var(--accent); cursor: pointer; }
.link:hover { text-decoration: underline; }

/* ---------- Tableau ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--text-2); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody tr:hover { background: var(--hover); }

/* ---------- Graphique ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .tick { fill: var(--text-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .bar { fill: var(--accent); }
.chart .bar.dim { opacity: 0.35; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .bar, .chart .hit:focus + .bar { filter: brightness(1.12); }
.chart .vlabel { fill: var(--text); font-size: 11.5px; font-weight: 600; }
.tooltip {
  position: fixed; z-index: 100; pointer-events: none; opacity: 0; transition: opacity 0.1s;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  border-radius: 8px; padding: 8px 10px; font-size: 12px; min-width: 120px;
}
.tooltip.show { opacity: 1; }
.tooltip .t-title { color: var(--text-2); margin-bottom: 2px; }
.tooltip .t-val { font-weight: 600; font-size: 14px; }
details.data-table { margin-top: 10px; font-size: 12px; color: var(--text-2); }
details.data-table summary { cursor: pointer; }
details.data-table .table { margin-top: 8px; }

/* ---------- Kanban ---------- */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 18px 0 12px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 160px; padding: 6px 10px; }
.toolbar .search { min-width: 240px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(205px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.column { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100vh - 330px); min-height: 200px; }
.column.drop { outline: 2px dashed var(--accent); outline-offset: -2px; background: var(--accent-wash); }
.column-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; font-weight: 600; font-size: 13px; }
.column-head .n { color: var(--text-2); font-weight: 500; }
.column-head .add { margin-left: auto; opacity: 0; }
.column:hover .column-head .add { opacity: 1; }
.column-body { padding: 4px 8px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.column-empty { color: var(--text-3); font-size: 12px; text-align: center; padding: 18px 8px; border: 1px dashed var(--border-strong); border-radius: 10px; }
.tcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); transition: box-shadow 0.12s, transform 0.12s;
}
.tcard:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.tcard.dragging { opacity: 0.4; }
.tcard.flash { animation: flash 1.6s ease; }
.tcard .tc-top { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); }
.tcard .tc-top .prio { margin-left: auto; }
.tcard .tc-title { font-weight: 550; margin: 4px 0 8px; overflow-wrap: anywhere; }
.tcard .tc-last { font-size: 12px; color: var(--text-2); margin: -2px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard .tc-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.tcard .tc-foot .right { margin-left: auto; display: flex; gap: 8px; align-items: center; white-space: nowrap; flex: none; }
.tcard .tc-foot .agent { min-width: 0; }
.tcard .tc-foot .agent > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard .meter { margin: 0 0 8px; }
.tcard .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }

/* ---------- Tiroir (détail tâche) ---------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 40; background: var(--surface);
  border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform 0.22s ease;
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.25); z-index: 30; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.backdrop.open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.drawer-head .crumb { color: var(--text-2); font-size: 12.5px; }
.drawer-head .close { margin-left: auto; }
.drawer-body { padding: 18px; overflow-y: auto; flex: 1; display: grid; gap: 16px; align-content: start; }
.title-input { font-size: 19px; font-weight: 600; border: 1px solid transparent; padding: 4px 6px; margin-left: -6px; border-radius: 6px; background: transparent; width: 100%; }
.title-input:hover { border-color: var(--border); }
.title-input:focus { outline: 2px solid var(--accent); }
.props { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; align-items: center; font-size: 13px; }
.props > label { color: var(--text-2); }
.props .select, .props .input { padding: 5px 8px; }
.progress-row { display: flex; align-items: center; gap: 10px; }
.progress-row input[type=range] { flex: 1; accent-color: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 1px; background: var(--border-strong); }
.timeline li { position: relative; padding: 0 0 14px 32px; font-size: 13px; }
.timeline li .avatar { position: absolute; left: 0; top: 0; }
.timeline .meta { color: var(--text-2); font-size: 12px; }
.timeline .body { margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline .body.note { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.comment-box { display: grid; gap: 8px; }
.drawer-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; }

/* ---------- Modale ---------- */
.modal { border: 1px solid var(--border); border-radius: 14px; padding: 0; width: min(520px, 94vw); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(0, 0, 0, 0.35); }
.modal form { display: grid; gap: 14px; padding: 20px; }
.modal .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 18px; right: 18px; display: grid; gap: 8px; z-index: 60; }
.toast {
  display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  border-radius: 10px; padding: 10px 14px; font-size: 13px; max-width: 380px; animation: slidein 0.25s ease; cursor: pointer;
}
.toast.error { border-color: var(--st-blocked); }
@keyframes slidein { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Page Connecter ---------- */
.steps { display: grid; gap: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { border: none; background: none; padding: 8px 14px; cursor: pointer; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.code { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; overflow-x: auto; white-space: pre; margin: 8px 0; }
.code .copy { position: absolute; top: 8px; right: 8px; }
.prose p { margin: 6px 0; color: var(--text-2); }
.prose b { color: var(--text); }

/* ---------- Divers ---------- */
.back { color: var(--text-2); font-size: 13px; display: inline-flex; gap: 4px; margin-bottom: 8px; }
.back:hover { color: var(--text); }
.skeleton { color: var(--text-3); padding: 40px; text-align: center; }
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .main { padding: 14px; }
  .live-label { display: none; }
}

/* ---------- Sans nouvelles, À surveiller, sous-tâches ---------- */
.stale-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; color: var(--warn-text);
  background: color-mix(in srgb, var(--warn) 14%, transparent); border-radius: 99px; padding: 1px 8px 1px 4px; }
.warn-text { display: inline-flex; align-items: center; gap: 5px; color: var(--warn-text); font-weight: 500; }
.att-list { list-style: none; margin: 0; padding: 0; }
.att-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto 110px; gap: 14px; align-items: center;
  padding: 10px 6px; border-top: 1px solid var(--border); cursor: pointer; border-radius: 6px; }
.att-list li:first-child { border-top: none; }
.att-list li:hover { background: var(--hover); }
.att-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; }
.att-title { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-when { text-align: right; }
@media (max-width: 800px) { .att-list li { grid-template-columns: 1fr; gap: 4px; } .att-when { text-align: left; } }
.tc-parent { font-size: 11.5px; color: var(--text-3); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subtasks { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.subtasks li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--border); cursor: pointer; font-size: 13px; }
.subtasks li:first-child { border-top: none; }
.subtasks li:hover { background: var(--hover); }
.subtasks .st-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
input[type=range]:disabled { opacity: 0.5; }

/* ---------- Courbes ---------- */
.sw-line { display: inline-block; width: 14px; height: 2px; border-radius: 1px; vertical-align: middle; }
.chart .crossline { stroke: var(--axis); stroke-width: 1; }
.tooltip .t-row { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.tooltip .t-row b { margin-left: auto; padding-left: 10px; }

/* ---------- Connexion ---------- */
.login { max-width: 460px; margin: 10vh auto; padding: 28px; display: grid; gap: 12px; }
.login h1 { font-size: 20px; }
.login p { margin: 0; }
[hidden] { display: none !important; }
