:root {
  --background: #09070d;
  --background-soft: #0d0912;
  --surface: #121018;
  --surface-raised: #191520;
  --surface-hover: #211a2a;
  --surface-glass: rgba(18, 16, 24, 0.76);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(235, 105, 255, 0.28);
  --text: #f7f1fa;
  --text-soft: #b7aebd;
  --text-muted: #827989;
  --accent: #d203fc;
  --accent-bright: #eb69ff;
  --accent-deep: #7c1695;
  --green: #48dc9b;
  --green-soft: rgba(72, 220, 155, 0.12);
  --yellow: #f5bb5b;
  --yellow-soft: rgba(245, 187, 91, 0.12);
  --orange: #fb8a52;
  --orange-soft: rgba(251, 138, 82, 0.12);
  --red: #ff6680;
  --red-soft: rgba(255, 102, 128, 0.12);
  --blue: #5e9dff;
  --blue-soft: rgba(94, 157, 255, 0.12);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --shadow-accent: 0 18px 55px rgba(210, 3, 252, 0.18);
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 80px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 7%, rgba(210, 3, 252, 0.09), transparent 27rem),
    radial-gradient(circle at 90% 24%, rgba(98, 42, 130, 0.1), transparent 30rem),
    var(--background);
  color: var(--text);
  font-family:
    Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.075) 0.7px, transparent 0.7px);
  background-size: 28px 28px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 78%);
  pointer-events: none;
}

::selection {
  background: rgba(210, 3, 252, 0.4);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--background);
  border-radius: 999px;
  background: #403547;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(235, 105, 255, 0.6);
  outline-offset: 3px;
}

img {
  display: block;
}

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

h1,
h2,
h3 {
  margin-bottom: 0;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

p {
  color: var(--text-soft);
}

.hidden {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--background);
  font-weight: 800;
  opacity: 0;
  transform: translateY(-150%);
  transition: 180ms ease;
}

.skip-link:focus {
  opacity: 1;
  transform: translateY(0);
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.24;
  pointer-events: none;
}

.ambient-one {
  top: 160px;
  left: -180px;
  width: 420px;
  height: 420px;
  background: #9c24c0;
}

.ambient-two {
  top: 620px;
  right: -230px;
  width: 500px;
  height: 500px;
  background: #3f176d;
}

.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: rgba(9, 7, 13, 0.78);
  backdrop-filter: blur(22px);
}

.nav-shell {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid rgba(235, 105, 255, 0.22);
  border-radius: 15px;
  place-items: center;
  background: linear-gradient(145deg, rgba(235, 105, 255, 0.14), rgba(210, 3, 252, 0.04));
  box-shadow: 0 12px 30px rgba(210, 3, 252, 0.12);
}

.brand-mark img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: contain;
}

.brand > span:last-child {
  display: grid;
  line-height: 1.2;
}

.brand strong {
  font-size: 0.88rem;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.64rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-nav a {
  padding: 10px 13px;
  border-radius: 12px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 750;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.top-nav .nav-cta {
  margin-left: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(210, 3, 252, 0.1);
  color: var(--text);
}

.hero {
  display: grid;
  min-height: 360px;
  padding-block: 76px 58px;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.overline,
.card-kicker {
  color: var(--accent-bright);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  align-items: center;
  gap: 10px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(72, 220, 155, 0.1);
  animation: livePulse 2.4s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  letter-spacing: -0.075em;
}

.hero h1 span {
  background: linear-gradient(120deg, #fff 12%, #f18cff 55%, #ba43d5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
}

.refresh-card {
  display: flex;
  min-width: 275px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  align-items: center;
  gap: 13px;
  background: var(--surface-glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.refresh-icon {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(235, 105, 255, 0.16);
  border-radius: 12px;
  place-items: center;
  background: rgba(210, 3, 252, 0.08);
  color: var(--accent-bright);
  font-size: 1.1rem;
}

.refresh-card > div {
  display: grid;
  min-width: 0;
  flex: 1;
}

.refresh-card small {
  color: var(--text-muted);
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.refresh-card strong {
  margin-top: 2px;
  overflow: hidden;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 99px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.connection-pill.offline {
  background: var(--yellow-soft);
  color: var(--yellow);
}

.overall-card {
  position: relative;
  display: grid;
  min-height: 180px;
  padding: clamp(25px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 25px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.035), transparent 50%),
    var(--surface);
  box-shadow: var(--shadow);
}

.overall-card::after {
  position: absolute;
  top: -130px;
  right: 8%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  filter: blur(100px);
  opacity: 0.09;
  pointer-events: none;
}

.overall-orb {
  display: grid;
  width: 72px;
  height: 72px;
  border: 1px solid currentColor;
  border-radius: 22px;
  place-items: center;
  background: color-mix(in srgb, currentColor 9%, transparent);
  box-shadow: inset 0 0 24px color-mix(in srgb, currentColor 7%, transparent);
}

.overall-orb span {
  width: 15px;
  height: 15px;
  border: 4px solid color-mix(in srgb, currentColor 25%, transparent);
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 20px currentColor;
}

.overall-copy {
  min-width: 0;
}

.overall-copy h2 {
  margin-top: 6px;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
}

.overall-copy p {
  max-width: 690px;
  margin: 9px 0 0;
  font-size: 0.84rem;
}

.overall-meta {
  display: grid;
  min-width: 205px;
  padding-left: 28px;
  border-left: 1px solid var(--border);
  justify-items: end;
  text-align: right;
}

.overall-meta span {
  font-size: 0.86rem;
  font-weight: 850;
}

.overall-meta small {
  max-width: 175px;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.62rem;
}

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

.status-degraded {
  color: var(--yellow);
}

.status-partial_outage {
  color: var(--orange);
}

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

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

.status-unknown {
  color: var(--text-muted);
}

.overall-copy,
.overall-meta {
  color: var(--text);
}

.summary-grid {
  display: grid;
  padding-block: 22px 92px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.metric-card,
.infra-card,
.component-group,
.history-panel,
.incident-card,
.maintenance-card,
.recent-panel,
.admin-card,
.auth-card {
  border: 1px solid var(--border);
  background: var(--surface-glass);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.metric-card {
  display: flex;
  min-height: 180px;
  padding: 22px;
  border-radius: var(--radius);
  align-items: flex-start;
  flex-direction: column;
  transition:
    border-color 200ms ease,
    transform 320ms var(--spring);
}

.metric-card:hover {
  border-color: rgba(235, 105, 255, 0.18);
  transform: translateY(-3px);
}

.metric-icon {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: auto;
  border-radius: 11px;
  place-items: center;
  font-size: 1rem;
}

.metric-icon.purple {
  background: rgba(210, 3, 252, 0.1);
  color: var(--accent-bright);
}

.metric-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.metric-icon.green {
  background: var(--green-soft);
  color: var(--green);
}

.metric-icon.gold {
  background: var(--yellow-soft);
  color: var(--yellow);
}

.metric-card small {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card > strong {
  margin-top: 3px;
  font-size: 1.7rem;
  letter-spacing: -0.05em;
}

.metric-card > span:last-child {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.63rem;
}

.section-block {
  padding-bottom: 105px;
}

.section-heading {
  display: flex;
  margin-bottom: 30px;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.section-heading h2 {
  max-width: 720px;
  font-size: clamp(2rem, 5vw, 3.75rem);
}

.section-heading > p {
  max-width: 390px;
  margin: 0 0 5px;
  font-size: 0.78rem;
}

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

.component-group {
  overflow: hidden;
  border-radius: var(--radius);
}

.component-group-heading {
  display: flex;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.015);
}

.component-group-heading h3 {
  font-size: 0.88rem;
}

.component-group-heading span {
  color: var(--text-muted);
  font-size: 0.6rem;
}

.component-list {
  display: grid;
}

.component-row {
  display: flex;
  min-height: 86px;
  padding: 17px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.component-row + .component-row {
  border-top: 1px solid var(--border);
}

.component-copy {
  min-width: 0;
}

.component-copy strong {
  display: block;
  font-size: 0.78rem;
}

.component-copy p {
  max-width: 430px;
  margin: 4px 0 0;
  font-size: 0.66rem;
}

.uptime-window-row {
  display: flex;
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 5px;
}

.uptime-window-row span {
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.52rem;
}

.component-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.response-chip {
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.61rem;
}

.status-badge {
  display: inline-flex;
  min-width: 100px;
  padding: 6px 9px;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 99px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: color-mix(in srgb, currentColor 7%, transparent);
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.status-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

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

.infra-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius);
}

.infra-card::before {
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  content: "";
  opacity: 0.38;
}

.status-edge-operational {
  color: var(--green);
}

.status-edge-degraded {
  color: var(--yellow);
}

.status-edge-partial_outage {
  color: var(--orange);
}

.status-edge-major_outage {
  color: var(--red);
}

.status-edge-unknown {
  color: var(--text-muted);
}

.infra-card-head,
.infra-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.infra-card-head > div {
  color: var(--text);
}

.infra-card-head h3 {
  margin-top: 5px;
  font-size: 1.25rem;
}

.mini-stat-grid {
  display: grid;
  margin-top: 25px;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-stat {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
}

.mini-stat small,
.mini-stat strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-stat small {
  color: var(--text-muted);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mini-stat strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 0.78rem;
}

.infra-card-footer {
  padding-top: 17px;
  border-top: 1px solid var(--border);
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.59rem;
}

.history-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-raised);
  color: var(--text);
}

.history-controls select {
  width: 220px;
  height: 42px;
  padding: 0 35px 0 12px;
  font-size: 0.7rem;
}

.segmented {
  display: flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}

.segmented button {
  min-width: 48px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 800;
}

.segmented button.active {
  background: rgba(210, 3, 252, 0.13);
  color: var(--accent-bright);
}

.history-panel {
  padding: clamp(22px, 4vw, 38px);
  border-radius: var(--radius-lg);
}

.history-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
}

.history-summary > div {
  display: grid;
}

.history-summary small {
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-summary strong {
  margin-top: 3px;
  font-size: 2.1rem;
  letter-spacing: -0.055em;
}

.history-summary > span {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.uptime-bars {
  display: flex;
  min-height: 54px;
  margin-top: 28px;
  align-items: stretch;
  gap: 4px;
}

.uptime-bar {
  position: relative;
  min-width: 3px;
  border-radius: 4px;
  flex: 1;
  background: currentColor;
  cursor: help;
  opacity: 0.85;
  transition:
    opacity 160ms ease,
    transform 200ms var(--spring);
}

.uptime-bar:hover,
.uptime-bar:focus {
  z-index: 2;
  opacity: 1;
  transform: scaleY(1.12);
}

.uptime-bar:hover::after {
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 10px);
  left: 50%;
  width: max-content;
  max-width: 270px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #211a2a;
  box-shadow: var(--shadow);
  color: var(--text);
  content: attr(data-tooltip);
  font-size: 0.58rem;
  line-height: 1.4;
  pointer-events: none;
  transform: translateX(-50%);
}

.history-scale {
  display: flex;
  margin-top: 8px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.57rem;
}

.chart-heading {
  display: flex;
  padding-top: 31px;
  border-top: 1px solid var(--border);
  margin-top: 31px;
  align-items: start;
  justify-content: space-between;
  gap: 25px;
}

.chart-heading h3 {
  font-size: 0.88rem;
}

.chart-heading p {
  margin: 5px 0 0;
  font-size: 0.64rem;
}

.chart-heading > strong {
  color: var(--accent-bright);
  font-size: 0.75rem;
}

.chart-wrap {
  position: relative;
  min-height: 230px;
  margin-top: 18px;
}

.chart-wrap canvas {
  width: 100%;
  height: 230px;
}

.chart-empty {
  display: grid;
  min-height: 230px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.incident-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: 18px;
}

.subheading {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
}

.subheading h3 {
  font-size: 0.88rem;
}

.subheading span {
  padding: 4px 8px;
  border-radius: 99px;
  background: var(--surface-raised);
  color: var(--text-muted);
  font-size: 0.58rem;
}

.maintenance-heading {
  margin-top: 30px;
}

.incident-list {
  display: grid;
  gap: 12px;
}

.quiet-card,
.loading-card {
  display: flex;
  min-height: 90px;
  padding: 22px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.quiet-card span {
  display: grid;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
}

.incident-card,
.maintenance-card {
  padding: 22px;
  border-radius: var(--radius);
}

.severity-critical {
  border-color: rgba(255, 102, 128, 0.2);
}

.severity-major {
  border-color: rgba(251, 138, 82, 0.2);
}

.severity-minor {
  border-color: rgba(245, 187, 91, 0.2);
}

.incident-top,
.maintenance-card {
  display: flex;
  justify-content: space-between;
  gap: 25px;
}

.incident-top h3,
.maintenance-card h3 {
  margin-top: 5px;
  font-size: 1rem;
}

.incident-top time,
.maintenance-time {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 0.58rem;
}

.tag-row {
  display: flex;
  margin-top: 13px;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 0.55rem;
}

.incident-updates {
  display: grid;
  margin-top: 18px;
  gap: 12px;
}

.incident-update {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 9px;
}

.incident-update > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 7px;
  background: var(--accent-bright);
  box-shadow: 0 0 9px rgba(235, 105, 255, 0.5);
}

.incident-update strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.67rem;
  text-transform: capitalize;
}

.incident-update time {
  color: var(--text-muted);
  font-size: 0.52rem;
  font-weight: 500;
}

.incident-update p {
  margin: 3px 0 0;
  font-size: 0.63rem;
}

.resolution-note {
  padding-top: 13px;
  border-top: 1px solid var(--border);
  margin-top: 14px;
  color: var(--green);
  font-size: 0.59rem;
}

.maintenance-card p {
  max-width: 500px;
  margin: 8px 0 0;
  font-size: 0.65rem;
}

.maintenance-time {
  display: grid;
  align-content: center;
  text-align: right;
}

.maintenance-time strong {
  color: var(--text);
}

.recent-panel {
  padding: 22px;
  border-radius: var(--radius);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline .incident-card {
  padding: 17px;
  background: rgba(255, 255, 255, 0.016);
  box-shadow: none;
}

.timeline .incident-top {
  display: block;
}

.timeline .incident-top time {
  display: block;
  margin-top: 5px;
}

.timeline .incident-update p,
.timeline .tag-row {
  display: none;
}

.empty-state {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.site-footer {
  padding: 70px 0 24px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at 17% 0, rgba(210, 3, 252, 0.07), transparent 24rem),
    #08060b;
}

.footer-grid {
  display: grid;
  padding-bottom: 52px;
  grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(140px, 0.55fr));
  gap: clamp(30px, 7vw, 90px);
}

.footer-brand p {
  max-width: 430px;
  margin: 18px 0 0;
  font-size: 0.72rem;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links strong {
  margin-bottom: 7px;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  width: fit-content;
  color: var(--text-muted);
  font-size: 0.68rem;
  transition:
    color 160ms ease,
    transform 220ms var(--spring);
}

.footer-links a:hover {
  color: var(--accent-bright);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  justify-content: space-between;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.6rem;
}

/* Administrator */
.admin-body {
  min-height: 100vh;
}

.admin-shell {
  width: min(calc(100% - 36px), 1180px);
  padding: 35px 0 80px;
  margin-inline: auto;
}

.admin-brand {
  margin-bottom: 55px;
}

.auth-card {
  width: min(100%, 480px);
  padding: clamp(25px, 5vw, 42px);
  border-radius: var(--radius-lg);
  margin-inline: auto;
}

.auth-card h1 {
  margin-top: 6px;
  font-size: clamp(2rem, 7vw, 3.2rem);
}

.auth-card > p {
  margin: 15px 0 27px;
  font-size: 0.78rem;
}

.auth-card form,
.admin-card {
  display: grid;
  gap: 16px;
}

.admin-header {
  display: flex;
  margin-bottom: 35px;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.admin-header h1 {
  margin-top: 7px;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
}

.admin-header p {
  max-width: 620px;
  margin: 14px 0 0;
  font-size: 0.8rem;
}

.admin-actions,
.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.admin-card {
  padding: 23px;
  border-radius: var(--radius);
  align-content: start;
}

.admin-card-heading {
  display: flex;
  margin-bottom: 5px;
  align-items: flex-start;
  gap: 12px;
}

.admin-card-heading > span {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  border-radius: 10px;
  place-items: center;
  background: rgba(210, 3, 252, 0.1);
  color: var(--accent-bright);
  font-size: 0.58rem;
  font-weight: 900;
}

.admin-card-heading h2 {
  font-size: 1rem;
}

.admin-card-heading p {
  margin: 4px 0 0;
  font-size: 0.62rem;
}

.admin-card label,
.auth-card label {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
  font-size: 0.63rem;
  font-weight: 750;
}

.admin-card input,
.admin-card select,
.admin-card textarea,
.auth-card input {
  min-height: 43px;
  padding: 9px 11px;
  outline: none;
  font-size: 0.72rem;
  transition: border-color 160ms ease;
}

.admin-card input:focus,
.admin-card select:focus,
.admin-card textarea:focus,
.auth-card input:focus {
  border-color: var(--border-strong);
}

.admin-card textarea {
  min-height: 92px;
  resize: vertical;
}

.admin-card select[multiple] {
  min-height: 110px;
}

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

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  min-height: 41px;
  padding: 9px 14px;
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.67rem;
  font-weight: 850;
}

.primary-button {
  border: 1px solid rgba(235, 105, 255, 0.32);
  background: linear-gradient(135deg, #c51ae7, #8c169f);
  box-shadow: 0 12px 26px rgba(210, 3, 252, 0.17);
  color: #fff;
}

.secondary-button {
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--text);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
}

.form-message {
  min-height: 20px;
  margin: -3px 0 0;
  color: var(--green);
  font-size: 0.63rem;
}

.form-message.error {
  color: var(--red);
}

.admin-wide {
  margin-top: 17px;
}

.admin-records,
.audit-list {
  display: grid;
  gap: 9px;
}

.admin-record {
  display: flex;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.014);
}

.admin-record h3 {
  margin-top: 4px;
  font-size: 0.8rem;
}

.admin-record p {
  margin: 5px 0 0;
  font-size: 0.6rem;
}

.audit-row {
  display: flex;
  padding: 10px 2px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.audit-row > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audit-row strong {
  font-size: 0.65rem;
  text-transform: capitalize;
}

.audit-row span,
.audit-row time {
  color: var(--text-muted);
  font-size: 0.58rem;
}

@keyframes livePulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(72, 220, 155, 0.1), 0 0 0 rgba(72, 220, 155, 0);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(72, 220, 155, 0), 0 0 18px rgba(72, 220, 155, 0.5);
  }
}

@media (max-width: 980px) {
  .summary-grid,
  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .refresh-card {
    width: min(100%, 380px);
  }

  .overall-card {
    grid-template-columns: auto 1fr;
  }

  .overall-meta {
    padding: 18px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .incident-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  :root {
    --header-height: 70px;
  }

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

  .brand > span:last-child {
    display: none;
  }

  .top-nav a:not(.nav-cta) {
    display: none;
  }

  .top-nav .nav-cta {
    margin-left: 0;
  }

  .hero {
    min-height: 310px;
    padding-block: 60px 42px;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .overall-card {
    padding: 23px;
    border-radius: 23px;
    grid-template-columns: 1fr;
  }

  .overall-orb {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .overall-meta {
    grid-column: auto;
  }

  .summary-grid {
    padding-bottom: 75px;
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-card {
    min-height: 165px;
    padding: 17px;
  }

  .component-groups,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .component-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .component-meta {
    width: 100%;
    justify-content: space-between;
  }

  .history-controls {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .history-controls select {
    width: 100%;
  }

  .segmented button {
    flex: 1;
  }

  .history-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .uptime-bars {
    gap: 2px;
  }

  .uptime-bar:hover::after {
    display: none;
  }

  .incident-top,
  .maintenance-card {
    flex-direction: column;
    gap: 9px;
  }

  .maintenance-time {
    text-align: left;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

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

@media (max-width: 480px) {
  .nav-cta {
    padding-inline: 10px !important;
  }

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

  .metric-card {
    min-height: 150px;
  }

  .mini-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .infra-card {
    padding: 19px;
  }

  .infra-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .infra-card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

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

  .footer-brand {
    grid-column: auto;
  }

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

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

  .admin-record {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
