:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #e5edf8;
  background: #08111f;
  font-synthesis: none;
  --bg: #08111f;
  --panel: #101e30;
  --panel-soft: #0c192a;
  --line: #23354b;
  --muted: #a0afc3;
  --dim: #8294ac;
  --cyan: #68e1db;
  --green: #83dab0;
  --amber: #edc277;
  --red: #ff9caa;
  --blue: #98baff;
  --radius: 18px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: var(--cyan);
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(25px, 2.8vw, 35px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -1px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.35px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
p + p {
  margin-top: 9px;
}
small {
  font-size: 12px;
}
svg {
  display: block;
}
button svg {
  flex-shrink: 0;
}
button {
  border: 0;
}
img {
  max-width: 100%;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--bg);
  border-radius: 8px;
}
.skip-link:focus {
  transform: none;
}
.eyebrow {
  color: var(--cyan);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 2.1px;
  text-transform: uppercase;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 12px;
  line-height: 1.6;
}
.mono,
.metric-value,
.stat-value,
.secret,
.recovery-code,
.number {
  font-variant-numeric: tabular-nums;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}
.stack {
  display: grid;
  gap: 20px;
}
.stack-sm {
  display: grid;
  gap: 12px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spread {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 0;
}
.title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-head p {
  margin-top: 4px;
}
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-box {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid #2d4c5a;
  background: #16313e;
  color: var(--cyan);
}
.icon-box.small {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #18293d;
  color: #e5edf8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 550;
  transition:
    background 0.16s,
    border-color 0.16s;
}
.button:hover:not(:disabled) {
  background: #22364d;
  border-color: #426078;
}
.button.primary {
  background: var(--cyan);
  color: #062022;
  border-color: var(--cyan);
  font-weight: 700;
}
.button.primary:hover:not(:disabled) {
  background: #a3efea;
  border-color: #a3efea;
}
.button.ghost {
  background: transparent;
}
.button.compact {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 12px;
}
.button.full {
  width: 100%;
}
.button.danger {
  color: var(--red);
}
.button .icon {
  width: 16px;
  height: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--muted);
  background: #152237;
  white-space: nowrap;
}
.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge.online,
.badge.resolved,
.badge.good {
  color: var(--green);
  background: #122d29;
  border-color: #254a3e;
}
.badge.offline,
.badge.open,
.badge.bad {
  color: var(--red);
  background: #331e2c;
  border-color: #59313d;
}
.badge.degraded,
.badge.stale,
.badge.warn {
  color: var(--amber);
  background: #302b21;
  border-color: #51452f;
}
.badge.info {
  color: var(--cyan);
  background: #173137;
  border-color: #2d5155;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 3px 0;
}
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 23px;
}
.panel.soft {
  background: var(--panel-soft);
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #354c63;
  background: #15263a;
  border-radius: 12px;
  color: #c2d1e3;
  font-size: 12px;
  line-height: 1.6;
}
.notice .icon {
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 1px;
  width: 18px;
  height: 18px;
}
.notice.warning {
  border-color: #57482e;
  background: #2b271e;
  color: #ebcd97;
}
.notice.error {
  border-color: #673a45;
  background: #31222e;
  color: #ffb1bb;
}
.notice.success {
  border-color: #2b5146;
  background: #152b27;
  color: #a4dfbf;
}
.empty {
  padding: 30px 18px;
  text-align: center;
  color: var(--muted);
  display: grid;
  justify-items: center;
  gap: 9px;
}
.empty .icon {
  width: 28px;
  height: 28px;
  color: var(--dim);
}
.empty strong {
  color: #d5e0ee;
  font-weight: 550;
}
.empty p {
  font-size: 12px;
  max-width: 490px;
}
.initial-state {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  text-align: center;
}
.initial-state h1 {
  font-size: 26px;
}
.initial-state > p:last-child {
  color: var(--muted);
}
.noscript {
  padding: 24px;
  text-align: center;
  border: 1px solid var(--line);
}
.shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 28px 18px 20px;
  border-right: 1px solid var(--line);
  background: #0a1524;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px;
  text-decoration: none;
  color: #f1f6ff;
}
.brand img {
  width: 37px;
  height: 37px;
}
.brand-name {
  display: block;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.4px;
}
.brand-sub {
  display: block;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: var(--dim);
  font-weight: 650;
  padding: 0 12px;
  margin-bottom: 12px;
}
.nav-list {
  display: grid;
  gap: 5px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 45px;
  padding: 11px 13px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-item:hover {
  background: #122339;
  color: #dce9f5;
}
.nav-item[aria-selected='true'] {
  color: var(--cyan);
  background: #173035;
  border-color: #29494c;
}
.nav-item .icon {
  width: 18px;
  height: 18px;
}
.nav-counter {
  margin-left: auto;
  min-width: 18px;
  border-radius: 6px;
  text-align: center;
  font-size: 10px;
  background: #52303b;
  color: var(--red);
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 18px;
}
.connection-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0e1b2c;
}
.connection-card .hint {
  font-size: 11px;
  margin-top: 8px;
}
.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--dim);
  font-size: 10px;
  padding: 0 6px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 81px;
  padding: 0 35px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #0b1727;
}
.topbar-title {
  font-size: 12px;
  color: var(--muted);
}
.topbar-title strong {
  color: #dce8f5;
  font-weight: 550;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #213549;
  border: 1px solid #36516a;
  border-radius: 50%;
  color: var(--cyan);
  font-weight: 650;
  font-size: 10px;
}
.main-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 33px 35px 38px;
  display: grid;
  gap: 24px;
  outline: 0;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.page-heading .eyebrow {
  margin-bottom: 9px;
}
.page-heading .muted {
  margin-top: 10px;
  font-size: 13px;
  max-width: 690px;
}
.heading-aside {
  text-align: right;
  flex-shrink: 0;
  padding-top: 5px;
}
.heading-aside .hint {
  margin-top: 7px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.stat-card {
  padding: 19px 20px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  gap: 10px;
  font-size: 12px;
}
.stat-top .icon {
  color: var(--cyan);
  width: 17px;
  height: 17px;
}
.stat-value {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.7px;
  margin: 15px 0 7px;
}
.stat-value.small {
  font-size: 24px;
}
.stat-card .hint {
  font-size: 11px;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.content-grid.wide-left {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.8fr);
}
.device-list {
  display: grid;
  gap: 2px;
}
.device-preview {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.device-preview:first-child {
  padding-top: 0;
}
.device-preview:last-child {
  padding-bottom: 0;
  border: 0;
}
.preview-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.preview-value {
  font-size: 17px;
  color: #e5edf8;
  font-weight: 550;
  line-height: 1.2;
}
.preview-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}
.preview-address {
  font-size: 11px;
  color: var(--dim);
  margin-top: 3px;
}
.status-list {
  display: grid;
  gap: 14px;
}
.service-preview {
  display: flex;
  gap: 12px;
  align-items: center;
}
.service-preview .hint {
  margin-top: 2px;
}
.service-preview .badge {
  margin-left: auto;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 23px;
}
.metric-tile {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0c192a;
}
.metric-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}
.metric-label .icon {
  width: 14px;
  height: 14px;
}
.metric-value {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin: 12px 0 8px;
  font-weight: 550;
}
.metric-tile .hint {
  font-size: 10px;
}
.meter {
  width: 100%;
  height: 4px;
  margin-top: 13px;
  border-radius: 3px;
  overflow: hidden;
}
.meter-track {
  fill: #26394e;
}
.meter-fill {
  fill: var(--cyan);
}
.meter-fill.warm {
  fill: var(--amber);
}
.meter-fill.hot {
  fill: var(--red);
}
.info-rows {
  display: grid;
  gap: 12px;
}
.info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}
.info-row:last-child {
  border: 0;
  padding: 0;
}
.info-row dt {
  color: var(--muted);
}
.info-row dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
  color: #d7e4f1;
}
.device-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 19px;
  font-size: 11px;
  color: var(--muted);
}
.health-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}
.health-check {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 10px;
  color: var(--muted);
}
.health-check .icon {
  width: 14px;
  height: 14px;
  color: var(--dim);
}
.health-check.yes .icon {
  color: var(--green);
}
.health-check.no .icon {
  color: var(--red);
}
.service-facts {
  margin-top: 23px;
}
.chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}
.segmented {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  background: #0b1829;
  border-radius: 9px;
  padding: 4px;
}
.segment {
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 11px;
  min-height: 33px;
}
.segment[aria-pressed='true'] {
  color: var(--cyan);
  background: #223743;
}
.segment:hover {
  color: #e2edf6;
}
.select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #15243a;
  color: #d6e5f4;
  padding: 9px 28px 9px 10px;
  min-height: 37px;
}
.chart-frame {
  position: relative;
  min-height: 220px;
}
.history-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart-grid {
  stroke: #27384c;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.chart-axis {
  fill: #97a9be;
  font-size: 10px;
  font-family: inherit;
}
.chart-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.series-0 {
  stroke: var(--cyan);
}
.series-1 {
  stroke: var(--blue);
}
.point-0 {
  fill: var(--cyan);
}
.point-1 {
  fill: var(--blue);
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  margin-top: 8px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}
.legend-dot.secondary {
  background: var(--blue);
}
.chart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.chart-foot .hint {
  font-size: 11px;
}
.chart-details {
  margin-top: 16px;
}
.chart-details summary,
.error-details summary {
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  width: fit-content;
}
.chart-details[open] summary {
  margin-bottom: 14px;
}
.data-scroll {
  max-height: 330px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  min-width: 380px;
}
.data-table caption {
  text-align: left;
  color: var(--muted);
  padding: 12px;
  background: #0c192a;
}
.data-table th {
  background: #17283c;
  position: sticky;
  top: 0;
  font-weight: 550;
  color: #cfdeed;
}
.data-table th,
.data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
}
.data-table tr:last-child td {
  border: 0;
}
.data-table td {
  color: var(--muted);
}
.backup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.backup-card {
  min-width: 0;
  position: relative;
}
.step-label {
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 1.4px;
  margin-bottom: 14px;
}
.backup-card h2 {
  font-size: 16px;
  margin-top: 17px;
}
.backup-card > .hint {
  margin-top: 8px;
  min-height: 57px;
}
.backup-card .badge {
  margin: 17px 0;
}
.backup-card .info-rows {
  margin-top: 3px;
}
.backup-id {
  color: var(--dim);
  font-size: 10px;
  overflow-wrap: anywhere;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.explain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.explain-grid h3 {
  font-size: 12px;
  margin-bottom: 7px;
}
.explain-grid p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.incident-list {
  display: grid;
}
.incident-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 13px;
}
.incident-row:first-child {
  padding-top: 0;
}
.incident-row:last-child {
  padding-bottom: 0;
  border: 0;
}
.incident-icon {
  color: var(--amber);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #332d21;
  display: grid;
  place-items: center;
}
.incident-icon.resolved {
  color: var(--green);
  background: #163129;
}
.incident-message {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.incident-meta {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--dim);
  margin-top: 10px;
}
.incident-status {
  text-align: right;
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 8px;
}
.error-details {
  margin-top: 14px;
}
.error-details p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 4px;
  color: var(--dim);
  font-size: 10px;
}
.auth-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(340px, 1.05fr) minmax(430px, 1fr);
  background: #08111f;
}
.auth-story {
  padding: 40px clamp(30px, 6vw, 95px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 20% 80%, #123348 0, transparent 55%), #0b1828;
}
.auth-story .brand {
  padding: 0;
  align-self: flex-start;
}
.auth-story-content {
  margin: auto 0;
  padding: 55px 0;
  max-width: 490px;
  position: relative;
  z-index: 1;
}
.auth-story h1 {
  font-size: clamp(40px, 5vw, 65px);
  line-height: 1.1;
  letter-spacing: -2.5px;
  margin-top: 22px;
}
.auth-story h1 span {
  color: var(--cyan);
}
.auth-story-content > .muted {
  font-size: 15px;
  margin-top: 24px;
  line-height: 1.8;
  max-width: 400px;
}
.auth-features {
  margin-top: 42px;
  display: grid;
  gap: 22px;
}
.auth-feature {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.auth-feature .icon {
  color: var(--cyan);
  width: 19px;
  height: 19px;
  margin-top: 3px;
}
.auth-feature strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
  margin-bottom: 4px;
}
.auth-feature p {
  font-size: 11px;
  color: var(--muted);
}
.auth-foot {
  font-size: 10px;
  color: var(--dim);
  position: relative;
  z-index: 1;
}
.orbit-art {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -330px;
  bottom: -180px;
  border: 1px solid #284456;
  border-radius: 50%;
  pointer-events: none;
}
.orbit-art::before,
.orbit-art::after {
  content: '';
  position: absolute;
  border: 1px solid #254457;
  border-radius: 50%;
  inset: 55px;
}
.orbit-art::after {
  inset: 110px;
}
.auth-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px clamp(28px, 5vw, 78px);
  min-width: 0;
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-card.wide {
  max-width: 490px;
}
.auth-top-icon {
  margin-bottom: 23px;
}
.auth-card h2 {
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.8px;
}
.auth-card > .muted {
  font-size: 13px;
  line-height: 1.75;
  margin-top: 11px;
}
.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.field {
  display: grid;
  gap: 7px;
}
.field label {
  font-size: 12px;
  font-weight: 550;
  color: #ccd9e8;
}
.input-wrap {
  position: relative;
}
.input {
  width: 100%;
  border: 1px solid #32465e;
  background: #111f32;
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 46px;
  color: #edf5ff;
  outline: none;
  font-size: 14px;
}
.input::placeholder {
  color: #74869d;
}
.input:hover {
  border-color: #4a6078;
}
.input:focus {
  border-color: var(--cyan);
}
.input.has-action {
  padding-right: 48px;
}
.input-action {
  position: absolute;
  right: 7px;
  top: 6px;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}
.input-action:hover {
  background: #23354a;
  color: var(--cyan);
}
.input-action .icon {
  width: 17px;
  height: 17px;
}
.field .hint {
  font-size: 10px;
}
.form-message:empty {
  display: none;
}
.auth-privacy {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  font-size: 10px;
  color: var(--dim);
}
.auth-privacy .icon {
  width: 13px;
  height: 13px;
}
.setup-steps {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 23px;
}
.step {
  font-size: 10px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.step-number {
  width: 21px;
  height: 21px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
}
.step.current {
  color: var(--cyan);
}
.step.current .step-number {
  border-color: #4c9398;
  background: #193a40;
}
.step-divider {
  width: 17px;
  height: 1px;
  background: var(--line);
}
.secret-box {
  border: 1px solid #366267;
  border-radius: 12px;
  background: #142b34;
  padding: 17px;
  margin-top: 20px;
}
.secret-label {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.secret {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 18px;
  letter-spacing: 2px;
  overflow-wrap: anywhere;
  line-height: 1.8;
  color: #bef5ed;
  user-select: all;
}
.secret-box .button {
  margin-top: 12px;
}
.instruction-list {
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  display: grid;
  gap: 9px;
  margin: 22px 0;
}
.instruction-list strong {
  color: #dce8f4;
  font-weight: 550;
}
.recovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
}
.recovery-code {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f2133;
  padding: 11px 7px;
  text-align: center;
  font-size: 13px;
  color: #d3ebef;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.check-label input {
  margin-top: 4px;
  accent-color: var(--cyan);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.auth-notice {
  margin-top: 21px;
}
.auth-mobile-brand {
  display: none;
}
@media (min-width: 1600px) {
  .main-content {
    padding-top: 40px;
    gap: 28px;
  }
  .topbar {
    padding-inline: 48px;
  }
  .main-content {
    padding-inline: 48px;
  }
}
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 198px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 12px;
  }
  .brand-name {
    font-size: 14px;
  }
  .main-content {
    padding: 27px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .summary-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 16px;
  }
  .content-grid.wide-left {
    grid-template-columns: 1fr 1fr;
  }
  .backup-grid {
    gap: 13px;
  }
  .backup-card {
    padding: 18px;
  }
  .health-checks {
    grid-template-columns: 1fr;
  }
  .health-check {
    font-size: 11px;
  }
  .user-chip span:last-child {
    display: none;
  }
  .auth-story {
    padding-inline: 38px;
  }
  .auth-side {
    padding-inline: 35px;
  }
}
@media (max-width: 1000px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .backup-grid {
    grid-template-columns: 1fr;
  }
  .backup-card > .hint {
    min-height: 0;
  }
  .backup-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
  .backup-card .step-label {
    grid-column: 1/-1;
  }
  .backup-card > .icon-box {
    display: none;
  }
  .backup-card h2 {
    margin-top: 0;
  }
  .backup-card > .hint {
    grid-column: 1;
    margin-top: 8px;
  }
  .backup-card > .badge {
    grid-column: 1;
    width: fit-content;
    margin-bottom: 0;
  }
  .backup-card > .info-rows {
    grid-column: 2;
    grid-row: 2/5;
  }
  .backup-card > .backup-id {
    grid-column: 1/-1;
  }
  .explain-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .content-grid.wide-left {
    grid-template-columns: 1fr;
  }
  .auth-shell {
    grid-template-columns: 42% 58%;
  }
  .auth-story {
    padding-inline: 25px;
  }
  .auth-story h1 {
    font-size: 42px;
  }
  .auth-story-content > .muted {
    font-size: 13px;
  }
  .auth-features {
    gap: 18px;
  }
  .auth-story .brand-name {
    font-size: 15px;
  }
  .auth-side {
    padding-inline: 30px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    height: auto;
    padding: 12px 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 14px;
    background: #0a1524f5;
    backdrop-filter: blur(14px);
  }
  .sidebar > .brand {
    padding: 0;
    gap: 8px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .brand-name {
    font-size: 14px;
  }
  .brand-sub {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .nav-list {
    display: flex;
    gap: 6px;
    overflow: auto;
    padding-bottom: 11px;
    scrollbar-width: thin;
  }
  .nav-item {
    width: auto;
    min-height: 38px;
    padding: 8px 11px;
    font-size: 11px;
    gap: 7px;
    flex-shrink: 0;
  }
  .nav-item .icon {
    width: 15px;
    height: 15px;
  }
  .nav-counter {
    margin-left: 2px;
  }
  .topbar {
    height: 61px;
    padding: 0 18px;
  }
  .topbar-title {
    font-size: 10px;
  }
  .top-actions {
    gap: 10px;
  }
  .top-actions > .button {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 11px;
  }
  .user-chip {
    display: none;
  }
  .top-actions .badge {
    font-size: 9px;
  }
  .main-content {
    padding: 24px 18px 27px;
    gap: 19px;
  }
  .page-heading {
    gap: 12px;
  }
  .page-heading .muted {
    font-size: 12px;
    margin-top: 8px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  .heading-aside {
    display: none;
  }
  .panel {
    padding: 19px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-value {
    font-size: 28px;
    margin-top: 12px;
  }
  .stat-top {
    font-size: 11px;
  }
  .stat-card .hint {
    font-size: 10px;
  }
  .chart-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .segment {
    padding: 7px 9px;
    font-size: 10px;
  }
  .select-wrap {
    margin-left: auto;
  }
  .chart-foot {
    align-items: flex-start;
  }
  .chart-frame {
    min-height: 160px;
  }
  .history-svg {
    min-height: 170px;
  }
  .chart-axis {
    font-size: 11px;
  }
  .metric-grid {
    gap: 11px;
  }
  .page-footer {
    font-size: 9px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .incident-row {
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 10px;
  }
  .incident-icon {
    width: 27px;
    height: 27px;
  }
  .incident-icon .icon {
    width: 15px;
    height: 15px;
  }
  .incident-status {
    grid-column: 2;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    text-align: left;
  }
  .incident-message {
    font-size: 11px;
  }
  .auth-shell {
    display: block;
  }
  .auth-story {
    display: none;
  }
  .auth-side {
    padding: 31px 23px 40px;
    min-height: 100dvh;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
  .auth-mobile-brand {
    display: block;
    margin-bottom: 36px;
  }
  .auth-card {
    margin-inline: auto;
    max-width: 420px;
  }
  .auth-top-icon {
    display: none;
  }
  .auth-card h2 {
    font-size: 27px;
  }
  .auth-card > .muted {
    font-size: 12px;
  }
  .auth-form {
    margin-top: 25px;
  }
  .auth-privacy {
    margin-top: 25px;
  }
  .backup-card {
    column-gap: 18px;
  }
  .backup-card .info-row {
    font-size: 11px;
  }
  .secret {
    font-size: 16px;
  }
}
@media (max-width: 420px) {
  .main-content {
    padding-inline: 13px;
  }
  .topbar {
    padding-inline: 13px;
  }
  .topbar-title {
    max-width: 90px;
  }
  .summary-grid {
    gap: 9px;
  }
  .stat-card {
    padding: 14px 12px;
  }
  .stat-top .icon {
    display: none;
  }
  .stat-value {
    font-size: 26px;
  }
  .panel {
    padding: 16px;
  }
  .metric-tile {
    padding: 12px;
  }
  .metric-value {
    font-size: 23px;
  }
  .backup-card {
    display: block;
  }
  .backup-card > .info-rows {
    margin-top: 20px;
  }
  .preview-values {
    gap: 8px;
  }
  .preview-value {
    font-size: 15px;
  }
  .preview-label {
    font-size: 9px;
  }
  .chart-legend {
    gap: 12px;
  }
  .legend-item {
    font-size: 10px;
  }
  .recovery-code {
    font-size: 11px;
  }
  .step {
    font-size: 9px;
  }
  .step-divider {
    width: 10px;
  }
  .top-actions {
    gap: 7px;
  }
  .heading-aside {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
