/* V97 — Pipeline scientifique aligné sur le tableau de bord */
.bw-pipeline-page{max-width:none;overflow-x:hidden}.bw-pipeline-update-form{margin:0}.bw-pipeline-update-form .bw-update-button:disabled{opacity:.65;cursor:wait}.bw-pipeline-insights{margin-top:0}.bw-pipeline-insights .bw-bar-row{grid-template-columns:minmax(105px,150px) minmax(0,1fr) 28px}.bw-pipeline-insights .bw-bar-row strong{white-space:normal}.bw-pipeline-filter-grid{grid-template-columns:minmax(260px,1.7fr) repeat(3,minmax(160px,1fr)) 120px}.bw-pipeline-table-card{margin-top:14px}.bw-pipeline-table{min-width:1050px}.bw-pipeline-table th:nth-child(1),.bw-pipeline-table td:nth-child(1){width:180px}.bw-pipeline-table th:nth-child(2),.bw-pipeline-table td:nth-child(2){width:210px}.bw-pipeline-table th:nth-child(3),.bw-pipeline-table td:nth-child(3){width:170px}.bw-pipeline-table th:nth-child(4),.bw-pipeline-table td:nth-child(4){width:125px}.bw-pipeline-table th:nth-child(5),.bw-pipeline-table td:nth-child(5){width:150px}.bw-pipeline-table th:nth-child(6),.bw-pipeline-table td:nth-child(6){width:145px}.bw-pipeline-table th:nth-child(7),.bw-pipeline-table td:nth-child(7){width:190px}.bw-pipeline-table th:nth-child(8),.bw-pipeline-table td:nth-child(8){width:90px}.bw-pipeline-table .bw-status{white-space:normal;text-align:center}.bw-pipeline-empty{text-align:center!important;padding:38px!important}.bw-import-result{margin:0 0 14px;padding:12px 14px;border-radius:12px;border:1px solid rgba(51,211,153,.4);background:rgba(10,70,58,.45);color:#eafff7}.bw-import-result.has-errors{border-color:rgba(255,179,71,.45);background:rgba(95,58,12,.42)}.bw-publication-link{display:inline-flex;margin-top:12px;color:#fff;font-weight:900}.bw-pipeline-modal[hidden]{display:none}.bw-pipeline-modal{z-index:10000}.bw-disease-panel{margin-bottom:14px}@media(max-width:1100px){.bw-pipeline-filter-grid{grid-template-columns:1fr 1fr}.bw-pipeline-filter-grid .bw-filter-search{grid-column:1/-1}}@media(max-width:700px){.bw-pipeline-filter-grid{grid-template-columns:1fr}.bw-pipeline-filter-grid .bw-filter-search{grid-column:auto}}

/* V98 — Vue Hypothèses exploratoires intégrée au pipeline */
.bw-pipeline-tabs{display:flex;gap:8px;margin:0 0 14px;padding:5px;border:1px solid var(--border-color,rgba(148,163,184,.22));border-radius:14px;background:rgba(15,23,42,.42);width:max-content;max-width:100%}.bw-pipeline-tabs a{display:flex;align-items:center;gap:8px;padding:9px 14px;border-radius:10px;color:inherit;text-decoration:none;font-weight:800}.bw-pipeline-tabs a.active{background:var(--accent,#4f8cff);color:#fff}.bw-pipeline-tabs a span{font-size:.78rem;padding:1px 7px;border-radius:999px;background:rgba(255,255,255,.14)}
.bw-hypothesis-message{margin:0 0 14px;padding:12px 14px;border-radius:12px;font-weight:700}.bw-hypothesis-message.is-success{border:1px solid rgba(51,211,153,.4);background:rgba(10,70,58,.45)}.bw-hypothesis-message.is-error{border:1px solid rgba(255,120,120,.45);background:rgba(100,25,25,.42)}
.bw-hypothesis-intro{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.8fr);gap:18px;margin-bottom:16px;padding:20px;border:1px solid rgba(94,234,212,.28);border-radius:16px;background:rgba(15,43,55,.46)}.bw-hypothesis-intro h2{margin:5px 0 8px}.bw-hypothesis-intro p{margin:0;color:var(--text-muted,#aeb8c8)}.bw-hypothesis-kicker{font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;font-weight:900;color:#73e4d2}.bw-hypothesis-rules{display:grid;grid-template-columns:1fr 1fr;gap:8px}.bw-hypothesis-rules strong{grid-column:1/-1}.bw-hypothesis-rules span{padding:8px 10px;border-radius:9px;background:rgba(255,255,255,.06);font-size:.86rem}
.bw-hypothesis-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,.75fr);gap:16px;margin-bottom:18px}.bw-hypothesis-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.bw-hypothesis-form label{display:flex;flex-direction:column;gap:6px}.bw-hypothesis-form label span{font-weight:800;font-size:.86rem}.bw-hypothesis-form input,.bw-hypothesis-form textarea{width:100%;box-sizing:border-box;border:1px solid rgba(148,163,184,.28);border-radius:10px;padding:10px 12px;background:rgba(2,8,23,.4);color:inherit;font:inherit}.bw-hypothesis-form textarea{resize:vertical}.bw-hypothesis-form .wide{grid-column:1/-1}.bw-hypothesis-form-note{font-size:.82rem;color:var(--text-muted,#aeb8c8);padding:10px;border-left:3px solid #73e4d2;background:rgba(94,234,212,.06)}.bw-hypothesis-example dl{margin:0}.bw-hypothesis-example dt{font-weight:900;margin-top:14px}.bw-hypothesis-example dd{margin:4px 0 0;color:var(--text-muted,#aeb8c8)}
.bw-hypothesis-list{display:grid;gap:14px}.bw-hypothesis-card{padding:18px;border:1px solid rgba(148,163,184,.22);border-radius:15px;background:rgba(15,23,42,.55)}.bw-hypothesis-card-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.bw-hypothesis-card-head h3{margin:8px 0 3px}.bw-hypothesis-card-head p{margin:0;color:var(--text-muted,#aeb8c8)}.bw-hypothesis-delete{border:1px solid rgba(248,113,113,.4);background:transparent;color:#fca5a5;border-radius:9px;padding:7px 10px;cursor:pointer}.bw-hypothesis-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}.bw-hypothesis-grid section{padding:12px;border-radius:10px;background:rgba(255,255,255,.035)}.bw-hypothesis-grid h4{margin:0 0 6px}.bw-hypothesis-grid p{margin:0;color:var(--text-muted,#aeb8c8)}.bw-neurologist-question{margin-top:12px;padding:14px;border-radius:11px;border-left:4px solid #60a5fa;background:rgba(37,99,235,.12)}.bw-neurologist-question p{margin:5px 0 0}.bw-clinical-check{margin-top:12px;padding:12px 14px;border-radius:11px}.bw-clinical-check.has-match{border:1px solid rgba(52,211,153,.32);background:rgba(16,185,129,.09)}.bw-clinical-check.no-match{border:1px solid rgba(251,191,36,.28);background:rgba(245,158,11,.08)}.bw-clinical-check p{margin:5px 0 0;color:var(--text-muted,#aeb8c8)}.bw-clinical-check ul{margin:8px 0 0;padding-left:20px}.bw-hypothesis-empty{text-align:center;padding:36px;border:1px dashed rgba(148,163,184,.3);border-radius:14px;color:var(--text-muted,#aeb8c8)}
@media(max-width:900px){.bw-hypothesis-intro,.bw-hypothesis-layout{grid-template-columns:1fr}.bw-hypothesis-grid{grid-template-columns:1fr}}@media(max-width:620px){.bw-pipeline-tabs{width:100%;flex-direction:column}.bw-hypothesis-form{grid-template-columns:1fr}.bw-hypothesis-form .wide{grid-column:auto}.bw-hypothesis-rules{grid-template-columns:1fr}.bw-hypothesis-card-head{flex-direction:column}}
.bw-auto-hypotheses{display:grid;gap:14px;margin-bottom:20px}.bw-auto-hypothesis-card{padding:18px;border:1px solid rgba(96,165,250,.28);border-radius:15px;background:rgba(15,35,60,.52)}.bw-auto-hypothesis-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.bw-auto-hypothesis-summary section{padding:12px;border-radius:10px;background:rgba(255,255,255,.04)}.bw-auto-hypothesis-summary .wide{grid-column:1/-1}.bw-auto-hypothesis-summary h4,.bw-auto-hypothesis-summary p{margin:0}.bw-auto-hypothesis-summary p{margin-top:5px;color:var(--text-muted,#aeb8c8)}.bw-auto-rationale{margin-top:12px;padding:13px;border-left:4px solid #60a5fa;border-radius:10px;background:rgba(37,99,235,.11)}.bw-auto-rationale p{margin:5px 0 0}.bw-auto-details{margin-top:12px}.bw-auto-details summary{cursor:pointer;font-weight:800}.bw-auto-save-form{flex:0 0 auto}.bw-auto-save-form .bw-update-button{white-space:nowrap}.bw-manual-assistant{grid-template-columns:1fr}.bw-hypothesis-form select{width:100%;box-sizing:border-box;border:1px solid rgba(148,163,184,.28);border-radius:10px;padding:10px 12px;background:rgba(2,8,23,.4);color:inherit;font:inherit}.bw-hypothesis-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.bw-secondary-button{border:1px solid rgba(96,165,250,.45);background:rgba(37,99,235,.08);color:inherit;border-radius:10px;padding:10px 14px;font-weight:800;cursor:pointer}.bw-rule-note{margin-top:12px;padding:10px 12px;border-radius:9px;background:rgba(94,234,212,.07);color:var(--text-muted,#aeb8c8)}
@media(max-width:700px){.bw-auto-hypothesis-summary{grid-template-columns:1fr}.bw-auto-hypothesis-summary .wide{grid-column:auto}.bw-auto-save-form{width:100%}.bw-auto-save-form .bw-update-button{width:100%}}

/* V102 — filtre des hypothèses automatiques par effet ou objectif */
.bw-auto-hypothesis-filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid var(--border-color, rgba(255,255,255,.14));
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.bw-auto-hypothesis-filters label {
  display: grid;
  gap: 7px;
  min-width: min(100%, 340px);
  flex: 1 1 340px;
}
.bw-auto-hypothesis-filters label > span {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted, #aeb8c8);
}
.bw-auto-hypothesis-filters select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--border-color, rgba(255,255,255,.16));
  border-radius: 10px;
  background: var(--surface, #122033);
  color: var(--text-color, #fff);
}
.bw-auto-hypothesis-card[hidden] { display: none !important; }
@media (max-width: 640px) {
  .bw-auto-hypothesis-filters { align-items: stretch; }
  .bw-auto-hypothesis-filters .bw-reset { width: 100%; text-align: center; }
}

/* V103 — alignement compact du filtre des hypothèses */
.bw-auto-hypothesis-filters {
  display: grid;
  grid-template-columns: minmax(280px, 520px) auto;
  align-items: end;
  justify-content: start;
  column-gap: 12px;
  row-gap: 10px;
}
.bw-auto-hypothesis-filters label {
  min-width: 0;
  width: 100%;
  max-width: 520px;
  flex: none;
}
.bw-auto-hypothesis-filters select {
  width: 100%;
}
.bw-auto-hypothesis-filters .bw-reset {
  width: auto !important;
  min-width: 118px !important;
  height: 44px !important;
  align-self: end;
  margin: 0 !important;
}
@media (max-width: 640px) {
  .bw-auto-hypothesis-filters {
    grid-template-columns: 1fr;
  }
  .bw-auto-hypothesis-filters label {
    max-width: none;
  }
  .bw-auto-hypothesis-filters .bw-reset {
    width: 100% !important;
  }
}

/* V111 — filtres dynamiques construits à partir des hypothèses réellement générées */
.bw-auto-hypothesis-filters{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(320px,1.2fr) auto;gap:14px;align-items:end}
.bw-auto-hypothesis-filters label{min-width:0}
.bw-auto-filter-help{grid-column:1/-1;margin:0;color:var(--bw-text-muted,#9db0c5);font-size:.86rem;line-height:1.45}
.bw-mechanism-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.bw-mechanism-tags span{display:inline-flex;align-items:center;padding:7px 10px;border:1px solid rgba(83,196,255,.28);border-radius:999px;background:rgba(30,113,170,.13);font-size:.82rem;line-height:1.2}
.bw-auto-hypothesis-card[hidden]{display:none!important}
@media(max-width:850px){.bw-auto-hypothesis-filters{grid-template-columns:1fr}.bw-auto-hypothesis-filters .bw-reset{width:100%}}
