/* Hero previews only. Original component CSS owns layout and content;
   these rules supply readable type and the shared brand palette. */
body.internal-theme .site-preview {
  --preview-ink: #071d35;
  --preview-muted: #526578;
  --preview-line: #c3ced7;
  --ink: #071d35;
  --ink-deep: #001629;
  --ink-soft: #526578;
  --white: #fff;
  --paper: #f5f7f9;
  --paper-blue: #e6eff6;
  --paper-green: #e5f3e8;
  --blue: #2278cb;
  --blue-deep: #001629;
  --sky: #73ccf4;
  --green: #89d593;
  --line: #c3ced7;
  container: site-preview / inline-size;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  border-radius: 8px;
  box-shadow: none;
  transform: none;
  font: 400 12px/1.5 Manrope, Arial, sans-serif;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

body.internal-theme .site-preview[data-surface="light"] {
  background: #f5f7f9;
  color: #071d35;
  border-color: #c3ced7;
}

body.internal-theme .site-preview[data-surface="dark"] {
  --preview-ink: #f5f7f9;
  --preview-muted: #b8c5d1;
  --preview-line: #425465;
  background: #0a2439;
  color: #f5f7f9;
  border-color: #425465;
}

/* A font floor replaces fixed 6-10px labels without scaling the preview. */
body.internal-theme .site-preview :is(span, small, p, a, li, dt, dd, label, time, i, button) {
  font-size: 12px !important;
  line-height: 1.5;
  letter-spacing: 0;
}

body.internal-theme .site-preview :is(strong, b) {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
}

body.internal-theme .site-preview :is(h2, h3) {
  font: 500 22px/1.25 Manrope, Arial, sans-serif !important;
  color: var(--preview-ink) !important;
  letter-spacing: 0 !important;
}

body.internal-theme .site-preview :is(header, footer) {
  gap: 12px;
  flex-wrap: wrap;
  border-color: var(--preview-line);
}

body.internal-theme .site-preview :is(article, li, header > *, footer > *) {
  min-width: 0;
}

body.internal-theme .site-preview :is(a, button):focus-visible {
  outline: 2px solid #2278cb;
  outline-offset: 3px;
}

body.internal-theme .site-preview[data-surface="dark"] :is(a, button):focus-visible {
  outline-color: #73ccf4;
}

/* Light consoles: keep their dark title bars and dark action surfaces. */
body.internal-theme .site-preview :is(.bc-console-bar, .me-board-top, .hr-console-top, .stack-users, .elk-next-step, .learning-track) {
  --preview-ink: #f5f7f9;
  background: #001629;
  color: #f5f7f9;
}

body.internal-theme .site-preview :is(.bc-console-bar, .me-board-top, .hr-console-top) {
  padding-block: 14px;
}

body.internal-theme .site-preview :is(.bc-console-bar, .me-board-top, .hr-console-top, .stack-users, .elk-next-step, .learning-track) strong {
  color: #f5f7f9;
}

body.internal-theme .site-preview :is(.bc-console-bar, .me-board-top, .hr-console-top, .stack-users, .elk-next-step, .learning-track) small {
  color: #b8c5d1;
}

body.internal-theme .site-preview :is(.stack-users > span, .elk-next-step > span, .learning-track > span) {
  color: #73ccf4;
}

body.internal-theme .site-preview :is(.stack-platforms > div, .bc-project-card, .sso-platform-row > span, .service-brief-grid article, .learning-competencies article) {
  background: #f5f7f9;
  color: #071d35;
  border-color: #c3ced7;
  border-radius: 8px;
  box-shadow: none;
}

body.internal-theme .site-preview :is(.stack-base, .bc-console-nav, .me-board-body aside, .hr-next-action, .elk-mini-grid article, .sso-context-select > div, .service-brief-foot) {
  background: #e6eff6;
  color: #071d35;
  border-color: #c3ced7;
}

body.internal-theme .site-preview :is(.stack-foundation > div, .learning-next, .learning-dashboard-head > i, .service-brief-head > i) {
  background: #e5f3e8;
  color: #071d35;
  border-color: #b6d4be;
}

body.internal-theme .site-preview :is(.stack-platforms span, .stack-foundation span, .stack-base span, .learning-next span, .learning-next b, .learning-person > b) {
  color: #001629;
}

body.internal-theme .site-preview :is(.stack-platforms small, .stack-foundation small, .bc-console-nav span, .bc-console-head small, .bc-project-card > small, .me-board-body aside span, .me-board-date > span, .me-board-date > small, .me-board-schedule small, .me-board-footer small, .hr-person small, .hr-competence-title small, .radar-label, .hr-gap-row span, .elk-greeting span, .elk-mini-grid small, .elk-dashboard-list small, .sso-card-head small, .sso-identity small, .sso-context-select > span, .sso-context-select small, .sso-platform-row small, .learning-person small, .learning-next small, .learning-competencies span, .service-brief-title small, .service-brief-grid span, .service-brief-path small) {
  color: #526578;
}

body.internal-theme .site-preview :is(.bc-console-head > span, .bc-console-footer span, .me-board-tags span, .hr-person > b, .sso-identity > b) {
  background: #e5f3e8;
  color: #071d35;
}

body.internal-theme .site-preview :is(.bc-console-nav .is-active, .me-board-body aside .is-active) {
  background: #f5f7f9;
  color: #001629;
}

body.internal-theme .site-preview :is(.hr-person > div, .elk-dashboard-top > div, .sso-identity > div, .learning-person > div) {
  background: #2278cb;
  color: #f5f7f9;
  font-size: 12px;
}

body.internal-theme .site-preview :is(.elk-dashboard-top > i, .elk-dashboard-list .is-hr, .bc-track-line > span.is-done, .service-brief-path .is-done b) {
  background: #89d593;
  border-color: #89d593;
  color: #001629;
}

body.internal-theme .site-preview :is(.bc-project-card > div i, .learning-track > div i.is-done) {
  background: #89d593;
}

body.internal-theme .site-preview .radar-shape {
  background: rgba(34, 120, 203, .55);
}

body.internal-theme .site-preview .hr-gap-row .is-gap { background: #001629; }
body.internal-theme .site-preview .hr-gap-row { flex-wrap: wrap; }
body.internal-theme .site-preview .hr-radar { max-width: 100%; }
body.internal-theme .site-preview .me-board-schedule > div { grid-template-columns: 48px minmax(0, 1fr); }
body.internal-theme .site-preview :is(.me-board-footer, .bc-console-head, .hr-competence-title) { flex-wrap: wrap; gap: 12px; }
body.internal-theme .site-preview .bc-console-footer { margin-top: 24px; }
body.internal-theme .site-preview .bc-track-line { margin-bottom: 50px; }
body.internal-theme .site-preview .bc-track-line small { background: #f5f7f9; }
body.internal-theme .site-preview .bc-console-body { grid-template-columns: 128px minmax(0, 1fr); }
body.internal-theme .site-preview .me-board-body { grid-template-columns: 138px minmax(0, 1fr); }
body.internal-theme .site-preview.cases-dossier { transform: none; }
body.internal-theme .site-preview.sso-access-card > button { background: #001629; color: #f5f7f9; }
body.internal-theme .site-preview.sso-access-card > p { color: #526578; }

/* Cases dossier. */
body.internal-theme .site-preview.cases-dossier > :is(header, footer) {
  background: #e6eff6;
  color: #071d35;
}
body.internal-theme .site-preview .cases-dossier-title > i { background: #2278cb; color: #f5f7f9; flex-shrink: 0; }
body.internal-theme .site-preview.cases-dossier :is(.cases-dossier-title small, li small) { color: #526578; }
body.internal-theme .site-preview.cases-dossier li > span { color: #001629; }
body.internal-theme .site-preview.cases-dossier li > b { background: #89d593; color: #001629; }
body.internal-theme .site-preview.cases-dossier footer i { background: #89d593; }

/* Dark preview headers and metadata, listed explicitly to spare light insets. */
body.internal-theme .site-preview:is(.adaptation-console, .diy-cockpit, .events-control, .glossary-index-card, .legal-register, .mc-blueprint, .ms-console, .mt-workbench, .news-desk, .partner-registry, .accel-console, .solution-lab, .sys-control, .council-desk) > header > span,
body.internal-theme .site-preview :is(.techno-machine-head > span, .tprl-profile-head > span, .ti-console-head > span, .lib-shelf-back > span, .mi-ui-frame > header strong) {
  color: #73ccf4;
}

body.internal-theme .site-preview:is(.adaptation-console, .diy-cockpit, .events-control, .glossary-index-card, .legal-register, .mc-blueprint, .ms-console, .mt-workbench, .news-desk, .partner-registry, .accel-console, .solution-lab, .sys-control, .council-desk) > header > small,
body.internal-theme .site-preview :is(.event-monitor-head small, .techno-machine-head small, .tprl-profile-head small, .ti-console-head small, .lib-shelf-back small, .mi-ui-frame > header small) {
  color: #b8c5d1;
  background: transparent;
}

body.internal-theme .site-preview:is(.events-control, .glossary-index-card, .mc-blueprint, .ms-console, .mt-workbench, .partner-registry, .accel-console, .solution-lab, .sys-control) > header i,
body.internal-theme .site-preview :is(.event-monitor-head i:first-child, .event-monitor-status span i) {
  background: #89d593;
  box-shadow: none;
}

body.internal-theme .site-preview .event-monitor-head { background: #001629; padding-block: 14px; }
body.internal-theme .site-preview :is(.event-monitor-status span, .event-stream time, .event-stream small, .event-monitor-foot span) { color: #b8c5d1; }
body.internal-theme .site-preview :is(.event-monitor-status b, .event-monitor-head i:last-child) { color: #73ccf4; }
body.internal-theme .site-preview .event-stream :is(.is-hr, .is-sso) { background: #89d593; color: #001629; }
body.internal-theme .site-preview .event-stream article > b { color: #89d593; background: #001629; }
body.internal-theme .site-preview .event-stream article { grid-template-columns: 88px 33px minmax(0, 1fr) auto; }
body.internal-theme .site-preview .event-stream time { white-space: nowrap; }
body.internal-theme .site-preview .event-stream article > div { min-width: 0; }
body.internal-theme .site-preview .event-stream article div strong { font-size: 12px; white-space: normal; overflow-wrap: anywhere; }

body.internal-theme .site-preview .adaptation-console-person > div { background: #2278cb; font-size: 12px; }
body.internal-theme .site-preview .adaptation-console-person > b { background: #001629; color: #89d593; }

body.internal-theme .site-preview :is(.adaptation-console-person small, .adaptation-console-score span, .adaptation-console-score > small, .adaptation-console-grid span, .adaptation-console-grid small, .diy-cockpit-main small, .diy-cockpit-grid span, .diy-cockpit-grid small, .legacy-card-copy small, .legacy-card-copy p, .legacy-card-years small, .techno-layer small, .tprl-profile-score span, .tprl-bars span, .ti-console-axis small, .events-control-date span, .events-control-date small, .events-control-route small, .glossary-index-title span, .glossary-index-title small, .glossary-index-metrics span, .legal-register-row small, .legal-register > footer span, .lib-shelf-index span, .mc-blueprint-object span, .mc-blueprint-layers span, .mc-blueprint-common span, .ms-console-object span, .ms-console-object small, .ms-console-stack span, .mt-workbench-fields span, .mt-workbench-route span, .news-desk > footer span, .partner-registry-profile span, .partner-registry-profile p, .partner-registry-score span, .partner-registry-grid span, .accel-console-title span, .accel-console-title small, .accel-console-meter span, .accel-console-artifacts span, .solution-lab-title span, .solution-lab-title small, .solution-lab-formula span, .solution-lab-score span, .sys-control-profile span, .sys-control-profile small, .sys-control-status span, .sys-control-nodes span, .council-desk-question span, .council-desk-grid span, .council-desk-grid small, .council-desk-path > span) {
  color: #b8c5d1;
}

body.internal-theme .site-preview :is(.adaptation-console-score strong, .adaptation-console-grid strong, .diy-cockpit-grid strong, .legacy-monogram span, .legacy-card-years strong, .tprl-profile-score small, .ti-console-axis > i, .ti-console-axis span, .ti-console-link > span, .glossary-index-metrics strong, .glossary-index-chain b, .legal-register-row > span, .legal-register-row i, .mc-blueprint-object small, .mc-blueprint-layers b, .mc-blueprint-common strong, .ms-console-stack strong, .mt-workbench-route strong, .news-desk-feature i, .news-desk > footer strong, .news-desk > footer b, .partner-registry-score strong, .accel-console-meter strong, .solution-lab-formula > b, .solution-lab-score strong, .sys-control-status strong, .council-desk-grid strong) {
  color: #89d593;
}

body.internal-theme .site-preview :is(.adaptation-console-task, .diy-cockpit-next, .techno-machine-output, .tprl-profile-output, .ti-console-output, .events-control-card, .news-desk-feature, .accel-console-next, .solution-lab-next, .sys-control-next, .council-desk-output) {
  background: #001629;
  color: #f5f7f9;
  border-radius: 8px;
  border: 1px solid #425465;
}

body.internal-theme .site-preview :is(.adaptation-console-task, .diy-cockpit-next, .techno-machine-output, .tprl-profile-output, .ti-console-output, .events-control-card, .accel-console-next, .solution-lab-next, .sys-control-next, .council-desk-output) > span {
  color: #73ccf4;
}

body.internal-theme .site-preview :is(.adaptation-console-task, .diy-cockpit-next, .techno-machine-output, .tprl-profile-output, .ti-console-output, .events-control-card, .accel-console-next, .solution-lab-next, .sys-control-next, .council-desk-output) small,
body.internal-theme .site-preview :is(.news-desk-feature > span, .ti-console-link strong) {
  color: #b8c5d1;
}

body.internal-theme .site-preview :is(.events-control-card, .accel-console-next, .solution-lab-next, .sys-control-next) a {
  color: #89d593;
}

body.internal-theme .site-preview :is(.adaptation-console-score > i b, .diy-cockpit-progress span, .partner-registry-score b, .accel-console-meter b, .solution-lab-score b, .sys-control-status b) {
  background: #89d593;
}

body.internal-theme .site-preview .tprl-bars i::after { background: #73ccf4; }
body.internal-theme .site-preview .tprl-bars .is-gap i::after { background: #89d593; }
body.internal-theme .site-preview .tprl-bars .is-gap :is(span, strong) { color: #89d593; }
body.internal-theme .site-preview .diy-cockpit-next i { background: #89d593; }
body.internal-theme .site-preview .legacy-monogram span { background: #001629; border-color: #425465; font-size: 48px !important; }
body.internal-theme .site-preview .legacy-card-years { border-color: #425465; }
body.internal-theme .site-preview .legacy-card-years i { background: #425465; }
body.internal-theme .site-preview .techno-layer.is-hard { color: #f5f7f9; }
body.internal-theme .site-preview .techno-layer.is-soft { color: #73ccf4; }
body.internal-theme .site-preview .techno-layer.is-techno { background: #001629; border-color: #89d593; color: #89d593; }
body.internal-theme .site-preview .techno-layer > span { color: #b8c5d1; }
body.internal-theme .site-preview .events-control-route > span { background: #001629; color: #73ccf4; }
body.internal-theme .site-preview .events-control-route b { background: #425465; }
body.internal-theme .site-preview .legal-register-row { background: #001629; grid-template-columns: 64px minmax(0, 1fr) auto; }
body.internal-theme .site-preview .legal-register-row > span { font-size: 20px !important; }
body.internal-theme .site-preview .legal-register-row > span { white-space: nowrap; }
body.internal-theme .site-preview .legal-register > footer b { background: #89d593; box-shadow: none; }
body.internal-theme .site-preview .news-desk-row > span { background: #001629; color: #b8c5d1; }
body.internal-theme .site-preview .news-desk-row i { background: #89d593; }

body.internal-theme .site-preview :is(.partner-registry-score > i, .accel-console-meter > i, .solution-lab-score > i, .sys-control-status > i) { background: #425465; }

body.internal-theme .site-preview :is(.cases-dossier-title > i, .hr-person > div, .elk-dashboard-top > div, .sso-identity > div, .learning-person > div, .adaptation-console-person > div, .mi-ui-body > aside b, .mt-workbench-card > b, .lib-book-b) { color: #fff; }

/* Lifecycle indicators retain their original stages and status semantics. */
body.internal-theme .site-preview:is(.mc-blueprint, .ms-console, .mt-workbench, .partner-registry, .accel-console, .solution-lab, .sys-control) li,
body.internal-theme .site-preview .council-desk-path li { color: #b8c5d1; }

body.internal-theme .site-preview:is(.mc-blueprint, .ms-console, .mt-workbench, .partner-registry, .accel-console, .solution-lab, .sys-control) .is-done,
body.internal-theme .site-preview .council-desk-path .is-done { color: #73ccf4; }

body.internal-theme .site-preview:is(.mc-blueprint, .ms-console, .mt-workbench, .partner-registry, .accel-console, .solution-lab, .sys-control) .is-active,
body.internal-theme .site-preview .council-desk-path .is-active { color: #89d593; }

body.internal-theme .site-preview:is(.mc-blueprint, .ms-console, .mt-workbench, .solution-lab, .sys-control) li::before,
body.internal-theme .site-preview .council-desk-path li::before { background: #425465; border-color: #0a2439; }

body.internal-theme .site-preview:is(.mc-blueprint, .ms-console, .mt-workbench, .solution-lab, .sys-control) .is-done::before,
body.internal-theme .site-preview .council-desk-path .is-done::before { background: #73ccf4; }

body.internal-theme .site-preview:is(.mc-blueprint, .ms-console, .mt-workbench, .solution-lab, .sys-control) .is-active::before,
body.internal-theme .site-preview .council-desk-path .is-active::before { background: #89d593; box-shadow: none; }

body.internal-theme .site-preview:is(.partner-registry, .accel-console) li span { border-color: #425465; }
body.internal-theme .site-preview:is(.partner-registry, .accel-console) .is-done span { background: #73ccf4; border-color: #73ccf4; color: #001629; }
body.internal-theme .site-preview:is(.partner-registry, .accel-console) .is-active span { border-color: #89d593; }
body.internal-theme .site-preview .council-desk-path li::after { background: #425465; }
body.internal-theme .site-preview .sys-control-nodes .is-active { border-color: #73ccf4; }

body.internal-theme .site-preview:is(.glossary-index-card, .ms-console, .partner-registry) > a {
  background: #89d593;
  color: #001629;
  border-radius: 4px;
  min-height: 44px;
}

/* Library book spines keep their distinct colors and vertical labels. */
body.internal-theme .site-preview.lib-shelf { aspect-ratio: auto; min-height: 420px; }
body.internal-theme .site-preview.lib-shelf::after { background: none; }
body.internal-theme .site-preview .lib-books { height: 290px; padding-inline: 8px; border-color: #425465; }
body.internal-theme .site-preview .lib-book-a { background: #89d593; color: #001629; }
body.internal-theme .site-preview .lib-book-b { background: #2278cb; color: #f5f7f9; }
body.internal-theme .site-preview .lib-book-c { background: #73ccf4; color: #001629; }
body.internal-theme .site-preview .lib-book-d { background: #f5f7f9; color: #001629; }
body.internal-theme .site-preview .lib-book-e { background: #0a2439; color: #f5f7f9; border: 1px solid #73ccf4; }
body.internal-theme .site-preview .lib-books i span { writing-mode: vertical-rl; transform: none; top: 12px; max-height: calc(100% - 24px); white-space: normal; }

/* Dark frame, light workspace, dark banner: do not flatten these surfaces. */
body.internal-theme .site-preview .mi-ui-body,
body.internal-theme .site-preview .mt-workbench-card {
  --preview-ink: #071d35;
  --ink-soft: #526578;
  background: #f5f7f9;
  color: #071d35;
}

body.internal-theme .site-preview .mi-ui-body > main { background: #f5f7f9; color: #071d35; min-width: 0; }
body.internal-theme .site-preview .mi-ui-body > aside { background: #001629; }
body.internal-theme .site-preview .mi-ui-body > aside b { background: #2278cb; color: #fff; }
body.internal-theme .site-preview .mi-ui-body > aside .is-active { background: #73ccf4; }
body.internal-theme .site-preview.mi-ui-frame > header i:first-child { background: #89d593; }
body.internal-theme .site-preview.mi-ui-frame > footer span { color: #b8c5d1; }
body.internal-theme .site-preview.mi-ui-frame > footer strong { color: #89d593; }
body.internal-theme .site-preview .mi-ui-banner { background: #001629; color: #f5f7f9; }
body.internal-theme .site-preview .mi-ui-banner :is(small, p) { color: #b8c5d1; }
body.internal-theme .site-preview .mi-ui-banner strong { color: #f5f7f9; }
body.internal-theme .site-preview .mi-ui-cards article { background: #e6eff6; color: #071d35; }
body.internal-theme .site-preview .mi-ui-cards span { color: #526578; }
body.internal-theme .site-preview .mi-ui-list { background: #e6eff6; }
body.internal-theme .site-preview .mi-ui-list span { background: #c3ced7; }
body.internal-theme .site-preview .mt-workbench-card span { color: #001629; }
body.internal-theme .site-preview .mt-workbench-card small { color: #526578; }
body.internal-theme .site-preview .mt-workbench-card > b { background: #2278cb; color: #f5f7f9; }

/* Digital-service definition has no simulated window; retain its inline flow. */
body.internal-theme .site-preview.ds-definition { padding: 28px 24px; border-radius: 0; }
body.internal-theme .site-preview.ds-definition > span { color: #001629 !important; }
body.internal-theme .site-preview.ds-definition strong { color: #071d35 !important; font-size: 22px; }
body.internal-theme .site-preview.ds-definition i { color: #001629 !important; }
body.internal-theme .site-preview.ds-definition p { color: #526578 !important; }

/* Main values and UI headings form the second level above 12px metadata. */
body.internal-theme .site-preview :is(.cases-dossier-title strong, .stack-users strong, .bc-console-head strong, .elk-greeting strong, .service-brief-title strong, .diy-cockpit-main strong, .legacy-card-copy > strong, .techno-layer strong, .techno-machine-output strong, .ti-console-axis strong, .ti-console-output strong, .events-control-date strong, .glossary-index-title strong, .mc-blueprint-object strong, .ms-console-object strong, .mt-workbench-card strong, .news-desk-feature strong, .partner-registry-profile strong, .accel-console-title strong, .solution-lab-title strong, .sys-control-profile strong, .council-desk-question strong, .mi-ui-banner strong) {
  font-family: Manrope, Arial, sans-serif;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0;
}

body.internal-theme .site-preview :is(.me-board-date > strong, .adaptation-console-score strong, .adaptation-console-grid strong, .diy-cockpit-grid strong, .legacy-card-years strong, .tprl-profile-score strong, .glossary-index-metrics strong, .news-desk > footer strong, .council-desk-grid strong, .mi-ui-cards strong) { font-size: 24px; }

/* Respond to available preview width, including half-width desktop columns. */
@container site-preview (max-width: 520px) {
  body.internal-theme .site-preview :is(.bc-console-body, .me-board-body) { grid-template-columns: minmax(0, 1fr); }
  body.internal-theme .site-preview :is(.bc-console-nav, .me-board-body aside) { flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 10px; border-right: 0; border-bottom: 1px solid #c3ced7; }
  body.internal-theme .site-preview :is(.bc-console-nav span, .me-board-body aside span) { padding: 6px 8px; }
  body.internal-theme .site-preview :is(.stack-platforms, .sso-platform-row, .learning-competencies, .adaptation-console-grid, .diy-cockpit-grid, .glossary-index-metrics, .ms-console-stack, .partner-registry-grid, .accel-console-artifacts, .council-desk-grid, .news-desk-row) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.internal-theme .site-preview :is(.sys-control-nodes, .mi-ui-cards) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.internal-theme .site-preview :is(.mc-blueprint-layers, .mt-workbench-fields) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.internal-theme .site-preview .event-stream article { grid-template-columns: 33px minmax(0, 1fr) auto; }
  body.internal-theme .site-preview .event-stream time { grid-column: 1 / -1; }
  body.internal-theme .site-preview .event-stream article > i { grid-column: 1; }
  body.internal-theme .site-preview :is(.events-control-route, .glossary-index-chain) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
  body.internal-theme .site-preview .events-control-route > span { flex: 1 1 80px; }
  body.internal-theme .site-preview .events-control-route > b { width: 12px; }
  body.internal-theme .site-preview:is(.accel-console, .solution-lab, .sys-control) > ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  body.internal-theme .site-preview .council-desk-path ol { flex-wrap: wrap; gap: 18px 0; }
  body.internal-theme .site-preview .council-desk-path li { width: 33.333%; }
  body.internal-theme .site-preview .council-desk-path li:nth-child(3)::after { display: none; }
  body.internal-theme .site-preview .techno-layer { grid-template-columns: 35px minmax(0, 1fr); }
  body.internal-theme .site-preview .techno-layer > i { grid-column: 2; justify-self: start; }
}

@container site-preview (max-width: 360px) {
  body.internal-theme .site-preview :is(.bc-console-main, .me-board-main, .hr-console-body) { padding: 16px; }
  body.internal-theme .site-preview :is(.bc-console-bar, .me-board-top, .hr-console-top, .event-monitor-head) { grid-template-columns: auto minmax(0, 1fr); }
  body.internal-theme .site-preview :is(.bc-console-bar, .me-board-top, .hr-console-top, .event-monitor-head) > small { grid-column: 2; }
  body.internal-theme .site-preview .event-stream article { grid-template-columns: 33px minmax(0, 1fr); }
  body.internal-theme .site-preview .event-stream article > b { grid-column: 2; justify-self: start; }
  body.internal-theme .site-preview :is(.stack-platforms, .stack-foundation, .sso-platform-row, .learning-competencies, .elk-mini-grid, .service-brief-grid, .adaptation-console-grid, .diy-cockpit-grid, .tprl-profile-score, .glossary-index-metrics, .mc-blueprint-layers, .ms-console-stack, .mt-workbench-fields, .partner-registry-grid, .accel-console-artifacts, .council-desk-grid, .news-desk-row, .mi-ui-cards) { grid-template-columns: minmax(0, 1fr); }
  body.internal-theme .site-preview :is(.ti-console-axis, .solution-lab-formula) { grid-template-columns: minmax(0, 1fr); }
  body.internal-theme .site-preview :is(.ti-console-axis > i, .solution-lab-formula > b) { justify-self: center; }
  body.internal-theme .site-preview :is(.hr-person, .adaptation-console-person) { grid-template-columns: 42px minmax(0, 1fr); }
  body.internal-theme .site-preview :is(.hr-person > b, .adaptation-console-person > b) { grid-column: 2; justify-self: start; }
  body.internal-theme .site-preview .hr-next-action { grid-template-columns: minmax(0, 1fr); }
  body.internal-theme .site-preview .hr-next-action b { grid-column: 1; grid-row: auto; }
  body.internal-theme .site-preview .elk-dashboard-list > span { grid-template-columns: 31px minmax(0, 1fr); }
  body.internal-theme .site-preview .elk-dashboard-list > span > small:last-child { grid-column: 2; grid-row: auto; }
  body.internal-theme .site-preview .legal-register-row { grid-template-columns: 68px minmax(0, 1fr); }
  body.internal-theme .site-preview .legal-register-row > i { grid-column: 2; justify-self: start; }
  body.internal-theme .site-preview .mi-ui-body { grid-template-columns: 38px minmax(0, 1fr); }
  body.internal-theme .site-preview .mi-ui-body > main { padding: 10px; }
  body.internal-theme .site-preview .mi-ui-banner { padding: 14px; }
  body.internal-theme .site-preview .mi-ui-body > aside b { width: 28px; font-size: 12px; white-space: nowrap; }
  body.internal-theme .site-preview .bc-track-line small { width: 80px; max-width: none; white-space: normal; text-align: center; }
  body.internal-theme .site-preview :is(.diy-cockpit-next > div, .adaptation-console-task > div, .mc-blueprint-common) { flex-wrap: wrap; gap: 10px; }
  body.internal-theme .site-preview :is(.diy-cockpit-next small + small, .adaptation-console-task small + small) { margin-left: 0; }
  body.internal-theme .site-preview:is(.mc-blueprint, .ms-console, .mt-workbench, .partner-registry) > ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
}

@container site-preview (max-width: 280px) {
  body.internal-theme .site-preview .bc-track-line { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; margin-top: 24px; }
  body.internal-theme .site-preview .bc-track-line > i { display: none; }
  body.internal-theme .site-preview .bc-track-line > span { justify-self: center; }
  body.internal-theme .site-preview .bc-track-line small { width: 100px; }
}

/* Keep complete stage names readable instead of squeezing four/five columns. */
@container site-preview (max-width: 520px) {
  body.internal-theme .site-preview:is(.ms-console, .mt-workbench, .partner-registry, .sys-control) > ol {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px 10px;
  }
  body.internal-theme .site-preview:is(.ms-console, .mt-workbench, .partner-registry, .sys-control) > ol > li {
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }
}
