/* F23–F25: estilos restritos às três páginas. Mantém estados do motor e seus dados. */
body.investigar-ui .ix-toolbar,body.investigar-ui .ix-downloads,body.investigar-ui .ix-pins,
body.investigar-ui .ix-comparison,body.investigar-ui .ix-overview,body.investigar-ui .ix-notebook{box-sizing:border-box;color:#18364f;line-height:1.6;min-width:0;font-family:Nunito,system-ui,sans-serif}
body.investigar-ui [data-ix-owned][hidden],body.investigar-ui [data-ix-owned] [hidden]{display:none!important}
body.investigar-ui .ix-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0;padding:12px;border:1px solid #b5cadc;border-radius:14px;background:#f1f7fb}
body.investigar-ui .ix-button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:46px;min-width:44px;max-width:100%;padding:10px 15px;border:1px solid #7999b0;border-radius:10px;background:#fff;color:#16476b;font:800 15px/1.5 Nunito,system-ui,sans-serif;text-align:center;white-space:normal;cursor:pointer}
body.investigar-ui .ix-button:hover:not(:disabled){background:#e4f0f8;border-color:#24577b}
body.investigar-ui .ix-button:disabled{opacity:.65;cursor:default}
body.investigar-ui .ix-actions{display:flex;flex-wrap:wrap;gap:10px}
body.investigar-ui .ix-downloads,body.investigar-ui .ix-pins,body.investigar-ui .ix-comparison{margin:18px 0;padding:14px 20px;border:1px solid #b5cadc;border-radius:15px;background:#fff;scroll-margin-top:120px}
body.investigar-ui .ix-downloads>summary,body.investigar-ui .ix-pins>summary,body.investigar-ui .ix-comparison>summary,
body.investigar-ui .ix-overview>summary,body.investigar-ui .ix-notebook>summary{min-height:46px;padding:9px 0;font-size:17px;line-height:1.55;font-weight:900;cursor:pointer;color:#173e5f}
body.investigar-ui .ix-note{font-size:14px;line-height:1.65;color:#3c566b}
body.investigar-ui .ix-status{font-size:14px;line-height:1.6;color:#173f5b;margin:12px 0 2px}
body.investigar-ui .ix-status:empty{display:none}
body.investigar-ui .ix-literal{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;font-size:16px;line-height:1.65;color:#223e56}
body.investigar-ui .ix-pin-list,body.investigar-ui .ix-version-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}
body.investigar-ui .ix-pin,body.investigar-ui .ix-version-grid article{min-width:0;padding:16px;border:1px solid #bed0dd;border-radius:12px;background:#f5f9fc}
body.investigar-ui .ix-pin h4,body.investigar-ui .ix-version-grid h4{font-size:16px;line-height:1.5;margin:0 0 8px;color:#173955}
body.investigar-ui .ix-pin-action{margin-top:14px}
body.investigar-ui .ix-comparison label{display:block;font-size:16px;font-weight:800;line-height:1.5;margin:15px 0 8px}
body.investigar-ui .ix-comparison textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:96px;font:inherit;font-size:16px;line-height:1.6;padding:12px;background:#fff;color:#1d3b52;border:1px solid #809eb5;border-radius:10px;resize:vertical}
body.investigar-ui .ix-versions details{padding:12px 0;border-top:1px solid #bacede;margin-top:15px}
body.investigar-ui .ix-versions summary{min-height:44px;font-size:15px;line-height:1.5;padding:8px 0;cursor:pointer;color:#194768;font-weight:800}
body.investigar-ui [data-ix-owned] :is(a,button,summary,textarea):focus-visible{outline:3px solid #a65f00;outline-offset:4px}
body.investigar-ui :is(#ruleList,#attemptLog,#thesisStatement,#c24-panel-title):focus{outline:3px solid #a65f00;outline-offset:5px}
body.investigar-ui :is(#ruleList,#attemptLog,#hintButton,#strategyText,#thesisStatement,.a25-panel h3,#c24-panel-title){scroll-margin-top:120px}
/* Lógica: regra e hipótese lado a lado; caderno opcional, sem apagar seu conteúdo. */
body.logica-ui .lg-hero-grid{padding-block:34px;gap:30px}
body.logica-ui .lg-hero h1{font-size:clamp(34px,5vw,58px);line-height:1.05;overflow-wrap:anywhere}
body.logica-ui .lg-btn{font-size:16px;line-height:1.45;min-height:48px;padding:12px 17px}
body.logica-ui .lg-catalog{padding-block:32px}
body.logica-ui .lg-catalog-head{align-items:flex-start;flex-wrap:wrap}
body.logica-ui .lg-catalog-head h2{font-size:clamp(28px,3.8vw,40px);line-height:1.15}
body.logica-ui .lg-search input,body.logica-ui .lg-tools select{font-size:16px;min-height:46px;min-width:0}
body.logica-ui .lg-search:focus-within{outline:3px solid #a65f00;outline-offset:3px}
body.logica-ui .lg-bench-nav button,body.logica-ui .lg-card button,body.logica-ui .lg-back{font-size:15px;line-height:1.5;min-height:44px}
body.logica-ui .lg-card>p,body.logica-ui .lg-card .lg-axis-mini span{font-size:14px;line-height:1.5}
body.logica-ui .lg-lab-grid{display:grid;grid-template-columns:minmax(240px,.65fr) minmax(0,1.35fr);gap:18px;align-items:start}
body.logica-ui .lg-rules{position:static;min-width:0}
body.logica-ui .lg-rules li,body.logica-ui .lg-hints p{font-size:15px;line-height:1.6;color:#36536b}
body.logica-ui .lg-hints button{font-size:15px;line-height:1.5;min-height:46px}
body.logica-ui .ix-notebook{grid-column:1/-1;border:1px solid #b5cadc;border-radius:16px;background:#fff;padding:14px 20px}
body.logica-ui .ix-notebook .lg-notebook{position:static;padding:10px 0;border:0;box-shadow:none;max-height:none}
body.logica-ui .lg-notebook details p,body.logica-ui .lg-notebook .lg23-literal{font-size:15px;line-height:1.6}
body.logica-ui .lg-notebook h4,body.logica-ui .lg-notebook summary{font-size:15px}
body.logica-ui .ix-overview{max-width:1240px;width:calc(100% - 34px);margin:18px auto;border:1px solid #b5cadc;border-radius:16px;padding:12px 18px;background:#fff}
body.logica-ui .ix-overview .lg-protocol{padding:12px 0;border:0}
body.logica-ui .ix-overview .lg-wrap{width:100%}
body.logica-ui .lg-protocol-track{grid-template-columns:repeat(3,minmax(0,1fr))}
body.logica-ui .lg-protocol-track span{font-size:14px;line-height:1.5}
body.logica-ui .lg-experiment-head{min-width:0}
body.logica-ui .lg23-help,body.logica-ui .lg23-status{font-size:15px;line-height:1.6}
body.logica-ui #saveState{font-size:13px;line-height:1.5}
/* Casos: etapas permanecem na ordem original; evidências fixadas são cópias auxiliares. */
body.casos-ui .hero h1{font-size:clamp(32px,4.8vw,54px);line-height:1.13;overflow-wrap:anywhere}
body.casos-ui .hero-actions button,body.casos-ui .case-card button{min-height:46px;font-size:16px;line-height:1.45;white-space:normal}
body.casos-ui .case-main,body.casos-ui .case-side{min-width:0}
body.casos-ui .case-side{position:static}
body.casos-ui .case-main :is(textarea,input:not([type=radio]):not([type=checkbox]),select){font-size:16px;max-width:100%}
body.casos-ui .c24-help,body.casos-ui .evidence-detail{font-size:15px;line-height:1.6}
body.casos-ui .c24-document summary,body.casos-ui .step-nav button{min-height:46px;font-size:15px;line-height:1.55}
body.casos-ui .c24-document p{line-height:1.65;overflow-wrap:anywhere}
body.casos-ui .c24-document button.ix-button{background:#fff;color:#16476b}
/* Argumenta: comparação auxiliar nunca substitui os campos ou conferências. */
body.argumenta-ui .arg-hero{padding-block:34px}
body.argumenta-ui .arg-hero h1{font-size:clamp(32px,4.8vw,54px);line-height:1.12;overflow-wrap:anywhere}
body.argumenta-ui .arg-actions button{min-height:48px;font-size:16px;line-height:1.5;white-space:normal}
body.argumenta-ui .a25-help,body.argumenta-ui .a25-memory{font-size:15px;line-height:1.6}
body.argumenta-ui .a25-field textarea,body.argumenta-ui .a25-field select{font-size:16px;max-width:100%}
body.argumenta-ui .a25-step-nav{display:flex;flex-wrap:wrap;gap:8px}
body.argumenta-ui .a25-step-nav button{min-height:46px;font-size:15px;line-height:1.45;white-space:normal;flex:1 1 180px}
body.argumenta-ui .a25-panel,body.argumenta-ui .arg-wide{min-width:0}
body.argumenta-ui .a25-panel h3{font-size:24px;line-height:1.3}
body.argumenta-ui .arg-statement blockquote{font-size:clamp(20px,2.5vw,26px);line-height:1.5;overflow-wrap:anywhere}
@media(max-width:850px){body.logica-ui .lg-lab-grid{grid-template-columns:minmax(0,1fr)}body.logica-ui .lg-rules{position:static}body.logica-ui .lg-hero-grid{grid-template-columns:minmax(0,1fr)}body.logica-ui .lg-tools{grid-template-columns:minmax(0,1fr)}body.logica-ui .lg-experiment-head{grid-template-columns:minmax(0,1fr)}body.logica-ui .lg-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body.investigar-ui .ix-toolbar{gap:8px;padding:10px}body.investigar-ui .ix-toolbar .ix-button{flex:1 1 120px}body.investigar-ui .ix-downloads,body.investigar-ui .ix-pins,body.investigar-ui .ix-comparison{padding:12px 14px}body.investigar-ui .ix-pin-list,body.investigar-ui .ix-version-grid{grid-template-columns:minmax(0,1fr)}body.investigar-ui .ix-actions .ix-button{width:100%}body.logica-ui .lg-protocol-track{grid-template-columns:repeat(2,minmax(0,1fr))}body.logica-ui .lg-card-grid{grid-template-columns:minmax(0,1fr)}body.logica-ui .lg-bench{padding:12px}body.casos-ui .case-shell{display:flex;flex-direction:column}body.casos-ui .case-shell>*{width:100%}body.casos-ui .step-nav{display:flex;flex-wrap:wrap;gap:8px}body.casos-ui .step-nav button{flex:1 1 110px}body.casos-ui .case-main{padding:16px}body.argumenta-ui .a25-step-nav button{flex-basis:140px}}
@media(prefers-reduced-motion:reduce){html:has(body.investigar-ui){scroll-behavior:auto}body.investigar-ui .ix-button{transition:none;transform:none}}
@media print{body.investigar-ui .ix-toolbar,body.investigar-ui .ix-downloads{display:none!important}body.investigar-ui .ix-pins,body.investigar-ui .ix-comparison{break-inside:auto}body.investigar-ui .ix-pin,body.investigar-ui .ix-version-grid article{break-inside:avoid}}
