:root {
  color-scheme: light;
  --m9-navy: #071b3b;
  --m9-navy-soft: #0c2a5b;
  --m9-blue: #155eef;
  --m9-blue-soft: #eef4ff;
  --m9-page: #f4f6fa;
  --m9-surface: #ffffff;
  --m9-text: #111827;
  --m9-muted: #667085;
  --m9-border: #dce2ea;
  --m9-success: #2e7d32;
  --m9-success-bg: #eaf6e8;
  --m9-warning: #f4c542;
  --m9-danger: #b42318;
  --m9-danger-bg: #fff1f0;
  --m9-focus: #0047b3;
  --m9-focus-inner: #ffffff;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: var(--m9-page);
}

body {
  color: var(--m9-text);
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input:not([type="checkbox"]):not([type="radio"]),
select,
#m9-login-link,
.m9-nav-item {
  min-height: 44px;
}

button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

[hidden] {
  display: none !important;
}

#m9-app {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  overflow-x: clip;
  background: var(--m9-surface);
  box-shadow: 0 0 18px rgb(7 27 59 / 8%);
}

.m9-header {
  order: 1;
  padding: calc(24px + env(safe-area-inset-top)) 24px 30px;
  color: var(--m9-surface);
  background: var(--m9-navy);
}

.m9-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.m9-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.m9-brand-row .ph {
  flex: 0 0 auto;
  font-size: 27px;
}

.m9-header h1 {
  margin: 0;
  font-size: clamp(30px, 8vw, 32px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.m9-header p {
  margin: 8px 0 0;
  color: #d9e4f5;
  font-size: 15px;
}

#m9-app > section:not(.m9-sheet),
#m9-owner-panel,
#m9-employee-panel {
  order: 2;
  min-width: 0;
}

#m9-app > p {
  order: 3;
  margin: 0;
  padding-inline: 24px;
  overflow-wrap: anywhere;
  background: var(--m9-surface);
}

#m9-status {
  padding-top: 16px;
  color: var(--m9-blue);
  font-size: 13px;
  font-weight: 650;
}

#m9-student-boundary {
  margin-top: 16px !important;
  padding: 16px 24px 4px !important;
  border-top: 1px solid var(--m9-border);
  color: var(--m9-text);
  font-size: 14px;
}

#m9-student-boundary + p {
  padding-top: 4px !important;
  padding-bottom: 24px !important;
  color: var(--m9-muted);
  font-size: 13px;
}

#m9-test-mode {
  margin: 16px 24px 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #fecdca;
  border-radius: 10px;
  color: var(--m9-danger);
  background: var(--m9-danger-bg) !important;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

#m9-app[data-view="owner"] > #m9-status[data-state="success"],
#m9-app[data-view="employee"] > #m9-status[data-state="success"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#m9-app[data-view="owner"] > #m9-session-boundary,
#m9-app[data-view="employee"] > #m9-session-boundary {
  display: none;
}

.m9-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

section {
  min-width: 0;
}

section h2,
section h3 {
  color: var(--m9-text);
}

section h2 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.3;
}

section h3 {
  margin: 24px 0 14px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.4;
}

#m9-login,
#m9-session-expiry,
#m9-denied-panel,
#m9-bootstrap-panel,
#m9-unbound-panel {
  padding: 28px 24px 36px;
  border-radius: 20px 20px 0 0;
  background: var(--m9-surface);
}

#m9-session-expiry,
#m9-denied-panel {
  border-top: 4px solid var(--m9-danger);
  background: var(--m9-danger-bg);
}

#m9-owner-panel {
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
  background: var(--m9-surface);
}

#m9-owner-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0 16px 16px;
  color: var(--m9-surface);
  background: var(--m9-navy);
}

#m9-owner-summary > .m9-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 14px 8px;
  overflow-wrap: anywhere;
  border-left: 1px solid rgb(255 255 255 / 18%);
  color: #e9f0fb;
  background: var(--m9-navy-soft);
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}

#m9-owner-summary > .m9-summary-item:first-child {
  border-left: 0;
  border-radius: 10px 0 0 10px;
}

#m9-owner-summary > .m9-summary-item:last-child {
  border-radius: 0 10px 10px 0;
}

.m9-summary-label {
  color: #d9e4f5;
  font-size: 13px;
  font-weight: 650;
}

.m9-summary-value {
  color: var(--m9-surface);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

#m9-owner-home,
#m9-owner-people,
#m9-owner-history-view {
  min-height: 420px;
  padding: 24px;
  overflow-wrap: anywhere;
  border-radius: 20px 20px 0 0;
  background: var(--m9-surface);
}

#m9-owner-home > p {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--m9-border);
  color: var(--m9-muted);
  line-height: 1.6;
}

#m9-owner-home > p > .ph,
#m9-employee-panel > p > .ph {
  flex: 0 0 auto;
  color: var(--m9-blue);
  font-size: 20px;
}

#m9-owner-home > p,
#m9-employee-panel > p {
  display: flex;
  align-items: center;
  gap: 10px;
}

#m9-owner-home > p:first-child:has(button) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
  color: var(--m9-text);
  font-weight: 650;
}

#m9-owner-home > p:first-child:has(button) button {
  flex: 0 0 auto;
}

#m9-owner-home > p:not(:first-child) {
  padding-left: 14px;
  border-left: 3px solid var(--m9-border);
}

.m9-pending-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--m9-border);
}

.m9-pending-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid #bfd4ff;
  border-radius: 50%;
  color: var(--m9-blue);
  background: var(--m9-blue-soft);
  font-size: 28px;
}

.m9-pending-copy,
.m9-roster-copy,
.m9-roster-heading,
.m9-security-card > span,
.m9-role-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.m9-pending-title,
.m9-security-title {
  color: var(--m9-text);
  font-weight: 700;
}

.m9-roster-name {
  color: var(--m9-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.m9-pending-description,
.m9-security-description,
.m9-roster-meta {
  color: var(--m9-muted);
  font-size: 13px;
  line-height: 1.45;
}

.m9-roster-meta {
  font-size: 12px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.m9-pending-card button {
  white-space: nowrap;
}

.m9-home-title {
  margin: 22px 0 12px;
}

button.m9-home-roster-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--m9-border);
  border-radius: 10px;
  color: var(--m9-text);
  background: var(--m9-surface);
  font-weight: 500;
  text-align: left;
}

button.m9-home-roster-row:hover {
  border-color: #bfd4ff;
  background: #f9fbff;
}

.m9-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid #bfd4ff;
  border-radius: 50%;
  color: var(--m9-blue);
  background: var(--m9-blue-soft);
  font-size: 16px;
  font-weight: 700;
}

.m9-roster-heading {
  align-items: flex-start;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
}

.m9-roster-position {
  font-size: 16px;
  font-weight: 700;
}

.m9-qualification-chip {
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--m9-blue);
  background: var(--m9-blue-soft);
  font-size: 12px;
  font-weight: 650;
}

.m9-status-badge,
.m9-readonly-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--m9-muted);
  background: #eef1f5;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.m9-status-badge.is-active {
  color: var(--m9-success);
  background: var(--m9-success-bg);
}

.m9-home-roster-row > .ph {
  color: var(--m9-muted);
  font-size: 20px;
}

.m9-security-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #bfd4ff;
  border-radius: 10px;
  background: var(--m9-blue-soft);
}

.m9-security-card > .ph {
  color: var(--m9-blue);
  font-size: 22px;
}

#m9-roster-list,
#m9-audit-list,
#m9-candidate-list,
#m9-invitation-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 22px;
  padding: 0;
  list-style: none;
}

#m9-roster-list li,
#m9-audit-list li,
#m9-candidate-list li,
#m9-invitation-list li {
  min-width: 0;
  padding: 14px;
  overflow-wrap: anywhere;
  border: 1px solid var(--m9-border);
  border-radius: 10px;
  color: var(--m9-muted);
  background: var(--m9-surface);
}

#m9-roster-list li,
#m9-candidate-list li,
#m9-invitation-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#m9-roster-list li > span,
#m9-candidate-list li > span,
#m9-invitation-list li > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

#m9-roster-list li button,
#m9-candidate-list li button,
#m9-invitation-list li button {
  flex: 0 0 auto;
}

#m9-history {
  display: grid;
  gap: 14px;
  padding: 14px 0 20px;
  border-bottom: 1px solid var(--m9-border);
}

.m9-history-record,
.m9-audit-entry {
  min-width: 0;
  padding: 16px;
  overflow-wrap: anywhere;
  border: 1px solid var(--m9-border);
  border-radius: 12px;
  background: var(--m9-surface);
}

.m9-history-record > h4,
.m9-audit-entry > h4,
.m9-version-entry > h5 {
  margin: 0;
  color: var(--m9-text);
  line-height: 1.4;
}

.m9-version-list {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.m9-version-entry {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--m9-border);
}

.m9-version-entry:first-child {
  padding-top: 0;
  border-top: 0;
}

.m9-record-facts,
.m9-technical-details dl {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.m9-record-fact {
  display: grid;
  grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.m9-record-fact dt,
.m9-record-fact dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.m9-record-fact dt {
  color: var(--m9-muted);
  font-size: 13px;
  font-weight: 650;
}

.m9-record-fact dd {
  color: var(--m9-text);
}

.m9-technical-details {
  min-width: 0;
  margin-top: 10px;
  color: var(--m9-muted);
  font-size: 13px;
}

.m9-technical-details summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--m9-blue);
  cursor: pointer;
}

#m9-employee-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px 24px 20px;
  border-radius: 20px 20px 0 0;
  background: var(--m9-surface);
}

#m9-employee-panel > h2 {
  display: none;
}

#m9-employee-panel > p {
  margin: 0;
  padding: 16px 4px;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--m9-border);
}

#m9-self-name {
  order: 1;
}

#m9-self-position {
  order: 2;
}

#m9-self-qualifications {
  order: 3;
}

#m9-self-access {
  order: 4;
  color: var(--m9-success);
  font-weight: 650;
}

#m9-self-effective-at {
  order: 5;
}

#m9-employee-authority {
  order: 6;
}

#m9-employee-panel details {
  order: 7;
  margin-top: 12px;
  border-bottom: 1px solid var(--m9-border);
}

#m9-employee-panel summary {
  min-height: 44px;
  padding: 11px 4px;
  color: var(--m9-muted);
  cursor: pointer;
}

#m9-self-version {
  padding: 0 4px 14px !important;
  color: var(--m9-muted);
  border: 0 !important;
}

#m9-session-countdown {
  order: 8;
  margin-top: 18px !important;
  border: 1px solid var(--m9-border) !important;
  border-radius: 10px;
  color: var(--m9-blue);
  font-weight: 700;
  text-align: left;
}

.m9-credential-role {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px !important;
  padding: 8px 4px 20px !important;
}

.m9-credential-role .m9-role-badge {
  width: 64px;
  height: 64px;
  font-size: 18px;
}

.m9-role-copy {
  justify-content: center;
}

.m9-role-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--m9-muted);
  font-size: 13px;
}

.m9-role-label .ph {
  color: var(--m9-blue);
  font-size: 15px;
}

.m9-role-value {
  color: var(--m9-text);
  font-size: 22px;
  font-weight: 700;
}

.m9-credential-fact {
  display: grid !important;
  grid-template-columns: 24px 86px minmax(0, 1fr);
  gap: 10px !important;
  min-height: 56px;
  padding: 13px 4px !important;
}

.m9-credential-label {
  color: var(--m9-muted);
  white-space: nowrap;
}

.m9-credential-value {
  color: var(--m9-text);
  font-weight: 650;
}

#m9-employee-authority {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px !important;
  margin-top: 14px !important;
  padding: 14px !important;
  border: 1px solid #bfd4ff !important;
  border-radius: 10px;
  color: var(--m9-text);
  background: var(--m9-blue-soft);
}

#m9-employee-authority > .ph {
  color: var(--m9-blue);
  font-size: 22px;
}

#m9-employee-authority span {
  display: flex;
  flex-direction: column;
}

#m9-employee-authority small {
  color: var(--m9-muted);
}

#m9-session-countdown .m9-countdown-copy {
  flex: 1 1 auto;
  color: var(--m9-muted);
  font-weight: 500;
}

#m9-session-countdown .m9-countdown-value {
  margin-left: auto;
  color: var(--m9-blue);
}

#m9-owner-nav,
#m9-employee-nav {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--m9-border);
  background: var(--m9-surface);
  box-shadow: 0 -4px 12px rgb(7 27 59 / 6%);
}

#m9-employee-nav {
  order: 8;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#m9-owner-nav a,
#m9-employee-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 8px;
  border-radius: 8px;
  color: var(--m9-muted);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

#m9-owner-nav .ph,
#m9-employee-nav .ph {
  font-size: 21px;
}

#m9-owner-nav a[aria-current="page"],
#m9-employee-nav a:first-child {
  color: var(--m9-blue);
  background: var(--m9-surface);
  box-shadow: inset 0 -3px var(--m9-blue);
}

form {
  display: grid;
  gap: 16px;
}

label,
fieldset {
  min-width: 0;
}

label {
  display: grid;
  gap: 7px;
  color: var(--m9-text);
  font-size: 14px;
  font-weight: 650;
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--m9-border);
  border-radius: 10px;
}

legend {
  padding: 0 6px;
  font-size: 14px;
  font-weight: 650;
}

fieldset label,
label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--m9-border);
  border-radius: 8px;
  color: var(--m9-text);
  background: var(--m9-surface);
}

input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0 4px 0 0;
  accent-color: var(--m9-blue);
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: var(--m9-danger);
  background: var(--m9-danger-bg);
}

button,
#m9-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--m9-blue);
  border-radius: 8px;
  color: var(--m9-surface);
  background: var(--m9-blue);
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
#m9-login-link:hover {
  background: #0b4dcc;
}

button:active,
#m9-login-link:active {
  transform: translateY(1px);
}

button:disabled,
button[aria-disabled="true"] {
  border-color: var(--m9-border);
  color: #98a2b3;
  background: #eef1f5;
  cursor: not-allowed;
  opacity: 1;
}

button[aria-busy="true"],
.is-loading {
  cursor: wait;
  opacity: 0.7;
}

#m9-app[aria-busy="true"] {
  cursor: progress;
}

#m9-close-person-sheet,
#m9-close-binding-sheet,
#m9-close-invitation-sheet,
#m9-logout {
  color: var(--m9-blue);
  background: var(--m9-surface);
}

#m9-app[data-view="employee"] > #m9-logout {
  order: 2;
  width: calc(100% - 48px);
  margin: 0 24px calc(92px + env(safe-area-inset-bottom));
}

#m9-logout {
  order: 4;
  width: calc(100% - 48px);
  margin: 16px 24px calc(104px + env(safe-area-inset-bottom));
}

#m9-redeem-result:not([data-state="idle"]),
.m9-sheet-status:not([data-state="idle"]) {
  padding: 12px;
  border: 1px solid var(--m9-border);
  border-radius: 8px;
}

#m9-status[data-state="success"],
#m9-redeem-result[data-state="success"] {
  color: var(--m9-success);
  background: var(--m9-success-bg);
}

#m9-status[data-state="loading"],
#m9-redeem-result[data-state="loading"],
.m9-sheet-status[data-state="loading"] {
  color: var(--m9-blue);
  background: var(--m9-blue-soft);
}

#m9-redeem-result[data-state="error"],
#m9-person-sheet-status[data-state="error"],
#m9-binding-sheet-status[data-state="error"],
#m9-status[data-state="error"],
.is-error {
  padding: 12px;
  border: 1px solid #fecdca;
  border-radius: 8px;
  color: var(--m9-danger);
  background: var(--m9-danger-bg);
}

.m9-sheet {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 430px;
  max-height: 88dvh;
  margin: 0 auto;
  padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--m9-border);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: var(--m9-surface);
  box-shadow: 0 -8px 24px rgb(7 27 59 / 14%);
}

.m9-sheet > h2 {
  margin-top: 12px;
}

.m9-sheet > p,
.m9-sheet li,
#m9-person-sheet-detail {
  overflow-wrap: anywhere;
}

#m9-person-sheet-detail > p,
#m9-person-sheet-detail > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--m9-border);
}

#m9-person-sheet-detail form {
  margin-top: 24px;
}

:focus-visible {
  outline: 3px solid var(--m9-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--m9-focus-inner);
}

@media (max-width: 380px) {
  .m9-header,
  .m9-content {
    padding-inline: 16px;
  }

  #m9-app > p,
  #m9-login,
  #m9-session-expiry,
  #m9-denied-panel,
  #m9-bootstrap-panel,
  #m9-unbound-panel,
  #m9-owner-home,
  #m9-owner-people,
  #m9-owner-history-view,
  #m9-employee-panel,
  .m9-sheet {
    padding-inline: 16px;
  }

  .m9-summary-value {
    font-size: 26px;
  }

  .m9-primary-action,
  #m9-owner-home > p:first-child:has(button) {
    align-items: stretch;
    flex-direction: column;
  }

  #m9-owner-home > p:first-child:has(button) button,
  #m9-roster-list li button,
  #m9-candidate-list li button,
  #m9-invitation-list li button {
    width: 100%;
  }

  #m9-roster-list li,
  #m9-candidate-list li,
  #m9-invitation-list li {
    align-items: stretch;
    flex-direction: column;
  }

  #m9-logout {
    width: calc(100% - 32px);
    margin-inline: 16px;
  }

  .m9-pending-card {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .m9-pending-icon {
    width: 48px;
    height: 48px;
  }

  .m9-pending-description {
    display: none;
  }

  button.m9-home-roster-row {
    grid-template-columns: 48px minmax(0, 1fr) auto 18px;
    gap: 8px;
    padding-inline: 10px;
  }

  .m9-role-badge {
    width: 48px;
    height: 48px;
  }

  .m9-credential-fact {
    grid-template-columns: 22px 78px minmax(0, 1fr);
    gap: 6px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
