:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --sidebar: #050b13;
  --sidebar-2: #101925;
  --text: #07111a;
  --muted: #667388;
  --border: #dce3ec;
  --line: #edf2f7;
  --accent: #79f21c;
  --accent-dark: #55c712;
  --green: #79f21c;
  --red: #ef2d32;
  --amber: #f5a700;
  --blue: #246bfe;
  --gray: #9299a4;
  --shadow: 0 18px 45px rgba(7, 17, 26, 0.09);
  --page-pad: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  --bg: #050b13;
  --panel: #101925;
  --panel-soft: #0c141f;
  --sidebar: #050b13;
  --sidebar-2: #101925;
  --text: #f8fbff;
  --muted: #9aa6b8;
  --border: #273446;
  --line: #1d2a3a;
  --accent: #79f21c;
  --accent-dark: #61d915;
  --green: #79f21c;
  --red: #ff5a5f;
  --amber: #ffc24a;
  --blue: #6ea4ff;
  --gray: #7f8b9b;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  max-width: 100%;
  min-width: 0;
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: clamp(220px, 16vw, 264px) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px 16px;
  background: linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
  color: #eef6ff;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 760;
  font-size: 20px;
}

.brand-logo {
  display: block;
  width: clamp(160px, 13vw, 210px);
  max-width: 100%;
  height: auto;
}

.brand-logo-dark,
.brand-logo-mark,
.brand-mark-dark {
  display: none;
}

[data-theme="dark"] .brand-logo-light,
[data-theme="dark"] .brand-logo-mark-light,
[data-theme="dark"] .brand-mark-light,
.sidebar .brand-logo-light,
.sidebar .brand-logo-mark-light,
.sidebar .brand-mark-light,
.landing-signup .brand-logo-light,
.landing-signup .brand-logo-mark-light,
.landing-signup .brand-mark-light {
  display: none;
}

[data-theme="dark"] .brand-logo-dark,
[data-theme="dark"] .brand-mark-dark,
.sidebar .brand-logo-dark,
.sidebar .brand-mark-dark,
.landing-signup .brand-logo-dark,
.landing-signup .brand-mark-dark {
  display: block;
}

.brand-logo-mark,
.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-lockup-large {
  color: var(--text);
  font-size: 24px;
}

.brand-lockup-large .brand-logo {
  width: clamp(170px, 16vw, 230px);
}

.brand-lockup-labeled span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.side-nav {
  display: grid;
  gap: 6px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #d9e6f4;
  font-size: 14px;
}

.side-nav a.active,
.side-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.side-nav a.active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.plan-panel {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #d7e4f3;
  font-size: 13px;
}

.plan-panel strong {
  color: #ffffff;
}

.user-card {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 0 -16px -20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-weight: 800;
}

.user-card strong,
.user-card span {
  display: block;
}

.user-card strong {
  font-size: 13px;
}

.user-card span {
  max-width: 118px;
  overflow: hidden;
  color: #c9d5e4;
  font-size: 11px;
  text-overflow: ellipsis;
}

.user-card button {
  border: 0;
  background: transparent;
  color: #dce7f4;
  font-size: 12px;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 60px;
  padding: 10px var(--page-pad);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: blur(14px);
}

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

.topbar-title-row h1 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 84%, transparent);
  color: var(--text);
  font-weight: 820;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 24;
  width: 100%;
  min-height: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(3px);
}

.mobile-nav-backdrop[hidden] {
  display: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1.1;
}

h2 {
  margin-bottom: 0;
  font-size: 17px;
}

h3 {
  font-size: 14px;
}

.topbar-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.topbar-tools > select,
.topbar-tools > .searchbox {
  flex: 1 1 220px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.live-indicator i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 14%, transparent);
}

.live-indicator[data-state="loading"] i {
  background: var(--warning);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--warning) 16%, transparent);
}

.live-indicator[data-state="idle"] i {
  background: var(--muted);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--muted) 14%, transparent);
}

.live-indicator[data-state="error"] i {
  background: var(--danger);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 14%, transparent);
}

.searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
}

.searchbox input {
  width: 100%;
  height: 38px;
  border: 0;
  outline: 0;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  outline: 0;
}

select,
input {
  min-height: 38px;
  padding: 0 11px;
}

textarea {
  min-height: 72px;
  padding: 10px 11px;
  resize: vertical;
}

label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 680;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 740;
}

.btn-primary {
  background: var(--accent);
  color: #07111a;
  box-shadow: 0 8px 18px rgba(121, 242, 28, 0.24);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-primary.danger {
  background: var(--red);
  box-shadow: 0 8px 18px rgba(239, 45, 50, 0.18);
}

.btn-quiet {
  border-color: var(--border);
  background: var(--panel);
  color: var(--text);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
}

.icon-btn.danger {
  color: var(--red);
}

.flash {
  margin: 14px 26px 0;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
}

.flash-success {
  border: 1px solid #bcebd5;
  background: #e9fbf2;
  color: #0f7043;
}

.flash-error {
  border: 1px solid #ffd0d1;
  background: #fff1f1;
  color: #a51318;
}

.flash-warning {
  border: 1px solid #ffe0a6;
  background: #fff8e7;
  color: #875900;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  padding: 16px var(--page-pad) 10px;
}

.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.action-card,
.resource-grid-actions > a,
.type-bars button {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.action-card:hover,
.action-card:focus-visible,
.resource-grid-actions > a:hover,
.resource-grid-actions > a:focus-visible,
.type-bars button:hover,
.type-bars button:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--border));
  box-shadow: 0 10px 24px rgba(20, 34, 55, 0.08);
  transform: translateY(-1px);
}

.stat-card span,
.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin: 4px 0;
  font-size: 24px;
  line-height: 1;
}

.status-dot {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--gray);
}

.stat-up .status-dot,
.status-dot.status-up {
  background: var(--green);
}

.stat-down .status-dot,
.status-dot.status-down {
  background: var(--red);
}

.stat-warning .status-dot,
.status-dot.status-warning {
  background: var(--amber);
}

.stat-paused .status-dot,
.status-dot.status-paused {
  background: var(--gray);
}

.stat-total .icon {
  color: var(--blue);
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
  gap: 14px;
  padding: 0 var(--page-pad) 18px;
  align-items: start;
}

.engine-panel {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1.4fr repeat(4, minmax(132px, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(20, 34, 55, 0.04);
}

.engine-panel > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 15px;
  border-right: 1px solid var(--line);
}

.engine-panel > div:last-child {
  border-right: 0;
}

.engine-panel span,
.engine-panel small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.engine-panel strong {
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.engine-panel[data-state="warning"] {
  border-color: color-mix(in srgb, var(--warning) 45%, var(--border));
}

.engine-panel[data-state="warning"] strong:first-of-type {
  color: var(--warning);
}

.engine-panel[data-state="idle"] strong:first-of-type {
  color: var(--muted);
}

.table-panel,
.details-panel,
.panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(20, 34, 55, 0.04);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-heading span {
  color: var(--muted);
  font-size: 12px;
}

.panel-actions form {
  margin: 0;
}

.panel-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.monitor-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.monitor-filter-pills button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.monitor-filter-pills button.active,
.monitor-filter-pills button:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.monitor-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

.monitor-table th,
.monitor-table td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.monitor-table th {
  color: #5d6879;
  font-size: 12px;
  font-weight: 760;
}

.monitor-table tr {
  cursor: pointer;
}

.monitor-table tbody tr:hover,
.monitor-table tbody tr.selected {
  background: var(--panel-soft);
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
}

.monitor-table td small {
  display: block;
  max-width: 260px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
}

.diagnostic-note {
  max-width: 320px !important;
}

.monitor-table td .icon {
  width: 15px;
  height: 15px;
  vertical-align: -3px;
  color: var(--muted);
}

.group-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  max-width: 220px;
}

.group-chip i,
.group-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--group-color, var(--gray));
  flex: 0 0 auto;
}

.empty-row {
  color: var(--muted);
  text-align: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 78px;
  color: var(--muted);
}

.status-pill span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.status-up {
  color: var(--green);
}

.status-pill.status-down {
  color: var(--red);
}

.status-pill.status-warning {
  color: var(--amber);
}

.status-pill.status-paused {
  color: var(--gray);
}

.status-pill.status-unknown {
  color: var(--blue);
}

.status-pill.status-idle {
  color: var(--muted);
}

.details-panel {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 106px);
  overflow: auto;
  padding-bottom: 16px;
}

.details-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 10px;
}

.details-title-actions {
  display: flex;
  gap: 8px;
}

.details-title h2 {
  margin-bottom: 6px;
}

.monitor-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 12px;
}

.monitor-diagnostic {
  display: grid;
  gap: 5px;
  margin: 0 14px 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.monitor-diagnostic strong {
  font-size: 13px;
}

.monitor-diagnostic span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.monitor-diagnostic[data-state="due"],
.monitor-diagnostic[data-state="waiting"] {
  border-color: color-mix(in srgb, var(--warning) 42%, var(--line));
}

.monitor-diagnostic[data-state="paused"] {
  opacity: 0.82;
}

.metric-tile {
  display: grid;
  gap: 5px;
  min-height: 66px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.metric-tile span,
.chart-title-row span {
  color: var(--muted);
  font-size: 12px;
}

.metric-tile strong {
  font-size: 18px;
  line-height: 1.1;
}

.detail-chart-card {
  margin: 0 14px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.live-activity-card {
  display: grid;
  gap: 10px;
  margin: 0 14px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.activity-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 8px;
}

.activity-chip {
  display: grid;
  gap: 3px;
  min-height: 50px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.activity-chip strong {
  font-size: 13px;
  line-height: 1.1;
}

.activity-chip span {
  color: var(--muted);
  font-size: 11px;
}

.activity-chip[data-state="up"] {
  border-color: color-mix(in srgb, var(--green) 34%, var(--line));
}

.activity-chip[data-state="down"] {
  border-color: color-mix(in srgb, var(--red) 38%, var(--line));
}

.activity-chip[data-state="warning"] {
  border-color: color-mix(in srgb, var(--warning) 42%, var(--line));
}

.chart-empty {
  margin: -10px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.chart-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chart-title-row h3 {
  margin-bottom: 0;
}

.line-chart-compact {
  min-height: 118px;
  padding: 4px 0 0;
}

.tabs {
  display: flex;
  gap: 18px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.tabs button {
  padding: 12px 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.tabs button.active {
  border-color: var(--accent);
  color: var(--text);
}

.details-form,
.modal-card {
  display: grid;
  gap: 12px;
}

.details-form {
  padding: 14px;
}

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

.type-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.type-button {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 54px;
  padding: 8px 4px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.type-button .icon {
  width: 19px;
  height: 19px;
}

.type-button.is-selected {
  border-color: var(--accent);
  background: var(--panel-soft);
  background: color-mix(in srgb, var(--accent) 14%, var(--panel));
  color: var(--accent-dark);
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.toggle,
.radio {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
}

.toggle input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.radio input {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.toggle span {
  position: relative;
  width: 38px;
  height: 21px;
  border-radius: 999px;
  background: #c7ced8;
  transition: background 150ms ease;
}

.toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 150ms ease;
}

.toggle input:checked + span {
  background: var(--accent);
}

.toggle input:checked + span::after {
  transform: translateX(17px);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.copy-box {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
}

.copy-box code {
  overflow-wrap: anywhere;
  color: var(--text);
}

.monitor-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.monitor-sections-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.monitor-sections-grid h3 {
  margin-bottom: 10px;
}

.monitor-sections-grid dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.monitor-sections-grid div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
}

.monitor-sections-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.monitor-sections-grid dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.incident-summary {
  margin: 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.incident-summary dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.incident-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.incident-summary dt {
  color: var(--muted);
  font-size: 12px;
}

.incident-summary dd {
  margin: 0;
  text-align: right;
  font-size: 12px;
}

.empty-details {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 48px 28px;
  text-align: center;
}

.empty-details .icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
}

.lower-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  padding: 0 var(--page-pad) 18px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.resource-grid > div,
.resource-grid > a {
  display: grid;
  gap: 7px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.resource-grid > div:nth-last-child(-n + 2),
.resource-grid > a:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.resource-grid > div:nth-child(4n),
.resource-grid > div:last-child,
.resource-grid > a:nth-child(4n),
.resource-grid > a:last-child {
  border-right: 0;
}

.resource-grid span,
.resource-grid small {
  color: var(--muted);
  font-size: 12px;
}

.resource-grid strong {
  font-size: 16px;
}

.resource-grid-actions > a {
  border-color: transparent var(--line) var(--line) transparent;
}

.resource-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
}

.resource-grid-compact > div,
.resource-grid-compact > a {
  padding: 12px 14px;
}

meter {
  width: 100%;
  height: 6px;
}

.line-chart {
  width: 100%;
  min-height: 180px;
  padding: 12px;
}

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

.line-chart polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.incident-list {
  display: grid;
  padding: 4px 14px 14px;
}

.incident-row {
  display: grid;
  grid-template-columns: 12px 150px minmax(0, 1fr) 120px 74px auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.incident-row span:nth-child(3) {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.incident-row time {
  color: var(--muted);
}

.incident-row em {
  justify-self: end;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--muted);
  font-style: normal;
}

.type-bars {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.type-bars > div,
.type-bars button {
  display: grid;
  grid-template-columns: 92px 1fr 28px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.type-bars > div > div,
.type-bars button > div {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef3f8;
}

.type-bars i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.type-bars strong {
  color: var(--text);
  text-align: right;
}

.health-panel {
  display: grid;
  gap: 5px;
  margin: 14px 14px 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.health-panel strong {
  font-size: 14px;
}

.health-panel span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.health-panel[data-state="warning"] {
  border-color: color-mix(in srgb, var(--warning) 40%, var(--line));
}

.health-panel[data-state="warning"] strong {
  color: var(--warning);
}

.health-panel[data-state="idle"] strong {
  color: var(--muted);
}

.compact-list-inset {
  padding: 0 14px 14px;
}

.state-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 780;
  white-space: nowrap;
}

.state-chip.state-success {
  border-color: color-mix(in srgb, var(--success, var(--green)) 36%, var(--line));
  color: var(--green);
}

.state-chip.state-warning {
  border-color: color-mix(in srgb, var(--warning) 42%, var(--line));
  color: var(--warning);
}

.state-chip.state-idle {
  color: var(--muted);
}

.tab-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.mini-row,
.log-row {
  display: grid;
  grid-template-columns: 12px 76px 70px 1fr;
  gap: 9px;
  align-items: center;
  min-height: 36px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.mini-row-wide {
  grid-template-columns: 12px 76px minmax(0, 1fr) 88px auto;
}

.mini-row .status-dot {
  width: 9px;
  height: 9px;
  margin-top: 0;
}

.mini-row span,
.mini-row time,
.log-row time,
.log-row span {
  color: var(--muted);
}

.mini-row span:nth-child(3),
.log-row code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.incident-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.incident-actions form {
  margin: 0;
}

.incident-action-note {
  justify-self: end;
  color: var(--muted);
  font-size: 11px;
}

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

.escalation-builder div {
  align-items: flex-start;
  background: color-mix(in srgb, var(--panel-strong) 76%, transparent);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 0.25rem;
  grid-template-columns: auto 1fr;
  padding: 0.85rem;
}

.escalation-builder strong {
  align-items: center;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 46%, transparent);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  height: 1.8rem;
  justify-content: center;
  width: 1.8rem;
}

.escalation-builder span,
.escalation-builder small {
  grid-column: 2;
}

.escalation-queue {
  display: grid;
  gap: 8px;
  margin-bottom: 1rem;
}

.escalation-queue-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.escalation-queue-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.twilio-preflight {
  margin-bottom: 1rem;
}

.channel-health-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 14px;
}

.channel-health-grid article {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 78%, transparent);
}

.channel-health-grid article > div:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.channel-health-grid dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.channel-health-grid dt {
  color: var(--muted);
  font-size: 11px;
}

.channel-health-grid dd {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 820;
}

.channel-health-grid small {
  min-height: 16px;
  color: var(--muted);
  font-size: 11px;
}

.admin-health-center {
  align-content: start;
}

.launch-readiness-center {
  align-content: start;
}

.settings-title-row > div > p {
  margin: 4px 0 0;
}

.launch-readiness-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.launch-readiness-summary > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel-strong) 84%, transparent), color-mix(in srgb, var(--panel) 92%, transparent));
}

.launch-readiness-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.launch-readiness-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
}

.launch-readiness-grid,
.alert-test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.launch-readiness-card,
.alert-test-grid article,
.security-checklist article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 82%, transparent);
}

.launch-readiness-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 172px;
  padding: 14px;
}

.launch-readiness-card-head,
.alert-test-grid article > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.launch-readiness-card-head strong,
.alert-test-grid strong,
.security-checklist strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 13px;
}

.launch-readiness-card-head em,
.alert-test-grid em {
  max-width: 120px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-readiness-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.launch-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.launch-readiness-card[data-state="success"],
.alert-test-grid article[data-state="success"],
.security-checklist article[data-state="success"] {
  border-color: color-mix(in srgb, var(--green) 32%, var(--line));
}

.launch-readiness-card[data-state="warning"],
.alert-test-grid article[data-state="warning"],
.security-checklist article[data-state="warning"] {
  border-color: color-mix(in srgb, var(--warning) 40%, var(--line));
}

.launch-readiness-card[data-state="error"],
.alert-test-grid article[data-state="error"],
.security-checklist article[data-state="error"] {
  border-color: color-mix(in srgb, var(--red) 42%, var(--line));
}

.launch-readiness-card[data-state="idle"],
.alert-test-grid article[data-state="idle"],
.security-checklist article[data-state="idle"] {
  opacity: 0.82;
}

.launch-readiness-card[data-state="success"] .readiness-dot,
.alert-test-grid article[data-state="success"] .readiness-dot,
.security-checklist article[data-state="success"] .readiness-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 14%, transparent);
}

.launch-readiness-card[data-state="warning"] .readiness-dot,
.alert-test-grid article[data-state="warning"] .readiness-dot,
.security-checklist article[data-state="warning"] .readiness-dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 16%, transparent);
}

.launch-readiness-card[data-state="error"] .readiness-dot,
.alert-test-grid article[data-state="error"] .readiness-dot,
.security-checklist article[data-state="error"] .readiness-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 14%, transparent);
}

.alert-test-center {
  align-content: start;
}

.alert-test-grid article {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.alert-test-grid small {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.launch-qa-grid {
  align-content: start;
}

.security-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.security-checklist article {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.security-checklist strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.security-checklist small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.admin-health-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.admin-health-grid article {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 78%, transparent);
}

.admin-health-grid article > div {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.admin-health-grid b {
  color: var(--text);
  font-size: 20px;
}

.admin-health-grid small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.admin-health-grid article[data-state="warning"] {
  border-color: color-mix(in srgb, var(--warning) 38%, var(--border));
}

.admin-health-grid article[data-state="idle"] {
  opacity: 0.82;
}

.launch-issue-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.launch-issue-strip span {
  display: inline-flex;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--warning) 36%, var(--line));
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}

.status-subscribe-panel {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.status-subscribe-panel h2 {
  margin: 0 0 0.25rem;
}

.status-subscribe-panel .inline-form {
  flex: 0 1 34rem;
}

.log-row {
  grid-template-columns: 116px 78px minmax(0, 1fr);
}

.log-row code {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.location-check-list {
  display: grid;
  gap: 8px;
}

.location-check-list-padded {
  padding: 14px;
}

.location-check-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 84px 104px;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.location-check-row .status-dot {
  width: 9px;
  height: 9px;
  margin-top: 0;
}

.location-check-row strong,
.location-check-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-check-row small,
.location-check-row span,
.location-check-row time {
  color: var(--muted);
}

.location-panel-inline {
  border-top: 1px solid var(--line);
}

.evidence-panel,
.incident-notes-panel {
  display: grid;
  gap: 12px;
}

.synthetic-run-list,
.evidence-list,
.note-feed {
  display: grid;
  gap: 10px;
}

.synthetic-run-card,
.evidence-row,
.note-card,
.incident-note-form {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 12px;
}

.synthetic-run-card {
  display: grid;
  gap: 10px;
}

.synthetic-run-card > div:first-child,
.evidence-row-main,
.note-card > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.synthetic-run-card strong,
.synthetic-run-card span,
.note-card strong,
.note-card span,
.note-card time {
  display: block;
}

.synthetic-run-card span,
.synthetic-run-card time,
.note-card span,
.note-card time {
  color: var(--muted);
  font-size: 12px;
}

.synthetic-step-list {
  display: grid;
  gap: 6px;
}

.synthetic-step-row {
  display: grid;
  grid-template-columns: 12px 120px minmax(0, 1fr) 68px;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
  font-size: 12px;
}

.synthetic-step-row .status-dot,
.evidence-row-main .status-dot {
  width: 9px;
  height: 9px;
  margin-top: 3px;
}

.synthetic-step-row span,
.synthetic-step-row em {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-row {
  display: grid;
  gap: 10px;
}

.evidence-row-main {
  grid-template-columns: 12px minmax(0, 1fr) auto;
}

.evidence-row-main span,
.evidence-row-main time {
  color: var(--muted);
  font-size: 12px;
}

.evidence-row dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.evidence-row dt {
  color: var(--muted);
  font-size: 11px;
}

.evidence-row dd {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-row code {
  display: block;
  max-height: 96px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 10px;
  white-space: normal;
}

.incident-note-form {
  display: grid;
  gap: 10px;
}

.incident-note-form label {
  display: grid;
  gap: 6px;
}

.note-card {
  display: grid;
  gap: 8px;
}

.note-card p {
  margin: 0;
  color: var(--text);
}

.settings-section {
  margin: 0 var(--page-pad) 24px;
}

.view-section {
  margin: 0 var(--page-pad) 18px;
}

.reports-view,
.groups-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 16px;
}

.group-card {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.group-card strong,
.group-card span {
  display: block;
}

.group-card span:not(.group-dot) {
  color: var(--muted);
  font-size: 12px;
}

#dashboard,
#monitors,
#incidents,
#reports,
#groups,
#settings {
  scroll-margin-top: 76px;
}

.settings-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  max-width: 100%;
  min-width: 0;
}

.settings-extra-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.8fr) minmax(340px, 1.2fr);
  gap: 14px;
  padding: 0 16px 16px;
  max-width: 100%;
  min-width: 0;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.75fr) minmax(460px, 1.35fr);
  gap: 14px;
  align-items: start;
  max-width: 100%;
  min-width: 0;
}

.settings-block {
  display: grid;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.settings-block-wide {
  grid-column: 1 / -1;
}

.plan-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.plan-editor-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.plan-editor-card h4 {
  margin: 0;
  font-size: 15px;
}

.plan-editor-card textarea {
  min-height: 124px;
}

.checkbox-cloud-tight {
  gap: 6px;
}

.checkbox-cloud-tight label {
  padding: 6px 8px;
  font-size: 12px;
}

.settings-block h3,
.settings-title-row h3 {
  margin-bottom: 0;
}

.settings-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.readiness-item {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.readiness-item strong,
.readiness-item span,
.readiness-item small {
  overflow-wrap: anywhere;
}

.readiness-item strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.readiness-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.readiness-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--muted);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--muted) 14%, transparent);
}

.readiness-item[data-state="success"] .readiness-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 14%, transparent);
}

.readiness-item[data-state="warning"] .readiness-dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 16%, transparent);
}

.readiness-item[data-state="error"] .readiness-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 14%, transparent);
}

.settings-block-mail .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.btn-small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.client-list {
  display: grid;
  gap: 8px;
}

.client-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

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

.client-row span {
  color: var(--muted);
  font-size: 12px;
}

.checkbox-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 150px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
}

.checkbox-cloud label {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  font-size: 12px;
}

.checkbox-cloud input {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.compact-list {
  display: grid;
  gap: 8px;
}

.compact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.compact-row div {
  min-width: 0;
}

.compact-row strong,
.compact-row span,
.compact-row small,
.compact-row a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-row span,
.compact-row small,
.compact-row a {
  color: var(--muted);
  font-size: 12px;
}

.compact-row a {
  color: var(--blue);
}

.compact-row-log .status-pill {
  min-width: 74px;
}

.compact-row-customer {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  align-items: start;
}

.customer-card-list {
  gap: 10px;
}

.customer-operation-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 72%, transparent);
}

.customer-card-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.customer-card-title {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.customer-card-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.customer-mini-metrics span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  white-space: nowrap;
}

.customer-progress {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(120px, 1fr) auto;
  align-items: center;
}

.customer-progress small,
.warning-text {
  color: var(--warning) !important;
}

.customer-ops-summary {
  margin-bottom: 12px;
}

.customer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.customer-action-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.customer-action-form select {
  width: min(148px, 38vw);
  min-height: 32px;
  padding: 0 8px;
  font-size: 12px;
}

.probe-help-grid {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.cron-setup-block {
  grid-column: 1 / -1;
}

.cron-command-list {
  display: grid;
  gap: 10px;
}

.command-box {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
}

.command-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.command-box code {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.preflight-panel {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.preflight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.preflight-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 3px 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft);
}

.preflight-item .status-dot {
  grid-row: span 2;
}

.preflight-item small {
  color: var(--muted);
}

.client-shell {
  display: grid;
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.client-topbar,
.client-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.client-topbar {
  min-height: 56px;
}

.client-topbar form {
  margin: 0;
}

.client-hero {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.status-hero {
  border-left: 5px solid var(--green);
}

.status-hero.status-warning {
  border-left-color: var(--amber);
}

.status-hero.status-down {
  border-left-color: var(--red);
}

.public-status-shell {
  width: min(980px, 100%);
}

.restore-panel {
  padding-bottom: 18px;
}

.restore-panel > p,
.restore-panel > form {
  padding: 0 18px;
}

.client-hero h1 {
  margin-bottom: 6px;
}

.client-hero p {
  margin-bottom: 0;
  color: var(--muted);
}

.client-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-stats span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--muted);
}

.client-stats strong {
  color: var(--text);
}

.onboarding-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.onboarding-step {
  display: grid;
  gap: 6px;
  grid-template-rows: auto auto minmax(38px, 1fr) auto;
  min-height: 154px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.onboarding-step strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--panel);
  color: var(--accent);
}

.onboarding-step.complete {
  border-color: color-mix(in srgb, var(--green) 34%, var(--line));
}

.onboarding-step span {
  font-weight: 800;
}

.onboarding-step small {
  color: var(--muted);
  line-height: 1.35;
}

.wizard-progress {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.35fr);
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 72%, transparent);
}

.wizard-progress strong,
.wizard-progress span {
  display: block;
}

.wizard-progress span {
  color: var(--muted);
  font-size: 12px;
}

.wizard-progress meter {
  justify-self: stretch;
}

.onboarding-step-action {
  align-self: end;
  min-height: 34px;
}

.onboarding-step-action form {
  margin: 0;
}

.onboarding-step-action em {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.client-monitor-list {
  display: grid;
  padding: 4px 16px 16px;
}

.client-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: start;
}

.client-detail-panel {
  min-width: 0;
}

.client-monitor-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 90px 90px;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}

.client-monitor-row:hover,
.client-monitor-row.selected {
  background: var(--panel-soft);
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
}

.client-monitor-row div {
  min-width: 0;
}

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

.client-monitor-row span,
.client-monitor-row time {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-monitor-row .group-chip {
  display: inline-flex;
}

.client-monitor-row em {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--muted);
  font-style: normal;
}

.public-status-shell .client-monitor-row {
  grid-template-columns: 14px minmax(0, 1fr) 90px 96px 96px 90px;
}

.status-component-group {
  padding: 8px 0 14px;
}

.status-component-group h3 {
  margin: 10px 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.client-monitor-row .status-metrics {
  justify-self: start;
  font-variant-numeric: tabular-nums;
}

.modal {
  width: min(760px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(7, 24, 38, 0.58);
}

.modal:not([open]) {
  display: none;
}

.modal-card {
  position: relative;
  padding: 20px;
  background: var(--panel);
  color: var(--text);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.auth-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-panel,
.install-panel {
  width: min(100%, 440px);
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.fineprint-footer {
  position: static !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 9px clamp(18px, 5vw, 76px);
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 64%, transparent);
  border-radius: 0 !important;
  background: color-mix(in srgb, var(--bg) 96%, var(--panel));
  color: var(--muted);
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: none !important;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}

.fineprint-footer span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.fineprint-trigger {
  min-height: 18px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.1;
}

.landing-body > .fineprint-footer {
  justify-content: center;
  min-height: 32px;
  padding-block: 7px;
  background: #050b13;
}

.fineprint-trigger:hover {
  color: var(--text);
}

.fineprint-modal {
  width: min(760px, calc(100vw - 28px));
}

.fineprint-card {
  display: grid;
  gap: 14px;
}

.fineprint-card h2 {
  font-size: 24px;
}

.fineprint-copy {
  display: grid;
  gap: 12px;
  color: var(--text);
}

.fineprint-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.install-panel {
  width: min(100%, 980px);
}

.stack-form,
.install-form {
  display: grid;
  gap: 16px;
}

.install-form section {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.muted {
  color: var(--muted);
}

.landing-body {
  --bg: #050b13;
  --panel: #0d1724;
  --panel-soft: #101d2d;
  --text: #f8fbff;
  --muted: #a9b7ca;
  --border: #233145;
  --line: #172536;
  background:
    linear-gradient(180deg, #050b13 0%, #08111d 48%, #0d1724 100%);
  color: var(--text);
}

.brand-intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #050b13;
  pointer-events: none;
  animation: brandIntroFade 2.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.brand-intro::after {
  content: "";
  position: absolute;
  inset: 52% 8% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(121, 242, 28, 0.7), transparent);
  transform: scaleX(0);
  animation: brandIntroScan 1.45s ease-out 0.2s forwards;
}

.brand-intro-logo {
  width: clamp(300px, 62vw, 940px);
  height: auto;
  filter: drop-shadow(0 0 34px rgba(121, 242, 28, 0.25));
  transform-origin: center;
  animation: brandIntroLogo 2.05s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.brand-intro-logo-light {
  display: none;
}

.brand-intro-playing .landing-header .brand-lockup {
  opacity: 0;
}

.brand-intro-settled .landing-header .brand-lockup {
  animation: headerLogoReveal 0.42s ease-out forwards;
}

@keyframes brandIntroLogo {
  0% {
    opacity: 0;
    transform: translate3d(0, 7vh, 0) scale(1.32);
  }
  14% {
    opacity: 1;
  }
  54% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(-42vw + 212px), calc(-43vh + 34px), 0) scale(0.2);
  }
}

@keyframes brandIntroFade {
  0%,
  76% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes brandIntroScan {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

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

.landing-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(150px, auto);
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--border);
  background: rgba(5, 11, 19, 0.88);
  backdrop-filter: blur(14px);
}

[data-theme="dark"] .landing-header {
  background: rgba(5, 11, 19, 0.92);
}

.landing-header nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.landing-header > .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.landing-header nav a:hover {
  color: var(--text);
}

.landing-header .brand-logo-mark {
  display: none !important;
}

.landing-header .brand-logo-light {
  display: none !important;
}

.landing-header .brand-logo-dark {
  display: block !important;
}

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.94fr);
  gap: clamp(22px, 3.4vw, 56px);
  align-items: center;
  overflow: hidden;
  min-height: calc(92vh - 72px);
  padding: clamp(30px, 4.6vw, 64px) clamp(18px, 5vw, 76px) clamp(18px, 3vw, 36px);
  color: var(--text);
  isolation: isolate;
}

.landing-hero-mascot {
  position: absolute;
  left: clamp(16px, 5.6vw, 98px);
  top: 50%;
  z-index: -1;
  width: min(58vw, 760px);
  max-height: 80%;
  object-fit: contain;
  opacity: 0.13;
  filter:
    drop-shadow(0 0 28px rgba(121, 242, 28, 0.46))
    drop-shadow(0 0 90px rgba(86, 180, 255, 0.22));
  transform: translate3d(8%, -48%, 0) scale(1.04);
  animation: mascotHeroGlow 6.8s ease-in-out infinite;
  pointer-events: none;
}

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

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(121, 242, 28, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(123, 226, 255, 0.04) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  opacity: 0.52;
  animation: heroGridDrift 14s linear infinite;
}

.landing-hero h1 {
  max-width: 660px;
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.landing-hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.landing-actions,
.landing-proof,
.signup-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.landing-actions {
  margin-top: 28px;
}

.landing-actions .btn {
  text-transform: capitalize;
}

.landing-proof {
  margin-top: 28px;
}

.landing-proof span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
}

.landing-proof strong {
  color: var(--text);
}

.landing-dashboard-preview {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 620px;
  justify-self: end;
  overflow: hidden;
  padding: clamp(18px, 2.2vw, 30px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #050b13;
  color: #edf7ff;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(121, 242, 28, 0.08);
  transform: translateZ(0);
}

.landing-dashboard-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(121, 242, 28, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 226, 255, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.42;
  pointer-events: none;
}

.preview-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(121, 242, 28, 0.12) 50%, transparent 100%);
  height: 120px;
  transform: translateY(-140px);
  animation: previewScanline 5s ease-in-out 1.2s infinite;
  pointer-events: none;
}

.preview-cursor {
  position: absolute;
  left: 24%;
  top: 46%;
  width: 22px;
  height: 22px;
  border: 2px solid #f8fbff;
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 10px rgba(109, 180, 255, 0.9));
  animation: previewCursor 5.8s ease-in-out 0.8s infinite;
  z-index: 3;
}

.preview-topline,
.preview-rows,
.landing-chart {
  position: relative;
  z-index: 1;
}

.preview-topline,
.preview-rows div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.preview-topline {
  margin-bottom: 14px;
  font-size: clamp(18px, 2vw, 26px);
}

.preview-topline em {
  color: #9bded0;
  font-style: normal;
  padding-right: 18px;
}

.preview-rows {
  display: grid;
  gap: 8px;
}

.preview-rows div {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  opacity: 0;
  transform: translateY(12px);
  animation: previewRowIn 0.58s ease-out forwards;
}

.preview-rows div:nth-child(1) {
  animation-delay: 0.38s;
}

.preview-rows div:nth-child(2) {
  animation-delay: 0.54s;
}

.preview-rows div:nth-child(3) {
  animation-delay: 0.7s;
}

.preview-rows div:nth-child(4) {
  animation-delay: 0.86s;
}

.preview-rows time {
  color: #b6c7d8;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.landing-chart {
  margin-top: 12px;
  min-height: 190px;
}

.landing-chart line {
  stroke: rgba(255, 255, 255, 0.16);
}

.landing-chart polyline {
  stroke-width: 5;
  stroke-dasharray: 820;
  stroke-dashoffset: 820;
  filter: drop-shadow(0 0 9px rgba(121, 242, 28, 0.62));
  animation: drawLandingChart 1.6s ease-out 1.04s forwards, chartPulse 3.2s ease-in-out 2.7s infinite;
}

.hero-tech-field {
  position: absolute;
  inset: 78px clamp(18px, 5vw, 76px) 42px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.tech-packet,
.tech-blade {
  position: absolute;
  display: block;
  opacity: 0.72;
}

.tech-packet {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(121, 242, 28, 0.9);
  background: rgba(121, 242, 28, 0.12);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  filter: drop-shadow(0 0 14px rgba(121, 242, 28, 0.45));
  animation: packetFloat 7.5s ease-in-out infinite;
}

.packet-a {
  left: 47%;
  top: 8%;
}

.packet-b {
  right: 8%;
  top: 24%;
  animation-delay: -2.2s;
}

.packet-c {
  left: 8%;
  bottom: 14%;
  animation-delay: -4.1s;
}

.tech-blade {
  width: 128px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(123, 226, 255, 0.8), transparent);
  transform: rotate(-22deg);
  animation: bladeSweep 8s ease-in-out infinite;
}

.blade-a {
  right: 20%;
  top: 16%;
}

.blade-b {
  left: 18%;
  bottom: 20%;
  animation-delay: -3.6s;
}

@keyframes previewRowIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroGridDrift {
  to {
    background-position: 88px 88px;
  }
}

@keyframes mascotHeroGlow {
  0%,
  100% {
    opacity: 0.1;
    filter:
      drop-shadow(0 0 24px rgba(121, 242, 28, 0.36))
      drop-shadow(0 0 68px rgba(86, 180, 255, 0.16));
    transform: translate3d(8%, -48%, 0) scale(1.01);
  }
  50% {
    opacity: 0.17;
    filter:
      drop-shadow(0 0 34px rgba(121, 242, 28, 0.58))
      drop-shadow(0 0 104px rgba(86, 180, 255, 0.26));
    transform: translate3d(9%, -49%, 0) scale(1.06);
  }
}

@keyframes mascotHeroGlowMobile {
  0%,
  100% {
    opacity: 0.12;
    filter:
      drop-shadow(0 0 24px rgba(121, 242, 28, 0.36))
      drop-shadow(0 0 64px rgba(86, 180, 255, 0.14));
    transform: translate3d(-50%, -50%, 0) scale(0.98);
  }
  50% {
    opacity: 0.2;
    filter:
      drop-shadow(0 0 34px rgba(121, 242, 28, 0.55))
      drop-shadow(0 0 92px rgba(86, 180, 255, 0.24));
    transform: translate3d(-50%, -50%, 0) scale(1.04);
  }
}

@keyframes packetFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(18px, -22px, 0) rotate(180deg);
  }
}

@keyframes bladeSweep {
  0%,
  100% {
    opacity: 0;
    transform: translateX(-26px) rotate(-22deg) scaleX(0.65);
  }
  42%,
  58% {
    opacity: 0.8;
    transform: translateX(26px) rotate(-22deg) scaleX(1);
  }
}

@keyframes signalNodePulse {
  0%,
  100% {
    opacity: 0.46;
    transform: rotate(45deg) scale(0.86);
  }
  50% {
    opacity: 0.95;
    transform: rotate(45deg) scale(1.18);
  }
}

@keyframes signalBeam {
  0%,
  100% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  45%,
  62% {
    opacity: 0.7;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes signalChipFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(8px, -12px, 0);
  }
}

@keyframes drawLandingChart {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes chartPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(121, 242, 28, 0.52));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(123, 226, 255, 0.64));
  }
}

@keyframes previewScanline {
  0%,
  42% {
    transform: translateY(-150px);
    opacity: 0;
  }
  52% {
    opacity: 1;
  }
  74% {
    opacity: 0.75;
  }
  100% {
    transform: translateY(110%);
    opacity: 0;
  }
}

@keyframes previewCursor {
  0%,
  100% {
    opacity: 0;
    transform: translate(0, 0) rotate(45deg) scale(0.92);
  }
  12% {
    opacity: 1;
  }
  32% {
    transform: translate(180px, -58px) rotate(45deg) scale(1);
  }
  55% {
    transform: translate(320px, 102px) rotate(45deg) scale(0.96);
  }
  74% {
    opacity: 1;
    transform: translate(98px, 162px) rotate(45deg) scale(1);
  }
  88% {
    opacity: 0;
  }
}

.landing-proof-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 76px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--border);
}

.landing-proof-band div {
  display: grid;
  gap: 6px;
  min-height: 98px;
  padding: 22px;
  background: #0d1724;
}

.landing-proof-band span,
.landing-section-heading p,
.pricing-card p,
.feature-grid p,
.landing-signup p,
.faq-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.landing-section,
.landing-signup,
.landing-final {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 76px);
}

.landing-section-heading {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin-bottom: 30px;
}

.landing-section h2,
.landing-signup h2,
.landing-final h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
}

.feature-grid,
.pricing-grid,
.faq-grid {
  display: grid;
  gap: 14px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid article,
.pricing-card,
.signup-panel,
.faq-grid details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0d1724;
  box-shadow: 0 10px 26px rgba(20, 34, 55, 0.05);
}

.feature-grid article {
  display: grid;
  gap: 12px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(121, 242, 28, 0.5);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(121, 242, 28, 0.08);
}

.feature-icon-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.landing-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(121, 242, 28, 0.38);
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 20%, rgba(121, 242, 28, 0.22), transparent 42%),
    linear-gradient(135deg, rgba(123, 226, 255, 0.12), rgba(121, 242, 28, 0.08));
  color: var(--accent);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.landing-icon .icon {
  width: 35px;
  height: 35px;
  stroke-width: 1.8;
}

.landing-demo-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(13, 23, 36, 0.2), rgba(8, 17, 29, 0.78)),
    #07111a;
}

.portal-demo {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.demo-tabs {
  display: grid;
  gap: 10px;
  align-content: start;
}

.demo-tabs button {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0d1724;
  color: var(--muted);
  font-weight: 800;
  text-align: left;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.demo-tabs button .landing-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.demo-tabs button .landing-icon .icon {
  width: 24px;
  height: 24px;
}

.demo-tabs button:hover,
.demo-tabs button.active {
  transform: translateX(4px);
  border-color: rgba(121, 242, 28, 0.58);
  background: color-mix(in srgb, var(--accent) 13%, #0d1724);
  color: var(--text);
}

.demo-stage {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(rgba(121, 242, 28, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 226, 255, 0.04) 1px, transparent 1px),
    #050b13;
  background-size: 42px 42px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(121, 242, 28, 0.06);
}

.demo-signal-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.signal-node,
.signal-beam,
.signal-chip {
  position: absolute;
  display: block;
}

.signal-node {
  width: 13px;
  height: 13px;
  border: 1px solid rgba(121, 242, 28, 0.9);
  background: #79f21c;
  box-shadow: 0 0 20px rgba(121, 242, 28, 0.48);
  transform: rotate(45deg);
  animation: signalNodePulse 2.8s ease-in-out infinite;
}

.node-a {
  left: 14%;
  top: 18%;
}

.node-b {
  right: 16%;
  top: 24%;
  animation-delay: -0.9s;
}

.node-c {
  left: 42%;
  bottom: 15%;
  animation-delay: -1.8s;
}

.signal-beam {
  width: 230px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(121, 242, 28, 0.64), rgba(123, 226, 255, 0.5), transparent);
  opacity: 0;
  animation: signalBeam 5.8s ease-in-out infinite;
}

.beam-a {
  left: 17%;
  top: 21%;
  transform: rotate(8deg);
}

.beam-b {
  right: 18%;
  bottom: 22%;
  transform: rotate(-14deg);
  animation-delay: -2.9s;
}

.signal-chip {
  min-width: 48px;
  min-height: 26px;
  padding: 5px 10px;
  border: 1px solid rgba(123, 226, 255, 0.36);
  border-radius: 8px;
  background: rgba(5, 11, 19, 0.82);
  color: #dff6ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  animation: signalChipFloat 6.5s ease-in-out infinite;
}

.chip-a {
  left: 7%;
  bottom: 22%;
}

.chip-b {
  right: 9%;
  top: 14%;
  animation-delay: -2s;
}

.chip-c {
  right: 30%;
  bottom: 11%;
  animation-delay: -4.1s;
}

.demo-panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  gap: 18px;
  align-content: center;
  padding: clamp(20px, 3vw, 42px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition: opacity 240ms ease, transform 240ms ease;
}

.demo-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.demo-panel[data-demo-panel="add"],
.demo-panel[data-demo-panel="alerts"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-form-card,
.demo-insight-card,
.demo-report,
.demo-status-page,
.demo-alert-timeline,
.demo-recipient-stack,
.demo-dashboard-grid > div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.demo-form-card,
.demo-insight-card,
.demo-report,
.demo-status-page,
.demo-alert-timeline,
.demo-recipient-stack {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.demo-form-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.demo-form-card span,
.demo-report span,
.demo-status-page span,
.demo-alert-timeline span {
  color: #dce9f4;
  font-size: 14px;
}

.demo-form-card label span {
  min-height: 42px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 11, 19, 0.72);
}

.demo-form-card button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #07111a;
  font-weight: 900;
}

.demo-insight-card {
  align-content: center;
  border-color: rgba(121, 242, 28, 0.42);
}

.demo-insight-card strong,
.demo-report strong,
.demo-status-page strong,
.demo-alert-timeline strong {
  font-size: 20px;
}

.demo-recipient-stack span {
  min-height: 46px;
  padding: 13px;
  border: 1px solid rgba(121, 242, 28, 0.24);
  border-radius: 999px;
  color: #eaf5ff;
  background: rgba(121, 242, 28, 0.08);
  font-weight: 800;
}

.demo-alert-timeline div,
.demo-status-page div {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
}

.demo-status-page div:not(:first-child) {
  grid-template-columns: minmax(0, 1fr) auto;
}

.demo-status-page div span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.demo-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.demo-dashboard-grid > div {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 16px;
}

.demo-dashboard-grid span {
  color: var(--muted);
  font-size: 13px;
}

.demo-dashboard-grid strong {
  font-size: 30px;
}

.demo-chart {
  min-height: 210px;
}

.demo-chart polyline {
  stroke-width: 5;
  stroke-dasharray: 760;
  stroke-dashoffset: 0;
  animation: chartPulse 3.2s ease-in-out infinite;
}

.demo-report span {
  display: block;
  min-height: 42px;
  padding: 12px;
  border-left: 3px solid var(--accent);
  background: rgba(5, 11, 19, 0.58);
}

.demo-status-page {
  align-self: center;
}

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

.pricing-card {
  display: grid;
  gap: 15px;
  padding: 22px;
}

.pricing-card.featured,
.pricing-card.selected {
  border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(121, 242, 28, 0.18), inset 0 0 0 1px rgba(121, 242, 28, 0.1);
}

.pricing-card strong {
  font-size: 32px;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  min-height: 190px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  display: flex;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pricing-card li .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.landing-signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 34vw);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
  padding-right: clamp(110px, 9vw, 140px);
  background: #07111a;
  color: #edf7ff;
}

.landing-signup > div,
.signup-panel {
  min-width: 0;
}

.landing-signup p,
.signup-mini-list span {
  color: #b8c9d8;
}

.signup-mini-list {
  margin-top: 24px;
}

.signup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.signup-steps div {
  display: grid;
  gap: 6px;
  min-height: 88px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.signup-steps strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #07111a;
}

.signup-steps span {
  color: #dce9f4;
  font-weight: 780;
}

.signup-mini-list span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 36px;
}

.signup-mini-list .icon {
  color: var(--accent);
}

.signup-panel {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  justify-self: end;
  padding: 20px;
  color: var(--text);
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-mode-banner {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(121, 242, 28, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(121, 242, 28, 0.18), rgba(123, 226, 255, 0.07)),
    rgba(8, 20, 30, 0.9);
}

.signup-mode-banner strong {
  color: #eaffdc;
  font-size: 17px;
}

.signup-mode-banner span {
  color: #b8c9d8;
  line-height: 1.45;
}

.captcha-widget {
  min-height: 62px;
  margin: 2px 0;
}

.captcha-simple {
  gap: 8px;
  min-height: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-soft) 88%, transparent);
}

.captcha-simple span {
  color: var(--muted);
  font-weight: 700;
}

.captcha-simple input {
  max-width: 180px;
}

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

.signup-actions .btn {
  white-space: normal;
}

.signup-path-grid {
  display: grid;
  gap: 12px;
}

.signup-path-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.signup-path-card strong,
.signup-path-card small {
  display: block;
}

.signup-path-card strong {
  font-size: 17px;
  line-height: 1.2;
}

.signup-path-card small {
  color: var(--muted);
  line-height: 1.45;
}

.signup-path-card .btn {
  justify-self: start;
  white-space: normal;
}

.signup-path-primary {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, transparent), transparent 62%),
    var(--panel-soft);
}

.signup-code-card {
  border-style: dashed;
}

.signup-code-card.is-highlighted {
  border-style: solid;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}

.signup-code-panel {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.signup-code-panel summary {
  cursor: pointer;
  color: #dce9f4;
  font-weight: 850;
}

.signup-code-panel[open] {
  gap: 12px;
}

.signup-code-panel .btn {
  justify-self: end;
}

@media (max-width: 1320px) {
  .landing-header > .btn {
    display: none;
  }
}

@media (max-width: 1180px) {
  .landing-header {
    grid-template-columns: auto 1fr;
  }

  .portal-demo {
    grid-template-columns: 1fr;
  }

  .demo-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .demo-tabs button {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .demo-tabs button:hover,
  .demo-tabs button.active {
    transform: translateY(-3px);
  }

  .landing-signup {
    grid-template-columns: 1fr;
    padding-right: clamp(18px, 5vw, 76px);
  }

  .signup-panel {
    max-width: none;
    justify-self: stretch;
  }
}

.checkout-readiness {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.checkout-readiness small {
  color: var(--muted);
  line-height: 1.4;
}

.paypal-area {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.signup-error {
  color: var(--red) !important;
}

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

.faq-grid details {
  padding: 18px;
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 780;
}

.faq-grid p {
  margin-top: 12px;
  margin-bottom: 0;
}

.landing-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid var(--border);
}

.landing-final h2 {
  min-width: 0;
  max-width: min(100%, 980px);
}

.block-editor-grid,
.media-grid {
  display: grid;
  gap: 14px;
}

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

.block-editor-card,
.media-item,
.portal-brand-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.media-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 14px;
}

.media-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 8px;
  background: var(--sidebar);
}

.media-item code {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.portal-brand-form {
  grid-column: 1 / -1;
  grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  margin-top: 8px;
}

.portal-brand-form label {
  font-size: 12px;
}

.customer-logo-link img {
  display: block;
  max-width: min(280px, 52vw);
  max-height: 64px;
  object-fit: contain;
}

.site-map-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.site-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.site-map-toolbar h3,
.site-map-toolbar p {
  margin: 0;
}

.site-map-toolbar p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.site-map-toolbar > div {
  flex: 1 1 220px;
  min-width: 0;
}

.site-map-toolbar form {
  flex: 0 1 auto;
  max-width: 100%;
}

.site-map-toolbar .btn {
  white-space: normal;
}

.empty-details-compact {
  min-height: 180px;
  margin: 0;
}

.site-attention-list {
  display: grid;
  gap: 8px;
}

.site-attention-list div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--warning) 34%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--warning) 10%, var(--panel));
  color: var(--text);
  font-size: 13px;
}

.site-map-grid,
.site-map-lower {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.site-map-grid article,
.site-map-lower article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.site-map-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.site-map-card-title .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.site-record-row {
  display: grid;
  grid-template-columns: minmax(72px, 0.35fr) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.site-record-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-record-row code,
.site-event-row code {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-record-row[data-severity="warning"] code {
  color: var(--amber);
}

.suggestion-list {
  display: grid;
  gap: 8px;
}

.suggestion-list label,
.suggestion-list-readonly > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.suggestion-list span,
.suggestion-list-readonly > div {
  min-width: 0;
}

.suggestion-list strong,
.suggestion-list small,
.suggestion-list-readonly strong,
.suggestion-list-readonly small {
  display: block;
}

.suggestion-list small,
.suggestion-list-readonly small {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.site-event-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.site-event-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

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

  .brand-intro {
    display: none;
  }

  .demo-panel,
  .feature-grid article,
  .demo-tabs button,
  .hero-tech-field,
  .tech-packet,
  .tech-blade,
  .demo-signal-layer,
  .signal-node,
  .signal-beam,
  .signal-chip {
    transition: none;
  }
}

[hidden] {
  display: none !important;
}

@media (max-width: 1520px) {
  .monitor-table th:nth-child(7),
  .monitor-table td:nth-child(7),
  .monitor-table th:nth-child(8),
  .monitor-table td:nth-child(8) {
    display: none;
  }
}

@media (max-width: 1360px) {
  :root {
    --page-pad: 14px;
  }

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

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

  .engine-panel > div:nth-child(2n) {
    border-right: 0;
  }

  .details-panel {
    position: static;
    max-height: none;
  }

  .details-panel .details-form {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .settings-extra-grid {
    grid-template-columns: 1fr;
  }

  .plan-editor-grid {
    grid-template-columns: 1fr;
  }

  .settings-block-mail .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 1180px) {
  .lower-grid {
    grid-template-columns: 1fr;
  }

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

  .brand-lockup span,
  .sidebar .brand-logo,
  .side-nav a,
  .plan-panel,
  .user-card div:not(.avatar),
  .user-card button {
    display: none;
  }

  .brand-logo-mark-light {
    display: block;
  }

  .sidebar .brand-logo-mark-light {
    display: none;
  }

  [data-theme="dark"] .brand-logo-mark-light {
    display: none;
  }

  [data-theme="dark"] .brand-logo-mark-dark,
  .sidebar .brand-logo-mark-dark {
    display: block;
  }

  .side-nav a {
    justify-content: center;
    padding: 10px;
  }

  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .user-card {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .monitor-table th:nth-child(5),
  .monitor-table td:nth-child(5) {
    display: none;
  }
}

@media (max-width: 900px) {
  .escalation-builder {
    grid-template-columns: 1fr;
  }

  .status-subscribe-panel {
    align-items: stretch;
    flex-direction: column;
  }

  #dashboard,
  #monitors,
  #incidents,
  #reports,
  #groups,
  #settings {
    scroll-margin-top: 128px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(330px, 86vw);
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 18px;
    border-right: 1px solid var(--border);
    box-shadow: 22px 0 48px rgba(0, 0, 0, 0.28);
    transform: translateX(-108%);
    transition: transform 180ms ease;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

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

  .side-nav {
    display: grid;
    gap: 8px;
  }

  .side-nav a {
    display: flex;
    justify-content: flex-start;
    min-height: 44px;
    padding: 11px 12px;
  }

  .sidebar .brand-logo {
    display: block;
    width: min(230px, 72vw);
  }

  .sidebar .brand-lockup {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 48px;
  }

  .sidebar .brand-logo-light {
    display: none !important;
  }

  .sidebar .brand-logo-dark {
    display: block !important;
    width: min(238px, calc(100vw - 96px));
  }

  .sidebar .brand-logo-mark-light,
  .sidebar .brand-logo-mark-dark {
    display: none !important;
  }

  .plan-panel {
    display: grid;
  }

  .user-card {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    justify-items: stretch;
  }

  .user-card div:not(.avatar) {
    display: grid;
    min-width: 0;
  }

  .user-card button {
    display: inline-flex;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .topbar {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .topbar-title-row {
    width: 100%;
    justify-content: space-between;
  }

  .topbar-tools {
    width: 100%;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }

  .topbar-tools > *,
  .topbar-tools > select,
  .topbar-tools > .searchbox {
    flex: 0 0 auto;
    width: auto;
  }

  .topbar-tools > .searchbox {
    flex-basis: min(250px, 70vw);
  }

  .topbar-tools > select {
    flex-basis: min(220px, 64vw);
  }

  .topbar-tools .btn,
  .topbar-tools .live-indicator {
    white-space: nowrap;
  }

  .searchbox {
    min-width: 0;
  }

  .stat-grid,
  .lower-grid,
  .client-layout,
  .monitor-sections-grid,
  .site-map-grid,
  .site-map-lower,
  .settings-block-mail .form-grid,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .client-topbar,
  .client-hero {
    align-items: stretch;
    flex-direction: column;
  }

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

  .onboarding-steps,
  .signup-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wizard-progress,
  .customer-progress {
    grid-template-columns: 1fr;
  }

  .engine-panel {
    grid-template-columns: 1fr;
  }

  .engine-panel > div {
    border-right: 0;
  }

  .compact-row-customer {
    grid-template-columns: 1fr;
  }

  .customer-actions {
    justify-content: flex-start;
  }

  .landing-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .landing-header .brand-lockup {
    justify-self: center;
  }

  .landing-header .brand-logo {
    display: block;
    width: min(275px, 76vw);
  }

  .landing-header .brand-logo-mark-light,
  .landing-header .brand-logo-mark-dark {
    display: none !important;
  }

  .landing-header nav {
    grid-column: auto;
    order: 2;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(16px, 4.8vw, 28px);
    overflow-x: visible;
    padding-bottom: 0;
    text-align: center;
  }

  .landing-hero,
  .landing-signup,
  .pricing-grid,
  .landing-proof-band,
  .portal-demo,
  .faq-grid,
  .block-editor-grid,
  .portal-brand-form {
    grid-template-columns: 1fr;
  }

  .demo-tabs {
    grid-template-columns: 1fr;
  }

  .demo-tabs button {
    grid-template-columns: 44px minmax(0, 1fr);
    justify-items: stretch;
    text-align: left;
  }

  .demo-stage {
    min-height: 560px;
  }

  .demo-panel,
  .demo-panel[data-demo-panel="add"],
  .demo-panel[data-demo-panel="alerts"] {
    grid-template-columns: 1fr;
  }

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

  .landing-hero {
    min-height: calc(100svh - 146px);
    align-content: center;
    justify-items: center;
    padding-top: clamp(46px, 8vw, 74px);
    text-align: center;
  }

  .landing-hero-mascot {
    left: 50%;
    top: 52%;
    width: min(122vw, 680px);
    max-height: 82%;
    opacity: 0.15;
    transform: translate3d(-50%, -50%, 0) scale(1);
    animation-name: mascotHeroGlowMobile;
  }

  .landing-hero-copy {
    display: grid;
    justify-items: center;
    max-width: 720px;
  }

  .landing-hero h1,
  .landing-hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .landing-actions,
  .landing-proof {
    justify-content: center;
  }
}

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

  input,
  select,
  textarea,
  .modal-card,
  .details-form,
  .form-grid {
    max-width: 100%;
    min-width: 0;
  }

  .modal {
    width: min(100%, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }

  .modal-card {
    width: 100%;
    overflow-x: hidden;
  }

  .details-form,
  .modal-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-card > *,
  .modal-card label,
  .modal .form-grid {
    min-width: 0;
  }

  .details-form > .form-grid,
  .modal-card > .form-grid {
    width: 100%;
  }

  .client-shell {
    width: 100%;
    overflow-x: hidden;
    padding-left: 14px;
    padding-right: 14px;
  }

  .client-topbar .brand-logo {
    width: min(210px, 72vw);
  }

  .client-topbar .brand-logo-mark {
    display: none;
  }

  .client-topbar .topbar-tools {
    width: 100%;
  }

  .client-monitor-row {
    grid-template-columns: 12px minmax(0, 1fr) auto;
  }

  .client-monitor-row time {
    display: none;
  }

  .evidence-row dl,
  .synthetic-step-row {
    grid-template-columns: 1fr;
  }

  .synthetic-step-row {
    align-items: start;
  }

  .synthetic-step-row .status-dot {
    display: none;
  }

  .topbar,
  .stat-grid,
  .workbench,
  .lower-grid,
  .view-section,
  .settings-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .view-section,
  .settings-section {
    margin-left: 0;
    margin-right: 0;
  }

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

  .form-grid,
  .resource-grid,
  .readiness-grid,
  .launch-readiness-summary {
    grid-template-columns: 1fr;
  }

  .launch-readiness-grid,
  .alert-test-grid,
  .security-checklist {
    grid-template-columns: 1fr;
  }

  .launch-readiness-card-head,
  .alert-test-grid article > div {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .launch-readiness-card-head em,
  .alert-test-grid em {
    grid-column: 2;
    max-width: none;
    text-align: left;
  }

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

  .command-box {
    grid-template-columns: 1fr;
  }

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

  .feature-grid,
  .pricing-grid,
  .onboarding-steps,
  .signup-steps {
    grid-template-columns: 1fr;
  }

  .landing-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .landing-header > .btn {
    display: none;
  }

  .landing-header nav {
    gap: clamp(16px, 5.4vw, 24px);
    font-size: clamp(14px, 4vw, 17px);
    font-weight: 820;
    line-height: 1.1;
  }

  .landing-header nav a {
    min-height: 30px;
    white-space: nowrap;
  }

  .landing-hero {
    min-height: calc(100svh - 154px);
    padding: clamp(34px, 8vw, 54px) 22px 30px;
  }

  .landing-hero h1 {
    max-width: 11ch;
    font-size: clamp(42px, 13vw, 56px);
    line-height: 1.07;
  }

  .landing-hero p {
    max-width: 17.5em;
    font-size: clamp(18px, 5vw, 21px);
    line-height: 1.5;
  }

  .landing-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 540px);
    gap: 12px;
    margin-top: 26px;
  }

  .landing-actions .btn {
    justify-content: center;
    min-height: 58px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: clamp(15px, 4.1vw, 18px);
    font-weight: 860;
    line-height: 1.08;
    text-align: center;
    white-space: normal;
  }

  .landing-proof,
  .landing-dashboard-preview {
    display: none;
  }

  .landing-hero-mascot {
    top: 55%;
    width: min(138vw, 610px);
    max-height: none;
    opacity: 0.18;
  }

  .landing-hero::before {
    background-size: 74px 74px;
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
  }

  .brand-intro-logo {
    width: min(82vw, 520px);
  }

  @keyframes brandIntroLogo {
    0% {
      opacity: 0;
      transform: translate3d(0, 4vh, 0) scale(1.12);
    }
    14% {
      opacity: 1;
    }
    62% {
      transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
      opacity: 0;
      transform: translate3d(calc(-34vw + 100px), calc(-43vh + 42px), 0) scale(0.26);
    }
  }

  .preview-rows div,
  .preview-topline {
    grid-template-columns: 1fr;
  }

  .landing-final {
    align-items: flex-start;
    flex-direction: column;
  }

  .incident-row {
    grid-template-columns: 12px 1fr;
  }

  .incident-actions,
  .incident-action-note {
    grid-column: 2;
    justify-self: start;
  }

  .mini-row,
  .mini-row-wide,
  .location-check-row,
  .log-row,
  .site-record-row,
  .site-event-row,
  .client-monitor-row {
    grid-template-columns: 12px 1fr;
  }

  .incident-row time,
  .incident-row em,
  .mini-row time,
  .location-check-row span,
  .location-check-row time,
  .log-row time,
  .client-monitor-row em,
  .client-monitor-row time {
    justify-self: start;
  }

  .site-record-row {
    grid-template-columns: 1fr;
  }

  .site-event-row code {
    grid-column: 2;
  }

  .fineprint-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 14px;
  }
}

@media (max-width: 900px) {
  body .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body .topbar-tools {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }

  body .topbar-tools > *,
  body .topbar-tools > select,
  body .topbar-tools > .searchbox {
    flex: 0 0 auto !important;
    width: auto !important;
  }

  body .topbar-tools > .searchbox {
    flex-basis: min(250px, 70vw) !important;
  }

  body .topbar-tools > select {
    flex-basis: min(220px, 64vw) !important;
  }
}
