/* ==========================================================================
   File:    acxpa-escalation-matrix.css — Escalation Policy Builder
   Version  2.1.1 — 11 Oct 2026 (team exercise print sheet; print fixed against the theme's
            body-wide print hide and Bootstrap's print colour reset).
            2.1.0 — 11 Oct 2026 (industry picker on the stress test; stronger matrix grid lines).
   Previous 2.0.0 — 10 Oct 2026 (Policy Builder: team policy page, stress test, AI review;
            decision-page and results rules removed)
            1.1.0 — 10 Oct 2026 (four views: toolbar, lean Check page with the decision at the
            bottom, How it works for owners and employees, Results)
            1.0.0 first build
   Owns:    div.esm (shortcodes [acxpa_escalation_matrix], [acxpa_esm_org];
            mu-plugins/acxpa-escalation-matrix.php)
   Enqueue: by the mu-plugin, on pages carrying a shortcode. Loads after
            acxpa-tokens.css.
   Look:    the coaches' hub kit frame, so the Complaints Hub tools feel like
            one family. Sand hero with a Gold top edge; surfaces vary by
            section (Harbour tint, white, Sand, Clay tint, Harbour Deep).
            Decision colours: success tint (handle), warning tint (risk
            controls), Harbour Deep (escalate). Gold only on CTAs. Tokens only.
            No max-width on lede or paragraph text.
   Print:   body.esm-printing shows only #esm-print (the one-page matrix,
            A4 landscape, or a decision record).
   ========================================================================== */

div.esm {
  font-family: var(--acxpa-ds-font);
  font-size: var(--acxpa-ds-text-body);
  line-height: var(--acxpa-ds-leading-body);
  color: var(--acxpa-ds-ink);
  -webkit-font-smoothing: antialiased;
  margin: 0 0 48px;
}
div.esm *, div.esm *::before, div.esm *::after { box-sizing: border-box; }
div.esm p { margin: 0; }
div.esm p + p { margin-top: 10px; }
div.esm ul, div.esm ol { margin: 0; padding: 0; list-style: none; }
div.esm li { margin: 0; }
div.esm a { text-decoration: none; }
div.esm [hidden] { display: none !important; }
.esm-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Headings: Kleo uppercases and tracks headings; undo that inside the tool */
div.esm h1, div.esm h2, div.esm h3, div.esm h4 {
  font-family: var(--acxpa-ds-font) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  text-wrap: balance;
}
div.esm h1.esm-h1 { font-size: var(--acxpa-ds-text-h1) !important; line-height: var(--acxpa-ds-leading-tight) !important; font-weight: 800 !important; color: var(--acxpa-ds-teal-800) !important; margin: 0 0 20px !important; }
div.esm h2.esm-h2 { font-size: var(--acxpa-ds-text-h2) !important; line-height: var(--acxpa-ds-leading-tight) !important; font-weight: 800 !important; color: var(--acxpa-ds-teal-800) !important; margin: 0 0 10px !important; }
div.esm h3.esm-h3, div.esm h2.esm-h3 { font-size: var(--acxpa-ds-text-h4) !important; line-height: var(--acxpa-ds-leading-snug) !important; font-weight: 800 !important; color: var(--acxpa-ds-teal-800) !important; margin: 0 0 6px !important; }
div.esm h3.esm-h4, div.esm h4 { font-size: var(--acxpa-ds-text-body) !important; line-height: var(--acxpa-ds-leading-snug) !important; font-weight: 800 !important; color: var(--acxpa-ds-teal-800) !important; margin: 18px 0 6px !important; }
div.esm p.esm-eyebrow { font-size: var(--acxpa-ds-text-caption); font-weight: 700; letter-spacing: var(--acxpa-ds-tracking-eyebrow); text-transform: uppercase; color: var(--acxpa-ds-gold-deep); margin: 0 0 10px; }
div.esm .esm-small, div.esm p.esm-hint { font-size: var(--acxpa-ds-text-small); color: var(--acxpa-ds-slate); }
div.esm p.esm-hint { margin: 4px 0 0; }
div.esm .esm-muted { color: var(--acxpa-ds-slate); }
div.esm p.esm-loading { padding: 24px; color: var(--acxpa-ds-slate); }
div.esm p.esm-error { padding: 12px 16px; border-radius: var(--acxpa-ds-radius-md); background: var(--acxpa-ds-error-tint); color: var(--acxpa-ds-error-deep); font-weight: 600; }
div.esm p.esm-ok { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--acxpa-ds-radius-md); background: var(--acxpa-ds-success-tint); color: var(--acxpa-ds-success-deep); font-weight: 700; }
div.esm .esm-nowrap { white-space: nowrap; }

/* Buttons (hub kit) */
div.esm .esm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--acxpa-ds-radius-pill); border: 2px solid transparent;
  font-family: var(--acxpa-ds-font); font-size: var(--acxpa-ds-text-body); font-weight: 700; line-height: 1.2;
  cursor: pointer; text-transform: none; letter-spacing: normal; text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
div.esm .esm-btn--cta { background: var(--acxpa-ds-gold); border-color: var(--acxpa-ds-gold); color: var(--acxpa-ds-ink); box-shadow: var(--acxpa-ds-shadow-md); }
div.esm .esm-btn--secondary { background: var(--acxpa-ds-white); border-color: var(--acxpa-ds-teal-700); color: var(--acxpa-ds-teal-700); }
div.esm .esm-btn--sm { padding: 8px 16px; font-size: var(--acxpa-ds-text-small); }
div.esm .esm-btn:hover, div.esm .esm-btn:focus-visible { background: var(--acxpa-ds-gold-deep); border-color: var(--acxpa-ds-gold-deep); color: var(--acxpa-ds-white); transform: translateY(-1px); }
div.esm .esm-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; background: var(--acxpa-ds-stone); border-color: var(--acxpa-ds-stone); color: var(--acxpa-ds-slate); box-shadow: none; }
div.esm button.esm-link { background: none; border: 0; padding: 4px 2px; font: inherit; font-size: var(--acxpa-ds-text-small); font-weight: 700; color: var(--acxpa-ds-link); text-decoration: underline; cursor: pointer; }
div.esm button.esm-link--danger { color: var(--acxpa-ds-error-deep); }
div.esm .esm-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
div.esm :focus-visible { outline: 3px solid var(--acxpa-ds-focus); outline-offset: 2px; }
div.esm .esm-iconBtn { width: 36px; height: 36px; flex: 0 0 36px; border-radius: var(--acxpa-ds-radius-md); border: 1px solid var(--acxpa-ds-stone); background: var(--acxpa-ds-white); color: var(--acxpa-ds-slate); font-size: 18px; line-height: 1; cursor: pointer; }
div.esm .esm-iconBtn:disabled { opacity: 0.35; cursor: default; }
div.esm .esm-iconBtn--danger:hover { background: var(--acxpa-ds-error-tint); color: var(--acxpa-ds-error-deep); border-color: var(--acxpa-ds-error); }

/* --------------------------------------------------------------------------
   Hero (Sand, Gold top edge) + Harbour Deep stats
   -------------------------------------------------------------------------- */
div.esm header.esm-hero { margin: 0 0 32px; padding: 48px 40px; border-radius: var(--acxpa-ds-radius-xl); border: 1px solid var(--acxpa-ds-stone); border-top: 5px solid var(--acxpa-ds-gold); background: var(--acxpa-ds-sand); }
div.esm div.esm-heroGrid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; }
div.esm p.esm-lede { font-size: var(--acxpa-ds-text-lead); color: var(--acxpa-ds-ink); }
div.esm p.esm-heroCta { margin-top: 28px; }
div.esm p.esm-heroAlt { margin-top: 14px; font-size: var(--acxpa-ds-text-small); color: var(--acxpa-ds-slate); }
div.esm p.esm-heroAlt a { font-weight: 700; color: var(--acxpa-ds-link); }
div.esm aside.esm-stats { padding: 28px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-harbour-deep); color: var(--acxpa-ds-text-on-dark); box-shadow: var(--acxpa-ds-shadow-lg); }
div.esm p.esm-statsKicker { margin: 0 0 18px; font-size: var(--acxpa-ds-text-caption); font-weight: 700; letter-spacing: var(--acxpa-ds-tracking-eyebrow); text-transform: uppercase; color: var(--acxpa-ds-gold); }
div.esm ul.esm-statsList { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--acxpa-ds-border-on-dark); border-left: 1px solid var(--acxpa-ds-border-on-dark); }
div.esm ul.esm-statsList li { padding: 18px 12px; text-align: center; border-right: 1px solid var(--acxpa-ds-border-on-dark); border-bottom: 1px solid var(--acxpa-ds-border-on-dark); color: var(--acxpa-ds-text-muted-on-dark); font-size: var(--acxpa-ds-text-caption); font-weight: 700; letter-spacing: var(--acxpa-ds-tracking-eyebrow); text-transform: uppercase; }
div.esm ul.esm-statsList strong { display: block; margin-bottom: 4px; font-size: var(--acxpa-ds-text-display); font-weight: 800; line-height: 1; letter-spacing: normal; color: var(--acxpa-ds-white); }
div.esm p.esm-statsNote { margin-top: 18px; font-size: var(--acxpa-ds-text-small); color: var(--acxpa-ds-text-muted-on-dark); }

/* How it works (Harbour tint) */
div.esm section.esm-how { margin: 0 0 32px; padding: 40px; border-radius: var(--acxpa-ds-radius-xl); background: var(--acxpa-ds-harbour-tint); }
div.esm ol.esm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
div.esm ol.esm-steps li { padding: 24px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-white); box-shadow: var(--acxpa-ds-shadow-sm); }
div.esm ol.esm-steps h3 { font-size: var(--acxpa-ds-text-h4) !important; font-weight: 800 !important; color: var(--acxpa-ds-teal-800) !important; margin: 12px 0 6px !important; line-height: var(--acxpa-ds-leading-snug) !important; }
div.esm span.esm-stepNum { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--acxpa-ds-gold); color: var(--acxpa-ds-ink); font-weight: 800; flex: 0 0 36px; }

/* App frame */
div.esm section.esm-appWrap { margin: 0 0 32px; padding: 32px; border-radius: var(--acxpa-ds-radius-xl); border: 1px solid var(--acxpa-ds-stone); background: var(--acxpa-ds-white); box-shadow: var(--acxpa-ds-shadow-md); scroll-margin-top: 120px; }
div.esm p.esm-disclaimer { font-size: var(--acxpa-ds-text-caption); color: var(--acxpa-ds-slate); }

/* Tabs (set-up roles only) */
div.esm nav.esm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 6px; border-radius: var(--acxpa-ds-radius-pill); background: var(--acxpa-ds-bg-subtle); border: 1px solid var(--acxpa-ds-stone); width: fit-content; max-width: 100%; }
div.esm button.esm-tab { border: 0; background: none; padding: 10px 18px; border-radius: var(--acxpa-ds-radius-pill); font: inherit; font-size: var(--acxpa-ds-text-small); font-weight: 700; color: var(--acxpa-ds-slate); cursor: pointer; }
div.esm button.esm-tab.is-on { background: var(--acxpa-ds-harbour-deep); color: var(--acxpa-ds-white); }
div.esm button.esm-tab:not(.is-on):hover { color: var(--acxpa-ds-teal-800); background: var(--acxpa-ds-white); }

/* Which matrix am I using? */
div.esm div.esm-source { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 24px; padding: 14px 18px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-bg-subtle); border: 1px solid var(--acxpa-ds-stone); font-size: var(--acxpa-ds-text-small); }
div.esm div.esm-source p { flex: 1 1 300px; }
div.esm div.esm-source--demo { background: var(--acxpa-ds-gold-tint); border-color: var(--acxpa-ds-gold); }
div.esm span.esm-badge { display: inline-block; padding: 4px 12px; border-radius: var(--acxpa-ds-radius-pill); background: var(--acxpa-ds-white); border: 1px solid var(--acxpa-ds-stone); font-size: 12px; font-weight: 800; letter-spacing: 0.02em; color: var(--acxpa-ds-teal-800); white-space: nowrap; }
div.esm span.esm-badge--org { background: var(--acxpa-ds-harbour-deep); border-color: var(--acxpa-ds-harbour-deep); color: var(--acxpa-ds-white); }

/* --------------------------------------------------------------------------
   Decide: questions left, sticky result right
   -------------------------------------------------------------------------- */
div.esm fieldset:disabled button { cursor: default; }


div.esm details.esm-learn { margin-top: 8px; }
div.esm details.esm-learn summary { display: inline-block; cursor: pointer; font-size: var(--acxpa-ds-text-small); font-weight: 700; color: var(--acxpa-ds-link); text-decoration: underline; list-style: none; }
div.esm details.esm-learn summary::-webkit-details-marker { display: none; }
div.esm div.esm-learnBody { margin-top: 10px; padding: 14px 16px; border-radius: var(--acxpa-ds-radius-md); background: var(--acxpa-ds-info-tint); font-size: var(--acxpa-ds-text-small); }
div.esm div.esm-learnCols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
div.esm div.esm-learnCols h4 { margin: 0 0 4px !important; font-size: var(--acxpa-ds-text-small) !important; }
div.esm div.esm-learnCols ul { list-style: disc; padding-left: 18px; }
div.esm div.esm-learnNo h4 { color: var(--acxpa-ds-error-deep) !important; }
div.esm p.esm-learnTip { font-style: italic; }
div.esm p.esm-learnOrg { padding: 8px 10px; border-radius: var(--acxpa-ds-radius-sm); background: var(--acxpa-ds-white); }

div.esm div.esm-field label { display: block; margin: 0 0 6px; font-weight: 700; font-size: var(--acxpa-ds-text-small); color: var(--acxpa-ds-teal-800); }
div.esm .esm-input { width: 100%; padding: 10px 12px; border: 1px solid var(--acxpa-ds-border-strong); border-radius: var(--acxpa-ds-radius-md); background: var(--acxpa-ds-white); font: inherit; font-size: var(--acxpa-ds-text-small); color: var(--acxpa-ds-ink); margin: 0; height: auto; box-shadow: none; }
div.esm textarea.esm-input { resize: vertical; }
div.esm select.esm-input { min-height: 44px; line-height: 1.4; padding-top: 8px; padding-bottom: 8px; }
div.esm .esm-input:focus { border-color: var(--acxpa-ds-teal-700); outline: 3px solid var(--acxpa-ds-focus); outline-offset: 0; }

/* Result */


/* Bands (sign-up / upgrade) */
div.esm aside.esm-band { margin: 28px 0 28px; padding: 28px; border-radius: var(--acxpa-ds-radius-lg); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
div.esm .esm-band--clay { background: var(--acxpa-ds-clay-tint); border: 1px solid var(--acxpa-ds-clay); }
div.esm .esm-band--harbour { background: var(--acxpa-ds-harbour-tint); }
div.esm p.esm-bandActs { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
div.esm p.esm-bandActs a.esm-btn + a.esm-btn { margin: 0; }

/* --------------------------------------------------------------------------
   The matrix (grid)
   -------------------------------------------------------------------------- */
div.esm section.esm-matrix { margin-top: 32px; padding: 28px; border-radius: var(--acxpa-ds-radius-xl); background: var(--acxpa-ds-sand); border: 1px solid var(--acxpa-ds-stone); }
div.esm div.esm-matrixHead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; margin-bottom: 18px; }
div.esm div.esm-gridWrap { overflow-x: auto; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-white); border: 1px solid var(--acxpa-ds-border-strong); }
table.esm-grid { width: 100%; min-width: 620px; border-collapse: collapse; margin: 0; font-size: var(--acxpa-ds-text-small); }
table.esm-grid th, table.esm-grid td { border: 0; border-bottom: 1px solid var(--acxpa-ds-border-strong); padding: 8px 10px; vertical-align: middle; }
table.esm-grid thead th { background: var(--acxpa-ds-harbour-deep); color: var(--acxpa-ds-white); font-weight: 800; text-align: center; line-height: 1.25; }
table.esm-grid thead th small { display: block; font-weight: 600; font-size: 11px; color: var(--acxpa-ds-text-muted-on-dark); }
table.esm-grid thead th.esm-gridCorner { text-align: left; font-size: 12px; color: var(--acxpa-ds-gold); text-transform: uppercase; letter-spacing: var(--acxpa-ds-tracking-eyebrow); }
table.esm-grid thead th.esm-gridCorner, table.esm-grid tbody th { width: 30%; }
table.esm-grid tbody th { text-align: left; font-weight: 700; color: var(--acxpa-ds-ink); width: 34%; }
table.esm-grid tbody th small { display: block; font-weight: 500; font-size: 11px; color: var(--acxpa-ds-slate); }
table.esm-grid tr.esm-mhead th { background: var(--acxpa-ds-bg-subtle); color: var(--acxpa-ds-teal-800); font-size: 11px; font-weight: 800; letter-spacing: var(--acxpa-ds-tracking-eyebrow); text-transform: uppercase; padding: 6px 10px; }
table.esm-grid td { text-align: center; border-left: 1px solid var(--acxpa-ds-border-strong); }
table.esm-grid tbody th { border-right: 1px solid var(--acxpa-ds-border-strong); }
table.esm-grid td.is-ok { background: var(--acxpa-ds-harbour-tint); }
table.esm-grid td.is-min { background: var(--acxpa-ds-harbour-tint); }
table.esm-grid tr.esm-mrow--risk td.is-ok, table.esm-grid tr.esm-mrow--risk td.is-min { background: var(--acxpa-ds-clay-tint); }
table.esm-grid tr.esm-mrow--money td.is-ok, table.esm-grid tr.esm-mrow--money td.is-min { background: var(--acxpa-ds-gold-tint); }
span.esm-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--acxpa-ds-harbour-deep); vertical-align: middle; }
tr.esm-mrow--risk span.esm-dot { background: var(--acxpa-ds-clay); }
tr.esm-mrow--money span.esm-dot { background: var(--acxpa-ds-gold-deep); }
div.esm details.esm-levelsD { margin-top: 14px; }
div.esm details.esm-levelsD summary { cursor: pointer; font-weight: 700; color: var(--acxpa-ds-link); font-size: var(--acxpa-ds-text-small); }
table.esm-levels { width: 100%; margin: 10px 0 0; border-collapse: collapse; background: var(--acxpa-ds-white); font-size: var(--acxpa-ds-text-small); }
table.esm-levels th, table.esm-levels td { padding: 8px 10px; border: 0; border-bottom: 1px solid var(--acxpa-ds-stone); text-align: left; vertical-align: top; }
table.esm-levels thead th { font-size: 12px; color: var(--acxpa-ds-slate); }

/* --------------------------------------------------------------------------
   Set-up
   -------------------------------------------------------------------------- */
div.esm div.esm-setupHead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; margin-bottom: 20px; }
div.esm p.esm-save { font-size: 12px; color: var(--acxpa-ds-slate); white-space: nowrap; }
div.esm ol.esm-wsteps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0 0 20px; }
div.esm button.esm-wstep { width: 100%; height: 100%; display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: var(--acxpa-ds-radius-md); border: 1px solid var(--acxpa-ds-stone); background: var(--acxpa-ds-white); font: inherit; font-size: var(--acxpa-ds-text-small); font-weight: 700; color: var(--acxpa-ds-slate); text-align: left; cursor: pointer; line-height: 1.25; }
div.esm button.esm-wstep span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: var(--acxpa-ds-bg-subtle); color: var(--acxpa-ds-teal-800); font-weight: 800; }
div.esm button.esm-wstep.is-done span { background: var(--acxpa-ds-harbour-tint); }
div.esm button.esm-wstep.is-on { border-color: var(--acxpa-ds-harbour-deep); background: var(--acxpa-ds-harbour-deep); color: var(--acxpa-ds-white); }
div.esm button.esm-wstep.is-on span { background: var(--acxpa-ds-gold); color: var(--acxpa-ds-ink); }
div.esm div.esm-wbody { padding: 26px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-bg-subtle); border: 1px solid var(--acxpa-ds-stone); }
div.esm div.esm-wintro { margin-bottom: 18px; }
div.esm div.esm-wnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
div.esm div.esm-field { margin-bottom: 0; }
div.esm div.esm-field--inline { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
div.esm div.esm-field--inline label { margin: 0; }
div.esm div.esm-field--inline .esm-input { width: auto; min-width: 160px; }
div.esm span.esm-req { margin-left: 6px; padding: 1px 8px; border-radius: var(--acxpa-ds-radius-pill); background: var(--acxpa-ds-warning-tint); color: var(--acxpa-ds-warning-deep); font-size: 11px; }
div.esm span.esm-opt { margin-left: 6px; font-weight: 600; font-size: 11px; color: var(--acxpa-ds-slate); }
div.esm p.esm-fixed { padding: 10px 0; font-size: var(--acxpa-ds-text-small); font-weight: 700; color: var(--acxpa-ds-teal-800); }
div.esm ol.esm-lvls { display: grid; gap: 12px; }
div.esm li.esm-lvl { padding: 18px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-white); border: 1px solid var(--acxpa-ds-stone); border-left: 5px solid var(--acxpa-ds-harbour-deep); }
div.esm div.esm-lvlNum { margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: var(--acxpa-ds-tracking-eyebrow); text-transform: uppercase; color: var(--acxpa-ds-gold-deep); }
div.esm div.esm-moneyIn { display: flex; align-items: stretch; }
div.esm div.esm-moneyIn span { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--acxpa-ds-border-strong); border-right: 0; border-radius: var(--acxpa-ds-radius-md) 0 0 var(--acxpa-ds-radius-md); background: var(--acxpa-ds-bg-subtle); font-size: var(--acxpa-ds-text-small); font-weight: 700; }
div.esm div.esm-moneyIn .esm-input { border-radius: 0 var(--acxpa-ds-radius-md) var(--acxpa-ds-radius-md) 0; }
div.esm div.esm-lvlGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
div.esm div.esm-field--wide { grid-column: 1 / -1; }
div.esm li.esm-lvl button.esm-link { margin-top: 8px; }
div.esm div.esm-cxmap { margin-bottom: 18px; padding: 18px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-harbour-tint); }
div.esm div.esm-cxmap h4 { margin-top: 0 !important; }
div.esm div.esm-cxGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
div.esm ol.esm-cats { display: grid; gap: 8px; margin-bottom: 14px; }
div.esm li.esm-cat { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 36px 36px; gap: 8px; align-items: center; }
div.esm ul.esm-trigs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
div.esm li.esm-trig { padding: 18px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-white); border: 1px solid var(--acxpa-ds-stone); border-top: 4px solid var(--acxpa-ds-stone); }
div.esm li.esm-trig.is-on { border-top-color: var(--acxpa-ds-clay); }
div.esm div.esm-trigHead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
div.esm div.esm-trigHead h4 { margin: 0 !important; }
div.esm div.esm-trigGrid { display: grid; gap: 12px; margin-top: 12px; }
div.esm label.esm-switch { display: inline-flex; align-items: center; gap: 10px; font-size: var(--acxpa-ds-text-small); font-weight: 700; color: var(--acxpa-ds-teal-800); cursor: pointer; margin: 0; }
div.esm label.esm-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
div.esm label.esm-switch span { position: relative; width: 44px; height: 24px; flex: 0 0 44px; border-radius: 12px; background: var(--acxpa-ds-stone); transition: background 0.15s ease; }
div.esm label.esm-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--acxpa-ds-white); box-shadow: var(--acxpa-ds-shadow-sm); transition: transform 0.15s ease; }
div.esm label.esm-switch input:checked + span { background: var(--acxpa-ds-success-deep); }
div.esm label.esm-switch input:checked + span::after { transform: translateX(20px); }
div.esm label.esm-switch input:focus-visible + span { outline: 3px solid var(--acxpa-ds-focus); outline-offset: 2px; }
div.esm div.esm-bandsBox { margin-top: 18px; padding: 18px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-white); border: 1px solid var(--acxpa-ds-stone); }
div.esm div.esm-bandsBox h4 { margin-top: 0 !important; }
div.esm table.esm-bandsT { width: 100%; margin: 12px 0; border-collapse: collapse; font-size: var(--acxpa-ds-text-small); }
div.esm table.esm-bandsT th, div.esm table.esm-bandsT td { padding: 8px; border: 0; border-bottom: 1px solid var(--acxpa-ds-stone); text-align: left; }
div.esm table.esm-bandsT thead th { font-size: 12px; color: var(--acxpa-ds-slate); }
div.esm div.esm-errs, div.esm div.esm-warns { margin-top: 18px; padding: 14px 18px; border-radius: var(--acxpa-ds-radius-md); font-size: var(--acxpa-ds-text-small); }
div.esm div.esm-errs { background: var(--acxpa-ds-error-tint); color: var(--acxpa-ds-error-deep); }
div.esm div.esm-warns { background: var(--acxpa-ds-warning-tint); color: var(--acxpa-ds-warning-deep); }
div.esm div.esm-errs ul, div.esm div.esm-warns ul { list-style: disc; padding-left: 18px; margin-top: 4px; }
div.esm div.esm-reviewHead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
div.esm div.esm-publish { margin-top: 22px; padding: 20px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-gold-tint); border: 1px solid var(--acxpa-ds-gold); }
div.esm div.esm-publish .esm-actions { margin-top: 14px; }

/* History and team */
div.esm ol.esm-hist { display: grid; gap: 10px; }
div.esm li.esm-histItem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 16px 18px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-white); border: 1px solid var(--acxpa-ds-stone); }
div.esm li.esm-histItem.is-live { border-left: 5px solid var(--acxpa-ds-harbour-deep); background: var(--acxpa-ds-harbour-tint); }
div.esm p.esm-histTop { display: flex; gap: 10px; align-items: center; }
div.esm p.esm-histActs { display: flex; gap: 10px; align-items: center; }
div.esm div.esm-histView { grid-column: 1 / -1; }
div.esm div.esm-empty { padding: 28px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-bg-subtle); text-align: center; }
div.esm section.esm-teamCard { padding: 22px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-harbour-tint); }
div.esm section.esm-teamCard .esm-field, div.esm section.esm-teamCard label.esm-switch { margin-top: 14px; }

/* Owner card on /welcome/ */
div.esm.esm--card { margin: 24px 0; }
div.esm div.esm-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 24px 28px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-sand); border: 1px solid var(--acxpa-ds-stone); border-left: 6px solid var(--acxpa-ds-clay); }

div.esm div.esm-matrixHead { display: block; }
div.esm p.esm-matrixActs { margin-top: 14px; }
table.esm-grid { table-layout: fixed; }
table.esm-grid tbody th { width: 30%; }

/* --------------------------------------------------------------------------
   Toolbar for owners and policy admins (Harbour Deep, like the hub frame)
   -------------------------------------------------------------------------- */
div.esm nav.esm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 24px; padding: 10px 14px 10px 20px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-harbour-deep); }
div.esm span.esm-barName { font-size: var(--acxpa-ds-text-caption); font-weight: 800; letter-spacing: var(--acxpa-ds-tracking-eyebrow); text-transform: uppercase; color: var(--acxpa-ds-gold); }
div.esm nav.esm-bar ul { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
div.esm nav.esm-bar a { display: inline-block; padding: 8px 16px; border-radius: var(--acxpa-ds-radius-pill); font-size: var(--acxpa-ds-text-small); font-weight: 700; color: var(--acxpa-ds-text-on-dark); }
div.esm nav.esm-bar a:hover { background: var(--acxpa-ds-border-on-dark); color: var(--acxpa-ds-white); }
div.esm nav.esm-bar a.is-on { background: var(--acxpa-ds-white); color: var(--acxpa-ds-teal-800); }
div.esm form.esm-adminPick { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; color: var(--acxpa-ds-text-muted-on-dark); }
div.esm form.esm-adminPick label { margin: 0; color: var(--acxpa-ds-text-muted-on-dark); font-weight: 700; }
div.esm form.esm-adminPick select { max-width: 300px; padding: 6px 8px; border-radius: var(--acxpa-ds-radius-md); border: 0; font-size: 12px; height: auto; margin: 0; background: var(--acxpa-ds-white) !important; color: var(--acxpa-ds-ink) !important; }

/* Compact page title (Stress test) */
div.esm h1.esm-h1--check { font-size: var(--acxpa-ds-text-h2) !important; margin: 0 !important; }

/* Gate band (no access / empty states) */
div.esm section.esm-gateBand { padding: 36px 40px; border-radius: var(--acxpa-ds-radius-xl); background: var(--acxpa-ds-sand); border: 1px solid var(--acxpa-ds-stone); border-top: 5px solid var(--acxpa-ds-gold); }
div.esm section.esm-gateBand--inline { margin-top: 8px; }

/* Owner overview: progress panel and share message */
div.esm aside.esm-roll { padding: 26px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-harbour-deep); color: var(--acxpa-ds-text-on-dark); box-shadow: var(--acxpa-ds-shadow-lg); }
div.esm ol.esm-rollList { display: grid; gap: 14px; }
div.esm ol.esm-rollList li { display: flex; gap: 12px; align-items: flex-start; }
div.esm span.esm-rollMark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; border: 2px solid var(--acxpa-ds-border-on-dark); font-weight: 800; font-size: var(--acxpa-ds-text-small); color: var(--acxpa-ds-white); }
div.esm ol.esm-rollList li.is-done span.esm-rollMark { background: var(--acxpa-ds-success-deep); border-color: var(--acxpa-ds-success-deep); }
div.esm ol.esm-rollList li.is-next span.esm-rollMark { background: var(--acxpa-ds-gold); border-color: var(--acxpa-ds-gold); color: var(--acxpa-ds-ink); }
div.esm ol.esm-rollList strong { display: block; color: var(--acxpa-ds-white); }
div.esm ol.esm-rollList span:not(.esm-rollMark) { display: block; font-size: var(--acxpa-ds-text-small); color: var(--acxpa-ds-text-muted-on-dark); }
div.esm ol.esm-rollList a { display: inline-block; margin-top: 2px; font-size: var(--acxpa-ds-text-small); font-weight: 700; color: var(--acxpa-ds-gold); }
div.esm section.esm-share { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: start; margin: 0 0 32px; padding: 36px 40px; border-radius: var(--acxpa-ds-radius-xl); background: var(--acxpa-ds-gold-tint); border: 1px solid var(--acxpa-ds-gold); scroll-margin-top: 120px; }
div.esm div.esm-shareBox textarea { font-size: var(--acxpa-ds-text-small); line-height: 1.5; background: var(--acxpa-ds-white); }
div.esm div.esm-shareBox .esm-actions { margin-top: 12px; }

/* Tiles and section surfaces (Stress test) */
div.esm div.esm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 24px; }
div.esm div.esm-tile2 { padding: 20px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-white); border: 1px solid var(--acxpa-ds-stone); }
div.esm div.esm-tile2 strong { display: block; font-size: var(--acxpa-ds-text-display); font-weight: 800; line-height: 1; color: var(--acxpa-ds-teal-800); }
div.esm div.esm-tile2 strong small { font-size: var(--acxpa-ds-text-body); color: var(--acxpa-ds-slate); }
div.esm div.esm-tile2 span { display: block; margin-top: 8px; font-size: var(--acxpa-ds-text-small); color: var(--acxpa-ds-slate); }
div.esm div.esm-tile2--dark { background: var(--acxpa-ds-harbour-deep); border-color: var(--acxpa-ds-harbour-deep); }
div.esm div.esm-tile2--dark strong { color: var(--acxpa-ds-white); }
div.esm div.esm-tile2--dark span { color: var(--acxpa-ds-text-muted-on-dark); }
div.esm section.esm-rSec { margin: 0 0 20px; padding: 26px 28px; border-radius: var(--acxpa-ds-radius-lg); }
div.esm section.esm-rSec--white { background: var(--acxpa-ds-white); border: 1px solid var(--acxpa-ds-stone); }
div.esm section.esm-rSec--sand { background: var(--acxpa-ds-sand); border: 1px solid var(--acxpa-ds-stone); }
div.esm section.esm-rSec--harbour { background: var(--acxpa-ds-harbour-tint); }
div.esm .esm-mt { margin-top: 22px !important; }


/* --------------------------------------------------------------------------
   Team policy (read-only): Harbour tint levels, Clay tint risks, white types
   -------------------------------------------------------------------------- */
div.esm header.esm-polHead { margin: 0 0 24px; padding: 40px; border-radius: var(--acxpa-ds-radius-xl); border: 1px solid var(--acxpa-ds-stone); border-top: 5px solid var(--acxpa-ds-gold); background: var(--acxpa-ds-sand); }
div.esm p.esm-note { margin-top: 14px; padding: 10px 14px; border-radius: var(--acxpa-ds-radius-md); background: var(--acxpa-ds-info-tint); color: var(--acxpa-ds-info-deep); font-size: var(--acxpa-ds-text-small); }
div.esm section.esm-pSec { margin: 0 0 22px; padding: 30px 32px; border-radius: var(--acxpa-ds-radius-xl); }
div.esm section.esm-pSec--levels { background: var(--acxpa-ds-harbour-tint); }
div.esm section.esm-pSec--risks { background: var(--acxpa-ds-clay-tint); }
div.esm section.esm-pSec--types { background: var(--acxpa-ds-white); border: 1px solid var(--acxpa-ds-stone); }
div.esm ol.esm-pLevels { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 18px; }
div.esm ol.esm-pLevels li { padding: 18px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-white); box-shadow: var(--acxpa-ds-shadow-sm); border-top: 4px solid var(--acxpa-ds-harbour-deep); }
div.esm span.esm-pLvl { font-size: 11px; font-weight: 800; letter-spacing: var(--acxpa-ds-tracking-eyebrow); text-transform: uppercase; color: var(--acxpa-ds-gold-deep); }
div.esm p.esm-pAmt { font-size: var(--acxpa-ds-text-h4); font-weight: 800; color: var(--acxpa-ds-teal-800); margin: 2px 0 8px; }
div.esm p.esm-pHow { margin-top: 10px; padding: 8px 10px; border-radius: var(--acxpa-ds-radius-sm); background: var(--acxpa-ds-harbour-tint); font-size: var(--acxpa-ds-text-small); }
div.esm ul.esm-pRisks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
div.esm ul.esm-pRisks li { padding: 18px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-white); border-left: 4px solid var(--acxpa-ds-clay); }
div.esm div.esm-pRiskHead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
div.esm div.esm-pRiskHead h3.esm-h3 { margin: 0 !important; }
div.esm span.esm-pTo { padding: 4px 12px; border-radius: var(--acxpa-ds-radius-pill); background: var(--acxpa-ds-harbour-deep); color: var(--acxpa-ds-white); font-size: 12px; font-weight: 800; }
div.esm p.esm-pRep { margin-top: 16px; padding: 14px 18px; border-radius: var(--acxpa-ds-radius-md); background: var(--acxpa-ds-white); font-size: var(--acxpa-ds-text-small); }
div.esm div.esm-pTypes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
div.esm div.esm-pType { padding: 16px 18px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-bg-subtle); }
div.esm div.esm-pType ul { list-style: disc; padding-left: 18px; display: grid; gap: 4px; font-size: var(--acxpa-ds-text-small); }
div.esm ul.esm-pBands { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
div.esm ul.esm-pBands li { display: flex; gap: 10px; padding: 8px 14px; border-radius: var(--acxpa-ds-radius-pill); background: var(--acxpa-ds-gold-tint); font-size: var(--acxpa-ds-text-small); }

/* --------------------------------------------------------------------------
   Stress test
   -------------------------------------------------------------------------- */
div.esm div.esm-tile2.is-warn { background: var(--acxpa-ds-warning-tint); border-color: var(--acxpa-ds-warning); }
div.esm ul.esm-health { display: grid; gap: 10px; margin-top: 14px; }
div.esm ul.esm-health li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 18px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-bg-subtle); }
div.esm ul.esm-health li.esm-h--high { background: var(--acxpa-ds-error-tint); }
div.esm ul.esm-health li.esm-h--medium { background: var(--acxpa-ds-warning-tint); }
div.esm ul.esm-health h3.esm-h3 { margin: 0 0 4px !important; }
div.esm ul.esm-health p { font-size: var(--acxpa-ds-text-small); }
div.esm ul.esm-health a { display: inline-block; margin-top: 6px; font-size: var(--acxpa-ds-text-small); font-weight: 700; color: var(--acxpa-ds-link); }
div.esm span.esm-sev { display: inline-block; padding: 4px 10px; border-radius: var(--acxpa-ds-radius-pill); font-size: 11px; font-weight: 800; text-align: center; background: var(--acxpa-ds-white); color: var(--acxpa-ds-slate); }
div.esm li.esm-h--high span.esm-sev { background: var(--acxpa-ds-error-deep); color: var(--acxpa-ds-white); }
div.esm li.esm-h--medium span.esm-sev { background: var(--acxpa-ds-warning); color: var(--acxpa-ds-ink); }
div.esm div.esm-industry { width: 320px; padding: 16px 18px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-white); border: 1px solid var(--acxpa-ds-border-strong); }
div.esm div.esm-industry.is-unset { background: var(--acxpa-ds-gold-tint); border-color: var(--acxpa-ds-gold); }
div.esm div.esm-industry label { display: block; margin: 0 0 6px; font-weight: 800; font-size: var(--acxpa-ds-text-small); color: var(--acxpa-ds-teal-800); }
div.esm div.esm-industry .esm-input { width: 100%; }
div.esm div.esm-industry p.esm-small { margin: 8px 0 0; }
div.esm div.esm-scHead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; margin-bottom: 16px; }
div.esm div.esm-seg2 { display: inline-flex; padding: 3px; border-radius: var(--acxpa-ds-radius-pill); background: var(--acxpa-ds-white); border: 1px solid var(--acxpa-ds-stone); }
div.esm div.esm-seg2 button { border: 0; background: none; padding: 7px 14px; border-radius: var(--acxpa-ds-radius-pill); font: inherit; font-size: var(--acxpa-ds-text-small); font-weight: 700; color: var(--acxpa-ds-slate); cursor: pointer; white-space: nowrap; }
div.esm div.esm-seg2 button.is-on { background: var(--acxpa-ds-harbour-deep); color: var(--acxpa-ds-white); }
div.esm ol.esm-scens { display: grid; gap: 12px; }
div.esm li.esm-scen { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-white); border: 1px solid var(--acxpa-ds-stone); overflow: hidden; }
div.esm div.esm-scenMain { padding: 20px 22px; }
div.esm div.esm-scenMain > p { font-size: var(--acxpa-ds-text-small); }
div.esm p.esm-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
div.esm p.esm-facts span { padding: 3px 10px; border-radius: var(--acxpa-ds-radius-pill); background: var(--acxpa-ds-bg-subtle); font-size: 12px; font-weight: 700; color: var(--acxpa-ds-slate); }
div.esm label.esm-scCat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 12px; font-weight: 700; color: var(--acxpa-ds-slate); }
div.esm label.esm-scCat select { width: auto; min-width: 220px; max-width: 100%; min-height: 36px; padding: 4px 8px; font-size: 12px; }
div.esm div.esm-scenOut { padding: 20px 22px; background: var(--acxpa-ds-bg-subtle); border-left: 1px solid var(--acxpa-ds-stone); }
div.esm div.esm-scenOut p.esm-eyebrow { margin-bottom: 4px; }
div.esm p.esm-scenRes { font-size: var(--acxpa-ds-text-h4); font-weight: 800; color: var(--acxpa-ds-teal-800); line-height: 1.25; }
div.esm p.esm-tag { display: inline-block; margin: 8px 0 8px; padding: 3px 10px; border-radius: var(--acxpa-ds-radius-pill); font-size: 12px; font-weight: 800; }
div.esm p.esm-tag--ok { background: var(--acxpa-ds-success-tint); color: var(--acxpa-ds-success-deep); }
div.esm p.esm-tag--low { background: var(--acxpa-ds-error-tint); color: var(--acxpa-ds-error-deep); }
div.esm p.esm-tag--high { background: var(--acxpa-ds-warning-tint); color: var(--acxpa-ds-warning-deep); }
div.esm p.esm-tag--none { background: var(--acxpa-ds-info-tint); color: var(--acxpa-ds-info-deep); }
div.esm li.esm-scen--low { border-left: 5px solid var(--acxpa-ds-error); }
div.esm li.esm-scen--high { border-left: 5px solid var(--acxpa-ds-warning); }
div.esm li.esm-scen--ok { border-left: 5px solid var(--acxpa-ds-success-deep); }
div.esm div.esm-verdict2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
div.esm div.esm-verdict2 span { font-size: 12px; font-weight: 700; color: var(--acxpa-ds-slate); margin-right: 2px; }
div.esm div.esm-verdict2 button { padding: 6px 12px; border-radius: var(--acxpa-ds-radius-pill); border: 1px solid var(--acxpa-ds-border-strong); background: var(--acxpa-ds-white); font: inherit; font-size: 12px; font-weight: 700; color: var(--acxpa-ds-ink); cursor: pointer; }
div.esm div.esm-verdict2 button.is-on { background: var(--acxpa-ds-harbour-deep); border-color: var(--acxpa-ds-harbour-deep); color: var(--acxpa-ds-white); }
div.esm div.esm-fixes { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--acxpa-ds-stone); display: grid; gap: 6px; }
div.esm button.esm-fix { text-align: left; padding: 8px 12px; border-radius: var(--acxpa-ds-radius-md); border: 1px solid var(--acxpa-ds-gold); background: var(--acxpa-ds-gold-tint); font: inherit; font-size: var(--acxpa-ds-text-small); font-weight: 700; color: var(--acxpa-ds-ink); cursor: pointer; }
div.esm button.esm-fix::before { content: "Apply: "; color: var(--acxpa-ds-gold-deep); }
div.esm button.esm-fix:hover { background: var(--acxpa-ds-gold); }
div.esm button.esm-fix.is-caution { border-color: var(--acxpa-ds-stone); background: var(--acxpa-ds-white); }
div.esm ol.esm-scens.is-demo button, div.esm ol.esm-scens.is-demo select { cursor: default; }
div.esm section.esm-aiRev { margin: 0 0 20px; padding: 30px 32px; border-radius: var(--acxpa-ds-radius-xl); background: var(--acxpa-ds-harbour-deep); color: var(--acxpa-ds-text-on-dark); }
div.esm div.esm-aiHead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
div.esm p.esm-eyebrow--light { color: var(--acxpa-ds-gold); }
div.esm .esm-small--light { display: block; margin-top: 8px; font-size: 12px; color: var(--acxpa-ds-text-muted-on-dark); }
div.esm p.esm-aiAct { text-align: right; }
div.esm div.esm-aiBody:not(:empty) { margin-top: 22px; padding: 24px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-white); color: var(--acxpa-ds-ink); }
div.esm p.esm-aiMeta { font-size: 12px; color: var(--acxpa-ds-slate); }
div.esm p.esm-aiHeadline { margin-top: 6px; font-size: var(--acxpa-ds-text-h4); font-weight: 800; color: var(--acxpa-ds-teal-800); line-height: 1.3; }
div.esm div.esm-aiGrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; margin-top: 18px; }
div.esm ol.esm-aiRisks { list-style: decimal; padding-left: 20px; display: grid; gap: 12px; }
div.esm ol.esm-aiRisks p { font-size: var(--acxpa-ds-text-small); margin-top: 4px; }
div.esm p.esm-aiChange { padding: 8px 10px; border-radius: var(--acxpa-ds-radius-sm); background: var(--acxpa-ds-gold-tint); }
div.esm p.esm-aiChange span { font-weight: 800; color: var(--acxpa-ds-gold-deep); }
div.esm div.esm-aiCol ul { list-style: disc; padding-left: 18px; display: grid; gap: 6px; font-size: var(--acxpa-ds-text-small); }
div.esm p.esm-aiWait { color: var(--acxpa-ds-slate); font-style: italic; }
div.esm section.esm-teamEx { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
div.esm p.esm-teamExAct { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin: 0; }
div.esm div.esm-stressNext, div.esm div.esm-stressNudge { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 26px; border-radius: var(--acxpa-ds-radius-lg); background: var(--acxpa-ds-gold-tint); border: 1px solid var(--acxpa-ds-gold); }
div.esm div.esm-stressNudge { margin-bottom: 18px; background: var(--acxpa-ds-white); border-color: var(--acxpa-ds-stone); }
div.esm div.esm-stressNudge.is-none { background: var(--acxpa-ds-warning-tint); border-color: var(--acxpa-ds-warning); }
div.esm section.esm-lastTest { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; align-items: center; margin: 0 0 32px; padding: 28px 32px; border-radius: var(--acxpa-ds-radius-xl); background: var(--acxpa-ds-white); border: 1px solid var(--acxpa-ds-stone); }
div.esm ul.esm-ltStats { display: flex; gap: 22px; }
div.esm ul.esm-ltStats li { font-size: 12px; color: var(--acxpa-ds-slate); max-width: 120px; }
div.esm ul.esm-ltStats strong { display: block; font-size: var(--acxpa-ds-text-h2); font-weight: 800; color: var(--acxpa-ds-teal-800); line-height: 1.1; }
div.esm ul.esm-ltStats small { font-size: var(--acxpa-ds-text-small); color: var(--acxpa-ds-slate); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  div.esm div.esm-heroGrid, div.esm li.esm-scen, div.esm div.esm-aiGrid { grid-template-columns: 1fr; }
  div.esm div.esm-scenOut { border-left: 0; border-top: 1px solid var(--acxpa-ds-stone); }
  div.esm section.esm-lastTest { grid-template-columns: 1fr; }
  div.esm div.esm-tiles { grid-template-columns: 1fr 1fr; }
  div.esm ol.esm-wsteps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  div.esm header.esm-hero, div.esm section.esm-how { padding: 28px 20px; }
  div.esm section.esm-appWrap { padding: 16px; }
  div.esm ol.esm-steps, div.esm div.esm-lvlGrid, div.esm ul.esm-trigs, div.esm div.esm-learnCols, div.esm div.esm-cxGrid { grid-template-columns: 1fr; }
  div.esm ol.esm-wsteps { grid-template-columns: 1fr 1fr; }
  div.esm aside.esm-band, div.esm div.esm-matrixHead, div.esm div.esm-setupHead, div.esm div.esm-card { grid-template-columns: 1fr; }
  div.esm li.esm-cat { grid-template-columns: minmax(0, 1fr) 36px 36px; }
  div.esm li.esm-cat select { grid-column: 1 / 2; grid-row: 2; }
  div.esm div.esm-wbody, div.esm section.esm-matrix { padding: 18px; }
  div.esm nav.esm-tabs { border-radius: var(--acxpa-ds-radius-lg); }
  div.esm li.esm-histItem { grid-template-columns: 1fr; }
  div.esm section.esm-share { grid-template-columns: 1fr; }
  div.esm section.esm-share, div.esm section.esm-gateBand { padding: 24px 20px; }
  div.esm div.esm-tiles { grid-template-columns: 1fr 1fr; }
  div.esm form.esm-adminPick { flex-wrap: wrap; }
  div.esm ul.esm-pRisks { grid-template-columns: 1fr; }
  div.esm ul.esm-health li { grid-template-columns: 1fr; gap: 8px; }
  div.esm div.esm-industry { width: auto; }
  div.esm section.esm-teamEx { grid-template-columns: 1fr; }
  div.esm div.esm-scHead, div.esm div.esm-aiHead, div.esm div.esm-stressNext, div.esm div.esm-stressNudge { grid-template-columns: 1fr; }
  div.esm p.esm-aiAct { text-align: left; }
  div.esm header.esm-polHead, div.esm section.esm-pSec, div.esm section.esm-aiRev { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) { div.esm * { transition: none !important; } }

/* --------------------------------------------------------------------------
   Print: only #esm-print
   -------------------------------------------------------------------------- */
.esm-printHost { display: none; }
@media print {
  body.esm-printing > *:not(#esm-print) { display: none !important; }
  body.esm-printing { margin: 0 !important; padding: 0 !important; background: none !important; }
  html:has(body.esm-printing) { margin-top: 0 !important; padding-top: 0 !important; }
  body.esm-printing #esm-print { display: block !important; font-family: var(--acxpa-ds-font); color: var(--acxpa-ds-ink); }
  /* The theme's customizer.css hides "body *" in print (it only shows #print-container).
     Put every element of our sheet back to its normal display, then restore our own. */
  body.esm-printing #esm-print * { display: revert !important; }
  body.esm-printing #esm-print .esm-sheetHead { display: flex !important; }
  body.esm-printing #esm-print span.esm-dot { display: inline-block !important; }
  body.esm-printing #esm-print table.esm-grid th small, body.esm-printing #esm-print p.esm-exLine span { display: block !important; }
  /* Bootstrap's print rules force "* { background: transparent; color: #000 }" with !important.
     Put the sheet's colours back so the matrix keeps its shading and dots. */
  body.esm-printing #esm-print h1, body.esm-printing #esm-print h2, body.esm-printing #esm-print h3, body.esm-printing #esm-print .esm-sheetHead p.esm-sheetBrand { color: var(--acxpa-ds-teal-800) !important; }
  body.esm-printing #esm-print .esm-sheetHead p, body.esm-printing #esm-print .esm-sheetFoot, body.esm-printing #esm-print p.esm-exCost, body.esm-printing #esm-print p.esm-exLine { color: var(--acxpa-ds-slate) !important; }
  body.esm-printing #esm-print table.esm-grid thead th, body.esm-printing #esm-print table.esm-exTable thead th { background: var(--acxpa-ds-harbour-deep) !important; color: var(--acxpa-ds-white) !important; }
  body.esm-printing #esm-print table.esm-grid thead th *, body.esm-printing #esm-print table.esm-exTable thead th * { color: var(--acxpa-ds-white) !important; }
  body.esm-printing #esm-print table.esm-grid thead th small { color: var(--acxpa-ds-text-muted-on-dark) !important; }
  body.esm-printing #esm-print table.esm-grid thead th.esm-gridCorner { color: var(--acxpa-ds-gold) !important; }
  body.esm-printing #esm-print table.esm-grid tr.esm-mhead th { background: var(--acxpa-ds-bg-subtle) !important; color: var(--acxpa-ds-teal-800) !important; }
  body.esm-printing #esm-print table.esm-grid td.is-ok, body.esm-printing #esm-print table.esm-grid td.is-min { background: var(--acxpa-ds-harbour-tint) !important; }
  body.esm-printing #esm-print table.esm-grid tr.esm-mrow--risk td.is-ok, body.esm-printing #esm-print table.esm-grid tr.esm-mrow--risk td.is-min { background: var(--acxpa-ds-clay-tint) !important; }
  body.esm-printing #esm-print table.esm-grid tr.esm-mrow--money td.is-ok, body.esm-printing #esm-print table.esm-grid tr.esm-mrow--money td.is-min { background: var(--acxpa-ds-gold-tint) !important; }
  body.esm-printing #esm-print span.esm-dot { background: var(--acxpa-ds-harbour-deep) !important; }
  body.esm-printing #esm-print tr.esm-mrow--risk span.esm-dot { background: var(--acxpa-ds-clay) !important; }
  body.esm-printing #esm-print tr.esm-mrow--money span.esm-dot { background: var(--acxpa-ds-gold-deep) !important; }
  .esm-sheet { font-size: 10.5pt; line-height: 1.35; }
  .esm-sheet h1 { font-size: 18pt; margin: 0 0 2pt; color: var(--acxpa-ds-teal-800); text-transform: none; letter-spacing: normal; }
  .esm-sheet h2 { font-size: 13pt; margin: 12pt 0 4pt; color: var(--acxpa-ds-teal-800); text-transform: none; letter-spacing: normal; }
  .esm-sheet h3 { font-size: 11pt; margin: 10pt 0 3pt; color: var(--acxpa-ds-teal-800); text-transform: none; letter-spacing: normal; }
  .esm-sheet ul { margin: 0; padding-left: 16pt; }
  .esm-sheetHead { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 6pt; margin-bottom: 8pt; border-bottom: 3pt solid var(--acxpa-ds-gold); }
  .esm-sheetHead p { margin: 0; color: var(--acxpa-ds-slate); font-size: 9.5pt; }
  .esm-sheetBrand { font-weight: 900; font-size: 14pt !important; color: var(--acxpa-ds-teal-800) !important; }
  .esm-sheetRule { margin: 0 0 8pt; font-size: 9.5pt; }
  .esm-sheetFoot { margin-top: 10pt; padding-top: 4pt; border-top: 1pt solid var(--acxpa-ds-stone); font-size: 8pt; color: var(--acxpa-ds-slate); }
  .esm-sheet table.esm-grid, .esm-sheet table.esm-levels { min-width: 0; font-size: 8.5pt; }
  .esm-sheet table.esm-grid th, .esm-sheet table.esm-grid td { padding: 3pt 5pt; }
  .esm-sheet table.esm-levels th, .esm-sheet table.esm-levels td { padding: 3pt 5pt; }
  .esm-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .esm-sheet--matrix { page: esm-landscape; }
  .esm-sheet--matrix table.esm-grid th, .esm-sheet--matrix table.esm-grid td { padding: 1.5pt 5pt; line-height: 1.15; }
  .esm-sheet--matrix table.esm-grid tbody th small { font-size: 7pt; }
  .esm-sheet--matrix span.esm-dot { width: 9pt; height: 9pt; }
  .esm-sheet--matrix table.esm-grid tr.esm-mhead th { padding: 2pt 5pt; font-size: 7pt; }
  .esm-sheet--matrix table.esm-grid thead th { padding: 3pt 5pt; }
  .esm-sheet--matrix .esm-sheetHead { padding-bottom: 4pt; margin-bottom: 5pt; }
  .esm-sheet--matrix .esm-sheetRule { margin-bottom: 5pt; font-size: 9pt; }
  .esm-sheet--matrix h2.esm-sheetLevels { break-before: page; page-break-before: always; margin-top: 0; }
  .esm-sheet--matrix tr { page-break-inside: avoid; }
  .esm-exHow { margin: 0 0 10pt; padding: 8pt 10pt; border: 1pt solid var(--acxpa-ds-stone); border-left: 4pt solid var(--acxpa-ds-gold); }
  .esm-exHow h2 { margin-top: 0; }
  .esm-exHow ol { margin: 0; padding-left: 16pt; }
  .esm-exHow li { margin: 0 0 2pt; }
  ol.esm-exList { margin: 0; padding-left: 18pt; }
  ol.esm-exList > li { break-inside: avoid; page-break-inside: avoid; margin: 0 0 12pt; padding-bottom: 6pt; border-bottom: 1pt solid var(--acxpa-ds-stone); }
  ol.esm-exList h3 { margin-top: 0; }
  ol.esm-exList p { margin: 0 0 3pt; }
  p.esm-exCost { font-size: 9pt; color: var(--acxpa-ds-slate); }
  p.esm-exLine { margin: 6pt 0 0 !important; padding-top: 16pt; border-bottom: 1pt solid var(--acxpa-ds-slate); font-size: 8.5pt; color: var(--acxpa-ds-slate); }
  p.esm-exLine span { display: block; margin-top: -16pt; }
  h2.esm-exAns { break-before: page; page-break-before: always; margin-top: 0 !important; }
  table.esm-exTable { width: 100%; border-collapse: collapse; font-size: 8.5pt; }
  table.esm-exTable th, table.esm-exTable td { padding: 4pt 5pt; border: 1pt solid var(--acxpa-ds-stone); text-align: left; vertical-align: top; }
  table.esm-exTable thead th { background: var(--acxpa-ds-harbour-deep); color: var(--acxpa-ds-white); }
  table.esm-exTable tr { break-inside: avoid; page-break-inside: avoid; }
}
@page { margin: 12mm !important; }
@page esm-landscape { size: A4 landscape; margin: 8mm 10mm !important; }

/* 2.1.2 (12 Oct 2026): light heading on the navy AI-review band (was teal on navy); "Show me how" in the owner toolbar. */
div.esm h2.esm-h2.esm-h2--light { color: var(--acxpa-ds-white) !important; }
div.esm nav.esm-bar button.esm-howBtn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1.5px solid var(--acxpa-ds-gold); border-radius: var(--acxpa-ds-radius-pill); background: transparent; color: var(--acxpa-ds-gold); font: inherit; font-size: var(--acxpa-ds-text-small); font-weight: 700; cursor: pointer; }
div.esm nav.esm-bar button.esm-howBtn:hover, div.esm nav.esm-bar button.esm-howBtn:focus-visible { background: var(--acxpa-ds-gold); color: var(--acxpa-ds-ink); }
div.esm nav.esm-bar button.esm-howBtn[hidden] { display: none; }
@media print { div.esm nav.esm-bar button.esm-howBtn { display: none !important; } }
