:root {
  color-scheme: light;
  --ink: #0b1118;
  --ink-soft: #344351;
  --muted: #5e6b78;
  --canvas: #e9edf1;
  --surface: #ffffff;
  --surface-soft: #f3f6f8;
  --line: #c8d1da;
  --line-soft: #dde3e8;
  --blue: #0d6efd;
  --blue-dark: #075ab9;
  --blue-soft: #e9f2ff;
  --brand-interactive: #034b9b;
  --cyan: #168fc9;
  --cyan-soft: #e7f5fb;
  --green: #15803d;
  --green-soft: #eef8f1;
  --healthy: #15803d;
  --healthy-bg: #eef8f1;
  --red: #c9251e;
  --red-soft: #f7eeee;
  --critical: #c9251e;
  --critical-bg: #f7eeee;
  --amber: #a95005;
  --amber-soft: #fff5e9;
  --warning: #a95005;
  --warning-bg: #fff5e9;
  --steel: #47749f;
  --steel-soft: #edf3f8;
  --shadow: 0 12px 32px rgb(15 23 33 / 10%), 0 1px 0 rgb(255 255 255 / 76%) inset;
  font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background-color: var(--canvas);
  background-image:
    linear-gradient(rgb(13 110 253 / 3.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(13 110 253 / 3.5%) 1px, transparent 1px),
    radial-gradient(circle at 88% 0%, rgb(13 110 253 / 10%), transparent 30%);
  background-size: 24px 24px, 24px 24px, auto;
  font-size: 17px;
  line-height: 1.5;
}

a {
  color: #075fbf;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-interactive);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgb(13 110 253 / 30%);
  outline-offset: 3px;
}

button,
summary {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 7px;
  background: #05070a;
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1.05rem;
}

.shell {
  width: min(1580px, 100%);
  margin: 0 auto;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100dvh;
}

.dashboard-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 100dvh;
  flex-direction: column;
  padding: 26px 18px 22px;
  border-right: 1px solid #263442;
  background:
    linear-gradient(90deg, transparent 0 92%, rgb(13 110 253 / 8%)),
    linear-gradient(180deg, #040609, #0b1016 55%, #070c12);
  box-shadow: 2px 0 20px rgb(5 15 25 / 16%);
  color: white;
}

.dashboard-nav::after {
  position: absolute;
  inset: 0 0 0 auto;
  width: 2px;
  background: linear-gradient(180deg, transparent 3%, #2b8cff 20%, #7ac6ff 50%, #2b8cff 80%, transparent 97%);
  box-shadow: 0 0 18px rgb(43 140 255 / 55%);
  content: "";
}

.brand {
  display: block;
  margin: 0 3px 25px;
}

.brand-logo {
  display: grid;
  height: 94px;
  padding: 8px 10px 14px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #3a4652;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 8%), 0 10px 30px rgb(0 0 0 / 35%);
}

.brand-logo img {
  display: block;
  width: 178px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-system {
  position: relative;
  display: grid;
  justify-items: center;
  margin-top: 10px;
  padding: 10px 12px 11px;
  overflow: hidden;
  border: 1px solid #293a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #141d26, #0a1016);
  box-shadow: 0 1px 0 rgb(255 255 255 / 7%) inset, 0 8px 20px rgb(0 0 0 / 22%);
  text-align: center;
}

.brand-system::before {
  position: absolute;
  inset: 0 20px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3b9cff, transparent);
  box-shadow: 0 0 8px rgb(59 156 255 / 45%);
  content: "";
}

.brand-system strong {
  color: #f3f7fb;
  font-size: 13px;
  letter-spacing: 0.15em;
}

.brand-system span {
  margin-top: 3px;
  color: #a3b0bd;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dashboard-nav-label {
  margin: 0 10px 9px;
  color: #73879c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dashboard-tabs {
  display: grid;
  gap: 5px;
}

.dashboard-nav-menu > summary {
  display: none;
}

.dashboard-nav-menu:not([open]) > .dashboard-tabs {
  display: grid;
}

.dashboard-tab {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #b6c2ce;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.dashboard-tab:hover {
  border-color: #263c52;
  background: #101923;
  color: #e8f2ff;
}

.dashboard-tab[aria-selected="true"] {
  border-color: #2d4661;
  background: linear-gradient(90deg, #172538, #111a25);
  box-shadow: inset 3px 0 #2b8cff, 0 0 18px rgb(43 140 255 / 10%);
  color: white;
}

.monitor-state {
  min-height: 92px;
  margin-top: auto;
  padding: 18px 16px;
  border: 1px solid #315369;
  border-radius: 11px;
  background:
    radial-gradient(circle at 10% 20%, rgb(33 198 107 / 12%), transparent 34%),
    linear-gradient(145deg, #14212a, #091117);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 4%) inset, 0 12px 28px rgb(0 0 0 / 28%);
}

.monitor-state strong {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f2f8ff;
  font-size: 16px;
}

.monitor-state strong::before {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border: 1px solid #9affc2;
  border-radius: 50%;
  background: #21c66b;
  box-shadow: 0 0 5px #21c66b, 0 0 15px rgb(33 198 107 / 85%);
  content: "";
}

.monitor-state--attention strong::before {
  border-color: #ffc39e;
  background: #e05b32;
  box-shadow: 0 0 5px #e05b32, 0 0 15px rgb(224 91 50 / 72%);
}

.monitor-state span {
  display: block;
  margin-top: 8px;
  color: #b4c3d1;
  font-size: 14px;
  line-height: 1.35;
}

.dashboard-content {
  min-width: 0;
  padding: 27px 30px 36px;
  scroll-margin-top: 12px;
}

.dashboard-toolbar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-bottom: 18px;
  padding: 10px 12px 10px 18px;
  border: 1px solid #b7c4d0;
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgb(13 110 253 / 5%), transparent 36%),
    linear-gradient(180deg, #fff, #f1f4f7);
  box-shadow: 0 8px 20px rgb(15 23 33 / 8%);
}

.dashboard-last-checked {
  display: grid;
  gap: 1px;
  margin: 0;
  text-align: right;
}

.dashboard-last-checked span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-last-checked strong {
  color: var(--ink);
  font-size: 15px;
}

.dashboard-last-checked .dashboard-refresh-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.refresh-status-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid #064c9d;
  border-radius: 8px;
  background: linear-gradient(180deg, #1d83f2, #0758b5);
  box-shadow:
    0 7px 16px rgb(7 88 181 / 22%),
    0 1px 0 rgb(255 255 255 / 28%) inset;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.refresh-status-button:hover:not(:disabled) {
  border-color: #033b7c;
  background: linear-gradient(180deg, #1477de, #034b9b);
  box-shadow:
    0 9px 20px rgb(7 88 181 / 28%),
    0 1px 0 rgb(255 255 255 / 28%) inset;
}

.refresh-status-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.refresh-status-icon {
  flex: 0 0 20px;
}

.refresh-status-button.is-refreshing .refresh-status-icon {
  animation: refreshSpin 650ms linear infinite;
}

.dashboard-panel[hidden] {
  display: none;
}

.view-heading {
  position: relative;
  min-height: 104px;
  margin-bottom: 20px;
  padding: 0 280px 18px 0;
  border-bottom: 1px solid var(--line);
}

.view-heading::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: linear-gradient(90deg, #0d6efd 0 18%, #54adff 18% 31%, #aab4bf 31% 76%, transparent);
  box-shadow: 0 0 8px rgb(13 110 253 / 30%);
  content: "";
}

.eyebrow {
  margin: 0 0 5px;
  color: #126ed6;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta,
.small {
  color: var(--muted);
}

.meta {
  margin: 7px 0 0;
  font-size: 16px;
}

.small {
  font-size: 14px;
}

.metric {
  font-variant-numeric: tabular-nums;
}

.overall {
  position: absolute;
  top: 2px;
  right: 0;
  width: 250px;
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid #3b4652;
  border-radius: 10px;
  background: linear-gradient(145deg, #1b222b, #10161d);
  box-shadow: 0 10px 24px rgb(15 23 33 / 14%);
}

.overall p {
  margin: 7px 0 0;
  color: #bac4ce;
  font-size: 13px;
  line-height: 1.35;
}

.overall .status {
  display: flex;
  width: 210px;
  min-width: 210px;
  margin-inline: auto;
}

.overview-signals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.signal-card {
  position: relative;
  display: grid;
  min-height: 126px;
  align-content: center;
  overflow: hidden;
  padding: 17px 18px 16px;
  border: 1px solid #c4ced7;
  border-radius: 11px;
  background: linear-gradient(145deg, #fff, #f0f4f7);
  box-shadow: var(--shadow);
}

.signal-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--signal);
  content: "";
}

.signal-card::after {
  position: absolute;
  inset: 0 16px auto auto;
  width: 54px;
  height: 2px;
  background: var(--signal);
  box-shadow: 0 0 9px color-mix(in srgb, var(--signal) 55%, transparent);
  content: "";
}

.signal-card--red { --signal: var(--red); }
.signal-card--green { --signal: var(--green); }
.signal-card--blue { --signal: var(--blue); }
.signal-card--steel { --signal: var(--steel); }

.signal-label {
  color: #53616e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.signal-value {
  margin-top: 2px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.signal-value--time {
  font-size: 17px;
  letter-spacing: 0;
}

.signal-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  position: relative;
  min-width: 0;
  margin-top: 17px;
  overflow: hidden;
  padding: 19px 20px;
  border: 1px solid #c8d0d9;
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section::before {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #0d6efd, #66b4ff 32%, #9faab6 70%, transparent);
  background-size: 180% 100%;
  content: "";
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 18px;
  margin: -19px -20px 17px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #fff, #f4f6f8);
}

.section-heading h2 {
  color: #0a0e13;
}

.section-heading .meta {
  margin-top: 4px;
  font-size: 15px;
}

.summary-grid,
.assurance-grid,
.dependency-grid,
.maintenance-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 12px;
}

.summary-grid {
  margin: 0;
}

.capacity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.capacity-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid #bdc9d5;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #eef4f8);
  box-shadow: 0 6px 16px rgb(15 23 33 / 7%);
}

.capacity-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.capacity-card__heading h3 {
  margin: 7px 0 0;
  color: #0a0e13;
  font-size: 18px;
}

.capacity-card__heading .status {
  width: auto;
  min-width: 132px;
}

.capacity-card__value {
  margin: 20px 0 9px;
  color: #0b1118;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.capacity-progress {
  width: 100%;
  height: 13px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #dbe4eb;
  color: var(--blue);
}

.capacity-progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #dbe4eb;
}

.capacity-progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--blue);
}

.capacity-progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--blue);
}

.capacity-progress--warning::-webkit-progress-value,
.capacity-progress--critical::-webkit-progress-value {
  background: var(--amber);
}

.capacity-progress--critical::-webkit-progress-value {
  background: var(--red);
}

.capacity-progress--warning::-moz-progress-bar { background: var(--amber); }
.capacity-progress--critical::-moz-progress-bar { background: var(--red); }

.capacity-card__note,
.capacity-explainer {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.server-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.server-fact {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid #ccd5de;
  border-radius: 9px;
  background: linear-gradient(145deg, #fff, #f2f6f9);
}

.server-fact dt {
  color: #52606d;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.server-fact dd {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
  color: #0b1118;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
}

.capacity-explainer {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--blue);
  background: #eef5fb;
}

.summary-card,
.assurance-card,
.dependency-card,
.maintenance-card,
.history-item {
  min-width: 0;
  padding: 15px;
  border: 1px solid #ccd5de;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #f2f6f9);
  box-shadow: 0 4px 12px rgb(15 23 33 / 5%);
}

.summary-card {
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue);
  content: "";
}

.summary-card:nth-child(2n)::before { background: var(--cyan); }
.summary-card:nth-child(3n)::before { background: var(--green); }
.summary-card:nth-child(4n)::before { background: var(--steel); }

.summary-card dt,
.audit-grid dt,
.maintenance-details dt,
.history-item dt,
.result-details dt {
  color: #52606d;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.summary-card dd {
  margin: 4px 0 0;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
}

.summary-card dd.summary-card-time {
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.4;
}

.summary-card span,
.assurance-card .small,
.dependency-card .small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.assurance-card h3,
.dependency-card h3,
.maintenance-card h3 {
  margin-top: 11px;
}

.assurance-card p,
.dependency-card p,
.maintenance-card p,
.history-item p {
  margin: 7px 0 0;
}

.status {
  display: inline-flex;
  width: 148px;
  min-width: 148px;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.status::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 4px currentColor, 0 0 9px color-mix(in srgb, currentColor 48%, transparent);
  content: "";
}

.status--healthy {
  border-color: #9ecfb0;
  background: var(--green-soft);
  color: var(--green);
}

.status--warning {
  border-color: #e2b77b;
  background: var(--amber-soft);
  color: var(--amber);
}

.status--critical {
  border-color: #dca8a5;
  background: var(--red-soft);
  color: var(--red);
}

.status--unknown,
.status--planned,
.status--disabled,
.status--maintenance,
.status--intentionally_not_configured,
.status--retired {
  border-color: #b9cad8;
  background: var(--steel-soft);
  color: #456a8b;
}

.incident-list,
.history-list,
.evidence-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.incident {
  position: relative;
  padding: 18px 18px 17px 22px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fff;
}

.incident::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 12px 0 0 12px;
  background: var(--incident-tone);
  content: "";
}

.incident--critical { --incident-tone: var(--red); }
.incident--warning { --incident-tone: #c66a0a; }

.incident .status {
  width: 210px;
  min-width: 210px;
  height: 40px;
  min-height: 40px;
}

.incident h3 {
  margin-top: 14px;
  font-size: 19px;
}

.incident p {
  margin: 8px 0 0;
}

.empty-state {
  padding: 17px;
  border: 1px dashed #aeb9c4;
  border-radius: 9px;
  background: #f7f9fa;
  color: var(--muted);
}

.action-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 0;
}

.read-only-callout {
  margin: 17px 0 0;
  padding: 15px;
  border: 1px solid #718293;
  border-left: 5px solid var(--blue);
  border-radius: 9px;
  background: #f0f5f9;
  font-weight: 650;
}

.backup-readiness {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 132px;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 24px 26px;
  border: 1px solid #263746;
  border-left: 5px solid var(--backup-tone, var(--steel));
  border-radius: 11px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--backup-tone, var(--steel)) 13%, transparent), transparent 44%),
    linear-gradient(145deg, #18222c, #0a1118);
  box-shadow: 0 12px 28px rgb(15 23 33 / 17%);
  color: white;
}

.backup-readiness::after {
  position: absolute;
  inset: 0 18% auto 4%;
  height: 1px;
  background: linear-gradient(90deg, var(--backup-tone, var(--steel)), transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--backup-tone, var(--steel)) 55%, transparent);
  content: "";
}

.backup-readiness--protected { --backup-tone: #32ad66; }
.backup-readiness--attention { --backup-tone: #dc8b31; }
.backup-readiness--critical { --backup-tone: #e05b55; }
.backup-readiness--not-configured { --backup-tone: #7095b5; }

.backup-readiness__label {
  display: block;
  margin-bottom: 6px;
  color: #9eb0c0;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.backup-readiness h2 {
  max-width: 760px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.backup-readiness p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #c3ced8;
}

.backup-readiness .status {
  width: 180px;
  min-width: 180px;
  min-height: 42px;
}

.backup-rails {
  display: grid;
  gap: 14px;
}

.backup-rail {
  --rail-tone: var(--steel);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #bdc9d4;
  border-radius: 11px;
  background: linear-gradient(145deg, #fff, #f1f5f8);
  box-shadow: 0 6px 16px rgb(15 23 33 / 7%);
}

.backup-rail--protected { --rail-tone: var(--green); }
.backup-rail--attention { --rail-tone: var(--amber); }
.backup-rail--critical { --rail-tone: var(--red); }

.backup-rail__header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 13px 19px;
  border-bottom: 1px solid var(--line-soft);
  border-left: 4px solid var(--rail-tone);
  background: linear-gradient(180deg, #fff, #f3f6f8);
}

.backup-rail__header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.backup-rail__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 20px 18px 19px;
}

.backup-node {
  position: relative;
  min-width: 0;
  padding: 0 21px 0 45px;
}

.backup-node:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 16px;
  right: -4px;
  left: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--rail-tone), #aab7c2);
  content: "";
}

.backup-node__mark {
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 7px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid var(--rail-tone);
  border-radius: 50%;
  background: white;
  color: var(--rail-tone);
  box-shadow: 0 0 0 4px #f4f7f9;
}

.backup-node__mark svg {
  width: 14px;
  height: 14px;
}

.backup-node dt {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 100%;
  padding: 5px 7px;
  background: #f4f7f9;
  color: #263542;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.045em;
  line-height: 1.2;
  text-transform: uppercase;
}

.backup-node dd {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
}

.backup-node dd strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 16px;
}

.backup-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.backup-detail-panel {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--surface-soft);
}

.backup-detail-panel h3 {
  margin-bottom: 12px;
}

.backup-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 16px;
  margin: 0;
}

.backup-facts div {
  min-width: 0;
}

.backup-facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.backup-facts dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.backup-scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.backup-scope-list li {
  position: relative;
  padding-left: 21px;
}

.backup-scope-list li::before {
  position: absolute;
  top: 0.65em;
  left: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--blue-dark);
  border-radius: 2px;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.audit-grid,
.maintenance-details,
.result-details dl,
.history-item dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 13px 0 0;
}

.audit-grid dd,
.maintenance-details dd,
.history-item dd,
.result-details dd {
  min-width: 0;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.review-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-panel {
  min-width: 0;
}

.review-panel > h3 {
  margin-bottom: 11px;
}

.credential-panel {
  margin-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.credential-panel > .section-heading {
  align-items: center;
  margin: 0;
  padding: 18px 0 16px;
  background: transparent;
}

.credential-panel > .section-heading > div {
  min-width: 0;
}

.credential-panel > .section-heading > .status {
  width: 180px;
  min-width: 180px;
  min-height: 42px;
  margin: 0;
  padding-inline: 14px;
}

.review-disclosure-list,
.protection-proof-stack {
  display: grid;
  gap: 12px;
  scroll-margin-top: 20px;
}

.review-disclosure {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c5d0db;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #f3f7fa);
  box-shadow: 0 4px 12px rgb(15 23 33 / 5%);
}

.review-disclosure > summary {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: #0a0e13;
  cursor: pointer;
  list-style: none;
}

.review-disclosure > summary::-webkit-details-marker {
  display: none;
}

.review-disclosure > summary > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.review-disclosure > summary strong {
  font-size: 17px;
  line-height: 1.3;
}

.review-disclosure > summary span span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.review-disclosure > summary::after {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-right: 2px solid #35516c;
  border-bottom: 2px solid #35516c;
  content: "";
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.review-disclosure[open] > summary {
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #fff, #edf5fc);
}

.review-disclosure[open] > summary::after {
  transform: rotate(225deg);
}

.review-disclosure > summary:hover {
  background: #edf5fc;
}

.review-disclosure > summary:focus-visible {
  outline: 3px solid rgb(13 110 253 / 30%);
  outline-offset: -3px;
}

.review-disclosure-body {
  min-width: 0;
  padding: 18px;
}

.review-disclosure-body > :first-child {
  margin-top: 0;
}

.review-disclosure-body > :last-child {
  margin-bottom: 0;
}

.protection-proof-stack {
  gap: 18px;
}

.proof-panel {
  width: 100%;
  min-width: 0;
  padding: 18px;
  border: 1px solid #c5d0db;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #f3f7fa);
  box-shadow: 0 4px 12px rgb(15 23 33 / 5%);
}

.proof-panel > h3 {
  margin: 0 0 4px;
  color: #0a0e13;
  font-size: 19px;
}

.proof-panel > .meta {
  margin: 0 0 15px;
}

.section-subheading {
  margin: 20px 0 11px;
}

.section-heading + .section-subheading {
  margin-top: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 11px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

th {
  color: #4c5a67;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.app-name {
  min-width: 220px;
}

.app-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.app-check-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #bdc9d5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgb(15 23 33 / 8%);
}

.app-check-card::before {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #0d6efd, #72b7ff, transparent 82%);
  box-shadow: 0 0 12px rgb(13 110 253 / 34%);
  content: "";
}

.app-check-heading {
  display: flex;
  min-height: 100px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 17px 14px;
  border-bottom: 1px solid #cbd6df;
  background:
    linear-gradient(90deg, rgb(13 110 253 / 8%), transparent 42%),
    linear-gradient(180deg, #fff, #eef3f7);
}

.app-check-heading h3 {
  color: #07121d;
  font-size: 18px;
}

.app-check-heading p {
  margin: 5px 0 0;
}

.provider {
  --provider: var(--steel);
  --provider-bg: var(--steel-soft);
  --provider-border: #b9cad8;
  display: inline-flex;
  width: 180px;
  min-width: 180px;
  height: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--provider-border);
  border-radius: 999px;
  background: var(--provider-bg);
  color: var(--provider);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.provider::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 3px;
  background: var(--provider);
  content: "";
  transform: rotate(45deg);
}

.provider--ovh {
  --provider: #086abf;
  --provider-bg: #e7f2fc;
  --provider-border: #afd0ec;
}

.provider--hostinger {
  --provider: #087c9f;
  --provider-bg: #e6f5f8;
  --provider-border: #a9d5df;
}

.provider--vercel {
  --provider: #385f83;
  --provider-bg: #edf4f9;
  --provider-border: #b8cad9;
}

.provider--shopify {
  --provider: #267a3a;
  --provider-bg: #eaf7ed;
  --provider-border: #b8dec1;
}

.provider--hetrix {
  --provider: #13778d;
  --provider-bg: #e8f6f8;
  --provider-border: #abd5dc;
}

.app-check-statuses {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 9px;
  margin: 0;
  padding: 14px;
  background:
    linear-gradient(rgb(13 110 253 / 2.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(13 110 253 / 2.5%) 1px, transparent 1px),
    #eaf0f4;
  background-size: 14px 14px, 14px 14px, auto;
}

.app-check-statuses > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 11px;
  border: 1px solid #cbd5de;
  border-radius: 9px;
  background: linear-gradient(145deg, #fff, #f2f6f9);
  box-shadow: 0 3px 10px rgb(15 23 33 / 6%), 0 1px 0 white inset;
}

.app-check-statuses dt {
  margin-bottom: 8px;
  color: #080b0f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.app-check-statuses dd {
  margin: 0;
}

.app-check-statuses .status {
  width: 100%;
  min-width: 0;
  height: 38px;
  min-height: 38px;
  padding: 0 7px;
  font-size: 13px;
}

.result-list {
  display: grid;
  gap: 8px;
}

.result-card {
  overflow: clip;
  border: 1px solid #ccd5de;
  border-radius: 9px;
  background: var(--surface);
}

.result-card summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 190px 122px;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 11px 14px 11px 54px;
  cursor: pointer;
  list-style: none;
}

.result-card summary::-webkit-details-marker {
  display: none;
}

.result-card summary::before {
  position: absolute;
  left: 14px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid #d3dae2;
  border-radius: 7px;
  background: linear-gradient(180deg, #f8fafb, #e7ecf1);
  color: #46647f;
  content: "›";
  font-size: 20px;
  font-weight: 900;
}

.result-card[open] summary::before {
  transform: rotate(90deg);
}

.result-summary {
  display: contents;
}

.result-title {
  min-width: 0;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.result-time {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.result-card summary > .status {
  width: 112px;
  min-width: 112px;
  justify-self: end;
}

.result-details {
  padding: 4px 18px 18px 54px;
  border-top: 1px solid var(--line-soft);
  background: #f8fafb;
}

.result-details p {
  margin: 12px 0 0;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px -20px -19px;
  padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
  background: #f6f8fa;
}

.pagination--section {
  margin-top: 16px;
  border-top-color: var(--line);
}

.pagination[hidden] {
  display: none;
}

[data-page-item][hidden] {
  display: none !important;
}

.pagination-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.page-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid #aeb9c4;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #edf1f4);
  color: #2e3945;
  font-weight: 750;
  cursor: pointer;
}

.page-button:hover:not(:disabled) {
  border-color: #6f879e;
  background: linear-gradient(180deg, #fff, #e3e9ee);
}

.page-button[aria-current="page"] {
  border-color: #0b5ec4;
  background: linear-gradient(180deg, #2184f4, #075ab9);
  box-shadow: 0 0 14px rgb(13 110 253 / 28%);
  color: white;
}

.page-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.disclosure-section {
  padding-bottom: 0;
}

.disclosure-section > summary {
  margin-bottom: 0;
  cursor: pointer;
  list-style: none;
}

.disclosure-section > summary::-webkit-details-marker {
  display: none;
}

.disclosure-label {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid #aeb9c4;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #e8edf1);
  color: #314252;
  font-size: 14px;
  font-weight: 800;
}

.disclosure-section[open] .disclosure-label {
  font-size: 0;
}

.disclosure-section[open] .disclosure-label::after {
  content: "Hide Details";
  font-size: 14px;
}

.disclosure-content {
  padding: 18px 0 20px;
}

.runbook-list {
  margin: 14px 0 0;
  padding-left: 1.4rem;
}

.runbook-list li {
  margin-top: 10px;
  padding-left: 4px;
}

.shell--narrow {
  width: min(920px, calc(100% - 24px));
  padding: 20px 0;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.masthead .overall {
  position: static;
}

@media (max-width: 1180px) {
  .overview-signals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-check-grid {
    grid-template-columns: 1fr;
  }

  .capacity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .server-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .dashboard-layout {
    display: block;
  }

  .dashboard-nav {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 14px;
  }

  .dashboard-nav > * {
    min-width: 0;
  }

  .dashboard-nav::after {
    inset: auto 0 0;
    width: auto;
    height: 2px;
  }

  .brand {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 10px;
    align-items: stretch;
    margin: 0 0 13px;
  }

  .brand-system {
    margin: 0;
  }

  .dashboard-nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .dashboard-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .dashboard-nav-menu:not([open]) > .dashboard-tabs {
    display: none;
  }

  .dashboard-nav-menu > summary {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 14px;
    border: 1px solid #31506c;
    border-radius: 8px;
    background: linear-gradient(180deg, #172538, #101923);
    color: white;
    cursor: pointer;
    list-style: none;
  }

  .dashboard-nav-menu > summary::-webkit-details-marker {
    display: none;
  }

  .dashboard-nav-menu > summary::after {
    color: #73b8ff;
    content: "+";
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
  }

  .dashboard-nav-menu[open] > summary::after {
    content: "−";
  }

  .dashboard-nav-menu > summary span {
    color: #9eb0c0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .dashboard-nav-menu > summary strong {
    min-width: 0;
    margin-left: auto;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-nav-menu[open] > .dashboard-tabs {
    margin-top: 8px;
  }

  .dashboard-tab {
    width: 100%;
    padding: 0 14px;
  }

  .monitor-state {
    min-height: 78px;
    margin-top: 12px;
    padding: 14px 16px;
  }

  .dashboard-content {
    padding: 21px 16px 30px;
  }

  .capacity-grid {
    grid-template-columns: 1fr;
  }

  .server-facts {
    grid-template-columns: 1fr;
  }

  .dashboard-toolbar {
    justify-content: space-between;
  }

  .view-heading {
    min-height: 0;
    padding-right: 0;
  }

  .overall {
    position: static;
    width: 100%;
    margin-top: 15px;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .backup-readiness {
    grid-template-columns: 1fr;
  }

  .backup-readiness .status {
    width: 100%;
  }

  .backup-rail__track {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 18px;
  }

  .backup-node {
    min-height: 104px;
    padding: 0 14px 24px 52px;
  }

  .backup-node:last-child {
    min-height: 0;
    padding-bottom: 0;
  }

  .backup-node:not(:last-child)::after {
    top: 22px;
    right: auto;
    bottom: -4px;
    left: 27px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--rail-tone), #aab7c2);
  }

  .backup-node__mark {
    left: 13px;
  }

  .backup-detail-grid {
    grid-template-columns: 1fr;
  }

  .result-card summary {
    grid-template-columns: minmax(0, 1fr) 112px;
    padding-left: 52px;
  }

  .result-summary {
    display: grid;
    gap: 3px;
  }

  .result-time {
    grid-column: 1;
  }

  .result-card summary > .status {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 2rem;
  }

  .brand-system {
    min-height: 58px;
  }

  .overview-signals {
    grid-template-columns: 1fr;
  }

  .backup-readiness {
    padding: 21px 18px;
  }

  .backup-rail__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .backup-rail__header .status {
    width: 100%;
  }

  .backup-facts,
  .backup-scope-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 17px 16px;
  }

  .section-heading {
    display: block;
    margin: -17px -16px 15px;
    padding: 17px 16px 15px;
  }

  .section-heading > .small,
  .section-heading > .status,
  .disclosure-label {
    margin-top: 12px;
  }

  .credential-panel > .section-heading {
    display: block;
    margin: 0;
    padding: 17px 0 15px;
  }

  .credential-panel > .section-heading > .status {
    width: 100%;
    min-width: 0;
    margin-top: 12px;
  }

  .dashboard-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .dashboard-last-checked {
    text-align: left;
  }

  .refresh-status-button {
    width: 100%;
  }

  .app-check-heading {
    display: block;
    min-height: 0;
  }

  .provider {
    width: 180px;
    margin-top: 12px;
  }

  .app-check-statuses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pagination {
    align-items: flex-start;
    flex-direction: column;
    margin: 16px -16px -17px;
    padding: 14px 16px;
  }

  .pagination-controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .page-button {
    flex: 1 1 auto;
  }

  .table-wrap {
    overflow: visible;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  tr {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
  }

  td {
    display: grid;
    grid-template-columns: minmax(105px, 38%) 1fr;
    gap: 10px;
    padding: 8px 0;
    border: 0;
  }

  td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
  }

  .audit-grid,
  .maintenance-details,
  .history-item dl,
  .result-details dl {
    grid-template-columns: 1fr;
  }

  .result-card summary {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 14px 12px 14px 52px;
  }

  .result-card summary > .status {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .result-details {
    padding: 4px 14px 16px;
  }
}

@media (max-width: 430px) {
  .dashboard-content {
    padding-inline: 12px;
  }

  .app-check-statuses {
    grid-template-columns: 1fr;
  }

  .incident .status {
    width: 100%;
    min-width: 0;
  }

  td {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@keyframes ledPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

.dashboard-sign-out {
  margin-top: 12px;
}

.dashboard-sign-out button {
  width: 100%;
  min-height: 44px;
  border: 1px solid #2d4052;
  border-radius: 9px;
  background: #111d28;
  color: #c9d8e6;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.dashboard-sign-out button:hover {
  border-color: #4e789d;
  background: #172838;
  color: #fff;
}

.dashboard-sign-out button:focus-visible,
.login-form input:focus-visible,
.login-button:focus-visible {
  outline: 3px solid #5aa7ff;
  outline-offset: 2px;
}

.login-page {
  min-height: 100dvh;
  margin: 0;
  background:
    linear-gradient(rgba(13, 35, 55, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 35, 55, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 80% 15%, rgba(44, 139, 232, 0.16), transparent 36%),
    #edf3f8;
  background-size: 24px 24px, 24px 24px, auto, auto;
  color: #0a1621;
}

.login-shell {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 460px);
  padding: 34px;
  border: 1px solid #b8c9d8;
  border-top: 4px solid #1878d1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 65px rgba(15, 39, 61, 0.18);
}

.login-logo {
  display: block;
  width: 190px;
  height: auto;
  margin: 0 auto 28px;
}

.login-eyebrow {
  margin: 0 0 7px;
  color: #1268b8;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 0;
  color: #050b10;
  font-size: clamp(30px, 7vw, 40px);
  line-height: 1.1;
  text-align: center;
}

.login-intro {
  margin: 14px auto 26px;
  color: #526579;
  font-size: 17px;
  line-height: 1.55;
  text-align: center;
}

.login-form {
  display: grid;
  gap: 9px;
}

.login-form > label:not(.remember-device) {
  margin-top: 7px;
  color: #152536;
  font-size: 15px;
  font-weight: 800;
}

.login-form > input {
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #9eb1c3;
  border-radius: 8px;
  background: #fff;
  color: #07121c;
  font: inherit;
  font-size: 16px;
}

.remember-device {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 11px 0 8px;
  padding: 13px;
  border: 1px solid #bdd2e5;
  border-radius: 9px;
  background: #edf6fd;
  cursor: pointer;
}

.remember-device input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #0878d1;
}

.remember-device span {
  display: grid;
  gap: 3px;
  color: #122333;
  font-size: 15px;
  line-height: 1.35;
}

.remember-device small {
  color: #536b7f;
  font-size: 14px;
}

.login-button {
  min-height: 50px;
  margin-top: 4px;
  border: 1px solid #075ba6;
  border-radius: 9px;
  background: linear-gradient(180deg, #1788e8, #0869bf);
  box-shadow: 0 8px 20px rgba(8, 105, 191, 0.24);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
}

.login-button:hover {
  background: linear-gradient(180deg, #2696f3, #075da9);
}

.login-error {
  margin: 0 0 15px;
  padding: 12px 14px;
  border: 1px solid #e5a4a4;
  border-radius: 8px;
  background: #fff0f0;
  color: #991b1b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.login-card-wide {
  max-width: 560px;
}

.login-alternate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 14px;
  border: 1px solid #9db9d1;
  border-radius: 9px;
  background: #f2f7fb;
  color: #075fae;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.login-alternate:hover {
  background: #e7f2fb;
}

.login-code-expiry {
  margin: 2px 0 7px;
  color: #526579;
  font-size: 15px;
  line-height: 1.45;
}

.login-field-help {
  margin: -2px 0 5px;
  color: #526579;
  font-size: 14px;
  line-height: 1.45;
}

.login-security {
  margin: 18px 0 0;
  color: #607286;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 520px) {
  .login-shell {
    align-items: start;
    padding: 16px;
  }

  .login-card {
    margin-top: 18px;
    padding: 26px 20px;
  }

  .login-logo {
    width: 170px;
    margin-bottom: 24px;
  }
}

@keyframes refreshSpin {
  to { transform: rotate(360deg); }
}

@keyframes railScan {
  from { background-position: 100% 0; }
  to { background-position: -80% 0; }
}

.monitor-state strong::before {
  animation: ledPulse 2.4s ease-in-out infinite;
}

.section::before {
  animation: railScan 7s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .monitor-state strong::before,
  .refresh-status-button.is-refreshing .refresh-status-icon,
  .section::before {
    animation: none;
  }

  .review-disclosure > summary::after {
    transition: none;
  }
}
