/* Trial design diagram — France, parity with the Belgian/Dutch modules. */
.tc-card-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:12px;flex-wrap:wrap}
.tc-card-actions .trial-details-link{margin:0!important;display:inline-flex!important;width:auto!important;float:none!important;align-self:center}
.td-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid #9fd8d0;background:#e8f7f4;color:#0f5e57;border-radius:999px;padding:5px 12px;font-family:inherit;font-size:13px;font-weight:600;line-height:1.2;cursor:pointer}
.td-pill:hover,.td-pill:focus-visible{background:#d3f0eb;outline:2px solid #0f766e;outline-offset:1px}
.td-pill svg{width:16px;height:16px}
.results-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.results-actions .r7-view-toggle{margin-left:auto}
.results-actions .r7-view-toggle+#exportButton{margin-left:0}
.td-dialog{border:0;border-radius:16px;padding:0;width:min(1120px,96vw);max-height:92vh;box-shadow:0 20px 60px rgba(15,23,42,.25)}
.td-dialog::backdrop{background:rgba(15,23,42,.45)}
.td-dialog-top{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;border-bottom:1px solid #e5e9f0;position:sticky;top:0;background:#fff;z-index:1}
.td-dialog-title{font-weight:700;color:#1e3a5f}
.td-close{border:0;background:none;font-size:24px;line-height:1;cursor:pointer;color:#475569}
.td-dialog-body{padding:20px;overflow:auto;max-height:calc(92vh - 56px)}
.td-wrap{font-size:14px;color:#1f2937}
.td-kicker{color:#64748b;font-size:13px}
.td-name{font-size:22px;font-weight:800;color:#0f172a;margin:2px 0}
.td-sub{color:#64748b;margin-bottom:14px}
.td-flow{display:grid;grid-template-columns:minmax(180px,1fr) 24px minmax(220px,1.4fr) 24px minmax(220px,1.4fr);align-items:center;gap:8px}
.td-arrow{color:#64748b;text-align:center;font-size:18px}
.td-pop{background:#eef3f8;border:1px solid #c9d6e3;border-radius:10px;padding:12px}
.td-n{font-weight:700}
.td-cond{font-weight:700;margin-top:6px;color:#0f172a}
.td-age{margin-top:6px}
.td-muted{color:#64748b;font-size:13px}
.td-arms{display:flex;flex-direction:column;gap:8px}
.td-arm{border-radius:10px;padding:10px 12px;border:1px solid #cbd5e1;background:#f8fafc}
.td-arm-type{font-size:12px;font-weight:700;color:#334155}
.td-arm-label{font-weight:700;margin-top:2px}
.td-arm-items{color:#334155;margin-top:2px}
.td-exp{background:#dbe7f6;border-color:#1e3a8a}
.td-cmp{background:#f5efe0;border-color:#b9a27a}
.td-plc{background:#eeebe4;border-color:#a8a29e}
.td-none{background:#f1f5f9;border-style:dashed}
.td-coh{background:#eef2ff;border-color:#a5b4fc}
.td-out{background:#e6f6ec;border:1px solid #34a36b;border-radius:10px;padding:12px}
.td-out-h,.td-sec-h{font-size:12px;font-weight:700;color:#14532d}
.td-sec-h{margin-top:10px}
.td-prim{font-weight:700;margin-top:4px}
.td-time{font-weight:600;color:#14532d;margin-top:2px}
.td-out ul{margin:4px 0 0;padding-inline-start:18px}
.td-out li{margin:2px 0}
.td-more summary{cursor:pointer;color:#1e40af;font-weight:700;margin-top:6px}
.td-note{font-size:12px;color:#64748b;margin:4px 0 0}
.td-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.td-chips span{background:#eef2f6;border-radius:999px;padding:5px 12px;font-size:13px;color:#334155}
.td-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px;background:#fff7ed;border:1px solid #fde3c3;border-radius:8px;padding:10px 12px;font-size:13px;color:#7c4a12}
.td-foot a{color:#1e40af}
.td-empty{color:#64748b}
.td-section{margin-top:16px}
@media (max-width:820px){.td-flow{grid-template-columns:1fr}.td-arrow{transform:rotate(90deg)}}
.td-wrap { overflow-wrap: anywhere; }
.td-flow > * { min-width: 0; }
.td-section > summary { cursor: pointer; color: #0f5e57; font-size: 1.05rem; font-weight: 700; }
.td-section[open] > summary { margin-bottom: 12px; }
.td-period, .td-role { margin-top: 5px; padding: 8px; border: 1px solid #c9d6e3; border-radius: 7px; }
.td-period > .td-arm, .td-endpoint, .td-more { margin-top: 6px; }
.td-endpoint + .td-endpoint { border-top: 1px solid #c6dbc9; padding-top: 6px; }
.td-wrap ul { padding-inline-start: 18px; }
.td-time { font-size: .88em; }
.td-dialog-body { box-sizing: border-box; }

.results-actions .result-export-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; max-width: 100%; margin-inline-start: auto; }
/* Statut incertain (CTIS/NCT) */
.badge.unclear,.r12-status.unclear{display:inline-flex;align-items:center;gap:4px;background:#fff3ce;color:#704600;border:1px solid #e3b341;border-radius:6px;padding:3px 8px;font-weight:700;font-size:inherit;font-family:inherit;cursor:pointer}
.badge.unclear small,.r12-status.unclear small{font-weight:600;color:#8a5a00}
.badge.unclear:focus-visible,.r12-status.unclear:focus-visible{outline:2px solid #b7791f;outline-offset:1px}
.r11-rule{background:#fff7e0;border:1px solid #f0d28a;border-radius:8px;padding:8px 10px}
/* Barre de recherche au modèle BSMO belge (Claude R4C) */
.tc-suggest{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:40;list-style:none;margin:0;padding:6px;background:#fff;border:1px solid #c9d6e3;border-radius:10px;box-shadow:0 12px 30px rgba(15,23,42,.14);max-height:none}
.tc-suggest li{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:7px;cursor:pointer;font-size:14px;color:#1f2937}
.tc-suggest li.on,.tc-suggest li:hover{background:#eaf2fb}
.tc-k{flex:0 0 auto;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#64748b;min-width:82px}
.tc-l{font-weight:600;flex:1 1 auto}
.tc-sub{color:#64748b;font-size:12px;flex:0 1 40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tc-n{flex:0 0 auto;font-size:12px;font-weight:700;color:#1e4f86;background:#eef4fb;border-radius:999px;padding:2px 8px}
.tc-hidden-legacy{display:none!important}
.tc-marker-row{display:flex;align-items:flex-start;gap:14px;margin-top:12px}
.tc-marker-label{flex:0 0 auto;padding-top:9px;font-size:13px;color:#475569}
.tc-marker-label b{color:#0f172a}
.tc-marker-field{position:relative;flex:1 1 auto;max-width:720px}
.tc-marker-field input{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:8px;padding:9px 34px 9px 12px;font:inherit;font-size:14px;background:#fff}
.tc-marker-clear{position:absolute;right:8px;top:6px;border:0;background:none;font-size:18px;color:#64748b;cursor:pointer}
.tc-marker-hint{margin:6px 0 0;font-size:12px;color:#64748b}
.tc-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.tc-pill{display:inline-flex;align-items:center;gap:6px;background:#dff3e4;border:1px solid #7fbf95;color:#14603c;border-radius:999px;padding:4px 6px 4px 12px;font-weight:600;font-size:13px}
.tc-pill button{border:0;background:#c3e6cd;color:#14603c;border-radius:999px;width:20px;height:20px;line-height:18px;cursor:pointer;font-size:14px;padding:0}
.tc-pill-clear{border:0;background:none;color:#1e40af;font-size:12px;cursor:pointer;text-decoration:underline}
.tc-pills-top{margin:0}
@media (max-width:640px){.tc-marker-row{flex-direction:column;gap:6px}.tc-k{min-width:0}.tc-sub{display:none}}
