:root {
  --bg: #f4f6f3;
  --surface: #fffdfa;
  --surface-2: #eef2ef;
  --ink: #17211e;
  --muted: #69746f;
  --line: rgba(23, 33, 30, .12);
  --green: #1f6b4f;
  --blue: #315f8f;
  --amber: #a66d18;
  --red: #a23b35;
  --rail: #16231f;
  --shadow: 0 18px 44px rgba(24, 34, 30, .08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(22, 35, 31, .92), rgba(31, 107, 79, .72)),
    var(--bg);
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

select {
  color: inherit;
}

a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.member-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.login-shell {
  width: min(1080px, 100%);
  min-height: min(720px, calc(100dvh - 48px));
  display: grid;
  grid-template-columns: minmax(360px, 440px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.login-panel {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand strong {
  font-size: 18px;
}

.login-brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.login-heading h1 {
  margin-bottom: 10px;
}

.login-heading p:last-child {
  margin-bottom: 0;
  max-width: 34rem;
}

.login-form {
  padding: 0;
}

.language-picker {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.language-picker span,
.language-picker strong {
  display: block;
}

.language-picker span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.language-picker strong {
  margin-top: 4px;
  font-size: 14px;
}

.language-options {
  display: flex;
  gap: 6px;
}

.language-options button {
  width: 46px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #35413d;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.language-options button:hover,
.language-options button.active {
  border-color: rgba(31, 107, 79, .38);
  background: var(--green);
  color: #fff;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.login-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #35413d;
  font-weight: 750;
}

.login-options input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.primary-action {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(31, 107, 79, .28);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.primary-action:hover {
  background: #185840;
}

.login-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.login-footer span {
  font-weight: 800;
}

.login-assurance {
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  background:
    linear-gradient(145deg, rgba(22, 35, 31, .96), rgba(32, 58, 82, .94)),
    var(--rail);
  color: #f5f7f2;
}

.bot-card {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 20px;
  align-items: end;
}

.bot-card img {
  width: min(220px, 100%);
  max-height: 270px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .3));
}

.bot-message {
  position: relative;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
}

.bot-message::before {
  content: "";
  position: absolute;
  left: -9px;
  bottom: 24px;
  width: 16px;
  height: 16px;
  border-left: 1px solid rgba(255, 255, 255, .18);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .1);
  transform: rotate(45deg);
}

.bot-message span,
.bot-message strong {
  display: block;
}

.bot-message span {
  color: #e0b75f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bot-message strong {
  margin-top: 7px;
  font-size: 20px;
  line-height: 1.15;
}

.bot-message p {
  margin: 8px 0 0;
  color: rgba(245, 247, 242, .74);
  font-size: 13px;
}

.login-assurance .eyebrow {
  color: #e0b75f;
}

.login-assurance h2 {
  margin-bottom: 12px;
  max-width: 460px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.login-assurance p {
  color: rgba(245, 247, 242, .72);
}

.standards-board {
  padding: 20px;
  border: 1px solid rgba(224, 183, 95, .34);
  border-radius: 8px;
  background: rgba(9, 18, 23, .34);
}

.standards-board-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 220px);
  gap: 20px;
  align-items: start;
}

.standards-board .eyebrow {
  margin: 0 0 7px;
}

.standards-board h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.standards-stage {
  padding-left: 14px;
  border-left: 3px solid #e0b75f;
}

.standards-stage span,
.standards-stage strong {
  display: block;
}

.standards-stage span {
  color: rgba(245, 247, 242, .62);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.standards-stage strong {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
}

.standards-board > p {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.standards-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.standards-list span {
  padding: 10px 8px;
  color: #f5f7f2;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.standards-list span + span {
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.standards-board .standards-certification {
  color: rgba(245, 247, 242, .78);
}

.standards-board .standards-boundary {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #e0b75f;
  font-weight: 800;
}

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.assurance-grid article {
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.assurance-grid span,
.assurance-grid strong {
  display: block;
}

.assurance-grid span {
  color: #e0b75f;
  font-size: 12px;
  font-weight: 850;
}

.assurance-grid strong {
  margin: 12px 0 7px;
  font-size: 15px;
}

.assurance-grid p {
  margin-bottom: 0;
  font-size: 13px;
}

.rail {
  min-height: 100dvh;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--rail);
  color: #f5f7f2;
}

.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.logo-lockup {
  width: 46px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.logo-lockup img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.staff-entry-link {
  color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.staff-entry-link:hover,
.staff-entry-link:focus-visible {
  border-color: rgba(31, 107, 79, .48);
  box-shadow: 0 10px 26px rgba(31, 107, 79, .2);
  outline: 0;
  text-decoration: none;
  transform: translateY(-1px);
}

body.staff-login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #e8edee;
}

.staff-shell {
  width: min(1120px, 100%);
  min-height: min(720px, calc(100dvh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, .9fr);
  overflow: hidden;
  border: 1px solid rgba(23, 33, 30, .12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(24, 38, 47, .18);
}

.staff-intro {
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.staff-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.staff-brand > div strong,
.staff-brand > div span {
  display: block;
}

.staff-brand > div strong {
  font-size: 18px;
}

.staff-brand > div span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.staff-intro-copy {
  max-width: 620px;
}

.staff-intro-copy h1 {
  max-width: 560px;
}

.staff-intro-copy > p:last-of-type {
  max-width: 570px;
  margin: 14px 0 0;
  font-size: 16px;
}

.staff-message-board {
  max-width: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  overflow: hidden;
}

.staff-message-board-header {
  padding: 17px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.staff-message-board-header .eyebrow {
  margin-bottom: 5px;
}

.staff-message-board-header h2 {
  margin: 0;
  font-size: 19px;
}

.staff-service-state {
  padding-left: 13px;
  border-left: 3px solid var(--green);
  color: var(--green);
  font-size: 12px;
  line-height: 1.35;
}

.staff-message-list article {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
}

.staff-message-list article + article {
  border-top: 1px solid var(--line);
}

.staff-message-list strong {
  display: block;
  font-size: 13px;
}

.staff-message-list p {
  margin: 4px 0 0;
  font-size: 12px;
}

.staff-message-marker {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
}

.staff-message-marker.planned {
  background: var(--blue);
}

.staff-message-marker.security {
  background: var(--amber);
}

.staff-message-board-footer {
  margin: 0;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 11px;
}

.staff-compliance-note {
  max-width: 620px;
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  background: var(--surface-2);
}

.staff-compliance-note strong {
  display: block;
  font-size: 14px;
}

.staff-compliance-note p {
  margin: 6px 0 0;
  font-size: 13px;
}

.staff-intro-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.staff-intro-footer span {
  font-weight: 800;
}

.staff-panel {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  background: #18314a;
  color: #f6f8fa;
}

.staff-panel-brand {
  display: none;
}

.staff-panel .language-picker {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
}

.staff-panel .language-picker span {
  color: rgba(246, 248, 250, .62);
}

.staff-panel .language-options button {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #f6f8fa;
}

.staff-panel .language-options button:hover,
.staff-panel .language-options button.active {
  border-color: rgba(95, 180, 139, .72);
  background: #2b7358;
}

.staff-panel .eyebrow {
  color: #efbd62;
}

.staff-panel-heading h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.08;
}

.staff-panel-heading p:last-child {
  margin: 12px 0 0;
  color: rgba(246, 248, 250, .7);
}

.staff-form {
  display: grid;
  gap: 15px;
}

.staff-form label {
  display: grid;
  gap: 7px;
}

.staff-form label span {
  color: rgba(246, 248, 250, .72);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.staff-form input {
  width: 100%;
  height: 46px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: #f7f9fa;
  color: #142433;
  outline: 0;
}

.staff-form input:focus {
  border-color: #75b99a;
  box-shadow: 0 0 0 3px rgba(117, 185, 154, .2);
}

.staff-factor-choice { margin: 2px 0 0; padding: 0; border: 0; }
.staff-factor-choice legend { margin-bottom: 8px; color: rgba(246, 248, 250, .72); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.staff-factor-choice > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.staff-factor-choice button { min-height: 38px; padding: 6px 8px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 7px; background: rgba(255, 255, 255, .06); color: rgba(246, 248, 250, .76); font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.staff-factor-choice button:hover,
.staff-factor-choice button.active { border-color: rgba(117, 185, 154, .7); background: rgba(117, 185, 154, .16); color: #fff; }
.staff-form label[hidden] { display: none; }
.staff-factor-hint { margin: -4px 0 0; color: rgba(246, 248, 250, .64); font-size: 11px; line-height: 1.45; }

.staff-number-field {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.staff-panel .primary-action {
  margin-top: 4px;
  border-color: rgba(117, 185, 154, .48);
  background: #2b7358;
}

.staff-panel .primary-action:hover {
  background: #235f49;
}

.staff-notice {
  padding: 13px 14px;
  border: 1px solid rgba(239, 189, 98, .28);
  border-radius: 8px;
  background: rgba(239, 189, 98, .08);
  color: rgba(246, 248, 250, .76);
  font-size: 12px;
  line-height: 1.45;
}

.staff-notice.ready {
  border-color: rgba(117, 185, 154, .42);
  background: rgba(117, 185, 154, .1);
  color: #cceadb;
}

.staff-preview-link {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(117, 185, 154, .48);
  border-radius: 8px;
  background: #f7f9fa;
  color: #173d30;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.staff-preview-link:hover {
  background: #e8f3ed;
}

.staff-preview-link[hidden] {
  display: none;
}

.staff-help {
  padding: 13px 14px;
  border-left: 3px solid #efbd62;
  background: rgba(255, 255, 255, .06);
}

.staff-help strong {
  display: block;
  font-size: 13px;
}

.staff-help p {
  margin: 5px 0 0;
  color: rgba(246, 248, 250, .68);
  font-size: 12px;
  line-height: 1.45;
}

.staff-help:target {
  box-shadow: 0 0 0 3px rgba(239, 189, 98, .2);
}

.staff-panel-footer {
  color: rgba(246, 248, 250, .58);
  font-size: 12px;
  line-height: 1.45;
}

.identity strong,
.identity span {
  display: block;
}

.identity strong {
  font-size: 17px;
}

.identity span {
  margin-top: 2px;
  color: rgba(245, 247, 242, .66);
  font-size: 12px;
}

.rail nav {
  display: grid;
  gap: 7px;
}

.rail nav button {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(245, 247, 242, .78);
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.rail nav button:hover,
.rail nav button.active {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .09);
  color: #fff;
}

.rail nav span {
  width: 20px;
  color: #e0b75f;
  text-align: center;
}

.rail-card {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.rail-card span,
.rail-card small {
  display: block;
  color: rgba(245, 247, 242, .66);
}

.rail-card span {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rail-card strong {
  display: block;
  margin: 8px 0 5px;
  font-size: 16px;
}

.rail-card small {
  font-size: 12px;
  line-height: 1.35;
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.workspace-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.02;
  font-weight: 750;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 4px;
  font-size: 17px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 5px;
  font-size: 14px;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.45;
}

.header-tools {
  display: flex;
  gap: 8px;
}

.header-tools button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.header-tools button:hover {
  border-color: rgba(31, 107, 79, .35);
  box-shadow: var(--shadow);
}

.member-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1.45fr) minmax(320px, .9fr);
  gap: 16px;
  align-items: start;
}

.member-layout[hidden] {
  display: none;
}

.overview-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.metric {
  min-height: 78px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 9px;
  font-size: 25px;
  line-height: 1;
}

.metric.green {
  border-left: 4px solid var(--green);
}

.metric.blue {
  border-left: 4px solid var(--blue);
}

.metric.amber {
  border-left: 4px solid var(--amber);
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}

.panel-head {
  min-height: 72px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-head p {
  margin-bottom: 0;
  font-size: 13px;
}

.access-panel,
.member-panel {
  grid-column: 1;
}

.assurance-panel,
.readiness-panel {
  grid-column: 2;
}

.wide-panel {
  grid-column: 1 / -1;
}

.pill {
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.pill.binding {
  color: #fff;
  background: var(--green);
}

.pill.demonstrates {
  color: #203a52;
  background: #dbe9f6;
}

.signin-form {
  padding: 16px;
  display: grid;
  gap: 13px;
}

.signin-form label {
  display: grid;
  gap: 7px;
}

.signin-form label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.signin-form input {
  width: 100%;
  height: 42px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  color: var(--ink);
  outline: 0;
}

.signin-form .login-options label {
  width: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.signin-form .login-options input {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--green);
}

.signin-form .login-options label span {
  color: #35413d;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.profile-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.profile-grid label {
  display: grid;
  gap: 7px;
}

.profile-grid label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-grid input,
.profile-grid select,
.toolbar input,
.toolbar select {
  width: 100%;
  height: 42px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  color: var(--ink);
  outline: 0;
}

.profile-grid input:focus,
.profile-grid select:focus,
.toolbar input:focus,
.toolbar select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 107, 79, .1);
}

.signin-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 107, 79, .1);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-actions button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(31, 107, 79, .28);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.form-actions button:hover {
  background: #185840;
}

.notice {
  margin: 0 16px 16px;
  padding: 13px;
  border: 1px solid rgba(166, 109, 24, .28);
  border-radius: 8px;
  background: #fff6e7;
  color: #6f480d;
  font-size: 13px;
  line-height: 1.4;
}

.notice.ready {
  border-color: rgba(31, 107, 79, .24);
  background: #f2f8f4;
  color: #1c5942;
}

.security-stack {
  display: grid;
}

.security-stack div {
  min-height: 78px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 5px 10px;
  border-bottom: 1px solid var(--line);
}

.security-stack strong,
.security-stack span {
  grid-column: 2;
}

.security-stack strong {
  font-size: 13px;
}

.security-stack span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.status-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
}

.status-dot.ok {
  background: var(--green);
}

.status-dot.warn {
  background: var(--amber);
}

.member-list {
  display: grid;
}

.member-list article {
  min-height: 86px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.member-list article > div > strong {
  color: var(--blue);
  font-size: 12px;
}

.member-list p {
  margin-bottom: 0;
  font-size: 13px;
}

.member-list article > span {
  min-height: 34px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  color: #35413d;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.readiness-list {
  max-height: 348px;
  overflow: auto;
}

.readiness-list div {
  min-height: 62px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.readiness-list span {
  grid-row: 1 / span 2;
  color: var(--muted);
  font-size: 12px;
}

.readiness-list strong {
  font-size: 13px;
}

.readiness-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.settings-list {
  padding: 10px 16px 16px;
  display: grid;
  gap: 10px;
}

.settings-list label {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  color: #35413d;
  font-size: 13px;
  font-weight: 750;
}

.settings-list input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.secondary-action,
.payment-card button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(31, 107, 79, .28);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.secondary-action:hover,
.payment-card button:hover {
  background: #185840;
}

.toolbar {
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.table-list {
  display: grid;
}

.table-list article {
  min-height: 72px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 54px 1fr 96px;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.table-list article.is-hidden {
  display: none;
}

.table-list article > span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.table-list strong,
.table-list small {
  display: block;
}

.table-list strong {
  font-size: 14px;
}

.table-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.table-list em {
  min-height: 32px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(49, 95, 143, .22);
  border-radius: 8px;
  background: #eef5fb;
  color: #203a52;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

.payment-card {
  margin: 16px;
  min-height: 150px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  border: 1px solid rgba(49, 95, 143, .22);
  border-radius: 8px;
  background: linear-gradient(135deg, #213b4e, #1f6b4f);
  color: #fff;
}

.payment-card strong,
.payment-card span {
  display: block;
}

.payment-card span {
  color: rgba(255, 255, 255, .72);
}

.payment-card button {
  width: fit-content;
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .15);
}

.payment-card button:hover {
  background: rgba(255, 255, 255, .22);
}

.compact-list article {
  grid-template-columns: 58px 1fr 86px;
}

body.staff-workspace-page {
  min-height: 100dvh;
  background: #edf1ef;
}

.staff-app-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
}

.staff-app-rail {
  min-width: 0;
  min-height: 100dvh;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #13283a;
  color: #f5f8fa;
}

.staff-app-brand {
  min-width: 0;
  padding: 0 7px 17px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
}

.staff-app-brand:hover {
  text-decoration: none;
}

.staff-app-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 8px;
  background: #fff;
}

.staff-app-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.staff-app-brand strong,
.staff-app-brand small {
  display: block;
}

.staff-app-brand strong {
  font-size: 15px;
}

.staff-app-brand small {
  margin-top: 3px;
  color: rgba(245, 248, 250, .62);
  font-size: 11px;
}

.staff-app-nav {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.staff-app-nav a,
.staff-app-nav button {
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: rgba(245, 248, 250, .74);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.staff-app-nav a:hover,
.staff-app-nav button:hover,
.staff-app-nav a.active {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .09);
  color: #fff;
  text-decoration: none;
}

.staff-nav-symbol {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 5px;
  color: #efbd62;
  font-size: 9px;
  font-weight: 900;
}

.staff-session-card {
  margin-top: auto;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 7px;
  background: rgba(255, 255, 255, .055);
}

.staff-session-card > span:first-child,
.staff-session-card strong,
.staff-session-card small {
  display: block;
}

.staff-session-card > span:first-child {
  color: rgba(245, 248, 250, .58);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.staff-session-card strong {
  margin: 7px 0 3px;
  font-size: 13px;
}

.staff-session-card small {
  color: rgba(245, 248, 250, .6);
  font-size: 11px;
}

.staff-session-state {
  margin-top: 12px;
  padding-top: 10px;
  display: flex !important;
  align-items: center;
  gap: 7px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #a8ddc2;
  font-size: 11px;
  font-weight: 800;
}

.staff-session-state i,
.session-live i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #58b786;
  box-shadow: 0 0 0 3px rgba(88, 183, 134, .14);
}

.staff-app-main {
  min-width: 0;
  padding: 28px 32px 48px;
}

.staff-app-header {
  min-height: 82px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.staff-app-header h1 {
  font-size: 34px;
  line-height: 1.08;
}

.staff-app-header p:last-child {
  margin: 8px 0 0;
  font-size: 14px;
}

.staff-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.staff-language-switcher {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.staff-language-switcher button {
  width: 40px;
  height: 32px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.staff-language-switcher button:hover,
.staff-language-switcher button.active {
  background: #1d6049;
  color: #fff;
}

.staff-signout {
  min-height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: #36413d;
  font-size: 12px;
}

.staff-signout:hover {
  border-color: rgba(162, 59, 53, .32);
  color: var(--red);
  text-decoration: none;
}

.prototype-band {
  min-height: 42px;
  margin: 6px 0 18px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(166, 109, 24, .26);
  border-left: 4px solid var(--amber);
  border-radius: 6px;
  background: #fff8eb;
  color: #6d4a16;
  font-size: 12px;
}

.prototype-band strong {
  flex: 0 0 auto;
}

.session-policy-band,
.session-timeout-alert {
  min-height: 42px;
  margin: -8px 0 18px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(49, 95, 143, .24);
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  background: #f4f8fb;
  color: #244a67;
  font-size: 12px;
}

.session-policy-band strong {
  flex: 0 0 auto;
}

.session-timeout-alert {
  margin-top: -8px;
  border-color: rgba(166, 109, 24, .28);
  border-left-color: var(--amber);
  background: #fff8eb;
  color: #6d4a16;
  font-weight: 750;
}

.session-timeout-alert[hidden] {
  display: none;
}

.session-assurance {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.session-assurance > header {
  min-height: 64px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.session-assurance h2 {
  margin: 0;
  font-size: 18px;
}

.session-live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
}

.session-assurance dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.session-assurance dl div {
  min-height: 66px;
  padding: 12px 16px;
}

.session-assurance dl div + div {
  border-left: 1px solid var(--line);
}

.session-assurance dt,
.module-boundary dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.session-assurance dd,
.module-boundary dd {
  margin: 6px 0 0;
  color: #27352f;
  font-size: 13px;
  font-weight: 800;
}

.staff-plaza-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.module-directory,
.plaza-side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.staff-section-heading,
.plaza-side-panel > header {
  min-height: 76px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.staff-section-heading h2,
.plaza-side-panel h2 {
  margin: 0;
  font-size: 19px;
}

.staff-section-heading p:last-child {
  margin: 7px 0 0;
  font-size: 12px;
}

.module-list {
  display: grid;
}

.module-row {
  position: relative;
  min-height: 118px;
  padding: 17px 18px 17px 22px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.module-row::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 5px;
  border-radius: 0 4px 4px 0;
  background: var(--blue);
}

.module-row.closed::before {
  background: var(--red);
}

.module-row + .module-row {
  border-top: 1px solid var(--line);
}

.module-mark,
.boundary-id,
.dialog-symbol,
.empty-record-symbol {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(49, 95, 143, .22);
  border-radius: 7px;
  background: #edf5fb;
  color: #264e75;
  font-size: 12px;
  font-weight: 900;
}

.module-mark.xero {
  border-color: rgba(31, 107, 79, .2);
  background: #eef7f2;
  color: var(--green);
}

.module-mark.chat {
  border-color: rgba(166, 109, 24, .22);
  background: #fff7e9;
  color: #825613;
}

.module-mark.locked {
  border-color: rgba(162, 59, 53, .2);
  background: #fff1ef;
  color: var(--red);
}

.module-title-line {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.module-title-line h3 {
  margin: 0;
  font-size: 15px;
}

.module-state {
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.module-state.open,
.module-state.linked {
  background: #e4f2e9;
  color: #1c6046;
}

.module-state.test {
  background: #fff0d4;
  color: #7b5113;
}

.module-state.closed {
  background: #f7e6e4;
  color: #8c312c;
}

.module-mark.security { background: #325a77; }
.module-mark.director { border-color: rgba(166, 109, 24, .26); background: #fff0d4; color: #7b5113; }
.module-state.director { background: #fff0d4; color: #7b5113; }

.mfa-assurance { margin-bottom: 16px; padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; border: 1px solid rgba(31, 107, 79, .25); border-left: 5px solid var(--green); border-radius: 8px; background: #f5faf7; }
.mfa-assurance h2,
.mfa-methods h2,
.mfa-guidance h2 { margin: 0; }
.mfa-assurance p:last-child { margin: 8px 0 0; font-size: 12px; }
.mfa-assurance dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(92px, 1fr)); }
.mfa-assurance dl div { padding: 0 16px; border-left: 1px solid var(--line); }
.mfa-assurance dt { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.mfa-assurance dd { margin: 5px 0 0; color: var(--green); font-size: 12px; font-weight: 850; }

.mfa-methods { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.mfa-method-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mfa-method-card { padding: 16px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; align-content: start; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfb; }
.mfa-method-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px; background: #e4f2e9; color: var(--green); font-size: 12px; font-weight: 900; }
.mfa-method-icon.passkey { background: #e7eef5; color: var(--blue); }
.mfa-method-icon.recovery { background: #fff0d4; color: #7b5113; }
.mfa-method-heading > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mfa-method-heading h3 { margin: 0; font-size: 15px; }
.mfa-method-heading p { min-height: 52px; margin: 8px 0 0; font-size: 11px; line-height: 1.5; }
.mfa-method-card > .module-entry { grid-column: 1 / -1; width: 100%; margin-top: 4px; }

.mfa-guidance { margin-top: 14px; padding: 17px 19px; border: 1px solid rgba(239, 189, 98, .45); border-radius: 8px; background: #fffbf3; }
.mfa-guidance h2 { font-size: 15px; }
.mfa-guidance ul { margin: 10px 0 0; padding-left: 18px; }
.mfa-guidance li { margin-top: 5px; font-size: 11px; }
.mfa-page-notice { margin-top: 14px; color: #5d4a26; }
.mfa-page-notice.ready { color: #1c6046; }

.auth-setup-key { margin-top: 14px; padding: 12px; border: 1px dashed rgba(49, 95, 143, .35); border-radius: 7px; background: #f4f7fa; }
.auth-setup-key span,
.auth-setup-key code { display: block; }
.auth-setup-key span { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.auth-setup-key code { margin-top: 6px; overflow-wrap: anywhere; color: #244a67; font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.mfa-code-confirm { margin-top: 13px; display: grid; gap: 6px; font-size: 11px; font-weight: 800; }
.mfa-code-confirm input { width: 150px; height: 42px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 7px; font: inherit; letter-spacing: .18em; }
.mfa-inline-status { color: var(--red); }
.staff-dialog > form > .dialog-actions { grid-column: 2; display: flex; gap: 8px; }
.staff-dialog > form > .dialog-actions button { min-height: 38px; padding: 0 15px; border: 1px solid rgba(31, 107, 79, .28); border-radius: 7px; background: var(--green); color: #fff; font-weight: 850; cursor: pointer; }
.staff-dialog > form > .dialog-actions button.secondary { border-color: var(--line); background: #fff; color: #38443f; }
.staff-dialog > form > .dialog-actions button:disabled { cursor: not-allowed; opacity: .45; }
.recovery-dialog { width: min(610px, calc(100vw - 32px)); }
.recovery-code-list { margin: 14px 0; padding: 13px 13px 13px 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 24px; border: 1px solid var(--line); border-radius: 7px; background: #f5f7f6; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; font-weight: 750; }
.recovery-confirm { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; font-weight: 800; }

.module-summary > p {
  margin: 7px 0 10px;
  font-size: 12px;
}

.module-permissions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.module-permissions span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f7f8f6;
  color: #53605b;
  font-size: 10px;
  font-weight: 750;
}

.module-entry {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 107, 79, .3);
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.module-entry:hover {
  background: #185840;
  color: #fff;
  text-decoration: none;
}

.module-entry.secondary {
  border-color: var(--line);
  background: #fff;
  color: #38443f;
}

.module-entry.secondary:hover {
  border-color: rgba(49, 95, 143, .35);
  background: #f3f6f8;
}

.plaza-side-panel {
  overflow: hidden;
}

.access-summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.access-summary-list li {
  min-height: 54px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: #45514c;
  font-size: 11px;
}

.access-summary-list strong {
  color: var(--green);
  font-size: 10px;
  text-transform: uppercase;
}

.access-summary-list strong.denied {
  color: var(--red);
}

.plaza-side-note {
  margin: 0;
  padding: 14px 15px;
  background: var(--surface-2);
  font-size: 11px;
}

.staff-dialog {
  width: min(500px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid rgba(23, 33, 30, .18);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 25, 21, .28);
}

.staff-dialog::backdrop {
  background: rgba(14, 24, 30, .62);
}

.staff-dialog > form {
  padding: 22px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
}

.staff-dialog h2 {
  margin: 0;
  font-size: 20px;
}

.staff-dialog p:not(.eyebrow) {
  margin: 9px 0 0;
  font-size: 13px;
}

.staff-dialog > form > button {
  grid-column: 2;
  width: fit-content;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(31, 107, 79, .28);
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.module-boundary {
  min-height: 92px;
  margin-bottom: 16px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  border: 1px solid rgba(49, 95, 143, .24);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #f8fbfd;
}

.module-boundary h2 {
  margin: 0;
  font-size: 18px;
}

.module-boundary p:last-child {
  margin: 7px 0 0;
  font-size: 12px;
}

.module-boundary dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 20px;
}

.module-boundary dl div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}


.staff-profile-summary {
  min-height: 106px;
  margin-bottom: 16px;
  padding: 17px 18px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.staff-avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #244a67;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.record-state {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.staff-profile-summary h2 {
  margin: 5px 0 3px;
  font-size: 21px;
}

.staff-profile-summary p {
  margin: 0;
  font-size: 12px;
}

.record-review {
  min-width: 158px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.record-review span,
.record-review strong {
  display: block;
}

.record-review span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.record-review strong {
  margin-top: 6px;
  font-size: 12px;
}

.staff-record-tabs {
  min-height: 48px;
  margin-bottom: 14px;
  display: flex;
  align-items: end;
  gap: 3px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.staff-record-tabs button {
  min-height: 43px;
  padding: 0 15px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.staff-record-tabs button:hover,
.staff-record-tabs button.active {
  border-bottom-color: var(--green);
  color: var(--green);
}

.staff-record-view {
  display: grid;
  gap: 14px;
}

.staff-record-view[hidden] {
  display: none;
}

.record-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.record-section-header {
  min-height: 70px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.record-section-header h2 {
  margin: 0;
  font-size: 17px;
}

.record-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.record-grid > div {
  min-height: 78px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.record-grid > div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.record-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.record-grid dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.record-grid dd {
  margin: 8px 0 0;
  color: #283630;
  font-size: 13px;
  font-weight: 750;
}

.record-grid .monospace {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
}

.protected-value dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.protected-value button,
.data-boundary-note button,
.external-record-strip button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(49, 95, 143, .26);
  border-radius: 6px;
  background: #f5f9fc;
  color: #285379;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.data-boundary-note {
  padding: 15px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 16px;
  align-items: center;
  border-left: 4px solid var(--amber);
  background: #fff8eb;
}

.data-boundary-note p {
  margin: 0;
  font-size: 12px;
}

.data-boundary-note button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.external-record-strip {
  min-height: 88px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(31, 107, 79, .22);
  border-radius: 8px;
  background: #f5faf7;
}

.external-record-strip strong {
  display: block;
  font-size: 14px;
}

.external-record-strip p {
  margin: 5px 0 0;
  font-size: 12px;
}

.empty-record-section {
  min-height: 280px;
  padding: 42px 24px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-record-section h2 {
  margin: 16px 0 7px;
  font-size: 19px;
}

.empty-record-section p {
  max-width: 500px;
  margin: 0 0 18px;
  font-size: 13px;
}

.empty-record-symbol {
  width: 54px;
  height: 54px;
  color: var(--green);
}

.record-empty-line,
.access-history-row {
  min-height: 62px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.access-history-row {
  justify-content: space-between;
  gap: 16px;
  color: #3d4944;
}

.access-history-row strong {
  color: var(--muted);
  font-size: 11px;
}

.request-success {
  min-height: 48px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(31, 107, 79, .22);
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: #f2f8f4;
  color: #1e5b45;
  font-size: 12px;
}

.request-success[hidden] {
  display: none;
}

.staff-request-dialog {
  width: min(600px, calc(100vw - 32px));
}

.staff-request-dialog > form {
  grid-template-columns: 46px minmax(0, 1fr);
}

.dialog-content {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.dialog-content label {
  display: grid;
  gap: 6px;
}

.dialog-content label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.dialog-content select,
.dialog-content textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfaf7;
  color: var(--ink);
  resize: vertical;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.dialog-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(31, 107, 79, .28);
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.dialog-actions button.dialog-secondary {
  border-color: var(--line);
  background: #fff;
  color: #3d4944;
}

@media (max-width: 1040px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-assurance {
    min-height: auto;
  }

  .bot-card {
    grid-template-columns: 160px 1fr;
    min-height: auto;
  }

  .bot-card img {
    max-height: 210px;
  }

  .member-shell {
    grid-template-columns: 1fr;
  }

  .rail {
    min-height: auto;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .identity {
    padding: 0;
    border-bottom: 0;
  }

  .rail nav {
    display: flex;
  }

  .rail-card {
    display: none;
  }

  .member-layout {
    grid-template-columns: 1fr;
  }

  .staff-shell {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  }

  .staff-app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .staff-app-main {
    padding: 24px;
  }

  .staff-plaza-layout {
    grid-template-columns: 1fr;
  }

  .mfa-method-grid {
    grid-template-columns: 1fr;
  }

  .plaza-side-panel {
    display: none;
  }

  .access-panel,
  .member-panel,
  .assurance-panel,
  .readiness-panel,
  .wide-panel {
    grid-column: 1;
  }
}

@media (max-width: 720px) {
  body.login-page {
    padding: 0;
    place-items: stretch;
  }

  .login-shell {
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  body.staff-login-page {
    padding: 0;
    place-items: stretch;
  }

  .staff-shell {
    min-height: 100dvh;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
  }

  .staff-intro,
  .staff-panel {
    padding: 24px;
  }

  .staff-panel {
    order: -1;
    justify-content: flex-start;
    gap: 22px;
  }

  .staff-panel-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
  }

  .staff-panel-brand img {
    width: 42px;
    height: 42px;
    padding: 6px;
    border-radius: 7px;
    background: #fff;
  }

  .staff-panel-brand strong,
  .staff-panel-brand small {
    display: block;
  }

  .staff-panel-brand strong {
    font-size: 15px;
  }

  .staff-panel-brand small {
    margin-top: 2px;
    color: rgba(246, 248, 250, .62);
    font-size: 11px;
  }

  .staff-intro > .staff-brand {
    display: none;
  }

  .staff-intro {
    gap: 28px;
  }

  .staff-app-shell {
    grid-template-columns: 1fr;
  }

  .staff-app-rail {
    min-height: auto;
    padding: 10px 12px;
    gap: 10px;
  }

  .staff-app-brand {
    padding: 0 0 10px;
  }

  .staff-app-nav {
    max-width: 100%;
    display: flex;
    overflow-x: auto;
  }

  .staff-app-nav a,
  .staff-app-nav button {
    width: auto;
    flex: 0 0 auto;
    padding-right: 13px;
  }

  .staff-session-card {
    display: none;
  }

  .staff-app-main {
    padding: 20px 16px 36px;
  }

  .staff-app-header {
    min-height: auto;
    flex-direction: column;
    margin-bottom: 18px;
  }

  .staff-app-header h1 {
    font-size: 28px;
  }

  .staff-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .staff-language-switcher {
    max-width: calc(100% - 90px);
  }

  .staff-factor-choice > div {
    grid-template-columns: 1fr;
  }

  .mfa-assurance {
    grid-template-columns: 1fr;
  }

  .mfa-assurance dl {
    grid-template-columns: 1fr;
  }

  .mfa-assurance dl div {
    padding: 10px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .recovery-code-list {
    grid-template-columns: 1fr;
  }

  .prototype-band {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .session-policy-band,
  .session-timeout-alert {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .session-assurance dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .session-assurance dl div + div {
    border-left: 0;
  }

  .session-assurance dl div:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .session-assurance dl div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .session-live {
    align-items: flex-start;
    text-align: right;
  }

  .module-row {
    grid-template-columns: 42px minmax(0, 1fr);
    padding-right: 14px;
  }

  .module-mark {
    width: 42px;
    height: 42px;
  }

  .module-entry {
    grid-column: 2;
    width: fit-content;
  }

  .module-boundary {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .module-boundary dl {
    grid-column: 1 / -1;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .staff-profile-summary {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .staff-avatar {
    width: 52px;
    height: 52px;
  }

  .record-review {
    grid-column: 1 / -1;
    min-width: 0;
    padding: 11px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .record-grid {
    grid-template-columns: 1fr;
  }

  .record-grid > div,
  .record-grid > div:nth-child(odd),
  .record-grid > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .record-grid > div:last-child {
    border-bottom: 0;
  }

  .record-section-header {
    align-items: flex-start;
  }

  .data-boundary-note,
  .external-record-strip {
    grid-template-columns: 1fr;
  }

  .data-boundary-note button,
  .external-record-strip button {
    grid-column: 1;
    grid-row: auto;
    width: fit-content;
  }

  .external-record-strip .module-mark {
    display: none;
  }

  .staff-dialog > form,
  .staff-request-dialog > form {
    grid-template-columns: 1fr;
  }

  .staff-dialog .dialog-symbol {
    width: 42px;
    height: 42px;
  }

  .staff-dialog > form > button {
    grid-column: 1;
  }

  .staff-intro-footer {
    display: grid;
  }

  .staff-message-board-header {
    display: grid;
  }

  .staff-panel .language-picker {
    display: grid;
    justify-items: start;
  }

  .login-panel,
  .login-assurance {
    padding: 22px;
  }

  .login-options,
  .login-footer,
  .language-picker,
  .assurance-grid,
  .standards-board-heading,
  .standards-list {
    grid-template-columns: 1fr;
  }

  .standards-list span + span {
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-left: 0;
  }

  .login-options,
  .login-footer,
  .language-picker {
    display: grid;
    justify-items: start;
  }

  .signin-form .login-options label {
    width: 100%;
  }

  .language-options {
    width: 100%;
  }

  .language-options button {
    flex: 1;
  }

  .bot-card {
    grid-template-columns: 132px 1fr;
    gap: 12px;
    align-items: center;
  }

  .bot-card img {
    max-height: 170px;
  }

  .bot-message {
    margin-bottom: 0;
    padding: 13px;
  }

  .bot-message strong {
    font-size: 16px;
  }

  .workspace {
    padding: 14px;
  }

  .workspace-header {
    align-items: flex-start;
  }

  .header-tools {
    display: none;
  }

  .overview-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-head {
    display: grid;
  }

  .rail {
    grid-template-columns: 1fr;
  }

  .rail nav {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .rail nav button {
    flex: 0 0 auto;
  }

  .form-actions,
  .member-list article,
  .profile-grid,
  .toolbar,
  .table-list article,
  .compact-list article {
    grid-template-columns: 1fr;
  }

  .form-actions {
    display: grid;
    justify-items: start;
  }

  .form-actions button {
    width: 100%;
  }

  .security-stack div,
  .readiness-list div {
    grid-template-columns: 24px 1fr;
  }
}

/* Director-controlled staff onboarding */
.onboarding-main { padding-bottom: 64px; }
.onboarding-new-case,
.primary-step-button,
.payroll-actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(31, 107, 79, .32);
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.onboarding-new-case:hover,
.primary-step-button:hover,
.payroll-actions button:hover { background: #185840; }
.director-control-band {
  min-height: 104px;
  margin-bottom: 16px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(166, 109, 24, .33);
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  background: linear-gradient(90deg, #fff8eb, #fffdf8);
}
.director-control-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(166, 109, 24, .28);
  border-radius: 50%;
  background: #fff0d4;
  color: #7b5113;
  font-size: 18px;
  font-weight: 900;
}
.director-control-band h2 { margin: 0; font-size: 18px; }
.director-control-band p:last-child { margin: 6px 0 0; font-size: 12px; }
.director-control-band dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(112px, 1fr)); }
.director-control-band dl div { padding: 0 16px; }
.director-control-band dl div + div { border-left: 1px solid rgba(166, 109, 24, .22); }
.director-control-band dt { color: #8a652c; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.director-control-band dd { margin: 6px 0 0; font-size: 11px; font-weight: 850; }
.onboarding-boundary { border-left-color: var(--green); }
.onboarding-shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; align-items: start; }
.onboarding-case-panel,
.onboarding-workspace { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.onboarding-case-panel { position: sticky; top: 16px; overflow: hidden; }
.onboarding-case-panel > header { min-height: 70px; padding: 14px 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.onboarding-case-panel h2 { margin: 0; font-size: 16px; }
.onboarding-case-panel > header > span { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 12px; background: #e7eef5; color: var(--blue); font-size: 10px; font-weight: 900; }
.onboarding-case-list { display: grid; }
.onboarding-case-list button { width: 100%; min-height: 88px; padding: 13px 12px; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; position: relative; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.onboarding-case-list button:hover,
.onboarding-case-list button.active { background: #f3f8f5; }
.onboarding-case-list button.active::before { content: ""; position: absolute; inset: 8px auto 8px 0; width: 4px; border-radius: 0 3px 3px 0; background: var(--green); }
.case-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #e7eef5; color: var(--blue); font-size: 10px; font-weight: 900; }
.onboarding-case-list strong,
.onboarding-case-list small { display: block; }
.onboarding-case-list strong { margin-top: 2px; font-size: 11px; }
.onboarding-case-list small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.onboarding-case-list em { grid-column: 2; width: fit-content; margin-top: -4px; padding: 3px 6px; border-radius: 4px; background: #fff0d4; color: #7b5113; font-size: 8px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.onboarding-case-list em.in-progress { background: #e7eef5; color: var(--blue); }
.onboarding-case-list em.ready { background: #e4f2e9; color: var(--green); }
.case-panel-note { padding: 13px 14px; background: #f7f8f6; }
.case-panel-note strong { font-size: 10px; }
.case-panel-note p { margin: 5px 0 0; font-size: 9px; line-height: 1.45; }
.onboarding-workspace { min-width: 0; overflow: hidden; }
.onboarding-case-header { min-height: 106px; padding: 17px 18px; display: flex; justify-content: space-between; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); }
.case-heading-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.onboarding-case-header h2 { margin: 5px 0 3px; font-size: 22px; }
.onboarding-case-header p:last-child { margin: 0; font-size: 11px; }
.case-status { padding: 4px 7px; border-radius: 4px; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.case-status.waiting { background: #fff0d4; color: #7b5113; }
.case-status.in-progress { background: #e7eef5; color: var(--blue); }
.case-status.ready { background: #e4f2e9; color: var(--green); }
.case-progress { width: 180px; flex: 0 0 180px; }
.case-progress > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; text-align: right; }
.case-progress > div { height: 7px; overflow: hidden; border-radius: 4px; background: #e7ebe8; }
.case-progress i { width: 0; height: 100%; display: block; border-radius: 4px; background: var(--green); transition: width .25s ease; }
.onboarding-steps { display: grid; grid-template-columns: repeat(7, minmax(88px, 1fr)); overflow-x: auto; border-bottom: 1px solid var(--line); background: #fafbf9; }
.onboarding-steps button { min-height: 82px; padding: 10px 8px; position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; border: 0; border-right: 1px solid var(--line); background: transparent; color: #65706b; cursor: pointer; }
.onboarding-steps button:last-child { border-right: 0; }
.onboarding-steps button > span { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #ccd3cf; border-radius: 50%; background: #fff; font-size: 9px; font-weight: 900; }
.onboarding-steps strong { font-size: 9px; }
.onboarding-steps small { color: var(--muted); font-size: 8px; }
.onboarding-steps button.active { background: #f0f7f3; color: var(--green); }
.onboarding-steps button.active::after { content: ""; height: 3px; position: absolute; inset: auto 0 0; background: var(--green); }
.onboarding-steps button.complete > span { border-color: var(--green); background: var(--green); color: #fff; }
.onboarding-steps button.locked:not(.active) { opacity: .48; }
.onboarding-step-views { min-height: 590px; }
.onboarding-step-view { padding: 22px; }
.onboarding-step-view[hidden] { display: none; }
.step-heading { min-height: 68px; padding-bottom: 17px; display: flex; align-items: start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.step-heading h3 { margin: 0; font-size: 19px; }
.step-heading p:last-child { margin: 7px 0 0; font-size: 11px; }
.step-control-tag { flex: 0 0 auto; padding: 5px 8px; border-radius: 4px; background: #e7eef5; color: var(--blue); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.step-control-tag.amber { background: #fff0d4; color: #7b5113; }
.step-control-tag.safe { background: #e4f2e9; color: var(--green); }
.onboarding-form { padding-top: 18px; display: grid; gap: 18px; }
.choice-cards,
.outcome-options { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 0; }
.choice-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-cards legend,
.outcome-options legend { grid-column: 1 / -1; margin-bottom: 2px; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.choice-cards label,
.outcome-options label { min-height: 88px; padding: 13px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfb; cursor: pointer; }
.choice-cards label:has(input:checked),
.outcome-options label:has(input:checked) { border-color: rgba(31, 107, 79, .5); background: #f0f7f3; box-shadow: inset 0 0 0 1px rgba(31, 107, 79, .13); }
.choice-cards input,
.outcome-options input { margin-top: 3px; accent-color: var(--green); }
.choice-cards strong,
.choice-cards small,
.outcome-options strong,
.outcome-options small { display: block; }
.choice-cards strong,
.outcome-options strong { font-size: 12px; }
.choice-cards small,
.outcome-options small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-grid label,
.route-select,
.onboarding-dialog .dialog-content > label { display: grid; gap: 6px; }
.form-grid label.wide { grid-column: 1 / -1; }
.form-grid label > span,
.route-select > span,
.onboarding-dialog label > span { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.form-grid input,
.form-grid select,
.form-grid textarea,
.route-select select,
.onboarding-dialog input,
.onboarding-dialog select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; }
.form-grid textarea { resize: vertical; }
.control-confirm { display: flex !important; gap: 9px; align-items: flex-start; padding: 12px 13px; border: 1px solid rgba(166, 109, 24, .25); border-radius: 7px; background: #fffaf1; font-size: 11px; font-weight: 750; line-height: 1.45; }
.control-confirm input { margin-top: 2px; accent-color: var(--green); }
.control-confirm span { color: inherit !important; font-size: inherit !important; text-transform: none !important; }
.step-actions { min-height: 54px; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid var(--line); }
.step-actions > span { color: var(--muted); font-size: 10px; }
.step-actions button { min-height: 40px; padding: 0 15px; border: 1px solid rgba(31, 107, 79, .3); border-radius: 7px; background: var(--green); color: #fff; font-weight: 850; cursor: pointer; }
.phone-handoff-grid { padding-top: 22px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.phone-preview { width: 224px; min-height: 430px; margin: 0 auto; padding: 10px; border: 7px solid #26312d; border-radius: 28px; background: #26312d; box-shadow: 0 18px 40px rgba(24, 36, 31, .17); }
.phone-speaker { width: 54px; height: 5px; margin: 0 auto 9px; border-radius: 3px; background: #59625e; }
.phone-screen { min-height: 395px; padding: 24px 17px; border-radius: 18px; background: #f7faf8; }
.phone-screen > span { color: var(--green); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.phone-screen > strong { display: block; margin-top: 14px; font-size: 17px; line-height: 1.25; }
.phone-screen p { margin: 9px 0 18px; font-size: 10px; line-height: 1.5; }
.phone-screen ol { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.phone-screen li { padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 9px; font-weight: 800; }
.phone-screen button { width: 100%; min-height: 36px; margin-top: 20px; border: 0; border-radius: 6px; background: #d9dfdc; color: #76807b; font-size: 9px; font-weight: 850; }
.handoff-instructions { display: grid; gap: 16px; }
.status-callout,
.no-biometric-note,
.route-guidance { padding: 14px 15px; border: 1px solid rgba(166, 109, 24, .26); border-left: 4px solid var(--amber); border-radius: 7px; background: #fff8eb; }
.status-callout strong,
.no-biometric-note strong,
.route-guidance strong { font-size: 12px; }
.status-callout p,
.no-biometric-note p,
.route-guidance p { margin: 6px 0 0; font-size: 10px; line-height: 1.5; }
.guided-list { margin: 0; padding: 0; display: grid; gap: 0; list-style: none; counter-reset: guided; }
.guided-list li { min-height: 70px; padding: 12px 10px 12px 44px; position: relative; border-bottom: 1px solid var(--line); counter-increment: guided; }
.guided-list li::before { content: counter(guided); width: 25px; height: 25px; position: absolute; left: 7px; top: 11px; display: grid; place-items: center; border-radius: 50%; background: #e7eef5; color: var(--blue); font-size: 9px; font-weight: 900; }
.guided-list strong,
.guided-list span { display: block; }
.guided-list strong { font-size: 11px; }
.guided-list span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.inline-result { margin: 0; color: var(--muted); font-size: 10px; }
.route-select { max-width: 560px; }
.route-guidance { border-color: rgba(49, 95, 143, .24); border-left-color: var(--blue); background: #f4f8fb; }
.no-biometric-note { border-color: rgba(31, 107, 79, .25); border-left-color: var(--green); background: #f2f8f4; }
.outcome-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.protected-status-grid { padding-top: 20px; display: grid; gap: 10px; }
.protected-status-grid article { min-height: 82px; padding: 13px 14px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfb; }
.status-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 7px; background: #e7eef5; color: var(--blue); font-size: 10px; font-weight: 900; }
.protected-status-grid strong { font-size: 12px; }
.protected-status-grid p { margin: 5px 0 0; font-size: 10px; }
.protected-status-grid em { padding: 4px 7px; border-radius: 4px; background: #f0f1ef; color: var(--muted); font-size: 9px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.payroll-actions { margin-top: 16px; display: flex; gap: 8px; }
.payroll-actions button:disabled { opacity: .45; cursor: not-allowed; }
.release-grid { padding-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; }
.release-checklist { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.release-checklist li { min-height: 58px; padding: 10px 13px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 9px; align-items: center; border-bottom: 1px solid var(--line); }
.release-checklist li:last-child { border-bottom: 0; }
.release-checklist li > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #f0f1ef; color: var(--muted); font-size: 10px; font-weight: 900; }
.release-checklist li.complete > span { background: #e4f2e9; color: var(--green); }
.release-checklist strong { font-size: 11px; }
.release-checklist em { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 850; text-transform: uppercase; }
.release-checklist li.complete em { color: var(--green); }
.release-authority-card { padding: 18px; border: 1px solid rgba(166, 109, 24, .28); border-radius: 8px; background: #fff8eb; }
.release-authority-card h4 { margin: 14px 0 0; font-size: 15px; }
.release-authority-card p { margin: 8px 0 16px; font-size: 10px; line-height: 1.55; }
.release-authority-card button { width: 100%; min-height: 40px; border: 1px solid rgba(166, 109, 24, .38); border-radius: 7px; background: #865a17; color: #fff; font-size: 10px; font-weight: 850; cursor: pointer; }
.release-authority-card button:disabled { opacity: .42; cursor: not-allowed; }
.release-complete { margin-top: 16px; padding: 14px 15px; border: 1px solid rgba(31, 107, 79, .25); border-left: 4px solid var(--green); border-radius: 7px; background: #f2f8f4; }
.release-complete[hidden] { display: none; }
.release-complete strong { font-size: 12px; }
.release-complete p { margin: 5px 0 0; font-size: 10px; }
.onboarding-step-footer { min-height: 58px; padding: 10px 18px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); background: #fafbf9; }
.onboarding-step-footer button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #3b4742; font-size: 10px; font-weight: 850; cursor: pointer; }
.onboarding-step-footer button:disabled { opacity: .35; cursor: not-allowed; }
.onboarding-step-footer span { color: var(--muted); font-size: 10px; font-weight: 800; }
.onboarding-dialog { width: min(620px, calc(100vw - 32px)); }
.onboarding-toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: 390px; padding: 12px 15px; border: 1px solid rgba(31, 107, 79, .25); border-radius: 7px; background: #173b2f; color: #fff; box-shadow: 0 12px 34px rgba(14, 26, 21, .24); font-size: 11px; font-weight: 750; }
.onboarding-toast[hidden] { display: none; }

@media (max-width: 1160px) {
  .onboarding-shell { grid-template-columns: 1fr; }
  .onboarding-case-panel { position: static; }
  .onboarding-case-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .onboarding-case-list button { border-right: 1px solid var(--line); }
  .case-panel-note { display: none; }
  .director-control-band dl { display: none; }
}

@media (max-width: 760px) {
  .director-control-band { grid-template-columns: 44px minmax(0, 1fr); }
  .onboarding-case-list { grid-template-columns: 1fr; }
  .onboarding-case-header { align-items: flex-start; flex-direction: column; }
  .case-progress { width: 100%; flex-basis: auto; }
  .case-progress > span { text-align: left; }
  .onboarding-steps { grid-template-columns: repeat(7, 104px); }
  .onboarding-step-view { padding: 16px; }
  .step-heading { display: grid; }
  .step-control-tag { width: fit-content; }
  .choice-cards,
  .choice-cards.three,
  .outcome-options,
  .form-grid,
  .phone-handoff-grid,
  .release-grid { grid-template-columns: 1fr; }
  .form-grid label.wide { grid-column: auto; }
  .phone-preview { width: min(224px, 100%); }
  .protected-status-grid article { grid-template-columns: 40px minmax(0, 1fr); }
  .protected-status-grid em { grid-column: 2; width: fit-content; }
  .step-actions { align-items: stretch; flex-direction: column; }
  .payroll-actions { flex-direction: column; }
}

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

/* Argyll Academy: opportunity, risk and regulatory learning */
.training-main { padding-bottom: 70px; }
.training-hero {
  margin-bottom: 16px;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(31, 107, 79, .22);
  border-left: 5px solid var(--green);
  border-radius: 9px;
  background: linear-gradient(120deg, #f1f8f4, #fffdfa 70%);
}
.training-hero h2 { max-width: 760px; margin: 4px 0 10px; font-size: clamp(24px, 3vw, 38px); line-height: 1.08; letter-spacing: -.025em; }
.training-hero p:last-child { max-width: 770px; margin: 0; font-size: 13px; line-height: 1.65; }
.training-hero-principle { padding: 18px; border-radius: 8px; background: var(--rail); color: #fff; }
.training-hero-principle span,
.training-hero-principle strong,
.training-hero-principle small { display: block; }
.training-hero-principle span { color: #a9cabc; font-size: 9px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.training-hero-principle strong { margin-top: 7px; font-size: 19px; }
.training-hero-principle small { margin-top: 9px; color: #d9e3df; font-size: 10px; line-height: 1.5; }
.training-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.training-index,
.training-workspace,
.training-references { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.training-index { position: sticky; top: 16px; overflow: hidden; }
.training-index > header { padding: 16px; border-bottom: 1px solid var(--line); }
.training-index h2 { margin: 2px 0 0; font-size: 17px; }
.training-progress { padding: 13px 16px; border-bottom: 1px solid var(--line); background: #f7f9f7; }
.training-progress > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.training-progress > div { height: 6px; overflow: hidden; border-radius: 3px; background: #dfe5e1; }
.training-progress i { width: 0; height: 100%; display: block; background: var(--green); transition: width .2s ease; }
.training-index nav { display: grid; }
.training-index nav button { min-height: 72px; padding: 11px 12px; display: grid; grid-template-columns: 27px minmax(0, 1fr); grid-template-rows: auto auto; gap: 3px 10px; position: relative; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; }
.training-index nav button:hover,
.training-index nav button.active { background: #f1f7f3; }
.training-index nav button.active::before { content: ""; width: 4px; position: absolute; inset: 7px auto 7px 0; border-radius: 0 3px 3px 0; background: var(--green); }
.training-index nav button > span { width: 27px; height: 27px; grid-row: 1 / 3; display: grid; place-items: center; border: 1px solid #cdd6d1; border-radius: 50%; color: var(--muted); font-size: 9px; font-weight: 900; }
.training-index nav button.complete > span { border-color: var(--green); background: var(--green); color: #fff; }
.training-index nav button.complete > span::after { content: "✓"; }
.training-index nav button.complete > span { font-size: 0; }
.training-index nav button.complete > span::after { font-size: 10px; }
.training-index nav strong { align-self: end; font-size: 10px; }
.training-index nav small { color: var(--muted); font-size: 9px; }
.training-source-note { padding: 14px 16px; background: #f8f9f7; }
.training-source-note strong { font-size: 10px; }
.training-source-note p { margin: 5px 0 0; font-size: 9px; line-height: 1.5; }
.training-workspace { min-width: 0; overflow: hidden; }
.training-lesson[hidden] { display: none; }
.training-lesson-heading { min-height: 106px; padding: 20px 22px; display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; border-bottom: 1px solid var(--line); }
.training-lesson-heading h2 { margin: 3px 0 6px; font-size: 24px; letter-spacing: -.015em; }
.training-lesson-heading p:last-child { margin: 0; font-size: 11px; }
.lesson-time { flex: 0 0 auto; padding: 5px 8px; border-radius: 4px; background: #e7eef5; color: var(--blue); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.training-figure { margin: 0; padding: 22px; border-bottom: 1px solid var(--line); background: #fbfcfb; }
.training-figure svg { width: 100%; height: auto; display: block; border: 1px solid rgba(23, 33, 30, .09); border-radius: 8px; background: #fff; }
.training-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.training-figure svg text { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #17211e; }
.training-figure .svg-kicker { font-size: 13px; font-weight: 900; letter-spacing: .09em; }
.training-figure .svg-title { font-size: 22px; font-weight: 850; }
.training-figure .svg-copy { font-size: 15px; }
.training-figure .svg-label { font-size: 12px; font-weight: 900; letter-spacing: .03em; }
.training-figure .svg-emphasis { font-size: 15px; font-weight: 850; }
.training-figure .svg-source { font-size: 13px; fill: #69746f; }
.training-figure .light { fill: #fff; }
.training-figure .green { fill: #1f6b4f; }
.training-figure .blue { fill: #315f8f; }
.training-figure .amber { fill: #8a5c17; }
.training-figure .red { fill: #a23b35; }
.stage-node > text:not(.svg-label) { font-size: 14px; font-weight: 850; }
.lesson-grid { padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
.lesson-grid h3 { margin: 0 0 10px; font-size: 15px; }
.lesson-grid p,
.lesson-grid li { font-size: 11px; line-height: 1.6; }
.lesson-grid ul,
.lesson-grid ol { margin: 0; padding-left: 19px; display: grid; gap: 5px; }
.lesson-callout,
.lesson-citation { padding: 15px; border: 1px solid rgba(49, 95, 143, .22); border-left: 4px solid var(--blue); border-radius: 7px; background: #f3f7fa; }
.lesson-callout.warning { border-color: rgba(166, 109, 24, .25); border-left-color: var(--amber); background: #fff8eb; }
.lesson-callout strong,
.lesson-citation strong { font-size: 11px; }
.lesson-callout p,
.lesson-citation p { margin: 6px 0 0; font-size: 10px; line-height: 1.55; }
.training-check { margin: 0 22px 22px; padding: 18px; display: grid; grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr); gap: 22px; border: 1px solid rgba(166, 109, 24, .25); border-radius: 8px; background: #fffaf1; }
.training-check h2 { margin: 3px 0 7px; font-size: 17px; }
.training-check > div > p:last-child { margin: 0; font-size: 10px; line-height: 1.5; }
.training-check form { display: grid; gap: 7px; }
.training-check label { padding: 9px 10px; display: flex; gap: 9px; align-items: flex-start; border: 1px solid rgba(166, 109, 24, .16); border-radius: 6px; background: #fff; cursor: pointer; }
.training-check label:has(input:checked) { border-color: rgba(31, 107, 79, .42); background: #f2f8f4; }
.training-check input { margin-top: 2px; accent-color: var(--green); }
.training-check label span { font-size: 10px; line-height: 1.4; }
.training-check-actions { margin-top: 3px; display: flex; align-items: center; gap: 12px; }
.training-check-actions button,
.training-controls button { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 10px; font-weight: 850; cursor: pointer; }
.training-check-actions button { border-color: rgba(31, 107, 79, .3); background: var(--green); color: #fff; }
.training-check-actions p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.training-check-actions p.correct { color: var(--green); font-weight: 800; }
.training-check-actions p.incorrect,
.training-check-actions p.needs-answer { color: var(--red); font-weight: 800; }
.training-controls { min-height: 62px; padding: 11px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); background: #fafbf9; }
.training-controls button:disabled { opacity: .35; cursor: not-allowed; }
.training-controls .review-action { border-color: rgba(31, 107, 79, .3); background: var(--green); color: #fff; }
.training-controls .review-action.complete { background: #e4f2e9; color: var(--green); }
.training-references { margin-top: 16px; padding: 21px 22px; }
.training-references h2 { margin: 3px 0 14px; font-size: 19px; }
.training-references > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.training-references article { padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfb; }
.training-references strong { font-size: 11px; }
.training-references p { margin: 6px 0 0; font-size: 9px; line-height: 1.55; }
.training-next-module { margin-top: 16px; padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; border: 1px solid rgba(49, 95, 143, .24); border-left: 5px solid var(--blue); border-radius: 9px; background: #f3f7fa; }
.training-next-module h2 { margin: 3px 0 8px; font-size: 20px; }
.training-next-module p:last-child { max-width: 850px; margin: 0; font-size: 11px; line-height: 1.55; }
.training-next-module > a { min-height: 42px; padding: 0 15px; display: grid; place-items: center; border-radius: 7px; background: var(--blue); color: #fff; font-size: 10px; white-space: nowrap; }

/* Argyll Academy scenario assessment */
.assessment-brief { margin-bottom: 16px; padding: 24px 26px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: center; border: 1px solid rgba(49, 95, 143, .23); border-left: 5px solid var(--blue); border-radius: 9px; background: linear-gradient(120deg, #f3f7fa, #fffdfa 72%); }
.assessment-brief h2 { margin: 4px 0 9px; font-size: 28px; letter-spacing: -.02em; }
.assessment-brief p:last-child { max-width: 760px; margin: 0; font-size: 12px; line-height: 1.6; }
.assessment-brief dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.assessment-brief dl div { min-height: 78px; padding: 13px; }
.assessment-brief dl div + div { border-left: 1px solid var(--line); }
.assessment-brief dt { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.assessment-brief dd { margin: 7px 0 0; font-size: 10px; font-weight: 850; line-height: 1.35; }
.assessment-layout { display: grid; grid-template-columns: 275px minmax(0, 1fr); gap: 16px; align-items: start; }
.scenario-timeline,
.scenario-workspace { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.scenario-timeline { position: sticky; top: 16px; overflow: hidden; }
.scenario-timeline > .eyebrow,
.scenario-timeline > h2 { margin-left: 17px; margin-right: 17px; }
.scenario-timeline > .eyebrow { margin-top: 17px; }
.scenario-timeline > h2 { margin-top: 3px; margin-bottom: 14px; font-size: 17px; }
.scenario-timeline ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.scenario-timeline li { min-height: 76px; padding: 13px 14px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; align-items: center; position: relative; border-bottom: 1px solid var(--line); }
.scenario-timeline li.active { background: #f1f7f3; }
.scenario-timeline li.active::before { content: ""; width: 4px; position: absolute; inset: 7px auto 7px 0; border-radius: 0 3px 3px 0; background: var(--green); }
.scenario-timeline li > span { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #cbd4cf; border-radius: 50%; color: var(--muted); font-size: 9px; font-weight: 900; }
.scenario-timeline li.complete > span { border-color: var(--green); background: var(--green); color: #fff; }
.scenario-timeline strong,
.scenario-timeline small { display: block; }
.scenario-timeline strong { font-size: 10px; }
.scenario-timeline small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.scenario-rule { padding: 15px 16px; background: #fff8eb; }
.scenario-rule strong { font-size: 10px; }
.scenario-rule p { margin: 6px 0 0; font-size: 9px; line-height: 1.5; }
.scenario-workspace { min-width: 0; overflow: hidden; }
.scenario-stage[hidden] { display: none; }
.scenario-stage > header { padding: 22px; border-bottom: 1px solid var(--line); }
.scenario-stage > header h2 { margin: 4px 0 0; font-size: 24px; letter-spacing: -.015em; }
.scenario-stage > header p:last-child { margin: 8px 0 0; font-size: 11px; }
.scenario-evidence { padding: 18px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-bottom: 1px solid var(--line); background: #f8faf8; }
.scenario-evidence article { padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.scenario-evidence span { color: var(--muted); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.scenario-evidence strong { display: block; margin-top: 7px; font-size: 11px; }
.scenario-evidence p { margin: 7px 0 0; font-size: 9px; line-height: 1.5; }
.scenario-event { margin: 20px 22px 0; padding: 15px 16px; border: 1px solid rgba(49, 95, 143, .24); border-left: 4px solid var(--blue); border-radius: 7px; background: #f3f7fa; }
.scenario-event.warning { border-color: rgba(166, 109, 24, .26); border-left-color: var(--amber); background: #fff8eb; }
.scenario-event span { color: var(--blue); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.scenario-event.warning span { color: #805515; }
.scenario-event p { margin: 7px 0 0; font-size: 11px; line-height: 1.55; }
.scenario-form { padding: 20px 22px 22px; display: grid; gap: 17px; }
.scenario-form fieldset { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 0; }
.scenario-form legend { grid-column: 1 / -1; margin-bottom: 2px; color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.scenario-form fieldset label { min-height: 105px; padding: 13px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfb; cursor: pointer; }
.scenario-form fieldset label:has(input:checked) { border-color: rgba(49, 95, 143, .48); background: #f2f6fa; box-shadow: inset 0 0 0 1px rgba(49, 95, 143, .12); }
.scenario-form input { margin-top: 3px; accent-color: var(--blue); }
.scenario-form fieldset strong,
.scenario-form fieldset small { display: block; }
.scenario-form fieldset strong { font-size: 11px; }
.scenario-form fieldset small { margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.scenario-rationale { display: grid; gap: 7px; }
.scenario-rationale > span { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.scenario-rationale textarea { width: 100%; min-height: 100px; padding: 11px 12px; resize: vertical; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-size: 11px; line-height: 1.5; }
.scenario-actions { min-height: 52px; padding-top: 13px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; border-top: 1px solid var(--line); }
.scenario-actions p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.scenario-actions p.debrief { color: var(--blue); font-weight: 750; }
.scenario-actions p.mandate-failed { color: var(--red); font-weight: 850; }
.scenario-actions button,
.scenario-review-actions button,
.scenario-review-actions a { min-height: 40px; padding: 0 14px; display: grid; place-items: center; border: 1px solid rgba(31, 107, 79, .3); border-radius: 7px; background: var(--green); color: #fff; font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; }
.scenario-actions button.secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.scenario-actions button:disabled { opacity: .45; cursor: not-allowed; }
.scenario-review > header { background: #f3f7fa; }
.application-profile { padding: 20px 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.application-profile article { min-height: 118px; padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfb; }
.application-profile span { color: var(--muted); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.application-profile strong { display: block; margin-top: 7px; font-size: 13px; }
.application-profile p { margin: 7px 0 0; font-size: 9px; line-height: 1.5; }
.application-profile article.reasoning-recorded,
.application-profile article.mandate-met { border-color: rgba(31, 107, 79, .3); background: #f1f7f3; }
.application-profile article.reasoning-recorded strong,
.application-profile article.mandate-met strong { color: var(--green); }
.application-profile article.mandate-failed { border-color: rgba(162, 59, 53, .3); background: #fbefed; }
.application-profile article.mandate-failed strong { color: var(--red); }
.scenario-summary { margin: 0 22px 20px; padding: 16px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 7px; background: #f8faf8; }
.scenario-summary.mandate-failed { border-left-color: var(--red); background: #fbefed; }
.scenario-summary strong { font-size: 12px; }
.scenario-summary p { margin: 6px 0 0; font-size: 10px; line-height: 1.55; }
.scenario-review-actions { padding: 13px 22px 20px; display: flex; justify-content: space-between; gap: 10px; }
.scenario-review-actions a { background: var(--blue); }

@media (max-width: 1120px) {
  .training-layout { grid-template-columns: 1fr; }
  .training-index { position: static; }
  .training-index nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .training-index nav button { border-right: 1px solid var(--line); }
  .training-source-note { display: none; }
  .assessment-brief { grid-template-columns: 1fr; }
  .assessment-layout { grid-template-columns: 1fr; }
  .scenario-timeline { position: static; }
  .scenario-timeline ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .scenario-timeline li { border-right: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .training-hero,
  .lesson-grid,
  .training-check { grid-template-columns: 1fr; }
  .training-index nav { grid-template-columns: 1fr; }
  .training-lesson-heading { display: grid; }
  .lesson-time { width: fit-content; }
  .training-figure { padding: 12px; overflow-x: auto; }
  .training-figure svg { min-width: 700px; }
  .training-controls { flex-wrap: wrap; }
  .training-controls .review-action { order: -1; width: 100%; }
  .training-references > div { grid-template-columns: 1fr; }
  .training-next-module,
  .assessment-brief,
  .scenario-evidence,
  .scenario-form fieldset,
  .application-profile { grid-template-columns: 1fr; }
  .training-next-module > a { width: fit-content; }
  .assessment-brief dl { grid-template-columns: 1fr; }
  .assessment-brief dl div + div { border-top: 1px solid var(--line); border-left: 0; }
  .scenario-timeline ol { grid-template-columns: 1fr; }
  .scenario-actions { grid-template-columns: 1fr; align-items: stretch; }
  .scenario-review-actions { flex-direction: column; }
}

@media print {
  .risk-training-page { background: #fff; }
  .risk-training-page .staff-app-rail,
  .risk-training-page .staff-app-header,
  .risk-training-page .prototype-band,
  .risk-training-page .training-index,
  .risk-training-page .training-check,
  .risk-training-page .training-controls,
  .risk-training-page .onboarding-toast { display: none !important; }
  .risk-training-page .staff-app-shell { display: block; }
  .risk-training-page .staff-app-main { max-width: none; padding: 0; }
  .risk-training-page .training-layout { display: block; }
  .risk-training-page .training-workspace { border: 0; }
  .risk-training-page .training-lesson[hidden] { display: block; }
  .risk-training-page .training-lesson { break-after: page; }
  .risk-training-page .training-figure svg { max-height: 500px; }
}
