@font-face {
  font-family: ABB Voice;
  src: url('fonts/ABBvoice_W_Lt.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: ABB Voice;
  src: url('fonts/ABBvoice_W_Rg.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: ABB Voice;
  src: url('fonts/ABBvoice_W_Md.woff2') format('woff2');
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  font-family: ABB Voice;
  src: url('fonts/ABBvoice_W_Bd.woff2') format('woff2');
  font-weight: 700 900;
  font-display: swap;
}
:root {
  --red: #ed1c24;
  --ink: #202327;
  --muted: #626970;
  --surface: #fff;
  --canvas: #f5f6f6;
  --line: #dfe2e4;
  --soft: #edf0f1;
  --nav-active: #f0f1f2;
  --button: #202327;
  --button-text: #fff;
  --positive: #167247;
  --positive-bg: #eaf5ef;
  --warning: #95620a;
  --warning-bg: #fbf3e0;
  --rz-font-family: 'ABB Voice', Arial, sans-serif;
  --rz-text-font-family: var(--rz-font-family);
  --rz-primary: #292d32;
  --rz-primary-light: #484f55;
  --rz-primary-lighter: #eef0f1;
  --rz-primary-dark: #141619;
  --rz-on-primary: #fff;
  --rz-border-radius: 3px;
  --rz-body-background-color: var(--canvas);
  --rz-text-color: var(--ink);
  --rz-grid-header-background-color: var(--soft);
  --rz-grid-header-color: var(--muted);
  font-family: 'ABB Voice', Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --ink: #f1f2f3;
  --muted: #a9b0b6;
  --surface: #202429;
  --canvas: #171a1e;
  --line: #363c43;
  --soft: #292f35;
  --nav-active: #30363d;
  --button: #f2f3f4;
  --button-text: #171a1e;
  --positive: #91d8af;
  --positive-bg: #203b2d;
  --warning: #f3cb78;
  --warning-bg: #41351e;
  --rz-primary: #e6e9ec;
  --rz-primary-light: #fff;
  --rz-primary-lighter: #343b42;
  --rz-primary-dark: #d4d8dd;
  --rz-on-primary: #191c20;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family: 'ABB Voice', Arial, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
body {
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
summary,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button,
input,
select {
  border-radius: 3px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible {
  outline: 3px solid #3286c1;
  outline-offset: 3px;
}
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #3286c1;
  outline-offset: 1px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.13;
  letter-spacing: -0.035em;
  font-weight: 500;
}
h1 {
  font-size: clamp(32px, 3.4vw, 48px);
}
h2 {
  font-size: 29px;
}
h3 {
  font-size: 21px;
}
small {
  font-size: 12px;
}
svg {
  display: block;
}
.rz-icon {
  font-size: 22px;
  flex-shrink: 0;
  font-variation-settings:
    'FILL' 0,
    'wght' 350,
    'GRAD' 0,
    'opsz' 24;
}
.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -80px;
  background: var(--surface);
  padding: 12px 20px;
  border: 2px solid var(--ink);
}
.skip-link:focus {
  top: 12px;
}
.topbar {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  height: 82px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
}
.abb-wordmark {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 1;
  color: var(--red);
  padding-right: 4px;
}
.brand-rule {
  height: 34px;
  width: 1px;
  background: var(--line);
}
.brand-subtitle {
  display: block;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-top: 6px;
}
.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.environment-label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.035em;
}
.environment-label > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ca9c33;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  min-width: 40px;
  min-height: 40px;
  padding: 8px;
}
.icon-button:hover {
  background: var(--soft);
}
.menu-toggle {
  display: none;
}
.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-name {
  font-size: 13px;
  font-weight: 500;
}
.account-name small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  max-width: 220px;
}
.avatar {
  height: 35px;
  width: 35px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 500;
}
.avatar.small {
  width: 32px;
  height: 32px;
  font-size: 10px;
}
.avatar.large {
  width: 56px;
  height: 56px;
  font-size: 18px;
}
.sidebar {
  position: fixed;
  z-index: 25;
  left: 0;
  top: 82px;
  bottom: 0;
  width: 228px;
  padding: 30px 15px 20px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.sidebar-eyebrow {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.14em;
  padding: 0 15px 16px;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 15px;
  border-radius: 3px;
  font-size: 13px;
  min-height: 44px;
  flex-shrink: 0;
}
.nav-item .rz-icon {
  font-size: 20px;
  color: var(--muted);
}
a.nav-item:hover {
  background: var(--soft);
}
.nav-item.active {
  background: var(--nav-active);
  font-weight: 500;
}
.nav-item.active:before {
  content: '';
  position: absolute;
  left: -15px;
  height: 24px;
  width: 3px;
  background: var(--red);
}
.nav-item.active .rz-icon {
  color: var(--red);
}
.nav-group-label {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.11em;
  padding: 25px 15px 7px;
}
.nav-item.unavailable {
  color: var(--muted);
  opacity: 0.75;
}
.soon-dot {
  margin-left: auto;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 35px 15px 0;
}
.connection-mark {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 8px;
  color: var(--muted);
}
.connection-mark span {
  width: 4px;
  height: 4px;
  background: var(--positive);
  border-radius: 50%;
}
.sidebar-bottom p {
  font-size: 12px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.main-content {
  margin: 82px 0 0 228px;
  padding: 25px 36px 0;
  min-height: calc(100vh - 82px);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.breadcrumb {
  display: flex;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 29px;
}
.breadcrumb span {
  color: #aab0b6;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 23px 0;
  margin-top: auto;
  color: var(--muted);
  font-size: 10px;
}
.page-footer > span:first-child {
  font-weight: 500;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
  padding: 11px 21px;
  background: var(--button);
  color: var(--button-text);
  border: 1px solid var(--button);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  transition:
    background 0.15s,
    transform 0.15s;
  white-space: nowrap;
}
.button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px #00000013;
}
.button .rz-icon {
  font-size: 18px;
}
.button-compact {
  min-height: 37px;
  padding: 8px 14px;
}
.button-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.button-outline:hover {
  background: var(--soft);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
}
.text-link:hover {
  text-decoration: underline;
}
.text-link .rz-icon {
  font-size: 16px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}
.red-dash {
  width: 24px;
  height: 3px;
  background: var(--red);
}
.welcome-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 305px;
  padding: 37px 35px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero-copy h1 {
  font-size: clamp(34px, 3.8vw, 56px);
  margin: 22px 0 19px;
  line-height: 1.07;
  letter-spacing: -0.045em;
}
.hero-copy h1 span {
  font-weight: 300;
}
.hero-copy p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 21px;
  margin-top: 25px;
}
.circuit-art {
  position: absolute;
  inset: 0 0 0 55%;
  color: #899399;
  pointer-events: none;
  opacity: 0.8;
}
.art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 25px 25px;
  mask-image: linear-gradient(90deg, transparent, #000);
}
.circuit-art svg {
  position: absolute;
  right: -30px;
  top: 18px;
  width: 90%;
  height: calc(100% - 40px);
}
.art-caption {
  position: absolute;
  right: 25px;
  bottom: 21px;
  font-family: monospace;
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--red);
  background: var(--surface);
  font-size: 11px;
  color: var(--muted);
}
.notice > .rz-icon {
  font-size: 19px;
  margin-top: 1px;
}
.notice strong {
  color: var(--ink);
  font-weight: 500;
}
.notice br {
  display: none;
}
.notice strong:after {
  content: ' · ';
  white-space: pre;
}
.workspace-section {
  margin: 33px 0 25px;
}
.section-heading h2 {
  margin-top: 10px;
  font-size: 28px;
}
.section-heading p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.shortcut-card {
  padding: 22px 20px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 233px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.shortcut-card:hover {
  border-color: #a5aaaf;
  transform: translateY(-2px);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.feature-icon {
  color: var(--ink);
}
.feature-icon .rz-icon {
  font-size: 26px;
}
.card-number {
  font-family: monospace;
  font-size: 10px;
  color: #919aa1;
}
.shortcut-card h3 {
  font-size: 19px;
}
.shortcut-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 11px;
  margin-bottom: 18px;
}
.card-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 500;
}
.card-link .rz-icon {
  font-size: 18px;
  color: var(--red);
}
.disabled-link {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}
.disabled-link .rz-icon {
  color: var(--muted);
}
.desktop-app-note {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  margin: 0 0 30px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.desktop-app-note > .rz-icon {
  font-size: 25px;
  color: var(--muted);
}
.desktop-app-note strong {
  font-weight: 500;
}
.desktop-app-note p {
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 6px 0 29px;
}
.page-heading h1 {
  margin-top: 13px;
  font-size: 42px;
}
.heading-dot {
  color: var(--red);
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.directory-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 32px;
  min-width: 0;
}
.directory-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  flex-wrap: wrap;
}
.search-control {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 430px;
  min-width: 230px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 12px;
  height: 42px;
  background: var(--surface);
}
.search-control > .rz-icon {
  font-size: 20px;
  color: var(--muted);
}
.search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  height: 100%;
  font-size: 12px;
  outline-offset: 0;
}
.search-control:focus-within {
  box-shadow: 0 0 0 2px #3286c1;
  border-color: transparent;
}
.search-control input:focus-visible {
  outline: none;
}
.search-control input::placeholder {
  color: var(--muted);
}
.filter-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  height: 42px;
  border-radius: 3px;
  padding: 0 9px;
  gap: 5px;
}
.filter-control > .rz-icon {
  font-size: 18px;
  color: var(--muted);
}
.filter-control select {
  background: transparent;
  border: 0;
  color: var(--ink);
  max-width: 210px;
  font-size: 11px;
  padding: 7px 16px 7px 4px;
  min-height: 38px;
}
.result-count {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}
.directory-grid {
  border: 0 !important;
  border-radius: 0 !important;
  --rz-grid-background-color: var(--surface);
  --rz-grid-header-background-color: var(--soft);
  --rz-grid-header-color: var(--muted);
  --rz-grid-cell-padding: 15px 14px;
  --rz-grid-header-padding: 12px 14px;
  --rz-grid-font-size: 12px;
  --rz-grid-bottom-border: 1px solid var(--line);
  --rz-grid-cell-color: var(--ink);
  --rz-grid-header-font-size: 10px;
  --rz-grid-header-font-weight: 500;
  --rz-grid-hover-background-color: var(--soft);
  --rz-pager-background-color: var(--surface);
  font-family: 'ABB Voice', Arial, sans-serif;
}
.directory-grid .rz-data-grid-data {
  min-height: 180px;
}
.directory-grid .rz-grid-table {
  border-collapse: collapse;
}
.directory-grid .rz-grid-table td {
  border-bottom: 1px solid var(--line) !important;
  border-right: 0 !important;
  vertical-align: middle;
  background: var(--surface);
  line-height: 1.55;
}
.directory-grid .rz-grid-table thead th {
  border-right: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  letter-spacing: 0.03em;
}
.directory-grid .rz-column-title-content {
  font-family: inherit;
}
.directory-grid .rz-cell-data {
  overflow: visible;
  white-space: normal;
}
.directory-grid .rz-datatable-odd > td {
  background: var(--surface);
}
.directory-grid .rz-paginator {
  border-top: 1px solid var(--line);
  padding: 15px;
  font-size: 11px;
  background: var(--surface);
}
.directory-grid .rz-pager-summary {
  font-size: 11px;
  color: var(--muted);
}
.person-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.person-cell strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.person-cell small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.cell-secondary {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.email-text {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.role-chip,
.type-chip {
  font-size: 9px;
  background: var(--soft);
  color: var(--ink);
  padding: 3px 6px;
  border-radius: 3px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--line);
}
abbr.type-chip {
  text-decoration: none;
  cursor: help;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  padding: 4px 7px;
  border-radius: 3px;
  background: var(--soft);
  color: var(--muted);
  white-space: nowrap;
}
.status-pill > span {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.status-pill.positive {
  background: var(--positive-bg);
  color: var(--positive);
}
.status-pill.warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.row-details summary {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  min-height: 30px;
}
.row-details summary .rz-icon {
  font-size: 15px;
}
.row-details dl {
  font-size: 10px;
  margin: 5px 0 0;
}
.row-details dt {
  color: var(--muted);
}
.row-details dd {
  margin: 0 0 8px;
}
.course-code {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 4px;
}
.course-name {
  font-weight: 500;
  font-size: 12px;
  display: block;
}
.date-main {
  font-size: 11px;
  white-space: nowrap;
}
.seat-count {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 10px;
}
.seat-count strong {
  font-size: 12px;
  font-weight: 500;
}
.seat-count span {
  color: var(--muted);
}
progress {
  appearance: none;
  border: 0;
  background: var(--soft);
  width: 90px;
  height: 3px;
  display: block;
  margin: 5px 0 0;
}
progress::-webkit-progress-bar {
  background: var(--soft);
}
progress::-webkit-progress-value {
  background: var(--muted);
}
progress::-moz-progress-bar {
  background: var(--muted);
}
.table-note {
  border-top: 1px solid var(--line);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
}
.table-note .rz-icon {
  font-size: 15px;
}
.query-error {
  padding: 15px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 12px;
}
.query-error button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  color: inherit;
}
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
.persona-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.persona-card h2 {
  font-size: 23px;
  margin-top: 20px;
}
.persona-card p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  margin-bottom: 25px;
}
.persona-card .button {
  margin-top: auto;
  width: 100%;
}
.signout-form {
  margin-bottom: 30px;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  padding: 10px;
}
.empty-panel {
  padding: 70px 20px;
  text-align: center;
  margin: auto;
}
.empty-panel > .rz-icon {
  font-size: 44px;
  margin-bottom: 24px;
  color: var(--red);
}
.empty-panel .eyebrow {
  justify-content: center;
}
.empty-panel h1 {
  max-width: 600px;
  margin: 20px auto;
  font-size: 36px;
}
.empty-panel p {
  color: var(--muted);
  margin: 15px 0 30px;
  font-size: 13px;
}
#blazor-error-ui {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  background: var(--warning-bg);
  color: var(--warning);
  z-index: 100;
}
#blazor-error-ui a {
  text-decoration: underline;
}
.navigation-scrim {
  display: none;
}
@media (min-width: 1700px) {
  .main-content {
    padding-left: 55px;
    padding-right: 55px;
  }
  .welcome-hero {
    min-height: 355px;
  }
  .shortcut-card {
    min-height: 250px;
  }
}
@media (max-width: 1200px) {
  .topbar {
    padding: 0 22px;
  }
  .topbar-actions {
    gap: 13px;
  }
  .sidebar {
    width: 200px;
    padding-left: 11px;
    padding-right: 11px;
  }
  .main-content {
    margin-left: 200px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shortcut-card {
    min-height: 210px;
  }
  .card-top {
    margin-bottom: 18px;
  }
  .circuit-art {
    left: 65%;
    opacity: 0.5;
  }
  .environment-label {
    display: none;
  }
  .hero-copy h1 {
    font-size: 44px;
  }
  .nav-item.active:before {
    left: -11px;
  }
  .directory-toolbar {
    gap: 10px;
    padding: 15px;
  }
  .result-count {
    margin-left: 0;
  }
}
@media (max-width: 800px) {
  .topbar {
    height: 68px;
    padding: 0 15px;
    gap: 10px;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .brand {
    font-size: 16px;
    gap: 12px;
  }
  .abb-wordmark {
    font-size: 30px;
    letter-spacing: -3px;
  }
  .brand-rule {
    height: 28px;
  }
  .brand-subtitle {
    font-size: 8px;
  }
  .topbar-actions {
    gap: 4px;
  }
  .account-name,
  .account-chip > .rz-icon {
    display: none;
  }
  .account-chip {
    margin-left: 4px;
  }
  .sidebar {
    top: 68px;
    transform: translateX(-100%);
    transition: transform 0.18s;
    width: 240px;
  }
  .main-content {
    margin-top: 68px;
    margin-left: 0;
    padding: 20px 22px 0;
    min-height: calc(100vh - 68px);
  }
  [data-menu-open] .sidebar {
    transform: translateX(0);
  }
  [data-menu-open] .navigation-scrim {
    display: block;
    position: fixed;
    inset: 68px 0 0;
    background: #0007;
    z-index: 24;
    border: 0;
    border-radius: 0;
  }
  .breadcrumb {
    margin-bottom: 20px;
  }
  .hero-copy h1 {
    font-size: 43px;
  }
  .welcome-hero {
    padding: 30px;
    min-height: 315px;
  }
  .persona-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-heading h1 {
    font-size: 36px;
  }
  .page-heading > .button {
    font-size: 11px;
    padding: 10px 14px;
  }
  .directory-toolbar {
    align-items: stretch;
  }
  .search-control {
    max-width: none;
    flex-basis: 100%;
  }
  .filter-control {
    flex: 1;
  }
  .filter-control select {
    max-width: none;
    width: 100%;
  }
  .result-count {
    align-self: center;
  }
  .page-footer {
    margin-top: 10px;
  }
  .sidebar-bottom {
    padding-top: 25px;
  }
}
@media (max-width: 600px) {
  html,
  body {
    font-size: 14px;
  }
  .topbar {
    padding: 0 8px;
    gap: 5px;
  }
  .brand {
    font-size: 14px;
    gap: 9px;
  }
  .abb-wordmark {
    font-size: 27px;
  }
  .brand-rule {
    height: 27px;
  }
  .brand-subtitle {
    font-size: 7px;
    letter-spacing: 0.12em;
  }
  .account-chip .avatar {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .topbar .icon-button {
    min-width: 34px;
    padding: 5px;
  }
  .topbar .button-compact {
    padding: 8px 10px;
    font-size: 10px;
    gap: 5px;
  }
  .topbar .button-compact > .rz-icon {
    display: none;
  }
  .main-content {
    padding: 18px 16px 0;
  }
  .breadcrumb {
    font-size: 9px;
    gap: 7px;
    margin-bottom: 19px;
  }
  .welcome-hero {
    padding: 25px 22px;
    min-height: 345px;
    align-items: flex-start;
  }
  .hero-copy h1 {
    font-size: 39px;
    margin-top: 25px;
  }
  .hero-copy p {
    font-size: 12px;
    max-width: 265px;
  }
  .desktop-break {
    display: none;
  }
  .circuit-art {
    left: 45%;
    opacity: 0.2;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-top: 23px;
  }
  .hero-actions .text-link {
    font-size: 10px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.12em;
  }
  .notice {
    font-size: 10px;
    padding: 12px;
    gap: 8px;
  }
  .notice br {
    display: block;
  }
  .notice strong:after {
    content: '';
  }
  .workspace-section {
    margin-top: 27px;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .section-heading p {
    font-size: 11px;
    max-width: 260px;
  }
  .shortcut-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
  }
  .shortcut-card {
    min-height: 190px;
    padding: 20px;
  }
  .card-top {
    margin-bottom: 17px;
  }
  .shortcut-card h3 {
    font-size: 22px;
  }
  .shortcut-card p {
    font-size: 12px;
    max-width: 280px;
  }
  .card-link {
    font-size: 11px;
  }
  .disabled-link {
    font-size: 10px;
  }
  .page-footer {
    font-size: 9px;
    display: block;
    padding: 20px 0;
  }
  .page-footer > span {
    display: block;
    margin: 4px 0;
  }
  .page-heading {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 34px;
    margin-top: 10px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 240px;
  }
  .page-heading > .button {
    min-height: 36px;
    padding: 8px 10px;
    margin-top: 27px;
    gap: 5px;
    font-size: 10px;
  }
  .page-heading > .button .rz-icon {
    font-size: 15px;
  }
  .directory-toolbar {
    padding: 13px;
    gap: 10px;
  }
  .search-control {
    min-width: 0;
    height: 43px;
  }
  .search-control input {
    font-size: 12px;
  }
  .filter-control {
    height: 39px;
  }
  .result-count {
    font-size: 10px;
    min-width: 70px;
    text-align: right;
  }
  .directory-grid {
    --rz-grid-cell-padding: 7px 12px;
  }
  .directory-grid.rz-datatable-scrollable .rz-grid-table {
    width: 100% !important;
  }
  .directory-grid .rz-grid-table colgroup {
    display: none;
  }
  .directory-grid .rz-grid-table thead {
    display: none;
  }
  .directory-grid .rz-grid-table tr {
    display: block;
    border-top: 1px solid var(--line);
    padding: 12px 0 10px;
    width: 100% !important;
  }
  .directory-grid .rz-grid-table td {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    width: 100% !important;
    border: 0 !important;
    padding: 6px 13px !important;
    min-height: 28px;
  }
  .directory-grid .rz-grid-table td::before {
    content: attr(data-label);
    font-size: 10px;
    color: var(--muted);
    min-width: 70px;
    max-width: 100px;
    line-height: 1.8;
  }
  .directory-grid .rz-grid-table td .rz-column-title {
    font-size: 10px;
    color: var(--muted);
    font-weight: 400;
  }
  .directory-grid .rz-grid-table td .rz-cell-data {
    flex: 1;
    max-width: 100%;
    text-align: right;
    overflow-wrap: anywhere;
  }
  .directory-grid .rz-grid-table td:first-child {
    padding-top: 5px !important;
    padding-bottom: 12px !important;
  }
  .directory-grid .rz-grid-table td:first-child::before {
    display: none;
  }
  .directory-grid .rz-grid-table td:first-child .rz-column-title {
    display: none;
  }
  .directory-grid .rz-grid-table td:first-child .rz-cell-data {
    text-align: left;
  }
  .person-cell strong,
  .course-name {
    font-size: 14px;
  }
  .course-code {
    font-size: 10px;
  }
  .directory-grid .rz-grid-table td .role-list {
    justify-content: flex-end;
  }
  .directory-grid .rz-grid-table td .row-details summary {
    justify-content: flex-end;
  }
  .directory-grid .rz-grid-table td .seat-count {
    justify-content: flex-end;
  }
  .directory-grid progress {
    margin-left: auto;
  }
  .directory-grid .rz-paginator {
    padding: 12px 7px;
    justify-content: center;
    gap: 5px;
  }
  .directory-grid .rz-pager-summary {
    font-size: 10px;
    flex-basis: 100%;
    text-align: center;
  }
  .table-note {
    font-size: 9px;
    padding: 12px;
    align-items: flex-start;
  }
  .table-note .rz-icon {
    margin-top: 1px;
  }
  .persona-grid {
    grid-template-columns: 1fr;
  }
  .persona-card {
    padding: 23px;
  }
  .empty-panel {
    padding: 50px 5px;
  }
  .empty-panel h1 {
    font-size: 30px;
  }
  .desktop-app-note {
    font-size: 11px;
  }
  .desktop-app-note p {
    font-size: 10px;
  }
  .result-count {
    white-space: normal;
  }
  .rz-pager-pages {
    gap: 2px;
  }
  .rz-pager-element {
    min-width: 30px !important;
    padding: 4px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

h1:focus {
  outline: none;
}
@media (max-width: 800px) {
  .sidebar {
    visibility: hidden;
  }
  [data-menu-open] .sidebar {
    visibility: visible;
  }
}

img.abb-wordmark {
  width: 66px;
  height: auto;
  letter-spacing: normal;
  padding: 0;
}
@media (max-width: 800px) {
  img.abb-wordmark {
    width: 46px;
  }
}

.directory-grid {
  --rz-grid-background-color: var(--surface);
  --rz-grid-stripe-background-color: var(--soft);
  --rz-grid-stripe-odd-background-color: var(--surface);
  --rz-grid-cell-color: var(--ink);
  --rz-grid-frozen-stripe-background-color: var(--soft);
  --rz-grid-frozen-stripe-odd-background-color: var(--surface);
}
@media (max-width: 600px) {
  .directory-grid .rz-grid-table td::before {
    display: none;
  }
}
/* Legacy information hierarchy, with accessible read-only inspection actions. */
.name-with-gender {
  display: flex;
  align-items: center;
  gap: 7px;
}
.name-with-gender .rz-icon {
  font-size: 18px;
}
.role-check,
.access-state.enabled {
  color: var(--positive);
}
.access-state.disabled {
  color: #d63b45;
}
.directory-linked,
.view-action {
  color: #347aab;
}
.view-action {
  border: 1px solid var(--line);
  min-height: 36px;
  min-width: 36px;
}
.course-information {
  display: inline;
  margin-left: 5px;
}
.course-heading {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 100%;
}
.course-heading .course-name {
  min-width: 0;
}
.course-heading .course-information {
  flex: 0 0 auto;
  margin-left: 0;
}
.info-tooltip .tooltip-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: help;
}
.course-information .tooltip-trigger .rz-icon {
  font-size: 16px;
}
.info-tooltip .tooltip-trigger:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.tooltip-content {
  position: fixed;
  inset: auto;
  margin: 0;
  box-sizing: border-box;
  width: max-content;
  max-width: min(360px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 6px 24px #0003;
  font:
    400 13px/1.6 'ABB Voice',
    sans-serif;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.legacy-status {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 3px;
  color: #236086;
  background: #e4f0fa;
  font-size: 11px;
}
.sync-state {
  color: var(--muted);
}
.sync-1,
.sync-2 {
  color: #80858b;
}
.sync-3 {
  color: var(--positive);
}
.sync-4 {
  color: #347aab;
}
.sync-5 {
  color: #b58a00;
}
.sync-6 {
  color: #d63b45;
}
.seat-bar {
  width: 100%;
  min-width: 65px;
  height: 9px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--soft);
  overflow: hidden;
  --seat-color: #279764;
}
.seat-bar > span {
  display: block;
  height: 100%;
  background: var(--seat-color);
}
.seat-bar.red {
  --seat-color: #d63b45;
  border-color: #d63b45;
}
.seat-bar.yellow {
  --seat-color: #d5ab19;
}
.seat-bar.green {
  --seat-color: #279764;
}
.seat-bar.cyan {
  --seat-color: #26acc6;
}
.directory-grid .rz-grid-table tbody > tr > td {
  border-bottom: 1px solid var(--line) !important;
}
.directory-grid .rz-grid-table td:last-child {
  border-bottom: 1px solid var(--line) !important;
}
.directory-grid .rz-cell-data {
  white-space: normal;
  overflow-wrap: anywhere;
}
.inspection-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow: auto;
}
.inspection-tabs a,
.inspection-tabs span {
  padding: 12px 18px;
  white-space: nowrap;
  font-size: 14px;
}
.inspection-tabs a.active {
  border-bottom: 3px solid var(--red);
  font-weight: 500;
}
.inspection-tabs span {
  color: var(--muted);
  opacity: 0.6;
}
.inspection-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.inspection-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  min-width: 0;
}
.inspection-card h2 {
  font-size: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.015em;
}
.inspection-card dl {
  margin-bottom: 0;
}
.inspection-card dl > div {
  display: grid;
  grid-template-columns: minmax(100px, 35%) minmax(0, 1fr);
  gap: 16px;
  padding: 9px 0;
  font-size: 14px;
}
.inspection-card dt {
  font-weight: 500;
}
.inspection-card dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
  min-height: 21px;
}
.inspection-table-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: auto;
}
.inspection-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
.inspection-table th {
  text-align: left;
  background: var(--soft);
  font-size: 12px;
}
.inspection-table th,
.inspection-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.inspection-pager {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
}
.inspection-pager > span {
  margin-right: auto;
}
.inspection-empty {
  padding: 20px;
}
.inspection-table-panel .button {
  padding: 8px 14px;
  font-size: 12px;
}
:root[data-theme='dark'] .legacy-status {
  color: #aad9fa;
  background: #1e384c;
}
@media (min-width: 601px) {
  .users-grid .rz-grid-table {
    min-width: 1100px;
  }
  .classes-grid .rz-grid-table {
    min-width: 1160px;
  }
}
@media (max-width: 800px) {
  .inspection-sections {
    grid-template-columns: 1fr;
  }
  .inspection-card {
    padding: 20px;
  }
  .inspection-card dl > div {
    font-size: 13px;
  }
  .inspection-tabs a,
  .inspection-tabs span {
    padding: 12px;
  }
  .inspection-table thead {
    display: none;
  }
  .inspection-table tr {
    display: block;
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .inspection-table td {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border: 0;
    overflow-wrap: anywhere;
  }
  .inspection-table td:before {
    content: attr(data-label);
    font-weight: 500;
    min-width: 100px;
  }
  .inspection-pager {
    font-size: 12px;
  }
}
@media (max-width: 600px) {
  .directory-grid .rz-grid-table tbody > tr > td,
  .directory-grid .rz-grid-table td:last-child {
    border-bottom: 0 !important;
  }
  .directory-grid .rz-grid-table tbody > tr {
    border-bottom: 1px solid var(--line);
  }
  .name-with-gender {
    justify-content: flex-start;
  }
  .course-information {
    display: block;
  }
  .seat-bar {
    min-width: 130px;
  }
  .directory-grid .rz-grid-table td .rz-column-title {
    flex: 0 0 100px;
    text-align: left;
  }
  .inspection-card dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
.directory-grid .rz-grid-table tbody > tr[data-in-progress='true'] > td {
  background: var(--positive-bg) !important;
}

.directory-grid .rz-grid-table tbody > tr > td .rz-cell-data {
  white-space: normal !important;
  text-overflow: clip !important;
  overflow: visible !important;
}
.directory-grid .rz-grid-table tbody > tr > td {
  white-space: normal !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
}
.inspection-sections {
  align-items: start;
}

/* Keep short role headings aligned with their marks and preserve whole status words. */
@media (min-width: 601px) {
  .users-grid thead th:nth-child(n + 6):nth-child(-n + 9) .rz-column-title {
    justify-content: center;
  }
  .users-grid tbody td:nth-child(n + 6):nth-child(-n + 9) {
    text-align: center;
  }
}
.legacy-status {
  overflow-wrap: normal;
  word-break: normal;
}

/* Upcoming Classes keeps the legacy personal cards and staff events views. */
.events-heading {
  font-size: 20px;
  margin: 0 0 24px;
}
.upcoming-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.upcoming-card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.upcoming-card > img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}
.upcoming-card-body {
  padding: 24px;
  flex: 1;
}
.upcoming-card h2 {
  font-size: 23px;
  margin: 0 0 12px;
}
.upcoming-description {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.upcoming-card dl {
  margin: 0;
  font-size: 13px;
}
.upcoming-card dl > div {
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
}
.upcoming-card dt {
  font-weight: 500;
}
.upcoming-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.upcoming-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  background: var(--soft);
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.upcoming-card .text-link {
  font-size: 13px;
}
.upcoming-empty {
  border-left: 3px solid var(--red);
  padding: 24px;
  background: var(--surface);
}
.upcoming-empty h2 {
  font-size: 23px;
}
.upcoming-empty p {
  font-size: 14px;
}
.upcoming-empty [aria-disabled] {
  text-decoration: underline dotted;
}
@media (min-width: 601px) {
  .events-grid .rz-grid-table {
    min-width: 1160px;
  }
}
@media (max-width: 1200px) {
  .upcoming-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .upcoming-cards {
    grid-template-columns: 1fr;
  }
}

/* Administration log workspace: the same dense information, with wrapping mobile rows. */
.log-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  padding-bottom: 4px;
}
.log-tabs button {
  flex-shrink: 0;
  font: inherit;
  font-size: 13px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.log-tabs button[aria-selected='true'] {
  color: var(--ink);
  border-color: #e52629;
  background: var(--surface);
}
.log-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.log-filters button {
  font: inherit;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 10px;
  cursor: pointer;
  color: var(--ink);
  background: var(--surface);
}
.log-filters button::before {
  content: '✓';
  opacity: 0;
  margin-right: 6px;
}
.log-filters button[aria-pressed='true'] {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}
.log-filters button[aria-pressed='true']::before {
  opacity: 1;
}
.log-page-size {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
}
.log-page-size select {
  font: inherit;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 7px;
  border-radius: 4px;
}
.logs-grid .rz-cell-data {
  white-space: normal;
  overflow-wrap: anywhere;
}
.log-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 3px;
  background: var(--soft);
}
.log-tone-information {
  color: #25639f !important;
}
.log-tone-warning {
  color: #a96000 !important;
}
.log-tone-error {
  color: #c3323d !important;
}
.log-tone-success {
  color: #287149 !important;
}
.log-tone-fe {
  color: #7951aa !important;
}
.log-tone-entity {
  color: #a22838 !important;
}
.log-tone-fatal {
  color: var(--ink) !important;
}
[data-theme='dark'] .log-tone-information {
  color: #85baf1 !important;
}
[data-theme='dark'] .log-tone-warning {
  color: #edbd62 !important;
}
[data-theme='dark'] .log-tone-error {
  color: #ff949e !important;
}
[data-theme='dark'] .log-tone-success {
  color: #7bd1a0 !important;
}
[data-theme='dark'] .log-tone-fe {
  color: #c6a5ee !important;
}
[data-theme='dark'] .log-tone-entity {
  color: #ff9aa9 !important;
}
.log-properties,
.log-exception {
  font:
    11px/1.55 ui-monospace,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0 0;
}
.log-properties {
  max-height: 300px;
  overflow: auto;
}
.log-information {
  max-width: 520px;
  font-size: 12px;
}
.log-notice {
  padding: 16px 20px;
  color: var(--ink);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.log-dialog::backdrop {
  background: #0008;
}
.log-dialog {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 16px 60px #0004;
}
.log-dialog h2 {
  font-size: 21px;
}
.log-dialog p {
  line-height: 1.6;
}
.log-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
.log-confirm {
  background: #287149 !important;
  color: white !important;
}
@media (max-width: 767px) {
  .log-panel .directory-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .log-panel .search-control {
    order: 3;
    flex: 1 0 100%;
  }
  .log-tabs {
    margin-inline: -4px;
  }
  .log-filters {
    padding: 16px;
  }
  .logs-grid .rz-cell-data {
    max-width: 100%;
  }
  .log-information {
    margin-top: 12px;
  }
}

/* Mail shares the application shell; authored message colors stay independent of the theme. */
.mail-toolbar {
  flex-wrap: wrap;
}
.mail-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  padding-top: 8px;
}
.mail-filter,
.mail-status-actions button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 3px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.mail-filter[aria-pressed='true'] {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.mail-filter:focus-visible,
.mail-status-actions button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.mail-error-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--warning);
  font-size: 13px;
}
.mail-grid .rz-data-row td {
  vertical-align: middle;
}
.mail-grid .mail-subject {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.mail-grid .mail-subject:hover {
  text-decoration: underline;
}
.mail-row-actions {
  display: flex;
  gap: 2px;
}
.mail-row-actions .icon-button {
  width: 32px;
  height: 32px;
}
.mail-source {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  font-weight: 500;
}
.mail-status-select {
  font: inherit;
  font-size: 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 6px;
  width: 100%;
}
.mail-error-tooltip {
  color: var(--warning);
}
.mail-heading {
  align-items: flex-start;
}
.mail-heading h1 {
  font-size: clamp(25px, 3vw, 36px);
}
.mail-heading p {
  margin: 8px 0;
}
.mail-dates {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.mail-heading-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.mail-save {
  background: var(--positive);
  border-color: var(--positive);
  color: white;
}
.mail-workspace {
  max-width: 1100px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 4px;
  padding: 24px;
}
.mail-context {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.mail-status-badge,
.mail-source-badge {
  font-size: 12px;
  padding: 6px 10px;
  background: var(--positive-bg);
  color: var(--positive);
  border-radius: 3px;
}
.mail-source-badge {
  color: var(--muted);
  background: var(--soft);
}
.mail-status-actions {
  display: flex;
  gap: 5px;
  margin-left: auto;
}
.mail-status-actions button {
  color: var(--ink);
  min-width: 36px;
}
.mail-delivery-error {
  display: flex;
  gap: 10px;
  color: var(--warning);
  background: var(--warning-bg);
  padding: 12px 16px;
  border-left: 3px solid var(--warning);
  margin-bottom: 20px;
  font-size: 14px;
}
.mail-fields {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.mail-address-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
  min-width: 0;
}
.mail-address-field label {
  font-size: 13px;
  font-weight: 500;
}
.mail-address-field input {
  font: inherit;
  font-size: 14px;
  min-width: 0;
  padding: 11px 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.mail-address-field input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.mail-address-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.mail-content-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 12px;
}
.mail-workspace h2 {
  font-size: 17px;
  font-weight: 500;
}
.mail-editors > h2 {
  margin-top: 28px;
}
.mail-rich-editor {
  min-width: 0;
}
.mail-rich-editor .rz-html-editor {
  width: 100%;
  border-color: var(--line);
}
.mail-rich-editor :is(.rz-html-editor-content, .mail-initial-content) {
  background: white;
  color: #202327;
  color-scheme: light;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  padding: 24px;
  overflow-wrap: anywhere;
  max-height: 650px;
  overflow: auto;
}
.mail-rich-editor :is(.rz-html-editor-content, .mail-initial-content) img {
  max-width: 100%;
}
.mail-rich-editor .rz-html-editor-toolbar {
  background: var(--soft);
  flex-wrap: wrap;
  border-color: var(--line);
}
.mail-rich-editor .rz-html-editor-toolbar button {
  color: var(--ink);
}
.mail-rich-editor .rz-html-editor-toolbar .rz-state-active {
  background: var(--ink);
  color: var(--surface);
}
.mail-preview {
  display: block;
  width: 100%;
  height: 780px;
  border: 1px solid var(--line);
  background: white;
  color-scheme: light;
  border-radius: 3px;
}
.mail-recipients {
  margin: 0 0 20px;
}
.mail-recipients > div {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 10px 0;
}
.mail-recipients dt {
  width: 32px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 13px;
}
.mail-recipients dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.mail-address-chip {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 5px 9px;
  border-radius: 3px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.mail-view-subject {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  line-height: 1.5;
}
.mail-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.mail-attachments > span {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.mail-notice {
  margin: 12px 20px;
  padding: 12px;
  background: var(--positive-bg);
  color: var(--positive);
}
.mail-loading {
  padding: 20px;
}
@media (max-width: 700px) {
  .mail-heading {
    flex-direction: column;
    gap: 16px;
  }
  .mail-workspace {
    padding: 16px;
  }
  .mail-address-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .mail-status-actions {
    margin-left: 0;
    flex-wrap: wrap;
  }
  .mail-rich-editor :is(.rz-html-editor-content, .mail-initial-content) {
    padding: 16px;
  }
  .mail-grid .rz-data-row .mail-row-actions {
    justify-content: flex-end;
  }
  .mail-preview {
    height: 850px;
  }
}
.mail-rich-editor :is(.rz-html-editor-content, .mail-initial-content) h2 {
  font:
    bold 23px/1.3 Arial,
    sans-serif;
  margin: 0 0 16px;
  color: inherit;
}
.mail-rich-editor :is(.rz-html-editor-content, .mail-initial-content) h3 {
  font:
    bold 17px/1.4 Arial,
    sans-serif;
  margin: 24px 0 12px;
  color: inherit;
}
.mail-rich-editor :is(.rz-html-editor-content, .mail-initial-content) p {
  margin: 12px 0;
}
.mail-rich-editor :is(.rz-html-editor-content, .mail-initial-content) a {
  color: #17638a;
  text-decoration: underline;
}
.mail-rich-editor :is(.rz-html-editor-content, .mail-initial-content) li {
  margin: 6px 0;
}
:root[data-theme='dark'] .mail-save {
  color: #133723;
}

/* Class authoring retains the legacy sections while making fields usable on phones. */
.class-editor {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  min-width: 0;
}
.class-fields {
  border: 0;
  margin: 0;
  padding: 20px 0;
  min-width: 0;
}
.class-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.class-form-grid[hidden],
[hidden] {
  display: none !important;
}
.class-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-weight: 500;
}
.class-field label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.class-field input,
.class-field select,
.class-field textarea,
.class-table-scroll input {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 11px 12px;
  border-radius: 3px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.class-field input[aria-invalid='true'],
.class-table-scroll input[aria-invalid='true'] {
  border-color: #d33;
}
.class-field textarea {
  resize: vertical;
}
.class-wide {
  grid-column: 1/-1;
}
/* Both comment headers reserve the save-button height, keeping their boxes aligned. */
.class-comment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
}
.class-comment-heading label {
  display: block;
}
.class-comment-save {
  min-height: 36px;
  padding: 6px 12px;
  gap: 6px;
}
.class-comments-grid textarea {
  height: 180px;
  min-height: 180px;
}
.class-comments-grid textarea[readonly] {
  background: var(--surface-alt, var(--surface));
  color: var(--muted);
}
.class-comment-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: class-comment-spin 0.8s linear infinite;
}
@keyframes class-comment-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .class-comment-spinner {
    animation: none;
  }
}
.class-check {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.class-check input {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}
.class-mode,
.class-save-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.class-mode [aria-pressed='true'] {
  box-shadow: inset 0 -3px var(--ink);
}
.class-save-actions {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.class-tabs button {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 14px 18px;
  white-space: nowrap;
  cursor: pointer;
}
.class-tabs button.active {
  border-bottom-color: var(--ink);
  font-weight: 700;
}
.class-tabs {
  overflow: auto;
}
.class-form-error {
  white-space: pre-line;
}
.class-table-scroll {
  overflow: auto;
  margin: 16px 0 28px;
}
.class-table-scroll input {
  min-width: 90px;
  max-width: 200px;
}
.course-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.course-options a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.language-typeahead {
  position: relative;
}
.language-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0;
  z-index: 10;
  background: var(--surface);
}
.class-person-matches {
  list-style: none;
  padding: 0;
  max-height: 230px;
  overflow: auto;
  border: 1px solid var(--line);
}
.class-person-matches button {
  font: inherit;
  background: var(--surface);
  color: var(--ink);
  border: 0;
  text-align: left;
  padding: 10px;
  width: 100%;
  cursor: pointer;
}
.language-suggestions button[aria-selected="true"],
.class-person-matches button:hover {
  background: var(--soft);
}
.class-thumbnails {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .class-editor {
    padding: 14px;
  }
  .class-form-grid {
    grid-template-columns: 1fr;
  }
  .class-save-actions .button {
    width: 100%;
  }
  .class-tabs button {
    padding: 12px;
  }
  .class-mode .class-field {
    width: 100%;
  }
}
.class-thumbnails label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 220px;
}
.class-thumbnails img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.class-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.class-row-actions .icon-button {
  flex: 0 0 32px;
  min-width: 32px;
  width: 32px;
  min-height: 32px;
  padding: 6px;
  border: 1px solid var(--line);
}

.class-date-dialog {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  color: var(--ink);
  background: var(--surface);
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  box-sizing: border-box;
}
.class-date-dialog::backdrop {
  background: rgb(0 0 0 / 0.45);
}
.class-date-dialog h2 {
  margin-top: 0;
}
.class-date-dialog h3 {
  font-size: 1rem;
  margin: 0 0 12px;
}
.class-date-calendars {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.class-date-calendars section {
  min-width: 0;
  flex: 1;
}
.class-date-dialog .rz-datepicker-inline {
  width: 100%;
  min-width: 0;
}
.class-date-summary {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  .class-date-dialog {
    padding: 16px;
    width: 352px;
  }
  .class-date-calendars {
    flex-direction: column;
  }
  .class-save-actions .button {
    white-space: normal;
    text-align: center;
  }
}

.class-date-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.class-date-field > .button {
  align-self: flex-start;
}
.class-date-dialog > .class-mode {
  position: sticky;
  bottom: -16px;
  background: var(--surface);
  padding: 12px 0;
  margin-bottom: 0;
}

.class-calendar-time {
  margin-top: 12px;
}
.class-calendar-time input {
  max-width: 180px;
}
.class-date-dialog .rz-state-active {
  background: var(--rz-primary) !important;
  color: var(--rz-on-primary) !important;
}
.class-status-selection {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.class-status-colour {
  width: 24px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.enrollment-document-select {
  max-width: 15rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  font: inherit;
}
.enrollment-move-dialog {
  width: min(60rem, calc(100vw - 2rem));
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line);
  padding: 1.5rem;
  background: var(--surface);
  color: var(--ink);
}
.enrollment-move-dialog::backdrop {
  background: #0008;
}
.enrollment-move-dialog .class-field {
  margin-block: 1rem;
}
.enrollment-move-dialog select {
  max-width: 100%;
}
.enrollment-editor .class-check {
  align-self: center;
}

.user-new-address {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1rem;
}
.user-editor .class-field + .button {
  margin-top: 0.5rem;
}

/* Course directory shares the compact table and form system. */
.course-status {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  font-size: 0.85rem;
  background: var(--soft);
}
.course-status.scope-1 {
  color: #187747;
  background: #e4f2e9;
}
.course-status.scope-0 {
  color: #785b00;
  background: #fff2c8;
}
.course-status.scope-2 {
  color: #a12d32;
  background: #fbe8e9;
}
[data-theme='dark'] .course-status.scope-1 {
  color: #9ad8b4;
  background: #203f31;
}
[data-theme='dark'] .course-status.scope-0 {
  color: #f1d37b;
  background: #453b20;
}
[data-theme='dark'] .course-status.scope-2 {
  color: #f5afb2;
  background: #49292c;
}
.course-preview {
  width: 100%;
  max-width: 360px;
  max-height: 240px;
  object-fit: contain;
}

.company-employee-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.company-address-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.company-address-columns section {
  min-width: 0;
}
.company-address-columns h2 {
  font-size: 1.2rem;
}
.company-address-columns .search-control {
  margin-bottom: 16px;
}
@media (max-width: 1100px) {
  .company-address-columns {
    grid-template-columns: 1fr;
  }
}

.location-expertus-add {
  display: flex;
  align-items: end;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.location-expertus-add .class-field {
  flex: 1;
  min-width: 12rem;
}
.room-editor h2 {
  font-size: 1.1rem;
  margin: 1.5rem 0 1rem;
}

.connection-dialog {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  width: min(440px, calc(100vw - 32px));
  max-height: 85vh;
  padding: 24px;
  overflow: auto;
}
.connection-dialog::backdrop {
  background: #0008;
}
.connection-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.connection-dialog-heading h2 {
  margin: 0;
}
.connection-file-group {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.connection-file-group h3 {
  margin: 0;
}
.connection-file-group a {
  white-space: normal;
  overflow-wrap: anywhere;
}
.cloud-app-download h2 {
  margin-top: 0;
}
.cloud-app-download .class-check {
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.cloud-help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.license-terms {
  max-width: 1000px;
}
.license-terms p {
  line-height: 1.7;
}

@media (max-width: 700px) {
  .inspection-heading {
    flex-direction: column;
  }
  .inspection-heading > .class-mode {
    margin: 0;
    width: 100%;
  }
}

/* Public catalog: the established ABB palette, without the staff sidebar. */
.public-frame {
  min-height: 100dvh;
}
.public-frame .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
}
.public-content {
  max-width: 1440px;
  margin: auto;
  padding: 48px 32px;
}
.catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.catalog h1 {
  font-size: 42px;
  margin: 0 0 12px;
}
.catalog-heading p,
.catalog-footer p {
  color: var(--muted);
}
.catalog-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.catalog-filters {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 28px;
}
.catalog-filters > .button {
  grid-column: 1/-1;
  justify-self: start;
}
.catalog-filters .search-control {
  width: 100%;
}
.catalog-search {
  min-width: 0;
  display: grid;
  gap: 12px;
}
.catalog-search select {
  width: 100%;
  min-height: 44px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 10px;
  font: inherit;
}
.catalog-filters fieldset {
  border: 1px solid var(--line);
  padding: 12px;
  min-width: 0;
  margin: 0;
}
.catalog-filters legend {
  font-weight: 600;
  padding: 0 6px;
}
.catalog-radio-options {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.catalog-radio-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
}
.catalog-radio-options input {
  accent-color: var(--ink);
  width: 18px;
  height: 18px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.catalog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.catalog-card > header {
  background: #353a3d;
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-weight: 600;
}
.catalog-card > header > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-card > header > div {
  display: flex;
  gap: 8px;
  align-items: center;
}
.catalog-audience {
  font-size: 11px;
  border: 1px solid #899399;
  padding: 4px;
}
.catalog-card .type-chip {
  color: #242729;
  background: #edf0f1;
  white-space: nowrap;
}
.catalog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.catalog-card-title {
  display: flex;
  align-items: start;
  gap: 14px;
}
.catalog-card h2 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.catalog-card-title p {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.catalog-thumbnail {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  position: relative;
  background: var(--soft);
  display: grid;
  place-items: center;
  border-radius: 4px;
  overflow: hidden;
}
.catalog-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface);
}
.catalog-thumbnail img[hidden] {
  display: none;
}
.catalog-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 22px 0;
  display: grid;
  gap: 9px;
}
.catalog-meta > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.catalog-meta dt {
  display: flex;
}
.catalog-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.catalog-meta .rz-icon {
  font-size: 19px;
}
.catalog-card-bottom {
  margin-top: auto;
}
.catalog-card-bottom > a {
  width: 100%;
  margin-top: 16px;
}
.catalog-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.catalog-price-row strong {
  font-size: 19px;
}
.catalog-seat {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 3px;
}
.seat-available {
  background: #e4f2e9;
  color: #187747;
}
.seat-waitlist {
  background: #fff2c8;
  color: #785b00;
}
.seat-full {
  background: #fbe8e9;
  color: #a12d32;
}
[data-theme='dark'] .seat-available {
  background: #203f31;
  color: #9ad8b4;
}
[data-theme='dark'] .seat-waitlist {
  background: #453b20;
  color: #f1d37b;
}
[data-theme='dark'] .seat-full {
  background: #49292c;
  color: #f5afb2;
}
.catalog-footer {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-top: 40px;
}
.catalog-footer h2 {
  margin-top: 0;
  font-size: 24px;
}
.catalog .button {
  white-space: normal;
  text-align: center;
}
.catalog .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1100px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-filters {
    grid-template-columns: 1fr 1fr;
  }
  .catalog-search {
    grid-column: 1/-1;
  }
}
@media (max-width: 700px) {
  .public-content {
    padding: 28px 16px;
  }
  .public-frame .brand-subtitle,
  .public-frame .brand-rule {
    display: none;
  }
  .public-frame .brand {
    gap: 10px;
  }
  .public-frame .brand > span:last-child {
    font-size: 15px;
  }
  .public-frame .topbar {
    gap: 12px;
    padding: 14px 16px;
  }
  .public-frame .topbar-actions {
    gap: 8px;
  }
  .catalog-heading {
    align-items: start;
    flex-direction: column;
  }
  .catalog h1 {
    font-size: 34px;
  }
  .catalog-filters {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .catalog-footer {
    padding: 20px;
  }
  .catalog-actions {
    gap: 10px;
  }
  .catalog-card-body {
    padding: 18px;
  }
  .catalog-filters > .button {
    width: 100%;
  }
}

.public-policy {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  margin-top: 24px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  scroll-margin-top: 130px;
}
.public-policy h3 {
  font-size: 24px;
}
.public-policy h4 {
  font-size: 19px;
}
@media (max-width: 700px) {
  .public-frame .topbar {
    height: auto;
    flex-wrap: wrap;
  }
  .public-frame .topbar-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .public-policy {
    padding: 16px;
  }
}

/* Participant attendance choice: compact public form, native keyboard-accessible controls. */
.public-enrollment {
  max-width: 720px;
  margin: clamp(1.5rem, 5vw, 4rem) auto;
  padding: 0 1rem;
}
.public-enrollment h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0;
}
.public-enrollment-heading {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.public-enrollment-heading > .rz-icon {
  color: var(--ink);
  font-size: 2rem;
}
.public-enrollment-course {
  color: var(--muted);
  margin: 1rem 0 1.5rem;
}
.public-enrollment-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1rem, 3vw, 2rem);
}
.public-enrollment-panel > p:first-child {
  margin-top: 0;
  line-height: 1.7;
}
.public-enrollment fieldset {
  border: 0;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.7rem;
}
.public-enrollment fieldset label {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  cursor: pointer;
}
.public-enrollment fieldset label:has(input:checked) {
  border-color: var(--ink);
  background: var(--soft);
}
.public-enrollment input {
  accent-color: var(--ink);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.public-enrollment fieldset:disabled {
  opacity: 0.65;
}
.public-enrollment-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}
.public-enrollment-result {
  min-height: 4.5rem;
  margin-top: 1rem;
  padding: 1rem;
  line-height: 1.5;
  border-left: 3px solid transparent;
}
.public-enrollment-result:empty {
  visibility: hidden;
}
.public-enrollment-result[data-severity='success'] {
  border-color: #279366;
  background: #27936618;
}
.public-enrollment-result[data-severity='error'] {
  border-color: #db3d48;
  background: #db3d4818;
}

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

/* Public course material: bilingual code entry and browser-native attachment download. */
.public-documents {
  max-width: 720px;
  margin: clamp(1.5rem, 5vw, 4rem) auto;
  padding: 0 1rem;
}
.public-documents h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin: 0 0 1.5rem;
}
.public-documents-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1rem, 3vw, 2rem);
}
.public-documents-panel > p {
  line-height: 1.65;
  margin: 0 0 1rem;
}
.public-documents-panel > p[lang='de'] {
  color: var(--muted);
}
.public-documents form {
  margin-top: 1.75rem;
}
.public-documents form > label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.public-documents-input {
  display: flex;
  gap: 0.75rem;
}
.public-documents-input input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.85rem;
}
.public-documents-result {
  margin-top: 1rem;
  line-height: 1.6;
}
.public-documents-result:not(:empty) {
  padding: 1rem;
  background: var(--soft);
  border-left: 3px solid var(--muted);
}
.public-documents-result[data-severity='error'] {
  border-color: #cf3c47;
}
.public-documents [data-document-download] {
  margin-top: 1rem;
}
.public-documents [hidden] {
  display: none !important;
}
@media (max-width: 540px) {
  .public-documents-input {
    flex-direction: column;
  }
  .public-documents-input .button {
    justify-content: center;
    width: 100%;
  }
}

/* Public feedback keeps the original questionnaire in a responsive, keyboard-accessible form. */
.public-feedback {
  max-width: 960px;
  margin: clamp(1.5rem, 5vw, 4rem) auto;
  padding: 0 1rem;
}
.feedback-entry {
  max-width: 720px;
}
.public-feedback h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.25;
}
.feedback-panel,
.questionnaire > [data-feedback-content] {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1rem, 3vw, 2rem);
}
.public-feedback p {
  line-height: 1.65;
}
.feedback-panel > p[lang='de'],
.rating-legend {
  color: var(--muted);
}
.public-feedback form > label {
  display: block;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}
.feedback-code-row {
  display: flex;
  gap: 0.75rem;
}
.public-feedback input:not([type='radio']):not([type='checkbox']),
.public-feedback textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 0.75rem;
}
.feedback-code-row input {
  min-height: 48px;
}
.feedback-choice {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.feedback-choice h2 {
  font-size: 1.2rem;
}
.public-feedback [role='status']:not(:empty) {
  padding: 1rem;
  background: var(--soft);
  border-left: 3px solid var(--muted);
}
.public-feedback [hidden] {
  display: none !important;
}
.feedback-section {
  margin-top: 2rem;
}
.feedback-section h2 {
  font-size: 1.25rem;
}
.rating-legend {
  font-size: 0.8rem;
}
.feedback-rating {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 1rem 0;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}
.feedback-rating legend {
  float: left;
  width: auto;
  font-size: 0.95rem;
  line-height: 1.5;
}
.feedback-stars {
  display: flex;
  gap: 0.2rem;
}
.feedback-stars label {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  cursor: pointer;
}
.feedback-stars input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.feedback-stars span {
  font:
    32px/1 Arial,
    sans-serif;
  color: var(--ink);
}
.feedback-stars label:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.feedback-stars label:hover {
  background: var(--soft);
}
.feedback-sources {
  border: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  min-width: 0;
}
.feedback-sources legend {
  margin-bottom: 1rem;
  line-height: 1.5;
}
.feedback-sources label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}
.feedback-sources input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}
.feedback-comment {
  margin-top: 1.5rem;
}
.feedback-comment label {
  display: block;
  margin-bottom: 0.65rem;
  line-height: 1.5;
}
.feedback-comment textarea {
  resize: vertical;
}
.feedback-send {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}
.public-feedback [data-feedback-thanks] {
  padding: 2rem 0;
}
.public-feedback [data-feedback-thanks]:focus {
  outline: none;
}
@media (max-width: 640px) {
  .feedback-rating {
    display: block;
  }
  .feedback-rating legend {
    float: none;
    margin-bottom: 0.5rem;
  }
  .feedback-stars {
    justify-content: space-between;
    max-width: 300px;
  }
  .feedback-code-row {
    flex-direction: column;
  }
  .feedback-code-row .button,
  .feedback-send .button {
    width: 100%;
    justify-content: center;
  }
  .feedback-sources {
    flex-direction: column;
  }
}

/* Equipment administration uses the shared forms and grids. Connection menus overlay rows. */
.equipment-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.equipment-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 1.5rem 0.5rem 0;
}
.equipment-port {
  width: 6rem;
  max-width: 100%;
  background: var(--surface);
  color: inherit;
  border: 1px solid var(--line);
  padding: 0.5rem;
}

.main-menu-group {
  flex-shrink: 0;
}

/* Appointments retain the original sections with responsive fields. */
.appointment-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.appointment-date-range {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.appointment-date-range label {
  display: grid;
  gap: 0.4rem;
}
.appointment-status {
  display: flex;
}
.appointment-status select {
  flex: 1;
  min-width: 0;
}
.appointment-status span {
  width: 2rem;
  border: 1px solid var(--line);
}
.appointment-table-scroll {
  overflow: auto;
}
.appointment-resource-table {
  width: 100%;
  border-collapse: collapse;
}
.appointment-resource-table th,
.appointment-resource-table td {
  text-align: left;
  padding: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.appointment-resource-table input {
  width: 4.5rem;
}
.appointment-detail {
  padding: 1.5rem;
}
.appointment-detail dt {
  font-weight: 600;
  margin-top: 1rem;
}
.appointment-detail dd {
  margin: 0.35rem 0;
}
.appointment-comment {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.appointment-running td {
  background: color-mix(in srgb, #329a5d 12%, var(--surface)) !important;
}
@media (max-width: 900px) {
  .appointment-resource-grid {
    grid-template-columns: 1fr;
  }
}
.appointment-editor [hidden] {
  display: none !important;
}

.inspection-section-heading {
  position: relative;
}
.inspection-section-heading h2 {
  padding-right: 44px;
}
.inspection-section-heading > .icon-button {
  position: absolute;
  top: 0;
  right: 0;
}

.menu-count {
  display: inline-block;
  margin-inline-start: 0.35rem;
  padding: 0 0.3rem;
  border-radius: 0.2rem;
  font-size: 0.7rem;
  line-height: 1.3;
  background: var(--soft);
  color: inherit;
}
.menu-count.has-changes {
  background: #c52b36;
  color: #fff;
}

@media (min-width: 601px) {
  .my-learning-grid .rz-grid-table {
    min-width: 1160px;
  }
}

@media (min-width: 601px) {
  .my-learning-grid .rz-grid-table tbody > tr > td {
    padding-inline: 8px;
  }
  .my-learning-grid .class-row-actions .icon-button {
    flex-basis: 28px;
    min-width: 28px;
    width: 28px;
    padding: 4px;
  }
}

.dashboard-board {
  --dashboard-columns: 2;
}
@media (min-width: 768px) {
  .dashboard-board {
    --dashboard-columns: 3;
  }
}
@media (min-width: 992px) {
  .dashboard-board {
    --dashboard-columns: 4;
  }
}
@media (min-width: 1200px) {
  .dashboard-board {
    --dashboard-columns: 6;
  }
}
.dashboard-tile-group {
  display: grid;
  grid-template-columns: repeat(var(--dashboard-columns), minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  align-items: start;
}
.dashboard-tile {
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  height: 110px;
  padding: 8px;
  background: var(--tile-color, var(--surface));
  color: var(--tile-text, var(--ink));
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
}
.dashboard-tile:hover:not(:disabled) {
  box-shadow: 0 3px 12px #0002;
}
.dashboard-tile.active {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.dashboard-tile:disabled {
  cursor: default;
  opacity: 0.65;
}
.dashboard-tile.tile-error {
  background: #000;
  color: #fff;
  opacity: 1;
}
.dashboard-tile .tile-value {
  font-size: 1.4rem;
  font-weight: 700;
}
.tile-emoji {
  font-size: 1.2rem;
  line-height: 1.2;
}
.tile-name,
.tile-description {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
}
.tile-description {
  font-size: 0.75rem;
  opacity: 0.8;
}
.dashboard-details-slot {
  order: var(--detail-order-2);
  grid-column: 1/-1;
  min-width: 0;
}
.dashboard-details {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px;
  margin: 8px 0;
}
.dashboard-details-heading,
.dashboard-detail-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.dashboard-detail-controls select {
  font: inherit;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 5px;
}
.dashboard-table-scroll {
  overflow: auto;
  max-width: 100%;
  margin-top: 16px;
}
.tile-details-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85rem;
}
.tile-details-table th,
.tile-details-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tile-details-table th {
  background: var(--soft);
}
.tile-details-table th button {
  font: inherit;
  font-weight: 600;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}
.tile-details-table .sort-arrow {
  display: inline-block;
  width: 1.25em;
  margin-left: 4px;
}
.tile-details-table tbody tr:nth-child(even) {
  background: var(--soft);
}
:root[data-theme='dark'] .dashboard-tile.tile-custom-color {
  background: color-mix(in srgb, var(--tile-color) 25%, var(--surface));
  color: var(--ink);
}
@media (max-width: 600px) {
  .dashboard-details {
    padding: 10px;
  }
  .dashboard-detail-controls {
    gap: 8px;
    font-size: 0.8rem;
  }
  .tile-name {
    font-size: 0.8rem;
  }
  .tile-description {
    font-size: 0.7rem;
  }
}

.messages-editor {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 2rem;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
}
.messages-fields {
  min-width: 0;
}
.messages-fields h2 {
  font-size: 1.15rem;
  margin-top: 0;
}
.messages-fields label {
  display: block;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}
.messages-fields textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 0.75rem;
  font: inherit;
  line-height: 1.5;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.messages-help {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.messages-help p:first-child {
  margin-top: 0;
}
.messages-help p + p {
  margin-top: 0.8rem;
}
.announcement p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message-dialog {
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  width: min(640px, calc(100vw - 2rem));
  max-height: 85dvh;
  overflow: auto;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.message-dialog::backdrop {
  background: #0008;
}
.message-dialog h2 {
  font-size: 1.3rem;
  margin-top: 0;
}
.message-dialog form {
  text-align: right;
}
.message-dialog .announcement {
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.message-dialog .announcement p {
  margin-bottom: 0;
}
.notifications-button {
  white-space: nowrap;
}
.page-announcement {
  margin-bottom: 1rem;
}
.page-footer {
  flex-wrap: wrap;
  gap: 1rem;
}
@media (max-width: 700px) {
  .messages-editor {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .messages-help {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
  }
}

/* Prerendered controls must not accept drafts before the WebAssembly island is ready. */
fieldset.island-ready {
  display: contents;
}
.notifications-content {
  padding: 1rem;
  background: var(--surface, white);
}
.feedback-stars span::before {
  content: '☆';
}
.feedback-stars label:has(input:checked) span::before,
.feedback-stars label:has(~ label input:checked) span::before {
  content: '★';
}

#blazor-error-ui {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 1rem;
  background: var(--surface, white);
  color: var(--ink);
  border-top: 2px solid #d9a300;
}

@media (min-width: 768px) {
  .dashboard-details-slot {
    order: var(--detail-order-3);
  }
}
@media (min-width: 992px) {
  .dashboard-details-slot {
    order: var(--detail-order-4);
  }
}
@media (min-width: 1200px) {
  .dashboard-details-slot {
    order: var(--detail-order-6);
  }
}

/* Match the rich editor's toolbar/content rows before its DOM initialization. */
.mail-rich-editor {
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
}
.mail-rich-editor > .rz-html-editor {
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid;
  grid-template-rows: subgrid;
}
.mail-rich-editor > .mail-initial-content {
  grid-column: 1;
  grid-row: 2;
  z-index: 1;
  margin: 0 1px 1px;
}

/* Static information pages retain legacy content and role-specific fields. */
.information-page {
  max-width: 70rem;
  overflow-wrap: anywhere;
}
.information-card {
  max-width: 46rem;
  padding: clamp(1rem, 3vw, 2rem);
  margin-block: 1.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.information-card h2 {
  margin-top: 0;
}
.information-card dl {
  display: grid;
  grid-template-columns: minmax(6rem, 1fr) minmax(0, 3fr);
  gap: 0.8rem 1rem;
}
.information-card dt {
  font-weight: 600;
}
.information-card dd {
  margin: 0;
  min-width: 0;
}
.role-information h3 {
  margin-top: 2rem;
}
.role-information blockquote {
  margin: 2rem 0;
  padding: 1rem;
  border-left: 3px solid var(--warning);
  background: var(--warning-bg);
}
.release-history > dt {
  font-weight: 600;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.release-history > dd {
  margin: 0.75rem 0;
}
.release-history li {
  margin-block: 0.5rem;
}
.account-chip a {
  color: inherit;
  text-decoration: none;
}
.account-chip a:hover {
  text-decoration: underline;
}
.account-roles-link {
  display: inline-flex;
}

/* A failed API request must remain visible without discarding the current form. */
.api-error-notice {
  position: fixed;
  z-index: 3000;
  bottom: 1rem;
  inset-inline: 1rem;
  max-width: 48rem;
  margin-inline: auto;
  padding: 1rem 1.25rem;
  border: 2px solid #d33;
  background: var(--surface, Canvas);
  color: var(--ink);
  box-shadow: 0 4px 24px #0003;
}
.api-error-notice p {
  margin: 0 0 0.75rem;
  overflow-wrap: anywhere;
}
.api-error-notice a {
  margin-inline-start: 1rem;
}
.error-trace {
  overflow-wrap: anywhere;
}
.public-frame > .page-footer {
  margin: 1rem clamp(1rem, 4vw, 4rem);
  flex-wrap: wrap;
}

.page-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
@media (max-width: 700px) {
  .page-footer {
    font-size: 0.75rem;
  }
  .page-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* P15: shared accessibility and responsive refinements. */
.card-number,
.rz-pager .rz-pagesize-text {
  color: var(--muted);
}
main :is(input, select, textarea, button, a, [tabindex]) {
  scroll-margin-top: 110px;
}
@media (max-width: 800px) {
  .sidebar {
    visibility: hidden;
  }
  [data-menu-open] .sidebar {
    visibility: visible;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 360px) {
  .app-frame .brand {
    font-size: 12px;
    gap: 6px;
  }
  .app-frame .brand-subtitle {
    font-size: 6px;
  }
  .app-frame .brand-rule {
    display: none;
  }
  .app-frame img.abb-wordmark {
    width: 42px;
  }
}

.license-terms h1.custom-heading {
  font-size: 26px;
}
.license-terms h2 {
  font-size: 21px;
}
