/* First Investigation: shared records, mobile-first presentation. */
body.first-investigation-mode{background:#faf9f6}
.first-investigation-mode .astra-shell{display:block}
.first-investigation-mode .main-canvas{max-width:900px;width:100%;margin:auto;padding:0 20px 36px;min-width:0}
#first-investigation{--first-blue:#1246ef;max-width:800px;padding:0 16px 32px;color:#10182a;background:#faf9f6}
#first-investigation .first-sticky{position:sticky;top:0;z-index:30;background:#faf9f6;border-bottom:1px solid #bac8e7;padding:12px 0 14px;box-shadow:0 4px 8px #182e5410}
#first-investigation .first-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
#first-investigation h2{font:700 1.15rem/1.3 system-ui;margin:0}
#first-investigation .first-top button{margin:0;min-height:44px;flex-shrink:0}
#first-investigation .first-storage{font:400 .8rem/1.45 system-ui;margin:8px 0;overflow-wrap:anywhere}
#first-investigation .first-warning:empty{display:none}
#first-investigation .first-warning{font-size:.85rem;padding:8px;background:#fff0cf;max-height:5rem;overflow:auto}
#first-investigation .first-step-label{font-weight:700;margin:12px 0 10px}
#first-investigation .first-progress{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;list-style:none;padding:0;margin:0}
#first-investigation .first-progress li{height:9px;min-width:0;border-radius:8px;background:#cedaf4;position:relative}
#first-investigation .first-progress .complete{background:var(--first-blue)}
#first-investigation .first-progress .current{background:white;outline:2px solid var(--first-blue);outline-offset:-1px}
#first-investigation .first-progress .current:after{content:'';position:absolute;width:7px;height:7px;top:1px;left:calc(50% - 3.5px);border-radius:50%;background:var(--first-blue)}
#first-investigation .first-step{border:0;padding:26px 0 12px;margin:0;min-width:0}
#first-investigation .first-step>h3{font:700 clamp(1.8rem,5vw,2.6rem)/1.12 Georgia,serif;letter-spacing:-.025em;margin:0 0 14px;outline-offset:5px}
#first-investigation p{line-height:1.5;max-width:100%}
#first-investigation label{display:block;font-weight:600;margin:18px 0 8px}
#first-investigation input,#first-investigation textarea,#first-investigation select{box-sizing:border-box;width:100%;font:400 16px/1.5 system-ui;padding:12px;border:1px solid #8ea6d6;border-radius:9px;background:white;color:#10182a;min-width:0}
#first-investigation input[type=checkbox],#first-investigation input[type=radio]{width:auto}
#first-investigation textarea{min-height:110px;resize:vertical}
#first-investigation textarea::placeholder{color:#667085;font-style:italic;opacity:1}
#first-investigation button{white-space:normal;font:600 1rem/1.35 system-ui;border-radius:9px;max-width:100%;padding:12px 16px;cursor:pointer}
#first-investigation .first-secondary{background:transparent;color:#14213c;border:1px solid #4569cc}
#first-investigation .first-link{background:transparent!important;color:#1246ce!important;border:0;text-decoration:underline;padding:8px 4px}
#first-investigation .first-primary{display:block;width:100%;margin:8px 0;background:var(--first-blue);color:white;border:1px solid var(--first-blue)}
#first-investigation button:disabled{background:#e0e2e6!important;border-color:#e0e2e6!important;color:#555c69!important;cursor:not-allowed}
#first-investigation .first-actions{border-top:1px solid #cad4e6;padding-top:12px;margin-top:16px}
#first-validation{font-size:.9rem;margin:0 0 10px}
#first-validation:empty{display:none}
#first-investigation details{border:1px solid #d9dfeb;border-radius:9px;padding:12px;margin:14px 0}
#first-investigation summary{cursor:pointer;min-height:32px;font-weight:600}
#first-investigation .first-record{margin:18px 0;display:grid;grid-template-columns:1fr;gap:0}
#first-investigation .first-record dt{font-weight:700;padding-top:12px}
#first-investigation .first-record dd{margin:0;padding:5px 0 12px;border-bottom:1px solid #d7dfed;white-space:pre-wrap;overflow-wrap:anywhere}
#first-investigation .first-concern{padding:14px;border-radius:10px;background:#e6edff;font-weight:600}
#first-investigation pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9rem;max-width:100%}
#first-investigation #first-save-options{border:1px solid #b9c9ea;border-radius:10px;padding:12px;margin:20px 0}
#first-investigation .investigation-header{position:static;display:block;font-size:.9rem}
#first-investigation .outcome-workspace{padding:0;border:0;background:transparent}
#first-investigation .outcome-workspace>h2,#first-investigation .outcome-workspace>p:first-of-type{display:none}
#first-investigation .outcome-form{padding:0}
#first-investigation #manual-search,#first-investigation #shortlist{max-width:100%;min-width:0}
@media(max-width:740px){.first-investigation-mode .main-canvas{padding:0 6px 24px!important}.first-investigation-mode .decision-summary,.first-investigation-mode .workspace-help{display:none!important}#first-investigation{padding:0 12px 24px}#first-investigation .first-top{gap:8px}#first-investigation .first-top h2{font-size:1rem}#first-investigation .first-top button{font-size:.85rem;padding:8px 10px}.first-investigation-mode .astra-header{position:static!important}#first-investigation .first-step>h3{font-size:2rem}#first-investigation .record-card{padding:12px}#first-investigation .first-actions{position:relative}}
@media(max-height:500px){#first-investigation .first-sticky{position:relative}}
.first-investigation-mode .astra-app{display:block!important;padding-bottom:0!important}
.first-investigation-mode .main-canvas{overflow:visible!important}
#first-investigation .first-alerts:empty{display:none}
#first-investigation .first-alerts #decision-review-cycle[data-guided-hidden]{display:none!important}
#first-investigation .first-alerts .dependency-banner{font-size:.9rem}
.first-mode-entry{background:transparent;color:#1246ce;border:1px solid #becbed;border-radius:8px;padding:10px 14px;margin:0 0 16px;min-height:44px}
.first-investigation-mode #outcome-workspace>button:not(:first-of-type){display:none}
#first-investigation .outcome-form>label[for=outcome-updatedBeliefs]+textarea{min-height:90px}
#first-investigation .first-actions:has(.first-primary:not(:disabled)){scroll-margin-bottom:20px}
#first-investigation details>pre{max-height:24rem;overflow:auto;padding:12px;background:white;border:1px solid #d9dfeb;border-radius:6px}
