:root {
  --navy-950: #10172a;
  --navy-900: #17213a;
  --navy-800: #213052;
  --indigo-600: #5b5ce2;
  --indigo-500: #7072ee;
  --emerald-600: #059669;
  --emerald-100: #dff8ee;
  --amber-600: #d97706;
  --amber-100: #fff3d6;
  --slate-950: #172033;
  --slate-700: #43506a;
  --slate-500: #718096;
  --slate-300: #d8deea;
  --slate-200: #e7ebf2;
  --slate-100: #f3f5f9;
  --white: #ffffff;
  --shadow:
    0 18px 45px
    rgba(30, 42, 74, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--slate-100);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-950);
  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(112, 114, 238, 0.10),
      transparent 28rem
    ),
    var(--slate-100);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns:
    270px minmax(0, 1fr);
  min-height: calc(100vh - 48px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 48px);
  padding: 28px 20px;
  color: var(--white);
  background:
    linear-gradient(
      180deg,
      var(--navy-950),
      var(--navy-900)
    );
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 30px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background:
    linear-gradient(
      135deg,
      var(--indigo-500),
      #9a6df0
    );
  box-shadow:
    0 10px 24px
    rgba(91, 92, 226, 0.35);
  font-size: 20px;
  font-weight: 800;
}

.brand-name {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  margin-top: 2px;
  color: #a9b4cc;
  font-size: 12px;
}

.navigation {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.navigation-heading {
  margin:
    20px 12px 7px;
  color: #7886a5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.navigation-item {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  gap: 10px;
  border-radius: 11px;
  color: #c7d0e3;
  font-size: 14px;
  text-decoration: none;
}

.navigation-item.active {
  color: var(--white);
  background:
    linear-gradient(
      90deg,
      rgba(112, 114, 238, 0.30),
      rgba(112, 114, 238, 0.10)
    );
  box-shadow:
    inset 3px 0 0
    var(--indigo-500);
}

.navigation-item.muted {
  opacity: 0.58;
}

.navigation-icon {
  width: 20px;
  text-align: center;
}

.sidebar-footer {
  margin-top: auto;
  padding: 18px 11px 2px;
  color: #7886a5;
  font-size: 11px;
}

.main-content {
  width: 100%;
  max-width: 1500px;
  padding: 38px 42px 55px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--indigo-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(
    27px,
    3vw,
    38px
  );
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.actor-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 220px;
  padding: 11px 15px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.actor-pill strong,
.actor-pill small {
  display: block;
}

.actor-pill strong {
  font-size: 13px;
}

.actor-pill small {
  margin-top: 2px;
  color: var(--slate-500);
  font-size: 11px;
}

.actor-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald-600);
  box-shadow:
    0 0 0 5px
    var(--emerald-100);
}

.status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 25px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.status-banner strong {
  font-size: 15px;
}

.status-banner p {
  margin: 4px 0 0;
  font-size: 13px;
}

.status-banner.healthy {
  color: #07644b;
  border-color: #bfead9;
  background: var(--emerald-100);
}

.status-banner.warning {
  color: #8a5100;
  border-color: #f3d390;
  background: var(--amber-100);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background:
    rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-chip.neutral {
  color: var(--indigo-600);
  background: #eeefff;
}

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

.metric-card,
.panel {
  border: 1px solid var(--slate-200);
  background:
    rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.metric-card {
  display: flex;
  min-height: 148px;
  flex-direction: column;
  padding: 21px;
  border-radius: var(--radius-md);
}

.metric-label {
  color: var(--slate-700);
  font-size: 12px;
  font-weight: 700;
}

.metric-value {
  margin: 12px 0 7px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.metric-note {
  margin-top: auto;
  color: var(--slate-500);
  font-size: 11px;
}

.content-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(330px, 0.85fr);
  gap: 20px;
}

.panel {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.panel-copy {
  color: var(--slate-700);
  font-size: 14px;
  line-height: 1.7;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border-radius: 11px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 13px;
}

.check-row span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--emerald-600);
  background: var(--emerald-100);
  font-weight: 900;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns:
    100px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom:
    1px solid var(--slate-200);
}

.detail-list div:last-child {
  border-bottom: 0;
}

.detail-list dt {
  color: var(--slate-500);
  font-size: 12px;
}

.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--slate-700);
  font-size: 12px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-top:
    1px solid var(--slate-200);
  color: var(--slate-500);
  background: var(--white);
  font-size: 11px;
}

.centered-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 25px;
}

.error-card {
  width: min(440px, 100%);
  padding: 38px;
  text-align: center;
  border:
    1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.error-code {
  color: var(--indigo-600);
  font-size: 46px;
  font-weight: 850;
}

.error-card p {
  color: var(--slate-700);
  line-height: 1.6;
}

.error-reference {
  font-family: monospace;
  font-size: 12px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 11px;
  color: var(--white);
  background: var(--indigo-600);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 1050px) {
  .metric-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    min-height: auto;
  }

  .navigation {
    display: none;
  }

  .sidebar-footer {
    display: none;
  }

  .main-content {
    padding: 27px 20px 40px;
  }

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

  .actor-pill {
    width: 100%;
  }

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

  .status-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.secondary-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--slate-300);
  border-radius: 11px;
  color: var(--slate-700);
  background: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.secondary-button:hover {
  border-color: var(--indigo-500);
  color: var(--indigo-600);
}

.login-page {
  min-height: 100vh;
  background: var(--white);
}

.login-layout {
  display: grid;
  grid-template-columns:
    minmax(420px, 1.05fr)
    minmax(420px, 0.95fr);
  min-height: 100vh;
}

.login-brand-panel {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 64px;
  color: var(--white);
  background:
    radial-gradient(
      circle at 80% 15%,
      rgba(112, 114, 238, 0.42),
      transparent 22rem
    ),
    linear-gradient(
      145deg,
      #0c1326,
      #1a2750 62%,
      #2e3475
    );
}

.login-brand-panel::after {
  position: absolute;
  right: -180px;
  bottom: -190px;
  width: 480px;
  height: 480px;
  border: 1px solid
    rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 70px
      rgba(255, 255, 255, 0.025),
    0 0 0 140px
      rgba(255, 255, 255, 0.018);
}

.login-brand-content {
  position: relative;
  z-index: 1;
  width: min(650px, 100%);
}

.login-brand {
  padding-left: 0;
}

.login-eyebrow {
  margin: 76px 0 18px;
  color: #aeb8ff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-headline {
  max-width: 650px;
  color: var(--white);
  font-size: clamp(
    38px,
    5vw,
    66px
  );
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.login-description {
  max-width: 590px;
  margin: 26px 0 34px;
  color: #c3cce0;
  font-size: 16px;
  line-height: 1.75;
}

.login-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-trust-list span {
  padding: 9px 12px;
  border: 1px solid
    rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #d8def0;
  background:
    rgba(255, 255, 255, 0.05);
  font-size: 11px;
}

.login-form-panel {
  display: grid;
  place-items: center;
  padding: 48px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(112, 114, 238, 0.10),
      transparent 25rem
    ),
    #f7f8fc;
}

.login-card {
  width: min(480px, 100%);
  padding: 42px;
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  background: var(--white);
  box-shadow:
    0 28px 70px
    rgba(32, 43, 77, 0.12);
}

.login-card-header h2 {
  margin-bottom: 11px;
  font-size: 29px;
}

.login-card-header > p:last-child {
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field > span {
  color: var(--slate-700);
  font-size: 12px;
  font-weight: 750;
}

.form-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--slate-300);
  border-radius: 11px;
  outline: none;
  color: var(--slate-950);
  background: var(--white);
  font: inherit;
  font-size: 14px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.form-field input:focus {
  border-color: var(--indigo-500);
  box-shadow:
    0 0 0 4px
    rgba(112, 114, 238, 0.12);
}

.login-button {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.form-alert {
  margin-top: 20px;
  padding: 13px 14px;
  border: 1px solid #f1bbbb;
  border-radius: 11px;
  color: #9f2424;
  background: #fff0f0;
  font-size: 12px;
  line-height: 1.55;
}

.login-security-note {
  margin: 22px 0 0;
  color: var(--slate-500);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 920px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: 390px;
    padding: 42px 30px;
  }

  .login-eyebrow {
    margin-top: 42px;
  }

  .login-headline {
    font-size: clamp(
      34px,
      8vw,
      52px
    );
  }

  .login-form-panel {
    padding: 38px 20px;
  }
}

@media (max-width: 760px) {
  .topbar-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions form,
  .secondary-button {
    width: 100%;
  }

  .login-brand-panel {
    min-height: 330px;
  }

  .login-description {
    font-size: 14px;
  }

  .login-card {
    padding: 28px 22px;
  }
}
