.investigation-theory{container-type:inline-size}
.theory-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:20px;align-items:start}
.theory-main{display:grid;gap:20px;min-width:0}
.theory-main>.panel,.theory-composer{min-width:0;margin:0}
.theory-main h2,.theory-composer h2{font-size:1.1rem;margin:0 0 14px}
.theory-layout fieldset{border:0;padding:0;margin:0;min-width:0}
.theory-card{border:1px solid var(--line);border-left:3px solid var(--gold);background:rgba(255,255,255,.025);padding:18px;margin-top:16px;border-radius:3px;overflow-wrap:anywhere}
.theory-card.note{border-left-color:#b5a78d}
.theory-card>header{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.theory-card>header .tag{font-size:10px}
.theory-writing{white-space:pre-wrap;font-size:15px;line-height:1.7}
.theory-assertion{display:grid;gap:7px;padding:12px;margin:14px 0;background:var(--sage);border:1px solid var(--line)}
.theory-assertion>span:last-child{font-size:12px}
.theory-evidence-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}
.theory-sources h4{font-size:12px;display:flex;gap:8px;align-items:center;margin:0 0 10px}
.theory-sources h4 span{font:11px Consolas,monospace;padding:2px 6px;border:1px solid var(--line);border-radius:3px}
.theory-sources.supports h4{color:#31614d}
.theory-sources.contradicts h4{color:#925536}
.theory-sources details{font-size:12px;border-top:1px solid var(--line);padding:9px 0}
.theory-sources summary{cursor:pointer;line-height:1.6}
.theory-sources details p{font-size:12px;line-height:1.65;white-space:pre-wrap}
.theory-limit{font-size:11px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.theory-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.theory-card-actions button{font-size:11px;padding:8px 10px}
.theory-records{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.theory-records .pin{margin:0;min-width:0}
.theory-records .pin h3{font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.theory-records .pin button{font-size:11px;padding:6px 8px}
.theory-connection{font-size:12px;gap:12px;overflow-wrap:anywhere}
.theory-connection>span{min-width:0}
.theory-connection>button{flex-shrink:0}
.theory-composer label{font-size:12px}
.theory-composer textarea{min-height:112px}
.theory-composer select{width:100%;min-width:0}
.theory-claim-fields,.theory-source-picker{margin:16px 0;padding:12px 0;border-top:1px solid var(--line)}
.theory-claim-fields>summary,.theory-source-picker>summary{font-size:12px;cursor:pointer;font-weight:600;line-height:1.5}
.theory-source-picker fieldset{max-height:310px;overflow:auto;margin-top:12px;padding-right:4px}
.theory-source-choice{display:flex!important;gap:9px;align-items:flex-start;margin:0!important;padding:12px 0;border-top:1px solid var(--line)}
.theory-source-choice:first-child{border-top:0}
.theory-source-choice input{width:auto!important;flex-shrink:0;margin:4px 0 0}
.theory-source-choice span{display:grid;gap:5px;min-width:0}
.theory-source-choice strong{font-size:12px;line-height:1.5}
.theory-source-choice small{font-size:10px;line-height:1.6;color:var(--muted)}
.theory-layout [hidden]{display:none!important}
.theory-layout :focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.theory-layout .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.theory-layout button:disabled{cursor:default}
@container (max-width:820px){.theory-layout{grid-template-columns:1fr}.theory-composer{grid-row:1}.theory-source-picker fieldset{max-height:240px}}
@container (max-width:480px){.theory-evidence-grid{grid-template-columns:1fr}.theory-card{padding:14px}.theory-card-actions button{flex:1 1 auto}.theory-records{grid-template-columns:1fr}}
