:root {
  --brand-navy: #3c3d73;
  --brand-red: #c63e4f;
  --brand-slate: #8d919a;
  --brand-ice: #f5f7fb;
  --brand-ink: #20253d;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 84px;
  --header-height: 88px;
  --tblr-font-sans-serif: "Lato", sans-serif;
  --tblr-primary: var(--brand-navy);
  --tblr-primary-rgb: 60, 61, 115;
  --tblr-secondary: var(--brand-slate);
  --tblr-secondary-rgb: 141, 145, 154;
}

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

body {
  font-family: "Lato", sans-serif;
  color: var(--brand-ink);
  background:
    radial-gradient(circle at top left, rgba(198, 62, 79, 0.12), transparent 32%),
    radial-gradient(circle at right, rgba(60, 61, 115, 0.1), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, var(--brand-ice) 100%);
}

.app-shell {
  position: relative;
  min-height: 100vh;
}

.app-shell__overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(17, 22, 41, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.app-shell__main {
  min-height: 100vh;
  transition: padding-left 0.24s ease;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  padding: 1rem 1.5rem;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(60, 61, 115, 0.08);
}

.app-header__search {
  flex: 1;
  max-width: 480px;
  margin: 0 2rem;
}

.search-container {
  position: relative;
  width: 100%;
}

.input-icon .form-control {
  background: rgba(60, 61, 115, 0.04);
  border: 1px solid rgba(60, 61, 115, 0.12);
  border-radius: 12px;
  padding-left: 2.75rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
}

.input-icon .form-control:focus {
  background: #fff;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 4px rgba(60, 61, 115, 0.08);
  width: 100%;
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  margin-top: 0.5rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1rem 3rem rgba(32, 37, 61, 0.18);
  border: 1px solid rgba(60, 61, 115, 0.1);
  overflow: hidden;
  display: none;
  max-height: 400px;
  overflow-y: auto;
}

.search-results-dropdown.is-active {
  display: block;
  animation: slideTopIn 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-result-item {
  display: block;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  color: var(--brand-ink);
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(60, 61, 115, 0.06);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(60, 61, 115, 0.04);
  text-decoration: none;
  color: var(--brand-navy);
}

.search-result-title {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
}

.search-result-subtitle {
  display: block;
  color: var(--brand-slate);
  font-size: 0.82rem;
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes slideTopIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-header__toggle,
.app-sidebar__close,
.app-nav-group__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0.9rem;
  background: rgba(60, 61, 115, 0.08);
  color: var(--brand-navy);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.app-header__toggle:hover,
.app-sidebar__close:hover,
.app-nav-group__toggle:hover {
  background: rgba(60, 61, 115, 0.16);
}

.app-header__title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.app-header__eyebrow {
  color: var(--brand-slate);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-header__heading {
  margin: 0;
  font-size: clamp(1.55rem, 1.2rem + 1vw, 2.1rem);
  font-weight: 900;
}

.app-header__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-header__logo {
  display: none;
  width: 9rem;
  max-width: 100%;
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 0;
  border-right: 1px solid rgba(60, 61, 115, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 251, 0.98));
  transition: width 0.24s ease, transform 0.24s ease;
}

.app-sidebar__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem 1rem;
  border-radius: 0;
  background: transparent;
}

.app-sidebar__brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(60, 61, 115, 0.08);
}

.app-sidebar__brand-link {
  display: flex;
  justify-content: center;
  width: 100%;
}

.app-sidebar__logo {
  display: block;
  box-sizing: border-box;
  height: 4.4rem;
  background: #fff;
}

.app-sidebar__logo--expanded {
  width: auto;
  max-width: min(100%, 11rem);
  padding: 0.55rem 0.65rem;
  border-radius: 1.1rem;
  object-fit: contain;
}

.app-sidebar__logo--collapsed {
  display: none;
  width: 4.4rem;
  height: 4.4rem;
  padding: 0.35rem;
  border-radius: 1rem;
  object-fit: contain;
}

.app-sidebar__close {
  position: absolute;
  top: 0;
  right: 0;
}

.app-sidebar__nav {
  display: grid;
  gap: 0.45rem;
  flex: 1;
  align-content: start;
}

.app-sidebar__footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(60, 61, 115, 0.08);
}

.app-sidebar-mode {
  padding: 0.25rem;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(60, 61, 115, 0.05), rgba(198, 62, 79, 0.06));
}

.app-sidebar-mode__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem 0.75rem;
}

.app-sidebar-mode__eyebrow {
  color: var(--brand-slate);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-sidebar-mode__current {
  color: var(--brand-navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.app-sidebar-mode__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.app-sidebar-mode__option {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.75rem 0.8rem;
  border: 0;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  color: rgba(32, 37, 61, 0.82);
  font: inherit;
  font-weight: 800;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.app-sidebar-mode__option:hover,
.app-sidebar-mode__option:focus-visible {
  background: #fff;
  color: var(--brand-navy);
  transform: translateY(-1px);
  box-shadow: 0 0.85rem 1.8rem rgba(31, 39, 73, 0.1);
  outline: none;
}

.app-sidebar-mode__option.is-active {
  background: linear-gradient(135deg, rgba(198, 62, 79, 0.18), rgba(60, 61, 115, 0.14));
  color: var(--brand-navy);
  box-shadow: inset 0 0 0 1px rgba(60, 61, 115, 0.12);
}

.app-sidebar-mode__icon {
  width: 1.35rem;
  height: 1.35rem;
}

.app-sidebar-mode__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-nav-group {
  border-radius: 1rem;
}

.app-nav-group__header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.app-nav-link,
.app-submenu__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  border-radius: 1rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.app-nav-link {
  flex: 1;
  padding: 0.9rem 1rem;
  color: rgba(32, 37, 61, 0.82);
}

.app-nav-link:hover,
.app-submenu__link:hover {
  color: var(--brand-navy);
  background: rgba(60, 61, 115, 0.08);
}

.app-nav-link.is-active,
.app-submenu__link.is-active {
  color: var(--brand-navy);
  background: linear-gradient(135deg, rgba(198, 62, 79, 0.14), rgba(60, 61, 115, 0.08));
  box-shadow: inset 0 0 0 1px rgba(60, 61, 115, 0.08);
}

.app-nav-link__label,
.app-submenu__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.app-submenu {
  display: grid;
  gap: 0.35rem;
  max-height: 0;
  margin-top: 0;
  padding-left: 0;
  overflow: hidden;
  transition: max-height 0.24s ease, margin-top 0.24s ease;
}

.app-nav-group.submenu-open .app-submenu {
  max-height: 12rem;
  margin-top: 0.35rem;
}

.app-submenu__link {
  margin-left: 1rem;
  padding: 0.8rem 0.95rem;
  color: rgba(32, 37, 61, 0.72);
  font-size: 0.94rem;
}

.app-nav-group__toggle {
  flex: none;
  color: rgba(60, 61, 115, 0.74);
  background: rgba(60, 61, 115, 0.05);
}

.app-nav-group.submenu-open .app-nav-group__chevron {
  transform: rotate(90deg);
}

.app-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}

.app-icon svg,
.app-icon i,
.app-icon .ti {
  width: 100%;
  height: 100%;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon svg {
  fill: currentColor;
}

.app-content {
  padding: 1.5rem;
}

.app-content > .container-xl {
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

.section-panel__header {
  max-width: 42rem;
  margin-bottom: 1.75rem;
}

.config-tabs-shell {
  margin-bottom: 1.5rem;
}

.config-tabs {
  gap: 0.5rem;
  border-bottom: 1px solid rgba(60, 61, 115, 0.12);
}

.config-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  color: rgba(32, 37, 61, 0.72);
  font-weight: 800;
}

.config-tab__label {
  line-height: 1;
}

.config-tab__status {
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1;
}

.config-tabs .nav-link:hover,
.config-tabs .nav-link:focus-visible {
  color: var(--brand-navy);
  background: rgba(60, 61, 115, 0.08);
}

.config-tabs .nav-link.active {
  background: var(--brand-navy);
  color: #fff;
}

.config-tab-content {
  padding-top: 1rem;
}

.march-tab-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.march-tab-header__logo {
  width: auto;
  max-width: min(16rem, 32vw);
  max-height: 4.25rem;
  object-fit: contain;
  object-position: right top;
}

.integration-logo {
  width: auto;
  max-width: 9rem;
  max-height: 2.75rem;
}

.integration-logo--badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(60, 61, 115, 0.08);
  color: var(--brand-navy);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.upload-meta {
  display: grid;
  gap: 0.9rem;
}

.upload-meta__item {
  display: grid;
  gap: 0.2rem;
}

.upload-meta__label {
  color: var(--brand-slate);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upload-meta__path {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.84rem;
}

.upload-history-table__primary {
  font-weight: 700;
}

.upload-history-table__secondary {
  color: var(--brand-slate);
  font-size: 0.82rem;
  margin-top: 0.15rem;
  word-break: break-word;
}

.customer-account-table__primary {
  font-weight: 700;
}

.customer-account-table__secondary {
  color: var(--brand-slate);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.customer-account-cs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.customer-account-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.customer-duplicate-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.6rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(245, 159, 0, 0.12);
  color: #9c6800;
  font-size: 0.84rem;
  font-weight: 800;
}

.metric-card__label {
  color: var(--brand-slate);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.metric-card__value {
  font-size: clamp(1.9rem, 1.6rem + 1vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.45rem;
}

.navbar-brand-image {
  height: 2.5rem;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  border: 0;
  background:
    linear-gradient(135deg, rgba(60, 61, 115, 0.96), rgba(42, 44, 85, 0.98)),
    var(--brand-navy);
  color: #fff;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: auto -8% -35% auto;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 2rem rgba(198, 62, 79, 0.12),
    0 0 0 5rem rgba(255, 255, 255, 0.04);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-shell .card-body {
  position: relative;
  z-index: 1;
}

.hero-logo {
  max-width: 19rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1rem 2.5rem rgba(12, 17, 43, 0.18);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge--dark {
  background: rgba(60, 61, 115, 0.08);
  color: var(--brand-navy);
}

.hero-badge--muted {
  background: rgba(32, 37, 61, 0.08);
  color: rgba(32, 37, 61, 0.72);
}

.hero-badge--muted::before {
  background: rgba(32, 37, 61, 0.45);
}

.hero-badge--success {
  background: rgba(47, 179, 68, 0.12);
  color: #1c7c32;
}

.hero-badge--success::before {
  background: #2fb344;
}

.hero-badge--warning {
  background: rgba(245, 159, 0, 0.16);
  color: #8f5b00;
}

.hero-badge--warning::before {
  background: #f59f00;
}

.hero-badge--danger {
  background: rgba(214, 57, 57, 0.14);
  color: #c92a2a;
}

.hero-badge--danger::before {
  background: #e03131;
}

.hero-badge::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brand-red);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-metric {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.hero-metric-label {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-metric-value {
  font-size: 1.4rem;
  font-weight: 900;
}

.hero-summary-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-summary-card {
  grid-column: span 4;
  padding: 1rem 1.05rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-summary-card__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.hero-summary-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  flex-shrink: 0;
}

.hero-summary-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
}

.hero-summary-card__eyebrow {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-summary-card__value {
  margin-top: 0.15rem;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.1;
}

.hero-summary-card__body {
  display: grid;
  gap: 0.55rem;
}

.hero-summary-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.hero-summary-card__row span {
  color: rgba(255, 255, 255, 0.68);
}

.hero-summary-card__row strong {
  color: #fff;
  font-weight: 800;
}

.hero-summary-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-summary-chip strong {
  color: #fff;
  font-weight: 900;
}

.brand-card {
  height: 100%;
  border: 0;
  box-shadow: 0 1rem 2.5rem rgba(31, 39, 73, 0.08);
}

.dashboard-actions {
  display: grid;
  gap: 0.85rem;
  min-width: min(100%, 24rem);
}

.dashboard-actions__form {
  margin: 0;
}

.dashboard-actions__button {
  width: 100%;
}

.dashboard-actions__meta {
  display: grid;
  gap: 0.25rem;
  color: var(--brand-slate);
  font-size: 0.92rem;
}

.monitoring-console {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.monitoring-console__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.monitoring-status-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
  min-height: 5.3rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid rgba(60, 61, 115, 0.1);
  box-shadow: 0 0.8rem 1.8rem rgba(31, 39, 73, 0.07);
}

.monitoring-status-card::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  bottom: 0.5rem;
  left: 0.75rem;
  height: 0.18rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(66, 99, 235, 0.12), rgba(66, 99, 235, 0.72), rgba(66, 99, 235, 0.12));
  background-size: 220% 100%;
  opacity: 0;
  transform: scaleX(0.55);
  transform-origin: left center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.monitoring-status-card[data-card-loading="true"]::after {
  opacity: 1;
  transform: scaleX(1);
  animation: monitoring-card-progress 1.05s linear infinite;
}

.monitoring-status-card[data-card-loading="true"] .monitoring-status-card__value {
  color: var(--brand-slate);
}

.monitoring-status-card[data-card-loading="true"] .monitoring-status-card__detail {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.monitoring-status-card[data-card-loading="true"] .monitoring-status-card__detail::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid rgba(66, 99, 235, 0.22);
  border-top-color: #4263eb;
  border-radius: 999px;
  animation: monitoring-card-spin 0.8s linear infinite;
}

@keyframes monitoring-card-progress {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

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

.monitoring-status-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  font-size: 1.1rem;
}

.monitoring-status-card__label {
  color: var(--brand-slate);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.monitoring-status-card__value {
  margin-top: 0.15rem;
  color: var(--brand-ink);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.monitoring-status-card__detail {
  margin-top: 0.2rem;
  color: var(--brand-slate);
  font-size: 0.8rem;
}

.monitoring-status-card--success {
  border-color: rgba(47, 179, 68, 0.2);
}

.monitoring-status-card--success .monitoring-status-card__icon {
  background: rgba(47, 179, 68, 0.12);
  color: #1c7c32;
}

.monitoring-status-card--warning {
  border-color: rgba(245, 159, 0, 0.24);
}

.monitoring-status-card--warning .monitoring-status-card__icon {
  background: rgba(245, 159, 0, 0.16);
  color: #8f5b00;
}

.monitoring-status-card--danger {
  border-color: rgba(214, 57, 57, 0.22);
}

.monitoring-status-card--danger .monitoring-status-card__icon {
  background: rgba(214, 57, 57, 0.13);
  color: #c92a2a;
}

.monitoring-status-card--info .monitoring-status-card__icon {
  background: rgba(66, 99, 235, 0.12);
  color: #364fc7;
}

.monitoring-status-card--muted .monitoring-status-card__icon {
  background: rgba(141, 145, 154, 0.12);
  color: var(--brand-slate);
}

.daily-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.daily-health-grid .monitoring-status-card {
  min-height: 4.8rem;
}

.daily-health-card-button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.daily-health-card-button:hover,
.daily-health-card-button:focus-visible {
  border-color: rgba(60, 61, 115, 0.32);
  box-shadow: 0 0.9rem 2rem rgba(31, 39, 73, 0.12);
  transform: translateY(-1px);
}

.daily-report-summary-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.daily-report-summary-card {
  padding: 0.8rem;
  border: 1px solid #e8eaf0;
  border-radius: 0.5rem;
  background: #f5f7fb;
  text-align: center;
}

.daily-report-summary-card__value {
  color: var(--brand-ink);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.daily-report-summary-card__label {
  margin-top: 0.25rem;
  color: var(--brand-slate);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.daily-report-table-wrap {
  overflow: auto;
  border: 1px solid #e8eaf0;
  border-radius: 0.5rem;
}

.daily-report-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.daily-report-table th,
.daily-report-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #e8eaf0;
  vertical-align: top;
}

.daily-report-table th {
  background: #f8f9fc;
  color: var(--brand-slate);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-report-table tbody tr:last-child td {
  border-bottom: 0;
}

.daily-report-block-list {
  display: grid;
  gap: 0.75rem;
}

.daily-report-block {
  border: 1px solid #e8eaf0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.daily-report-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: #f8f9fc;
}

.daily-report-block__body {
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem 0.85rem;
  color: var(--brand-slate);
  font-size: 0.86rem;
}

.daily-report-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(214, 57, 57, 0.12);
  color: #c92a2a;
  font-size: 0.72rem;
  font-weight: 900;
}

.daily-report-email-copy {
  margin: 0 0 0.85rem;
  color: var(--brand-slate);
  font-size: 0.82rem;
  line-height: 1.45;
}

.daily-report-email-customer-block {
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #ffffff;
}

.daily-report-email-customer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.daily-report-email-customer-header__main {
  min-width: 0;
}

.daily-report-email-chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.daily-report-email-chip-row--secondary {
  margin-top: 0.28rem;
}

.daily-report-email-customer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  color: inherit;
  text-decoration: none;
}

.daily-report-email-customer-link:hover {
  color: var(--brand-ink);
  text-decoration: underline;
}

.daily-report-email-customer-name {
  font-size: 0.95rem;
  font-weight: 800;
}

.daily-report-email-open {
  color: var(--brand-ink);
  font-size: 0.7rem;
  line-height: 1;
}

.daily-report-email-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.15rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.daily-report-count-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.daily-report-count-bubble--inline {
  min-width: 1.35rem;
  height: 1.35rem;
  vertical-align: middle;
}

.daily-report-email-customer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  color: #5d6472;
  font-size: 0.76rem;
}

.daily-report-email-alarm-row {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #f5f5f5;
}

.daily-report-email-alarm-row:last-child {
  border-bottom: 0;
}

.daily-report-email-device {
  color: #20253d;
  font-size: 0.84rem;
  font-weight: 800;
}

.daily-report-email-device-extra {
  color: #666;
  font-size: 0.72rem;
  font-weight: 500;
}

.daily-report-email-condition {
  margin-top: 0.12rem;
  color: #444;
  font-size: 0.78rem;
  line-height: 1.45;
}

.daily-report-email-meta-small,
.daily-report-email-muted {
  color: #8d919a;
  font-size: 0.72rem;
}

.daily-report-email-meta-small {
  margin-top: 0.22rem;
}

.daily-report-alert-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 0.82rem;
}

.daily-report-alert-table th {
  padding: 0.55rem 0.7rem;
  background: #f0f2f5;
  color: var(--brand-slate);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.daily-report-alert-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

.daily-report-alert-table tbody tr:last-child td {
  border-bottom: 0;
}

.daily-report-alert-table__center {
  text-align: center;
}

.daily-report-empty,
.daily-report-loading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px dashed #d7dbea;
  border-radius: 0.5rem;
  color: var(--brand-slate);
  background: #f8f9fc;
}

.daily-report-empty--danger {
  border-color: rgba(214, 57, 57, 0.25);
  color: #c92a2a;
  background: rgba(214, 57, 57, 0.06);
}

.ping-summary-card {
  min-height: 100%;
}

.device-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.device-status-search {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
}

.device-status-search__field {
  display: grid;
  gap: 0.45rem;
  flex: 1 1 22rem;
}

.device-status-search__label {
  color: var(--brand-slate);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.device-status-search__meta {
  color: var(--brand-slate);
  font-size: 0.92rem;
}

.device-status-filter {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(60, 61, 115, 0.08);
  color: var(--brand-navy);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.device-status-filter:hover {
  background: rgba(60, 61, 115, 0.12);
  color: var(--brand-navy);
  transform: translateY(-1px);
}

.device-status-filter.is-active {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-navy));
  color: #fff;
}

.recorder-ping-table__primary {
  font-weight: 700;
}

.recorder-ping-table__secondary {
  color: var(--brand-slate);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.recorder-ping-table__flag {
  margin-top: 0.45rem;
}

.recorder-model-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.recorder-customer-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.recorder-customer-card__metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.recorder-customer-card__models {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.recorder-site-stack {
  display: grid;
  gap: 1rem;
}

.recorder-site-block {
  padding: 1rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(60, 61, 115, 0.04), rgba(198, 62, 79, 0.05));
}

.recorder-site-block__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.recorder-site-block__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 900;
}

.recorder-site-block__camera-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.recorder-site-block__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.recorder-device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.recorder-device-card {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(60, 61, 115, 0.06);
}

.recorder-device-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.recorder-device-card__title {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.recorder-device-card__subtitle {
  margin-top: 0.2rem;
  color: var(--brand-slate);
  font-size: 0.82rem;
}

.recorder-inventory-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.75rem;
  margin-top: 1rem;
}

.recorder-inventory-source-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.06);
  color: var(--brand-ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.recorder-inventory-source-chip code {
  margin-left: 0.35rem;
}

.recorder-inventory-source-note {
  color: var(--brand-slate);
  font-size: 0.82rem;
}

.recorder-device-card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.recorder-device-card__fact {
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 0.95rem;
  background: rgba(15, 23, 42, 0.035);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.recorder-device-card__fact--status {
  background: rgba(215, 38, 56, 0.05);
  border-color: rgba(215, 38, 56, 0.12);
}

.recorder-device-card__fact-label {
  margin-bottom: 0.3rem;
  color: var(--brand-slate);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.recorder-device-card__fact-value {
  min-width: 0;
  color: var(--brand-ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.recorder-device-card__fact-value--mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
}

.recorder-status-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  line-height: 1.35;
}

.recorder-status-inline__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
}

.recorder-status-inline.is-up {
  color: #1c7c32;
}

.recorder-status-inline.is-down {
  color: #c92a2a;
}

.recorder-status-inline.is-pending {
  color: var(--brand-slate);
}

.recorder-support-trigger {
  white-space: nowrap;
}

.dashboard-store-map {
  height: 30rem;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(47, 50, 87, 0.08);
}

.dashboard-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.dashboard-map-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(47, 50, 87, 0.06);
}

.dashboard-map-toggle__button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--brand-slate);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.65rem 0.95rem;
}

.dashboard-map-toggle__button.is-active {
  background: var(--brand-navy);
  color: #fff;
  box-shadow: 0 0.45rem 1rem rgba(47, 50, 87, 0.18);
}

.dashboard-map-detail__name {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--brand-ink);
}

.dashboard-map-detail__section + .dashboard-map-detail__section {
  margin-top: 1rem;
}

.dashboard-map-detail__label {
  margin-bottom: 0.3rem;
  color: var(--brand-slate);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-map-popup {
  min-width: 15rem;
  line-height: 1.45;
}

.dashboard-map-popup a {
  color: var(--brand-red);
  font-weight: 700;
}

.dashboard-map-marker {
  background: transparent;
  border: 0;
}

.dashboard-map-marker__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(47, 50, 87, 0.24);
  box-shadow: 0 0.35rem 0.9rem rgba(47, 50, 87, 0.16);
  color: #7a8597;
}

.dashboard-map-marker__inner svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
}

.dashboard-map-marker--success .dashboard-map-marker__inner {
  border-color: rgba(47, 179, 68, 0.72);
  color: #1c7c32;
}

.dashboard-map-marker--warning .dashboard-map-marker__inner {
  border-color: rgba(245, 159, 0, 0.78);
  color: #9c6800;
}

.dashboard-map-marker--danger .dashboard-map-marker__inner {
  border-color: rgba(214, 57, 57, 0.78);
  color: #c92a2a;
}

@media (max-width: 1199.98px) {
  .monitoring-console__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .recorder-device-card__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-summary-card {
    grid-column: span 6;
  }
}

@media (max-width: 575.98px) {
  .monitoring-console__grid {
    grid-template-columns: 1fr;
  }

  .daily-health-grid {
    grid-template-columns: 1fr;
  }

  .daily-report-summary-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .recorder-inventory-sources {
    align-items: flex-start;
  }

  .recorder-device-card__facts {
    grid-template-columns: 1fr;
  }

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

  .hero-summary-card {
    grid-column: auto;
  }

  .dashboard-map-toolbar {
    justify-content: flex-start;
  }
}

.modal-body .table td,
.modal-body .table th {
  white-space: nowrap;
}

.recorder-support-modal--open {
  display: block;
  background: rgba(17, 22, 41, 0.45);
}

.recorder-health-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.recorder-health-pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.recorder-health-pill.is-up {
  background: rgba(47, 179, 68, 0.12);
  color: #1c7c32;
}

.recorder-health-pill.is-down {
  background: rgba(214, 57, 57, 0.14);
  color: #c92a2a;
}

.recorder-health-pill.is-pending {
  background: rgba(60, 61, 115, 0.08);
  color: var(--brand-navy);
}

.ping-history-chart {
  display: block;
  width: 180px;
  height: 44px;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(60, 61, 115, 0.08);
  color: var(--brand-navy);
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
}

.status-pill::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}

.status-pill.is-up {
  background: rgba(47, 179, 68, 0.12);
  color: #1c7c32;
}

.status-pill.is-up::before {
  background: #2fb344;
}

.status-pill.is-down {
  background: rgba(198, 62, 79, 0.12);
  color: #9f2333;
}

.status-pill.is-down::before {
  background: var(--brand-red);
}

.section-heading {
  max-width: 36rem;
}

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

.signal-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.signal-dot {
  flex: none;
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-navy));
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  padding: 1.15rem;
  border-radius: 1.1rem;
  text-decoration: none;
  color: var(--brand-ink);
  background: linear-gradient(180deg, rgba(60, 61, 115, 0.05), rgba(198, 62, 79, 0.08));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1rem 2rem rgba(31, 39, 73, 0.08);
}

.feature-card--muted {
  opacity: 0.8;
}

.feature-card__eyebrow {
  color: var(--brand-red);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card__title {
  font-size: 1.05rem;
}

.feature-card__text {
  color: var(--brand-slate);
}

.filter-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(60, 61, 115, 0.08);
  color: var(--brand-navy);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.filter-pill.active {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-red));
  color: #fff;
  box-shadow: 0 0.75rem 1.5rem rgba(31, 39, 73, 0.16);
}

@media (min-width: 992px) {
  .app-shell__main {
    padding-left: var(--sidebar-width);
  }

  .sidebar-collapsed .app-shell__main {
    padding-left: var(--sidebar-collapsed-width);
  }

  .sidebar-collapsed .app-sidebar {
    width: var(--sidebar-collapsed-width);
  }

  .sidebar-collapsed .app-sidebar__inner {
    padding-inline: 0.6rem;
  }

  .sidebar-collapsed .app-sidebar__brand {
    padding-bottom: 0.85rem;
  }

  .sidebar-collapsed .app-sidebar__logo--expanded {
    display: none;
  }

  .sidebar-collapsed .app-sidebar__logo--collapsed {
    display: block;
  }

  .sidebar-collapsed .app-sidebar__nav {
    justify-items: center;
  }

  .sidebar-collapsed .app-sidebar__footer {
    padding-top: 0.85rem;
  }

  .sidebar-collapsed .app-sidebar-mode {
    padding: 0.35rem 0;
    background: transparent;
  }

  .sidebar-collapsed .app-sidebar-mode__header,
  .sidebar-collapsed .app-sidebar-mode__current,
  .sidebar-collapsed .app-sidebar-mode__eyebrow,
  .sidebar-collapsed .app-sidebar-mode__label {
    display: none;
  }

  .sidebar-collapsed .app-sidebar-mode__options {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .sidebar-collapsed .app-sidebar-mode__option {
    justify-content: center;
    width: 3.25rem;
    min-height: 3.25rem;
    padding: 0;
    border-radius: 1rem;
  }

  .sidebar-collapsed .app-nav-group {
    width: 100%;
  }

  .sidebar-collapsed .app-nav-group__header {
    justify-content: center;
    gap: 0;
  }

  .sidebar-collapsed .app-nav-link {
    flex: none;
    width: 3.25rem;
    min-width: 3.25rem;
    min-height: 3.25rem;
    justify-content: center;
    padding: 0;
    margin-inline: auto;
    border-radius: 1rem;
  }

  .sidebar-collapsed .app-nav-group__toggle,
  .sidebar-collapsed .app-nav-link__label,
  .sidebar-collapsed .app-submenu,
  .sidebar-collapsed .app-submenu__label {
    display: none;
  }

  .sidebar-collapsed .app-submenu__link {
    margin-left: 0;
    justify-content: center;
  }

  .sidebar-collapsed .app-nav-link__icon {
    width: 1.35rem;
    height: 1.35rem;
  }
}

@media (max-width: 991.98px) {
  .march-tab-header {
    flex-direction: column;
  }

  .march-tab-header__logo {
    max-width: 12rem;
  }

  .recorder-customer-card__metrics {
    justify-content: flex-start;
  }

  .app-sidebar {
    width: min(86vw, 320px);
    transform: translateX(-100%);
  }

  .sidebar-mobile-open .app-shell__overlay {
    opacity: 1;
    visibility: visible;
  }

  .sidebar-mobile-open .app-sidebar {
    transform: translateX(0);
  }

  .app-header {
    padding-inline: 1rem;
  }

  .app-header__meta .badge {
    display: none;
  }

  .app-content {
    padding: 1rem;
  }
}

@media (min-width: 768px) {
  .app-header__logo {
    display: block;
  }
}

@media (max-width: 767.98px) {
  .hero-logo {
    max-width: 14rem;
  }

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

  .app-header__heading {
    font-size: 1.5rem;
  }
}

body.customer-review-modal-open {
  overflow: hidden;
}

.customer-review-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.customer-review-modal.is-open {
  display: block;
}

.customer-review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
  backdrop-filter: blur(4px);
}

.customer-review-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.2);
}

.customer-review-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(31, 39, 73, 0.08);
  background: linear-gradient(180deg, rgba(60, 61, 115, 0.05), rgba(198, 62, 79, 0.02));
}

.customer-review-modal__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-red);
}

.customer-review-modal__title {
  margin: 0.3rem 0 0;
  font-size: 1.25rem;
  color: var(--brand-ink);
}

.customer-review-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 39, 73, 0.08);
  color: var(--brand-navy);
}

.customer-review-modal__body {
  overflow: auto;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(245, 247, 252, 0.9), rgba(255, 255, 255, 1));
}

.customer-review-modal__loading,
.customer-review-empty {
  padding: 1rem 0;
  color: var(--brand-slate);
}

.customer-review {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.customer-review__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 39, 73, 0.08);
}

.customer-review__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-ink);
}

.customer-review__address,
.customer-review__meta,
.customer-review__note {
  color: var(--brand-slate);
}

.customer-review__summary-actions {
  display: grid;
  gap: 0.65rem;
  justify-items: end;
}

.monitoring-radio-review__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.monitoring-radio-review__fact {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 39, 73, 0.08);
}

.monitoring-radio-review__fact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-slate);
}

.customer-review__monitoring {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.customer-review-system {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 39, 73, 0.08);
}

.customer-review-system__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.customer-review-system__title {
  margin: 0;
  font-size: 1rem;
  color: var(--brand-ink);
}

.customer-review-system__subtitle {
  margin-top: 0.2rem;
  color: var(--brand-slate);
}

.customer-review-system__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.customer-review-linked-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.customer-review-linked-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(60, 61, 115, 0.05);
}

.customer-review-linked-item__label {
  font-weight: 700;
  color: var(--brand-ink);
}

.customer-review-linked-item__meta {
  color: var(--brand-slate);
}

.customer-review-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.customer-review-search.is-hidden {
  display: none;
}

.customer-review-candidate-list {
  display: grid;
  gap: 0.75rem;
}

.customer-review-candidate {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 252, 0.94));
  border: 1px solid rgba(31, 39, 73, 0.08);
}

.customer-review-candidate__main {
  display: grid;
  gap: 0.22rem;
  min-width: min(560px, 100%);
}

.customer-review-candidate__title {
  font-weight: 700;
  color: var(--brand-ink);
}

.customer-review-candidate__subtitle,
.customer-review-candidate__detail,
.customer-review-candidate__match {
  color: var(--brand-slate);
}

.customer-review-candidate__match {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-red);
}

.customer-review-candidate__actions {
  display: grid;
  gap: 0.55rem;
  justify-items: end;
}

.customer-monitoring-lines {
  display: grid;
  gap: 0.55rem;
}

.customer-monitoring-line {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.5rem 0.7rem;
  border-radius: 0.8rem;
  background: rgba(60, 61, 115, 0.05);
}

.customer-monitoring-line__cs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--brand-ink);
}

.customer-monitoring-line__radio {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--brand-ink);
}

.customer-monitoring-line__radio.is-unlinked {
  color: var(--brand-red);
  font-weight: 700;
}

.customer-monitoring-line__logo {
  width: auto;
  max-width: 100px;
  height: 2.1rem;
  object-fit: contain;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.18rem;
  border: 1px solid rgba(31, 39, 73, 0.08);
}

.customer-monitoring-line__logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.customer-monitoring-line__reason {
  margin-left: 0.4rem;
}

.customer-account-customer {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.customer-account-customer__brand {
  width: auto;
  max-width: 100px;
  height: 1.75rem;
  object-fit: contain;
}

.customer-account-address-link {
  color: inherit;
  text-decoration: none;
}

.customer-account-address-link__inner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.customer-account-inline-icon {
  width: 1rem;
  height: 1rem;
  color: var(--brand-slate);
  flex: 0 0 auto;
}

.customer-account-inline-icon--radio {
  color: var(--brand-ink);
}

.customer-account-address-link:hover .customer-account-table__primary {
  color: var(--brand-red);
  text-decoration: underline;
}

.customer-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.customer-queue-card {
  display: grid;
  gap: 0.75rem;
  height: 100%;
  padding: 1.1rem 1.15rem;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 39, 73, 0.08);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.customer-queue-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 39, 73, 0.18);
  box-shadow: 0 14px 30px rgba(31, 39, 73, 0.08);
}

.customer-queue-card h3 {
  margin: 0;
  color: var(--brand-ink);
}

.customer-queue-card p {
  margin: 0;
  color: var(--brand-slate);
}

@media (max-width: 767.98px) {
  .customer-monitoring-line {
    grid-template-columns: 1fr;
  }
}

.customer-unlinked-card {
  height: 100%;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 39, 73, 0.08);
}

.customer-unlinked-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.customer-unlinked-card__title {
  margin: 0;
  font-size: 1rem;
  color: var(--brand-ink);
}

.customer-unlinked-card__subtitle {
  margin-top: 0.18rem;
  color: var(--brand-slate);
}

.customer-unlinked-list {
  display: grid;
  gap: 0.75rem;
}

.customer-unlinked-item {
  padding: 0.85rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(60, 61, 115, 0.05);
}

.customer-unlinked-item__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}

.customer-unlinked-item__title {
  font-weight: 700;
  color: var(--brand-ink);
}

.customer-accounts-root--loading {
  opacity: 0.55;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .customer-review-modal__dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
    margin: 0.5rem;
  }

  .customer-review-search {
    grid-template-columns: 1fr;
  }

  .customer-review-candidate__main {
    min-width: 100%;
  }

  .customer-review-candidate__actions {
    width: 100%;
    justify-items: stretch;
  }
}

/* ── Top-nav shell (v2 layout) ───────────────────────────────────────────── */

.topnav-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 1.5rem;
  gap: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(60, 61, 115, 0.10);
}

.topnav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  text-decoration: none;
}

.topnav__logo {
  height: 30px;
  width: auto;
}

.topnav__divider {
  width: 1px;
  height: 26px;
  background: rgba(60, 61, 115, 0.18);
  flex-shrink: 0;
  margin: 0 0.9rem;
}

.topnav__page-title {
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
  margin-right: 1.75rem;
}

.topnav__eyebrow {
  color: var(--brand-slate);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topnav__heading {
  font-size: 0.975rem;
  font-weight: 800;
  color: var(--brand-ink);
  margin-top: 0.15rem;
}

.topnav__nav-scroll {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.topnav__nav {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.topnav__nav::-webkit-scrollbar {
  display: none;
}

.topnav__nav-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  border-radius: 0.4rem;
  background: rgba(60, 61, 115, 0.06);
  color: var(--brand-navy);
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.15s ease;
}

.topnav__nav-arrow:hover {
  background: rgba(60, 61, 115, 0.13);
}

.topnav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.845rem;
  font-weight: 600;
  color: var(--brand-slate);
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  background: none;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  position: relative;
}

.topnav__link:hover,
.topnav__link.is-active {
  color: var(--brand-navy);
  background: rgba(60, 61, 115, 0.06);
}

.topnav__link.is-active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0.7rem;
  right: 0.7rem;
  height: 2px;
  background: var(--brand-navy);
  border-radius: 1px;
}

.topnav__link .ti {
  font-size: 0.9rem;
  line-height: 1;
}

.topnav__search {
  flex-shrink: 0;
  width: 200px;
  margin: 0 0.75rem;
}

/* Subnav row — appears below the topnav when a section is open */
.topnav-subnav {
  display: none;
  position: sticky;
  top: 60px;
  z-index: 19;
  align-items: center;
  gap: 0.25rem;
  min-height: 40px;
  padding: 0 1.5rem;
  background: rgba(245, 247, 251, 0.97);
  border-bottom: 1px solid rgba(60, 61, 115, 0.08);
  backdrop-filter: blur(10px);
}

.topnav-subnav.is-open {
  display: flex;
}

.topnav-subnav__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-slate);
  margin-right: 0.5rem;
  white-space: nowrap;
}

.topnav-subnav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--brand-slate);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.topnav-subnav__link:hover {
  color: var(--brand-navy);
  background: rgba(60, 61, 115, 0.07);
}

.topnav-subnav__link.is-active {
  color: var(--brand-navy);
  font-weight: 700;
  background: rgba(60, 61, 115, 0.1);
}

.topnav-subnav__divider {
  width: 1px;
  height: 14px;
  background: rgba(60, 61, 115, 0.15);
  flex-shrink: 0;
  margin: 0 0.15rem;
}

/* Alerts */
.topnav__alerts {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 1rem;
}

.topnav__alert-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 0;
  border-radius: 0.6rem;
  background: rgba(60, 61, 115, 0.06);
  color: var(--brand-navy);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s ease;
}

.topnav__alert-btn:hover {
  background: rgba(60, 61, 115, 0.13);
}

.topnav__alert-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  background: var(--brand-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  padding: 0 3px;
  display: none;
}

.topnav__alert-badge.has-alerts {
  display: block;
}

.topnav__alerts-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-slate);
}

.topnav__user {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(60, 61, 115, 0.14);
  white-space: nowrap;
}

.topnav__user-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--brand-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.topnav__user-level {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0.4rem;
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.topnav__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  color: var(--brand-slate);
  text-decoration: none;
}

.topnav__logout:hover {
  background: rgba(198, 62, 79, 0.08);
  color: var(--brand-red);
}

/* Content area */
.topnav-shell .app-content {
  flex: 1;
  padding-top: 1.75rem;
  padding-bottom: 2.5rem;
}
