:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #172337;
  background: #f4f6f8;
  font-synthesis: none;
  --muted: #64748b;
  --green: #157352;
  --line: #dfe5eb;
  --navy: #111c2c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 10px 15px;
  color: inherit;
  font-weight: 600;
}
button:hover {
  background: #edf3f4;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #25a7a0;
  outline-offset: 3px;
}
.primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.primary:hover {
  background: #223751;
}
.danger {
  background: #b53c39;
  color: white;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 18px;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: -0.3px;
}
.brand img {
  width: 34px;
  height: 34px;
}
.shell {
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  color: #d8e3ef;
  padding: 30px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 38px;
}
.sidebar .brand {
  color: white;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  text-align: left;
  background: transparent;
  border: 0;
  color: #a9bbd0;
  padding: 14px;
}
.nav button.active {
  background: #26364a;
  color: #fff;
}
.side-note {
  margin-top: auto;
  font-size: 12px;
  color: #91a3bb;
  line-height: 1.8;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #79e5b2;
  margin-right: 7px;
}
.main {
  padding: 42px;
  max-width: 1550px;
  width: 100%;
  margin: auto;
}
.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 750;
  color: #527069;
  margin-bottom: 12px;
}
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.banner {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #c7dfd2;
  background: #edf8f1;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 26px;
}
.banner p {
  margin: 0;
  font-size: 14px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 24px;
  min-width: 0;
}
.card.is-active {
  border-top: 3px solid var(--green);
  padding-top: 22px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.email {
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
  margin-top: 6px;
}
.badge {
  font-size: 11px;
  line-height: 1.6;
  padding: 3px 8px;
  border-radius: 5px;
  background: #eef1f5;
  display: inline-block;
  white-space: nowrap;
  align-self: flex-start;
}
.badge.green {
  background: #def3e5;
  color: #136343;
}
.badge.amber {
  background: #fff2d6;
  color: #83540c;
}
.metric {
  margin: 28px 0 9px;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.metric strong {
  font-size: 46px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -2px;
}
.metric span {
  color: var(--muted);
  font-size: 13px;
}
.bar {
  height: 7px;
  background: #edf0f4;
  border-radius: 10px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: #329778;
}
.small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.subwindow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #edf0f4;
  font-size: 12px;
}
.card-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.card-actions button {
  width: 100%;
}
.error {
  color: #a73530;
  background: #fff1ef;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
}
.section {
  margin-top: 30px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.panel-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.panel-head h2 {
  margin: 0;
}
.row {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 17px 22px;
  border-bottom: 1px solid #edf0f4;
}
.row:last-child {
  border-bottom: 0;
}
.row-main {
  min-width: 0;
}
.path {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
  color: var(--muted);
  margin-top: 6px;
}
.row small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.chart {
  height: 175px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 20px 0 8px;
  position: relative;
}
.chart .col {
  flex: 1;
  min-width: 3px;
  display: flex;
  align-items: flex-end;
  height: 100%;
  position: relative;
}
.chart i {
  display: block;
  width: 100%;
  background: #3e8c87;
  border-radius: 3px 3px 0 0;
  min-height: 2px;
}
.chart .col:hover:after {
  content: attr(data-tip);
  position: absolute;
  bottom: 100%;
  left: 0;
  background: #172337;
  color: white;
  padding: 6px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.empty {
  padding: 35px;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at top left, #e0eee8, transparent 55%), #f4f6f8;
}
.login-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 80px #1733230b;
}
.login-card .brand {
  margin-bottom: 32px;
}
.login-card h1 {
  font-size: 26px;
}
.field {
  display: grid;
  gap: 7px;
  margin: 18px 0;
  font-size: 13px;
  font-weight: 600;
}
.field input {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd4de;
  border-radius: 8px;
  background: #fafbfc;
}
.wide {
  width: 100%;
  margin-top: 10px;
}
.qr {
  display: block;
  width: 180px;
  height: 180px;
  margin: 20px auto;
}
.secret {
  font-family: monospace;
  word-break: break-all;
  background: #f1f5f7;
  padding: 10px;
  border-radius: 6px;
  font-size: 12px;
}
.alert {
  padding: 15px;
  background: #fff8e6;
  color: #765018;
  font-size: 13px;
  border-radius: 9px;
  line-height: 1.6;
  margin: 16px 0;
}
.steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.step {
  padding: 6px 10px;
  border-radius: 20px;
  background: #eff3f6;
  font-size: 12px;
}
dialog {
  max-width: 470px;
  width: calc(100% - 32px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 80px #0003;
}
dialog::backdrop {
  background: #0e1a2a88;
}
.close {
  float: right;
  border: 0;
  font-size: 24px;
  padding: 0 7px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  padding: 13px 19px;
  background: #172337;
  color: white;
  border-radius: 10px;
  display: none;
  z-index: 20;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.footer-note {
  margin-top: 26px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.logout {
  font-size: 12px;
  color: #c6d4e5 !important;
  text-align: left;
  background: transparent;
  border-color: #35445a;
}
a {
  color: #176958;
}
details {
  margin-top: 10px;
}
summary {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.time {
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 1150px) {
  .main {
    padding: 28px;
  }
  .cards,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 25px 14px;
  }
}
@media (max-width: 740px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 18px 20px;
    gap: 20px;
  }
  .sidebar .brand {
    font-size: 16px;
  }
  .nav {
    display: flex;
    overflow-x: auto;
    gap: 2px;
  }
  .nav button {
    padding: 10px;
    white-space: nowrap;
    font-size: 12px;
  }
  .side-note,
  .sidebar .logout {
    display: none;
  }
  .main {
    padding: 24px 16px;
  }
  .top {
    display: block;
  }
  h1 {
    font-size: 27px;
  }
  .toolbar {
    margin-top: 17px;
  }
  .cards,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }
  .row {
    padding: 15px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .card {
    padding: 22px;
  }
  .login-card {
    padding: 25px;
  }
  .time {
    font-size: 11px;
  }
  .panel-head {
    padding: 16px;
  }
  .metric strong {
    font-size: 43px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
