:root {
  color-scheme: light;
  --bg: #f3f5f7;
  --sidebar: #18212b;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --border: #dde2e8;
  --border-strong: #cbd3dc;
  --text: #1c2733;
  --muted: #667483;
  --muted-2: #8995a2;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #138a5b;
  --warning: #b76c08;
  --danger: #c23b4a;
  --shadow: 0 1px 2px rgba(24, 33, 43, 0.04);
  --radius: 6px;
  --radius-sm: 5px;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  --sans: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  margin-bottom: 0;
  letter-spacing: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px;
  background: var(--sidebar);
  color: #e2e8f0;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 20px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
}

.brand-block strong,
.brand-block span {
  display: block;
}

.brand-block span {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 16px;
}

.main-nav {
  display: grid;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 11px;
  border-radius: var(--radius);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 16px;
  font-weight: 650;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-item svg {
  width: 17px;
  height: 17px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 18px 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar h1 {
  font-size: 23px;
  line-height: 1.15;
}

.topbar-actions,
.dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.export-menu {
  position: relative;
  display: inline-flex;
}

.export-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 15;
  display: grid;
  width: 156px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.export-menu__panel button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 650;
  text-align: left;
}

.export-menu__panel button:hover {
  background: var(--surface-soft);
}

.export-menu__panel svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  stroke-width: 2.2;
}

.primary-button,
.ghost-button,
.danger-button,
.icon-button,
.table-action,
.secret-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, opacity 150ms ease;
}

.primary-button {
  padding: 0 12px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
}

.primary-button:hover {
  background: var(--primary-dark);
}

.ghost-button {
  padding: 0 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  font-size: 16px;
}

.ghost-button:hover,
.icon-button:hover,
.table-action:hover,
.secret-toggle:hover {
  border-color: var(--border-strong);
  background: var(--surface-soft);
}

.danger-button {
  padding: 0 11px;
  background: var(--danger);
  color: #ffffff;
  font-weight: 700;
}

.icon-button,
.table-action,
.secret-toggle {
  width: auto;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.table-action {
  position: relative;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  font-size: 16px;
  font-weight: 650;
}

.table-action span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.primary-button svg,
.ghost-button svg,
.danger-button svg,
.icon-button svg,
.table-action svg,
.secret-toggle svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.primary-button.is-loading svg,
.ghost-button.is-loading svg,
.table-action.is-loading svg {
  animation: spin 700ms linear infinite;
}

.primary-button:disabled,
.ghost-button:disabled,
.danger-button:disabled,
.icon-button:disabled,
.table-action:disabled {
  cursor: wait;
  opacity: 0.62;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  box-shadow: var(--shadow);
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-item {
  min-height: 56px;
  padding: 9px 12px;
  background: var(--surface);
}

.summary-item span,
.summary-item time {
  display: block;
  color: var(--muted);
  font-size: 16px;
}

.summary-item strong {
  display: block;
  margin-top: 5px;
  font-size: 19px;
  line-height: 1;
}

.summary-item b {
  font: inherit;
}

.rail-track {
  display: grid;
  grid-template-columns: repeat(60, minmax(2px, 1fr));
  gap: 2px;
  height: 10px;
  align-items: end;
  margin-top: -4px;
}

.rail-tick {
  min-width: 2px;
  height: 5px;
  border-radius: 2px;
  background: #dbe3ef;
}

.rail-tick.is-active {
  background: var(--primary);
}

.rail-tick.is-warn {
  background: var(--warning);
}

.rail-tick.is-down {
  background: var(--danger);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.panel {
  padding: 13px 14px;
  min-width: 0;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.panel-title h2 {
  font-size: 16px;
}

.panel-title h3 {
  font-size: 16px;
}

.panel-title span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 16px;
}

.gsc-diagnostic-strip {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, auto);
  gap: 10px;
  align-items: stretch;
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.gsc-diagnostic-state {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.gsc-diagnostic-state div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.gsc-diagnostic-state strong {
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsc-diagnostic-state span:not(.status-pill),
.gsc-diagnostic-kpis span {
  color: var(--muted);
  font-size: 16px;
}

.gsc-diagnostic-kpis {
  display: grid;
  grid-template-columns: minmax(140px, 1.4fr) repeat(2, minmax(98px, 1fr));
  gap: 8px;
}

.gsc-diagnostic-kpis div {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.gsc-diagnostic-kpis strong {
  overflow: hidden;
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel--site-list .panel-heading {
  margin-bottom: 0;
  padding-bottom: 10px;
}

/* Backup schedule workspace */
.backup-schedule-toolbar {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
  background: var(--surface);
}

.backup-schedule-filters {
  grid-template-columns: minmax(220px, 1fr) minmax(116px, 0.45fr) minmax(130px, 0.5fr);
  width: min(680px, 100%);
}

.backup-schedule-grid {
  grid-template-columns: minmax(180px, 1.15fr) minmax(120px, 0.75fr) minmax(170px, 0.95fr) minmax(150px, 0.9fr) minmax(118px, 0.72fr) 88px minmax(116px, auto);
}

.backup-schedule-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: var(--surface);
}

.backup-schedule-list .backup-list-row:last-child {
  border-bottom: 0;
}

.backup-schedule-list .backup-list-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.backup-schedule-list .backup-list-actions .table-action {
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
}

.backup-schedule-list .backup-list-actions .table-action span {
  display: none;
}

.backup-schedule-state {
  display: flex;
  min-width: 0;
  align-items: center;
}

.backup-schedule-toggle {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.backup-schedule-toggle input {
  width: 30px;
  height: 16px;
  margin: 0;
  appearance: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #dfe4ea;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.backup-schedule-toggle input::before {
  display: block;
  width: 10px;
  height: 10px;
  margin: 2px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 150ms ease;
}

.backup-schedule-toggle input:checked {
  border-color: var(--success);
  background: var(--success);
}

.backup-schedule-toggle input:checked::before {
  transform: translateX(14px);
}

.backup-schedule-dialog {
  width: min(760px, calc(100vw - 32px));
}

.backup-schedule-dialog .dialog-card {
  width: 100%;
  max-width: none;
}

.backup-schedule-dialog-body {
  display: grid;
  gap: 0;
  max-height: min(620px, calc(100vh - 180px));
  overflow: auto;
}

.backup-schedule-section {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.backup-schedule-section:last-child {
  border-bottom: 0;
}

.backup-schedule-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.backup-schedule-section-head > span {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.backup-schedule-select-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.backup-schedule-site-list {
  display: grid;
  max-height: 286px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.backup-schedule-site-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

.backup-schedule-site-option:last-child {
  border-bottom: 0;
}

.backup-schedule-site-option:hover {
  background: var(--surface-soft);
}

.backup-schedule-site-option > input {
  margin: 0;
}

.backup-schedule-site-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.backup-schedule-site-copy strong,
.backup-schedule-site-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-schedule-site-copy strong {
  color: var(--text);
  font-size: 16px;
}

.backup-schedule-site-copy small {
  color: var(--muted);
  font-size: 16px;
}

.backup-schedule-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.backup-schedule-form-grid > label:not(.toggle-switch) {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.backup-schedule-form-grid > label[hidden] {
  display: none;
}

.backup-schedule-form-grid > label:not(.toggle-switch) > span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.backup-schedule-form-grid select,
.backup-schedule-form-grid input[type="time"] {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}

.backup-schedule-enable {
  align-self: end;
  min-height: 38px;
}

@media (max-width: 1180px) {
  .backup-schedule-list {
    border-top: 1px solid var(--border);
  }

  .backup-schedule-list .backup-schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .backup-schedule-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .backup-schedule-toolbar .primary-button {
    width: 100%;
  }

  .backup-schedule-filters,
  .backup-schedule-form-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .backup-schedule-filters .backup-filter-search {
    grid-column: 1;
  }

  .backup-schedule-list .backup-schedule-grid {
    grid-template-columns: 1fr;
  }

  .backup-schedule-list .backup-list-actions {
    justify-content: flex-start;
  }

  .backup-schedule-site-option {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .backup-schedule-site-option > .status-pill {
    grid-column: 2;
    justify-self: start;
  }
}

.site-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 49px;
  margin: 0 0 10px;
  padding: 7px 0;
  border-top: 1px solid #edf1f6;
}

.site-status-tabs,
.site-display-tools {
  display: flex;
  align-items: center;
}

.site-status-tabs {
  gap: 2px;
}

.site-status-tab {
  display: inline-flex;
  min-width: 52px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: background 140ms ease, color 140ms ease;
}

.site-status-tab:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.site-status-tab.active {
  background: #edf4ff;
  color: var(--primary-dark);
}

.site-status-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--muted-2);
}

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

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

.site-status-dot--down {
  background: var(--danger);
}

.site-display-tools {
  min-width: 0;
  justify-content: flex-end;
  gap: 6px;
}

.site-view-switch {
  display: inline-grid;
  flex: none;
  grid-template-columns: repeat(2, minmax(70px, 1fr));
  padding: 2px;
  border-radius: var(--radius-sm);
  background: #eef2f7;
}

.site-view-switch button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.site-view-switch button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.site-view-switch svg {
  width: 14px;
  height: 14px;
  flex: none;
  stroke-width: 2;
}

.site-tools-divider {
  width: 1px;
  height: 22px;
  margin: 0 2px;
  background: var(--border);
}

.site-sort-control {
  display: inline-flex;
  min-width: 150px;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.site-sort-control > svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--muted);
  stroke-width: 2;
}

.site-sort-control select {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.site-control-icon {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-color: transparent;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.site-control-icon:hover {
  border-color: var(--border);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: var(--surface);
}

.data-table {
  min-width: 980px;
}

th {
  padding: 8px 10px;
  background: #f9fbfd;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

td {
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  vertical-align: middle;
}

tbody tr:hover {
  background: #fbfdff;
}

.site-group-row td {
  padding: 0;
  border-top-color: var(--border-strong);
  background: #f7f9fc;
}

.site-group-row:hover,
.site-group-row:hover td {
  background: #f3f6fa;
}

.site-group-toggle {
  display: grid;
  width: 100%;
  min-height: 50px;
  grid-template-columns: 18px minmax(180px, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.site-group-toggle > svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.site-group-name {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.site-group-name strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-group-name > span {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-group-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.site-group-meta > b {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.site-group-child td:first-child {
  padding-left: 36px;
  box-shadow: inset 3px 0 0 #dbe4f0;
}

.site-title {
  display: grid;
  gap: 2px;
}

.site-title strong {
  font-size: 16px;
  font-weight: 700;
}

.site-title span,
.muted {
  color: var(--muted);
  font-size: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-pill--ok {
  background: rgba(5, 150, 105, 0.1);
  color: var(--success);
}

.status-pill--warn {
  background: rgba(217, 119, 6, 0.1);
  color: var(--warning);
}

.status-pill--down {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
}

.status-pill--muted {
  background: var(--surface-soft);
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bar-cell {
  min-width: 92px;
}

.bar-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.bar-fill {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color, var(--primary));
}

.bar-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
}

.actions-cell {
  display: flex;
  gap: 4px;
  white-space: nowrap;
}

.table-action[data-action="delete"] {
  color: var(--danger);
}

.trend-value {
  color: var(--success);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 800;
}

.trend-value.is-down {
  color: var(--danger);
}

.empty-state {
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 16px;
}

.admin-permission-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 12px 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.admin-permission-strip div {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px;
  background: var(--surface-soft);
}

.admin-permission-strip strong {
  font-size: 16px;
}

.admin-permission-strip span {
  color: var(--muted);
  font-size: 16px;
}

.permission-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 420px;
}

.permission-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.alert-command {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  margin-bottom: 8px;
}

.alert-command__primary,
.alert-notify-card,
.alert-block {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.alert-command__primary {
  display: grid;
  gap: 1px;
  align-self: start;
  overflow: hidden;
  padding: 0;
  border-color: var(--border);
  background: var(--border);
}

.alert-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
}

.alert-summary-item {
  position: relative;
  min-height: 54px;
  overflow: hidden;
  padding: 9px 11px 9px 12px;
  border: 0;
  border-radius: 0;
  background: var(--surface);
}

.alert-summary-item::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--border-strong);
  content: "";
}

.alert-summary-item--down {
  background: #fffafa;
}

.alert-summary-item--down::before {
  background: var(--danger);
}

.alert-summary-item--warn {
  background: #fffaf2;
}

.alert-summary-item--warn::before {
  background: var(--warning);
}

.alert-summary-item span,
.alert-report-item span,
.alert-notify-metric span {
  display: block;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.alert-summary-item strong {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
}

.alert-report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.alert-report-item {
  min-height: 48px;
  padding: 8px 11px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
}

.alert-report-item strong,
.alert-notify-metric strong {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 16px;
}

.alert-notify-card {
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) minmax(150px, 0.4fr) minmax(0, 1.35fr);
  align-self: start;
  align-content: stretch;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  background: var(--surface);
}

.alert-notify-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.alert-notify-card__head h3 {
  font-size: 16px;
}

.alert-notify-card__head span:not(.status-pill) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 16px;
}

.alert-notify-metric {
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.alert-layout {
  display: grid;
  gap: 8px;
}

.alert-block {
  padding: 11px;
}

.panel-heading--compact {
  margin-bottom: 10px;
}

.panel-heading--compact .panel-title h3 {
  font-size: 16px;
}

.alert-block .table-wrap {
  box-shadow: none;
}

.alert-table {
  min-width: 1100px;
}

.alert-history-table {
  min-width: 900px;
}

.alert-history-table th:last-child,
.alert-history-table td:last-child {
  width: 96px;
  min-width: 96px;
  white-space: nowrap;
}

.alert-table th:first-child,
.alert-table td:first-child {
  min-width: 132px;
}

.alert-table th:nth-child(2),
.alert-table td:nth-child(2) {
  min-width: 176px;
}

.alert-table th:last-child,
.alert-table td:last-child {
  min-width: 52px;
  width: 52px;
}

.alert-block--rules .alert-table {
  min-width: 1240px;
  table-layout: fixed;
}

.alert-block--rules .alert-table th:first-child,
.alert-block--rules .alert-table td:first-child {
  width: 128px;
  min-width: 128px;
}

.alert-block--rules .alert-table th:nth-child(2),
.alert-block--rules .alert-table td:nth-child(2) {
  width: 176px;
  min-width: 176px;
}

.alert-block--rules .alert-table th:nth-child(8),
.alert-block--rules .alert-table td:nth-child(8) {
  width: 130px;
}

.alert-block--rules .alert-table th:nth-child(3),
.alert-block--rules .alert-table td:nth-child(3) {
  width: 88px;
}

.alert-block--rules .alert-table th:nth-child(4),
.alert-block--rules .alert-table td:nth-child(4),
.alert-block--rules .alert-table th:nth-child(7),
.alert-block--rules .alert-table td:nth-child(7),
.alert-block--rules .alert-table th:nth-child(9),
.alert-block--rules .alert-table td:nth-child(9) {
  width: 116px;
}

.alert-block--rules .alert-table th:nth-child(5),
.alert-block--rules .alert-table td:nth-child(5),
.alert-block--rules .alert-table th:nth-child(6),
.alert-block--rules .alert-table td:nth-child(6) {
  width: 104px;
}

.alert-block--rules .alert-table th:nth-child(10),
.alert-block--rules .alert-table td:nth-child(10),
.alert-block--rules .alert-table th:nth-child(11),
.alert-block--rules .alert-table td:nth-child(11) {
  width: 50px;
  min-width: 50px;
  text-align: center;
}

.alert-block--rules .rule-scope-grid,
.alert-block--rules .compact-input {
  min-width: 0;
}

.alert-block--rules .toggle-switch {
  justify-content: center;
}

.alert-block--rules .toggle-switch span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rule-scope-grid {
  display: grid;
  gap: 6px;
  min-width: 170px;
}

.alert-history-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.alert-site-chip {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.alert-site-chip span,
.alert-site-chip em {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 16px;
  font-style: normal;
}

.alert-site-chip strong {
  font-family: var(--mono);
  font-size: 16px;
}

.alert-site-chip--empty {
  grid-column: 1 / -1;
}

.alert-row--down td:first-child {
  box-shadow: inset 4px 0 0 var(--danger);
}

.alert-row--warn td:first-child {
  box-shadow: inset 4px 0 0 var(--warning);
}

.mail-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mail-log {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.mail-log-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.mail-log-head strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 750;
  text-align: right;
}

.mail-log-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mail-log-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.mail-log-item div {
  min-width: 0;
}

.mail-log-item strong,
.mail-log-item span {
  overflow-wrap: anywhere;
}

.mail-log-item div > span,
.mail-log-item--empty {
  color: var(--muted);
  font-size: 16px;
}

.mail-log-item--empty {
  display: block;
}

.backup-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.backup-summary-item {
  position: relative;
  min-height: 52px;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.backup-summary-item::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--primary);
  content: "";
}

.backup-summary-item--warn {
  border-left-color: transparent;
}

.backup-summary-item--warn::before {
  background: var(--warning);
}

.backup-summary-item span {
  display: block;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.backup-summary-item strong {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1;
}

.alert-column-label {
  display: grid;
  gap: 2px;
  line-height: 1.2;
}

.alert-column-label small {
  color: var(--muted-2);
  font-size: 16px;
  font-weight: 600;
}

.rule-value-control {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 32px;
  overflow: hidden;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.rule-value-control:focus-within {
  border-color: #93b4f7;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.alert-block--rules .rule-value-control .compact-input {
  min-width: 0;
  height: 30px;
  flex: 1;
  padding: 0 5px 0 8px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
}

.rule-value-unit {
  display: inline-flex;
  min-width: 25px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-left: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.alert-rule-mobile-head {
  display: contents;
}

.alert-rule-mobile-toggle {
  display: none;
}

.rule-value-na {
  display: inline-flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
  white-space: nowrap;
}

.alert-subnav-shell {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -13px -14px 0;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.alert-subnav,
.backup-subnav,
.module-subnav {
  display: flex;
  gap: 4px;
}

.alert-subnav {
  min-width: 0;
}

.backup-subnav {
  margin: -13px -14px 0;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.backup-storage-bar {
  display: grid;
  grid-template-columns: 34px minmax(150px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.backup-storage-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--primary) 7%, var(--surface));
  color: var(--primary);
}

.backup-storage-icon svg {
  width: 17px;
  height: 17px;
}

.backup-storage-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.backup-storage-info span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
}

.backup-storage-info strong {
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-storage-path-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  min-width: 0;
  min-height: 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.backup-storage-path-control code {
  min-width: 0;
  padding: 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-storage-copy {
  display: inline-grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.backup-storage-copy:hover {
  background: color-mix(in srgb, var(--primary) 7%, var(--surface));
  color: var(--primary);
}

.backup-storage-copy:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 58%, transparent);
  outline-offset: -2px;
}

.backup-storage-copy svg {
  width: 15px;
  height: 15px;
}

.module-subnav {
  min-width: 0;
  margin: -13px -14px 0;
  padding: 0 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
  scrollbar-width: thin;
}

.alert-subtab,
.backup-subtab,
.module-subtab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  font-weight: 750;
}

.alert-subtab:hover,
.backup-subtab:hover,
.module-subtab:hover {
  color: var(--text);
}

.alert-subtab.active,
.backup-subtab.active,
.module-subtab.active {
  border-bottom-color: var(--primary);
  color: var(--primary-dark);
}

.alert-subtab svg,
.backup-subtab svg,
.module-subtab svg {
  width: 16px;
  height: 16px;
}

.alert-view-panel,
.backup-view-panel,
.module-view-panel {
  padding-top: 12px;
}

.alert-view-panel[hidden],
.backup-view-panel[hidden],
.module-view-panel[hidden] {
  display: none;
}

.module-toolbar {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.module-toolbar--end {
  justify-content: flex-end;
}

.gsc-binding-toolbar,
.gsc-binding-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gsc-binding-toolbar {
  justify-content: space-between;
}

.gsc-binding-table th:nth-child(1) {
  width: 24%;
}

.gsc-binding-table th:nth-child(2) {
  width: 22%;
}

.gsc-binding-table th:nth-child(3) {
  width: 42%;
}

.gsc-binding-table th:nth-child(4) {
  width: 12%;
}

.gsc-binding-select {
  width: 100%;
  min-width: 160px;
  height: 34px;
  padding: 0 32px 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--text);
  font-size: 16px;
}

.gsc-binding-property {
  min-width: 260px;
  font-family: var(--mono);
}

.gsc-binding-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
  outline: none;
}

.gsc-binding-select:disabled {
  background: var(--surface-soft);
  color: var(--muted);
}

.module-context {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 16px;
}

.module-result-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
}

.segmented-filter {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(56px, 1fr));
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.segmented-filter button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.segmented-filter button:hover {
  color: var(--text);
}

.segmented-filter button.active {
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.event-log-list {
  display: grid;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  list-style: none;
}

.event-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 56px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}

.event-item:last-child {
  border-bottom: 0;
}

.event-item:hover {
  background: var(--surface-soft);
}

.event-marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--muted);
}

.event-marker svg {
  width: 15px;
  height: 15px;
}

.event-marker--ok {
  border-color: rgba(5, 150, 105, 0.22);
  background: rgba(5, 150, 105, 0.08);
  color: var(--success);
}

.event-marker--warn {
  border-color: rgba(217, 119, 6, 0.24);
  background: rgba(217, 119, 6, 0.08);
  color: var(--warning);
}

.event-marker--down {
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.07);
  color: var(--danger);
}

.event-item > div,
.diagnostic-message {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.event-item strong,
.diagnostic-message strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-item time,
.diagnostic-message span {
  overflow: hidden;
  color: var(--muted);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-item--empty {
  min-height: 120px;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 12px;
}

.permission-policy-grid,
.scope-policy-grid {
  display: grid;
  align-content: start;
  gap: 8px;
}

.policy-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.policy-item__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--primary-dark);
}

.policy-item__icon svg,
.scope-policy-item svg {
  width: 15px;
  height: 15px;
}

.policy-item div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.policy-item strong,
.scope-policy-item strong {
  font-size: 16px;
}

.policy-item div span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.policy-item code,
.scope-policy-item code {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
}

.scope-policy-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.scope-policy-item > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.scope-policy-item strong {
  font-family: var(--mono);
  font-size: 18px;
}

.scope-policy-item code {
  grid-column: 1 / -1;
}

.alert-view-panel > .alert-block {
  padding: 0;
  border: 0;
  border-radius: 0;
}

.backup-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.backup-view-toolbar--end {
  justify-content: flex-end;
}

.backup-batch-bar {
  display: grid;
  grid-template-columns: auto auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin-bottom: 10px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.backup-batch-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.backup-batch-actions .ghost-button,
.backup-batch-actions .primary-button {
  min-height: 32px;
  white-space: nowrap;
}

.backup-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
}

.backup-select-all input,
.backup-row-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.backup-selection-count,
.backup-batch-status {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.backup-batch-status {
  min-width: 0;
  overflow-wrap: anywhere;
}

.backup-batch-status[data-status="running"],
.backup-batch-status[data-status="queued"] {
  color: var(--primary-dark);
}

.backup-batch-status[data-status="failed"],
.backup-batch-status[data-status="partial"] {
  color: var(--warning);
}

.backup-history-filter {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(54px, 1fr));
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.backup-history-filter button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.backup-history-filter button.active {
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.backup-list-head,
.backup-list-row {
  display: grid;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.backup-config-grid {
  grid-template-columns: 28px minmax(190px, 1.1fr) minmax(220px, 1.35fr) minmax(160px, 0.82fr) minmax(125px, 0.62fr) minmax(210px, auto);
}

.backup-activity-grid {
  grid-template-columns: minmax(185px, 0.85fr) minmax(170px, 0.8fr) minmax(260px, 1.35fr) minmax(135px, 0.6fr) minmax(184px, auto);
}

.backup-file-grid {
  grid-template-columns: minmax(190px, 0.9fr) minmax(300px, 1.5fr) minmax(140px, 0.65fr) minmax(170px, 0.78fr) minmax(150px, auto);
}

.backup-list-head {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
}

.backup-config-list,
.backup-activity-list,
.backup-file-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface);
}

.backup-row-check {
  display: inline-grid;
  width: 28px;
  height: 32px;
  place-items: center;
  cursor: pointer;
}

.backup-list-row {
  min-height: 72px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  transition: background 140ms ease;
}

.backup-list-row:last-child {
  border-bottom: 0;
}

.backup-list-row:hover {
  background: #f8fbff;
}

.backup-list-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.backup-row-icon,
.backup-kind-marker {
  display: inline-grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--muted);
}

.backup-kind-marker--backup {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}

.backup-kind-marker--restore {
  border-color: rgba(217, 119, 6, 0.22);
  background: rgba(217, 119, 6, 0.08);
  color: var(--warning);
}

.backup-row-icon svg,
.backup-kind-marker svg {
  width: 17px;
  height: 17px;
}

.backup-list-stack,
.backup-list-status {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.backup-list-stack strong,
.backup-list-stack span,
.backup-list-status small {
  overflow-wrap: anywhere;
}

.backup-list-stack strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 750;
}

.backup-list-stack span,
.backup-list-status small {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.backup-list-status {
  justify-items: start;
}

.backup-list-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.backup-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 96px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
}

.backup-primary-action:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

.backup-primary-action:disabled {
  cursor: wait;
  opacity: 0.62;
}

.backup-primary-action svg {
  width: 15px;
  height: 15px;
}

.backup-primary-action.is-loading svg {
  animation: spin 700ms linear infinite;
}

.backup-list-row.is-recent {
  background: rgba(5, 150, 105, 0.07);
  box-shadow: inset 3px 0 0 var(--success);
}

.table-action.is-danger {
  color: var(--danger);
}

.table-action.is-primary {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
  background: color-mix(in srgb, var(--primary) 9%, var(--surface));
  color: var(--primary);
}

.backup-list-empty {
  display: grid;
  min-height: 174px;
  padding: 24px;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}

.backup-list-empty svg {
  width: 24px;
  height: 24px;
  margin-bottom: 3px;
  color: var(--muted-2);
}

.backup-list-empty strong {
  color: var(--text);
  font-size: 16px;
}

.backup-list-empty span {
  font-size: 16px;
}

.backup-path {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-dialog {
  width: min(860px, calc(100vw - 32px));
}

.restore-dialog {
  width: min(640px, calc(100vw - 32px));
}

.backup-dialog-body {
  display: grid;
  gap: 8px;
  max-height: min(680px, calc(100vh - 190px));
  overflow: auto;
  padding: 12px 14px;
}

.backup-config-section {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.backup-discovery-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius);
  background: rgba(37, 99, 235, 0.06);
}

.backup-discovery-bar span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.backup-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.backup-field-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.backup-field-grid label > span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.backup-field-wide {
  grid-column: 1 / -1;
}

.backup-dialog-body input,
.backup-dialog-body select,
.backup-dialog-body textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.backup-dialog-body input,
.backup-dialog-body select {
  height: 38px;
  padding: 0 11px;
}

.backup-dialog-body textarea {
  min-height: 82px;
  padding: 10px 11px;
  resize: vertical;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
}

.backup-enable {
  align-self: end;
  min-height: 38px;
}

.email-dialog-body {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
}

.email-dialog-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.email-dialog-status div {
  min-width: 0;
}

.email-dialog-status span,
.email-section-head span,
.email-config-section label > span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.email-dialog-status strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  line-height: 1.15;
}

.email-config-section {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.email-section-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.email-section-head i {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--primary);
}

.email-section-head h4 {
  font-size: 16px;
}

.email-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.email-field-grid label,
.mail-recipient-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.email-field-wide {
  grid-column: 1 / -1;
}

.email-dialog-body input,
.email-dialog-body select,
.email-dialog-body textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.email-dialog-body input,
.email-dialog-body select {
  height: 38px;
  padding: 0 11px;
}

.email-dialog-body textarea {
  min-height: 82px;
  padding: 10px 11px;
  resize: vertical;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
}

.mail-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mail-retry-field {
  display: inline-grid;
  grid-template-columns: auto 70px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.email-dialog-note {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 16px;
}

.email-dialog-note i {
  width: 16px;
  height: 16px;
  color: var(--success);
}

.admin-dialog-body {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
}

.admin-account-section {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.admin-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-field-grid label,
.admin-role-row {
  display: grid;
  gap: 7px;
}

.admin-field-grid label span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.admin-field-grid input {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.admin-field-wide {
  grid-column: 1 / -1;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.permission-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-height: 68px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.permission-option input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.permission-option span {
  display: grid;
  gap: 3px;
}

.permission-option strong {
  font-size: 16px;
}

.permission-option em {
  color: var(--muted);
  font-size: 16px;
  font-style: normal;
  line-height: 1.45;
}

.admin-account-section.is-disabled {
  opacity: 0.68;
}

.scope-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.scope-control-grid .toggle-switch {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.scope-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.scope-resource-grid > div {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.scope-resource-grid > div > strong {
  font-size: 16px;
}

.scope-check-list {
  display: grid;
  gap: 5px;
  max-height: 160px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.scope-check-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 38px;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.scope-check-item:hover {
  background: var(--surface-soft);
}

.scope-check-item input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.scope-check-item span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.scope-check-item strong,
.scope-check-item em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scope-check-item strong {
  font-size: 16px;
}

.scope-check-item em,
.scope-empty {
  color: var(--muted);
  font-size: 16px;
  font-style: normal;
}

.compact-input {
  width: 100%;
  min-width: 74px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
}

.compact-input--short {
  min-width: 78px;
}

.compact-input--time {
  min-width: 126px;
  font-family: var(--mono);
}

.compact-input:disabled {
  background: #eef2f7;
  color: var(--muted-2);
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.toggle-switch input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.site-dialog {
  width: min(760px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.discovery-dialog {
  width: min(980px, calc(100vw - 32px));
}

.discovery-dialog .dialog-card {
  display: grid;
  max-height: calc(100vh - 42px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.site-discovery-body {
  display: grid;
  min-height: 280px;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px 16px;
  overflow: hidden;
}

.site-discovery-status {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 16px;
}

.site-discovery-status > span {
  font-weight: 700;
}

.site-discovery-select-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-weight: 650;
}

.site-discovery-select-all input,
.site-discovery-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.site-discovery-list {
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.site-discovery-row {
  display: grid;
  min-height: 62px;
  grid-template-columns: 24px minmax(210px, 1.35fr) minmax(160px, 1fr) minmax(130px, 0.8fr) 88px;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--border);
}

.site-discovery-row:last-child {
  border-bottom: 0;
}

.site-discovery-row:hover {
  background: var(--surface-soft);
}

.site-discovery-row.is-existing {
  background: #f9fbfd;
  color: var(--muted);
}

.site-discovery-check {
  display: grid;
  place-items: center;
}

.site-discovery-domain,
.site-discovery-meta,
.site-discovery-path {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.site-discovery-domain strong,
.site-discovery-meta strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-discovery-domain span,
.site-discovery-meta span,
.site-discovery-path span {
  overflow: hidden;
  color: var(--muted);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-discovery-path code {
  overflow: hidden;
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-discovery-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.site-discovery-badge.is-existing {
  background: #eef2f7;
  color: var(--muted);
}

.site-discovery-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

.data-dialog {
  width: min(1180px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.site-dialog::backdrop {
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(3px);
}

.data-dialog::backdrop {
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(3px);
}

.dialog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 22px 64px rgba(15, 23, 42, 0.2);
}

.data-dialog-card {
  max-height: calc(100vh - 42px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  background: var(--surface);
}

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.dialog-body {
  display: grid;
  gap: 9px;
  padding: 14px 16px;
}

.dialog-body label {
  display: grid;
  gap: 7px;
}

.dialog-body label span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.dialog-body input,
.dialog-body select,
.dialog-body textarea {
  width: 100%;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.dialog-body input,
.dialog-body select {
  height: 38px;
}

.dialog-body textarea {
  min-height: 120px;
  padding: 10px 11px;
  resize: vertical;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
}

.gsc-account-form {
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: var(--surface);
}

.gsc-account-brief {
  display: grid;
  align-content: start;
  gap: 11px;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--border);
  background: var(--surface-soft);
}

.gsc-account-brief__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--text);
  color: #ffffff;
}

.gsc-account-brief__icon svg {
  width: 17px;
  height: 17px;
}

.gsc-account-brief strong,
.gsc-upload-head strong {
  display: block;
  color: var(--text);
  font-size: 16px;
}

.gsc-account-brief span,
.gsc-upload-head span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.gsc-account-steps {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: gsc-step;
}

.gsc-account-steps li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  counter-increment: gsc-step;
}

.gsc-account-steps li::before {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 800;
  content: counter(gsc-step);
}

.gsc-account-status {
  margin: 2px 0 0;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.gsc-account-main {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

.gsc-upload-panel,
.gsc-properties-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.gsc-upload-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gsc-upload-panel textarea {
  min-height: 126px;
  background: #ffffff;
}

.gsc-properties-field textarea {
  min-height: 100px;
  background: #ffffff;
}

.field-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.field-status {
  min-height: 22px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.field-status.is-ok {
  color: var(--success);
}

.field-status.is-error {
  color: var(--danger);
}

.login-form .field-status {
  margin: -2px 0 0;
}

.login-form .field-status.is-error {
  color: var(--danger);
}

.config-list {
  display: block;
  margin: 0;
}

.config-list dt,
.config-list dd {
  margin: 0;
}

.detail-section {
  display: grid;
  gap: 8px;
}

.detail-section + .detail-section {
  margin-top: 12px;
}

.detail-section h4 {
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.detail-item {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.detail-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 16px;
}

.detail-item strong,
.detail-item code {
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.detail-section--alert .detail-item {
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.06);
}

.secret-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.secret-toggle {
  flex: 0 0 auto;
  width: auto;
  min-width: 52px;
  height: 30px;
  padding: 0 8px;
  font-size: 16px;
}

.danger-zone {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: var(--radius);
  background: rgba(220, 38, 38, 0.06);
}

.danger-zone svg {
  width: 28px;
  height: 28px;
  color: var(--danger);
}

.danger-zone p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.restore-preflight {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.restore-preflight-head,
.preflight-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.restore-preflight-head span {
  justify-self: end;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.restore-preflight-target {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
}

.restore-preflight-target strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.restore-preflight-list {
  display: grid;
  gap: 7px;
}

.preflight-row {
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.preflight-row strong {
  justify-self: end;
  color: var(--muted);
  font-size: 16px;
}

.preflight-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.preflight-row--ok strong {
  color: var(--success);
}

.preflight-row--failed strong {
  color: var(--danger);
}

.preflight-row--skipped strong {
  color: var(--warning);
}

.dialog-actions {
  justify-content: end;
  margin: 0;
  padding: 12px 16px 14px;
}

.data-detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.5fr);
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.detail-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.detail-identity div {
  min-width: 0;
}

.detail-identity strong,
.detail-identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-identity strong {
  font-family: var(--mono);
  font-size: 16px;
}

.detail-identity span:not(.status-pill) {
  margin-top: 4px;
  color: var(--muted);
  font-size: 16px;
}

.data-detail-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
  gap: 8px;
  align-items: end;
}

.data-detail-toolbar label,
.rules-grid label {
  display: grid;
  gap: 6px;
}

.data-detail-toolbar span,
.rules-grid label > span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.data-detail-toolbar input,
.data-detail-toolbar select,
.rules-grid input,
.rules-grid textarea {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.data-detail-toolbar label {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.rules-grid textarea {
  min-height: 118px;
  padding: 10px;
  resize: vertical;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
}

.data-detail-tabs {
  display: flex;
  gap: 2px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.detail-tab {
  min-height: 38px;
  padding: 0 12px;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  font-weight: 750;
}

.detail-tab.active {
  border-bottom-color: var(--primary);
  color: var(--text);
}

.data-detail-body {
  min-height: 0;
  overflow: auto;
  padding: 12px 16px 14px;
  background: #f8fafc;
}

.detail-pane {
  display: none;
}

.detail-pane.active {
  display: grid;
  gap: 10px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.metric-tile {
  min-height: 92px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.metric-tile span,
.metric-tile small,
.detail-meta {
  color: var(--muted);
  font-size: 16px;
}

.metric-tile strong {
  display: block;
  margin: 7px 0 5px;
  font-family: var(--mono);
  font-size: 21px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.compare-block {
  display: grid;
  gap: 4px;
  padding-top: 2px;
  color: var(--muted);
  font-size: 16px;
}

.compare-block span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.compare-block b {
  color: var(--text);
  font-family: var(--mono);
}

.compare-block--good .compare-direction {
  color: var(--success);
}

.compare-block--bad .compare-direction {
  color: var(--danger);
}

.compare-block--flat .compare-direction {
  color: var(--muted);
}

.detail-section-head,
.table-tools,
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-section-head h4 {
  margin: 0;
  font-size: 16px;
}

.detail-section-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 16px;
}

.metric-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.metric-chip {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  font-weight: 750;
}

.metric-chip.active {
  background: var(--primary);
  color: #ffffff;
}

.trend-chart {
  display: block;
  min-height: 190px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(to top, rgba(226, 232, 240, 0.7) 1px, transparent 1px) 0 0 / 100% 25%,
    var(--surface);
  box-shadow: none;
}

.line-chart {
  display: block;
  width: 100%;
  min-height: 190px;
}

.chart-grid {
  stroke: #e2e8f0;
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line--current,
.chart-dot--current {
  stroke: var(--primary);
}

.chart-line--compare,
.chart-dot--compare {
  stroke: var(--success);
}

.chart-line--compare {
  stroke-dasharray: 6 6;
}

.chart-dot {
  fill: var(--surface);
  stroke-width: 2;
}

.chart-label,
.chart-axis {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
}

.chart-legend {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 14px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend strong {
  color: var(--text);
}

.legend-line {
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
}

.legend-line--compare {
  background: repeating-linear-gradient(90deg, var(--success) 0 5px, transparent 5px 8px);
}

.detail-table {
  min-width: 860px;
}

.detail-table th:first-child,
.detail-table td:first-child {
  min-width: 360px;
}

.url-link {
  color: var(--primary-dark);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.url-link:hover {
  text-decoration: underline;
}

.table-tools {
  min-height: 38px;
}

.table-search {
  width: min(280px, 100%);
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.sort-button {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.sort-button:hover {
  color: var(--primary-dark);
}

.pagination-bar {
  min-height: 36px;
  color: var(--muted);
  font-size: 16px;
}

.pagination-bar > div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pagination-bar strong {
  color: var(--text);
  font-family: var(--mono);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.rules-grid .toggle-switch {
  align-content: start;
  justify-content: start;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.rules-workbench {
  display: grid;
  grid-template-columns: minmax(286px, 0.72fr) minmax(0, 1.28fr);
  gap: 10px;
}

.rules-policy,
.rules-editor,
.rules-footer {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.rules-policy {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 10px;
}

.rules-policy-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.rules-policy-head h4,
.rule-editor-head h4 {
  margin: 0;
  font-size: 16px;
}

.rules-policy-head p,
.rule-editor-head p,
.rule-switch-row small,
.rule-number-row small,
.rules-footer span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.rule-switch-row,
.rule-number-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 56px;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.rule-switch-row {
  cursor: pointer;
}

.rule-switch-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.rule-switch-ui {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 150ms ease;
}

.rule-switch-ui::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  transition: transform 150ms ease;
  content: "";
}

.rule-switch-row input:checked + .rule-switch-ui {
  background: var(--primary);
}

.rule-switch-row input:checked + .rule-switch-ui::after {
  transform: translateX(18px);
}

.rule-switch-row strong,
.rule-number-row strong,
.rules-footer strong {
  display: block;
  color: var(--text);
  font-size: 16px;
}

.rule-number-row {
  grid-template-columns: minmax(0, 1fr) 92px;
}

.rule-number-row input {
  width: 92px;
  text-align: center;
  font-family: var(--mono);
  font-weight: 700;
}

.rules-editor {
  display: grid;
  gap: 9px;
  padding: 10px;
}

.rule-editor-block {
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  background: #ffffff;
}

.rule-editor-block--exclude {
  border-left-color: var(--warning);
}

.rule-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
}

.rule-editor-head > span {
  flex: 0 0 auto;
  align-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 750;
}

.rule-editor-block--exclude .rule-editor-head > span {
  background: rgba(217, 119, 6, 0.12);
  color: var(--warning);
}

.rule-editor-block textarea {
  width: 100%;
  min-height: 118px;
  padding: 10px;
  border: 0;
  background: #ffffff;
  color: var(--text);
  resize: vertical;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.6;
}

.rule-help-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: var(--radius);
  background: rgba(37, 99, 235, 0.06);
  color: var(--muted);
  font-size: 16px;
}

.rule-help-strip svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.rule-help-strip code {
  color: var(--text);
  font-family: var(--mono);
}

.rules-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
}

.rules-footer .dialog-actions {
  padding: 0;
}

.data-detail-actions {
  padding: 0;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 48px));
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius);
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-error {
  border-color: rgba(248, 113, 113, 0.72);
  background: #3f1020;
  color: #fff7f8;
}

.toast.is-warning {
  border-color: rgba(251, 191, 36, 0.68);
  background: #3b2608;
  color: #fffbea;
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, #0f172a 0 50%, transparent 50%),
    var(--bg);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(420px, 1fr);
  min-height: 100vh;
}

.login-brief {
  display: grid;
  align-content: space-between;
  gap: 32px;
  min-height: 100vh;
  padding: 34px;
  background: var(--sidebar);
  color: #e2e8f0;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand span {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 16px;
}

.login-brief__content {
  max-width: 520px;
}

.login-brief__content .eyebrow {
  color: #93c5fd;
}

.login-brief__content h1 {
  max-width: 460px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 42px;
  line-height: 1.06;
}

.login-brief__content p:not(.eyebrow) {
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.75;
}

.login-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  max-width: 520px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(148, 163, 184, 0.18);
}

.login-signal {
  position: relative;
  min-height: 86px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.92);
}

.login-signal::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #64748b;
  content: "";
}

.login-signal--ok::before {
  background: var(--success);
}

.login-signal--warn::before {
  background: var(--warning);
}

.login-signal span {
  display: block;
  color: #94a3b8;
  font-size: 16px;
  font-weight: 750;
}

.login-signal strong {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 22px;
}

.login-audit-strip {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
  max-width: 520px;
  height: 46px;
  align-items: end;
}

.login-audit-strip span {
  height: 18px;
  border-radius: 3px 3px 0 0;
  background: rgba(96, 165, 250, 0.3);
}

.login-audit-strip span:nth-child(3n + 1) {
  height: 32px;
  background: rgba(37, 99, 235, 0.86);
}

.login-audit-strip span:nth-child(4n) {
  height: 24px;
  background: rgba(5, 150, 105, 0.82);
}

.login-audit-strip span:nth-child(9) {
  height: 38px;
  background: rgba(217, 119, 6, 0.92);
}

.login-panel {
  align-self: center;
  justify-self: center;
  width: min(430px, calc(100vw - 40px));
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.12);
}

.login-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.login-panel__head h2 {
  font-size: 22px;
}

.login-form {
  display: grid;
  gap: 13px;
  padding: 18px 0 16px;
}

.login-form label {
  display: grid;
  gap: 7px;
}

.login-form label > span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
}

.login-form input:not([type="checkbox"]) {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-options a {
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
}

.login-options a:hover {
  text-decoration: underline;
}

.login-submit {
  width: 100%;
  min-height: 42px;
}

.login-security-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.login-security-list div {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.login-security-list i {
  width: 17px;
  height: 17px;
  color: var(--primary);
}

.login-security-list span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1180px) {
  .summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .backup-list-head {
    display: none;
  }

  .backup-config-list,
  .backup-activity-list,
  .backup-file-list {
    border-top: 1px solid var(--border);
    border-radius: var(--radius);
  }

  .backup-config-grid,
  .backup-activity-grid,
  .backup-file-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .backup-list-row {
    position: relative;
  }

  .backup-row-check {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .backup-list-actions {
    grid-column: 2;
  }
}

@media (max-width: 860px) {
  .site-discovery-row {
    grid-template-columns: 24px minmax(190px, 1fr) minmax(130px, 0.8fr) 82px;
  }

  .site-discovery-path {
    display: none;
  }

  .login-page {
    background: var(--bg);
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brief {
    min-height: auto;
    padding: 24px;
  }

  .login-brief__content h1 {
    font-size: 32px;
  }

  .login-panel {
    align-self: start;
    margin: 20px 0 28px;
  }

  .app-shell {
    width: 100%;
    overflow-x: hidden;
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace {
    min-width: 0;
    padding: 16px;
  }

  .topbar,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .backup-view-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .backup-batch-bar {
    grid-template-columns: 1fr auto;
  }

  .backup-batch-status {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .backup-batch-actions {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .backup-history-filter {
    align-self: flex-start;
  }

  .backup-config-grid,
  .backup-activity-grid,
  .backup-file-grid {
    grid-template-columns: 1fr;
  }

  .backup-list-actions {
    grid-column: 1;
    justify-content: flex-start;
  }

  .topbar-actions {
    min-width: 0;
    width: 100%;
  }

  .topbar-actions .ghost-button,
  .topbar-actions .primary-button {
    flex: 1;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alert-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alert-notify-card {
    grid-template-columns: 1fr;
  }

  .mail-log-list {
    grid-template-columns: 1fr;
  }

  .alert-report-grid,
  .alert-history-grid,
  .backup-summary,
  .admin-permission-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .data-detail-toolbar,
  .data-detail-hero,
  .metric-grid,
  .gsc-diagnostic-strip,
  .gsc-account-form,
  .policy-layout,
  .rules-grid,
  .rules-workbench {
    grid-template-columns: 1fr;
  }

  .gsc-diagnostic-kpis {
    grid-template-columns: 1fr;
  }

  .gsc-account-brief {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .gsc-upload-head {
    align-items: stretch;
    flex-direction: column;
  }

  .data-detail-tabs {
    overflow-x: auto;
  }

  .detail-section-head,
  .table-tools,
  .pagination-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-switch {
    overflow-x: auto;
  }

  .rules-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .rules-footer .dialog-actions {
    justify-content: stretch;
  }

  .table-wrap {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .site-control-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  .site-display-tools {
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  body {
    overflow-x: hidden;
  }

  .module-toolbar--filters {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented-filter {
    width: 100%;
  }

  .module-result-meta {
    align-self: flex-end;
  }

  .policy-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .policy-item code {
    grid-column: 2;
  }

  .site-status-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-status-tab {
    min-width: 0;
    padding: 0 5px;
  }

  .site-display-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px 32px;
  }

  .site-view-switch,
  .site-tools-divider {
    grid-column: 1 / -1;
  }

  .site-view-switch {
    width: 100%;
  }

  .site-tools-divider {
    display: none;
  }

  .site-sort-control {
    min-width: 0;
  }

  .site-sort-control select {
    min-width: 0;
    width: 100%;
  }

  .login-brief {
    padding: 20px 16px;
  }

  .login-signal-grid,
  .login-security-list {
    grid-template-columns: 1fr;
  }

  .login-audit-strip {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .login-audit-strip span:nth-child(n + 9) {
    display: none;
  }

  .login-panel {
    width: calc(100vw - 24px);
    padding: 16px;
  }

  .workspace {
    padding: 12px;
  }

  .summary-strip {
    grid-template-columns: 1fr;
  }

  .export-menu,
  #exportButton {
    width: 40px;
    min-width: 40px;
  }

  #exportButton {
    padding: 0;
  }

  #exportButton span,
  #exportButton svg:last-child {
    display: none;
  }

  .topbar-actions {
    display: grid;
    max-width: 100%;
    grid-template-columns: 40px 1fr;
  }

  .topbar-actions > * {
    min-width: 0;
  }

  #addSiteButton {
    width: 100%;
  }

  .topbar-actions .primary-button,
  .topbar-actions #logoutButton {
    grid-column: 1 / -1;
  }

  .alert-summary {
    grid-template-columns: 1fr;
  }

  .alert-report-grid,
  .alert-history-grid,
  .backup-summary {
    grid-template-columns: 1fr;
  }

  .backup-subnav {
    overflow-x: auto;
  }

  .backup-storage-bar {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .backup-storage-path-control {
    grid-column: 1 / -1;
  }

  .alert-subnav-shell {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 10px;
  }

  .alert-subnav {
    width: 100%;
    overflow-x: auto;
  }

  .alert-subtab,
  .backup-subtab,
  .module-subtab {
    flex: 1 0 auto;
    justify-content: center;
  }

  .alert-subnav-shell #exportAlertButton {
    width: 100%;
  }

  .backup-history-filter {
    width: 100%;
  }

  .backup-list-row {
    padding: 12px;
  }

  .backup-batch-bar {
    grid-template-columns: 1fr;
  }

  .backup-batch-status {
    grid-column: 1;
    grid-row: auto;
  }

  .backup-batch-bar .primary-button {
    width: 100%;
  }

  .backup-batch-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .backup-batch-actions .ghost-button,
  .backup-batch-actions .primary-button {
    width: 100%;
  }

  .backup-path {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .email-dialog-body {
    grid-template-columns: 1fr;
  }

  .email-field-grid {
    grid-template-columns: 1fr;
  }

  .backup-field-grid {
    grid-template-columns: 1fr;
  }

  .email-dialog-status {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-permission-strip,
  .admin-field-grid,
  .permission-grid,
  .scope-control-grid,
  .scope-resource-grid {
    grid-template-columns: 1fr;
  }

  .gsc-account-main,
  .gsc-account-brief {
    padding: 14px;
  }

  .gsc-account-steps li {
    align-items: start;
  }

  .field-tools {
    display: grid;
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 12px;
  }

  .rail-track {
    grid-template-columns: repeat(30, minmax(4px, 1fr));
  }

  .rail-tick:nth-child(n + 31) {
    display: none;
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dialog-actions button {
    width: 100%;
  }

  .site-discovery-body {
    min-height: 360px;
    padding: 10px 12px;
  }

  .site-discovery-status {
    align-items: stretch;
    flex-direction: column;
  }

  .site-discovery-row {
    grid-template-columns: 22px minmax(0, 1fr) 72px;
    gap: 8px;
    padding: 10px;
  }

  .site-discovery-meta {
    display: none;
  }
}

/* Signal Desk: global control plane and platform dashboard. */
:root {
  --bg: #f4f6f8;
  --sidebar: #fbfcfd;
  --surface: #ffffff;
  --surface-soft: #f7f9fb;
  --border: #dce2e8;
  --border-strong: #c7d0d9;
  --text: #15212d;
  --muted: #5e6d7b;
  --muted-2: #82909d;
  --primary: #2864ec;
  --primary-dark: #174fcf;
  --success: #12845d;
  --warning: #b56d08;
  --danger: #c73d50;
  --shadow: 0 10px 28px rgba(23, 34, 45, 0.06);
}

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

.sidebar {
  z-index: 20;
  padding: 0;
  border-right: 1px solid var(--border);
  background: var(--sidebar);
  color: var(--text);
}

.brand-block {
  min-height: 64px;
  gap: 10px;
  padding: 0 17px;
  border-bottom: 1px solid var(--border);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #17232d;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 800;
}

.brand-block strong {
  color: var(--text);
  font-size: 16px;
}

.brand-block span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
}

.main-nav {
  padding: 14px 10px;
}

.nav-section-label {
  margin-top: 14px;
  padding: 0 10px 6px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 16px;
}

.nav-section-label:first-child {
  margin-top: 0;
}

.nav-item {
  position: relative;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 5px;
  color: #51606e;
}

.nav-item:hover {
  background: #f0f3f6;
  color: var(--text);
}

.nav-item.active {
  background: #eaf0ff;
  box-shadow: none;
  color: #194fcf;
  font-weight: 700;
}

.nav-item.active::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -10px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--primary);
  content: "";
}

.nav-item svg,
.nav-item.active svg {
  color: currentColor;
}

.sidebar-runtime {
  margin: auto 14px 14px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
}

.sidebar-runtime strong {
  color: var(--text);
}

.sidebar-runtime-dot[data-status="warn"] {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(181, 109, 8, 0.12);
}

.sidebar-runtime-dot[data-status="down"] {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(199, 61, 80, 0.12);
}

.workspace {
  min-width: 0;
  background: var(--bg);
}

.topbar {
  position: sticky;
  z-index: 15;
  top: 0;
  min-height: 64px;
  padding: 10px 24px 10px 26px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
}

.topbar .eyebrow {
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
}

.topbar h1 {
  font-size: 20px;
  line-height: 1.15;
}

.topbar-actions {
  gap: 7px;
}

.topbar-actions .primary-button,
.topbar-actions .ghost-button,
.topbar-actions .icon-button {
  min-height: 34px;
}

.summary-strip {
  margin: 16px 26px 0;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.rail-track {
  margin: 0 26px;
}

.tab-panel {
  margin: 16px 26px 28px;
}

.panel,
.dashboard-panel,
.dashboard-signal {
  border-radius: 7px;
}

.panel {
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(23, 34, 45, 0.03);
}

.panel--site-list,
.module-panel {
  overflow: hidden;
  padding: 0;
}

.site-control-bar,
.module-toolbar {
  background: var(--surface);
}

.module-subnav {
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}

.module-view-panel > .table-wrap,
.module-view-panel > .event-log-list {
  margin: 0 12px 12px;
}

.table-wrap {
  border-radius: 6px;
  box-shadow: none;
}

th {
  height: 34px;
  background: #f7f9fb;
  color: #61707e;
  font-family: var(--mono);
  font-size: 16px;
  text-transform: uppercase;
}

td {
  height: 52px;
  font-size: 16px;
}

.control-dashboard {
  margin-top: 18px;
}

.dashboard-signal {
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) repeat(4, minmax(130px, 0.72fr));
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.dashboard-health-lead,
.dashboard-kpi {
  min-height: 80px;
  border-right: 1px solid var(--border);
}

.dashboard-health-lead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
}

.health-ring {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-content: center;
  border: 4px solid #dfe5e9;
  border-top-color: var(--muted-2);
  border-radius: 50%;
  text-align: center;
}

.health-ring--ok {
  border-color: #cee9df;
  border-top-color: var(--success);
  border-right-color: var(--success);
}

.health-ring--warn {
  border-color: #f1dfbd;
  border-top-color: var(--warning);
  border-right-color: var(--warning);
}

.health-ring--down {
  border-color: #f2d4d8;
  border-top-color: var(--danger);
  border-right-color: var(--danger);
}

.health-ring strong,
.health-ring span {
  display: block;
  font-family: var(--mono);
}

.health-ring strong {
  font-size: 16px;
}

.health-ring span {
  color: var(--muted);
  font-size: 16px;
}

.dashboard-health-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.dashboard-health-copy > span,
.dashboard-kpi > span {
  color: var(--muted);
  font-size: 16px;
}

.dashboard-health-copy strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-health-copy small,
.dashboard-kpi small {
  overflow: hidden;
  color: var(--muted);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-kpi {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 13px 16px;
}

.dashboard-kpi strong {
  font-family: var(--mono);
  font-size: 18px;
}

.dashboard-kpi--alert strong {
  color: var(--danger);
}

.dashboard-kpi--backup strong {
  color: var(--warning);
}

.dashboard-pulse {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 110px minmax(0, 1fr) 128px;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 6px 14px;
  border-top: 1px solid var(--border);
  background: #f8fafb;
}

.dashboard-pulse > span,
.dashboard-pulse > time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
}

.dashboard-pulse > time {
  text-align: right;
}

.dashboard-pulse-track {
  display: grid;
  height: 20px;
  grid-template-columns: repeat(60, minmax(2px, 1fr));
  align-items: end;
  gap: 2px;
}

.pulse-sample {
  display: block;
  min-width: 2px;
  border-radius: 1px;
  background: #74c8a8;
}

.pulse-sample--warn {
  background: #dea13b;
}

.pulse-sample--down {
  background: #dc5a6b;
}

.pulse-sample--empty,
.pulse-sample--pending {
  height: 5px;
  background: #dce3e9;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  align-items: start;
  gap: 14px;
  margin-top: 14px;
}

.dashboard-main-column,
.dashboard-side-column {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.dashboard-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(23, 34, 45, 0.03);
}

.dashboard-panel-heading {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.dashboard-panel-heading h2 {
  margin-top: 2px;
  font-size: 16px;
}

.dashboard-section-label {
  display: block;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
}

.text-action svg {
  width: 13px;
  height: 13px;
}

.platform-identity {
  display: grid;
  min-height: 60px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: #fbfcfd;
}

.platform-node-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #ccd8ed;
  border-radius: 6px;
  background: #eef3ff;
  color: var(--primary);
}

.platform-node-mark svg {
  width: 16px;
  height: 16px;
}

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

.platform-identity strong {
  font-size: 16px;
}

.platform-identity span,
.platform-identity time {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
}

.platform-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}

.platform-metric {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--border);
}

.platform-metric:last-child {
  border-right: 0;
}

.platform-metric > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.platform-metric span,
.platform-metric small {
  color: var(--muted);
  font-size: 16px;
}

.platform-metric strong {
  font-family: var(--mono);
  font-size: 16px;
}

.metric-track {
  height: 5px;
  overflow: hidden;
  border-radius: 2px;
  background: #e9eef2;
}

.metric-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--success);
  transition: width 240ms ease;
}

.metric-track--disk i {
  background: var(--primary);
}

.metric-track i[data-level="warn"] {
  background: var(--warning);
}

.metric-track i[data-level="down"] {
  background: var(--danger);
}

.platform-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
}

.platform-facts > div {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--border);
}

.platform-facts > div:last-child {
  border-right: 0;
}

.platform-facts dt {
  color: var(--muted);
  font-size: 16px;
}

.platform-facts dd {
  overflow: hidden;
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-legend {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 16px;
}

.trend-legend i {
  width: 12px;
  height: 2px;
}

.legend-cpu {
  background: #2864ec;
}

.legend-memory {
  background: #15966a;
}

.legend-disk {
  background: #c68416;
}

.platform-chart {
  position: relative;
  min-height: 188px;
  padding: 10px 12px 0;
}

.platform-chart svg {
  display: block;
  width: 100%;
  height: 188px;
  overflow: visible;
}

.chart-grid line {
  stroke: #e4e9ed;
  stroke-width: 1;
}

.chart-grid text {
  fill: var(--muted-2);
  font-family: var(--mono);
  font-size: 16px;
}

.chart-line {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.chart-line--cpu {
  stroke: #2864ec;
}

.chart-line--memory {
  stroke: #15966a;
}

.chart-line--disk {
  stroke: #c68416;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  padding: 0 14px 10px 46px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 16px;
}

.estate-list {
  min-height: 92px;
}

.estate-row {
  display: grid;
  min-height: 52px;
  grid-template-columns: 7px minmax(145px, 1.5fr) minmax(80px, 0.7fr) repeat(3, minmax(55px, 0.45fr)) 64px;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
}

.estate-row:last-child {
  border-bottom: 0;
}

.estate-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}

.estate-status--ok {
  background: var(--success);
}

.estate-status--warn {
  background: var(--warning);
}

.estate-status--down {
  background: var(--danger);
}

.estate-identity,
.estate-resource {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.estate-identity strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.estate-identity span,
.estate-resource span,
.estate-site-state {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
}

.estate-resource strong {
  font-family: var(--mono);
  font-size: 16px;
}

.estate-site-state {
  display: flex;
  align-items: center;
  gap: 4px;
}

.estate-site-dot {
  width: 5px;
  height: 16px;
  border-radius: 1px;
  background: var(--muted-2);
}

.estate-site-dot--ok {
  background: #69c3a2;
}

.estate-site-dot--warn {
  background: #d89a31;
}

.estate-site-dot--down {
  background: #d85567;
}

.service-chain,
.incident-queue {
  padding: 0 12px;
}

.service-row {
  display: grid;
  min-height: 58px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--border);
}

.service-row:last-child {
  border-bottom: 0;
}

.service-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #f7f9fb;
  color: #4f6171;
}

.service-icon svg {
  width: 14px;
  height: 14px;
}

.service-row strong,
.service-row span {
  display: block;
}

.service-row strong {
  font-size: 16px;
}

.service-row div > span {
  overflow: hidden;
  max-width: 176px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-state {
  padding: 3px 5px;
  border-radius: 3px;
  background: #edf1f4;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.service-state--ok {
  background: #e3f4ed;
  color: var(--success);
}

.service-state--warn {
  background: #fff1d9;
  color: var(--warning);
}

.service-state--down {
  background: #fde8eb;
  color: var(--danger);
}

.incident-row {
  display: grid;
  width: 100%;
  min-height: 54px;
  grid-template-columns: 6px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.incident-row:last-child {
  border-bottom: 0;
}

.incident-severity {
  width: 3px;
  height: 28px;
  border-radius: 2px;
  background: var(--warning);
}

.incident-severity--down {
  background: var(--danger);
}

.incident-row strong,
.incident-row small {
  display: block;
}

.incident-row strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.incident-row small,
.incident-row time {
  margin-top: 3px;
  color: var(--muted);
  font-size: 16px;
}

.dashboard-activity {
  margin: 0;
  padding: 0 12px;
  list-style: none;
}

.dashboard-activity li {
  display: grid;
  min-height: 48px;
  grid-template-columns: 7px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--border);
}

.dashboard-activity li:last-child {
  border-bottom: 0;
}

.dashboard-activity strong,
.dashboard-activity time {
  display: block;
}

.dashboard-activity strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-activity time {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
}

.activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.activity-dot--warn {
  background: var(--warning);
}

.activity-dot--down {
  background: var(--danger);
}

.dashboard-empty {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

.dashboard-empty svg {
  width: 16px;
  height: 16px;
}

.dashboard-empty--success {
  color: var(--success);
}

@media (max-width: 1260px) {
  .dashboard-signal {
    grid-template-columns: minmax(230px, 1.2fr) repeat(4, minmax(112px, 0.7fr));
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .platform-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .platform-facts > div:nth-child(3) {
    border-right: 0;
  }

  .platform-facts > div:nth-child(-n + 3) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 1040px) {
  .dashboard-signal {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-health-lead {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

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

  .dashboard-side-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .sidebar {
    position: static;
    height: auto;
    padding: 0;
  }

  .brand-block {
    min-height: 58px;
    padding: 0 14px;
  }

  .main-nav {
    display: flex;
    grid-template-columns: none;
    gap: 4px;
    overflow-x: auto;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
  }

  .nav-group {
    display: contents;
  }

  .nav-item {
    width: auto;
    flex: 0 0 auto;
    padding: 0 10px;
  }

  .nav-item.active::before,
  .nav-section-label,
  .sidebar-runtime {
    display: none;
  }

  .topbar {
    padding: 10px 14px;
  }

  .summary-strip,
  .tab-panel,
  .rail-track {
    margin-right: 14px;
    margin-left: 14px;
  }

  .dashboard-side-column {
    grid-template-columns: 1fr;
  }

  .activity-panel {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: center;
  }

  .topbar-actions {
    display: flex;
    width: auto;
  }

  .topbar-actions .export-menu,
  .topbar-actions #logoutButton {
    display: none;
  }

  .control-dashboard {
    margin-top: 12px;
  }

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

  .dashboard-health-lead,
  .dashboard-pulse {
    grid-column: 1 / -1;
  }

  .dashboard-kpi:nth-of-type(even) {
    border-right: 0;
  }

  .dashboard-pulse {
    grid-template-columns: 1fr auto;
  }

  .dashboard-pulse-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .platform-identity {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .platform-identity time {
    display: none;
  }

  .platform-metrics {
    grid-template-columns: 1fr;
  }

  .platform-metric {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .platform-metric:last-child {
    border-bottom: 0;
  }

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

  .platform-facts > div,
  .platform-facts > div:nth-child(3) {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .platform-facts > div:nth-child(even) {
    border-right: 0;
  }

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

  .dashboard-panel-heading {
    align-items: flex-start;
  }

  .trend-legend {
    gap: 6px;
  }

  .estate-list {
    overflow-x: auto;
  }

  .estate-row {
    min-width: 620px;
  }
}

/* MonitorOps Night Grid theme primitives. */
:root {
  color-scheme: dark;
  --bg: #070816;
  --sidebar: #090b1c;
  --surface: #0f1429;
  --surface-soft: #141a33;
  --surface-raised: #181f3d;
  --border: #2c3763;
  --border-strong: #5367a6;
  --text: #f5f7ff;
  --muted: #bec8e3;
  --muted-2: #91a0c4;
  --primary: #8b6cff;
  --primary-dark: #7052ed;
  --star-blue: #4ba3ff;
  --success: #35d6ae;
  --warning: #ffbd59;
  --danger: #ff7088;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
}

html,
body {
  min-width: 0;
  background-color: var(--bg);
}

body {
  overflow-x: hidden;
  background-image:
    linear-gradient(rgba(75, 163, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 108, 255, 0.032) 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--text);
}

a,
.url-link,
.text-action {
  color: #8dc8ff;
}

h1,
h2,
h3,
h4,
strong,
label,
th {
  color: var(--text);
}

.app-shell {
  display: grid;
  width: 100%;
  max-width: none;
  grid-template-columns: 280px minmax(0, 1fr);
  background: transparent;
}

.sidebar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  width: auto;
  height: 100vh;
  padding: 0;
  overflow: hidden;
  flex-direction: column;
  border-right: 1px solid rgba(83, 103, 166, 0.55);
  background: rgba(9, 11, 28, 0.98);
  box-shadow: 20px 0 45px rgba(0, 0, 0, 0.18);
  color: var(--text);
}

.brand-block {
  min-height: 72px;
  padding: 0 20px;
  gap: 11px;
  border-bottom: 1px solid rgba(83, 103, 166, 0.38);
  background: rgba(15, 20, 41, 0.84);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(139, 108, 255, 0.82);
  border-radius: 7px;
  background: #14182f;
  box-shadow: 0 0 22px rgba(139, 108, 255, 0.24), inset 0 0 12px rgba(75, 163, 255, 0.13);
  color: #ffffff;
}

.brand-block strong {
  color: #ffffff;
}

.brand-block span {
  color: #aebce0;
}

.main-nav {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 14px 12px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  scrollbar-color: #354472 transparent;
  scrollbar-width: thin;
}

.nav-section-label {
  display: block;
  margin: 13px 0 6px;
  padding: 0 10px;
  color: #8d9bc2;
  font-family: var(--mono);
  font-weight: 750;
  text-transform: uppercase;
}

.nav-section-label:first-child {
  margin-top: 0;
}

.nav-primary,
.nav-item {
  position: relative;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #c8d1e8;
  cursor: pointer;
  text-align: left;
}

.nav-primary {
  display: grid;
  min-height: 44px;
  padding: 0 10px;
  align-items: center;
  grid-template-columns: 20px minmax(0, 1fr) 18px;
  gap: 10px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 720;
}

.nav-primary:hover,
.nav-cluster:has(.nav-item.active) > .nav-primary {
  background: rgba(75, 163, 255, 0.08);
  color: #ffffff;
}

.nav-primary > svg:first-child {
  width: 18px;
  height: 18px;
  color: #8ea1d0;
}

.nav-cluster:has(.nav-item.active) > .nav-primary > svg:first-child {
  color: var(--star-blue);
  filter: drop-shadow(0 0 7px rgba(75, 163, 255, 0.48));
}

.nav-chevron {
  width: 16px;
  height: 16px;
  color: #8290b5;
}

.nav-children {
  display: grid;
  max-height: 0;
  gap: 2px;
  padding: 0;
  overflow: hidden;
  opacity: 0;
}

.nav-cluster.is-open .nav-children {
  max-height: 360px;
  padding: 4px 0 8px;
  opacity: 1;
}

.nav-item {
  display: flex;
  min-height: 44px;
  padding: 0 10px 0 44px;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  border-radius: 6px;
  color: #bec8e3;
  font-size: 16px;
  font-weight: 620;
}

.nav-item::before {
  position: absolute;
  top: auto;
  bottom: auto;
  left: 23px;
  display: block;
  width: 5px;
  height: 5px;
  border: 1px solid #7182ad;
  border-radius: 50%;
  background: var(--sidebar);
  content: "";
}

.nav-item:hover {
  background: rgba(139, 108, 255, 0.1);
  color: #ffffff;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(139, 108, 255, 0.3), rgba(75, 163, 255, 0.12));
  box-shadow: inset 2px 0 0 var(--primary), inset 0 0 0 1px rgba(139, 108, 255, 0.18), 0 0 22px rgba(75, 163, 255, 0.07);
  color: #ffffff;
}

.nav-item.active::before {
  top: auto;
  bottom: auto;
  left: 21px;
  width: 8px;
  height: 8px;
  border: 2px solid #c7beff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(139, 108, 255, 0.88);
}

.nav-item--root {
  min-height: 44px;
  padding-left: 12px;
  font-weight: 720;
}

.nav-item--root::before {
  display: none;
}

.sidebar-runtime {
  display: grid;
  margin: auto 14px 14px;
  padding: 12px;
  align-items: start;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(83, 103, 166, 0.5);
  border-radius: 7px;
  background: #10152b;
  color: var(--muted);
}

.sidebar-runtime strong {
  color: #f3f6ff;
}

.sidebar-runtime-dot {
  margin-top: 7px;
  box-shadow: 0 0 10px currentColor;
  animation: runtime-pulse 2.4s ease-in-out infinite;
}

.sidebar-scrim,
.sidebar-menu-button {
  display: none;
}

.workspace {
  width: auto;
  min-width: 0;
  min-height: 100vh;
  padding: 0;
  background: transparent;
}

.topbar {
  position: sticky;
  z-index: 15;
  top: 0;
  min-height: 72px;
  margin: 0;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(83, 103, 166, 0.48);
  background: rgba(7, 8, 22, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px);
}

.topbar::after {
  position: absolute;
  right: 24px;
  bottom: -1px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(139, 108, 255, 0.85) 35%, rgba(75, 163, 255, 0.9) 55%, transparent 100%);
  background-size: 180% 100%;
  opacity: 0.72;
  content: "";
  animation: signal-scan 5.5s linear infinite;
}

.topbar h1 {
  color: #ffffff;
  font-size: 21px;
}

.topbar .eyebrow {
  color: #8fc8ff;
}

.tab-panel,
.summary-strip {
  max-width: none;
  margin-right: 24px;
  margin-left: 24px;
}

.tab-panel {
  margin-top: 18px;
  margin-bottom: 28px;
}

.panel,
.dashboard-signal,
.dashboard-panel,
.summary-strip,
.table-wrap,
.backup-schedule-list,
.backup-config-list,
.backup-file-list,
.backup-activity-list,
.event-log-list,
.mail-log-list,
.config-list,
.rules-workbench,
.rules-editor,
.policy-layout,
.gsc-account-main,
.gsc-account-brief,
.dialog-card,
.data-dialog-card {
  border-color: var(--border);
  background: rgba(15, 20, 41, 0.96);
  box-shadow: var(--shadow);
  color: var(--text);
}

.panel,
.dashboard-panel,
.dashboard-signal,
.summary-strip,
.table-wrap {
  border-radius: 7px;
}

.summary-strip {
  background: var(--border);
}

.summary-item,
.dashboard-health-lead,
.dashboard-kpi,
.platform-identity,
.platform-metrics,
.platform-facts > div,
.service-row,
.incident-row,
.estate-row,
.dashboard-activity li,
.alert-summary-item,
.alert-block,
.backup-summary-item,
.backup-storage-bar,
.backup-batch-bar,
.backup-list-row,
.backup-server-group-head,
.backup-schedule-toolbar,
.backup-schedule-site-option,
.metric-tile,
.policy-item,
.rule-editor-block,
.rules-policy,
.gsc-upload-panel,
.gsc-properties-field,
.email-dialog-status div,
.login-security-list div {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.dashboard-panel-heading,
.panel-heading,
.module-toolbar,
.backup-list-head,
.site-control-bar,
.dialog-heading,
.dialog-actions,
thead,
th {
  border-color: var(--border);
  background: #0c1124;
}

th {
  color: #c0cbe7;
}

td,
tr,
.backup-list-row,
.estate-row,
.service-row,
.incident-row,
.dashboard-activity li {
  border-color: rgba(44, 55, 99, 0.82);
}

tbody tr,
.backup-list-row,
.estate-row,
.service-row,
.incident-row,
.activity-row {
  background-color: transparent;
}

.backup-server-group-toggle,
.site-group-toggle {
  border-color: var(--border);
  background: #11172e;
  color: var(--muted);
}

.backup-server-group-toggle:hover,
.site-group-toggle:hover {
  background: #17203b;
}

.backup-primary-action {
  border-color: rgba(75, 163, 255, 0.45);
  background: rgba(75, 163, 255, 0.13);
  color: #92caff;
}

.backup-primary-action:hover {
  border-color: #72b8ff;
  background: rgba(75, 163, 255, 0.21);
  color: #ffffff;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea,
.gsc-binding-select,
.table-search,
.backup-filter-search,
.backup-storage-path-control,
.site-sort-control,
.site-view-switch {
  border-color: #384873;
  background-color: #0a0f22;
  color: #f5f7ff;
}

select option {
  background: #10152b;
  color: #f5f7ff;
}

input::placeholder,
textarea::placeholder {
  color: #8796bb;
}

input:focus,
select:focus,
textarea:focus,
.gsc-binding-select:focus {
  border-color: var(--star-blue);
  box-shadow: 0 0 0 3px rgba(75, 163, 255, 0.18), 0 0 18px rgba(75, 163, 255, 0.09);
  outline: none;
}

.primary-button {
  border-color: rgba(175, 160, 255, 0.78);
  background: linear-gradient(115deg, #7858ef, #3486e3);
  box-shadow: 0 8px 24px rgba(72, 83, 220, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.primary-button:hover {
  border-color: #c3b9ff;
  background: linear-gradient(115deg, #896bfa, #4598f4);
  box-shadow: 0 10px 28px rgba(72, 104, 232, 0.34), 0 0 18px rgba(139, 108, 255, 0.16);
}

.ghost-button,
.icon-button,
.table-action,
.secret-toggle,
.danger-button {
  border-color: #3a4974;
  background: #11172d;
  color: #e5eaff;
}

.ghost-button:hover,
.icon-button:hover,
.table-action:hover,
.secret-toggle:hover {
  border-color: var(--star-blue);
  background: #17213e;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(75, 163, 255, 0.12);
}

.danger-button {
  border-color: rgba(255, 112, 136, 0.56);
  background: rgba(255, 112, 136, 0.14);
  color: #ffa0b0;
}

.status-pill {
  border-color: #43517a;
  background: #171d35;
  color: #d0d8ed;
}

.status-pill--ok,
.status-pill--success {
  border-color: rgba(53, 214, 174, 0.38);
  background: rgba(53, 214, 174, 0.12);
  color: #75ebcc;
}

.status-pill--warn,
.status-pill--warning {
  border-color: rgba(255, 189, 89, 0.38);
  background: rgba(255, 189, 89, 0.12);
  color: #ffd083;
}

.status-pill--down,
.status-pill--danger,
.status-pill--failed {
  border-color: rgba(255, 112, 136, 0.4);
  background: rgba(255, 112, 136, 0.12);
  color: #ff9bad;
}

.muted,
.site-title span,
.module-context,
.module-result-meta,
.field-status,
.detail-meta,
small,
time,
.summary-item span,
.summary-item time,
.platform-metric span,
.platform-metric small,
.dashboard-kpi > span,
.dashboard-health-copy small,
.dashboard-kpi small,
.incident-row small,
.incident-row time {
  color: var(--muted);
}

.eyebrow,
.dashboard-panel-heading > div > span,
.panel-title > span {
  color: #97c8ff;
}

.metric-track,
.rail-tick {
  background: #252f53;
  outline-color: #35436c;
}

.gsc-coverage-flow {
  position: relative;
  display: grid;
  min-height: 92px;
  margin: 12px;
  padding: 14px;
  align-items: stretch;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(139, 108, 255, 0.05), rgba(75, 163, 255, 0.035)),
    #0b1023;
  overflow: hidden;
}

.gsc-coverage-flow::before {
  position: absolute;
  top: 28px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, rgba(139, 108, 255, 0.2), rgba(75, 163, 255, 0.65), rgba(255, 189, 89, 0.35));
  content: "";
}

.gsc-coverage-node,
.gsc-coverage-pending {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  min-height: 62px;
  padding: 10px 13px;
  align-content: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border: 1px solid #354572;
  border-radius: 6px;
  background: rgba(17, 23, 46, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.gsc-coverage-node span,
.gsc-coverage-pending span {
  color: var(--muted);
  font-size: 13px;
}

.gsc-coverage-node strong,
.gsc-coverage-pending strong {
  color: #ffffff;
  font-family: var(--mono);
  font-size: 22px;
}

.gsc-coverage-node--active {
  border-color: rgba(75, 163, 255, 0.68);
  background: rgba(75, 163, 255, 0.12);
  box-shadow: inset 0 0 22px rgba(75, 163, 255, 0.07), 0 0 18px rgba(75, 163, 255, 0.07);
}

.gsc-coverage-node--active strong {
  color: #87c4ff;
}

.gsc-coverage-pending {
  border-color: rgba(255, 189, 89, 0.5);
  background: rgba(255, 189, 89, 0.09);
}

.gsc-coverage-pending strong {
  color: #ffd083;
}

.export-menu__panel {
  border-color: var(--border-strong);
  background: #11172d;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.export-menu__panel button {
  color: var(--text);
}

.export-menu__panel button:hover {
  background: rgba(75, 163, 255, 0.11);
}

dialog::backdrop {
  background: rgba(2, 3, 12, 0.8);
  backdrop-filter: blur(5px);
}

.login-page {
  background:
    linear-gradient(90deg, rgba(9, 11, 28, 0.98) 0 50%, transparent 50%),
    var(--bg);
}

.login-brief {
  border-right: 1px solid var(--border);
  background:
    linear-gradient(rgba(75, 163, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 108, 255, 0.04) 1px, transparent 1px),
    #090b1c;
  background-size: 32px 32px;
  color: var(--text);
}

.login-panel,
.login-signal,
.login-security-list div {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.login-panel {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), 0 0 42px rgba(139, 108, 255, 0.09);
}

@media (hover: hover) {
  tbody tr:hover,
  .backup-config-row:hover,
  .backup-file-row:hover,
  .backup-activity-row:hover,
  .backup-list-row:hover,
  .estate-row:hover,
  .service-row:hover,
  .incident-row:hover,
  .activity-row:hover {
    background-color: rgba(75, 163, 255, 0.08);
    box-shadow: inset 2px 0 0 var(--star-blue);
  }
}

@keyframes signal-scan {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@keyframes runtime-pulse {
  0%, 100% { opacity: 0.72; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 252px minmax(0, 1fr);
  }

  .tab-panel,
  .summary-strip {
    margin-right: 18px;
    margin-left: 18px;
  }
}

@media (max-width: 860px) {
  .app-shell {
    display: block;
    width: 100%;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: min(310px, calc(100vw - 46px));
    height: 100vh;
    padding: 0;
    transform: translateX(-102%);
    transition: transform 260ms var(--motion-ease);
  }

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

  .sidebar-scrim {
    position: fixed;
    z-index: 35;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(1, 2, 10, 0.75);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .app-shell.is-sidebar-open .sidebar-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-menu-button {
    display: inline-flex;
    flex: 0 0 42px;
  }

  .main-nav {
    display: block;
    margin: 0;
    padding: 14px 12px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
  }

  .nav-section-label {
    display: block;
  }

  .nav-primary {
    display: grid;
  }

  .main-nav .nav-item {
    width: 100%;
    justify-content: flex-start;
    padding: 0 10px 0 44px;
  }

  .main-nav .nav-item--root {
    padding-left: 12px;
  }

  .main-nav .nav-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar-runtime {
    display: grid;
  }

  .workspace {
    width: 100%;
    min-height: 100vh;
  }

  .topbar {
    min-height: 68px;
    padding: 9px 14px;
  }

  .tab-panel,
  .summary-strip,
  .rail-track {
    max-width: calc(100% - 28px);
    margin-right: 14px;
    margin-left: 14px;
  }

  .gsc-coverage-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gsc-coverage-flow::before {
    display: none;
  }
}

@media (max-width: 620px) {
  body {
    overflow-x: hidden;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
  }

  .topbar-heading {
    width: auto;
    min-width: 0;
    flex: 1;
  }

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

  .gsc-coverage-flow {
    margin: 10px;
    grid-template-columns: 1fr;
  }

  .login-page {
    background: var(--bg);
  }
}

.sidebar {
  z-index: 40;
}

.sidebar-scrim {
  z-index: 35;
}

.dashboard-pulse {
  border-top-color: var(--border);
  background: #0b1023;
}

.dashboard-pulse > span,
.dashboard-pulse > time {
  color: #aebbd9;
}

.pulse-sample--empty,
.pulse-sample--pending {
  background: #344267;
}

.platform-identity {
  border-bottom-color: var(--border);
  background: #10162d;
}

.platform-node-mark,
.service-icon {
  border-color: #3d4d79;
  background: #161e39;
  color: #91c6ff;
}

.service-state {
  border: 1px solid #43517a;
  background: #171d35;
  color: #d0d8ed;
}

.service-state--ok {
  border-color: rgba(53, 214, 174, 0.38);
  background: rgba(53, 214, 174, 0.12);
  color: #75ebcc;
}

.service-state--warn {
  border-color: rgba(255, 189, 89, 0.38);
  background: rgba(255, 189, 89, 0.12);
  color: #ffd083;
}

.service-state--down {
  border-color: rgba(255, 112, 136, 0.4);
  background: rgba(255, 112, 136, 0.12);
  color: #ff9bad;
}

@media (prefers-reduced-motion: reduce) {
  .topbar::after,
  .sidebar-runtime-dot {
    animation: none;
  }
}

/* MonitorOps Night Grid: high-contrast SaaS control plane. */
:root {
  color-scheme: dark;
  --bg: #070816;
  --sidebar: #090b1c;
  --surface: #0f1429;
  --surface-soft: #141a33;
  --surface-raised: #181f3d;
  --border: #29345d;
  --border-strong: #5367a6;
  --text: #f5f7ff;
  --muted: #bec8e3;
  --muted-2: #91a0c4;
  --primary: #7c5cff;
  --primary-dark: #6248e8;
  --star-blue: #3d9cff;
  --success: #35d6ae;
  --warning: #ffb84d;
  --danger: #ff6680;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  --radius: 7px;
  --radius-sm: 5px;
}

html,
body {
  background-color: var(--bg);
}

body {
  background-image:
    linear-gradient(rgba(61, 156, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--text);
}

body.has-sidebar-open {
  overflow: hidden;
}

a {
  color: #7cb8ff;
}

strong,
h1,
h2,
h3,
h4,
th,
label {
  color: var(--text);
}

.app-shell {
  grid-template-columns: 280px minmax(0, 1fr);
  background: transparent;
}

.sidebar {
  z-index: 40;
  display: flex;
  height: 100vh;
  padding: 0;
  overflow: hidden;
  flex-direction: column;
  border-right: 1px solid rgba(83, 103, 166, 0.5);
  background: rgba(9, 11, 28, 0.98);
  box-shadow: 20px 0 45px rgba(0, 0, 0, 0.16);
  color: var(--text);
}

.brand-block {
  min-height: 72px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(83, 103, 166, 0.36);
  background: rgba(15, 20, 41, 0.82);
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(124, 92, 255, 0.8);
  border-radius: 7px;
  background: #14182f;
  box-shadow: 0 0 22px rgba(124, 92, 255, 0.24), inset 0 0 12px rgba(61, 156, 255, 0.12);
  color: #ffffff;
}

.brand-mark::after {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--sidebar);
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(53, 214, 174, 0.7);
  content: "";
}

.brand-block strong {
  color: #ffffff;
}

.brand-block span {
  color: #9fb1d8;
}

.main-nav {
  display: block;
  min-height: 0;
  padding: 14px 12px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: #354472 transparent;
  scrollbar-width: thin;
}

.nav-section-label {
  display: block;
  margin: 13px 0 6px;
  padding: 0 10px;
  color: #7888b2;
  font-family: var(--mono);
  font-weight: 750;
  text-transform: uppercase;
}

.nav-section-label:first-child {
  margin-top: 0;
}

.nav-primary,
.nav-item {
  position: relative;
  width: 100%;
  border: 0;
  background: transparent;
  color: #c4cce3;
  cursor: pointer;
  text-align: left;
}

.nav-primary {
  display: grid;
  min-height: 44px;
  padding: 0 10px;
  align-items: center;
  grid-template-columns: 20px minmax(0, 1fr) 18px;
  gap: 10px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 720;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-primary:hover,
.nav-cluster:has(.nav-item.active) > .nav-primary {
  background: rgba(61, 156, 255, 0.075);
  color: #ffffff;
}

.nav-primary > svg:first-child {
  width: 18px;
  height: 18px;
  color: #8497c7;
}

.nav-cluster:has(.nav-item.active) > .nav-primary > svg:first-child {
  color: var(--star-blue);
  filter: drop-shadow(0 0 7px rgba(61, 156, 255, 0.45));
}

.nav-chevron {
  width: 16px;
  height: 16px;
  color: #6f7da4;
  transition: transform 200ms var(--motion-ease);
}

.nav-cluster.is-open .nav-chevron {
  transform: rotate(180deg);
}

.nav-children {
  display: grid;
  max-height: 0;
  gap: 2px;
  overflow: hidden;
  opacity: 0;
  transition: max-height 260ms var(--motion-ease), opacity 180ms ease, padding 220ms ease;
}

.nav-cluster.is-open .nav-children {
  max-height: 360px;
  padding: 4px 0 8px;
  opacity: 1;
}

.nav-item {
  display: flex;
  min-height: 40px;
  padding: 0 10px 0 44px;
  align-items: center;
  gap: 9px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 620;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 220ms ease;
}

.nav-item::before {
  position: absolute;
  left: 23px;
  width: 5px;
  height: 5px;
  border: 1px solid #63749f;
  border-radius: 50%;
  background: var(--sidebar);
  content: "";
}

.nav-item:hover {
  background: rgba(124, 92, 255, 0.09);
  color: #ffffff;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.28), rgba(61, 156, 255, 0.11));
  box-shadow: inset 2px 0 0 var(--primary), inset 0 0 0 1px rgba(124, 92, 255, 0.16), 0 0 22px rgba(61, 156, 255, 0.06);
  color: #ffffff;
}

.nav-item.active::before {
  position: absolute;
  inset: auto auto auto 21px;
  display: block;
  width: 8px;
  height: 8px;
  border: 2px solid #beb4ff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(124, 92, 255, 0.85);
}

.nav-item--root {
  min-height: 44px;
  padding-left: 12px;
  font-weight: 720;
}

.nav-item--root::before {
  display: none;
}

.nav-item--root svg {
  width: 18px;
  height: 18px;
  color: var(--star-blue);
}

.sidebar-runtime {
  display: grid;
  margin: auto 14px 14px;
  padding: 12px;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(83, 103, 166, 0.5);
  border-radius: 7px;
  background: #10152b;
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.sidebar-runtime strong {
  color: #eef2ff;
}

.sidebar-runtime-dot {
  box-shadow: 0 0 10px currentColor;
}

.sidebar-scrim,
.sidebar-menu-button {
  display: none;
}

.workspace {
  min-width: 0;
  padding: 0;
  background: transparent;
}

.topbar {
  min-height: 72px;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(83, 103, 166, 0.42);
  background: rgba(7, 8, 22, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
}

.topbar::after {
  position: absolute;
  right: 24px;
  bottom: -1px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.8), rgba(61, 156, 255, 0.8), transparent);
  opacity: 0.5;
  content: "";
}

.topbar-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.topbar h1 {
  color: #ffffff;
  font-size: 21px;
  line-height: 1.25;
}

.topbar .eyebrow {
  margin-bottom: 3px;
  color: #83bfff;
  text-transform: none;
}

.tab-panel,
.summary-strip {
  margin-right: 24px;
  margin-left: 24px;
}

.panel,
.dashboard-signal,
.dashboard-panel,
.summary-strip,
.table-wrap,
.backup-schedule-list,
.backup-config-list,
.backup-file-list,
.backup-activity-list {
  border-color: var(--border);
  background: rgba(15, 20, 41, 0.94);
  box-shadow: var(--shadow);
}

.panel,
.dashboard-panel,
.dashboard-signal {
  border-radius: 7px;
}

.summary-strip {
  background: var(--border);
}

.summary-item,
.dashboard-health-lead,
.dashboard-kpi,
.platform-identity,
.platform-metrics,
.platform-facts > div,
.service-row,
.incident-row,
.estate-row,
.dashboard-activity li,
.alert-summary-item,
.alert-block,
.backup-summary-item,
.backup-storage-bar,
.backup-batch-bar,
.backup-list-row,
.backup-server-group-head,
.backup-schedule-toolbar,
.backup-schedule-site-option,
.metric-tile,
.policy-item,
.rule-editor-block,
.rules-policy,
.gsc-upload-panel,
.gsc-properties-field,
.email-dialog-status div,
.login-security-list div {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.dashboard-panel-heading,
.panel-heading,
.module-toolbar,
.backup-list-head,
thead,
th {
  border-color: var(--border);
  background: #0c1124;
}

th {
  color: #aebbdc;
}

td,
tr,
.backup-list-row,
.estate-row,
.service-row,
.incident-row,
.dashboard-activity li {
  border-color: rgba(41, 52, 93, 0.78);
}

tbody tr,
.backup-list-row,
.estate-row,
.service-row,
.incident-row {
  background-color: transparent;
}

@media (hover: hover) {
  tbody tr:hover,
  .backup-list-row:hover,
  .estate-row:hover,
  .service-row:hover,
  .incident-row:hover,
  .activity-row:hover {
    background-color: rgba(61, 156, 255, 0.075);
    box-shadow: inset 2px 0 0 var(--star-blue);
  }
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea,
.gsc-binding-select,
.table-search,
.backup-filter-search,
.backup-storage-path-control {
  border-color: #34436f;
  background-color: #0a0f22;
  color: #f5f7ff;
}

select option {
  background: #10152b;
  color: #f5f7ff;
}

input::placeholder,
textarea::placeholder {
  color: #7f8db2;
}

input:focus,
select:focus,
textarea:focus,
.gsc-binding-select:focus {
  border-color: var(--star-blue);
  box-shadow: 0 0 0 3px rgba(61, 156, 255, 0.17), 0 0 18px rgba(61, 156, 255, 0.08);
  outline: none;
}

.primary-button {
  border: 1px solid rgba(158, 142, 255, 0.75);
  background: linear-gradient(115deg, #7052ed, #337fd9);
  box-shadow: 0 8px 24px rgba(72, 83, 220, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.primary-button:hover {
  border-color: #b8adff;
  background: linear-gradient(115deg, #7e61f5, #3d8cec);
  box-shadow: 0 10px 28px rgba(72, 104, 232, 0.34), 0 0 18px rgba(124, 92, 255, 0.14);
}

.ghost-button,
.icon-button,
.table-action,
.secret-toggle,
.danger-button {
  border-color: #35436f;
  background: #11172d;
  color: #e5eaff;
}

.ghost-button:hover,
.icon-button:hover,
.table-action:hover,
.secret-toggle:hover {
  border-color: var(--star-blue);
  background: #17213e;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(61, 156, 255, 0.1);
}

.danger-button {
  border-color: rgba(255, 102, 128, 0.55);
  background: rgba(255, 102, 128, 0.15);
  color: #ff9aac;
}

.status-pill {
  border: 1px solid #3b476d;
  background: #171d35;
  color: #c5cee6;
}

.status-pill--ok,
.status-pill--success {
  border-color: rgba(53, 214, 174, 0.34);
  background: rgba(53, 214, 174, 0.12);
  color: #6ceac8;
}

.status-pill--warn,
.status-pill--warning {
  border-color: rgba(255, 184, 77, 0.35);
  background: rgba(255, 184, 77, 0.12);
  color: #ffca78;
}

.status-pill--down,
.status-pill--danger,
.status-pill--failed {
  border-color: rgba(255, 102, 128, 0.36);
  background: rgba(255, 102, 128, 0.12);
  color: #ff91a4;
}

.muted,
.site-title span,
.module-context,
.module-result-meta,
.field-status,
.detail-meta,
small,
time,
.summary-item span,
.summary-item time,
.platform-metric span,
.platform-metric small,
.dashboard-kpi > span,
.dashboard-health-copy small,
.dashboard-kpi small,
.incident-row small,
.incident-row time {
  color: var(--muted);
}

.eyebrow,
.nav-section-label,
.dashboard-panel-heading > div > span,
.panel-title > span {
  color: #8fb5f2;
}

.metric-track,
.rail-tick {
  background: #252f53;
}

.metric-fill,
.rail-tick.is-active {
  background: var(--star-blue);
  box-shadow: 0 0 9px rgba(61, 156, 255, 0.38);
}

.trend-line--cpu,
.trend-legend i:first-child {
  color: #6ea9ff;
  stroke: #6ea9ff;
}

.trend-line--memory,
.trend-legend i:nth-child(2) {
  color: #8c6fff;
  stroke: #8c6fff;
}

.event-log-list,
.mail-log-list,
.config-list,
.rules-workbench,
.rules-editor,
.policy-layout,
.gsc-account-main,
.gsc-account-brief,
.dialog-card,
.data-dialog-card {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

dialog::backdrop {
  background: rgba(2, 3, 12, 0.78);
  backdrop-filter: blur(5px);
}

.dialog-heading,
.dialog-actions {
  border-color: var(--border);
  background: #0c1124;
}

.export-menu__panel {
  border-color: var(--border-strong);
  background: #11172d;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.export-menu__panel button {
  color: var(--text);
}

.export-menu__panel button:hover {
  background: rgba(61, 156, 255, 0.1);
}

.gsc-coverage-flow {
  display: grid;
  min-height: 88px;
  margin: 12px;
  padding: 12px;
  align-items: center;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) 22px minmax(120px, 0.8fr);
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #0b1023;
}

.gsc-coverage-flow > svg {
  width: 18px;
  height: 18px;
  color: #6075ad;
}

.gsc-coverage-node,
.gsc-coverage-pending {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 58px;
  padding: 9px 12px;
  align-content: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border: 1px solid #31406d;
  border-radius: 6px;
  background: #11172e;
}

.gsc-coverage-node + svg {
  display: none;
}

.gsc-coverage-node span,
.gsc-coverage-pending span {
  color: var(--muted);
  font-size: 13px;
}

.gsc-coverage-node strong,
.gsc-coverage-pending strong {
  color: #ffffff;
  font-family: var(--mono);
  font-size: 22px;
}

.gsc-coverage-node--active {
  border-color: rgba(61, 156, 255, 0.6);
  background: rgba(61, 156, 255, 0.1);
  box-shadow: inset 0 0 20px rgba(61, 156, 255, 0.06);
}

.gsc-coverage-node--active strong {
  color: #76bcff;
}

.gsc-coverage-pending {
  border-color: rgba(255, 184, 77, 0.45);
  background: rgba(255, 184, 77, 0.08);
}

.gsc-coverage-pending strong {
  color: #ffca78;
}

.gsc-binding-toolbar,
.alert-export-toolbar {
  border-top: 1px solid var(--border);
}

.login-page,
.login-brief {
  background: #080a19;
}

.login-brief {
  border-right: 1px solid var(--border);
}

.login-panel,
.login-signal,
.login-security-list div {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.login-panel {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46), 0 0 40px rgba(124, 92, 255, 0.08);
}

.login-signal-grid {
  border-color: var(--border);
  background: var(--border);
}

.login-audit-strip span {
  background: #274b7a;
}

.login-audit-strip span:nth-child(3n + 1) {
  background: var(--primary);
}

.login-audit-strip span:nth-child(4n) {
  background: var(--success);
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 252px minmax(0, 1fr);
  }

  .tab-panel,
  .summary-strip {
    margin-right: 18px;
    margin-left: 18px;
  }
}

@media (max-width: 860px) {
  .app-shell {
    display: block;
    width: 100%;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(310px, calc(100vw - 46px));
    height: 100vh;
    transform: translateX(-102%);
    transition: transform 260ms var(--motion-ease);
  }

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

  .sidebar-scrim {
    position: fixed;
    z-index: 35;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(1, 2, 10, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .app-shell.is-sidebar-open .sidebar-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-menu-button {
    display: inline-flex;
    flex: 0 0 42px;
  }

  .main-nav {
    display: block;
    padding: 14px 12px 20px;
    border-bottom: 0;
  }

  .sidebar-runtime {
    display: grid;
  }

  .workspace {
    width: 100%;
    min-height: 100vh;
  }

  .topbar {
    min-height: 68px;
    padding: 9px 14px;
  }

  .topbar-heading {
    width: auto;
  }

  .tab-panel,
  .summary-strip,
  .rail-track {
    margin-right: 14px;
    margin-left: 14px;
  }

  .gsc-coverage-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: center;
    flex-direction: row;
  }

  .topbar-heading {
    min-width: 0;
    flex: 1;
  }

  .topbar-heading > div {
    min-width: 0;
  }

  .topbar h1,
  .topbar .eyebrow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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

  .topbar-actions .export-menu,
  .topbar-actions #logoutButton,
  .topbar-actions .ghost-button {
    display: none;
  }

  .topbar-actions .primary-button {
    width: 44px;
    min-width: 44px;
    padding: 0;
  }

  .topbar-actions .primary-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .gsc-coverage-flow {
    margin: 10px;
    grid-template-columns: 1fr;
  }

  .gsc-binding-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .sidebar-scrim,
  .nav-children,
  .nav-chevron {
    transition: none;
  }
}

/* Backup readability pass: operational data must remain legible at 100% zoom. */
#backups .backup-subtab {
  min-height: 46px;
  padding: 0 14px;
  gap: 8px;
  font-size: 16px;
  line-height: 1.4;
}

#backups .backup-storage-info > span,
#backups .backup-summary-item > span,
#backups .backup-selection-count,
#backups .backup-batch-status {
  font-size: 16px;
  line-height: 1.45;
}

#backups .backup-storage-info > strong,
#backups .backup-storage-path-control code {
  font-size: 16px;
  line-height: 1.45;
}

#backups .backup-filter-search,
#backups .backup-filter-tools select {
  height: 38px;
}

#backups .backup-filter-search input,
#backups .backup-filter-tools select,
#backups .backup-select-all,
#backups .backup-schedule-toolbar .primary-button {
  font-size: 16px;
}

#backups .backup-list-head {
  min-height: 42px;
  font-size: 16px;
  font-weight: 750;
}

#backups .backup-list-row {
  min-height: 74px;
  padding-top: 11px;
  padding-bottom: 11px;
}

#backups .site-title {
  gap: 4px;
  min-width: 0;
}

#backups .site-title strong {
  font-size: 16px;
  line-height: 1.4;
}

#backups .site-title span,
#backups .backup-list-stack span,
#backups .backup-list-status small,
#backups .backup-schedule-toggle {
  font-size: 16px;
  line-height: 1.45;
}

#backups .backup-list-stack {
  gap: 5px;
}

#backups .backup-list-stack strong {
  font-size: 16px;
  line-height: 1.4;
}

#backups .status-pill {
  min-height: 24px;
  padding: 0 8px;
  font-size: 16px;
}

#backups .backup-schedule-toggle input {
  width: 34px;
  height: 18px;
  border-radius: 9px;
}

#backups .backup-schedule-toggle input::before {
  width: 12px;
  height: 12px;
}

#backups .backup-schedule-toggle input:checked::before {
  transform: translateX(16px);
}

#backups .backup-schedule-list .backup-list-actions .table-action,
#backups .backup-config-list .backup-list-actions .table-action {
  width: 32px;
  min-width: 32px;
  min-height: 32px;
}

#backups .backup-schedule-section-head > span,
#backups .backup-schedule-site-copy strong,
#backups .backup-schedule-form-grid > label:not(.toggle-switch) > span {
  font-size: 16px;
  line-height: 1.4;
}

#backups .backup-schedule-site-copy small,
#backups .backup-schedule-select-all {
  font-size: 16px;
  line-height: 1.45;
}

#backups .backup-schedule-site-option {
  min-height: 62px;
  padding: 10px 12px;
}

#backups .backup-schedule-form-grid select,
#backups .backup-schedule-form-grid input[type="time"] {
  height: 42px;
  font-size: 16px;
}

@media (max-width: 620px) {
  #backups .backup-subnav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    padding-right: 8px;
    padding-left: 8px;
  }

  #backups .backup-subtab {
    min-width: 0;
    padding: 0 4px;
    justify-content: center;
    gap: 5px;
    font-size: 16px;
    white-space: nowrap;
  }

  #backups .backup-subtab svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
  }

  #backups .backup-list-row {
    min-height: 0;
    padding: 14px 12px;
    gap: 12px;
  }

  #backups .backup-schedule-list .backup-list-actions .table-action {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
  }
}

/* MonitorOps Console 2.0 shell and operations-list system. */
.app-shell {
  grid-template-columns: 232px minmax(0, 1fr);
}

.sidebar {
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
}

.brand-block {
  min-height: 46px;
  padding: 0 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 16px;
}

.brand-block strong {
  font-size: 16px;
}

.brand-block span {
  margin-top: 2px;
  color: #9fadbb;
  font-size: 16px;
}

.main-nav {
  gap: 2px;
}

.nav-group {
  display: contents;
}

.nav-section-label {
  display: block;
  margin-top: 18px;
  padding: 0 11px 6px;
  color: #778594;
  font-size: 16px;
  font-weight: 750;
}

.nav-item {
  min-height: 38px;
  border-radius: 6px;
  color: #c8d1da;
  font-size: 16px;
  transition: background 150ms ease, color 150ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
  background: #2a3746;
  box-shadow: inset 3px 0 0 #4a7fff;
}

.nav-item svg {
  width: 16px;
  height: 16px;
  color: #92a2b2;
}

.nav-item.active svg {
  color: #78a1ff;
}

.sidebar-runtime {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 13px 9px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #aeb9c4;
}

.sidebar-runtime-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #36c98a;
  box-shadow: 0 0 0 4px rgba(54, 201, 138, 0.12);
}

.sidebar-runtime strong,
.sidebar-runtime span {
  display: block;
}

.sidebar-runtime strong {
  color: #f3f6f9;
  font-size: 16px;
}

.sidebar-runtime div > span {
  margin-top: 1px;
  font-size: 16px;
}

.workspace {
  gap: 0;
  padding: 0;
}

.topbar {
  min-height: 76px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.eyebrow {
  margin-bottom: 4px;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: 22px;
}

.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-button,
.ghost-button,
.danger-button,
.icon-button,
.table-action,
.secret-toggle {
  border-radius: 6px;
}

.summary-strip {
  gap: 0;
  border-width: 0 0 1px;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

.summary-item {
  position: relative;
  min-height: 70px;
  padding: 13px 16px 12px 24px;
  border-right: 1px solid var(--border);
}

.summary-item:last-child {
  border-right: 0;
}

.summary-item::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 12px;
  width: 3px;
  border-radius: 3px;
  background: var(--primary);
  content: "";
}

.summary-item:nth-child(1)::before,
.summary-item:nth-child(2)::before {
  background: var(--success);
}

.summary-item span,
.summary-item time {
  font-size: 16px;
  font-weight: 650;
}

.summary-item strong {
  margin-top: 5px;
  font-size: 17px;
}

.rail-track {
  margin: 0 28px;
  padding-top: 6px;
}

.tab-panel {
  margin: 18px 28px 28px;
}

.panel {
  border-radius: 6px;
  box-shadow: none;
}

.alert-subnav-shell,
.backup-subnav,
.module-subnav {
  background: var(--surface);
}

.alert-subtab,
.backup-subtab,
.module-subtab {
  min-height: 42px;
  border-bottom-width: 2px;
  font-size: 16px;
}

.backup-storage-bar {
  grid-template-columns: 34px minmax(128px, auto) minmax(0, 1fr) 32px;
  gap: 10px;
  margin: 12px 0;
  padding: 7px 8px 7px 10px;
  background: var(--surface);
}

.backup-storage-path-control {
  min-height: 32px;
}

.backup-storage-open {
  display: inline-grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.backup-storage-open:hover {
  border-color: var(--border-strong);
  background: var(--surface-soft);
  color: var(--primary);
}

.backup-storage-open svg {
  width: 15px;
  height: 15px;
}

.backup-summary {
  gap: 0;
  margin: 0 0 12px;
  border-radius: 6px;
  background: var(--surface);
}

.backup-summary-item {
  min-height: 64px;
  padding: 11px 14px 10px 22px;
  border-right: 1px solid var(--border);
}

.backup-summary-item:last-child {
  border-right: 0;
}

.backup-summary-item::before {
  top: 12px;
  bottom: 12px;
  left: 10px;
  height: auto;
  border-radius: 3px;
}

.backup-summary-item:nth-child(3)::before {
  background: var(--success);
}

.backup-summary-item span {
  font-size: 16px;
}

.backup-summary-item strong {
  font-size: 17px;
}

.backup-batch-bar {
  grid-template-columns: minmax(460px, 1fr) auto auto;
  gap: 10px;
  min-height: 56px;
  margin-bottom: 0;
  padding: 10px 11px;
  border-radius: 6px 6px 0 0;
  background: var(--surface);
}

.backup-filter-tools {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) repeat(3, minmax(112px, 0.72fr));
  gap: 8px;
  min-width: 0;
}

.backup-filter-search {
  display: flex;
  min-width: 0;
  height: 32px;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted-2);
}

.backup-filter-search:focus-within {
  border-color: #93b4f7;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.backup-filter-search svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.backup-filter-search input {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.backup-filter-tools select {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 26px 0 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
}

.backup-selection-meta {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 130px;
}

.backup-select-all {
  gap: 6px;
  font-size: 16px;
}

.backup-selection-count,
.backup-batch-status {
  font-size: 16px;
}

.backup-batch-status {
  max-width: 190px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.backup-list-head {
  min-height: 36px;
  border-radius: 0;
  border-top: 0;
  font-size: 16px;
}

.backup-config-grid {
  grid-template-columns: 28px minmax(190px, 1.1fr) minmax(230px, 1.35fr) minmax(155px, 0.78fr) minmax(125px, 0.62fr) minmax(184px, auto);
}

.backup-config-list {
  border-radius: 0 0 6px 6px;
}

.backup-server-group {
  min-width: 0;
}

.backup-server-group-toggle {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  background: #f3f6fa;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  text-align: left;
}

.backup-server-group-toggle:hover {
  background: #edf2f8;
}

.backup-server-group-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.backup-server-group-name svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.backup-server-group-name strong {
  color: var(--text);
  font-size: 16px;
}

.backup-server-group-name small {
  overflow: hidden;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-list-row {
  min-height: 62px;
  padding: 8px 12px;
  border-bottom-color: #e8ebef;
}

.backup-row-icon,
.backup-kind-marker {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

.backup-row-icon svg,
.backup-kind-marker svg {
  width: 15px;
  height: 15px;
}

.backup-list-stack {
  gap: 3px;
}

.backup-list-stack strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-list-stack span,
.backup-list-status small {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-list-actions {
  flex-wrap: nowrap;
  gap: 4px;
}

.backup-config-list .backup-list-actions .table-action {
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.backup-config-list .backup-list-actions .table-action:hover {
  border-color: var(--border);
  background: var(--surface);
}

.backup-config-list .backup-list-actions .table-action span {
  display: none;
}

.backup-primary-action {
  min-width: 84px;
  height: 28px;
  padding: 0 8px;
  border-color: #cfe0ff;
  background: #eaf1ff;
  color: var(--primary);
  font-size: 16px;
  white-space: nowrap;
}

.backup-primary-action:hover {
  border-color: #a9c4fb;
  background: #dfeaff;
  color: var(--primary-dark);
}

.backup-server-group:last-child .backup-list-row:last-child {
  border-bottom: 0;
}

@media (max-width: 1280px) {
  .topbar,
  .tab-panel {
    margin-right: 0;
    margin-left: 0;
  }

  .topbar {
    padding-right: 20px;
    padding-left: 20px;
  }

  .tab-panel {
    margin: 16px 20px 24px;
  }

  .rail-track {
    margin-right: 20px;
    margin-left: 20px;
  }

  .backup-batch-bar {
    grid-template-columns: minmax(420px, 1fr) auto;
  }

  .backup-selection-meta {
    display: none;
  }
}

@media (max-width: 1180px) {
  .backup-batch-bar {
    grid-template-columns: 1fr auto;
  }

  .backup-filter-tools {
    grid-template-columns: minmax(170px, 1fr) repeat(3, minmax(105px, 0.7fr));
  }

  .backup-list-head {
    display: none;
  }

  .backup-config-list {
    border-top: 1px solid var(--border);
  }

  .backup-server-group .backup-config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
  }

  .brand-block {
    padding-bottom: 14px;
  }

  .main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
    margin-top: 12px;
  }

  .nav-section-label,
  .sidebar-runtime {
    display: none;
  }

  .workspace {
    padding: 0;
  }

  .topbar {
    align-items: stretch;
    min-height: auto;
    padding: 14px 16px;
  }

  .topbar-actions {
    width: 100%;
  }

  .tab-panel {
    margin: 14px 16px 22px;
  }

  .rail-track {
    margin-right: 16px;
    margin-left: 16px;
  }

  .backup-batch-bar {
    grid-template-columns: 1fr;
  }

  .backup-filter-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .backup-filter-search {
    grid-column: 1 / -1;
  }

  .backup-selection-meta {
    display: grid;
  }

  .backup-batch-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .backup-batch-actions .ghost-button,
  .backup-batch-actions .primary-button {
    width: 100%;
  }

  .backup-server-group .backup-config-grid {
    grid-template-columns: 1fr;
  }

  .backup-list-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-actions .export-menu,
  .topbar-actions .icon-button,
  .topbar-actions .ghost-button,
  .topbar-actions .primary-button {
    width: 100%;
  }

  .backup-storage-bar {
    grid-template-columns: 34px minmax(0, 1fr) 32px;
  }

  .backup-storage-path-control {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .backup-storage-open {
    grid-column: 3;
    grid-row: 1;
  }

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

  .backup-filter-search {
    grid-column: 1;
  }

  .backup-batch-status {
    max-width: none;
  }

  .gsc-binding-toolbar,
  .gsc-binding-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .gsc-binding-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gsc-binding-actions .ghost-button,
  .gsc-binding-actions .primary-button {
    width: 100%;
  }
}

/* Keep the Signal Desk shell last in the cascade. */
.app-shell {
  grid-template-columns: 224px minmax(0, 1fr);
}

.sidebar {
  z-index: 20;
  padding: 0;
  border-right: 1px solid var(--border);
  background: var(--sidebar);
  color: var(--text);
}

.brand-block {
  min-height: 64px;
  gap: 10px;
  padding: 0 17px;
  border-bottom: 1px solid var(--border);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #17232d;
  color: #fff;
  font-family: var(--mono);
  font-size: 16px;
}

.brand-block strong {
  color: var(--text);
  font-size: 16px;
}

.brand-block span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
}

.main-nav {
  padding: 14px 10px;
}

.nav-section-label {
  margin-top: 14px;
  padding: 0 10px 6px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 16px;
}

.nav-item {
  position: relative;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 5px;
  color: #51606e;
}

.nav-item:hover {
  background: #f0f3f6;
  color: var(--text);
}

.nav-item.active {
  background: #eaf0ff;
  box-shadow: none;
  color: #194fcf;
}

.nav-item.active::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -10px;
  display: block;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--primary);
  content: "";
}

.nav-item svg,
.nav-item.active svg {
  color: currentColor;
}

.sidebar-runtime {
  margin: auto 14px 14px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
}

.sidebar-runtime strong {
  color: var(--text);
}

.workspace {
  min-width: 0;
  padding: 0;
  background: var(--bg);
}

.topbar {
  position: sticky;
  z-index: 15;
  top: 0;
  min-height: 64px;
  padding: 10px 24px 10px 26px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
}

.topbar h1 {
  font-size: 20px;
}

.summary-strip {
  margin: 16px 26px 0;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.summary-item {
  min-height: 64px;
  padding: 11px 14px;
}

.summary-item::before {
  display: none;
}

.rail-track {
  margin: 0 26px;
}

.tab-panel {
  margin: 16px 26px 28px;
}

.panel {
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(23, 34, 45, 0.03);
}

.panel--site-list,
.module-panel {
  overflow: hidden;
  padding: 0;
}

.module-subnav {
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}

.module-view-panel > .table-wrap,
.module-view-panel > .event-log-list {
  margin: 0 12px 12px;
}

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

  .sidebar {
    position: static;
    height: auto;
    padding: 0;
  }

  .brand-block {
    min-height: 58px;
    padding: 0 14px;
  }

  .main-nav {
    display: flex;
    grid-template-columns: none;
    gap: 4px;
    overflow-x: auto;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
  }

  .nav-group {
    display: contents;
  }

  .nav-item {
    width: auto;
    flex: 0 0 auto;
    padding: 0 10px;
  }

  .nav-item.active::before,
  .nav-section-label,
  .sidebar-runtime {
    display: none;
  }

  .topbar {
    min-height: 64px;
    padding: 10px 14px;
  }

  .summary-strip,
  .tab-panel,
  .rail-track {
    margin-right: 14px;
    margin-left: 14px;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: center;
  }

  .topbar-actions {
    display: flex;
    width: auto;
  }

  .topbar-actions .export-menu,
  .topbar-actions #logoutButton {
    display: none;
  }
}

/* Precision pass: crisp boundaries and explicit responsive containment. */
:root {
  --border: #cfd8e2;
  --border-strong: #b8c5d1;
}

.topbar,
.sidebar,
.brand-block,
.main-nav,
.summary-strip,
.dashboard-signal,
.dashboard-panel,
.panel,
.table-wrap,
.module-subnav,
.module-toolbar,
.site-control-bar,
.dashboard-panel-heading,
.platform-identity,
.platform-metrics,
.platform-facts > div,
.estate-row,
.service-row,
.incident-row,
.dashboard-activity li {
  border-color: var(--border);
}

.dashboard-panel,
.dashboard-signal,
.panel,
.table-wrap {
  box-shadow: none;
}

.primary-button,
.ghost-button,
.danger-button,
.icon-button,
.table-action,
.site-sort-control,
.backup-storage-bar,
.backup-batch-bar,
.backup-list-head,
.backup-config-list {
  border-color: var(--border);
}

th {
  border-bottom: 1px solid var(--border-strong);
  background: #f4f7fa;
  color: #536474;
}

td {
  border-top-color: #d8e0e8;
}

.module-subnav {
  width: 100%;
  margin: 0;
  overflow-x: auto;
}

.module-view-panel {
  min-width: 0;
}

.site-control-bar {
  margin: 0;
  padding: 8px 12px;
  border-top: 0;
  border-bottom: 1px solid var(--border);
}

.module-toolbar {
  margin: 0;
  padding-right: 12px;
  padding-left: 12px;
  border-bottom: 1px solid var(--border);
}

.module-view-panel > .table-wrap {
  margin-top: 12px;
}

.site-view-switch {
  border: 1px solid #d7dfe7;
}

.site-view-switch button.active {
  box-shadow: 0 1px 1px rgba(21, 33, 45, 0.08);
}

.metric-track {
  outline: 1px solid #e0e6ec;
  outline-offset: -1px;
}

@media (max-width: 620px) {
  body {
    overflow-x: auto;
  }

  .app-shell {
    width: 100%;
    max-width: 100%;
    align-content: start;
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace {
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - 125px);
    min-width: 0;
  }

  .summary-strip,
  .tab-panel,
  .rail-track {
    max-width: calc(100% - 28px);
  }

  .tab-panel,
  .module-view-panel,
  .alert-view-panel,
  .backup-view-panel {
    min-width: 0;
  }

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

  .alert-summary,
  .alert-report-grid,
  .backup-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-item {
    min-height: 68px;
    padding: 10px 12px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .summary-item:nth-child(even) {
    border-right: 0;
  }

  .summary-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .summary-item strong {
    font-size: 16px;
  }

  .summary-item time {
    margin-top: 3px;
    overflow-wrap: anywhere;
  }

  .site-control-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .site-status-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
  }

  .site-status-tab {
    width: 100%;
    min-width: 0;
    padding: 0 4px;
  }

  .site-display-tools {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 34px 34px;
    gap: 6px;
  }

  .site-view-switch {
    display: grid;
    width: 100%;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-view-switch button {
    width: 100%;
    min-width: 0;
  }

  .site-sort-control {
    width: 100%;
    min-width: 0;
  }

  .site-tools-divider {
    display: none;
  }

  #websiteStatusPanel .table-wrap {
    overflow-x: hidden;
  }

  #websiteStatusPanel table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  #websiteStatusPanel th:nth-child(n + 4):nth-child(-n + 9),
  #websiteStatusPanel td:nth-child(n + 4):nth-child(-n + 9) {
    display: none;
  }

  #websiteStatusPanel th:nth-child(1),
  #websiteStatusPanel td:nth-child(1) {
    width: 42%;
  }

  #websiteStatusPanel th:nth-child(2),
  #websiteStatusPanel td:nth-child(2) {
    width: 17%;
  }

  #websiteStatusPanel th:nth-child(3),
  #websiteStatusPanel td:nth-child(3) {
    width: 31%;
  }

  #websiteStatusPanel th:nth-child(10),
  #websiteStatusPanel td:nth-child(10) {
    width: 10%;
  }

  #websiteStatusPanel th,
  #websiteStatusPanel td {
    height: auto;
    padding: 9px 7px;
  }

  #websiteStatusPanel .site-group-row td {
    width: 100%;
    padding: 0;
  }

  #websiteStatusPanel .site-group-toggle {
    min-height: 48px;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    padding: 7px 9px;
  }

  #websiteStatusPanel .site-group-meta {
    gap: 5px;
  }

  #websiteStatusPanel .site-group-meta > b {
    display: none;
  }

  #websiteStatusPanel .site-title strong,
  #websiteStatusPanel .site-title span {
    overflow: hidden;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
  }

  #websiteStatusPanel .site-title strong {
    font-size: 16px;
    white-space: nowrap;
  }

  #websiteStatusPanel .site-title span {
    display: -webkit-box;
    font-size: 16px;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #websiteStatusPanel td:nth-child(2) .status-pill {
    min-width: 0;
    padding: 0 5px;
    font-size: 16px;
  }

  #websiteStatusPanel td:last-child .table-action:not(:first-child) {
    display: none;
  }

  #websiteStatusPanel td:last-child .table-action {
    width: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
  }

  #dataMetricsPanel .table-wrap,
  #serverInventoryPanel .table-wrap,
  #gscAccountsPanel .table-wrap,
  #adminAccountsPanel .table-wrap {
    overflow-x: hidden;
  }

  #dataMetricsPanel table,
  #serverInventoryPanel table,
  #gscAccountsPanel table,
  #adminAccountsPanel table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  #dataMetricsPanel th:nth-child(n + 3):nth-child(-n + 9),
  #dataMetricsPanel td:nth-child(n + 3):nth-child(-n + 9),
  #serverInventoryPanel th:nth-child(n + 3):nth-child(-n + 6),
  #serverInventoryPanel td:nth-child(n + 3):nth-child(-n + 6),
  #gscAccountsPanel th:nth-child(3),
  #gscAccountsPanel td:nth-child(3),
  #gscAccountsPanel th:nth-child(4),
  #gscAccountsPanel td:nth-child(4),
  #adminAccountsPanel th:nth-child(n + 3):nth-child(-n + 6),
  #adminAccountsPanel td:nth-child(n + 3):nth-child(-n + 6) {
    display: none;
  }

  #dataMetricsPanel th:nth-child(1),
  #dataMetricsPanel td:nth-child(1) {
    width: 44%;
  }

  #dataMetricsPanel th:nth-child(2),
  #dataMetricsPanel td:nth-child(2) {
    width: 44%;
  }

  #dataMetricsPanel th:nth-child(10),
  #dataMetricsPanel td:nth-child(10) {
    width: 12%;
  }

  #serverInventoryPanel th:nth-child(1),
  #serverInventoryPanel td:nth-child(1) {
    width: 34%;
  }

  #serverInventoryPanel th:nth-child(2),
  #serverInventoryPanel td:nth-child(2) {
    width: 36%;
  }

  #serverInventoryPanel th:nth-child(7),
  #serverInventoryPanel td:nth-child(7) {
    width: 30%;
  }

  #gscAccountsPanel th:nth-child(1),
  #gscAccountsPanel td:nth-child(1) {
    width: 35%;
  }

  #gscAccountsPanel th:nth-child(2),
  #gscAccountsPanel td:nth-child(2) {
    width: 35%;
  }

  #gscAccountsPanel th:nth-child(5),
  #gscAccountsPanel td:nth-child(5) {
    width: 30%;
  }

  #adminAccountsPanel th:nth-child(1),
  #adminAccountsPanel td:nth-child(1) {
    width: 42%;
  }

  #adminAccountsPanel th:nth-child(2),
  #adminAccountsPanel td:nth-child(2) {
    width: 23%;
  }

  #adminAccountsPanel th:nth-child(7),
  #adminAccountsPanel td:nth-child(7) {
    width: 35%;
  }

  #dataMetricsPanel th,
  #dataMetricsPanel td,
  #serverInventoryPanel th,
  #serverInventoryPanel td,
  #gscAccountsPanel th,
  #gscAccountsPanel td,
  #adminAccountsPanel th,
  #adminAccountsPanel td {
    height: auto;
    padding: 8px 7px;
  }

  #dataMetricsPanel .site-title strong,
  #dataMetricsPanel .site-title span,
  #serverInventoryPanel .site-title strong,
  #serverInventoryPanel .site-title span,
  #gscAccountsPanel td:nth-child(2),
  #adminAccountsPanel .site-title strong,
  #adminAccountsPanel .site-title span {
    overflow: hidden;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
  }

  #dataMetricsPanel .site-title strong,
  #serverInventoryPanel .site-title strong,
  #adminAccountsPanel .site-title strong {
    white-space: nowrap;
  }

  #serverInventoryPanel td:nth-child(2) .site-title span {
    display: none;
  }

  #gscAccountsPanel td:nth-child(2) {
    font-size: 16px;
    line-height: 1.35;
  }

  #serverInventoryPanel .actions-cell,
  #gscAccountsPanel .actions-cell,
  #adminAccountsPanel .actions-cell {
    flex-wrap: wrap;
    gap: 3px;
  }

  #dataMetricsPanel .table-action,
  #serverInventoryPanel .table-action,
  #gscAccountsPanel .table-action,
  #adminAccountsPanel .table-action {
    width: 27px;
    min-width: 27px;
    min-height: 27px;
    padding: 0;
  }

  #dataRulesPanel .table-wrap,
  #serverDiscoveryPanel .table-wrap,
  #gscDiagnosticsPanel .table-wrap,
  #gscBindingsPanel .table-wrap {
    overflow-x: hidden;
  }

  #dataRulesPanel table,
  #serverDiscoveryPanel table,
  #gscDiagnosticsPanel table,
  #gscBindingsPanel table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  #dataRulesPanel th:nth-child(2),
  #dataRulesPanel td:nth-child(2),
  #dataRulesPanel th:nth-child(4),
  #dataRulesPanel td:nth-child(4),
  #serverDiscoveryPanel th:nth-child(4),
  #serverDiscoveryPanel td:nth-child(4),
  #gscDiagnosticsPanel th:nth-child(3),
  #gscDiagnosticsPanel td:nth-child(3),
  #gscBindingsPanel th:nth-child(3),
  #gscBindingsPanel td:nth-child(3) {
    display: none;
  }

  #dataRulesPanel th:nth-child(1),
  #dataRulesPanel td:nth-child(1) {
    width: 48%;
  }

  #dataRulesPanel th:nth-child(3),
  #dataRulesPanel td:nth-child(3) {
    width: 34%;
  }

  #dataRulesPanel th:nth-child(5),
  #dataRulesPanel td:nth-child(5) {
    width: 18%;
  }

  #serverDiscoveryPanel th:nth-child(1),
  #serverDiscoveryPanel td:nth-child(1) {
    width: 30%;
  }

  #serverDiscoveryPanel th:nth-child(2),
  #serverDiscoveryPanel td:nth-child(2) {
    width: 27%;
  }

  #serverDiscoveryPanel th:nth-child(3),
  #serverDiscoveryPanel td:nth-child(3) {
    width: 23%;
  }

  #serverDiscoveryPanel th:nth-child(5),
  #serverDiscoveryPanel td:nth-child(5) {
    width: 20%;
  }

  #gscDiagnosticsPanel th:nth-child(1),
  #gscDiagnosticsPanel td:nth-child(1) {
    width: 28%;
  }

  #gscDiagnosticsPanel th:nth-child(2),
  #gscDiagnosticsPanel td:nth-child(2) {
    width: 23%;
  }

  #gscDiagnosticsPanel th:nth-child(4),
  #gscDiagnosticsPanel td:nth-child(4) {
    width: 34%;
  }

  #gscDiagnosticsPanel th:nth-child(5),
  #gscDiagnosticsPanel td:nth-child(5) {
    width: 15%;
  }

  #gscBindingsPanel th:nth-child(1),
  #gscBindingsPanel td:nth-child(1) {
    width: 38%;
  }

  #gscBindingsPanel th:nth-child(2),
  #gscBindingsPanel td:nth-child(2) {
    width: 40%;
  }

  #gscBindingsPanel th:nth-child(4),
  #gscBindingsPanel td:nth-child(4) {
    width: 22%;
  }

  #dataRulesPanel th,
  #dataRulesPanel td,
  #serverDiscoveryPanel th,
  #serverDiscoveryPanel td,
  #gscDiagnosticsPanel th,
  #gscDiagnosticsPanel td,
  #gscBindingsPanel th,
  #gscBindingsPanel td {
    height: auto;
    padding: 8px 6px;
  }

  #dataRulesPanel .site-title strong,
  #dataRulesPanel .site-title span,
  #serverDiscoveryPanel .site-title strong,
  #serverDiscoveryPanel .site-title span,
  #gscDiagnosticsPanel .site-title strong,
  #gscDiagnosticsPanel .site-title span,
  #gscDiagnosticsPanel .diagnostic-message strong,
  #gscDiagnosticsPanel .diagnostic-message span,
  #gscBindingsPanel .site-title strong,
  #gscBindingsPanel .site-title span {
    overflow: hidden;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
  }

  #dataRulesPanel .table-action,
  #serverDiscoveryPanel .table-action,
  #gscDiagnosticsPanel .table-action {
    width: 27px;
    min-width: 27px;
    min-height: 27px;
    padding: 0;
  }

  #gscBindingsPanel select {
    width: 100%;
    min-width: 0;
  }

  #serverDiscoveryPanel td:nth-child(3) .site-title span {
    display: none;
  }

  #alertRulesPanel,
  #alertRulesPanel .alert-block--rules,
  #alertRulesPanel .table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #alertRulesPanel .table-wrap {
    overflow: hidden;
  }

  #alertRulesPanel .alert-table,
  #alertRulesPanel .alert-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  #alertRulesPanel .alert-table thead {
    display: none;
  }

  #alertRulesPanel .alert-table tr {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    padding: 11px 10px;
    border-bottom: 1px solid var(--border);
  }

  #alertRulesPanel .alert-table tr:last-child {
    border-bottom: 0;
  }

  #alertRulesPanel .alert-table td,
  #alertRulesPanel .alert-table td:nth-child(n) {
    display: grid;
    width: auto;
    height: auto;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  #alertRulesPanel .alert-table td:nth-child(1),
  #alertRulesPanel .alert-table td:nth-child(2),
  #alertRulesPanel .alert-table td:nth-child(8) {
    grid-column: 1 / -1;
  }

  #alertRulesPanel .alert-table td::before {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 750;
  }

  #alertRulesPanel .alert-table td:nth-child(1)::before { content: "规则"; }
  #alertRulesPanel .alert-table td:nth-child(2)::before { content: "范围"; }
  #alertRulesPanel .alert-table td:nth-child(3)::before { content: "级别"; }
  #alertRulesPanel .alert-table td:nth-child(4)::before { content: "阈值"; }
  #alertRulesPanel .alert-table td:nth-child(5)::before { content: "连续触发（次）"; }
  #alertRulesPanel .alert-table td:nth-child(6)::before { content: "恢复确认（次）"; }
  #alertRulesPanel .alert-table td:nth-child(7)::before { content: "冷却（分钟）"; }
  #alertRulesPanel .alert-table td:nth-child(8)::before { content: "维护窗口"; }
  #alertRulesPanel .alert-table td:nth-child(9)::before { content: "升级（分钟）"; }
  #alertRulesPanel .alert-table td:nth-child(10)::before { content: "启用"; }
  #alertRulesPanel .alert-table td:nth-child(11)::before { content: "操作"; }

  #alertRulesPanel .rule-scope-grid,
  #alertRulesPanel .compact-input,
  #alertRulesPanel .rule-value-control {
    width: 100%;
    min-width: 0;
  }

  #alertRulesPanel .alert-table td:nth-child(10),
  #alertRulesPanel .alert-table td:nth-child(11) {
    align-content: start;
    justify-items: start;
    text-align: left;
  }

  #alertRulesPanel .alert-table td:nth-child(n + 2) {
    display: none;
  }

  #alertRulesPanel .alert-table tr.is-expanded td:nth-child(n + 2) {
    display: grid;
  }

  #alertRulesPanel .alert-rule-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  #alertRulesPanel .alert-rule-mobile-toggle {
    display: inline-grid;
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
  }

  #alertRulesPanel .alert-rule-mobile-toggle svg {
    width: 15px;
    height: 15px;
    transition: transform 150ms ease;
  }

  #alertRulesPanel .alert-table tr.is-expanded .alert-rule-mobile-toggle svg {
    transform: rotate(180deg);
  }

  .trend-panel .dashboard-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .trend-legend {
    width: 100%;
    justify-content: flex-start;
  }

  .estate-list {
    overflow: visible;
  }

  .estate-row {
    min-width: 0;
    min-height: 64px;
    grid-template-columns: 7px minmax(0, 1fr) repeat(3, 40px);
    grid-template-rows: auto auto;
    gap: 4px 8px;
    padding: 8px 10px;
  }

  .estate-status {
    grid-column: 1;
    grid-row: 1;
  }

  .estate-identity {
    grid-column: 2;
    grid-row: 1;
  }

  .estate-site-state {
    display: none;
  }

  .estate-resource:nth-of-type(2) {
    grid-column: 3;
    grid-row: 1;
  }

  .estate-resource:nth-of-type(3) {
    grid-column: 4;
    grid-row: 1;
  }

  .estate-resource:nth-of-type(4) {
    grid-column: 5;
    grid-row: 1;
  }

  .estate-row > .status-pill {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
}

/* Readability and motion baseline */
:root {
  --muted-2: #667483;
  --motion-fast: 160ms;
  --motion-standard: 220ms;
  --motion-emphasized: 280ms;
  --motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
button,
input,
select,
textarea,
small,
caption {
  letter-spacing: 0;
}

small,
caption,
button,
input,
select,
textarea {
  font-size: 16px;
}

input::placeholder,
textarea::placeholder {
  color: #667483;
  opacity: 1;
}

.primary-button,
.ghost-button,
.danger-button {
  min-height: 42px;
  padding-inline: 14px;
}

.icon-button,
.secret-toggle {
  min-width: 42px;
  min-height: 42px;
  height: 42px;
}

.table-action {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  height: 38px;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select {
  min-height: 42px;
}

textarea {
  min-height: 96px;
}

.nav-item,
.module-subnav button,
.alert-subnav button,
.backup-subnav button {
  min-height: 44px;
}

th,
td,
.backup-config-row,
.backup-file-row,
.backup-activity-row,
.estate-row,
.activity-row {
  line-height: 1.45;
}

.nav-item,
.primary-button,
.ghost-button,
.danger-button,
.icon-button,
.table-action,
.secret-toggle,
.module-subnav button,
.alert-subnav button,
.backup-subnav button,
.site-status-tabs button,
.data-detail-tabs button,
tbody tr,
.backup-config-row,
.backup-file-row,
.backup-activity-row,
.estate-row,
.activity-row {
  transition:
    color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-standard) ease,
    opacity var(--motion-fast) ease,
    transform var(--motion-fast) ease;
}

.tab-panel.active,
.module-view-panel.active:not([hidden]),
.alert-view-panel.active:not([hidden]),
.backup-view-panel.active:not([hidden]) {
  animation: view-enter var(--motion-emphasized) var(--motion-ease) both;
}

dialog[open],
.modal:not(.hidden),
.dialog:not(.hidden) {
  animation: dialog-enter var(--motion-standard) var(--motion-ease) both;
}

dialog[open]::backdrop {
  animation: backdrop-enter var(--motion-standard) ease both;
}

.export-menu__panel:not(.hidden) {
  transform-origin: top right;
  animation: menu-enter var(--motion-fast) var(--motion-ease) both;
}

.primary-button:active:not(:disabled),
.ghost-button:active:not(:disabled),
.danger-button:active:not(:disabled),
.icon-button:active:not(:disabled),
.table-action:active:not(:disabled),
.secret-toggle:active:not(:disabled),
.module-subnav button:active,
.alert-subnav button:active,
.backup-subnav button:active {
  transform: translateY(1px);
}

@media (hover: hover) {
  tbody tr:hover,
  .backup-config-row:hover,
  .backup-file-row:hover,
  .backup-activity-row:hover,
  .estate-row:hover,
  .activity-row:hover {
    background-color: #f7f9fc;
    box-shadow: inset 3px 0 0 rgba(37, 99, 235, 0.5);
  }
}

@keyframes view-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes backdrop-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes menu-enter {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .primary-button,
  .ghost-button,
  .danger-button,
  .icon-button,
  .secret-toggle,
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select {
    min-height: 44px;
  }

  .table-action {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tab-panel.active,
  .module-view-panel.active:not([hidden]),
  .alert-view-panel.active:not([hidden]),
  .backup-view-panel.active:not([hidden]),
  dialog[open],
  .modal:not(.hidden),
  .dialog:not(.hidden),
  .export-menu__panel:not(.hidden) {
    animation: none;
  }
}

/* Responsive clarity fixes verified at tablet and mobile widths. */
.login-page {
  background:
    linear-gradient(90deg, #18212b 0 50%, transparent 50%),
    var(--bg);
}

.login-brief {
  background: #18212b;
  color: #e2e8f0;
}

.login-brief__content,
.login-signal-grid,
.login-audit-strip {
  animation: view-enter 360ms var(--motion-ease) both;
}

.login-signal-grid {
  animation-delay: 60ms;
}

.login-audit-strip {
  animation-delay: 100ms;
}

.login-panel {
  animation: dialog-enter 320ms var(--motion-ease) 80ms both;
}

@media (max-width: 860px) {
  .login-page {
    background: var(--bg);
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
  }

  .main-nav .nav-item {
    width: 100%;
    min-width: 0;
    justify-content: center;
    gap: 3px;
    padding-right: 2px;
    padding-left: 2px;
  }

  .main-nav .nav-item span {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .main-nav .nav-item svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
  }

  .backup-schedule-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .backup-schedule-filters,
  .backup-schedule-toolbar .primary-button {
    width: 100%;
  }
}

@media (max-width: 700px) {
  body {
    overflow-x: hidden;
  }

  .main-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-brief__content,
  .login-signal-grid,
  .login-audit-strip,
  .login-panel {
    animation: none;
  }
}

/* Type hierarchy: body and controls stay at 16px; auxiliary copy may step down. */
:root {
  --font-body: 16px;
  --font-meta: 13px;
  --font-micro: 12px;
}

body,
button,
input,
select,
textarea,
.nav-item,
th,
td {
  font-size: var(--font-body);
}

small,
caption,
.brand-block span,
.login-brand span,
.site-title span,
.module-context,
.module-result-meta,
.bar-caption,
.field-status,
.detail-meta,
.preflight-row small,
.metric-tile small,
.dashboard-health-copy small,
.dashboard-kpi small,
.platform-metric small,
.incident-row small,
.incident-row time,
.rules-policy-head p,
.rule-editor-head p,
.rule-switch-row small,
.rule-number-row small,
.rules-footer span,
.site-discovery-domain span,
.site-discovery-meta span,
.site-discovery-path span,
.backup-server-group-name small,
.backup-list-stack span,
.backup-list-status small,
.backup-schedule-site-copy small,
.backup-selection-meta,
.backup-batch-status,
.url-link,
.email-dialog-note,
.rule-help-strip {
  font-size: var(--font-meta);
  line-height: 1.5;
}

.eyebrow,
.nav-section-label,
.health-ring span,
.alert-column-label small {
  font-size: var(--font-micro);
  line-height: 1.4;
}

.health-ring span {
  white-space: nowrap;
}

.status-pill {
  min-height: 22px;
  padding-inline: 7px;
  font-size: var(--font-meta);
  line-height: 1.35;
}

#backups .site-title span,
#backups .backup-list-stack span,
#backups .backup-list-status small,
#backups .backup-schedule-site-copy small,
#backups .backup-selection-meta,
#backups .backup-batch-status {
  font-size: var(--font-meta);
  line-height: 1.5;
}

#backups .status-pill {
  font-size: var(--font-meta);
  line-height: 1.35;
}

@media (max-width: 620px) {
  #websiteStatusPanel .site-title span,
  #dataMetricsPanel .site-title span,
  #serverInventoryPanel .site-title span,
  #gscAccountsPanel .site-title span,
  #adminAccountsPanel .site-title span,
  #dataRulesPanel .site-title span,
  #serverDiscoveryPanel .site-title span,
  #gscDiagnosticsPanel .site-title span,
  #gscBindingsPanel .site-title span,
  #gscDiagnosticsPanel .diagnostic-message span {
    font-size: var(--font-meta);
  }
}

/* Final cascade guard: legacy console passes above must not replace Night Grid. */
:root {
  color-scheme: dark;
  --bg: #070816;
  --sidebar: #090b1c;
  --surface: #0f1429;
  --surface-soft: #141a33;
  --surface-raised: #181f3d;
  --border: #2c3763;
  --border-strong: #5367a6;
  --text: #f5f7ff;
  --muted: #bec8e3;
  --muted-2: #91a0c4;
  --primary: #8b6cff;
  --primary-dark: #7052ed;
  --star-blue: #4ba3ff;
}

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

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  width: auto;
  height: 100vh;
  padding: 0;
  overflow: hidden;
  flex-direction: column;
  border-right-color: rgba(83, 103, 166, 0.55);
  background: rgba(9, 11, 28, 0.98);
  color: var(--text);
}

.brand-block {
  min-height: 72px;
  padding: 0 20px;
  border-bottom-color: rgba(83, 103, 166, 0.38);
  background: rgba(15, 20, 41, 0.84);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-color: rgba(139, 108, 255, 0.82);
  background: #14182f;
  box-shadow: 0 0 22px rgba(139, 108, 255, 0.24), inset 0 0 12px rgba(75, 163, 255, 0.13);
  color: #ffffff;
}

.brand-block strong {
  color: #ffffff;
}

.brand-block span {
  color: #aebce0;
}

.main-nav {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 14px 12px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
}

.nav-section-label {
  display: block;
  margin: 13px 0 6px;
  padding: 0 10px;
  color: #8d9bc2;
}

.nav-primary {
  display: grid;
  min-height: 44px;
  padding: 0 10px;
  align-items: center;
  grid-template-columns: 20px minmax(0, 1fr) 18px;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #c8d1e8;
  font-size: 16px;
  text-align: left;
}

.nav-primary:hover,
.nav-cluster:has(.nav-item.active) > .nav-primary {
  background: rgba(75, 163, 255, 0.08);
  color: #ffffff;
}

.nav-primary > svg:first-child {
  color: #8ea1d0;
}

.nav-cluster:has(.nav-item.active) > .nav-primary > svg:first-child {
  color: var(--star-blue);
}

.nav-children {
  display: grid;
  max-height: 0;
  gap: 2px;
  padding: 0;
  overflow: hidden;
  opacity: 0;
}

.nav-cluster.is-open .nav-children {
  max-height: 360px;
  padding: 4px 0 8px;
  opacity: 1;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 44px;
  padding: 0 10px 0 44px;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #bec8e3;
  font-size: 16px;
  text-align: left;
}

.nav-item::before {
  position: absolute;
  top: auto;
  bottom: auto;
  left: 23px;
  display: block;
  width: 5px;
  height: 5px;
  border: 1px solid #7182ad;
  border-radius: 50%;
  background: var(--sidebar);
  content: "";
}

.nav-item:hover {
  background: rgba(139, 108, 255, 0.1);
  color: #ffffff;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(139, 108, 255, 0.3), rgba(75, 163, 255, 0.12));
  box-shadow: inset 2px 0 0 var(--primary), inset 0 0 0 1px rgba(139, 108, 255, 0.18);
  color: #ffffff;
}

.nav-item.active::before {
  top: auto;
  bottom: auto;
  left: 21px;
  width: 8px;
  height: 8px;
  border: 2px solid #c7beff;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(139, 108, 255, 0.88);
}

.nav-item--root {
  padding-left: 12px;
}

.nav-item--root::before {
  display: none;
}

.sidebar-runtime {
  display: grid;
  margin: auto 14px 14px;
  padding: 12px;
  grid-template-columns: 9px minmax(0, 1fr);
  border-color: rgba(83, 103, 166, 0.5);
  background: #10152b;
  color: var(--muted);
}

.workspace {
  min-width: 0;
  background: transparent;
}

.topbar {
  min-height: 72px;
  margin: 0;
  padding: 10px 24px;
  border-bottom-color: rgba(83, 103, 166, 0.48);
  background: rgba(7, 8, 22, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px);
}

.topbar h1 {
  color: #ffffff;
  font-size: 21px;
}

.panel,
.dashboard-signal,
.dashboard-panel,
.summary-strip,
.table-wrap,
.backup-schedule-list,
.backup-config-list,
.backup-file-list,
.backup-activity-list {
  border-color: var(--border);
  background: rgba(15, 20, 41, 0.96);
  box-shadow: var(--shadow);
  color: var(--text);
}

.dashboard-panel-heading,
.panel-heading,
.module-toolbar,
.backup-list-head,
.site-control-bar,
.dialog-heading,
.dialog-actions,
thead,
th {
  border-color: var(--border);
  background: #0c1124;
}

th {
  color: #c0cbe7;
}

td {
  border-top-color: rgba(44, 55, 99, 0.82);
}

.site-view-switch {
  border-color: #384873;
  background: #0a0f22;
}

.metric-track {
  outline-color: #35436c;
}

.backup-server-group-toggle,
.site-group-toggle {
  border-color: var(--border);
  background: #11172e;
  color: var(--muted);
}

.backup-primary-action {
  border-color: rgba(75, 163, 255, 0.45);
  background: rgba(75, 163, 255, 0.13);
  color: #92caff;
}

.gsc-coverage-flow {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  background: linear-gradient(90deg, rgba(139, 108, 255, 0.05), rgba(75, 163, 255, 0.035)), #0b1023;
}

.gsc-coverage-flow::before {
  display: block;
}

.gsc-coverage-node,
.gsc-coverage-pending {
  background: rgba(17, 23, 46, 0.96);
}

.gsc-coverage-node--active {
  background: rgba(75, 163, 255, 0.12);
}

.gsc-coverage-pending {
  background: rgba(255, 189, 89, 0.09);
}

.login-page {
  background: linear-gradient(90deg, rgba(9, 11, 28, 0.98) 0 50%, transparent 50%), var(--bg);
}

.login-brief {
  border-right-color: var(--border);
  background: linear-gradient(rgba(75, 163, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 108, 255, 0.04) 1px, transparent 1px), #090b1c;
  background-size: 32px 32px;
  color: var(--text);
}

@media (hover: hover) {
  tbody tr:hover,
  .backup-config-row:hover,
  .backup-file-row:hover,
  .backup-activity-row:hover,
  .estate-row:hover,
  .activity-row:hover {
    background-color: rgba(75, 163, 255, 0.08);
    box-shadow: inset 2px 0 0 var(--star-blue);
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 252px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .app-shell {
    display: block;
    width: 100%;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(310px, calc(100vw - 46px));
    height: 100vh;
    padding: 0;
    transform: translateX(-102%);
  }

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

  .main-nav {
    display: block;
    grid-template-columns: none;
    margin: 0;
    padding: 14px 12px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
  }

  .nav-section-label {
    display: block;
  }

  .main-nav .nav-item {
    width: 100%;
    justify-content: flex-start;
    padding: 0 10px 0 44px;
  }

  .main-nav .nav-item--root {
    padding-left: 12px;
  }

  .sidebar-runtime {
    display: grid;
  }

  .gsc-coverage-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gsc-coverage-flow::before {
    display: none;
  }
}

@media (max-width: 620px) {
  body {
    overflow-x: hidden;
  }

  .gsc-coverage-flow {
    grid-template-columns: 1fr;
  }

  .login-page {
    background: var(--bg);
  }
}
