/* V8.3 — retour au layout local SEP compact */
.s06-main{padding:24px 28px;max-width:none;overflow-x:hidden}.s14-topbar,.s15-hero,.s14-last-sync{display:none!important}.bw-research-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 14px}.bw-research-header h1{margin:0;font-size:30px;line-height:1.05;letter-spacing:-.03em;color:#fff}.bw-research-header p{margin:5px 0 0;color:rgba(235,245,255,.78);font-weight:700}.bw-update-button{border:1px solid rgba(120,210,255,.55);background:linear-gradient(180deg,#19a9e8,#087fc4);color:#fff;border-radius:12px;padding:11px 16px;font-weight:900;box-shadow:0 10px 30px rgba(0,150,220,.2);white-space:nowrap}.bw-filter-panel,.bw-card,.bw-table-card,.s06-timeline-card{border:1px solid rgba(120,170,220,.45);background:linear-gradient(180deg,rgba(16,45,85,.78),rgba(8,28,55,.9));border-radius:16px;box-shadow:0 14px 35px rgba(0,0,0,.18)}.bw-filter-panel{padding:12px;margin-bottom:14px}.bw-filter-grid{display:grid;grid-template-columns:minmax(220px,1.3fr) 160px 140px 150px 140px 120px 105px;gap:10px;align-items:end}.bw-filter-grid label{display:flex;flex-direction:column;gap:5px}.bw-filter-grid span{font-size:12px;color:rgba(230,245,255,.86);font-weight:900}.bw-filter-grid input,.bw-filter-grid select{width:100%;border:1px solid rgba(150,190,240,.35);background:rgba(2,15,32,.64);color:#fff;border-radius:10px;padding:10px 11px;font-weight:800;min-height:39px}.bw-check{display:grid!important;grid-template-columns:1fr 28px;align-items:center;border:1px solid rgba(150,190,240,.25);border-radius:10px;padding:7px 9px;background:rgba(2,15,32,.32)}.bw-check input{min-height:auto}.bw-reset{height:39px;display:flex;align-items:center;justify-content:center;text-decoration:none;color:#ccefff;border:1px solid rgba(150,190,240,.28);border-radius:10px;font-weight:900}.bw-insight-grid{display:grid;grid-template-columns:1.35fr .85fr;gap:14px;margin-bottom:14px}.bw-card{padding:16px}.bw-card-title{display:flex;justify-content:space-between;gap:10px;font-size:16px;font-weight:950;color:#fff;margin-bottom:12px}.bw-card-title span{font-size:12px;color:rgba(225,240,255,.78)}.bw-bar-row{display:grid;grid-template-columns:82px minmax(0,1fr) 28px;gap:12px;align-items:center;margin:8px 0}.bw-bar-row strong{font-size:12px;color:#fff}.bw-bar-row b{font-size:12px;color:#fff;text-align:right}.bw-bar{height:11px;border-radius:999px;border:1px solid rgba(100,170,230,.45);background:rgba(3,18,37,.72);overflow:hidden}.bw-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#20c7ff,#64f053)}.bw-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.bw-summary-grid div{border:1px solid rgba(130,175,225,.35);border-radius:12px;padding:10px;background:rgba(8,28,55,.56)}.bw-summary-grid strong{display:block;font-size:24px;color:#ffe87a}.bw-summary-grid span{font-size:12px;color:rgba(235,245,255,.86);font-weight:900}.bw-summary p{margin:10px 0 0;font-size:12px;color:rgba(235,245,255,.78);font-weight:700}.bw-table-card{padding:0;overflow:hidden}.bw-table-toolbar{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;color:#fff;font-weight:900}.bw-table-toolbar a{color:#eaf7ff;text-decoration:none;border:1px solid rgba(150,190,240,.35);border-radius:10px;padding:8px 12px}.bw-table-scroll{overflow:auto;max-width:100%;border-top:1px solid rgba(120,170,220,.35)}.bw-science-table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:12px;line-height:1.15;table-layout:fixed}.bw-science-table th{position:sticky;top:0;z-index:2;text-align:left;background:linear-gradient(180deg,rgba(39,74,120,.96),rgba(24,55,96,.96));color:#f2fbff;font-size:12px;font-weight:950;padding:8px 8px;border-bottom:1px solid rgba(150,190,240,.35);white-space:normal;cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px}.bw-science-table td{padding:9px 8px;vertical-align:middle;border-bottom:1px solid rgba(115,160,210,.24);color:#fff;font-weight:750;white-space:normal;word-break:normal;overflow-wrap:break-word}.bw-science-table tr:hover td{background:rgba(80,155,220,.08)}.bw-science-table th:nth-child(1),.bw-science-table td:nth-child(1){width:150px}.bw-science-table th:nth-child(2),.bw-science-table td:nth-child(2){width:120px}.bw-science-table th:nth-child(3),.bw-science-table td:nth-child(3){width:115px}.bw-science-table th:nth-child(4),.bw-science-table td:nth-child(4){width:80px}.bw-science-table th:nth-child(5),.bw-science-table td:nth-child(5){width:155px}.bw-science-table th:nth-child(6),.bw-science-table td:nth-child(6){width:145px}.bw-science-table th:nth-child(7),.bw-science-table td:nth-child(7){width:130px}.bw-science-table th:nth-child(8),.bw-science-table td:nth-child(8){width:125px}.bw-science-table th:nth-child(9),.bw-science-table td:nth-child(9){width:150px}.bw-science-table th:nth-child(10),.bw-science-table td:nth-child(10){width:145px}.bw-science-table th:nth-child(11),.bw-science-table td:nth-child(11){width:190px}.bw-science-table th:nth-child(12),.bw-science-table td:nth-child(12){width:105px}.bw-science-table th:nth-child(13),.bw-science-table td:nth-child(13){width:95px}.bw-science-table th:nth-child(14),.bw-science-table td:nth-child(14){width:130px}.bw-science-table th:nth-child(15),.bw-science-table td:nth-child(15){width:120px}.bw-science-table th:nth-child(16),.bw-science-table td:nth-child(16){width:82px}.bw-name strong{display:block;color:#fff;font-size:13px}.bw-name small{display:block;color:rgba(230,240,255,.72);font-weight:800;margin-top:3px}.bw-pill{display:inline-flex;border:1px solid rgba(210,230,255,.35);border-radius:999px;background:rgba(255,255,255,.09);padding:3px 8px;font-weight:950;color:#fff}.bw-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:950;border:1px solid currentColor;white-space:normal}.bw-status.positive{color:#78ff8d;background:rgba(20,170,75,.22)}.bw-status.failure{color:#ff6678;background:rgba(220,25,55,.18)}.bw-status.uncertain{color:#ffd15c;background:rgba(245,160,30,.2)}.bw-status.pending{color:#76d9ff;background:rgba(40,150,220,.18)}.bw-detail-btn{border:1px solid rgba(210,230,255,.4);background:rgba(255,255,255,.14);color:#fff;border-radius:9px;padding:7px 8px;font-weight:950;cursor:pointer}.bw-help{border:0;background:transparent;color:#83e6ff;font-weight:950;cursor:pointer}.bw-detail-modal[hidden]{display:none}.bw-detail-modal{position:fixed;inset:0;z-index:10000;background:rgba(2,8,18,.68);display:flex;align-items:center;justify-content:center;padding:28px}.bw-detail-card{width:min(940px,96vw);max-height:88vh;overflow:auto;background:linear-gradient(180deg,#12335f,#0b2548);border:1px solid rgba(140,190,255,.55);border-radius:18px;box-shadow:0 30px 90px rgba(0,0,0,.55);padding:20px;color:#fff}.bw-detail-close{float:right;border:1px solid rgba(220,235,255,.45);background:rgba(255,255,255,.12);color:#fff;border-radius:10px;width:34px;height:34px;font-size:20px;font-weight:900}.bw-detail-card h2{margin:0 0 4px;font-size:26px}.bw-detail-sub{margin:0 0 14px;color:rgba(235,245,255,.82);font-weight:800}.bw-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.bw-detail-grid section{border:1px solid rgba(150,190,240,.38);background:rgba(5,22,48,.35);border-radius:12px;padding:13px}.bw-detail-grid h3{margin:0 0 9px;font-size:15px}.bw-detail-grid p,.bw-detail-grid li,.bw-detail-grid small{font-size:14px;line-height:1.35;font-weight:800;color:#fff}.bw-detail-grid ul{margin:0;padding-left:18px}.bw-detail-card footer{margin-top:10px;font-size:12px;color:rgba(230,240,255,.72);font-weight:800}.s06-sidebar .s06-nav[href*="compare.php"]{display:none!important}@media(max-width:1100px){.bw-filter-grid{grid-template-columns:1fr 1fr}.bw-filter-search{grid-column:1/-1}.bw-insight-grid{grid-template-columns:1fr}.bw-detail-grid{grid-template-columns:1fr}.bw-research-header{flex-direction:column}.bw-update-button{width:100%}}

/* V8.4 — alignement sur l'ancien layout local */
.bw-research-header p{max-width:980px}.bw-sep-type{font-weight:950;color:#f4fbff}.bw-pill{border-radius:5px;background:transparent;border:0;padding:0;color:#fff}.bw-science-table td{padding:7px 8px;font-size:11.5px;line-height:1.18}.bw-science-table th{padding:7px 8px;font-size:11.5px}.bw-science-table th:nth-child(1),.bw-science-table td:nth-child(1){width:170px}.bw-science-table th:nth-child(2),.bw-science-table td:nth-child(2){width:105px}.bw-science-table th:nth-child(3),.bw-science-table td:nth-child(3){width:95px}.bw-science-table th:nth-child(4),.bw-science-table td:nth-child(4){width:95px}.bw-science-table th:nth-child(5),.bw-science-table td:nth-child(5){width:135px}.bw-science-table th:nth-child(6),.bw-science-table td:nth-child(6){width:130px}.bw-science-table th:nth-child(7),.bw-science-table td:nth-child(7){width:125px}.bw-science-table th:nth-child(8),.bw-science-table td:nth-child(8){width:120px}.bw-science-table th:nth-child(9),.bw-science-table td:nth-child(9){width:135px}.bw-science-table th:nth-child(10),.bw-science-table td:nth-child(10){width:130px}.bw-science-table th:nth-child(11),.bw-science-table td:nth-child(11){width:175px}.bw-science-table th:nth-child(12),.bw-science-table td:nth-child(12){width:95px}.bw-science-table th:nth-child(13),.bw-science-table td:nth-child(13){width:90px}.bw-science-table th:nth-child(14),.bw-science-table td:nth-child(14){width:120px}.bw-science-table th:nth-child(15),.bw-science-table td:nth-child(15){width:125px}.bw-name strong{font-size:12.5px}.bw-name small{font-size:10.5px}.bw-status{font-size:10.5px;padding:3px 7px}.bw-detail-btn{font-size:11px;padding:6px 7px}.bw-filter-grid{grid-template-columns:minmax(240px,1.5fr) 160px 130px 145px 130px 120px 100px}.bw-table-toolbar{padding:8px 10px}.bw-card{padding:13px}.bw-detail-card{width:min(900px,96vw)}.bw-detail-grid section{padding:11px}.bw-detail-grid p,.bw-detail-grid li,.bw-detail-grid small{font-size:13px}.bw-science-table th:nth-child(16),.bw-science-table td:nth-child(16){width:72px}

/* V9 fixes: restore disease selector, remove floating sync status artefacts, keep local compact layout. */
.bw-filter-grid{grid-template-columns:minmax(150px,.9fr) minmax(220px,1.25fr) 150px 130px 145px 130px 118px 105px;}
.bw-filter-grid label:first-child select{font-weight:900;}
.bw-research-header .s38-sync-summary,.bw-research-header [data-sync-summary], main > .s38-sync-summary, main > .bw-sync-summary{display:none!important;}
.s38-sync-modal[hidden]{display:none!important;}
.s38-sync-modal:not([hidden]){display:flex!important;}
.s38-sync-steps [data-sync-step] span{float:none!important;margin-left:auto;}
.s38-sync-summary{display:block!important;}
.bw-sep-type{color:#fff;font-weight:900;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;}
.bw-science-table td:nth-child(3){font-size:12px;line-height:1.2;}
.bw-science-table td:nth-child(4),.bw-science-table th:nth-child(4){width:78px;}
.bw-science-table td:nth-child(2),.bw-science-table th:nth-child(2){width:110px;}
.bw-table-toolbar strong::after{content:'';}
@media(max-width:1200px){.bw-filter-grid{grid-template-columns:1fr 1fr 1fr}.bw-filter-search{grid-column:auto}.bw-reset{grid-column:auto}}
@media(max-width:800px){.bw-filter-grid{grid-template-columns:1fr}.bw-filter-search{grid-column:auto}}


/* V9.1 — corrections ergonomie et navigation */
.bw-filter-panel{overflow:visible}.bw-filter-grid{grid-template-columns:minmax(155px,.8fr) minmax(210px,1.25fr) 135px 130px 145px 125px 112px 92px;align-items:end}.bw-reset{box-sizing:border-box;min-width:0;white-space:nowrap;padding:0 10px}.bw-check{min-width:0}.bw-check span{line-height:1.05}.bw-study-link{all:unset;display:block;cursor:pointer;color:inherit}.bw-study-link strong{text-decoration:underline;text-underline-offset:2px}.bw-study-link:hover strong{color:#8ee8ff}.bw-sources-cell a{color:#7ee7ff;text-decoration:underline;text-underline-offset:2px}.bw-science-table td:nth-child(4),.bw-science-table th:nth-child(4){width:74px}.bw-science-table td:nth-child(2),.bw-science-table th:nth-child(2){width:96px}.bw-science-table td:nth-child(3),.bw-science-table th:nth-child(3){width:92px}.bw-timeline-filters .bw-filter-grid{grid-template-columns:minmax(180px,.9fr) 150px 135px 150px 128px 104px}.s12-analytics-filter select option[value=""]{font-weight:900}.bw-table-card{overflow:hidden}.bw-table-scroll{overflow:auto}.bw-science-table th,.bw-science-table td{vertical-align:middle}.bw-science-table th:nth-child(16),.bw-science-table td:nth-child(16){position:sticky;right:0;background:rgba(12,35,70,.96);z-index:2}.bw-science-table th:nth-child(16){z-index:3}@media(max-width:1300px){.bw-filter-grid{grid-template-columns:repeat(4,minmax(120px,1fr))}.bw-filter-search{grid-column:span 2}.bw-reset{grid-column:auto}}@media(max-width:900px){.bw-filter-grid,.bw-timeline-filters .bw-filter-grid{grid-template-columns:1fr 1fr}.bw-filter-search{grid-column:1/-1}}


/* V9.2 — recherche d'abord, filtres nettoyés, phase normalisée */
.bw-filter-grid{grid-template-columns:minmax(260px,1.45fr) minmax(155px,.85fr) 135px 118px 135px 118px 104px 92px;gap:9px;}
.bw-filter-search{grid-column:auto!important;}
.bw-reset{font-size:13px;padding:0 8px;}
.bw-science-table td:nth-child(1),.bw-science-table th:nth-child(1){width:155px;}
.bw-science-table td:nth-child(4),.bw-science-table th:nth-child(4){width:72px;}
.bw-science-table td:nth-child(5),.bw-science-table th:nth-child(5){width:118px;}
.bw-science-table td:nth-child(6),.bw-science-table th:nth-child(6){width:112px;}
.bw-science-table td:nth-child(9),.bw-science-table th:nth-child(9){width:128px;}
.bw-science-table td:nth-child(16),.bw-science-table th:nth-child(16){width:70px;}
@media(max-width:1300px){.bw-filter-grid{grid-template-columns:repeat(4,minmax(120px,1fr));}.bw-filter-search{grid-column:span 2!important;}}
@media(max-width:900px){.bw-filter-grid{grid-template-columns:1fr 1fr}.bw-filter-search{grid-column:1/-1!important;}}

/* V9.3: recherche d'abord, filtres ensuite, et Type SEP toujours lisible */
.bw-filter-grid{grid-template-columns:minmax(260px,1.45fr) minmax(155px,.85fr) 135px 118px 135px 118px 104px 92px;}
.bw-filter-search{grid-column:1 / 3!important;}
.bw-filter-grid label select[name="sep_type"]{min-width:150px;}
@media(max-width:1300px){.bw-filter-grid{grid-template-columns:repeat(4,minmax(120px,1fr));}.bw-filter-search{grid-column:1 / -1!important;}}
@media(max-width:900px){.bw-filter-grid{grid-template-columns:1fr 1fr}.bw-filter-search{grid-column:1/-1!important;}}

/* V9.4 — MAMP correction: maladie séparée, types SEP fusionnés, tableau compact. */
.bw-disease-panel{border:1px solid rgba(140,190,255,.32);background:rgba(7,24,52,.66);border-radius:14px;padding:12px 14px;margin:12px 0 10px;box-shadow:0 14px 40px rgba(0,0,0,.18)}
.bw-disease-form{display:grid;grid-template-columns:minmax(260px,420px);gap:10px;align-items:end}
.bw-disease-form label,.bw-filter-grid label{min-width:0}
.bw-disease-form span,.bw-filter-grid span{display:block;margin-bottom:5px;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.04em;color:rgba(235,245,255,.72)}
.bw-disease-form select{width:100%;height:38px;border-radius:10px;border:1px solid rgba(180,215,255,.38);background:#102f59;color:#fff;font-weight:900;padding:0 10px}
.bw-filter-grid{grid-template-columns:minmax(300px,1.7fr) minmax(180px,1fr) 112px 150px 115px 118px 94px!important;gap:8px;align-items:end;overflow:visible}
.bw-filter-search{grid-column:auto!important}.bw-filter-search input{height:38px}.bw-filter-grid select{height:38px}.bw-check{height:38px;display:flex!important;align-items:center;justify-content:space-between;gap:8px;padding:0 9px;white-space:normal;line-height:1.05}.bw-check span{margin:0!important;font-size:10.5px!important}.bw-reset{height:38px;display:flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.bw-science-table{table-layout:fixed;min-width:1720px}.bw-science-table th,.bw-science-table td{padding:6px 7px!important;font-size:11px!important;line-height:1.16!important;overflow:hidden;text-overflow:ellipsis}.bw-science-table th:nth-child(1),.bw-science-table td:nth-child(1){width:142px!important}.bw-science-table th:nth-child(2),.bw-science-table td:nth-child(2){width:90px!important}.bw-science-table th:nth-child(3),.bw-science-table td:nth-child(3){width:120px!important}.bw-science-table th:nth-child(4),.bw-science-table td:nth-child(4){width:68px!important}.bw-science-table th:nth-child(5),.bw-science-table td:nth-child(5){width:105px!important}.bw-science-table th:nth-child(6),.bw-science-table td:nth-child(6){width:102px!important}.bw-science-table th:nth-child(9),.bw-science-table td:nth-child(9){width:112px!important}.bw-science-table th:nth-child(10),.bw-science-table td:nth-child(10){width:112px!important}.bw-science-table th:nth-child(11),.bw-science-table td:nth-child(11){width:145px!important}.bw-science-table th:nth-child(14),.bw-science-table td:nth-child(14){width:108px!important}.bw-science-table th:nth-child(16),.bw-science-table td:nth-child(16){width:76px!important}.bw-name strong{font-size:11.5px!important;white-space:normal;line-height:1.12}.bw-name small{font-size:10px!important;white-space:normal;line-height:1.1}.bw-status{max-width:100%;white-space:normal!important;border-radius:7px!important;padding:3px 5px!important;font-size:10px!important;line-height:1.05!important}.bw-sep-type{white-space:normal!important;color:#fff!important;background:transparent!important;border:0!important}.bw-objective{white-space:normal!important}.bw-detail-btn{font-size:10.5px!important;padding:5px 6px!important}
@media(max-width:1300px){.bw-filter-grid{grid-template-columns:1fr 1fr 1fr!important}.bw-filter-search{grid-column:1/-1!important}.bw-disease-form{grid-template-columns:1fr}}@media(max-width:850px){.bw-filter-grid{grid-template-columns:1fr!important}}

/* V49 — statut scientifique visible pour chaque étude associée */
.bw-associated-study.is-failure{border-color:rgba(255,92,92,.75);box-shadow:inset 4px 0 0 rgba(255,92,92,.9)}
.bw-associated-study .bw-status{display:inline-flex;align-items:center;justify-content:center;padding:.28rem .65rem;border-radius:999px;font-weight:800}
.bw-associated-study .bw-status.failure{color:#ffb3b3;border:1px solid #ff6666;background:rgba(150,20,20,.28)}
.bw-associated-study .bw-status.positive{color:#67f78a;border:1px solid #3ee968;background:rgba(20,110,45,.25)}
.bw-associated-study .bw-status.pending{color:#6ee7ff;border:1px solid #35ccee;background:rgba(20,95,120,.25)}
.bw-study-failure-reason{color:#ffd0d0}
