:root {
  color-scheme: light;
  --ink: #1d2939;
  --muted: #66758a;
  --line: #e1e6ed;
  --bg: #f3f5f8;
  --green: #17734f;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.initial {
  padding: 40px;
  text-align: center;
}
.login {
  max-width: 410px;
  margin: 12vh auto;
  padding: 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.logo {
  width: 170px;
  height: 30px;
  object-fit: contain;
}
.login .logo {
  display: block;
  margin: 0 auto 32px;
}
.login h1 {
  font-size: 25px;
  margin: 10px 0;
}
.muted {
  color: var(--muted);
  line-height: 1.6;
}
.field {
  display: grid;
  gap: 7px;
  margin: 18px 0;
}
label {
  font-size: 12px;
  font-weight: 600;
}
input,
select {
  border: 1px solid #ccd4df;
  border-radius: 7px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  min-width: 0;
}
input:focus,
select:focus {
  border-color: #385b85;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid #cdd6e1;
  padding: 9px 14px;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.primary {
  background: #202f43;
  color: white;
  border-color: #202f43;
}
.login .primary {
  width: 100%;
}
.error {
  color: #b42318;
  line-height: 1.5;
}
.notice {
  font-size: 13px;
  line-height: 1.5;
  min-height: 20px;
}
.topbar {
  height: 80px;
  border-bottom: 1px solid var(--line);
  background: white;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand,
.account,
.actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.env {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 8px;
  border: 1px solid #d9e2ee;
  border-radius: 5px;
  color: #586b84;
  background: #f4f7fb;
}
.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8edf5;
  font-weight: 600;
}
.account small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.content {
  max-width: 1450px;
  margin: auto;
  padding: 32px 36px;
}
.titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.6px;
  margin: 0 0 8px;
}
h2 {
  font-size: 16px;
  margin: 0;
}
.titlebar p {
  margin: 0;
  color: var(--muted);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.metric span {
  font-size: 12px;
  color: var(--muted);
}
.metric strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
  margin: 10px 0;
}
.metric small {
  font-size: 11px;
  color: var(--muted);
}
.panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.filters {
  display: flex;
  gap: 10px;
}
.filters input {
  width: 260px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
th {
  font-weight: 500;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 20px;
  border-bottom: 1px solid #edf0f4;
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.person strong {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
}
.person small {
  color: var(--muted);
  font-size: 12px;
}
.number {
  font-variant-numeric: tabular-nums;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 11px;
  background: #eef1f5;
  color: #5b687a;
}
.badge.online {
  color: var(--green);
  background: #e8f5ee;
}
.badge.online:before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
}
.foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.foot button {
  padding: 6px 10px;
}
.below {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 22px;
}
.box-body {
  padding: 20px;
}
.box-body p {
  margin: 0 0 16px;
}
.invite-form {
  display: flex;
  gap: 8px;
}
.invite-form input {
  flex: 1;
}
.empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
}
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.link {
  border: 0;
  background: none;
  color: #315b88;
  cursor: pointer;
  padding: 4px;
}
.statusline {
  font-size: 11px;
  color: var(--muted);
}
.error:empty {
  display: none;
}
@media (max-width: 1000px) {
  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .below {
    grid-template-columns: 1fr;
  }
  .account .identity {
    display: none;
  }
}
@media (max-width: 650px) {
  .topbar {
    padding: 16px;
    height: auto;
  }
  .topbar .env {
    display: none;
  }
  .content {
    padding: 24px 14px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric {
    padding: 15px;
  }
  .toolbar,
  .titlebar {
    align-items: flex-start;
    flex-direction: column;
  }
  .filters {
    width: 100%;
  }
  .filters input {
    width: 100%;
  }
  .invite-form {
    flex-direction: column;
  }
  .logo {
    width: 135px;
  }
  .login {
    margin: 6vh 16px;
  }
  .actions {
    gap: 6px;
  }
  .account {
    gap: 8px;
  }
}
