/* M4 capability styles only. The canonical Tap-n-Score shell remains in styles.css. */
.is-hidden{display:none!important}
.sec-shell{max-width:1040px}
.sec-experience{display:grid;gap:12px}
.sec-shell .sec-document-header{grid-template-columns:auto auto auto minmax(0,1fr) auto;gap:12px;min-height:64px;padding:8px 12px;border:2px solid #b37b08;border-radius:var(--radius)}
.sec-shell .sec-document-header .package-brand-lockup{grid-column:auto;gap:9px;justify-self:start;overflow:visible}
.sec-shell .sec-document-header .package-emblem{flex-basis:40px;width:40px;height:40px}
.sec-shell .sec-document-header .package-brand-copy{overflow:visible}
.sec-shell .sec-document-header .package-brand-copy strong{font-size:27px}
.sec-document-badge{display:grid;place-items:center;min-height:30px;padding:4px 10px;border-radius:999px;background:#fff;color:#111;font:900 12px/1 Arial,sans-serif;letter-spacing:.06em}
.sec-document-identifier{min-width:0;justify-self:start;overflow:hidden;color:#e8dfcd;font:900 12px/1.1 Arial,sans-serif;letter-spacing:.06em;text-align:left;text-overflow:ellipsis;text-transform:none;white-space:nowrap}
.sec-shell .sec-document-header .package-menu{grid-column:auto;justify-self:end;width:44px;height:44px;min-width:44px;min-height:44px}
.sec-shell .sec-document-header .package-menu span{width:24px;height:3px}
.sec-mission-bar{display:flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:7px 12px;border:1px solid #9d6b07;border-radius:var(--radius);background:#d9960b;color:#0c0c0c;font:900 13px/1.1 Arial,sans-serif;letter-spacing:.015em;text-align:center;text-decoration:none}
.sec-mission-bar strong{font-weight:900}
.sec-mission-bar:focus-visible{outline:2px solid #0c0c0c;outline-offset:-4px}
.sec-publisher-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px;padding:7px 12px;border:1px solid #9d6b07;border-radius:var(--radius);background:#d9960b;color:#0c0c0c;font:800 13px/1.1 Arial,sans-serif}
.sec-publisher-bar a{color:#0c0c0c;font-weight:950}
.sec-vault-back{display:inline-flex;align-items:center;min-height:38px;margin-top:8px;padding:7px 10px;border:1px solid #8f650d;border-radius:7px;background:#111;color:#fff;font-size:11px;font-weight:900;text-decoration:none}
.sec-vault-back[hidden]{display:none!important}
.sec-target-story{border:2px solid var(--ink);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow)}
.sec-target-story{display:grid;gap:14px;padding:20px;overflow:hidden}
.sec-story-command-bar{display:grid;gap:10px;padding-top:14px;border-top:2px solid var(--ink)}
.sec-shooter-action-bar{margin-top:2px}
.sec-story-command-bar .sec-preservation-actions{align-items:stretch}
.sec-story-command-bar .sec-preservation-actions .button,.sec-story-command-bar .sec-preservation-actions a{flex:1 1 140px;justify-content:center}
.sec-story-command-bar #saveSEC{border-color:#8f6200;background:linear-gradient(180deg,#ffd85a,#e6a007);color:#090909;font-weight:950}
.sec-story-command-bar #saveSEC.is-preserved{border-color:#b9b9b9;background:#fff;color:#111;box-shadow:none}
.sec-story-command-bar #saveSEC.is-preserved[disabled]{opacity:1}
.sec-preserved-history-row{display:flex;justify-content:flex-end;min-height:42px}
.sec-action-status{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sec-preserved-history-row #viewHistory{min-width:150px;justify-content:center}
.sec-preserved-history-row #viewHistory.is-next-action{border-color:#8f6200;background:linear-gradient(180deg,#ffd85a,#e6a007);color:#090909;font-weight:950;box-shadow:0 0 0 2px rgba(255,214,75,.26),0 0 20px rgba(255,184,19,.32)}
.sec-evidence-frame,.sec-confirmation-workspace{position:relative;width:min(100%,580px);margin-inline:auto;overflow:hidden;border:2px solid var(--ink);border-radius:var(--radius);background:var(--paper);touch-action:none}
.sec-evidence-frame img,.sec-confirmation-workspace img{display:block;width:100%;height:auto}
.sec-evidence-frame.is-tracing{outline:6px solid var(--blue);outline-offset:3px}
.sec-source-row,.sec-validation-controls,.sec-preservation-actions{display:flex;flex-wrap:wrap;gap:8px}
.sec-source-row span{padding:4px 7px;border:1px solid var(--line);border-radius:999px;background:var(--paper-light);font:700 10px/1 Arial,sans-serif}
.sec-metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.sec-metric{display:grid;gap:3px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper-light)}
.sec-metric span,.sec-execution span{color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.sec-metric strong{font-size:clamp(17px,4vw,26px)}
.sec-metric small{overflow-wrap:anywhere;color:var(--muted);font-size:9px}
.sec-correction-call{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:14px;border:2px solid var(--green-dark);border-radius:var(--radius);background:#e7f0e1}
.sec-correction-call strong{font-size:clamp(20px,5vw,36px)}
.sec-correction-call span{grid-column:1/-1;color:#4d604c;font-size:11px;font-weight:800;text-transform:uppercase}
.sec-execution{display:grid;gap:8px}
.sec-execution>div{display:grid;grid-template-columns:minmax(110px,.45fr) minmax(0,1fr);gap:12px;align-items:center;padding:12px;border-bottom:1px solid var(--line)}
.trace-button{justify-self:start;padding:7px 9px;border:1px solid #6c7891;border-radius:var(--radius);background:#edf2fc;color:#254988;font:800 11px/1.2 Arial,sans-serif;cursor:pointer}
.sec-note-editor{display:grid;gap:8px}
.marker-layer{position:absolute;inset:0;pointer-events:none}
.sec-hero{display:grid;gap:18px;align-items:center}
.sec-stage-summary{margin:0;color:#3f4b3d;font-size:15px;line-height:1.45}
.sec-technical-details{border:1px solid var(--line);border-radius:var(--radius);background:#f5f1e8}
.sec-technical-details>summary{padding:11px 12px;color:#314e34;font-size:12px;font-weight:900;letter-spacing:.04em;cursor:pointer}
.sec-technical-details[open]>summary{border-bottom:1px solid var(--line)}
.sec-technical-details>.sec-metric-grid,.sec-technical-details>.trace-button{margin:10px 12px}
.sec-before-after{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.sec-before-after figure{display:grid;grid-template-rows:auto auto;min-width:0;margin:0}
.sec-before-after figcaption{display:grid;place-items:center;gap:2px;min-height:42px;margin-bottom:6px;text-align:center}
.sec-before-after figcaption span{color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.sec-before-after figcaption strong{font-size:20px;font-weight:950;letter-spacing:.05em}
.sec-evidence-frame,.sec-comparison-target{aspect-ratio:2550/2625}
.sec-comparison-target{position:relative;display:grid;place-items:center;overflow:hidden;border:2px solid var(--ink);border-radius:var(--radius);background:#e7e3d9}
.sec-evidence-plane{position:relative;height:100%;max-width:100%;aspect-ratio:var(--evidence-aspect,2550 / 3300);overflow:hidden;background:#fff}
.sec-evidence-plane img{display:block;width:100%;height:100%;object-fit:fill}
.sec-target-session-identity{position:absolute;top:17.5%;left:2.5%;z-index:9;display:grid;gap:2px;padding:5px 7px;border:1px solid rgba(255,255,255,.78);border-radius:5px;background:rgba(9,15,10,.88);color:#fff;box-shadow:0 4px 10px rgba(0,0,0,.28);pointer-events:none}
.sec-target-session-identity strong{font-size:9px;letter-spacing:.04em;line-height:1;text-transform:uppercase}
.sec-target-session-identity small{color:#f2b516;font-size:6px;font-weight:900;letter-spacing:.08em;line-height:1;text-transform:uppercase}
.sec-target-session-identity small:empty{display:none}
.sec-evidence-frame>.marker-layer,.sec-evidence-plane>.marker-layer{inset:0;width:100%;height:100%;bottom:auto}
.sec-comparison-pending{position:absolute;inset:0;display:grid;place-items:center;background:rgba(0,0,0,.55);color:#fff;font-size:16px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.sec-comparison-target .target-correction-vector{z-index:5;filter:drop-shadow(0 1px 1px rgba(255,255,255,.9)) drop-shadow(0 2px 2px rgba(0,0,0,.28))}
.sec-comparison-target .target-correction-vector line{stroke:#087432;stroke-width:3}
.sec-comparison-target .target-correction-vector marker path{fill:#087432}
.sec-target-correction-overlay{position:absolute;z-index:8;display:grid;grid-template-columns:max-content max-content;gap:3px;width:max-content;max-width:95%;padding:0;background:transparent;color:#fff;pointer-events:none}
.sec-target-correction-overlay.top-left{left:2.5%;top:17.5%}
.sec-target-correction-overlay.top-right{right:2.5%;top:17.5%}
.sec-target-correction-overlay.bottom-left{left:2.5%;bottom:23%}
.sec-target-correction-overlay.bottom-right{right:2.5%;bottom:23%}
.sec-validation-workspace{width:min(960px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:0;border:2px solid var(--ink);border-radius:12px;background:var(--paper-light);color:var(--ink);box-shadow:0 24px 70px rgba(0,0,0,.5)}
.sec-validation-workspace::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(3px)}
.sec-validation-workspace-shell{display:grid;gap:12px;padding:16px}
.sec-validation-workspace-header{position:sticky;top:0;z-index:12;display:flex;justify-content:space-between;gap:16px;align-items:start;margin:-16px -16px 0;padding:16px;border-bottom:2px solid #bd860d;background:linear-gradient(145deg,#152b18,#09110a);color:#fff}
.sec-validation-workspace-header h2{margin:2px 0 0;font-size:clamp(28px,5vw,46px)}
.sec-validation-workspace-header p{margin:4px 0 0;color:#d6e4d7}
.sec-validation-close{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid #d89a10;border-radius:8px;background:#111;color:#fff;font-size:28px;line-height:1;cursor:pointer}
.sec-validation-section{display:grid;gap:10px;padding:14px;border:1px solid var(--line);border-radius:9px;background:#fffdf8}
.sec-validation-section-heading{display:grid;gap:2px;border-bottom:1px solid var(--line);padding-bottom:8px}
.sec-validation-section-heading span{color:#816119;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.sec-validation-section-heading strong{font-size:16px}
.sec-validation-section-heading small{color:var(--muted);line-height:1.35}
.sec-validation-subheading{margin-top:4px;color:#816119;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.sec-validation-evidence-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(220px,.6fr);gap:12px;align-items:start}
.sec-shot-inspector{display:grid;gap:10px}
.sec-shot-selector{display:grid;gap:6px}
.sec-shot-selector button{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px;align-items:center;width:100%;padding:7px;border:1px solid var(--line);border-radius:7px;background:#f4f0e6;color:var(--ink);text-align:left;cursor:pointer}
.sec-shot-selector button b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#9f241c;color:#fff}
.sec-shot-selector button span{overflow:hidden;font-size:10px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
.sec-shot-selector button.is-selected{border-color:#bd860d;background:#fff1c9;box-shadow:0 0 0 2px rgba(189,134,13,.2)}
.sec-validation-workspace .impact-marker.is-selected{outline:4px solid #f1b414;outline-offset:3px;scale:1.18;z-index:10}
.sec-shot-coordinate{display:grid;gap:5px;padding:12px;border-left:4px solid #bd860d;background:#f5f1e8}
.sec-shot-coordinate span{color:#6b5525;font-size:10px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.sec-shot-coordinate strong{font-size:18px}
.sec-shot-coordinate small{color:var(--muted);line-height:1.35}
.sec-validation-calculation{display:grid;gap:4px;padding:12px;border:2px solid var(--green-dark);border-radius:8px;background:#e7f0e1}
.sec-validation-calculation strong{font-size:22px}
.sec-authority-trace{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.sec-authority-trace>div{display:grid;gap:3px;min-width:0;padding:9px;border:1px solid var(--line);border-radius:7px;background:#f5f1e8}
.sec-authority-trace span{color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.sec-authority-trace strong{overflow-wrap:anywhere;font-size:10px}
.records-page .vault-gallery:has(.m4-reference-sec-card){grid-template-columns:minmax(0,1fr)}
.records-page .m4-reference-sec-card{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%;max-width:1040px;margin:0 auto;padding:10px;border:1px solid #a8750c;border-radius:12px;background:#0d0d0d;color:var(--ink);box-shadow:0 18px 42px rgba(0,0,0,.46)}
.records-page .m4-reference-sec-card+.m4-reference-sec-card{margin-top:24px}
.records-page .m4-reference-sec-card .sec-universal-stage-heading:not(.sec-stage-pill) h2{color:var(--ink);font-family:inherit;letter-spacing:normal;text-transform:none}
.records-page .m4-reference-sec-card .sec-target-story>.sec-universal-stage{display:grid;grid-column:1!important;grid-row:auto!important;gap:12px;padding:15px!important;border:1px solid var(--line)!important;border-radius:10px!important;background:#fffdf8!important}
.records-page .m4-reference-sec-card .sec-target-story>.sec-universal-stage-recommendation,.records-page .m4-reference-sec-card .sec-target-story>.sec-universal-stage-sight-correction{border-color:#b8861c!important;background:#fff9e9!important}
.records-page .m4-reference-sec-card .sec-target-story>.sec-universal-stage-validation{border-color:#537457!important;background:#f2f7ef!important}
.records-page .m4-reference-sec-card .sec-target-story>.sec-universal-stage-preservation{border-color:#8d7341!important;background:#f6f1e7!important}
.records-page .m4-reference-sec-card .sec-comparison-target img{width:100%;height:100%;object-fit:contain;background:#fff}
.records-page .m4-reference-sec-card .sec-save-status{align-self:center}
.records-page .m4-reference-sec-card .sec-universal-stage-evidence,.records-page .m4-reference-sec-card .sec-universal-stage-target{min-height:620px}
.records-page .m4-reference-sec-card .sec-universal-stage-measurement{min-height:176px}
.records-page .m4-reference-sec-card .sec-universal-stage-recommendation{min-height:154px}
.records-page .m4-reference-sec-card .sec-universal-stage-execution{min-height:150px}
.records-page .m4-reference-sec-card .sec-universal-stage-validation{min-height:128px}
.records-page .m4-reference-sec-card .sec-universal-stage-preservation{min-height:180px}
.records-page .m4-reference-sec-card .sec-metric{min-height:78px}
.records-page .m4-reference-sec-card .sec-correction-call{min-height:92px}
.records-page .m4-reference-sec-card .sec-validation-calculation{min-height:72px}
.records-page .sec-gssf-analysis-panel{display:grid;align-content:space-between;gap:14px;padding:18px;border-color:#b8861c;background:radial-gradient(circle at 50% 0%,rgba(217,150,11,.18),transparent 45%),linear-gradient(160deg,#17130b,#090909 62%);color:#fff}
.records-page .sec-gssf-evidence-grid{align-items:stretch}
.records-page .sec-gssf-evidence-grid>figure{grid-template-rows:auto minmax(0,1fr)}
.records-page .sec-gssf-evidence-grid .sec-comparison-target{min-height:clamp(360px,48vw,520px);aspect-ratio:auto}
.records-page .sec-gssf-analysis-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.records-page .sec-gssf-analysis-grid>div{display:grid;align-content:start;gap:3px;min-height:82px;padding:12px;border:1px solid rgba(217,150,11,.58);border-radius:8px;background:rgba(255,255,255,.055)}
.records-page .sec-gssf-analysis-grid span,.records-page .sec-gssf-compact-score span{color:#e7b642;font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.records-page .sec-gssf-analysis-grid strong{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px;min-width:0;line-height:1;white-space:nowrap}
.records-page .sec-gssf-analysis-grid .sec-gssf-hit-count{color:#fff;font-size:clamp(23px,4vw,31px);font-weight:950;letter-spacing:0}
.records-page .sec-gssf-analysis-grid .sec-gssf-hit-label{color:#d7c8a8;font-size:8px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.records-page .sec-gssf-analysis-grid small,.records-page .sec-gssf-compact-score small{color:#d7c8a8;font-size:9px;font-weight:800}
.records-page .sec-gssf-analysis-grid small{overflow-wrap:anywhere;line-height:1.25}
.records-page .sec-gssf-analysis-grid small b{color:#e7b642;font:inherit;text-transform:uppercase}
.records-page .sec-gssf-compact-score{display:grid;align-content:center;gap:5px;min-height:92px;padding:14px;border:2px solid var(--green-dark);border-radius:var(--radius);background:#e7f0e1}
.records-page .sec-gssf-compact-score span{color:#4d604c}
.records-page .sec-gssf-compact-score strong{font-size:clamp(20px,4vw,28px)}
.records-page .sec-gssf-compact-score small{color:#4d604c;font-size:10px}
@media(min-width:461px) and (max-width:900px){
  .records-page .sec-gssf-analysis-grid strong{display:grid;gap:1px}
  .records-page .sec-gssf-analysis-grid .sec-gssf-hit-count{justify-self:start;max-width:100%;font-size:clamp(14px,1.8vw,18px)}
  .records-page .sec-gssf-analysis-grid .sec-gssf-hit-label{justify-self:start;max-width:100%;font-size:clamp(7px,.9vw,8px)}
}
@media(max-width:460px){
  .records-page .sec-gssf-analysis-grid strong{display:grid;gap:1px}
  .records-page .sec-gssf-analysis-grid .sec-gssf-hit-count{justify-self:start;max-width:100%;font-size:16px}
  .records-page .sec-gssf-analysis-grid .sec-gssf-hit-label{justify-self:start;max-width:100%;font-size:7px}
}
body[data-vault-thumbnail="true"]{overflow:hidden;background:#0b0b0b}
body[data-vault-thumbnail="true"] .sec-shell{width:100%;max-width:none;margin:0;padding:8px}
body[data-vault-thumbnail="true"] .sec-document-header,
body[data-vault-thumbnail="true"] .sec-mission-bar,
body[data-vault-thumbnail="true"] .sec-correction-context,
body[data-vault-thumbnail="true"] .sec-story-command-bar,
body[data-vault-thumbnail="true"] .package-footer{display:none!important}
body[data-vault-thumbnail="true"] .sec-experience{display:block}
body[data-vault-thumbnail="true"] .sec-target-story{padding:10px;box-shadow:none}
@media(max-width:640px){
  .sec-shell .sec-document-header{grid-template-columns:auto auto minmax(0,1fr) 40px;gap:6px;min-height:58px;padding:7px 8px}
  .sec-shell .sec-document-header .package-brand-lockup{gap:6px}
  .sec-shell .sec-document-header .package-emblem{flex-basis:34px;width:34px;height:34px}
  .sec-shell .sec-document-header .package-brand-copy strong{font-size:clamp(19px,5.5vw,23px)}
  .sec-document-badge{min-height:26px;padding:3px 7px;font-size:10px}
  .sec-document-identifier{font-size:clamp(8px,2.4vw,10px);letter-spacing:.02em}
  .sec-shell .sec-document-header .package-menu{width:40px;height:40px;min-width:40px;min-height:40px}
  .sec-mission-bar{gap:5px;min-height:34px;padding:6px 8px;font-size:clamp(9px,2.8vw,11px)}
  .sec-publisher-bar{gap:6px;min-height:34px;padding:6px 8px;font-size:clamp(9px,2.8vw,11px)}
  .sec-target-story{padding:14px 12px}
  .sec-metric-grid,.sec-correction-call{grid-template-columns:1fr}
  .sec-correction-call span{grid-column:auto}
  .sec-execution>div{grid-template-columns:1fr;gap:3px}
  .sec-validation-controls .button,.sec-preservation-actions .button,.sec-preservation-actions a{flex:1 1 calc(50% - 8px);min-width:0}
  .sec-preserved-history-row #viewHistory{min-width:132px}
  .sec-before-after{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .sec-before-after figcaption strong{font-size:16px}
  .records-page .m4-reference-sec-card{padding:7px}
  .records-page .m4-reference-sec-card .sec-universal-stage-evidence,
  .records-page .m4-reference-sec-card .sec-universal-stage-target,
  .records-page .m4-reference-sec-card .sec-universal-stage-measurement,
  .records-page .m4-reference-sec-card .sec-universal-stage-recommendation,
  .records-page .m4-reference-sec-card .sec-universal-stage-execution,
  .records-page .m4-reference-sec-card .sec-universal-stage-validation,
  .records-page .m4-reference-sec-card .sec-universal-stage-preservation{min-height:0}
  .sec-validation-workspace{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}
  .sec-validation-workspace-shell{padding:10px}
  .sec-validation-workspace-header{margin:-10px -10px 0;padding:12px}
  .sec-validation-evidence-grid{grid-template-columns:1fr}
  .sec-authority-trace{grid-template-columns:1fr}
}
@media print{
  .m4-header,.sec-validation-controls,.sec-preservation-actions,.trace-button,.sec-note-editor,.sec-validation-workspace{display:none!important}
  body{background:#fff}
  .sec-target-story{break-inside:avoid;box-shadow:none}
}

/* Universal evidence-first SEC sequence: mission content changes, stage order does not. */
.sec-target-story>.sec-universal-stage{display:grid;gap:12px;padding:15px;border:1px solid var(--line);border-radius:10px;background:#fffdf8}
.sec-target-story>.sec-universal-stage+.sec-universal-stage{margin-top:2px}
.sec-universal-stage-heading{display:grid;gap:3px;padding-bottom:9px;border-bottom:1px solid var(--line)}
.sec-universal-stage-heading span{color:#8a6212;font-size:10px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.sec-universal-stage-heading h2,.sec-universal-stage-heading h3{margin:0;font-size:clamp(19px,4vw,28px);line-height:1.05}
.sec-universal-stage-recommendation,.sec-universal-stage-correction,.sec-universal-stage-sight-correction{border-color:#b8861c!important;background:#fff9e9!important}
.sec-universal-stage-validation{border-color:#537457!important;background:#f2f7ef!important}
.sec-universal-stage-preservation{border-color:#8d7341!important;background:#f6f1e7!important}
.sec-universal-stage-preservation .sec-story-command-bar{padding-top:0;border-top:0}
.sec-universal-stage-preservation .sec-correction-context{margin:0}
.sec-evidence-toggle{cursor:pointer;list-style:none}
.sec-evidence-toggle::-webkit-details-marker{display:none}
.sec-evidence-toggle::marker{content:""}
.sec-evidence-toggle:focus-visible{outline:2px solid #8a6212;outline-offset:2px}
.sec-target-story{grid-template-columns:repeat(2,minmax(0,1fr))}
.sec-target-story>details.sec-accordion-stage{min-width:0}
.sec-target-story>details.sec-universal-stage-target{grid-column:1/-1;padding:0;overflow:hidden;border-color:#111;background:#fff}
.sec-target-story>details.sec-universal-stage-target>.sec-evidence-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:10px 13px;border:0;background:#111;color:#fff}
.sec-target-story>details.sec-universal-stage-target>.sec-evidence-toggle span{color:#fff;font-size:14px}
.sec-target-story>details.sec-universal-stage-target>.sec-evidence-toggle strong{color:#dedede;font-size:13px;font-weight:600;letter-spacing:0;text-transform:none}
.sec-target-story>details.sec-universal-stage-target>.sec-before-after{padding:14px}
.sec-target-story>details.sec-collapsible-stage{padding:0;border:0!important;background:transparent!important}
.sec-stage-pill{box-sizing:border-box;display:grid;grid-template-columns:24px minmax(0,1fr) 18px;align-items:center;gap:8px;width:100%;min-height:var(--sczn3-pill-height);padding:0 var(--sczn3-pill-padding-inline);border:2px solid var(--sczn3-control-border);border-radius:var(--sczn3-pill-radius);background:var(--sczn3-control-background);color:var(--sczn3-control-text);cursor:pointer;list-style:none}
.sec-stage-pill.sec-session-pill{grid-template-columns:24px minmax(0,1fr) auto 18px}
.sec-stage-pill::-webkit-details-marker{display:none}
.sec-stage-pill::marker{content:""}
.sec-stage-pill span{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid currentColor;border-radius:50%;color:inherit;font-size:10px}
.sec-stage-pill h2{overflow:hidden;color:inherit;font-family:Arial,Helvetica,sans-serif;font-size:12px;font-weight:950;line-height:1;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}
.sec-session-score{color:inherit;font-size:15px;font-weight:950;letter-spacing:.04em;white-space:nowrap}
.sec-stage-pill b{position:relative;width:14px;height:14px;justify-self:end}
.sec-stage-pill b::before{content:"";position:absolute;top:3px;left:2px;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .16s ease}
.sec-collapsible-stage[open]>.sec-stage-pill{background:var(--sczn3-control-active-background);color:var(--sczn3-control-active-text)}
.sec-collapsible-stage[open]>.sec-stage-pill b::before{transform:rotate(45deg)}
.sec-stage-pill:focus-visible{outline:2px solid #fff;outline-offset:2px}
.sec-stage-body{display:grid;gap:12px;margin-top:10px;padding:15px;border:1px solid var(--line);border-radius:10px;background:#fffdf8}
.sec-session-section,.sec-confirmation-summary{display:grid;gap:10px}
.sec-session-section h3,.sec-confirmation-summary h3{margin:0;color:#684d12;font-size:12px;font-weight:950;letter-spacing:.07em;text-transform:uppercase}
.sec-sight-correction-story{display:grid;gap:10px}
.sec-sight-correction-system,.sec-sight-correction-axis,.sec-sight-correction-unavailable{display:grid;gap:4px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fffdf8}
.sec-sight-correction-system span,.sec-sight-correction-axis span,.sec-sight-correction-unavailable span{color:var(--muted);font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.sec-sight-correction-system strong,.sec-sight-correction-unavailable strong{font-size:16px}
.sec-sight-correction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sec-sight-correction-axis{border:2px solid var(--green-dark);background:#e7f0e1}
.sec-sight-correction-axis strong{font-size:clamp(19px,4vw,28px)}
.sec-sight-correction-axis small{color:#4d604c;font-size:10px;font-weight:800;line-height:1.35}
.sec-universal-stage-execution .sec-stage-body{border-color:#b8861c;background:#fff9e9}
.sec-universal-stage-preservation .sec-stage-body{border-color:#537457;background:#f2f7ef}
body[data-vault-thumbnail="true"] .sec-target-story>.sec-universal-stage:not(.sec-universal-stage-target){display:none!important}
body[data-vault-thumbnail="true"] .sec-universal-stage-heading{display:none}

@media screen{
  .sec-accordion-stage:not([open])>.sec-historical-target-body,
  .sec-accordion-stage:not([open])>.sec-stage-body{display:none!important}
}

@media(max-width:640px){
  .sec-target-story>.sec-universal-stage{padding:11px 9px}
  .sec-universal-stage-heading h2{font-size:20px}
  .sec-target-story>details.sec-collapsible-stage{padding:0}
  .sec-stage-pill h2{font-size:12px}
  .sec-stage-body{padding:11px 9px}
  .sec-stage-pill.sec-session-pill{grid-template-columns:22px minmax(0,1fr) auto 14px;gap:5px}
  .sec-session-score{font-size:13px}
  .sec-sight-correction-grid{grid-template-columns:1fr}
}

@media(max-width:460px){
  .sec-shell .sec-document-header{grid-template-columns:auto auto minmax(0,1fr) 40px;gap:4px;padding-inline:6px}
  .sec-shell .sec-document-header .package-emblem{flex-basis:32px;width:32px;height:32px}
  .sec-shell .sec-document-header .package-brand-copy strong{font-size:19px}
  .sec-document-badge{padding-inline:5px;font-size:9px}
  .sec-document-identifier{overflow:visible;font-size:8px;letter-spacing:0;text-overflow:clip}
  .sec-target-story{grid-template-columns:1fr}
  .sec-target-story>details.sec-accordion-stage{grid-column:1}
  .sec-stage-pill h2{white-space:nowrap}
  .records-page .sec-gssf-evidence-grid .sec-comparison-target{min-height:420px}
}

@media print{
  .sec-accordion-stage:not([open])>.sec-before-after{display:grid!important}
  .sec-collapsible-stage>.sec-stage-pill{display:none!important}
  .sec-collapsible-stage:not([open])>.sec-stage-body{display:grid!important}
}

/* Historical SECs reuse the Current Session architecture without mutating active state. */
.records-page[data-vault-view="historical"] .vault-gallery{grid-template-columns:minmax(0,1fr)}
.records-page[data-vault-view="historical"] .history-panel.ballistic-vault{background:#0d0d0d}
.records-page .historical-sec-detail{width:100%;max-width:1040px;margin:0 auto}
.records-page .historical-sec-detail .sec-target-story{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.records-page .historical-sec-detail .sec-target-story>details.sec-accordion-stage{min-width:0;min-height:0!important;padding:0!important;border:0!important;background:transparent!important}
.records-page .historical-sec-detail .sec-target-story>details.sec-universal-stage-target{grid-column:1/-1}
.records-page .historical-sec-detail .sec-evidence-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:10px 13px;border:0;border-radius:10px;background:#111;color:#fff}
.records-page .historical-sec-detail .sec-evidence-toggle span{color:#fff;font-size:14px}
.records-page .historical-sec-detail .sec-evidence-toggle strong{color:#dedede;font-size:13px;font-weight:600}
.records-page .historical-sec-detail .sec-historical-target-body{display:grid;gap:12px;margin-top:10px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#fffdf8}
.records-page .historical-sec-detail .sec-before-after figcaption{place-items:center;text-align:center}
.records-page .historical-sec-detail .sec-before-after figcaption strong{font-size:18px;font-weight:950;letter-spacing:.04em;text-transform:uppercase}
.records-page .historical-sec-detail[data-read-only="true"] .sec-preservation-actions button{display:none}

@media(max-width:460px){
  .records-page .historical-sec-detail .sec-target-story{grid-template-columns:1fr}
  .records-page .historical-sec-detail .sec-target-story>details.sec-accordion-stage{grid-column:1}
}
