/* Module 12 is the sole complete integrated-range surface. */
.m12-shell { min-height: 100vh; color: #172033; background: rgba(248, 250, 252, .78); }
.m12-topbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px clamp(20px, 4vw, 48px); background: rgba(255,255,255,.96); border-bottom: 1px solid #e5e7eb; }
.m12-brand img { display: block; width: auto; height: 42px; }
.m12-top-actions { display: flex; align-items: center; gap: 16px; }
.m12-simulation, .m12-exit { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.m12-simulation { padding: 7px 11px; color: #1e3a5f; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 999px; }
.m12-exit { color: #1e3a5f; text-decoration: none; }
.m12-exit:hover, .m12-exit:focus-visible { color: #c2410c; text-decoration: underline; }
.m12-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 80px; }
.m12-kicker { margin: 0; color: #f97316; font: 800 11px/1.4 Inter, sans-serif; letter-spacing: .13em; text-transform: uppercase; }

.m12-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.m12-primary, .m12-secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 11px; font-size: 13px; font-weight: 800; text-decoration: none; }
.m12-primary { color: #fff; background: #f97316; }
.m12-primary:hover, .m12-primary:focus-visible { background: #ea580c; }
.m12-secondary { color: #fff; border: 1px solid rgba(255,255,255,.22); }
.m12-secondary:hover, .m12-secondary:focus-visible { background: rgba(255,255,255,.1); }
main.mf-frame .m12-hero .m12-launch-note { margin: 9px 0 0; color: rgba(255,255,255,.48); font: 10px/1.5 Inter, sans-serif; }
/* The Pass tile carries a long rubric phrase; let it wrap instead of starving the hero copy column. */
main.mf-frame .m12-hero .mf-stats { max-width: 420px; }
main.mf-frame .m12-hero .mf-stats dd { white-space: normal; }
.m12-hero-locked { align-items: center; }
.m12-lock-mark { min-width: 190px; display: grid; place-items: center; padding: 24px; background: rgba(8,22,39,.48); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; }
.m12-lock-mark i { color: #f97316; font-size: 30px; }
.m12-lock-mark strong { margin-top: 7px; font-size: 25px; }
.m12-lock-mark span { color: rgba(255,255,255,.55); font: 10px Inter, sans-serif; }

.m12-objective { display: flex; align-items: flex-start; gap: 16px; margin-top: 22px; padding: 22px; background: #fff; border: 1px solid #dbe3ed; border-radius: 16px; box-shadow: 0 8px 24px rgba(30,58,95,.06); }
.m12-objective > div:first-child { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: #f97316; border-radius: 12px; font-size: 21px; }
.m12-objective h2 { margin: 5px 0 0; color: #1e3a5f; font-size: 18px; line-height: 1.48; }
.m12-range-section { border-top: 4px solid #f97316; }
.m12-muted { margin: 0 0 20px; color: #64748b; font: 12px/1.65 Inter, sans-serif; }

.m12-prereq-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.m12-prereq { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 12px; color: #334155; background: #f8fafc; border: 1px solid #dbe3ed; border-radius: 11px; text-decoration: none; }
.m12-prereq:hover, .m12-prereq:focus-visible { border-color: #1e3a5f; background: #eef6ff; }
.m12-prereq > span { width: 31px; height: 31px; display: grid; place-items: center; color: #1e3a5f; background: #e7f0f9; border-radius: 8px; font-size: 10px; font-weight: 800; }
.m12-prereq strong, .m12-prereq small { display: block; }
.m12-prereq strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.m12-prereq small { margin-top: 3px; color: #94a3b8; font: 9px Inter, sans-serif; }
.m12-prereq > i { color: #94a3b8; }
.m12-prereq.is-complete > i { color: #16a34a; }

.m12-requirements { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.m12-requirements > div { display: flex; align-items: center; gap: 10px; padding: 11px; background: #f8fafc; border: 1px solid #dbe3ed; border-radius: 10px; }
.m12-requirements > div > span { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; color: #1e3a5f; background: #e7f0f9; border-radius: 8px; font-size: 9px; font-weight: 800; }
.m12-requirements .is-seen { background: #f0fdf4; border-color: #bbf7d0; }
.m12-requirements .is-seen > span { color: #15803d; background: #dcfce7; }
.m12-requirements p, .m12-requirements strong, .m12-requirements small { display: block; margin: 0; }
.m12-requirements strong { color: #1e3a5f; font-size: 11px; }
.m12-requirements small { margin-top: 2px; color: #64748b; font: 9px/1.4 Inter, sans-serif; }
.m12-requirements p { min-width: 0; flex: 1; }
.m12-requirements em { display: block; margin-top: 6px; color: #64748b; font: 9px/1.45 Inter, sans-serif; font-style: normal; }
.m12-stage-note { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 0 0 10px; padding: 10px 12px; color: #334155; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 9px; font: 10px/1.45 Inter, sans-serif; }
.m12-stage-note strong { color: #9a3412; font-size: 11px; }
.m12-stage-note span { color: #64748b; }

.m12-console-shell { overflow: hidden; background: #f8fafc; border: 1px solid #dbe3ed; border-radius: 16px; }
.m12-console-nav { display: grid; grid-template-columns: repeat(5,1fr); gap: 1px; background: #dbe3ed; border-bottom: 1px solid #dbe3ed; }
.m12-console-nav button { min-width: 0; min-height: 62px; position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 8px; color: #64748b; background: #fff; border: 0; font: 700 11px 'Space Grotesk',sans-serif; cursor: pointer; }
.m12-console-nav button > i:first-child { font-size: 18px; }
.m12-console-nav button[aria-current="page"] { color: #1e3a5f; background: #fff7ed; box-shadow: inset 0 -3px #f97316; }
.m12-console-nav .m12-reviewed { position: absolute; top: 5px; right: 6px; color: #16a34a; font-size: 11px; }
.m12-console { margin: 16px; padding: 18px; background: #fff; border: 1px solid #dbe3ed; border-radius: 13px; }
.m12-console-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.m12-console-title h3 { margin: 4px 0; color: #1e3a5f; font-size: 19px; }
.m12-console-title p:last-child { margin: 0; color: #64748b; font: 11px/1.5 Inter,sans-serif; }
.m12-console-title > span { padding: 6px 9px; color: #1e3a5f; background: #eef6ff; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.m12-table-wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 9px; }
.m12-console table { width: 100%; border-collapse: collapse; font: 11px/1.45 Inter,sans-serif; }
.m12-console th { padding: 9px 11px; color: #64748b; background: #f8fafc; border-bottom: 1px solid #dbe3ed; font-size: 9px; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.m12-console td { padding: 11px; color: #475569; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.m12-console tr:last-child td { border-bottom: 0; }
.m12-console code, .m12-evidence code { color: #f97316; font-size: 10px; font-weight: 800; }
.m12-review { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; margin-top: 13px; padding: 8px 11px; color: #1e3a5f; background: #eef6ff; border: 1px solid #cfe2f7; border-radius: 9px; font: 800 11px 'Space Grotesk',sans-serif; cursor: pointer; }
.m12-review:hover, .m12-review:focus-visible { background: #dbeafe; }

.m12-evidence { margin-top: 16px; padding: 19px; background: #fff; border: 1px solid #dbe3ed; border-left: 4px solid #f97316; border-radius: 13px; }
.m12-evidence h3 { margin: 4px 0 5px; color: #1e3a5f; font-size: 17px; }
.m12-evidence > div:first-child > p:last-child { margin: 0; color: #64748b; font: 11px/1.5 Inter,sans-serif; }
.m12-evidence-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 14px; }
.m12-evidence-grid label { display: flex; align-items: flex-start; gap: 9px; padding: 11px; background: #f8fafc; border: 1px solid #dbe3ed; border-radius: 9px; cursor: pointer; }
.m12-evidence-grid label:has(input:checked) { background: #fffaf5; border-color: #f97316; }
.m12-evidence-grid input { width: 17px; height: 17px; flex: 0 0 auto; margin: 1px 0 0; accent-color: #f97316; }
.m12-evidence-grid strong, .m12-evidence-grid small { display: block; }
.m12-evidence-grid strong { color: #334155; font: 700 11px/1.45 Inter,sans-serif; }
.m12-evidence-grid small { margin-top: 3px; color: #64748b; font: 10px/1.45 Inter,sans-serif; }

.m12-assessment-section { padding: 0; overflow: hidden; border-top: 4px solid #1e3a5f; }
.m12-assessment { padding: clamp(23px,4vw,38px); background: #f8fafc; }
.m12-assessment-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.m12-assessment-heading h2 { margin: 4px 0; color: #1e3a5f; font-size: 24px; }
.m12-assessment-heading p:last-child { margin: 0; color: #64748b; font: 11px/1.5 Inter,sans-serif; }
.m12-assessment-heading > span { padding: 7px 10px; color: #1e3a5f; background: #eef6ff; border: 1px solid #cfe2f7; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.m12-record { margin-top: 20px; padding: 20px; background: #fff; border: 1px solid #dbe3ed; border-radius: 12px; }
.m12-record-heading h3 { margin: 0; color: #1e3a5f; font-size: 16px; }
.m12-record-heading p { margin: 3px 0 0; color: #64748b; font: 11px/1.5 Inter,sans-serif; }
.m12-action-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.m12-action-card { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #f8fafc; border: 1px solid #dbe3ed; border-radius: 10px; }
.m12-action-card h4 { margin: 0 0 2px; padding-bottom: 10px; color: #1e3a5f; border-bottom: 1px solid #e2e8f0; font: 800 13px 'Space Grotesk',sans-serif; }
.m12-action-card > label:not(.m12-inline-check) { display: flex; flex-direction: column; gap: 6px; color: #475569; font: 700 10px/1.4 Inter,sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.m12-action-card input:not([type="checkbox"]), .m12-action-card select, .m12-action-card textarea { box-sizing: border-box; width: 100%; min-height: 38px; margin: 0; padding: 9px 11px; color: #172033; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; font: 400 12px/1.5 Inter,sans-serif; letter-spacing: normal; text-transform: none; transition: border-color .15s, box-shadow .15s; }
.m12-action-card textarea { min-height: 88px; resize: vertical; }
.m12-action-card input::placeholder, .m12-action-card textarea::placeholder { color: #94a3b8; }
.m12-action-card input:not([type="checkbox"]):focus, .m12-action-card select:focus, .m12-action-card textarea:focus { outline: none; border-color: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,.18); }
.m12-action-card input[type="checkbox"] { width: 16px; height: 16px; flex: 0 0 auto; margin: 0; accent-color: #f97316; }
.m12-inline-check { display: flex; align-items: center; gap: 9px; color: #334155; font: 600 12px Inter,sans-serif; cursor: pointer; }
.m12-action-card fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.m12-action-card legend { margin-bottom: 6px; padding: 0; color: #475569; font: 700 10px Inter,sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.m12-action-card .m12-check-grid { grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); }
.m12-action-card .m12-check-grid label { align-items: center; margin: 0; padding: 9px 10px; background: #fff; color: #334155; font: 600 12px Inter,sans-serif; }
.m12-action-card .m12-check-grid label:has(input:checked) { background: #fffaf5; border-color: #f97316; }
.m12-form-note { margin: 0; color: #64748b; font: 11px/1.5 Inter,sans-serif; }
.m12-form-submit { align-self: flex-start; min-height: 36px; margin-top: auto; padding: 8px 14px; color: #fff; background: #1e3a5f; border: 1px solid #1e3a5f; border-radius: 8px; font: 800 12px 'Space Grotesk',sans-serif; cursor: pointer; }
.m12-form-submit:hover, .m12-form-submit:focus-visible { background: #16304f; }
.m12-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.m12-form-grid fieldset { min-width: 0; margin: 0; padding: 18px; background: #fff; border: 1px solid #dbe3ed; border-radius: 12px; }
.m12-form-grid fieldset.m12-wide { grid-column: 1/-1; }
.m12-form-grid legend { padding: 0 6px; color: #1e3a5f; font-size: 14px; font-weight: 800; }
.m12-form-grid fieldset > label:not(.m12-select-label):not(.m12-text-label), .m12-check-grid label, .m12-two-col > label { display: flex; align-items: flex-start; gap: 9px; margin-top: 8px; padding: 10px; background: #f8fafc; border: 1px solid #dbe3ed; border-radius: 9px; cursor: pointer; }
.m12-form-grid label:has(input:checked) { background: #fffaf5 !important; border-color: #f97316 !important; }
.m12-form-grid input { width: 17px; height: 17px; flex: 0 0 auto; margin: 1px 0 0; accent-color: #f97316; }
.m12-form-grid label strong, .m12-form-grid label small { display: block; }
.m12-form-grid label strong { color: #334155; font: 700 11px/1.45 Inter,sans-serif; }
.m12-form-grid label small { margin-top: 2px; color: #64748b; font: 10px/1.45 Inter,sans-serif; }
.m12-select-label, .m12-text-label { display: block; margin-top: 12px; color: #1e3a5f; font-size: 11px; font-weight: 800; }
.m12-select-label select, .m12-timeline-inputs select { box-sizing: border-box; width: 100%; margin-top: 6px; padding: 10px 34px 10px 10px; color: #334155; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; font: 11px Inter,sans-serif; }
.m12-timeline-inputs { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.m12-timeline-inputs label { color: #1e3a5f; font-size: 10px; font-weight: 800; }
.m12-check-grid, .m12-two-col { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.m12-text-label + .m12-text-label { margin-top: 15px; }
.m12-text-label textarea { box-sizing: border-box; width: 100%; margin-top: 7px; padding: 12px; resize: vertical; color: #172033; background: #fff; border: 1px solid #cbd5e1; border-radius: 9px; font: 12px/1.6 Inter,sans-serif; }
.m12-text-label > span { display: block; margin-top: 4px; color: #94a3b8; font: 9px Inter,sans-serif; text-align: right; }
.m12-text-label textarea:focus, .m12-form-grid select:focus { outline: 3px solid rgba(249,115,22,.2); border-color: #f97316; }
.m12-hint { margin-top: 12px; color: #64748b; background: #fff; border: 1px dashed #cbd5e1; border-radius: 10px; font: 11px/1.55 Inter,sans-serif; }
.m12-hint summary { padding: 11px 13px; color: #1e3a5f; font-weight: 800; cursor: pointer; }
.m12-hint p { margin: 0; padding: 0 13px 13px; }
.m12-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.m12-actions button { min-height: 43px; display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; border-radius: 10px; font: 800 12px 'Space Grotesk',sans-serif; cursor: pointer; }
.m12-submit { color: #fff; background: #f97316; border: 1px solid #f97316; }
.m12-submit:hover, .m12-submit:focus-visible { background: #ea580c; }
.m12-reset { color: #1e3a5f; background: #fff; border: 1px solid #cbd5e1; }
.m12-reset:hover, .m12-reset:focus-visible { background: #f8fafc; border-color: #1e3a5f; }

.m12-score-empty, .m12-validation, .m12-score { margin-top: 18px; padding: 18px; border-radius: 12px; }
.m12-score-empty { color: #64748b; background: #fff; border: 1px dashed #cbd5e1; font: 11px/1.55 Inter,sans-serif; }
.m12-score-empty strong { color: #1e3a5f; }
.m12-score-empty p { margin: 4px 0 0; }
.m12-validation { display: flex; align-items: flex-start; gap: 10px; color: #9a3412; background: #fff7ed; border: 1px solid #fed7aa; }
.m12-validation i { font-size: 20px; }
.m12-validation strong { font-size: 13px; }
.m12-validation p { margin: 3px 0 0; font: 11px/1.55 Inter,sans-serif; }
.m12-score { border: 1px solid; }
.m12-score.is-pass { background: #f0fdf4; border-color: #bbf7d0; }
.m12-score.is-remediate { background: #fff7ed; border-color: #fed7aa; }
.m12-score-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.m12-score-heading h3 { margin: 4px 0; color: #1e3a5f; font-size: 19px; }
.m12-score-heading p:last-child { margin: 0; color: #64748b; font: 10px Inter,sans-serif; }
.m12-score-heading > span { width: 56px; height: 56px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: #1e3a5f; border-radius: 50%; font-size: 17px; font-weight: 800; }
.m12-score-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; margin-top: 15px; }
.m12-score-grid div { padding: 10px; background: rgba(255,255,255,.78); border-radius: 8px; }
.m12-score-grid strong, .m12-score-grid span { display: block; }
.m12-score-grid strong { color: #1e3a5f; font-size: 13px; }
.m12-score-grid span { margin-top: 2px; color: #64748b; font: 9px Inter,sans-serif; }
.m12-critical, .m12-remediation, .m12-portfolio { margin-top: 13px; padding: 13px; background: rgba(255,255,255,.78); border-radius: 9px; }
.m12-critical { color: #991b1b; border: 1px solid #fecaca; }
.m12-critical strong, .m12-remediation strong, .m12-portfolio strong { color: #1e3a5f; font-size: 12px; }
.m12-critical ul, .m12-remediation ul { margin: 6px 0 0; padding-left: 18px; font: 11px/1.6 Inter,sans-serif; }
.m12-remediation ul { color: #64748b; }
.m12-perfect { margin: 13px 0 0; color: #166534; font: 11px Inter,sans-serif; }
.m12-portfolio { display: flex; align-items: flex-start; gap: 11px; }
.m12-portfolio > i { color: #f97316; font-size: 24px; }
.m12-portfolio p { margin: 4px 0 0; color: #64748b; font: 10px/1.5 Inter,sans-serif; }
.m12-shell :focus-visible { outline: 3px solid rgba(249,115,22,.38); outline-offset: 2px; }

@media (max-width: 1000px) {
  .m12-console-nav { grid-template-columns: repeat(2,1fr); }
  .m12-requirements { grid-template-columns: repeat(2,1fr); }
  .m12-timeline-inputs { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 700px) {
  .m12-topbar { align-items: flex-start; }
  .m12-top-actions { align-items: flex-end; flex-direction: column; gap: 6px; }
  .m12-simulation { display: none; }
  .m12-main { width: min(100% - 24px, 1180px); padding-top: 22px; }
  .m12-hero dl, .m12-prereq-grid, .m12-requirements, .m12-console-nav, .m12-evidence-grid, .m12-action-grid, .m12-form-grid, .m12-check-grid, .m12-two-col, .m12-score-grid { grid-template-columns: 1fr; }
  .m12-lock-mark { width: 100%; box-sizing: border-box; }
  .m12-objective { padding: 17px; }
  .m12-objective h2 { font-size: 16px; }
  .m12-form-grid fieldset.m12-wide { grid-column: auto; }
  .m12-record { padding: 14px; }
  .m12-action-card { padding: 14px; }
  .m12-console-nav button { min-height: 50px; justify-content: flex-start; padding-left: 16px; }
  .m12-console { margin: 10px; padding: 12px; }
  .m12-console-title, .m12-assessment-heading { flex-direction: column; }
  .m12-console table, .m12-console tbody, .m12-console tr, .m12-console td { display: block; width: 100%; box-sizing: border-box; }
  .m12-console thead { display: none; }
  .m12-console tr { padding: 9px 0; border-bottom: 1px solid #dbe3ed; }
  .m12-console td { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 9px; padding: 5px 9px; border: 0; }
  .m12-console td::before { content: attr(data-label); color: #94a3b8; font-size: 9px; font-weight: 800; text-transform: uppercase; }
  .m12-assessment { padding: 18px 12px; }
  .m12-timeline-inputs { grid-template-columns: 1fr; }
  .m12-form-grid fieldset { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .m12-shell *, .m12-shell *::before, .m12-shell *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* CASE / incident record tabs at the top of the ITSM ticket. */
.m12-record-tabs { margin-bottom: 10px; }
.m12-record-tabs nav { display: flex; flex-wrap: wrap; border-bottom: 1px solid #dbe3ed; }
.m12-record-tabs nav button { flex: 0 0 auto; padding: 10px 14px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #64748b; font-size: 12px; font-weight: 700; cursor: pointer; }
.m12-record-tabs nav button.is-active { color: #1e3a5f; border-color: #f97316; }
.m12-record-tabs p { margin: 6px 0 0; }
