:root {
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: #233249;
  background: #f4f6fa;
  font-synthesis: none;
  --navy: #132b48;
  --blue: #2369c4;
  --muted: #657489;
  --line: #e2e8f0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #ced8e4;
  border-radius: 7px;
  padding: 10px 14px;
  background: #fff;
  color: #233249;
  font-weight: 600;
}
button:hover {
  background: #edf3fb;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}
.primary:hover {
  background: #1958a8;
}
a {
  color: #225da7;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 16px;
}
small,
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.7px;
  font-weight: 750;
  color: #64778f;
  margin-bottom: 12px;
}
label {
  display: block;
  font-weight: 600;
  margin: 18px 0;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px;
  border: 1px solid #c9d3e1;
  border-radius: 6px;
  background: white;
  color: #233249;
}
input[type="checkbox"] {
  display: inline;
  width: auto;
  margin-right: 8px;
}
textarea {
  min-height: 92px;
  resize: vertical;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #64ace7;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  top: -100px;
  z-index: 30;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 0;
}
.logo {
  font-size: 45px;
  font-weight: 800;
  border: 1px solid #7892ad;
  border-radius: 18px;
  display: inline-block;
  padding: 8px 18px;
  letter-spacing: -5px;
}
.logo span {
  color: #6cbbff;
}
.logo.small {
  padding: 5px 9px;
  border-radius: 9px;
  font-size: 24px;
  letter-spacing: -2px;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-brand {
  padding: 12vh 12%;
  background: linear-gradient(140deg, #102840, #1d4369);
  color: white;
  display: flex;
  align-items: start;
  justify-content: center;
  flex-direction: column;
}
.auth-brand .eyebrow {
  color: #9ebbd8;
  margin-top: 36px;
}
.auth-brand h1 {
  font-size: 46px;
  line-height: 1.17;
  margin: 0 0 24px;
}
.auth-brand p:not(.eyebrow) {
  max-width: 390px;
  color: #c4d5e6;
  line-height: 1.8;
}
.family-pills {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.family-pills span {
  padding: 9px 12px;
  border: 1px solid #577592;
  border-radius: 6px;
  font-size: 12px;
}
.auth-form {
  max-width: 470px;
  width: 100%;
  margin: auto;
  padding: 40px;
}
.auth-form h2 {
  font-size: 27px;
  letter-spacing: -0.5px;
}
.auth-form > p {
  line-height: 1.6;
}
.auth-form form .primary {
  width: 100%;
  margin-top: 12px;
}
.error {
  color: #a22f3d;
  line-height: 1.6;
}
.notice {
  border: 1px solid #c3d5ec;
  border-radius: 7px;
  padding: 14px;
  color: #234c7a;
  background: #eaf2fc;
  margin-bottom: 20px;
}
aside {
  width: 232px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--navy);
  color: white;
  padding: 28px 17px;
  display: flex;
  flex-direction: column;
  z-index: 10;
  overflow-y: auto;
}
.brand {
  color: white;
  text-decoration: none;
  display: flex;
  gap: 13px;
  align-items: center;
  margin: 2px 10px 38px;
  font-size: 19px;
}
.brand small {
  font-size: 9px;
  letter-spacing: 1.8px;
  display: block;
  color: #9bb0c8;
  margin-top: 7px;
}
nav {
  display: grid;
  gap: 6px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b8c9dc;
  text-decoration: none;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
}
nav a.active {
  color: white;
  background: #2c4b6d;
}
nav a:hover {
  background: #244361;
}
.nav-label {
  color: #8ba5c2;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin: 22px 15px 8px;
}
.aside-foot {
  margin-top: auto;
  padding: 30px 14px 3px;
  color: #c4d2e1;
  font-size: 12px;
}
.aside-foot small {
  display: block;
  font-size: 11px;
  margin-top: 8px;
  color: #93a9c1;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #72c9ae;
  border-radius: 50%;
  margin-right: 8px;
}
.main-wrap {
  margin-left: 232px;
}
header {
  min-height: 78px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 36px;
  gap: 15px;
}
.breadcrumb {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #8793a3;
}
.breadcrumb b {
  color: #374c66;
}
.header-right {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 12px;
}
#menu {
  display: none;
}
.env {
  background: #edf3fb;
  color: #235f9e;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 7px 10px;
  border-radius: 5px;
}
.env.production {
  color: #8f2929;
  background: #fde9e9;
}
main#main {
  padding: 34px 36px;
  max-width: 1640px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 8px 0 27px;
}
.heading p {
  line-height: 1.6;
}
.buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  min-width: 0;
}
.card .app-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  font-size: 20px;
  background: #e8f1ff;
  color: #3266ae;
  margin-bottom: 18px;
}
.card:nth-child(2) .app-icon {
  background: #f1eaff;
  color: #7953b8;
}
.card:nth-child(3) .app-icon {
  background: #e4f5f0;
  color: #287b68;
}
.card h2 {
  margin-bottom: 8px;
}
.card .muted {
  line-height: 1.7;
  font-size: 12px;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  background: #edf2f7;
  color: #58708e;
  padding: 5px 8px;
  font-size: 10px;
  letter-spacing: 0.4px;
  margin: 0 0 18px;
}
.badge.ok {
  background: #e4f5ed;
  color: #267251;
}
.badge.warn {
  background: #fff4da;
  color: #8e641a;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 14px 0 24px;
}
.metric strong {
  display: block;
  font-size: 27px;
  margin-bottom: 5px;
}
.metric small {
  font-size: 11px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 15px;
}
.section-title h2 {
  margin: 0;
  font-size: 18px;
}
.panel p {
  line-height: 1.8;
}
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.check-row {
  padding: 13px 0;
  border-bottom: 1px solid #edf1f6;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.check-row:last-child {
  border: 0;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 10px;
  color: #6c7e92;
  background: #f8fafc;
  padding: 14px 17px;
  white-space: nowrap;
}
td {
  padding: 16px 17px;
  border-top: 1px solid #e9eef4;
  vertical-align: top;
  max-width: 330px;
  overflow-wrap: anywhere;
}
td button {
  padding: 5px 8px;
  font-size: 11px;
  margin: 2px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar input {
  width: 260px;
  margin: 0;
}
.empty {
  padding: 42px;
  text-align: center;
}
.empty p {
  color: var(--muted);
  line-height: 1.7;
}
pre {
  background: #f5f7fb;
  border: 1px solid var(--line);
  padding: 17px;
  overflow: auto;
  max-height: 60vh;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.record-actions {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pager {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}
footer {
  display: flex;
  justify-content: space-between;
  color: #8795a7;
  font-size: 10px;
  border-top: 1px solid var(--line);
  padding: 25px 0;
  margin-top: 35px;
}
dialog {
  width: min(640px, calc(100vw - 28px));
  border: 1px solid #d5dfeb;
  border-radius: 12px;
  padding: 26px;
  max-height: 90vh;
  overflow: auto;
  color: #233249;
}
dialog::backdrop {
  background: #10284280;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.dialog-head button {
  padding: 4px 10px;
  font-size: 20px;
}
.dialog-head h2 {
  margin: 0;
}
.connection {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.connection h3 {
  margin-bottom: 8px;
}
#notice:not(:empty) {
  padding: 12px 16px;
  border-radius: 7px;
  background: #eaf2fc;
  color: #294f7a;
  margin: 0 0 20px;
}
.loading {
  padding: 40px;
  color: #61748c;
}
.table-hint {
  font-size: 11px;
  color: #677e97;
  margin-top: 12px;
}
@media (max-width: 1100px) {
  .cards {
    gap: 12px;
  }
  .card {
    padding: 18px;
  }
  header {
    padding: 15px 25px;
  }
  .header-right {
    gap: 9px;
  }
  #who {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  main#main {
    padding: 28px 25px;
  }
  .heading {
    align-items: start;
  }
  .heading > .buttons {
    justify-content: end;
    max-width: 180px;
  }
}
@media (max-width: 820px) {
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    padding: 35px 30px;
    min-height: 240px;
  }
  .auth-brand .logo {
    display: none;
  }
  .auth-brand .eyebrow {
    margin-top: 0;
  }
  .auth-brand h1 {
    font-size: 32px;
  }
  .auth-brand p:not(.eyebrow) {
    display: none;
  }
  .family-pills {
    margin-top: 0;
  }
  .auth-form {
    padding: 32px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .panel-grid {
    grid-template-columns: 1fr;
  }
  aside {
    transform: translateX(-100%);
    visibility: hidden;
  }
  body.nav-open aside {
    visibility: visible;
    transform: translateX(0);
    box-shadow: 4px 0 30px #0004;
  }
  .main-wrap {
    margin-left: 0;
  }
  header {
    padding: 13px 18px;
    min-height: 68px;
  }
  #menu {
    display: block;
  }
  .breadcrumb {
    display: none;
  }
  #who {
    display: none;
  }
  main#main {
    padding: 24px 18px;
  }
  .heading {
    display: block;
  }
  .heading > .buttons {
    justify-content: start;
    max-width: none;
    margin-top: 20px;
  }
  h1 {
    font-size: 27px;
  }
  .card {
    padding: 23px;
  }
  .cards .metrics {
    margin-bottom: 18px;
  }
  .toolbar input {
    width: 100%;
  }
  .toolbar {
    align-items: stretch;
  }
  .toolbar > div {
    flex: 1;
  }
  footer {
    line-height: 1.8;
    gap: 20px;
  }
  .auth-form h2 {
    font-size: 24px;
  }
  button {
    min-height: 40px;
  }
}
