/* Stage 1 Hypothesis Lab — scoped to Research pages so existing tools remain unchanged. */
.hypothesis-summary-grid { display:grid; grid-template-columns:repeat(8,minmax(96px,1fr)); gap:9px; margin:0 0 18px; }
.hypothesis-count-card { min-width:0; padding:13px; border:1px solid var(--tool-line); border-radius:12px; background:rgba(16,32,52,.68); }
.hypothesis-count-card span { display:block; color:var(--tool-muted); font-size:.6rem; font-weight:850; letter-spacing:.07em; text-transform:uppercase; }
.hypothesis-count-card strong { display:block; margin-top:6px; color:var(--tool-text); font-size:1.1rem; }
.hypothesis-toolbar { display:grid; grid-template-columns:minmax(180px,1.4fr) repeat(3,minmax(125px,.55fr)); gap:10px; margin:16px 0; }
.hypothesis-toolbar input,.hypothesis-toolbar select,.hypothesis-form input,.hypothesis-form select,.hypothesis-form textarea,.stage2-form input,.stage2-form select { width:100%; border:1px solid var(--tool-line); border-radius:10px; box-sizing:border-box; padding:10px 11px; color:var(--tool-text); background:#081421; font:inherit; font-size:.77rem; outline:none; }
.hypothesis-toolbar input:focus,.hypothesis-toolbar select:focus,.hypothesis-form input:focus,.hypothesis-form select:focus,.hypothesis-form textarea:focus,.stage2-form input:focus,.stage2-form select:focus { border-color:#4b91ff; box-shadow:0 0 0 3px rgba(47,125,255,.12); }
.hypothesis-form textarea { min-height:92px; resize:vertical; }
.hypothesis-table-wrap { overflow:auto; }
.hypothesis-table { min-width:810px; width:100%; border-collapse:collapse; }
.hypothesis-table th,.hypothesis-table td { padding:11px 9px; border-bottom:1px solid var(--tool-line); text-align:left; vertical-align:top; font-size:.72rem; }
.hypothesis-table th { color:var(--tool-muted); font-size:.59rem; letter-spacing:.06em; text-transform:uppercase; }
.hypothesis-table a { color:#9ac2ff; font-weight:850; text-decoration:none; }
.hypothesis-table a:hover { text-decoration:underline; }
.hypothesis-status { display:inline-flex; align-items:center; min-height:24px; padding:0 8px; border:1px solid var(--tool-line); border-radius:999px; color:#b9d3f8; background:rgba(47,125,255,.08); font-size:.61rem; font-weight:850; }
.hypothesis-status.ready,.hypothesis-status.validated { color:#7de7b9; border-color:rgba(67,217,158,.35); background:rgba(67,217,158,.08); }
.hypothesis-status.rejected,.hypothesis-status.locked,.hypothesis-status.fail,.hypothesis-status.blocked { color:#ffb2b9; border-color:rgba(255,102,112,.4); background:rgba(255,102,112,.08); }
.hypothesis-status.testing,.hypothesis-status.weak { color:#f4c773; border-color:rgba(255,194,86,.4); background:rgba(255,194,86,.08); }
.hypothesis-matrix { overflow:auto; margin-top:17px; }
.hypothesis-matrix table { width:100%; min-width:760px; border-collapse:collapse; }
.hypothesis-matrix th,.hypothesis-matrix td { padding:10px 8px; border-bottom:1px solid var(--tool-line); text-align:left; font-size:.7rem; }
.dependency-yes { color:#78e6b6; font-weight:800; }.dependency-no { color:#ffafb5; font-weight:800; }
.hypothesis-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:18px 0; }
.hypothesis-detail-card { padding:17px; border:1px solid var(--tool-line); border-radius:15px; background:rgba(8,20,33,.7); }
.hypothesis-detail-card h2,.hypothesis-detail-card h3 { margin:0 0 9px; color:var(--tool-text); font-size:1rem; }
.hypothesis-detail-card p,.hypothesis-detail-card li { color:var(--tool-muted); font-size:.77rem; line-height:1.55; }
.hypothesis-detail-card code { color:#9ac2ff; white-space:pre-wrap; overflow-wrap:anywhere; }
.hypothesis-flow { display:grid; gap:7px; margin:0; padding:0; list-style:none; }
.hypothesis-flow li { padding:10px 12px; border:1px solid rgba(76,143,255,.3); border-radius:9px; color:#b9d3f8; background:rgba(47,125,255,.06); }
.hypothesis-flow li+li::before { content:'↓'; display:block; margin:-18px 0 5px; color:#56d6a3; text-align:center; font-weight:900; }
.hypothesis-requirement-list,.hypothesis-audit-list { margin:0; padding:0; list-style:none; }
.hypothesis-requirement-list li,.hypothesis-audit-list li { padding:9px 0; border-bottom:1px solid var(--tool-line); }
.hypothesis-requirement-list li:last-child,.hypothesis-audit-list li:last-child { border-bottom:0; }
.hypothesis-form-grid,.stage2-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.hypothesis-form-grid .wide,.stage2-form-grid .wide { grid-column:1 / -1; }
.hypothesis-form label,.stage2-form label { display:grid; gap:6px; color:var(--tool-muted); font-size:.68rem; font-weight:800; }
.hypothesis-actions { display:flex; flex-wrap:wrap; gap:9px; margin:15px 0 0; }
.tool-notice-error { border-color:rgba(255,102,112,.45)!important; color:#ffb0b6!important; background:rgba(255,102,112,.08)!important; }
@media(max-width:980px){.hypothesis-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:720px){.hypothesis-summary-grid,.hypothesis-toolbar,.hypothesis-detail-grid,.hypothesis-form-grid,.stage2-form-grid{grid-template-columns:1fr}.hypothesis-form-grid .wide,.stage2-form-grid .wide{grid-column:auto}.hypothesis-toolbar input,.hypothesis-toolbar select,.hypothesis-form input,.hypothesis-form select,.hypothesis-form textarea,.stage2-form input,.stage2-form select{font-size:16px}.hypothesis-detail-card{padding:14px}}
[data-theme="light"] .hypothesis-count-card,[data-theme="light"] .hypothesis-detail-card { border-color:#d5e0ec; background:#fff; }
[data-theme="light"] .hypothesis-toolbar input,[data-theme="light"] .hypothesis-toolbar select,[data-theme="light"] .hypothesis-form input,[data-theme="light"] .hypothesis-form select,[data-theme="light"] .hypothesis-form textarea,[data-theme="light"] .stage2-form input,[data-theme="light"] .stage2-form select { border-color:#cddaea; color:#20354d; background:#fff; }
