/* Tableau de bord d'un projet : barre collante, onglets, panneau de détail à droite qui pousse le contenu sur grand
   écran, plus le suivi : kanban, dépôts, atelier Claude. */
:root{
  --bg:#F4F5F7; --surface:#FFFFFF; --surface-2:#EBEDF1; --line:#D8DCE2; --edge:#AFB6C1;
  --fg:#171A1F; --muted:#5C6470;
  --c-orange:#CC4B18; --c-vert:#3A8128; --c-violet:#5550CC; --c-ocre:#876800; --c-gris:#6B7280;
  --c-bleu:#1F6FB2; --c-rose:#A8327E; --c-cyan:#0E7C6B;
  --up:#08778A; --down:#BE2A70;
  --st-backlog:#9CA3AF; --st-a_faire:#3B6FD4; --st-en_cours:#C98A00; --st-en_revue:#8B4FD9; --st-termine:#2E8B57;
  --warn-bg:#FFF3D3; --warn-fg:#674B00; --err-bg:#FBE3E1; --err-fg:#8A1F17; --ok-bg:#E3F2E1; --ok-fg:#1F5A18;
  --font:"Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:"Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --drawer:440px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0D1015; --surface:#151920; --surface-2:#1D222A; --line:#2B313B; --edge:#48505C;
    --fg:#E6E9ED; --muted:#98A1AD;
    --c-orange:#FF8656; --c-vert:#87CD63; --c-violet:#A9A4FF; --c-ocre:#E2BE4B; --c-gris:#A3AAB5;
    --c-bleu:#7DB8F0; --c-rose:#F08BC4; --c-cyan:#5ED3BE;
    --up:#4DD0E0; --down:#FF79B6;
    --st-backlog:#6B7280; --st-a_faire:#8AB4FF; --st-en_cours:#F2C14E; --st-en_revue:#C39BFF; --st-termine:#6FD39A;
    --warn-bg:#2D2510; --warn-fg:#F1D58B; --err-bg:#3A1714; --err-fg:#FFB4AB; --ok-bg:#16301A; --ok-fg:#A6E39B;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#0D1015; --surface:#151920; --surface-2:#1D222A; --line:#2B313B; --edge:#48505C;
  --fg:#E6E9ED; --muted:#98A1AD;
  --c-orange:#FF8656; --c-vert:#87CD63; --c-violet:#A9A4FF; --c-ocre:#E2BE4B; --c-gris:#A3AAB5;
  --c-bleu:#7DB8F0; --c-rose:#F08BC4; --c-cyan:#5ED3BE;
  --up:#4DD0E0; --down:#FF79B6;
  --st-backlog:#6B7280; --st-a_faire:#8AB4FF; --st-en_cours:#F2C14E; --st-en_revue:#C39BFF; --st-termine:#6FD39A;
  --warn-bg:#2D2510; --warn-fg:#F1D58B; --err-bg:#3A1714; --err-fg:#FFB4AB; --ok-bg:#16301A; --ok-fg:#A6E39B;
  color-scheme:dark;
}
*{box-sizing:border-box}
html{scroll-padding-top:120px}
body{margin:0; background:var(--bg); color:var(--fg); font:400 14px/1.5 var(--font); -webkit-font-smoothing:antialiased}
body::before{content:""; position:fixed; inset:0 0 auto; height:env(safe-area-inset-top,0px); z-index:20; background:var(--bg)}
button, input, select, textarea{font-family:inherit; font-size:inherit; color:inherit}
:focus-visible{outline:2px solid var(--fg); outline-offset:2px}
[hidden]{display:none !important}
.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
code, .mono{font-family:var(--mono); font-size:.92em}
a{color:var(--fg); text-underline-offset:2px}
[data-couleur="orange"]{--c:var(--c-orange)} [data-couleur="vert"]{--c:var(--c-vert)} [data-couleur="violet"]{--c:var(--c-violet)}
[data-couleur="ocre"]{--c:var(--c-ocre)} [data-couleur="gris"]{--c:var(--c-gris)} [data-couleur="bleu"]{--c:var(--c-bleu)}
[data-couleur="rose"]{--c:var(--c-rose)} [data-couleur="cyan"]{--c:var(--c-cyan)}
[data-statut="backlog"]{--st:var(--st-backlog)} [data-statut="a_faire"]{--st:var(--st-a_faire)}
[data-statut="en_cours"]{--st:var(--st-en_cours)} [data-statut="en_revue"]{--st:var(--st-en_revue)}
[data-statut="termine"]{--st:var(--st-termine)}

.wrap{max-width:1360px; margin:0 auto; padding-left:max(16px, env(safe-area-inset-left,0px)); padding-right:max(16px, env(safe-area-inset-right,0px))}

/* Barre du haut : projet et avancement, onglets, réglages et nom. Sur une ligne quand la place le permet (la barre est
   un conteneur : le panneau de détail ouvert la rétrécit), sinon les onglets passent dessous. */
.top{position:sticky; top:env(safe-area-inset-top,0px); z-index:15; background:var(--bg); border-bottom:1px solid var(--line); container-type:inline-size}
.top-inner{display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"brand outils" "tabs tabs"; align-items:center; gap:10px 20px; padding-block:10px}
@container (min-width:1040px){ .top-inner{grid-template-columns:auto minmax(0,1fr) auto; grid-template-areas:"brand tabs outils"} }
.brand{grid-area:brand; display:flex; align-items:center; gap:12px; min-width:0}
.brand svg{flex:none}
.brand-txt{min-width:0; overflow:hidden}
@media (max-width:600px){
  .brand > svg{display:none}
  .top-inner{column-gap:12px}
  .avance progress{display:none}
}
h1{font:650 20px/1.15 var(--font); letter-spacing:-.02em; margin:0}
.projet{all:unset; display:inline-flex; align-items:center; gap:6px; max-width:100%; cursor:pointer; border-radius:6px; padding:2px 6px; margin:-2px -6px}
.projet:hover{background:var(--surface-2)}
.projet:focus-visible{outline:2px solid var(--fg); outline-offset:2px}
.projet #titre{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.projet .chevron{width:14px; height:14px; flex:none; color:var(--muted)}
.avance{display:flex; align-items:center; gap:8px; margin:3px 0 0; color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; white-space:nowrap}
.avance progress{appearance:none; width:72px; height:5px; border:0; border-radius:3px; background:var(--line); overflow:hidden; flex:none}
.avance progress::-webkit-progress-bar{background:var(--line); border-radius:3px}
.avance progress::-webkit-progress-value{background:var(--st-termine); border-radius:3px}
.avance progress::-moz-progress-bar{background:var(--st-termine); border-radius:3px}
.outils-haut{grid-area:outils; display:flex; align-items:center; gap:8px}
.auteur{display:inline-flex; align-items:center; gap:7px; border:1px solid var(--line); background:var(--surface); border-radius:999px; padding:3px 12px 3px 3px; font:500 12.5px/1.2 var(--font); cursor:pointer; color:var(--fg); white-space:nowrap; max-width:200px; overflow:hidden}
.auteur .avatar{flex:none}
.auteur:hover{border-color:var(--fg)}
.auteur.manque{padding:6px 12px; background:var(--warn-bg); color:var(--warn-fg); border-color:color-mix(in srgb, var(--warn-fg) 35%, transparent)}
.tabs{grid-area:tabs; justify-self:start; display:flex; gap:2px; background:var(--surface-2); padding:3px; border-radius:9px; max-width:100%; overflow-x:auto}
.tab{appearance:none; border:0; background:transparent; color:var(--muted); font:500 13px/1 var(--font); padding:8px 12px; border-radius:7px; cursor:pointer; white-space:nowrap; display:inline-flex; align-items:center}
.tab:hover{color:var(--fg)}
.tab[aria-selected="true"]{background:var(--surface); color:var(--fg); box-shadow:0 1px 2px rgba(0,0,0,.10)}
.compte-onglet{display:inline-grid; place-items:center; min-width:18px; height:18px; padding:0 5px; margin:-4px 0 -4px 6px; border-radius:999px; background:var(--warn-bg); color:var(--warn-fg); font:600 10.5px/1 var(--font); font-variant-numeric:tabular-nums}
/* Boutons « Afficher » d'une vue (onglet Dépendances) */
.vues-filtre{gap:6px}
.ftog{display:inline-flex; gap:6px; align-items:center; border:1px solid var(--line); background:var(--surface); border-radius:999px; padding:3px 10px 3px 8px; font:500 12px/1.4 var(--font); color:var(--fg); cursor:pointer}
.ftog .dot{width:8px; height:8px; border-radius:50%; background:var(--c)}
.ftog .dot.dash{border-radius:2px}
.ftog[aria-pressed="false"]{opacity:.45}
.ftog[aria-pressed="false"] .dot{background:transparent; box-shadow:inset 0 0 0 1.5px var(--c)}
.bandeau{padding:8px 12px; border-radius:8px; font-size:13px; margin-bottom:10px}
.bandeau.err{background:var(--err-bg); color:var(--err-fg)}
.bandeau.warn{background:var(--warn-bg); color:var(--warn-fg)}
.bandeau.ok{background:var(--ok-bg); color:var(--ok-fg)}

/* Zone principale */
main{padding-block:20px 56px}
.view{display:flex; flex-direction:column; gap:22px}
.lede{color:var(--muted); max-width:78ch; margin:0; font-size:13.5px}
.lede b{color:var(--fg); font-weight:600}
.intro{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 24px}
h2{font:600 15px/1.3 var(--font); margin:0; letter-spacing:-.005em}
h3{font:600 13.5px/1.3 var(--font); margin:0}
.sec{display:flex; flex-direction:column; gap:10px}
.sec-head{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px}
.tag{display:inline-block; font:500 10.5px/1 var(--font); letter-spacing:.06em; text-transform:uppercase; color:var(--muted); border:1px solid var(--line); border-radius:4px; padding:3px 5px; vertical-align:2px}
.panel{background:var(--surface); border:1px solid var(--line); border-radius:10px}
.vide{padding:28px 20px; text-align:center; color:var(--muted); display:flex; flex-direction:column; gap:12px; align-items:center}
.vide p{margin:0; max-width:60ch}
.rangee{display:flex; flex-wrap:wrap; gap:8px; align-items:center}
.muted{color:var(--muted)}
.petit{font-size:12px}

/* Puces de ticket */
.chip{display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border-radius:6px; border:1px solid color-mix(in srgb, var(--c, var(--c-gris)) 32%, var(--line)); background:color-mix(in srgb, var(--c, var(--c-gris)) 8%, var(--surface)); color:var(--fg); font:500 12.5px/1.25 var(--font); cursor:pointer; text-align:left; max-width:100%; transition:opacity .15s, box-shadow .15s}
.chip .cid{display:inline-flex; align-items:center; gap:5px; font:500 10.5px/1.2 var(--mono); color:var(--c, var(--c-gris)); white-space:nowrap}
.chip:hover{border-color:var(--c, var(--c-gris))}
.chip.full{display:flex; flex-direction:column; align-items:flex-start; gap:2px; width:100%; padding:6px 9px}
.chip .cm{font-size:11px; color:var(--muted); font-weight:400}
.chip.is-sel{box-shadow:0 0 0 2px var(--fg)}
.chip.is-up{box-shadow:0 0 0 2px var(--up)}
.chip.is-down{box-shadow:0 0 0 2px var(--down)}
.has-sel main .chip:not(.is-sel):not(.is-up):not(.is-down){opacity:.42}
.chips{display:flex; flex-wrap:wrap; gap:6px}
.chip.fantome{cursor:default; opacity:.6; border-style:dashed}
.stt{display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--st, var(--st-backlog)); flex:none}
.stt.creux{background:transparent; box-shadow:inset 0 0 0 1.5px var(--st)}
.statut-txt{display:inline-flex; align-items:center; gap:6px; font-size:12px}

/* Légende */
.legend{display:flex; flex-wrap:wrap; gap:6px 16px; font-size:12px; color:var(--muted); align-items:center}
.legend span{display:inline-flex; align-items:center; gap:6px}
.sw{width:18px; height:0; border-top:2.5px solid var(--c)}
.sw.up{--c:var(--up)} .sw.down{--c:var(--down)} .sw.rel{--c:var(--edge)} .sw.rel.dash{border-top-style:dashed}
.sq{width:10px; height:10px; border-radius:3px; background:color-mix(in srgb, var(--c) 18%, var(--surface)); border:1.5px solid var(--c)}
.sq.dash{border-style:dashed}

/* Carte modules × vues */
.matrix-scroll{overflow-x:auto}
.matrix{--n:4; display:grid; grid-template-columns:minmax(150px,200px) repeat(var(--n), minmax(170px,1fr)); border:1px solid var(--line); border-radius:10px; background:var(--surface); overflow:hidden}
.mrow{display:contents}
.mh{padding:10px 12px; background:var(--surface-2); display:flex; flex-direction:column; gap:1px; font-weight:600; font-size:13px}
.mh + .mh{border-left:1px solid var(--line)}
.mh .lab{display:flex; align-items:center; gap:7px}
.mh .lab i{width:9px; height:9px; border-radius:50%; background:var(--c)}
.mh small{font-weight:400; color:var(--muted); font-size:11.5px}
.mname{padding:12px; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:1px}
.mname b{font-weight:600; font-size:13px; line-height:1.3}
.mname small{color:var(--muted); font-size:11.5px; font-variant-numeric:tabular-nums}
.cell{padding:9px; border-top:1px solid var(--line); border-left:1px solid var(--line); display:flex; flex-direction:column; gap:6px; min-width:0}
.cell::before{display:none}
.bricks{display:grid; grid-template-columns:repeat(auto-fill, minmax(240px,1fr)); gap:10px}
.brick{padding:12px 14px; display:flex; flex-direction:column; gap:8px; border:1px dashed color-mix(in srgb, var(--c-gris) 55%, var(--line)); border-radius:10px; background:var(--surface)}
.brick p{margin:0; font-size:13px; color:var(--muted)}
.brick .small{font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted)}
@media (max-width:760px){
  .matrix{display:flex; flex-direction:column; gap:10px; border:0; background:none; border-radius:0; overflow:visible}
  .mh{display:none}
  .mrow{display:block; background:var(--surface); border:1px solid var(--line); border-radius:10px; overflow:hidden}
  .mname{border-top:0; flex-direction:row; justify-content:space-between; align-items:baseline; gap:8px}
  .cell{border-left:0}
  .cell.empty{display:none}
  .cell::before{display:block; content:attr(data-col); font-size:10.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.07em}
}

/* Graphe de dépendances */
.graph-scroll{overflow-x:auto; padding:6px 4px}
.graph{display:block}
.graph .collabel{font:600 11px var(--font); fill:var(--muted); letter-spacing:.06em; text-transform:uppercase}
.graph .colsub{font:400 11px var(--font); fill:var(--muted)}
.edge{fill:none; stroke:var(--edge); stroke-width:1.3; marker-end:url(#ar); transition:opacity .15s}
.edge.up{stroke:var(--up); stroke-width:2.2; marker-end:url(#ar-up)}
.edge.down{stroke:var(--down); stroke-width:2.2; marker-end:url(#ar-down)}
.has-sel .edge:not(.up):not(.down){opacity:.22}
.edge.faded{opacity:.1 !important}
#ar path{fill:var(--edge)} #ar-up path{fill:var(--up)} #ar-down path{fill:var(--down)}
.gnode{cursor:pointer; transition:opacity .15s}
.gnode rect{fill:color-mix(in srgb, var(--c) 9%, var(--surface)); stroke:color-mix(in srgb, var(--c) 70%, var(--line)); stroke-width:1.2}
.gnode.brique rect{stroke-dasharray:4 3}
.gnode .gid{font:500 10.5px var(--mono); fill:var(--c)}
.gnode .gname{font:500 12px var(--font); fill:var(--fg)}
.gnode .gstt{fill:var(--st)}
.gnode:hover rect{stroke:var(--c); stroke-width:1.8}
.gnode:focus{outline:none}
.gnode:focus-visible rect{stroke:var(--fg); stroke-width:2}
.gnode.is-sel rect{stroke:var(--fg); stroke-width:2.4}
.gnode.is-up rect{stroke:var(--up); stroke-width:2.2}
.gnode.is-down rect{stroke:var(--down); stroke-width:2.2}
.has-sel .gnode:not(.is-sel):not(.is-up):not(.is-down){opacity:.35}
.gnode.faded{opacity:.15 !important}

/* Données */
.er-scroll{overflow-x:auto; padding:8px}
.er{display:block; width:100%; min-width:760px; height:auto}
.erline{fill:none; stroke:var(--edge); stroke-width:1.4}
.erline.dash{stroke-dasharray:5 4}
.erline.on{stroke:var(--fg); stroke-width:2}
.erlab{font:400 11px var(--font); fill:var(--muted); paint-order:stroke; stroke:var(--surface); stroke-width:5px; stroke-linejoin:round}
.erlab.on{fill:var(--fg); font-weight:600}
.ernode{cursor:pointer}
.ernode rect{fill:color-mix(in srgb, var(--c) 10%, var(--surface)); stroke:color-mix(in srgb, var(--c) 65%, var(--line)); stroke-width:1.2}
.ernode text{font:500 12px var(--font); fill:var(--fg)}
.ernode.core rect{stroke-width:2; stroke:var(--fg)}
.ernode.core text{font-weight:650}
.ernode:hover rect, .ernode.on rect{stroke:var(--c); stroke-width:2.2}
.ernode:focus{outline:none}
.ernode:focus-visible rect{stroke:var(--fg); stroke-width:2.4}
.has-ent .ernode:not(.on):not(.near){opacity:.4}
.ents{display:grid; grid-template-columns:repeat(auto-fill, minmax(250px,1fr)); gap:10px}
.ent{padding:12px 14px; display:flex; flex-direction:column; gap:8px; border:1px solid var(--line); border-radius:10px; background:var(--surface); transition:border-color .15s, box-shadow .15s}
.ent h3{display:flex; align-items:center; gap:7px}
.ent h3 i{width:9px; height:9px; border-radius:3px; background:var(--c); flex:none}
.ent p{margin:0; font-size:12.5px; color:var(--muted)}
.ent.on{border-color:var(--c); box-shadow:0 0 0 1px var(--c)}
.entbtn{all:unset; cursor:pointer}
.entbtn:focus-visible{outline:2px solid var(--fg); outline-offset:2px; border-radius:4px}

/* Questions */
.qlist{display:flex; flex-direction:column; gap:10px}
.q{padding:14px 16px; display:grid; grid-template-columns:28px 1fr; gap:4px 10px; border:1px solid var(--line); border-radius:10px; background:var(--surface)}
.q .n{font:500 12px/1.6 var(--mono); color:var(--muted); grid-row:1 / span 5}
.q > *:not(.n){grid-column:2; min-width:0}
.q h3{font:600 14px/1.4 var(--font)}
.q p{margin:0; font-size:13px; color:var(--muted)}
.q .chips{margin-top:4px}
.q-tete{display:flex; align-items:flex-start; justify-content:space-between; gap:10px}
.q-tete .icone, .fqq .icone{margin-top:-4px}
.allpill{font-size:12px; color:var(--muted); border:1px dashed var(--line); border-radius:6px; padding:3px 8px}
details.mod{border:1px solid var(--line); border-radius:10px; background:var(--surface)}
details.mod summary{cursor:pointer; padding:11px 14px; font-weight:600; font-size:13.5px; display:flex; justify-content:space-between; gap:12px; list-style:none}
details.mod summary::-webkit-details-marker{display:none}
details.mod summary::after{content:"+"; font:500 15px/1 var(--mono); color:var(--muted)}
details.mod[open] summary::after{content:"–"}
details.mod summary span{color:var(--muted); font-weight:400; font-size:12px; margin-left:auto; font-variant-numeric:tabular-nums}
.fq{padding:10px 14px 12px; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:6px}
.qprog{font-size:12.5px; color:var(--muted); font-variant-numeric:tabular-nums}
.qnote{color:var(--muted)}
.ans{margin-top:6px}
.ans:empty{display:none}
.fql{margin:0; padding-left:20px; display:flex; flex-direction:column; gap:12px; font-size:13px}
.fqq{margin:0; display:flex; gap:8px; align-items:flex-start; justify-content:space-between}
.fql .ans{margin-top:5px}
.ans-view{display:flex; flex-direction:column; gap:5px; padding:9px 11px; border-radius:8px; background:var(--surface-2); align-items:flex-start}
.ans-text{margin:0; font-size:13.5px; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--fg)}
.ans-meta{display:flex; flex-wrap:wrap; gap:4px 12px; align-items:center; font-size:11.5px; color:var(--muted)}
.st{display:inline-flex; align-items:center; font:600 10px/1 var(--font); letter-spacing:.06em; text-transform:uppercase; border-radius:4px; padding:3px 6px; white-space:nowrap}
.st-dec{background:var(--fg); color:var(--bg)}
.st-lead{border:1px dashed var(--muted); color:var(--muted)}
.st-pass{background:var(--surface-2); color:var(--muted); border:1px solid var(--line)}
/* questions qui bloquent une rédaction ou une issue (fenêtre), sources d'un import */
.qb-liste{display:flex; flex-direction:column; gap:12px}
.qb{display:flex; flex-direction:column; gap:6px; padding:10px 12px; border:1px solid var(--line); border-radius:9px}
.qb-q{margin:0; font-size:13.5px; font-weight:600; overflow-wrap:anywhere}
.qb-q code, .qb-q .allpill{font-weight:400; margin-right:4px}
.qb textarea{width:100%}
.sources-choisies{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; font-size:12.5px}
.sources-choisies li{display:flex; gap:8px; align-items:baseline}
.sources-choisies .sorte{font:600 10px/1 var(--font); letter-spacing:.06em; text-transform:uppercase; color:var(--muted); min-width:58px}
.sources-choisies .err{color:var(--err-fg)}
.champs > .sources-choisies{grid-column:1 / -1}
.sources-choisies:empty{display:none}
.linkbtn{border:0; background:none; padding:2px 0; color:var(--fg); font:500 12.5px var(--font); text-decoration:underline; text-underline-offset:2px; cursor:pointer}
.linkbtn:hover{text-decoration-thickness:2px}
.linkbtn.discret{color:var(--muted)}
.ans-ed{display:flex; flex-direction:column; gap:8px}
.ans-row{display:flex; flex-wrap:wrap; align-items:center; gap:8px}
.chk{display:inline-flex; align-items:center; gap:6px; font-size:12.5px; cursor:pointer}
.ans-row .chk{margin-right:auto}
.chk input{accent-color:var(--fg); width:15px; height:15px; margin:0}
.ans-msg{font-size:12px; color:var(--muted)}

/* Champs et boutons */
input[type="text"], input[type="search"], input[type="number"], input[type="url"], input:not([type]), select, textarea{border:1px solid var(--line); border-radius:8px; background:var(--surface); padding:6px 9px; min-width:0}
textarea{width:100%; min-height:76px; resize:vertical; font:400 13.5px/1.45 var(--font)}
input:focus-visible, select:focus-visible, textarea:focus-visible{outline:2px solid var(--fg); outline-offset:0; border-color:transparent}
.btn{border:1px solid var(--fg); background:var(--fg); color:var(--bg); border-radius:7px; padding:6px 12px; font:500 12.5px var(--font); cursor:pointer; white-space:nowrap}
.btn.ghost{background:transparent; color:var(--fg); border-color:var(--line)}
.btn.ghost:hover{border-color:var(--fg)}
.btn.danger{background:transparent; color:var(--err-fg); border-color:color-mix(in srgb, var(--err-fg) 40%, var(--line))}
.btn.petit{padding:4px 9px; font-size:12px}
.btn:disabled{opacity:.5; cursor:default}
.champs{display:grid; grid-template-columns:repeat(auto-fill, minmax(180px,1fr)); gap:10px 12px}
.champ{display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--muted); min-width:0}
.champ > input, .champ > select, .champ > textarea{color:var(--fg); font-size:13px}
.rangee.chemin{flex-wrap:nowrap}
.rangee.chemin > input{flex:1; color:var(--fg); font-size:13px}
.champ.large, .champs > .aide{grid-column:1 / -1}
.champs > .aide{margin-top:-4px}
details.plus{border-top:1px solid var(--line); padding-top:12px}
details.plus > summary{list-style:none; width:fit-content; font-weight:500}
details.plus > summary::-webkit-details-marker{display:none}
details.plus > summary::before{content:"+ "; font-family:var(--mono)}
details.plus[open] > summary::before{content:"– "}
details.plus[open] > summary{margin-bottom:12px}
details.plus .choix-sorte{margin-bottom:10px}
.fen-corps:has(input[name="sorte"][value="url"]:not(:checked)) .adresse-pg{display:none}
.aide{font-size:11.5px; color:var(--muted); margin:0}
.barre{display:flex; flex-wrap:wrap; gap:8px; align-items:center}
.barre input[type="search"]{flex:1 1 220px}
.barre .compte{font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums}

/* Kanban */
.kanban{display:grid; grid-template-columns:repeat(5, minmax(220px,1fr)); gap:10px; overflow-x:auto; padding-bottom:6px; align-items:start}
.kcol{background:var(--surface-2); border-radius:10px; padding:8px; display:flex; flex-direction:column; gap:8px; min-height:140px}
.kcol > header{display:flex; align-items:center; gap:7px; font-weight:600; font-size:13px; padding:2px 4px}
.kcol > header span{margin-left:auto; color:var(--muted); font-weight:500; font-size:12px; font-variant-numeric:tabular-nums}
.kpile{display:flex; flex-direction:column; gap:7px; min-height:60px; border-radius:8px; transition:background .12s}
@media (min-width:760px){ .kpile{max-height:calc(100vh - 290px); overflow-y:auto; overscroll-behavior:contain; padding-right:2px} }
.kpile.survol{background:color-mix(in srgb, var(--st) 14%, transparent)}
.kcarte{background:var(--surface); border:1px solid var(--line); border-left:3px solid var(--c, var(--c-gris)); border-radius:8px; padding:8px 10px; display:flex; flex-direction:column; gap:5px; cursor:pointer; user-select:none}
.kcarte:hover{border-color:color-mix(in srgb, var(--c, var(--c-gris)) 60%, var(--line))}
.kcarte.is-sel{box-shadow:0 0 0 2px var(--fg)}
.kcarte.glisse{opacity:.4}
.kc-haut{display:flex; align-items:center; gap:6px; font:500 10.5px/1.2 var(--mono); color:var(--c, var(--c-gris))}
.kc-haut .ktype{font:600 9.5px/1 var(--font); letter-spacing:.06em; text-transform:uppercase; color:var(--muted); border:1px solid var(--line); border-radius:4px; padding:2px 4px}
.kc-haut .prio{margin-left:auto; font:600 9.5px/1 var(--font); letter-spacing:.05em; text-transform:uppercase; border-radius:4px; padding:2px 5px}
.prio-haute{background:var(--err-bg); color:var(--err-fg)} .prio-moyenne{background:var(--warn-bg); color:var(--warn-fg)} .prio-basse{background:var(--surface-2); color:var(--muted)}
.kc-nom{margin:0; font-size:13px; font-weight:500; line-height:1.3}
.kc-bas{display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; font-size:11px; color:var(--muted)}
.kc-bas .avatar{margin-left:auto}
.avatar{display:inline-grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--surface-2); border:1px solid var(--line); font:600 9.5px/1 var(--font); color:var(--fg)}
.kmarque{height:3px; border-radius:2px; background:var(--fg); margin:-2px 0}
.ico{display:inline-flex; align-items:center; gap:3px}
.ico svg{width:12px; height:12px; flex:none}
.activite{border:1px solid var(--line); border-radius:10px; background:var(--surface)}
.activite summary{cursor:pointer; padding:10px 14px; font-weight:600; font-size:13px}
.journal{list-style:none; margin:0; padding:0 14px 12px; display:flex; flex-direction:column; gap:6px; font-size:12.5px}
.journal li{display:flex; gap:8px; align-items:baseline; flex-wrap:wrap}
.journal time{color:var(--muted); font-size:11.5px; font-variant-numeric:tabular-nums; min-width:96px}

/* Dépôts */
.depots{display:grid; grid-template-columns:repeat(auto-fill, minmax(320px,1fr)); gap:10px}
.depot{padding:12px 14px; display:flex; flex-direction:column; gap:8px; border:1px solid var(--line); border-radius:10px; background:var(--surface)}
.depot h3{display:flex; align-items:center; gap:8px}
.depot .url{font-size:12px; word-break:break-all}
.depot .badge{white-space:normal}
.depot > details.conventions{min-width:0; font-size:12px}
.depot > details.conventions > summary{overflow-wrap:anywhere}
.depot > details.conventions[open] > summary{margin-bottom:8px}
.badge{display:inline-flex; align-items:center; gap:5px; font:500 11px/1.2 var(--font); border-radius:999px; padding:3px 8px; background:var(--surface-2); color:var(--muted); white-space:nowrap}
.badge.ok{background:var(--ok-bg); color:var(--ok-fg)} .badge.warn{background:var(--warn-bg); color:var(--warn-fg)} .badge.err{background:var(--err-bg); color:var(--err-fg)}
.tableau-branches{width:100%; border-collapse:collapse; font-size:12.5px}
.tableau-branches th{text-align:left; font-weight:500; color:var(--muted); font-size:11.5px; padding:6px 8px; border-bottom:1px solid var(--line)}
.tableau-branches td{padding:6px 8px; border-bottom:1px solid var(--line); vertical-align:top}
.tableau-branches tr:last-child td{border-bottom:0}
.tableau-branches code{word-break:break-all}
.defile{overflow-x:auto}
.suggestions{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px}
.suggestions li{display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:13px}
.fleche{color:var(--muted)}
.copie{display:flex; align-items:center; gap:6px; background:var(--surface-2); border-radius:7px; padding:5px 6px 5px 10px; font:500 12px var(--mono); overflow-x:auto}
.copie code{white-space:nowrap}
.copie .btn{margin-left:auto}

/* Fenêtres */
dialog.fenetre{border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--fg); padding:0; width:min(720px, calc(100vw - 24px)); max-height:calc(100vh - 32px); box-shadow:0 24px 60px rgba(0,0,0,.25)}
dialog.fenetre::backdrop{background:rgba(10,12,16,.5)}
.fen{display:flex; flex-direction:column; max-height:calc(100vh - 34px)}
.fen > header{display:flex; align-items:center; gap:10px; padding:14px 18px; border-bottom:1px solid var(--line)}
.fen > header h2{font-size:16px}
.fen > header .close{margin-left:auto}
.fen-corps{padding:16px 18px; overflow-y:auto; display:flex; flex-direction:column; gap:14px}
.fen > footer{display:flex; gap:8px; justify-content:flex-end; align-items:center; padding:12px 18px; border-top:1px solid var(--line); flex-wrap:wrap}
.fen > footer .msg{margin-right:auto; font-size:12.5px; color:var(--err-fg)}
.lignes-ed{display:flex; flex-direction:column; gap:6px}
.ligne-ed{display:grid; grid-template-columns:70px 1fr 1fr 100px auto auto; gap:6px; align-items:center}
.ligne-ed.module{grid-template-columns:1fr auto}
.ligne-ed .boutons{display:flex; gap:2px}
.icone{border:1px solid var(--line); background:var(--surface); border-radius:6px; width:28px; height:28px; display:grid; place-items:center; cursor:pointer; font:500 13px/1 var(--font); color:var(--muted)}
.icone:hover{border-color:var(--fg); color:var(--fg)}
.icone.discret{border-color:transparent; background:transparent; flex:none}
.icone.discret:hover{border-color:var(--line)}
.liste-bases{display:flex; flex-direction:column; gap:8px}
.lb{display:flex; align-items:center; gap:10px; flex-wrap:wrap; border:1px solid var(--line); border-radius:9px; padding:9px 12px}
.lb.active{border-color:var(--fg)}
.lb .quoi{display:flex; flex-direction:column; gap:1px; min-width:0; margin-right:auto}
.lb .quoi small{color:var(--muted); font:400 11.5px var(--mono); word-break:break-all}
.choix-sorte{display:flex; flex-direction:column; gap:6px}
.choix-sorte label{display:flex; gap:8px; align-items:flex-start; font-size:13px; cursor:pointer}
.choix-sorte input{margin-top:3px; accent-color:var(--fg)}
.choix-sorte small{display:block; color:var(--muted); font-size:12px}
@media (max-width:640px){ .ligne-ed{grid-template-columns:1fr 1fr} }

/* Panneau de détail */
.scrim{position:fixed; inset:0; background:rgba(10,12,16,.42); z-index:25}
.drawer{position:fixed; top:0; right:0; bottom:0; width:min(var(--drawer), 100%); background:var(--surface); border-left:1px solid var(--line); z-index:30; overflow-y:auto; overscroll-behavior:contain;
  padding:calc(18px + env(safe-area-inset-top,0px)) max(20px, env(safe-area-inset-right,0px)) calc(28px + env(safe-area-inset-bottom,0px)) 22px;
  box-shadow:-14px 0 36px rgba(0,0,0,.10); display:flex; flex-direction:column; gap:16px}
.dhead{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.vpill{display:inline-flex; align-items:center; gap:6px; font:600 11.5px/1 var(--font); color:var(--c); background:color-mix(in srgb, var(--c) 12%, var(--surface)); border-radius:999px; padding:5px 9px}
.vpill i{width:7px; height:7px; border-radius:50%; background:var(--c)}
.dhead code{font:500 12px var(--mono); color:var(--muted)}
.dhead-actions{margin-left:auto; display:flex; align-items:center; gap:6px}
.dhead-actions .close{margin-left:0}
.close{margin-left:auto; border:1px solid var(--line); background:var(--surface); color:var(--fg); border-radius:7px; width:32px; height:32px; display:grid; place-items:center; cursor:pointer; font:400 18px/1 var(--font)}
.close:hover{background:var(--surface-2)}
.drawer h2{font:650 21px/1.2 var(--font); letter-spacing:-.015em; text-wrap:balance}
.meta{display:flex; flex-wrap:wrap; gap:4px 14px; font-size:12px; color:var(--muted); margin-top:-8px}
.meta b{color:var(--fg); font-weight:500}
.blk{display:flex; flex-direction:column; gap:6px}
.blk h3{margin:0; font:600 10.5px/1.3 var(--font); letter-spacing:.08em; text-transform:uppercase; color:var(--muted); display:flex; align-items:center; gap:8px}
.blk h3 .tag{text-transform:none; letter-spacing:0; font-size:10.5px}
.blk h3 .linkbtn{margin-left:auto; text-transform:none; letter-spacing:0; font-size:12px}
.dep{display:flex; flex-direction:column; gap:5px}
.dep + .dep{margin-top:4px}
.dep-lab{display:inline-flex; align-items:center; gap:7px; font-size:12px; color:var(--muted)}
.blk p{margin:0; font-size:13.5px; max-width:62ch}
.blk .note{color:var(--muted); font-size:13px}
.blk ul{margin:0; padding-left:18px; font-size:13.5px}
.blk li + li{margin-top:3px}
.quote{border-left:2px solid var(--line); padding-left:11px; display:flex; flex-direction:column; gap:6px}
.warn{background:var(--warn-bg); color:var(--warn-fg); border-radius:8px; padding:10px 12px; font-size:13px}
.warn b{font-weight:600}
.none{font-size:12.5px; color:var(--muted)}
.ref a{color:var(--fg); text-underline-offset:2px; word-break:break-all}
.suivi-champs{display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:8px 10px}
.suivi-champs .c2{grid-column:span 2}
.suivi-champs .c3{grid-column:span 3}
.blk .dq{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px}
.blk .dq li{display:flex; flex-direction:column; gap:4px; align-items:flex-start; padding-left:11px; border-left:2px solid var(--line); margin:0}
.dans{font-size:12.5px; display:flex; gap:7px; align-items:baseline; color:var(--muted)}
.dans-t{white-space:pre-wrap; overflow-wrap:anywhere; color:var(--fg)}
.sous, .blk .sous{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:5px}
.sous li{display:flex; align-items:center; gap:8px}
.ajout{display:flex; gap:6px; flex-wrap:wrap}
.ajout input{flex:1 1 160px}
.actions-d{display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between; padding-top:10px; border-top:1px solid var(--line)}
.depots-d{display:flex; flex-direction:column; gap:6px}
.depot-d{display:flex; align-items:center; gap:8px; font-size:13px; flex-wrap:wrap}
.depot-d .via{font-size:11.5px; color:var(--muted)}
.drawer .chip.is-sel{box-shadow:none}
.enreg{font-size:11.5px; color:var(--muted); min-height:1em}

/* Atelier Claude */
.atelier{display:grid; grid-template-columns:minmax(300px, 380px) 1fr; gap:16px; align-items:start}
@media (max-width:980px){ .atelier{grid-template-columns:1fr} }
.atelier-form{padding:14px; display:flex; flex-direction:column; gap:12px; position:sticky; top:130px}
@media (max-width:980px){ .atelier-form{position:static} }
.modes{display:flex; flex-direction:column; gap:6px}
.modes label{display:flex; gap:8px; align-items:flex-start; font-size:13px; cursor:pointer; border:1px solid var(--line); border-radius:8px; padding:8px 10px}
.modes label:has(input:checked){border-color:var(--fg)}
.modes input{margin-top:3px; accent-color:var(--fg)}
.modes small{display:block; color:var(--muted); font-size:12px}
.connexion{font-size:12.5px; display:flex; align-items:center; gap:7px; flex-wrap:wrap}
.connexion::before{content:""; width:8px; height:8px; border-radius:50%; background:var(--st-backlog)}
.connexion[data-etat="ok"]::before{background:var(--st-termine)}
.connexion[data-etat="non"]::before{background:var(--err-fg)}
.connexion code{background:var(--surface-2); padding:1px 5px; border-radius:4px}
.fil{display:flex; flex-direction:column; gap:12px}
.tour{padding:12px 14px; display:flex; flex-direction:column; gap:8px}
.tour .moi{margin:0; font-size:13px; color:var(--muted); white-space:pre-wrap; overflow-wrap:anywhere; max-height:7.5em; overflow:hidden; position:relative}
.tour .moi.plie::after{content:""; position:absolute; inset:auto 0 0; height:2em; background:linear-gradient(transparent, var(--surface))}
.tour .outils{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; font:400 12px/1.45 var(--mono); color:var(--muted)}
.tour .outils li::before{content:"· "}
.tour .outils li.erreur{color:var(--err-fg)}
.tour .outils li.avertissement{color:var(--warn-fg)}
.tour .texte{display:flex; flex-direction:column; gap:8px; font-size:13.5px}
/* markdown des réponses de Claude (markdown.js) */
.md{font-size:13.5px; line-height:1.55; overflow-wrap:anywhere; min-width:0}
.md > :first-child{margin-top:0}
.md > :last-child{margin-bottom:0}
.md p{margin:0 0 .6em}
.md :is(h3,h4,h5,h6){margin:1em 0 .35em; font-weight:600; line-height:1.3; letter-spacing:-.005em}
.md h3{font-size:15.5px}
.md h4{font-size:14.5px}
.md :is(h5,h6){font-size:13.5px}
.md :is(ul,ol){margin:0 0 .6em; padding-left:1.4em}
.md li{margin:.15em 0}
.md li > :is(ul,ol,pre){margin:.2em 0 0}
.md li::marker{color:var(--muted)}
.md code{background:var(--surface-2); padding:1px 5px; border-radius:4px}
.md pre{margin:0 0 .6em; background:var(--surface-2); padding:10px 12px; border-radius:8px; overflow:auto; font:400 12.5px/1.5 var(--mono)}
.md pre code{background:none; padding:0; font-size:inherit; white-space:pre; overflow-wrap:normal}
.md blockquote{margin:0 0 .6em; padding:2px 0 2px 12px; border-left:3px solid var(--line); color:var(--muted)}
.md hr{border:0; border-top:1px solid var(--line); margin:.9em 0}
.md .md-tableau{overflow-x:auto; margin:0 0 .6em}
.md table{border-collapse:collapse; font-size:13px}
.md :is(th,td){border:1px solid var(--line); padding:5px 9px; text-align:left; vertical-align:top; overflow-wrap:normal}
.md th{background:var(--surface-2); font-weight:600}
.md a{color:var(--c-bleu)}
.md del{color:var(--muted)}
.tour .bilan{margin:0; font-size:12px; color:var(--muted); border-top:1px solid var(--line); padding-top:8px}
.tour .bilan.erreur{color:var(--err-fg)}
.taches{display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted)}
.taches progress{width:120px; height:6px; accent-color:var(--fg)}
.suite{display:flex; flex-direction:column; gap:8px}
.historique-s{display:flex; flex-direction:column; gap:6px}
.hs{border:1px solid var(--line); border-radius:9px; background:var(--surface)}
.hs summary{cursor:pointer; padding:9px 12px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; font-size:12.5px; list-style:none}
.hs summary::-webkit-details-marker{display:none}
.hs .corps{padding:0 12px 12px; display:flex; flex-direction:column; gap:8px; font-size:13px}
.hs .resultat{border:1px solid var(--line); padding:10px 12px; border-radius:8px; max-height:420px; overflow:auto}
pre.prompt{margin:0; white-space:pre-wrap; overflow-wrap:anywhere; font:400 12px/1.5 var(--mono); background:var(--surface-2); padding:10px; border-radius:8px; max-height:360px; overflow:auto}

/* Rédaction par Claude : session en cours (user stories d'une fonctionnalité, import d'un cahier des charges) */
.travail{display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; font-size:12.5px; padding:9px 12px; border:1px dashed var(--edge); border-radius:9px; background:var(--surface-2); margin-bottom:10px}
.blk .travail{margin-bottom:0}
.travail .spin{width:12px; height:12px; flex:none; border-radius:50%; border:2px solid var(--edge); border-top-color:var(--fg); animation:tourner .9s linear infinite}
.travail .dernier{flex-basis:100%; margin:0; color:var(--muted); font-size:12px; white-space:pre-wrap; overflow-wrap:anywhere; max-height:4.5em; overflow:hidden}
.travail .dernier:empty{display:none}
@keyframes tourner{to{transform:rotate(360deg)}}
.blk .criteres{list-style:none; padding:0; display:flex; flex-direction:column; gap:5px}
.blk .criteres li{position:relative; padding-left:20px; margin:0}
.blk .criteres li::before{content:""; position:absolute; left:2px; top:.35em; width:10px; height:10px; border:1.5px solid var(--edge); border-radius:3px}

/* Messages */
.toasts{position:fixed; left:50%; bottom:calc(16px + env(safe-area-inset-bottom,0px)); transform:translateX(-50%); z-index:40; display:flex; flex-direction:column; gap:8px; align-items:center; pointer-events:none; width:min(560px, calc(100vw - 24px))}
.toast{pointer-events:auto; background:var(--fg); color:var(--bg); border-radius:9px; padding:9px 14px; font-size:13px; box-shadow:0 8px 24px rgba(0,0,0,.2); max-width:100%}
.toast.err{background:var(--err-bg); color:var(--err-fg); border:1px solid color-mix(in srgb, var(--err-fg) 30%, transparent)}

@media (min-width:1180px){
  body.drawer-open{padding-right:var(--drawer)}
  body.drawer-open .scrim{display:none}
}
/* issues GitHub (github.js) : conflit champ par champ, issues sans ticket */
.issue-conflit{color:var(--warn-fg); font-weight:600}
.conflit-champ{border:1px solid var(--edge); border-radius:9px; padding:8px 12px 12px; margin:0 0 12px; display:grid; gap:8px}
.conflit-champ legend{font-weight:600; font-size:13px; padding:0 4px}
.conflit-champ .cote{display:grid; gap:4px; font-size:12.5px}
.conflit-champ .cote > span{display:inline-flex; align-items:center; gap:6px; cursor:pointer}
.conflit-champ .cote input[type=radio]{accent-color:var(--fg); margin:0}
.conflit-champ pre{margin:0; white-space:pre-wrap; overflow-wrap:anywhere; font:400 12px/1.5 var(--mono); background:var(--surface-2); padding:8px 10px; border-radius:7px; max-height:220px; overflow:auto}
.conflit-champ .avant pre{opacity:.75}
.conflit-champ textarea{width:100%; font:400 12px/1.5 var(--mono)}
.claude-conflit{display:grid; gap:8px}
.claude-conflit textarea{width:100%}
.liste-sans-ticket{list-style:none; margin:0; padding:0; display:grid; gap:8px}
.sans-ticket{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 12px; padding:8px 0; border-bottom:1px solid var(--edge)}
.sans-ticket .tag{margin-left:4px}
/* Quotas de l'abonnement et file d'attente (quotas.js) : vue rapide de l'en-tête (une jauge par fenêtre, le trait marque
   le seuil), onglets de la fenêtre Réglages, onglet Claude. Vert sous le seuil, ocre à moins de 10 points, orange au seuil. */
.quotas{display:inline-flex; align-items:center; gap:10px; border:1px solid var(--line); background:var(--surface); border-radius:9px; padding:4px 10px; cursor:pointer; color:var(--fg); font:500 11.5px/1.15 var(--font); font-variant-numeric:tabular-nums; white-space:nowrap}
.quotas:hover{border-color:var(--fg)}
.q-jauges{display:grid; gap:3px}
.q-ligne{display:grid; grid-template-columns:2.4em 64px 3em; align-items:center; gap:6px}
.q-nom{color:var(--muted)}
.q-val{text-align:right}
.q-barre{position:relative; display:block; height:5px; border-radius:3px; background:var(--line)}
.q-barre i{position:absolute; inset:0 auto 0 0; width:0; border-radius:inherit; background:var(--st-termine)}
.q-barre b{position:absolute; top:-2px; bottom:-2px; left:100%; width:2px; margin-left:-1px; border-radius:1px; background:var(--fg); opacity:.6}
[data-niveau="proche"] .q-barre i{background:var(--st-en_cours)}
[data-niveau="seuil"] .q-barre i{background:var(--c-orange)}
[data-niveau="seuil"] :is(.q-val, .q-chiffre){color:var(--c-orange)}
[data-niveau="inconnu"] .q-barre b{display:none}
.q-file{padding-left:9px; border-left:1px solid var(--line); color:var(--muted); font-size:11px}
.q-file:is([data-etat="pause"], [data-etat="attente"]){color:var(--warn-fg)}
@media (max-width:600px){
  .quotas{gap:6px; padding:4px 8px}
  .q-ligne{grid-template-columns:auto auto}
  .q-barre, .q-file{display:none}
}
@media (max-width:480px){ .q-nom{display:none} .q-ligne{grid-template-columns:auto} }
.onglets-fen{display:flex; gap:2px; align-self:flex-start; background:var(--surface-2); padding:3px; border-radius:9px}
.onglet-fen{appearance:none; border:0; background:transparent; color:var(--muted); font:500 13px/1 var(--font); padding:8px 14px; border-radius:7px; cursor:pointer}
.onglet-fen:hover{color:var(--fg)}
.onglet-fen[aria-selected="true"]{background:var(--surface); color:var(--fg); box-shadow:0 1px 2px rgba(0,0,0,.10)}
[data-panneau]{display:flex; flex-direction:column; gap:14px}
.q-section{display:flex; flex-direction:column; gap:10px}
.q-section + .q-section{padding-top:14px; border-top:1px solid var(--line)}
.q-section > div{display:flex; flex-direction:column; gap:10px}
.q-fenetres{display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:12px}
.q-fenetre{display:flex; flex-direction:column; gap:8px; padding:12px; border:1px solid var(--line); border-radius:10px}
.q-tete{display:flex; align-items:baseline; justify-content:space-between; gap:8px}
.q-chiffre{font:650 22px/1 var(--font); letter-spacing:-.02em; font-variant-numeric:tabular-nums}
.q-barre.grande{height:8px; border-radius:4px}
.q-barre.grande b{top:-3px; bottom:-3px}
.q-seuil{display:grid; grid-template-columns:9em minmax(0,1fr) 3.5em; align-items:center; gap:10px; font-size:13px}
.q-seuil input[type="range"]{width:100%; margin:0; accent-color:var(--fg)}
.q-seuil output{text-align:right; font-weight:600; font-variant-numeric:tabular-nums}
.q-etat{margin:0; font-size:13px}
.q-etat:is([data-etat="pause"], [data-etat="attente"]){padding:8px 12px; border-radius:8px; background:var(--warn-bg); color:var(--warn-fg)}
.q-liste{display:flex; flex-direction:column; gap:6px; margin:0; padding:0; list-style:none; counter-reset:q}
.q-liste li{counter-increment:q; display:grid; grid-template-columns:1.6em auto minmax(0,1fr) auto; align-items:center; gap:8px; padding:8px 10px; border:1px solid var(--line); border-radius:9px}
.q-liste li::before{content:counter(q); color:var(--muted); font:600 12px/1 var(--mono)}
.q-liste li[data-en-cours="true"]{border-style:dashed; background:var(--surface-2)}
.q-liste li[data-en-cours="true"] > .badge:first-of-type{background:var(--surface)}
.q-quoi{display:flex; flex-direction:column; gap:1px; min-width:0}
.q-quoi b{font-weight:600; overflow-wrap:anywhere}
.q-liste .boutons{display:flex; gap:4px}
@media (max-width:600px){
  .q-seuil{grid-template-columns:minmax(0,1fr) 3.5em}
  .q-seuil > span{grid-column:1 / -1}
  .q-liste li{grid-template-columns:1.6em minmax(0,1fr) auto}
  .q-liste li > .badge:first-of-type{display:none}
}
@media (prefers-reduced-motion: reduce){
  *{transition:none !important; scroll-behavior:auto !important}
  .travail .spin{animation:none; border-top-color:var(--edge)}
}
