:root {
  color-scheme: dark;
  --bg: #080c10;
  --bg-soft: #0b1116;
  --rail: #0a0f14;
  --panel: #111820;
  --panel-2: #151e27;
  --panel-3: #1a242e;
  --line: rgba(232, 239, 244, 0.09);
  --line-strong: rgba(232, 239, 244, 0.15);
  --text: #f3f5f3;
  --text-soft: #c5ccd0;
  --muted: #82909a;
  --mint: #78d7b1;
  --mint-deep: #3ba77c;
  --amber: #e9b86d;
  --coral: #ed8078;
  --blue: #88a9ff;
  --violet: #ad98ff;
  --lulab: #9f93ff;
  --lueurs: #efb663;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.24);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --rail-width: 248px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 82% -10%, rgba(120, 215, 177, 0.08), transparent 30rem),
    radial-gradient(circle at 20% 90%, rgba(159, 147, 255, 0.055), transparent 34rem),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

h1,
h2,
p,
dl,
dd,
ul {
  margin-top: 0;
}

h1,
h2,
strong,
b {
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 5px;
  font-size: clamp(1.65rem, 2.3vw, 2.15rem);
  line-height: 1.12;
}

h2 {
  margin-bottom: 7px;
  font-size: 1.13rem;
  line-height: 1.25;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

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

.eyebrow {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.side-rail {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--rail-width);
  flex-direction: column;
  padding: 24px 16px 20px;
  border-right: 1px solid var(--line);
  background: rgba(9, 14, 19, 0.94);
  backdrop-filter: blur(22px);
}

.brand-link,
.login-brand {
  display: inline-flex;
  align-items: center;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

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

.brand-lockup b {
  font-size: 1.03rem;
  font-weight: 720;
}

.brand-lockup small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-mark {
  display: flex;
  width: 58px;
  height: 58px;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding: 13px;
  border: 1px solid rgba(120, 215, 177, 0.2);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(120, 215, 177, 0.12), rgba(136, 169, 255, 0.04));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 12px 32px rgba(0, 0, 0, 0.2);
}

.brand-mark span {
  display: block;
  width: 6px;
  border-radius: 5px;
  background: var(--mint);
  box-shadow: 0 0 18px rgba(120, 215, 177, 0.25);
}

.brand-mark span:nth-child(1) { height: 13px; opacity: 0.55; }
.brand-mark span:nth-child(2) { height: 25px; }
.brand-mark span:nth-child(3) { height: 19px; opacity: 0.75; }

.brand-mark.small {
  width: 40px;
  height: 40px;
  gap: 3px;
  padding: 9px;
  border-radius: 13px;
}

.brand-mark.small span { width: 4px; }
.brand-mark.small span:nth-child(1) { height: 9px; }
.brand-mark.small span:nth-child(2) { height: 18px; }
.brand-mark.small span:nth-child(3) { height: 13px; }

.side-rail nav {
  display: grid;
  gap: 6px;
  margin-top: 42px;
}

.nav-link {
  display: flex;
  width: 100%;
  min-height: 47px;
  align-items: center;
  gap: 13px;
  padding: 0 13px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.nav-link.active {
  background: linear-gradient(90deg, rgba(120, 215, 177, 0.13), rgba(120, 215, 177, 0.04));
  color: var(--text);
  box-shadow: inset 2px 0 var(--mint);
}

.nav-link.active .icon {
  color: var(--mint);
}

.rail-bottom {
  display: grid;
  gap: 6px;
  margin-top: auto;
}

.workspace {
  width: calc(100% - var(--rail-width));
  min-height: 100vh;
  margin-left: var(--rail-width);
}

.topbar {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 25px clamp(24px, 4vw, 58px) 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 16, 0.68);
  backdrop-filter: blur(16px);
}

.topbar > div:first-child > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.last-update {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  color: var(--text-soft);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
  transform: translateY(-1px);
}

.icon-button:disabled,
button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.status-badge {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid currentColor;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.69rem;
  font-weight: 720;
  white-space: nowrap;
}

.status-badge.compact {
  min-height: 24px;
  padding: 0 8px;
  font-size: 0.62rem;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 12%, transparent);
}

.status-up { color: var(--mint); }
.status-degraded { color: var(--amber); }
.status-down { color: var(--coral); }
.status-paused { color: var(--blue); }
.status-unknown { color: var(--muted); }

.main-content {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 34px clamp(24px, 4vw, 58px) 70px;
}

.alert-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px clamp(24px, 4vw, 58px) 0;
  padding: 13px 16px;
  border: 1px solid rgba(237, 128, 120, 0.25);
  border-radius: var(--radius-md);
  background: rgba(237, 128, 120, 0.08);
  color: var(--coral);
}

.alert-banner > div {
  flex: 1;
}

.alert-banner strong {
  font-size: 0.82rem;
}

.alert-banner p {
  margin: 1px 0 0;
  color: var(--text-soft);
  font-size: 0.76rem;
}

.alert-banner a {
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-grid,
.split-sections,
.dashboard-grid {
  display: grid;
  gap: 18px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 0.85fr);
}

.health-hero,
.attention-card,
.panel,
.section-block,
.service-panel,
.service-card,
.backup-hero {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.health-hero {
  position: relative;
  display: flex;
  min-height: 310px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  padding: clamp(27px, 4vw, 46px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 20%, rgba(120, 215, 177, 0.14), transparent 45%),
    linear-gradient(145deg, #131c23, #0e151b);
}

.health-hero::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(120, 215, 177, 0.08);
  border-radius: 50%;
  content: "";
}

.health-hero > div:first-child {
  position: relative;
  z-index: 1;
  max-width: 610px;
}

.health-hero h2 {
  max-width: 580px;
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 3.1vw, 2.65rem);
  line-height: 1.03;
}

.health-hero p:not(.eyebrow) {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.91rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 27px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border-radius: 12px;
  font-size: 0.77rem;
  font-weight: 730;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.primary-button {
  border: 1px solid var(--mint);
  background: var(--mint);
  color: #07120e;
  box-shadow: 0 10px 24px rgba(120, 215, 177, 0.14);
}

.primary-button:hover {
  background: #8fe0c0;
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.secondary-button:hover {
  border-color: rgba(120, 215, 177, 0.35);
  background: rgba(120, 215, 177, 0.07);
  transform: translateY(-1px);
}

.primary-button .icon,
.secondary-button .icon {
  width: 17px;
  height: 17px;
}

.full-button {
  width: 100%;
}

.score-ring {
  position: relative;
  z-index: 1;
  display: grid;
  width: clamp(134px, 14vw, 172px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
}

.score-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring circle {
  fill: none;
  stroke-width: 2.2;
}

.score-track {
  stroke: rgba(255, 255, 255, 0.07);
}

.score-value {
  stroke: currentColor;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px currentColor);
}

.score-ring > div {
  display: flex;
  align-items: baseline;
}

.score-ring strong {
  color: var(--text);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 640;
}

.score-ring span {
  color: var(--muted);
  font-size: 0.72rem;
}

.attention-card,
.panel,
.service-panel,
.section-block {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(20, 29, 37, 0.93), rgba(14, 21, 27, 0.96));
}

.attention-card {
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading > span,
.section-heading > a {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.section-heading > a {
  color: var(--mint);
  font-weight: 700;
}

.count-chip {
  display: grid;
  min-width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft) !important;
}

.attention-list,
.incident-list {
  display: grid;
}

.attention-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 13px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.attention-item:first-child {
  border-top: 0;
}

.attention-item .status-dot {
  margin-top: 6px;
}

.attention-item strong {
  font-size: 0.8rem;
}

.attention-item p {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.71rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-block {
  margin-top: 18px;
}

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

.metric-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.metric-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  content: "";
}

.metric-card p {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
}

.metric-card strong {
  display: block;
  overflow: hidden;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card.accent-lulab::before { background: var(--lulab); }
.metric-card.accent-lueurs::before { background: var(--lueurs); }
.metric-card.metric-warning::before { background: var(--amber); }

.split-sections {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.service-panel {
  min-width: 0;
}

.group-panel-lulab { border-top-color: rgba(159, 147, 255, 0.35); }
.group-panel-lueurs { border-top-color: rgba(239, 182, 99, 0.35); }

.service-list {
  display: grid;
}

.service-row {
  display: grid;
  grid-template-columns: 38px minmax(100px, 1fr) auto auto 18px;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 12px 2px;
  border-top: 1px solid var(--line);
  transition: color 150ms ease, transform 150ms ease;
}

.service-row:first-child { border-top: 0; }
.service-row:hover { color: var(--mint); transform: translateX(2px); }
.service-row > .icon { width: 15px; color: var(--muted); }

.service-symbol {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.65rem;
  font-weight: 780;
  letter-spacing: 0.03em;
}

.service-symbol.group-lulab {
  border-color: rgba(159, 147, 255, 0.2);
  background: rgba(159, 147, 255, 0.08);
  color: #c5bdff;
}

.service-symbol.group-lueurs {
  border-color: rgba(239, 182, 99, 0.2);
  background: rgba(239, 182, 99, 0.08);
  color: #f5ca8d;
}

.service-row-main {
  display: grid;
  min-width: 0;
}

.service-row-main strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-row-main small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latency {
  color: var(--muted);
  font-size: 0.64rem;
  white-space: nowrap;
}

.empty-state {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}

.empty-state > .icon {
  width: 35px;
  height: 35px;
  margin-bottom: 13px;
  color: var(--mint);
}

.empty-state h2,
.empty-state strong {
  color: var(--text);
}

.empty-state p {
  max-width: 440px;
  margin: 5px 0 0;
  font-size: 0.76rem;
}

.compact-empty {
  min-height: 170px;
  border: 0;
}

.page-intro {
  display: flex;
  min-height: 145px;
  align-items: flex-end;
  margin-bottom: 19px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 0%, rgba(159, 147, 255, 0.12), transparent 33%),
    linear-gradient(135deg, var(--panel-2), var(--panel));
}

.page-intro h2 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.page-intro p:not(.eyebrow) {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.filter-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.filter-button {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-button:hover { color: var(--text-soft); }
.filter-button.active { background: var(--panel-3); color: var(--text); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 19px;
}

.service-card {
  display: flex;
  min-width: 0;
  min-height: 320px;
  flex-direction: column;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(20, 29, 37, 0.95), rgba(14, 21, 27, 0.98));
  transition: transform 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
}

.group-card-lulab:hover { border-color: rgba(159, 147, 255, 0.33); }
.group-card-lueurs:hover { border-color: rgba(239, 182, 99, 0.33); }

.service-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.service-card-top .status-badge { margin-left: auto; }

.group-chip {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 0.58rem;
  font-weight: 750;
}

.group-chip-lulab { background: rgba(159, 147, 255, 0.09); color: #c5bdff; }
.group-chip-lueurs { background: rgba(239, 182, 99, 0.09); color: #f5ca8d; }

.service-card > h2 {
  margin-bottom: 5px;
  font-size: 1.15rem;
}

.service-card > p {
  min-height: 40px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.73rem;
}

.service-technical,
.service-business {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
}

.service-technical div,
.service-business div {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.service-technical dt,
.service-business span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.56rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-technical dd,
.service-business strong {
  display: block;
  margin: 3px 0 0;
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-business div {
  border-color: transparent;
  background: rgba(120, 215, 177, 0.045);
}

.inline-error,
.form-error {
  color: var(--coral) !important;
}

.inline-error {
  min-height: auto !important;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(237, 128, 120, 0.07);
  font-size: 0.64rem !important;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--text-soft);
  font-size: 0.69rem;
  font-weight: 680;
}

.card-link .icon { width: 14px; }
.card-link:hover { color: var(--mint); }

.dashboard-grid {
  margin-bottom: 18px;
}

.dashboard-grid.two-thirds {
  grid-template-columns: minmax(0, 1.7fr) minmax(285px, 0.8fr);
}

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

.infra-top {
  margin-bottom: 18px;
}

.runtime-list,
.database-list,
.detail-list,
.passkey-list {
  display: grid;
}

.runtime-row {
  display: grid;
  grid-template-columns: 9px minmax(120px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 51px;
  border-top: 1px solid var(--line);
}

.runtime-row:first-child { border-top: 0; }

.runtime-row > div {
  display: grid;
  min-width: 0;
}

.runtime-row strong {
  overflow: hidden;
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-row small,
.runtime-row > span {
  color: var(--muted);
  font-size: 0.62rem;
  white-space: nowrap;
}

.database-list > div,
.detail-list > div {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.database-list > div:first-child,
.detail-list > div:first-child { border-top: 0; }

.database-list span,
.detail-list dt {
  color: var(--muted);
  font-size: 0.7rem;
}

.database-list strong,
.detail-list dd {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 680;
  text-align: right;
}

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

.certificate-card {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.certificate-card > div {
  display: grid;
  min-width: 0;
}

.certificate-card strong,
.certificate-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.certificate-card strong { font-size: 0.7rem; }
.certificate-card small { color: var(--muted); font-size: 0.59rem; }
.certificate-card b { color: var(--muted); font-size: 0.66rem; }
.certificate-warning { border-color: rgba(233, 184, 109, 0.35); }

.backup-hero {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, var(--panel-2), var(--panel));
}

.backup-ok { border-color: rgba(120, 215, 177, 0.22); }
.backup-alert { border-color: rgba(237, 128, 120, 0.28); }

.backup-icon,
.setting-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.04);
}

.backup-ok .backup-icon { color: var(--mint); }
.backup-alert .backup-icon { color: var(--coral); }

.backup-hero h2 {
  margin-bottom: 5px;
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
}

.backup-hero > div:nth-child(2) > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.backup-hero > dl {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 23px;
  margin: 0;
}

.backup-hero dt {
  color: var(--muted);
  font-size: 0.59rem;
}

.backup-hero dd {
  margin: 4px 0 0;
  font-size: 0.74rem;
  font-weight: 690;
}

.probe-summary {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin: 7px 0 17px;
}

.probe-summary strong {
  font-size: 2.3rem;
  font-weight: 620;
}

.probe-summary span {
  color: var(--muted);
  font-size: 0.7rem;
}

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

.safety-grid > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
}

.safety-grid .icon {
  grid-row: span 2;
  width: 18px;
  color: var(--mint);
}

.safety-grid strong { font-size: 0.72rem; }
.safety-grid p { margin: 0; color: var(--muted); font-size: 0.65rem; }

.history-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.history-toolbar > span {
  color: var(--muted);
  font-size: 0.7rem;
}

.chart-panel {
  min-width: 0;
}

.chart-wrap {
  position: relative;
  min-height: 190px;
  overflow: hidden;
}

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

.chart-line,
.chart-shadow {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.chart-shadow {
  stroke: currentColor;
  stroke-width: 8;
  opacity: 0.09;
}

.chart-line {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tone-mint { color: var(--mint); }
.tone-amber { color: var(--amber); }

.chart-scale {
  position: absolute;
  inset: auto 0 4px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.6rem;
}

.chart-empty,
.chart-skeleton {
  display: grid;
  min-height: 190px;
  place-items: center;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.chart-skeleton {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.02) 20%, rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0.02) 60%);
  background-size: 300% 100%;
  animation: shimmer 1.4s infinite linear;
}

.availability-list {
  display: grid;
}

.availability-list > div {
  display: grid;
  grid-template-columns: 34px minmax(115px, 0.8fr) minmax(150px, 2fr) 68px;
  align-items: center;
  gap: 13px;
  min-height: 51px;
  border-top: 1px solid var(--line);
}

.availability-list > div:first-child { border-top: 0; }
.availability-list .service-symbol { width: 34px; height: 34px; font-size: 0.59rem; }
.availability-list strong { font-size: 0.72rem; }
.availability-list b { color: var(--text-soft); font-size: 0.68rem; text-align: right; }

.availability-bar {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--mint);
  appearance: none;
}

.availability-bar::-webkit-progress-bar {
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
}

.availability-bar::-webkit-progress-value {
  border-radius: 99px;
  background: linear-gradient(90deg, var(--mint-deep), var(--mint));
}

.availability-bar::-moz-progress-bar {
  border-radius: 99px;
  background: linear-gradient(90deg, var(--mint-deep), var(--mint));
}

.incident-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 57px;
  border-top: 1px solid var(--line);
}

.incident-row:first-child { border-top: 0; }
.incident-row > div { min-width: 0; }
.incident-row strong { font-size: 0.73rem; }
.incident-row p { margin: 2px 0 0; color: var(--muted); font-size: 0.65rem; }
.incident-row time { color: var(--muted); font-size: 0.63rem; white-space: nowrap; }

.settings-grid .panel {
  min-height: 360px;
}

.setting-icon {
  margin-bottom: 18px;
  color: var(--mint);
}

.security-panel > p:not(.eyebrow),
.install-panel > p:not(.eyebrow) {
  max-width: 540px;
  color: var(--muted);
  font-size: 0.76rem;
}

.install-panel > small {
  display: block;
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.65rem;
}

.passkey-list {
  margin-top: 16px;
}

.passkey-list > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 55px;
  border-top: 1px solid var(--line);
}

.passkey-list > div > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: rgba(120, 215, 177, 0.08);
  color: var(--mint);
}

.passkey-list > div > span .icon { width: 16px; }
.passkey-list > div > div { display: grid; }
.passkey-list strong { font-size: 0.7rem; }
.passkey-list small { color: var(--muted); font-size: 0.61rem; }

.text-button {
  padding: 6px;
  border: 0;
  background: transparent;
  font-size: 0.66rem;
  font-weight: 680;
  cursor: pointer;
}

.danger-text,
.danger-link { color: var(--coral); }

.muted-copy {
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.7rem;
}

.privacy-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.privacy-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 0.72rem;
}

.privacy-list li::before {
  position: absolute;
  top: 0.45em;
  left: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(120, 215, 177, 0.08);
  content: "";
}

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(380px, 1.15fr) minmax(390px, 0.85fr);
}

.login-story {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 6vw, 78px);
  background:
    radial-gradient(circle at 15% 85%, rgba(159, 147, 255, 0.14), transparent 34%),
    radial-gradient(circle at 95% 10%, rgba(120, 215, 177, 0.16), transparent 38%),
    linear-gradient(145deg, #101922, #080d12 67%);
}

.login-story::after {
  position: absolute;
  top: 15%;
  right: -240px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(120, 215, 177, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 75px rgba(120, 215, 177, 0.018), 0 0 0 150px rgba(120, 215, 177, 0.014);
  content: "";
}

.login-story > * {
  position: relative;
  z-index: 1;
}

.login-story > div:not(.login-signals) {
  max-width: 690px;
}

.login-story h1 {
  max-width: 670px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  font-weight: 590;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.login-story > div > p:last-child {
  max-width: 620px;
  color: var(--text-soft);
  font-size: clamp(0.88rem, 1.3vw, 1.04rem);
}

.login-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.68rem;
}

.login-signals span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 30px;
  border-left: 1px solid var(--line);
  background: var(--bg-soft);
}

.login-card {
  width: min(100%, 410px);
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(23, 33, 42, 0.92), rgba(14, 21, 27, 0.98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.login-card h2 {
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.login-card > p:not(.eyebrow) {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.76rem;
}

.login-card form > label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 680;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(3, 7, 10, 0.35);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.password-field:focus-within {
  border-color: rgba(120, 215, 177, 0.65);
  box-shadow: 0 0 0 3px rgba(120, 215, 177, 0.08);
}

.password-field input {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.password-field button {
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

.form-error {
  min-height: 20px;
  margin: 8px 0 4px;
  font-size: 0.67rem;
}

.login-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.62rem;
}

.login-separator::before,
.login-separator::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.login-footnote {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.59rem;
  text-align: center;
}

.boot-screen,
.offline-screen {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
}

.boot-screen p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.75rem;
}

.offline-screen .brand-mark {
  margin-bottom: 27px;
}

.offline-screen h1 {
  margin-bottom: 11px;
  font-size: 2.1rem;
}

.offline-screen > p:not(.eyebrow) {
  max-width: 470px;
  margin-bottom: 24px;
  color: var(--muted);
}

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

.loading-grid div {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, var(--panel) 20%, var(--panel-2) 40%, var(--panel) 60%);
  background-size: 300% 100%;
  animation: shimmer 1.4s infinite linear;
}

.error-state {
  color: var(--coral);
}

.error-state p { margin-bottom: 17px; }

.toast-region {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 44px));
}

.toast {
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(22, 31, 40, 0.96);
  box-shadow: var(--shadow);
  color: var(--text-soft);
  font-size: 0.72rem;
  animation: toast-in 180ms ease-out;
}

.toast-success { border-left: 3px solid var(--mint); }
.toast-error { border-left: 3px solid var(--coral); }
.toast-info { border-left: 3px solid var(--blue); }

.mobile-dock,
.more-backdrop,
.more-sheet {
  display: none;
}

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

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

@media (max-width: 1220px) {
  :root { --rail-width: 210px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certificate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .backup-hero { grid-template-columns: auto minmax(250px, 1fr); }
  .backup-hero > dl { grid-column: 1 / -1; padding-top: 17px; border-top: 1px solid var(--line); }
}

@media (max-width: 980px) {
  .hero-grid,
  .dashboard-grid.two-thirds { grid-template-columns: 1fr; }
  .attention-card { min-height: auto; }
  .health-hero { min-height: 280px; }
  .service-row { grid-template-columns: 38px minmax(80px, 1fr) auto 18px; }
  .service-row .latency { display: none; }
  .split-sections { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --rail-width: 0px; --radius-xl: 22px; --radius-lg: 17px; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .side-rail { display: none; }
  .workspace { width: 100%; margin-left: 0; }
  .topbar {
    min-height: 107px;
    align-items: flex-end;
    padding: calc(18px + env(safe-area-inset-top)) 18px 15px;
  }
  .topbar > div:first-child > p:last-child { display: none; }
  .topbar h1 { font-size: 1.5rem; }
  .topbar .eyebrow { margin-bottom: 3px; }
  .top-actions .status-badge,
  .last-update { display: none; }
  .main-content { padding: 18px 14px 34px; }
  .alert-banner { margin: 14px 14px 0; }
  .alert-banner a { display: none; }
  .health-hero {
    min-height: 360px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 26px;
  }
  .health-hero h2 { font-size: 2.15rem; }
  .score-ring {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 105px;
  }
  .score-ring strong { font-size: 2.15rem; }
  .hero-actions { padding-right: 105px; }
  .attention-card,
  .panel,
  .service-panel,
  .section-block { padding: 18px; }
  .metric-grid,
  .dashboard-grid.equal-grid,
  .service-grid { grid-template-columns: 1fr; }
  .highlights-grid,
  .infra-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-height: 300px; }
  .certificate-grid { grid-template-columns: 1fr; }
  .backup-hero { grid-template-columns: auto minmax(0, 1fr); gap: 15px; padding: 22px; }
  .backup-hero > dl { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .backup-hero dd { font-size: 0.68rem; }
  .safety-grid { grid-template-columns: 1fr; }
  .availability-list > div { grid-template-columns: 34px minmax(0, 1fr) 60px; }
  .availability-bar { grid-column: 2 / -1; grid-row: 2; margin-bottom: 11px; }
  .incident-row { grid-template-columns: 9px minmax(0, 1fr); padding: 8px 0; }
  .incident-row time { grid-column: 2; }
  .runtime-row { grid-template-columns: 8px minmax(100px, 1fr) auto; }
  .runtime-row > span:nth-last-child(2) { display: none; }
  .history-toolbar { align-items: flex-start; }
  .history-toolbar > span { padding-top: 12px; }
  .mobile-dock {
    position: fixed;
    z-index: 40;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 66px;
    padding: 6px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: rgba(12, 18, 24, 0.93);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(22px);
  }
  .mobile-dock .nav-link {
    display: flex;
    min-height: 53px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 3px;
    border-radius: 14px;
    font-size: 0.54rem;
    text-align: center;
  }
  .mobile-dock .nav-link.active { box-shadow: none; }
  .mobile-dock .icon { width: 19px; height: 19px; }
  .logo-dock .brand-lockup > span:last-child { display: none; }
  .logo-dock .brand-mark.small { width: 36px; height: 36px; border: 0; background: transparent; box-shadow: none; }
  .more-backdrop {
    position: fixed;
    z-index: 44;
    inset: 0;
    display: block;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
  }
  .more-sheet {
    position: fixed;
    z-index: 45;
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    gap: 3px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: var(--panel-2);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    animation: toast-in 160ms ease-out;
  }
  .sheet-handle { width: 38px; height: 4px; margin: 2px auto 8px; border-radius: 99px; background: var(--line-strong); }
  .login-shell { grid-template-columns: 1fr; }
  .login-story { min-height: 42vh; padding: calc(24px + env(safe-area-inset-top)) 24px 30px; }
  .login-story h1 { max-width: 520px; margin: 55px 0 14px; font-size: clamp(2.45rem, 12vw, 4rem); }
  .login-signals { display: none; }
  .login-panel { min-height: 58vh; padding: 20px 15px calc(25px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-left: 0; }
  .login-card { margin-top: -38px; }
  .toast-region { right: 14px; bottom: calc(88px + env(safe-area-inset-bottom)); width: calc(100vw - 28px); }
}

@media (max-width: 460px) {
  .highlights-grid,
  .infra-top { grid-template-columns: 1fr; }
  .health-hero h2 { font-size: 1.85rem; }
  .health-hero p:not(.eyebrow) { font-size: 0.8rem; }
  .hero-actions { display: grid; width: 100%; padding-right: 103px; }
  .hero-actions .primary-button,
  .hero-actions .secondary-button { min-height: 39px; padding: 0 11px; font-size: 0.67rem; }
  .service-technical,
  .service-business { gap: 5px; }
  .service-technical div,
  .service-business div { padding: 7px; }
  .backup-hero { grid-template-columns: 1fr; }
  .backup-hero > dl { grid-template-columns: 1fr; }
  .backup-hero > dl > div { display: flex; justify-content: space-between; }
  .history-toolbar { display: grid; }
  .history-toolbar > span { padding-top: 0; }
  .filter-button { padding: 0 10px; }
  .login-story { min-height: 39vh; }
  .login-panel { min-height: 61vh; }
  .login-card { padding: 25px 21px; }
}

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