:root {
  --hc-ink: #112033;
  --hc-muted: #62748a;
  --hc-line: rgba(17, 32, 51, 0.12);
  --hc-bg: #f4efe7;
  --hc-panel: rgba(255, 255, 255, 0.86);
  --hc-panel-strong: #10253b;
  --hc-primary: #bf5c2d;
  --hc-primary-deep: #99441d;
  --hc-accent: #2d7b78;
  --hc-glow: #f6c880;
  --hc-topbar: rgba(252, 247, 240, 0.84);
  --hc-nav: rgba(255, 251, 246, 0.72);
  --hc-footer: rgba(255, 251, 246, 0.45);
  --hc-shadow: rgba(17, 32, 51, 0.08);
  --hc-body-gradient: radial-gradient(circle at top right, rgba(246, 200, 128, 0.45), transparent 24%),
    radial-gradient(circle at left 20%, rgba(45, 123, 120, 0.18), transparent 22%),
    linear-gradient(180deg, #fcf7f0 0%, var(--hc-bg) 100%);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --hc-ink: #f2f6fb;
  --hc-muted: #a9b7c7;
  --hc-line: rgba(226, 235, 245, 0.14);
  --hc-bg: #0d1622;
  --hc-panel: rgba(19, 31, 45, 0.88);
  --hc-panel-strong: #07111d;
  --hc-primary: #d87a42;
  --hc-primary-deep: #f09a62;
  --hc-accent: #72c9c3;
  --hc-glow: #d7964e;
  --hc-topbar: rgba(10, 18, 28, 0.88);
  --hc-nav: rgba(13, 22, 34, 0.82);
  --hc-footer: rgba(10, 18, 28, 0.74);
  --hc-shadow: rgba(0, 0, 0, 0.28);
  --hc-body-gradient: radial-gradient(circle at top right, rgba(216, 122, 66, 0.28), transparent 25%),
    radial-gradient(circle at left 20%, rgba(114, 201, 195, 0.16), transparent 24%),
    linear-gradient(180deg, #0b1420 0%, var(--hc-bg) 100%);
}

/*
 * Trulite light theme
 * Mirrors the restrained Tru Access visual language: crisp white work surfaces,
 * Trulite blue interaction states, compact navigation, and fine gray dividers.
 * Dark theme values remain intentionally independent below.
 */
:root[data-theme="light"] {
  color-scheme: light;
  --hc-ink: #17324d;
  --hc-muted: #667686;
  --hc-line: #dce5ed;
  --hc-bg: #f3f6f9;
  --hc-panel: #ffffff;
  --hc-panel-strong: #123f68;
  --hc-primary: #2878b9;
  --hc-primary-deep: #145f9c;
  --hc-accent: #2878b9;
  --hc-glow: #dcecf8;
  --hc-topbar: #ffffff;
  --hc-nav: #ffffff;
  --hc-footer: #f8fafc;
  --hc-shadow: rgba(23, 50, 77, 0.07);
  --hc-body-gradient: linear-gradient(180deg, #f8fafc 0%, var(--hc-bg) 100%);
  --hc-card: #ffffff;
  --hc-surface-muted: #f2f6f9;
  --hc-border-strong: #cbd8e3;
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--hc-ink);
  background: var(--hc-body-gradient);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.95), 0 0 0 0.25rem rgba(191, 92, 45, 0.35);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.survey-summary-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(160px, 35%) auto;
    gap: 1rem;
    align-items: center;
    padding: .75rem 0;
    border-top: 1px solid var(--border);
}

.survey-summary-row:first-child {
    border-top: 0;
}

.survey-summary-row > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.survey-summary-meter {
    height: .65rem;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f5;
}

.survey-summary-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-teal), var(--brand-copper));
}

.page-tabs {
    display: inline-flex;
    gap: .35rem;
    padding: .35rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .74);
    box-shadow: var(--shadow-soft);
}

.page-tabs a {
    padding: .55rem 1rem;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.page-tabs a:hover,
.page-tabs a:focus {
    color: #fff;
    background: var(--brand-copper);
}

.survey-recipient-banner {
    display: inline-block;
    margin: .35rem 0 .7rem;
    padding: .55rem .8rem;
    border: 1px solid rgba(45, 123, 120, .22);
    border-radius: 999px;
    background: rgba(45, 123, 120, .08);
    color: var(--muted);
}

.survey-readonly-panel {
    position: relative;
    padding: 1rem;
    border: 1px solid rgba(45, 123, 120, .18);
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(45, 123, 120, .08), rgba(255, 255, 255, .72));
}

.survey-readonly-panel .preview-question {
    opacity: .78;
}

.survey-completed-header h1::after {
    content: "Completed";
    display: inline-block;
    margin-left: .75rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: var(--brand-teal);
    color: #fff;
    font-size: .8rem;
    vertical-align: middle;
}

.form-check-label {
    cursor: pointer;
}

.form-check-input:disabled + .form-check-label {
    cursor: default;
}

.app-switch {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  gap: 0.65rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--hc-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  width: auto;
}

.app-switch.form-switch {
  padding-left: 0.7rem;
}

.app-switch-field {
  align-self: start;
}

.app-switch-field .form-label {
  display: block;
  margin-bottom: 0.5rem;
}

.app-switch .form-check-input {
  width: 3.25rem;
  height: 1.65rem;
  margin: 0;
  cursor: pointer;
  border: 0;
  background-color: rgba(98, 116, 138, 0.28);
  background-image: radial-gradient(circle at 0.82rem 50%, #fff 0.56rem, transparent 0.58rem);
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 3.25rem 1.65rem;
  box-shadow: inset 0 0 0 1px rgba(17, 32, 51, 0.08);
  transition: background-color 160ms ease, background-position 160ms ease;
}

.app-switch .form-check-input:checked {
  background-color: var(--hc-accent);
  background-image: radial-gradient(circle at 2.42rem 50%, #fff 0.56rem, transparent 0.58rem);
}

.app-switch .form-check-label {
  color: var(--hc-ink);
  font-weight: 800;
  line-height: 1.2;
}

.app-choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  margin: 0.45rem 0;
  padding: 0.62rem 0.78rem;
  border: 1px solid var(--hc-line);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.app-choice:hover {
  border-color: rgba(191, 92, 45, 0.34);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.app-choice .form-check-input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  border: 2px solid rgba(45, 123, 120, 0.42);
  background-color: transparent;
  cursor: pointer;
}

.app-choice .form-check-input:checked {
  border-color: var(--hc-primary);
  background-color: var(--hc-primary);
}

.app-choice .form-check-label {
  flex: 1 1 auto;
  line-height: 1.25;
}

.app-choice .form-check-input:disabled,
.app-choice .form-check-input:disabled + .form-check-label {
  cursor: default;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: var(--hc-topbar);
  border-bottom: 1px solid rgba(17, 32, 51, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.95rem;
  width: 100%;
  padding: 0 1.45rem;
}

.app-main {
  padding-top: 1.15rem;
  padding-bottom: 1.5rem;
}

.has-side-nav .app-main,
.has-side-nav .footer-shell {
  width: calc(100% - 15rem);
  max-width: none;
  margin-left: 15rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--hc-ink);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--hc-muted);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--hc-primary), #d9823b);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 16px 30px rgba(191, 92, 45, 0.28);
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  flex: 0 0 auto;
  padding: 0.25rem 0;
}

.brand-logo {
  display: block;
  max-width: 11rem;
  width: 100%;
  height: auto;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-left: auto;
}

.public-shell .topbar-inner {
  flex-wrap: nowrap;
}

.public-shell .topbar-actions {
  flex: 0 0 auto;
}

.topbar-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(45, 123, 120, 0.12);
  color: var(--hc-accent);
  font-weight: 700;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.45rem;
  padding: 0.45rem 0.45rem;
  color: var(--hc-ink);
  font-weight: 700;
  text-decoration: none;
}

.topbar-link:hover,
.topbar-link:focus {
  color: var(--hc-primary-deep);
}

.btn-link.topbar-link {
  border: 0;
  background: transparent;
}

.app-nav {
  position: fixed;
  top: 3.95rem;
  left: 0;
  bottom: 0;
  z-index: 900;
  width: 15rem;
  padding: 1rem 0.85rem;
  overflow-y: auto;
  border-right: 1px solid rgba(17, 32, 51, 0.08);
  background: var(--hc-nav);
  backdrop-filter: blur(14px);
}

.app-nav-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-nav .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  min-height: 2.45rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  color: var(--hc-ink);
  font-weight: 600;
  text-decoration: none;
}

.app-nav .nav-link:hover,
.app-nav .nav-link:focus {
  color: var(--hc-primary-deep);
  background: rgba(17, 32, 51, 0.06);
}

.app-nav .nav-link.active {
  color: #fff;
  background: var(--hc-primary-deep);
  box-shadow: 0 10px 24px rgba(17, 32, 51, 0.12);
}

.app-nav .nav-item form {
  margin: 0;
}

.app-nav .btn-link.nav-link {
  border: 0;
  background: transparent;
}

.nav-link-with-badge {
  gap: 0.45rem;
}

.topbar-link .bi,
.app-nav .nav-link .bi,
.btn .bi {
  line-height: 1;
}

.app-nav .nav-link .bi {
  width: 1.1rem;
  flex: 0 0 1.1rem;
  text-align: center;
}

.btn .bi {
  margin-right: 0.35rem;
}

.btn-icon-only .bi {
  margin-right: 0;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  color: #fff;
  background: var(--hc-accent);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.app-nav .nav-link.active .nav-badge {
  color: var(--hc-primary-deep);
  background: #fff;
}

.form-select,
.form-control:disabled {
  border-radius: 0.9rem;
  border-color: rgba(17, 32, 51, 0.14);
  padding: 0.8rem 0.95rem;
}

.form-select:focus {
  box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.95), 0 0 0 0.25rem rgba(191, 92, 45, 0.35);
}

.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  min-height: 3.2rem;
  border: 1px solid rgba(17, 32, 51, 0.14);
  border-radius: 0.9rem;
  background: #fff;
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--hc-ink);
  line-height: 1.3;
  padding-left: 0.95rem;
  padding-right: 2.5rem;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--hc-muted);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 0.7rem;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: rgba(191, 92, 45, 0.55);
  box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.95), 0 0 0 0.25rem rgba(191, 92, 45, 0.22);
}

.select2-dropdown {
  border: 1px solid var(--hc-line);
  border-radius: 0.9rem;
  background: #fff;
  color: var(--hc-ink);
  overflow: hidden;
  box-shadow: var(--hc-shadow);
  z-index: 2050;
}

.select2-container--open {
  z-index: 2050;
}

.select2-search--dropdown {
  padding: 0.7rem;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--hc-line);
  border-radius: 0.75rem;
  min-height: 2.45rem;
  padding: 0.45rem 0.75rem;
  background: #fff;
  color: var(--hc-ink);
}

.select2-container--default .select2-results__group {
  color: var(--hc-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.select2-results__option {
  padding: 0.55rem 0.8rem;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: var(--hc-primary);
  color: #fff;
}

.select2-container--default .select2-results__option--selected {
  background: rgba(45, 123, 120, 0.14);
  color: var(--hc-ink);
}

.app-toggler {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: rgba(17, 32, 51, 0.04);
  border-color: rgba(17, 32, 51, 0.16);
}

.app-toggler .navbar-toggler-icon {
  display: block;
  width: 1.2rem;
  height: 1rem;
  background-image: none;
  position: relative;
}

.app-toggler .navbar-toggler-icon::before,
.app-toggler .navbar-toggler-icon::after,
.app-toggler .navbar-toggler-icon {
  border-top: 2px solid var(--hc-ink);
}

.app-toggler .navbar-toggler-icon::before,
.app-toggler .navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
}

.app-toggler .navbar-toggler-icon::before {
  top: 0.32rem;
}

.app-toggler .navbar-toggler-icon::after {
  top: 0.64rem;
}

.hero-panel,
.content-card,
.metric-card,
.hero-card {
  border: 1px solid var(--hc-line);
  background: var(--hc-panel);
  box-shadow: 0 20px 45px var(--hc-shadow);
}

.hero-panel {
  padding: 1.45rem;
  border-radius: 1.6rem;
}

.public-home-actions {
  justify-content: flex-start;
}

.hero-card {
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, var(--hc-panel-strong), #173550);
  color: #fff;
}

.hero-card-label,
.eyebrow,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
}

.eyebrow,
.section-kicker {
  color: var(--hc-accent);
}

.hero-card-label {
  color: rgba(255, 255, 255, 0.72);
}

.hero-card-value {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1;
  font-weight: 700;
  margin: 0.65rem 0;
}

.hero-card-copy,
.page-header-block p,
.table-subtitle,
.metric-card span,
.stack-item p,
.timeline-item p {
  color: var(--hc-muted);
}

.metric-card,
.content-card,
.page-header-block {
  padding: 1.15rem;
  border-radius: 1.5rem;
}

.page-header-block {
  margin-bottom: 0.85rem;
}

.page-header-block > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
  min-width: 0;
}

.metric-card h2,
.page-header-block h1,
.section-header h3,
.hero-panel h1 {
  margin-bottom: 0.35rem;
}

.page-header-block .eyebrow,
.page-header-block h1,
.page-header-block p {
  margin: 0;
}

.page-header-block h1 {
  font-size: clamp(1.7rem, 2vw, 2.35rem);
  line-height: 1.1;
}

.page-header-block p {
  flex: 1 1 20rem;
}

.page-header-block.page-header-compact {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.page-header-block.page-header-compact > div {
  display: block;
}

.page-header-block.page-header-compact .eyebrow {
  margin: 0 0 0.2rem;
}

.page-header-block.page-header-compact p {
  margin: 0;
  flex: 0 1 auto;
}

.page-header-block-classic > div {
  display: block;
}

.page-header-block-classic .eyebrow,
.page-header-block-classic h1,
.page-header-block-classic p {
  margin: 0 0 0.35rem;
}

.page-header-block-classic p {
  max-width: 52rem;
}

.automation-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-header-block.page-header-compact.automation-preview-header > div {
  display: block;
}

.page-header-block.page-header-compact.automation-preview-header > .automation-preview-actions {
  display: flex;
}

.automation-preview-actions,
.automation-preview-date-form {
  align-items: center;
  gap: 0.65rem;
}

.automation-preview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.automation-preview-date-form {
  display: flex;
}

.automation-preview-date-form .form-control {
  width: 11rem;
}

.automation-preview-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--hc-line);
  border-radius: 1.25rem;
  background: var(--hc-panel);
  box-shadow: 0 16px 36px var(--hc-shadow);
  overflow: hidden;
}

.automation-preview-summary article {
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--hc-line);
}

.automation-preview-summary article:last-child {
  border-right: 0;
}

.automation-preview-summary span {
  display: block;
  color: var(--hc-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.automation-preview-summary strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--hc-ink);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.plant-directory-table td,
.plant-directory-table th {
  vertical-align: top;
}

.plant-directory-code {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(45, 123, 120, 0.1);
  color: var(--hc-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card p,
.section-header h3,
.stack-item h4,
.timeline-item h4 {
  margin: 0;
}

.metric-card h2 {
  font-size: 2.2rem;
}

.public-capability-card {
  width: 100%;
  min-height: 10.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.4rem;
}

.public-capability-card h2 {
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  line-height: 1.12;
}

.public-capability-card span {
  display: block;
  max-width: 30rem;
  line-height: 1.5;
}

.section-header,
.page-header-block {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.85rem;
}

.timeline-list,
.stack-list,
.check-list {
  display: grid;
  gap: 1rem;
}

.timeline-item,
.stack-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hc-line);
}

.timeline-item:last-child,
.stack-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.timeline-category,
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.timeline-category {
  color: var(--hc-primary-deep);
  background: rgba(191, 92, 45, 0.14);
  margin-bottom: 0.5rem;
}

.status-pill {
  color: #fff;
  background: linear-gradient(135deg, var(--hc-accent), #246361);
}

.status-pill.alt {
  background: rgba(17, 32, 51, 0.08);
  color: var(--hc-ink);
}

.status-pill.warning {
  background: rgba(191, 92, 45, 0.16);
  color: #9f421c;
}

.notification-list {
  display: grid;
  gap: 0.9rem;
}

.notification-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--hc-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
}

.notification-card.is-unread {
  border-left: 0.35rem solid var(--hc-primary);
  box-shadow: 0 10px 26px rgba(17, 32, 51, 0.08);
}

.notification-main h2 {
  margin: 0.45rem 0 0.25rem;
  font-size: 1.1rem;
}

.notification-main p {
  margin: 0;
  color: var(--hc-muted);
}

.notification-title-row,
.notification-context,
.notification-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.notification-type,
.notification-context {
  color: var(--hc-muted);
  font-size: 0.9rem;
}

.notification-context {
  margin-top: 0.55rem;
}

.notification-context span:not(:last-child)::after {
  content: "•";
  margin-left: 0.55rem;
  color: rgba(17, 32, 51, 0.32);
}

.notification-actions {
  justify-content: flex-end;
}

.notification-toast-host {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1100;
  display: grid;
  gap: 0.75rem;
  width: min(24rem, calc(100vw - 2rem));
  pointer-events: none;
}

.notification-toast {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--hc-line);
  border-left: 0.35rem solid var(--hc-accent);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(17, 32, 51, 0.18);
  pointer-events: auto;
  animation: notification-toast-in 180ms ease-out;
}

.notification-toast.success {
  border-left-color: var(--hc-accent);
}

.notification-toast.warning {
  border-left-color: var(--hc-primary);
}

.notification-toast.is-leaving {
  animation: notification-toast-out 220ms ease-in forwards;
}

.notification-toast-content strong {
  display: block;
  margin-bottom: 0.25rem;
}

.notification-toast-content p {
  margin: 0;
  color: var(--hc-muted);
}

.notification-toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.app-confirm-modal .modal-content {
  border: 1px solid rgba(17, 32, 51, 0.12);
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(17, 32, 51, 0.22);
}

.app-confirm-modal .modal-header,
.app-confirm-modal .modal-footer {
  border-color: rgba(17, 32, 51, 0.1);
}

.app-confirm-modal .modal-title {
  color: var(--hc-ink);
  font-weight: 800;
}

.app-confirm-modal .modal-body {
  color: var(--hc-muted);
}

.message-preview-body {
  min-height: 10rem;
  max-height: 28rem;
  margin: 0;
  padding: 1rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--hc-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--hc-text);
  font-family: inherit;
  line-height: 1.55;
}

@keyframes notification-toast-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes notification-toast-out {
  to {
    opacity: 0;
    transform: translateY(0.75rem);
  }
}

.stack-meta {
  display: grid;
  gap: 0.35rem;
  text-align: right;
  color: var(--hc-muted);
  font-weight: 600;
}

.checklist-task-item {
  align-items: flex-start;
}

.checklist-task-main {
  min-width: 0;
}

.checklist-task-side {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
  min-width: 8.5rem;
}

.checklist-toggle-form {
  margin: 0;
}

.inline-status-form,
.task-action-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.inline-select {
  min-width: 8rem;
}

.inline-option-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.manage-actions {
  display: grid;
  gap: 0.5rem;
}

.manage-actions-compact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  min-width: 16rem;
}

.manage-actions-compact .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  white-space: nowrap;
}

.option-chip-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.builder-help {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(45, 123, 120, 0.08);
  color: var(--hc-ink);
}

.compact-guidance {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 0.15rem 0;
}

.compact-guidance p {
  color: var(--hc-muted);
}

.content-card-soft {
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
  background: rgba(45, 123, 120, 0.06);
  border: 1px solid rgba(45, 123, 120, 0.12);
}

.recipient-preview-card {
  display: grid;
  gap: 0.9rem;
}

.recipient-preview-block p:last-child {
  margin-bottom: 0;
}

.recipient-preview-divider {
  height: 1px;
  background: var(--hc-line);
}

.survey-question-card {
  align-items: flex-start;
}

.question-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.question-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.question-editor summary {
  cursor: pointer;
  color: var(--hc-primary-deep);
  font-weight: 700;
}

.survey-question-modal {
  border: 1px solid var(--hc-line);
  border-radius: 1rem;
}

.survey-question-modal .modal-header,
.survey-question-modal .modal-footer {
  border-color: var(--hc-line);
}

.option-pill {
  gap: 0.45rem;
}

.option-delete-button {
  border: 0;
  background: transparent;
  color: var(--hc-primary-deep);
  font-weight: 800;
  line-height: 1;
  padding: 0;
}

.preview-question {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hc-line);
}

.preview-question:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.table-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--hc-primary-deep);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease, transform 0.15s ease;
}

.table-link::after {
  content: "->";
  font-size: 0.82em;
  font-weight: 800;
  opacity: 0.8;
}

.table-link:hover,
.table-link:focus {
  color: var(--hc-accent);
  transform: translateX(2px);
}

.table-link:hover::after,
.table-link:focus::after {
  opacity: 1;
}

.detail-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-grid.compact {
  grid-template-columns: 1fr;
}

.directory-toolbar,
.recipient-picker-toolbar,
.directory-toolbar-group,
.recipient-picker-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.directory-toolbar,
.recipient-picker-toolbar {
  justify-content: space-between;
}

.directory-toolbar.compact-toolbar {
  align-items: end;
  justify-content: flex-start;
  gap: 0.65rem;
}

.directory-toolbar.compact-toolbar .form-control,
.directory-toolbar.compact-toolbar .form-select {
  min-height: 2.35rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  font-size: 0.95rem;
}

.directory-toolbar.compact-toolbar .btn {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
}

.directory-toolbar-search {
  flex: 1 1 22rem;
  justify-content: flex-end;
}

.directory-toolbar-search .form-control,
.recipient-picker-toolbar .form-control {
  min-width: min(100%, 24rem);
}

.directory-filter-select {
  min-width: 14rem;
}

.directory-filter-select.short {
  min-width: 11rem;
}

.directory-filter-summary {
  color: var(--hc-muted);
  font-size: 0.92rem;
}

.employee-directory-toolbar {
  display: grid;
  grid-template-columns: auto minmax(10rem, 12rem) minmax(15rem, 20rem) minmax(13rem, 1fr);
  align-items: center;
  gap: 0.65rem;
}

.employee-directory-toolbar .directory-toolbar-group {
  flex-wrap: nowrap;
  min-width: 0;
}

.employee-directory-toolbar .directory-filter-select {
  min-width: 0;
  width: 100%;
}

.employee-directory-toolbar .directory-toolbar-search {
  min-width: 0;
  justify-content: flex-end;
}

.employee-directory-toolbar .directory-toolbar-search .form-control {
  width: 100%;
  min-width: 0;
}

.survey-directory-toolbar {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(25rem, 32rem) auto auto;
  align-items: center;
  gap: 0.65rem;
}

.survey-directory-toolbar .directory-toolbar-group,
.survey-directory-toolbar .directory-toolbar-search {
  min-width: 0;
  flex-wrap: nowrap;
}

.survey-directory-toolbar .directory-toolbar-search .form-control,
.survey-directory-toolbar .directory-filter-select {
  width: 100%;
  min-width: 0;
}

.survey-directory-toolbar .directory-filter-summary {
  justify-self: end;
  white-space: nowrap;
}

.employee-directory-table {
  width: 100%;
  table-layout: fixed;
}

.employee-table-scroll {
  max-height: calc(100vh - 20rem);
  overflow: auto;
  position: relative;
}

.employee-directory-table th,
.employee-directory-table td {
  overflow-wrap: break-word;
  vertical-align: top;
}

.employee-directory-table th:nth-child(1),
.employee-directory-table td:nth-child(1) {
  width: 17%;
}

.employee-directory-table th:nth-child(2),
.employee-directory-table td:nth-child(2) {
  width: 24%;
}

.employee-directory-table th:nth-child(3),
.employee-directory-table td:nth-child(3) {
  width: 7%;
}

.employee-directory-table th:nth-child(4),
.employee-directory-table td:nth-child(4) {
  width: 14%;
}

.employee-directory-table th:nth-child(5),
.employee-directory-table td:nth-child(5) {
  width: 13%;
}

.employee-directory-table th:nth-child(6),
.employee-directory-table td:nth-child(6) {
  width: 9%;
}

.employee-directory-table th:nth-child(7),
.employee-directory-table td:nth-child(7),
.employee-directory-table th:nth-child(8),
.employee-directory-table td:nth-child(8) {
  width: 8%;
}

.employee-directory-table .sortable-header {
  white-space: nowrap;
}

.employee-directory-table .status-pill {
  white-space: normal;
}

.employee-directory-table .contact-stack {
  display: grid;
  gap: 0.18rem;
}

.employee-directory-table .contact-stack span {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  min-width: 0;
}

.employee-directory-table .contact-stack i {
  color: var(--hc-muted);
  flex: 0 0 auto;
}

.plant-code-pill {
  align-items: center;
  background: var(--hc-surface-muted);
  border-radius: 999px;
  color: var(--hc-ink);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-width: 3.4rem;
  padding: 0.28rem 0.55rem;
  white-space: nowrap;
}

.directory-results-bar,
.directory-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.directory-results-bar {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--hc-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.55);
  color: var(--hc-muted);
  font-size: 0.92rem;
}

.directory-page-indicator {
  min-width: 5rem;
  text-align: center;
  color: var(--hc-muted);
  font-weight: 800;
}

.stack-item-compact {
  padding: 0.7rem 0;
  gap: 0.75rem;
}

.stack-item-compact h4 {
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}

.stack-item-compact p {
  margin-bottom: 0;
}

.stack-item-compact .stack-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stack-item-compact .stack-meta span {
  white-space: nowrap;
}

.recipient-picker {
  display: grid;
  gap: 0.65rem;
  max-height: 15rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.recipient-picker-tall {
  max-height: 34rem;
}

.plant-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.campaign-setup-panel {
  position: sticky;
  top: 5.4rem;
}

.campaign-create-header {
  align-items: center;
}

.campaign-step-card {
  padding: 1.35rem 1.4rem;
}

.campaign-step-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.campaign-step-header h3,
.campaign-step-header p {
  margin: 0;
}

.campaign-step-header p {
  max-width: 34rem;
  color: var(--hc-muted);
}

.campaign-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.campaign-step-grid-basics .campaign-step-span {
  grid-column: 1 / -1;
}

.campaign-preview-band {
  margin-top: 1rem;
}

.campaign-final-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hc-line);
}

.campaign-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 0.9rem;
}

.campaign-form-span {
  grid-column: 1 / -1;
}

.campaign-compose-card {
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  border-radius: 1.15rem;
  border: 1px solid var(--hc-line);
  background: rgba(255, 255, 255, 0.72);
}

.campaign-mini-summary {
  margin-top: 0.25rem;
}

.workflow-tabs {
  gap: 0.5rem;
}

.workflow-tabs .nav-link {
  border-radius: 999px;
  color: var(--hc-ink);
  font-weight: 700;
  background: rgba(17, 32, 51, 0.05);
}

.workflow-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--hc-primary), #d9823b);
  color: #fff;
}

.campaign-compose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 0.9fr);
  gap: 1rem;
}

.campaign-compose-main,
.campaign-compose-side {
  min-width: 0;
}

.audience-picker {
  display: grid;
  gap: 0.75rem;
}

.audience-picker-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.45fr);
  gap: 0.75rem;
  align-items: center;
}

.audience-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.audience-category-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--hc-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--hc-ink);
  font-weight: 800;
}

.audience-category-tab.active {
  border-color: transparent;
  background: var(--hc-primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(191, 92, 45, 0.22);
}

.audience-picker-search {
  position: relative;
}

.audience-picker-search i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hc-muted);
  pointer-events: none;
}

.audience-picker-search .form-control {
  min-height: 2.75rem;
  padding-left: 2.35rem;
}

.audience-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.65rem;
  max-height: 18rem;
  overflow-y: auto;
  padding: 0.15rem 0.15rem 0.35rem;
}

.audience-card {
  display: grid;
  gap: 0.2rem;
  min-height: 6rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--hc-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--hc-ink);
  text-align: left;
  box-shadow: 0 10px 24px rgba(17, 32, 51, 0.04);
}

.audience-card:hover,
.audience-card:focus {
  border-color: rgba(191, 92, 45, 0.42);
  transform: translateY(-1px);
}

.audience-card.selected {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(191, 92, 45, 0.98), rgba(45, 123, 120, 0.92));
  color: #fff;
  box-shadow: 0 18px 34px rgba(17, 32, 51, 0.16);
}

.audience-card-kicker {
  color: var(--hc-accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.audience-card.selected .audience-card-kicker {
  color: rgba(255, 255, 255, 0.82);
}

.audience-card strong {
  font-size: 1rem;
  line-height: 1.25;
}

.audience-card span:last-child {
  color: var(--hc-muted);
  font-size: 0.9rem;
}

.audience-card.selected span:last-child {
  color: rgba(255, 255, 255, 0.84);
}

.audience-picker-empty {
  padding: 0.85rem;
  border: 1px dashed var(--hc-line);
  border-radius: 1rem;
  color: var(--hc-muted);
}

.recipient-filter-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 1.5fr) repeat(3, minmax(11rem, 1fr));
  gap: 0.65rem;
  flex: 1 1 42rem;
}

.campaign-targeting-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  color: var(--hc-muted);
}

.campaign-targeting-note i {
  color: var(--hc-accent);
}

.recipient-picker-workbench {
  max-height: 33rem;
}

.recipient-option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid var(--hc-line);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.recipient-option:hover {
  border-color: rgba(45, 123, 120, 0.3);
  background: rgba(255, 255, 255, 0.94);
}

.recipient-option input {
  margin-top: 0.2rem;
}

.recipient-option strong,
.recipient-option small {
  display: block;
}

.recipient-option small {
  color: var(--hc-muted);
  margin-top: 0.15rem;
}

.detail-grid label {
  display: block;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hc-muted);
}

.hr-table,
.hr-light-table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
  margin: 0;
}

.hr-light-table {
  --bs-table-color: var(--hc-ink);
  --bs-table-border-color: var(--hc-line);
}

.hr-table thead,
.hr-light-table thead,
.content-card .table thead {
  color: var(--hc-ink);
}

.sticky-table-scroll .hr-table thead th,
.sticky-table-scroll .hr-light-table thead th,
.sticky-table-scroll .content-card .table thead th {
  background: var(--hc-card);
  box-shadow: inset 0 -1px 0 var(--hc-border-strong);
  position: sticky;
  top: 0;
  z-index: 4;
}

.hr-table th,
.hr-light-table th,
.content-card .table th {
  color: var(--hc-ink);
  font-weight: 800;
}

.sortable-header {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

button.sortable-header {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

.sortable-header::after {
  content: "\F282";
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--hc-muted);
  font-family: "bootstrap-icons";
  font-size: 0.72rem;
  opacity: 0.6;
}

button.sortable-header::after {
  flex: 0 0 auto;
  margin-left: 0;
}

.sortable-header[aria-sort="ascending"]::after {
  content: "\F286";
  color: var(--hc-accent);
  opacity: 1;
}

.sortable-header[aria-sort="descending"]::after {
  content: "\F282";
  color: var(--hc-accent);
  opacity: 1;
}

.employee-name-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.employee-name-actions .table-link {
  min-width: 0;
  overflow-wrap: anywhere;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  color: var(--hc-accent);
  text-decoration: none;
}

.icon-link:hover,
.icon-link:focus {
  background: rgba(45, 123, 120, 0.12);
  color: var(--hc-primary-deep);
}

.employee-edit-link {
  flex: 0 0 auto;
  background: rgba(211, 112, 47, 0.1);
}

.quick-edit-button {
  flex: 0 0 auto;
  height: 1.45rem;
  margin-left: 0.1rem;
  padding: 0;
  width: 1.45rem;
}

.quick-edit-button i {
  font-size: 0.82rem;
}

.hr-table td,
.hr-light-table td,
.content-card .table td {
  color: var(--hc-ink);
}

.form-control {
  border-radius: 0.9rem;
  border-color: rgba(17, 32, 51, 0.14);
  padding: 0.8rem 0.95rem;
}

.btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--hc-primary), #d9823b);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--hc-primary-deep), var(--hc-primary));
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-hero-secondary {
  border: 1px solid rgba(45, 123, 120, 0.28);
  background: rgba(45, 123, 120, 0.1);
  color: var(--hc-accent);
  font-weight: 800;
}

.btn-hero-secondary:hover,
.btn-hero-secondary:focus {
  border-color: var(--hc-accent);
  background: var(--hc-accent);
  color: #fff;
}

.theme-toggle {
  border: 1px solid var(--hc-line) !important;
  border-radius: 999px;
  min-width: 4.7rem;
  justify-content: center;
}

.dashboard-locations-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dashboard-locations-list {
  max-height: 18rem;
  overflow-y: auto;
  padding-right: 0.35rem;
  gap: 0.35rem;
  scrollbar-width: thin;
}

.accent-card {
  background: linear-gradient(180deg, rgba(45, 123, 120, 0.1), rgba(255, 255, 255, 0.9));
}

.check-list {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.footer-shell {
  margin-top: auto;
  padding: 1rem 0 1.35rem;
  color: var(--hc-muted);
  border-top: 1px solid rgba(17, 32, 51, 0.08);
  background: var(--hc-footer);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand,
.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-brand strong {
  color: var(--hc-ink);
}

.footer-brand span,
.footer-links {
  font-size: 0.92rem;
}

.footer-shell a {
  color: var(--hc-primary-deep);
  text-decoration: none;
  font-weight: 700;
}

.busy-active {
  cursor: progress;
}

.busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 32, 51, 0.26);
  backdrop-filter: blur(6px);
}

.busy-overlay-card {
  min-width: 18rem;
  max-width: 24rem;
  padding: 1.25rem 1.4rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--hc-line);
  box-shadow: 0 18px 40px rgba(17, 32, 51, 0.18);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.busy-spinner {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 3px solid rgba(45, 123, 120, 0.18);
  border-top-color: var(--hc-primary);
  animation: busy-spin 0.9s linear infinite;
}

.busy-overlay-message {
  font-weight: 700;
  color: var(--hc-ink);
}

@keyframes busy-spin {
  to {
    transform: rotate(360deg);
  }
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.9fr);
  gap: 2rem;
  padding: 2rem;
}

.login-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-title {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.05;
  margin: 0.4rem 0 1rem;
}

.login-highlights {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.login-highlights label {
  display: block;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hc-accent);
}

.login-form-panel {
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 32, 51, 0.08);
}

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 5.5rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--hc-primary-deep);
  font-weight: 700;
}

.password-toggle:hover,
.password-toggle:focus {
  text-decoration: underline;
}

:root[data-theme="dark"] .text-secondary,
:root[data-theme="dark"] .table-subtitle,
:root[data-theme="dark"] .metric-card span,
:root[data-theme="dark"] .stack-item p,
:root[data-theme="dark"] .timeline-item p,
:root[data-theme="dark"] .app-confirm-modal .modal-body {
  color: var(--hc-muted) !important;
}

:root[data-theme="dark"] .content-card,
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .hero-panel,
:root[data-theme="dark"] .page-header-block,
:root[data-theme="dark"] .login-shell {
  background: rgba(18, 31, 46, 0.92);
}

:root[data-theme="dark"] .login-form-panel,
:root[data-theme="dark"] .content-card-soft,
:root[data-theme="dark"] .survey-readonly-panel,
:root[data-theme="dark"] .builder-help,
:root[data-theme="dark"] .recipient-preview-card,
:root[data-theme="dark"] .notification-card,
:root[data-theme="dark"] .notification-toast,
:root[data-theme="dark"] .app-confirm-modal .modal-content,
:root[data-theme="dark"] .survey-question-modal,
:root[data-theme="dark"] .modal-content {
  background: rgba(13, 22, 34, 0.96);
  color: var(--hc-ink);
  border-color: var(--hc-line);
}

:root[data-theme="dark"] .modal-header,
:root[data-theme="dark"] .modal-footer,
:root[data-theme="dark"] .app-confirm-modal .modal-header,
:root[data-theme="dark"] .app-confirm-modal .modal-footer {
  border-color: var(--hc-line);
}

:root[data-theme="dark"] .message-preview-body {
  background: rgba(8, 17, 28, 0.86);
  color: var(--hc-ink);
  border-color: var(--hc-line);
}

:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] .form-control:disabled {
  background-color: #f8fafc;
  color: #07111d;
  border-color: rgba(226, 235, 245, 0.34);
}

:root[data-theme="dark"] .form-control::placeholder {
  color: #6b7684;
}

:root[data-theme="dark"] .select2-container--default .select2-selection--single,
:root[data-theme="dark"] .select2-dropdown,
:root[data-theme="dark"] .select2-container--default .select2-search--dropdown .select2-search__field {
  background: #101b29;
  color: #f2f6fb;
  border-color: rgba(226, 235, 245, 0.34);
}

:root[data-theme="dark"] .app-switch,
:root[data-theme="dark"] .app-choice {
  background: rgba(13, 22, 34, 0.78);
  border-color: rgba(226, 235, 245, 0.18);
}

:root[data-theme="dark"] .app-switch .form-check-input {
  background-color: rgba(169, 183, 199, 0.28);
  box-shadow: inset 0 0 0 1px rgba(226, 235, 245, 0.1);
}

:root[data-theme="dark"] .app-switch .form-check-input:checked {
  background-color: var(--hc-accent);
}

:root[data-theme="dark"] .app-choice:hover {
  background: rgba(18, 31, 46, 0.96);
  border-color: rgba(216, 122, 66, 0.48);
}

:root[data-theme="dark"] .app-choice .form-check-input {
  border-color: rgba(114, 201, 195, 0.58);
}

:root[data-theme="dark"] .app-choice .form-check-input:checked {
  border-color: var(--hc-primary);
  background-color: var(--hc-primary);
}

:root[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered,
:root[data-theme="dark"] .select2-container--default .select2-results__option--selected {
  color: #f2f6fb;
}

:root[data-theme="dark"] .select2-container--default .select2-results__option--selected {
  background: rgba(114, 201, 195, 0.2);
}

:root[data-theme="dark"] .audience-category-tab,
:root[data-theme="dark"] .audience-card {
  background: rgba(13, 22, 34, 0.96);
  color: #f2f6fb;
  border-color: rgba(226, 235, 245, 0.2);
}

:root[data-theme="dark"] .audience-category-tab.active,
:root[data-theme="dark"] .audience-card.selected {
  color: #fff;
}

:root[data-theme="dark"] .audience-card span:last-child,
:root[data-theme="dark"] .audience-picker-empty {
  color: #a9b7c7;
}

:root[data-theme="dark"] .directory-results-bar {
  background: rgba(13, 22, 34, 0.78);
  color: #a9b7c7;
  border-color: rgba(226, 235, 245, 0.18);
}

:root[data-theme="dark"] .form-label,
:root[data-theme="dark"] label {
  color: #e8eef6;
}

:root[data-theme="dark"] .hr-table,
:root[data-theme="dark"] .hr-light-table,
:root[data-theme="dark"] .content-card .table {
  --bs-table-color: #f2f6fb;
  --bs-table-striped-color: #f2f6fb;
  --bs-table-active-color: #f2f6fb;
  --bs-table-hover-color: #ffffff;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.04);
  --bs-table-active-bg: rgba(255, 255, 255, 0.07);
  --bs-table-hover-bg: rgba(114, 201, 195, 0.1);
  --bs-table-border-color: rgba(226, 235, 245, 0.18);
  color: #f2f6fb;
}

:root[data-theme="dark"] .hr-light-table thead,
:root[data-theme="dark"] .hr-table thead,
:root[data-theme="dark"] .content-card .table thead {
  color: #ffffff;
  border-color: rgba(226, 235, 245, 0.24);
}

:root[data-theme="dark"] .hr-light-table th,
:root[data-theme="dark"] .hr-light-table td,
:root[data-theme="dark"] .hr-table th,
:root[data-theme="dark"] .hr-table td,
:root[data-theme="dark"] .content-card .table th,
:root[data-theme="dark"] .content-card .table td {
  color: #f2f6fb;
  border-color: rgba(226, 235, 245, 0.18);
}

:root[data-theme="dark"] .hr-light-table th,
:root[data-theme="dark"] .hr-table th,
:root[data-theme="dark"] .content-card .table th {
  color: #ffffff;
}

:root[data-theme="dark"] .table-responsive,
:root[data-theme="dark"] .table-actions-cell {
  color: #f2f6fb;
}

:root[data-theme="dark"] .directory-filter-summary,
:root[data-theme="dark"] .empty-state,
:root[data-theme="dark"] .form-text {
  color: var(--hc-muted) !important;
}

:root[data-theme="dark"] .table-link,
:root[data-theme="dark"] a {
  color: #8fe1dc;
}

:root[data-theme="dark"] .btn-outline-secondary {
  color: #e8eef6;
  border-color: rgba(226, 235, 245, 0.42);
}

:root[data-theme="dark"] .btn-outline-secondary:hover,
:root[data-theme="dark"] .btn-outline-secondary:focus {
  color: #07111d;
  background: #e8eef6;
  border-color: #e8eef6;
}

:root[data-theme="dark"] .status-pill.alt,
:root[data-theme="dark"] .timeline-category,
:root[data-theme="dark"] .plant-directory-code {
  background: rgba(114, 201, 195, 0.22);
  color: #d7fffb;
  border: 1px solid rgba(114, 201, 195, 0.34);
}

:root[data-theme="dark"] .status-pill {
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

:root[data-theme="dark"] .status-pill.warning {
  background: rgba(255, 173, 102, 0.2);
  color: #ffd2aa;
}

:root[data-theme="dark"] .sortable-header::after {
  color: #a9b7c7;
}

:root[data-theme="dark"] .sortable-header[aria-sort="ascending"]::after,
:root[data-theme="dark"] .sortable-header[aria-sort="descending"]::after {
  color: #aaf1ec;
}

:root[data-theme="dark"] .alert {
  background: rgba(13, 22, 34, 0.96);
  color: #f2f6fb;
  border: 1px solid var(--hc-line);
}

:root[data-theme="dark"] .alert-danger,
:root[data-theme="dark"] .text-danger {
  color: #ff8a9b !important;
}

:root[data-theme="dark"] .alert-success {
  color: #aaf1c8;
}

:root[data-theme="dark"] .busy-overlay {
  background: rgba(0, 0, 0, 0.55);
}

:root[data-theme="dark"] .busy-overlay-card {
  background: rgba(248, 250, 252, 0.98);
  color: #07111d;
  border-color: rgba(255, 255, 255, 0.22);
}

:root[data-theme="dark"] .busy-overlay-message {
  color: #07111d;
}

:root[data-theme="dark"] .password-toggle {
  color: #bf5c2d;
}

:root[data-theme="dark"] .btn-hero-secondary {
  background: rgba(114, 201, 195, 0.16);
  color: #aaf1ec;
  border-color: rgba(114, 201, 195, 0.34);
}

:root[data-theme="dark"] .btn-hero-secondary:hover,
:root[data-theme="dark"] .btn-hero-secondary:focus {
  background: #72c9c3;
  color: #07111d;
}

@media (max-width: 991.98px) {
  .topbar-inner {
    flex-wrap: wrap;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .has-side-nav .app-main,
  .has-side-nav .footer-shell {
    width: auto;
    max-width: 100%;
    margin-left: 0;
    padding-left: var(--bs-gutter-x, 0.75rem);
    padding-right: var(--bs-gutter-x, 0.75rem);
  }

  .app-main {
    padding-top: 0.95rem;
    padding-bottom: 1.15rem;
  }

  .app-toggler {
    display: inline-flex;
  }

  .app-nav {
    position: fixed;
    top: 4.8rem;
    right: 1rem;
    left: auto;
    bottom: auto;
    z-index: 1100;
    width: min(22rem, calc(100vw - 2rem));
    padding: 1rem;
    display: none;
    border: 1px solid var(--hc-line);
    border-radius: 1.25rem;
    background: rgba(255, 251, 246, 0.98);
    box-shadow: 0 24px 60px rgba(17, 32, 51, 0.18);
    backdrop-filter: blur(18px);
    overflow-y: visible;
  }

  .app-nav.is-open {
    display: block;
  }

  .app-nav::before {
    content: "";
    position: absolute;
    top: -0.45rem;
    right: 1.3rem;
    width: 0.9rem;
    height: 0.9rem;
    background: rgba(255, 251, 246, 0.98);
    border-top: 1px solid var(--hc-line);
    border-left: 1px solid var(--hc-line);
    transform: rotate(45deg);
  }

  .app-nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.4rem;
  }

  .app-nav .nav-link,
  .app-nav .btn-link.nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.8rem 0.95rem;
    border-radius: 1rem;
  }

  .app-nav .nav-link:hover,
  .app-nav .nav-link:focus,
  .app-nav .btn-link.nav-link:hover,
  .app-nav .btn-link.nav-link:focus {
    background: rgba(17, 32, 51, 0.07);
  }

  .topbar-actions {
    flex: 1 1 100%;
    justify-content: flex-end;
  }

  .public-shell .topbar-inner {
    flex-wrap: nowrap;
  }

  .public-shell .topbar-actions {
    flex: 0 0 auto;
    width: auto;
  }

  .topbar-chip,
  .topbar-link {
    min-height: 2.25rem;
  }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .automation-preview-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .automation-preview-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .automation-preview-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .automation-preview-summary article:nth-child(2) {
    border-right: 0;
  }

  .automation-preview-summary article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--hc-line);
  }

  .timeline-item,
  .stack-item,
  .page-header-block,
  .section-header {
    display: block;
  }

  .page-header-block > div {
    display: block;
  }

  .page-header-block h1,
  .page-header-block p,
  .page-header-block .eyebrow {
    margin-bottom: 0.35rem;
  }

  .compact-guidance {
    padding-top: 0.4rem;
  }

  .stack-meta {
    margin-top: 0.75rem;
    text-align: left;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .campaign-setup-panel {
    position: static;
  }

  .campaign-form-grid {
    grid-template-columns: 1fr;
  }

  .campaign-compose-grid {
    grid-template-columns: 1fr;
  }

  .audience-picker-toolbar {
    grid-template-columns: 1fr;
  }

  .audience-card-grid {
    grid-template-columns: 1fr;
    max-height: 22rem;
  }

  .recipient-filter-grid {
    grid-template-columns: 1fr;
  }

  .campaign-step-header,
  .campaign-final-actions {
    display: block;
  }

  .campaign-step-header p,
  .campaign-final-actions .form-text {
    margin-top: 0.5rem;
  }

  .campaign-step-grid {
    grid-template-columns: 1fr;
  }

  .employee-directory-toolbar {
    grid-template-columns: 1fr;
  }

  .survey-directory-toolbar {
    grid-template-columns: 1fr;
  }

  .employee-directory-toolbar .directory-toolbar-group,
  .employee-directory-toolbar .directory-toolbar-search,
  .survey-directory-toolbar .directory-toolbar-group,
  .survey-directory-toolbar .directory-toolbar-search {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .employee-directory-toolbar .directory-toolbar-search .form-control,
  .employee-directory-toolbar .directory-toolbar-search .btn,
  .employee-directory-toolbar .directory-filter-select,
  .survey-directory-toolbar .directory-toolbar-search .form-control,
  .survey-directory-toolbar .directory-toolbar-search .btn,
  .survey-directory-toolbar .directory-filter-select {
    width: 100%;
  }

  .survey-directory-toolbar .directory-filter-summary {
    justify-self: start;
  }
}

@media (max-width: 767.98px) {
  .public-shell .topbar-inner {
    flex-wrap: wrap;
  }

  .public-shell .topbar-actions {
    flex: 1 1 100%;
    width: 100%;
  }

  .automation-preview-date-form,
  .automation-preview-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .automation-preview-date-form .form-control,
  .automation-preview-actions .btn {
    width: 100%;
  }

  .automation-preview-summary {
    grid-template-columns: 1fr;
  }

  .automation-preview-summary article,
  .automation-preview-summary article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--hc-line);
  }

  .automation-preview-summary article:last-child {
    border-bottom: 0;
  }
}

@media (min-width: 992px) {
  .public-home-actions {
    justify-content: flex-end;
  }
}

.section-divider {
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}

.section-header.compact {
  margin-bottom: 1rem;
}

/* Trulite / Tru Access-inspired component treatment for light mode. */
:root[data-theme="light"] .topbar {
  border-top: 0;
  border-bottom-color: #d8e1e9;
  background: #fff;
  backdrop-filter: none;
  box-shadow: 0 1px 4px rgba(23, 50, 77, 0.06);
}

:root[data-theme="light"] .topbar-inner { min-height: 4.35rem; }
:root[data-theme="light"] .brand { gap: 1rem; }
:root[data-theme="light"] .brand-logo-wrap { min-width: 10.75rem; }
:root[data-theme="light"] .brand strong { color: #4f5963; font-size: 1.05rem; font-weight: 500; }
:root[data-theme="light"] .brand small { color: #82909c; font-size: 0.76rem; }

:root[data-theme="light"] .topbar-chip,
:root[data-theme="light"] .topbar-link {
  min-height: 2.45rem;
  border: 1px solid #e4ebf1;
  border-radius: 0.65rem;
  background: #fff;
  color: #315b7e;
  box-shadow: 0 1px 4px rgba(23, 50, 77, 0.06);
}

:root[data-theme="light"] .topbar-chip:first-child {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #65717c;
  font-weight: 500;
}

:root[data-theme="light"] .topbar-link:hover,
:root[data-theme="light"] .topbar-link:focus {
  border-color: #bed4e6;
  background: #f3f8fc;
  color: var(--hc-primary-deep);
}

:root[data-theme="light"] .theme-toggle { border-radius: 0.65rem; }
:root[data-theme="light"] .app-nav {
  top: 4.35rem;
  width: 14.25rem;
  padding: 0.85rem 0;
  border-right-color: #d8e1e9;
  background: #fff;
  backdrop-filter: none;
}

:root[data-theme="light"] .has-side-nav .app-main,
:root[data-theme="light"] .has-side-nav .footer-shell {
  width: calc(100% - 14.25rem);
  margin-left: 14.25rem;
}

:root[data-theme="light"] .app-nav-list { gap: 0; }
:root[data-theme="light"] .app-nav .nav-link {
  min-height: 2.65rem;
  padding: 0.62rem 1.1rem;
  border-left: 3px solid transparent;
  border-radius: 0;
  color: #3d5367;
  font-size: 0.92rem;
  font-weight: 500;
}

:root[data-theme="light"] .app-nav .nav-link .bi { color: #53697c; }
:root[data-theme="light"] .app-nav .nav-link:hover,
:root[data-theme="light"] .app-nav .nav-link:focus {
  border-left-color: #9cc8e8;
  background: #f3f8fc;
  color: var(--hc-primary-deep);
}

:root[data-theme="light"] .app-nav .nav-link.active {
  border-left-color: #19a9df;
  background: #edf7fc;
  color: #0879b8;
  box-shadow: none;
  font-weight: 600;
}

:root[data-theme="light"] .app-nav .nav-link.active .bi { color: #0879b8; }
:root[data-theme="light"] .app-main { padding-top: 1rem; }
:root[data-theme="light"] .hero-panel,
:root[data-theme="light"] .content-card,
:root[data-theme="light"] .metric-card,
:root[data-theme="light"] .hero-card,
:root[data-theme="light"] .page-header-block {
  border-color: #d7e1e9;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(23, 50, 77, 0.05);
}

:root[data-theme="light"] .page-header-block { border-top: 2px solid #2878b9; }
:root[data-theme="light"] .page-header-block h1 {
  color: #596673;
  font-size: clamp(1.45rem, 1.8vw, 1.9rem);
  font-weight: 500;
}

:root[data-theme="light"] .eyebrow,
:root[data-theme="light"] .section-kicker { color: #236ca7; }
:root[data-theme="light"] .btn-primary,
:root[data-theme="light"] .workflow-tabs .nav-link.active {
  border: 1px solid #1d69a7;
  background: #2878b9;
  box-shadow: none;
}

:root[data-theme="light"] .btn-primary:hover,
:root[data-theme="light"] .btn-primary:focus { border-color: #145f9c; background: #145f9c; }
:root[data-theme="light"] .btn-hero-secondary,
:root[data-theme="light"] .btn-outline-secondary {
  border-color: #9fb7ca;
  background: #fff;
  color: #286792;
  box-shadow: none;
}

:root[data-theme="light"] .btn-hero-secondary:hover,
:root[data-theme="light"] .btn-hero-secondary:focus,
:root[data-theme="light"] .btn-outline-secondary:hover,
:root[data-theme="light"] .btn-outline-secondary:focus {
  border-color: #2878b9;
  background: #edf6fc;
  color: #145f9c;
}

:root[data-theme="light"] .btn-outline-secondary:disabled {
  border-color: #d5dee6;
  background: #fff;
  color: #98a4af;
}

:root[data-theme="light"] .users-directory-toolbar {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(23rem, 29rem) auto auto;
  align-items: center;
  gap: 0.65rem;
}

:root[data-theme="light"] .users-directory-toolbar .directory-toolbar-search,
:root[data-theme="light"] .users-directory-toolbar .directory-toolbar-group {
  min-width: 0;
  flex-wrap: nowrap;
}

:root[data-theme="light"] .users-directory-toolbar .directory-toolbar-search .form-control {
  width: 100%;
  min-width: 0;
}

:root[data-theme="light"] .users-directory-toolbar .directory-filter-select {
  width: 100%;
  min-width: 0;
}

:root[data-theme="light"] .users-directory-toolbar .directory-filter-select.short {
  flex: 0 0 10.5rem;
}

:root[data-theme="light"] .users-directory-toolbar .directory-filter-summary {
  justify-self: end;
  white-space: nowrap;
}
:root[data-theme="light"] .form-control,
:root[data-theme="light"] .form-select,
:root[data-theme="light"] .form-control:disabled,
:root[data-theme="light"] .select2-container--default .select2-selection--single {
  border-color: #cad7e2;
  border-radius: 0.45rem;
  background-color: #fff;
}

:root[data-theme="light"] .form-control:focus,
:root[data-theme="light"] .form-select:focus {
  border-color: #6ea9d3;
  box-shadow: 0 0 0 0.2rem rgba(40, 120, 185, 0.14);
}

:root[data-theme="light"] .table-responsive { border: 1px solid #d7e1e9; border-radius: 0.55rem; }
:root[data-theme="light"] .hr-table,
:root[data-theme="light"] .hr-light-table,
:root[data-theme="light"] .content-card .table {
  --bs-table-border-color: #dfe7ee;
  --bs-table-hover-bg: #f2f8fc;
}

:root[data-theme="light"] .hr-table thead,
:root[data-theme="light"] .hr-light-table thead,
:root[data-theme="light"] .content-card .table thead { background: #f1f6fa; color: #173f64; }
:root[data-theme="light"] .hr-table th,
:root[data-theme="light"] .hr-light-table th,
:root[data-theme="light"] .content-card .table th { font-size: 0.82rem; font-weight: 700; }
:root[data-theme="light"] .hr-table td,
:root[data-theme="light"] .hr-light-table td,
:root[data-theme="light"] .content-card .table td { font-size: 0.9rem; }
:root[data-theme="light"] .table-link { color: #176daf; }
:root[data-theme="light"] .directory-results-bar,
:root[data-theme="light"] .content-card-soft,
:root[data-theme="light"] .campaign-compose-card,
:root[data-theme="light"] .recipient-option,
:root[data-theme="light"] .audience-card,
:root[data-theme="light"] .app-choice {
  border-color: #dbe4ec;
  border-radius: 0.65rem;
  background: #f8fafc;
  box-shadow: none;
}

:root[data-theme="light"] .status-pill { border-radius: 0.35rem; }
:root[data-theme="light"] .footer-shell { border-top-color: #d8e1e9; background: #f8fafc; }

@media (max-width: 991.98px) {
  :root[data-theme="light"] .has-side-nav .app-main,
  :root[data-theme="light"] .has-side-nav .footer-shell { width: 100%; margin-left: 0; }
  :root[data-theme="light"] .app-nav { width: min(20rem, calc(100vw - 1.5rem)); }
  :root[data-theme="light"] .users-directory-toolbar { grid-template-columns: 1fr; }
  :root[data-theme="light"] .users-directory-toolbar .directory-toolbar-group { flex-wrap: wrap; }
  :root[data-theme="light"] .users-directory-toolbar .directory-filter-select.short { flex: 1 1 10rem; }
  :root[data-theme="light"] .users-directory-toolbar .directory-filter-summary { justify-self: start; }
}
