/* Universal evidence-first SEC and Ballistic Vault reading order. */
.sec-component{display:contents}

/* Platform-owned Evidence → Result composition shared by score families. */
.sec-evidence-result-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,.85fr);gap:16px;min-width:0;align-items:stretch;color:#111}
.sec-target-evidence{display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;min-width:0;color:#111}
.sec-target-evidence>header{display:flex;align-items:baseline;justify-content:space-between;gap:16px;color:#b88300}
.sec-target-evidence>header span{font-size:12px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.sec-target-evidence>header strong{color:#111;font-size:18px;text-align:right}
.sec-target-evidence figure{display:grid;min-width:0;min-height:0;margin:0}
.sec-target-evidence-viewport{display:grid;place-items:center;min-width:0;min-height:0;overflow:hidden}
.sec-target-evidence-frame{position:relative;width:100%;aspect-ratio:23/35;overflow:hidden;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:#e9e7e1}
.sec-target-evidence-frame img{display:block;width:100%;height:100%;object-fit:contain}
.sec-target-impact-layer{position:absolute;inset:0;pointer-events:none}
.sec-target-impact-marker{position:absolute;display:grid;place-items:center;width:18px;height:18px;border:3px solid #f4c64f;border-radius:50%;background:rgba(6,7,10,.62);color:#fff;font:900 9px/1 system-ui,sans-serif;text-shadow:0 1px 2px rgba(0,0,0,.9);box-shadow:0 0 0 2px rgba(0,0,0,.72);transform:translate(-50%,-50%)}

.sl-target-page [data-sec-mode="live"] .sec-target-evidence,
.sl-target-page [data-sec-mode="live"] .sec-target-evidence figure{min-height:0}
.sl-target-page [data-sec-mode="live"] .sec-target-evidence{height:100%;align-self:stretch;overflow:hidden;grid-template-rows:auto minmax(0,1fr)}
.sl-target-page [data-sec-mode="live"] .sec-evidence-result-layout{height:100%;grid-template-columns:minmax(0,1.65fr) minmax(220px,.85fr);grid-template-rows:minmax(0,1fr);min-height:0;overflow:hidden}
.sl-target-page [data-sec-mode="live"] .sec-target-evidence figure{height:100%;grid-template-rows:minmax(0,1fr) auto}
.sl-target-page [data-sec-mode="live"] .sec-target-evidence-viewport{position:relative;overflow:hidden}
.sl-target-page [data-sec-mode="live"] .sec-target-evidence-frame{position:absolute;top:0;bottom:0;left:50%;width:auto;height:100%;max-width:100%;max-height:100%;transform:translateX(-50%)}

@media(max-width:760px){.sec-evidence-result-layout{grid-template-columns:minmax(0,1.35fr) minmax(150px,.65fr);gap:9px}}
@media(max-width:520px){.sec-evidence-result-layout,.sl-target-page [data-sec-mode="live"] .sec-evidence-result-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:8px}.sec-evidence-result-layout>.sec-component-result,.sec-evidence-result-layout>.sec-component-result>*{order:-1}.sec-target-evidence>header{align-items:center;gap:8px}.sec-target-evidence>header strong{font-size:13px}.sec-target-evidence>header span{font-size:8px}.sec-target-impact-marker{width:16px;height:16px}}
.records-page .sec-v1-flow,
.records-page .sec-framework-flow{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
.records-page .sec-v1-region,
.records-page .sec-framework-stage{grid-column:1!important;grid-row:auto!important;min-width:0;padding:14px!important;border:1px solid #d7c9aa!important;border-radius:10px!important;background:#fffdf8!important}
.records-page .sec-v1-target,.records-page .sec-framework-stage-target{order:1}

/* Universal SEC shell: missions provide region contents, never outer geometry. */
.sec-v1[data-sec-shell="universal-v1"]{display:block!important;grid-column:1/-1;width:100%;height:auto;min-width:0;min-height:0;padding:0;overflow:visible}
.sec-v1[data-sec-shell="universal-v1"]>.sec-v1-flow{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0}
.sec-v1[data-sec-shell="universal-v1"]>.sec-v1-flow>.sec-v1-region{grid-column:1;grid-row:auto;min-width:0}
.sec-v1[data-sec-shell="universal-v1"]>.sec-v1-flow>.sec-v1-target{order:1}
.sec-v1[data-sec-shell="universal-v1"]>.sec-v1-flow>.sec-v1-session{order:2}
.sec-v1[data-sec-shell="universal-v1"]>.sec-v1-flow>.sec-v1-sightCorrection{order:3}
.sec-v1[data-sec-shell="universal-v1"]>.sec-v1-flow>.sec-v1-actions{order:4}
.sec-v1[data-sec-shell="universal-v1"]>.sec-v1-flow>details.sec-accordion-stage{gap:0;padding:0;border:0;background:transparent}
.sec-v1[data-sec-shell="universal-v1"]>.sec-v1-flow>.sec-v1-target{overflow:hidden;border:1px solid #111;background:#fff}
.sec-v1[data-sec-shell="universal-v1"]>.sec-v1-flow>.sec-v1-target>.sec-historical-target-body{display:grid;gap:12px;padding:14px;background:#fffdf8}

/* Universal SEC structural typography: equivalent section labels share one
   visual grammar. Mission result values remain intentionally distinct. */
.sec-v1[data-sec-shell="universal-v1"] .sec-framework-stage-heading>span:first-child,
.sec-v1[data-sec-shell="universal-v1"] .sec-stage-pill>h2{font-family:Arial,Helvetica,sans-serif;font-size:14px!important;font-weight:950!important;line-height:1;letter-spacing:.08em;text-transform:uppercase}
.sec-v1[data-sec-shell="universal-v1"] .sec-stage-pill{grid-template-columns:max-content minmax(0,1fr) 18px;column-gap:4px}
.sec-v1[data-sec-shell="universal-v1"] .sec-stage-pill.sec-session-pill{grid-template-columns:max-content minmax(0,1fr) auto 18px}
.sec-v1[data-sec-shell="universal-v1"] .sec-stage-pill>span:first-child{display:inline-flex;align-items:center;justify-content:flex-start;width:auto;height:auto;border:0;border-radius:0;color:inherit}
.sec-v1[data-sec-shell="universal-v1"] .sec-stage-pill>span:first-child::after{content:"·";margin-left:.4em}
.sec-v1[data-sec-shell="universal-v1"]{--sczn3-sec-closed-bar-height:34px}
.sec-v1[data-sec-shell="universal-v1"] details.sec-accordion-stage:not([open]){align-self:start;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden}
.sec-v1[data-sec-shell="universal-v1"] details.sec-accordion-stage:not([open])>summary.sec-framework-stage-heading{box-sizing:border-box;min-height:var(--sczn3-sec-closed-bar-height)!important;padding-block:0!important}
.sec-v1[data-sec-shell="universal-v1"] .sec-session-record-fields{display:grid;gap:8px}
.sec-v1[data-sec-shell="universal-v1"] .sec-session-section,
.sec-v1[data-sec-shell="universal-v1"] .sec-session-record-fields{color:#111}
.sec-v1[data-sec-shell="universal-v1"] .sec-session-record-fields>div{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:baseline;column-gap:10px;min-width:0}
.sec-v1[data-sec-shell="universal-v1"] .sec-session-record-fields>div>span{font-weight:900;white-space:nowrap}
.sec-v1[data-sec-shell="universal-v1"] .sec-session-record-fields>div>strong{min-width:0;overflow-wrap:anywhere}
.records-page .sec-v1[data-sec-shell="universal-v1"]>.sec-v1-flow>details.sec-accordion-stage{padding:0!important;border:0!important;background:transparent!important}
.records-page .sec-v1[data-sec-shell="universal-v1"]>.sec-v1-flow>.sec-v1-target{border:1px solid #111!important;background:#fff!important}

/* The Experience Frame supplies available height. The universal SEC shell
   assigns its flexible row to the open section and keeps actions last. */
.sec-live-host:not([hidden]){height:var(--sczn3-sec-live-height,var(--sl-workspace-viewport-height,calc(100dvh - 58px)));margin:0 auto;padding:8px 0;overflow:hidden}
.sec-live-host>:has(>.sec-v1[data-sec-shell="universal-v1"][data-sec-mode="live"]){height:100%;max-height:100%;min-height:0;overflow:hidden}
.sec-live-host .sec-v1[data-sec-shell="universal-v1"][data-sec-mode="live"]{height:100%;max-height:100%;min-height:0;overflow:hidden}
.sec-v1[data-sec-shell="universal-v1"][data-sec-mode="live"]>.sec-v1-flow{height:100%;max-height:100%;min-height:0}
.sec-v1[data-sec-shell="universal-v1"][data-sec-mode="live"]>.sec-v1-flow[data-sec-open-region="target"]{grid-template-rows:minmax(0,1fr) auto auto}
.sec-v1[data-sec-shell="universal-v1"][data-sec-mode="live"]>.sec-v1-flow[data-sec-open-region="session"]{grid-template-rows:auto minmax(0,1fr) auto}
.sec-v1[data-sec-shell="universal-v1"][data-sec-mode="live"]>.sec-v1-flow:has(>.sec-v1-sightCorrection)[data-sec-open-region="target"]{grid-template-rows:minmax(0,1fr) auto auto auto}
.sec-v1[data-sec-shell="universal-v1"][data-sec-mode="live"]>.sec-v1-flow:has(>.sec-v1-sightCorrection)[data-sec-open-region="session"]{grid-template-rows:auto minmax(0,1fr) auto auto}
.sec-v1[data-sec-shell="universal-v1"][data-sec-mode="live"]>.sec-v1-flow:has(>.sec-v1-sightCorrection)[data-sec-open-region="sightcorrection"]{grid-template-rows:auto auto minmax(0,1fr) auto}
.sec-v1[data-sec-shell="universal-v1"][data-sec-mode="live"]>.sec-v1-flow>details.sec-accordion-stage{position:relative;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.sec-v1[data-sec-shell="universal-v1"][data-sec-mode="live"]>.sec-v1-flow>details.sec-accordion-stage>summary{flex:0 0 auto}
.sec-v1[data-sec-shell="universal-v1"][data-sec-mode="live"]>.sec-v1-flow>details.sec-accordion-stage>.sec-historical-target-body,
.sec-v1[data-sec-shell="universal-v1"][data-sec-mode="live"]>.sec-v1-flow>details.sec-accordion-stage>.sec-stage-body{flex:1 1 auto;min-height:0;overflow:auto}
.sec-v1[data-sec-shell="universal-v1"][data-sec-mode="live"]>.sec-v1-flow>details.sec-v1-target[open]>.sec-historical-target-body{position:absolute;inset:46px 0 0;height:auto;max-height:none}
.sec-v1[data-sec-shell="universal-v1"][data-sec-mode="live"]>.sec-v1-flow>details.sec-collapsible-stage[open]>.sec-stage-body{position:absolute;inset:calc(var(--sczn3-pill-height) + 10px) 0 0;height:auto;max-height:none;margin-top:0}
.records-page .sec-v1-session,.records-page .sec-framework-stage-session{order:2}
.records-page .sec-v1-sightCorrection,.records-page .sec-framework-stage-sight-correction{order:3;background:#fff8e7!important;border-color:#c69a36!important}
.records-page .sec-v1-actions{order:4;padding-top:14px!important;border:0!important;border-top:2px solid #161616!important;border-radius:0!important;background:transparent!important}
.records-page .sec-framework-stage{display:grid;gap:11px}
.records-page .sec-framework-stage-heading{display:grid;gap:3px;padding-bottom:8px;border-bottom:1px solid #d7c9aa}
.records-page .sec-framework-stage-heading span,
.records-page .sec-v1-region>.sec-experience-heading>span,
.records-page .sec-v1-region>.sec-v1-result-label,
.records-page .sec-v1-region>span:first-child{color:#8a6212;font-size:10px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.records-page .sec-framework-stage-heading h3{margin:0;font-size:clamp(19px,4vw,27px);line-height:1.05}
.records-page .sec-framework-stage-content{display:grid;gap:10px;min-width:0}
.records-page .sec-framework-stage .history-thumb{width:min(100%,560px);margin:0 auto}
.records-page .sec-v1-actions{display:grid;gap:12px}
.records-page .sec-v1-actions .sec-v1-record-actions{position:static!important;grid-column:auto!important;grid-row:auto!important}

@media(max-width:560px){
  .records-page .sec-v1-region,.records-page .sec-framework-stage{padding:10px!important}
  .records-page .sec-framework-stage-heading h3{font-size:20px}
}
