:root {
  color-scheme: light;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: white;
  border-right: 1px solid #e4ebed;
  z-index: 20;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 26px;
}
.brand-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #17665f;
  color: white;
  display: grid;
  place-items: center;
}
.brand-name {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: 2px;
}
.brand-sub {
  font-size: 10px;
  color: #8b999d;
  letter-spacing: 2.2px;
  margin-top: 3px;
}
.nav-label {
  color: #99a5aa;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 22px 28px 10px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 4px 14px;
  padding: 13px 16px;
  font-size: 14px;
  color: #687a81;
  border-radius: 8px;
}
.nav-item:hover {
  background: #f4f7f7;
}
.nav-item.active {
  background: #eaf3f0;
  color: #17665f;
  font-weight: 650;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px;
}
.app-main {
  margin-left: 232px;
}
.topbar {
  height: 78px;
  padding: 0 36px;
  background: #ffffff;
  border-bottom: 1px solid #e7edef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.topbar > * {
  flex-shrink: 0;
}
.content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px 36px 54px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #84959b;
  margin-bottom: 10px;
  font-weight: 650;
}
.muted {
  color: #7c8c92;
  font-size: 13px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) var(--dashboard-side);
  gap: 18px;
  margin-bottom: 26px;
}
.metric {
  padding: 22px;
  background: white;
  border: 1px solid #e7edef;
  border-radius: 12px;
}
.metric-number {
  font-size: 32px;
  line-height: 1.5;
  color: #203b42;
  letter-spacing: -1px;
  font-weight: 650;
}
/*
 * The dashboard's side column and the last metric card share one width and the same gap, so
 * the to-do panel always sits exactly under the last card, at a readable width.
 */
:root {
  --dashboard-side: clamp(320px, 22vw, 380px);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--dashboard-side);
  gap: 18px;
  align-items: start;
}
.dashboard-main {
  min-width: 0;
}
.panel-title {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #edf1f2;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.detail-label {
  font-size: 12px;
  color: #819097;
  margin-bottom: 7px;
}
.detail-value {
  font-size: 14px;
  font-weight: 550;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 9px;
}
.field-grid .wide {
  grid-column: 1 / -1;
}
.empty {
  padding: 52px 24px;
  color: #87989d;
  text-align: center;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.8fr);
}
.login-story {
  background: #123e3a;
  color: white;
  padding: 70px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-story::after {
  content: '';
  width: 540px;
  height: 540px;
  border: 1px solid #5c8a7e;
  border-radius: 50%;
  position: absolute;
  bottom: -320px;
  right: -150px;
  box-shadow:
    0 0 0 70px #ffffff04,
    0 0 0 140px #ffffff03;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
  background: #fff;
}
.print-only {
  display: none;
}
@media (max-width: 1150px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .app-sidebar {
    width: 200px;
  }
  .app-main {
    margin-left: 200px;
  }
  .content {
    padding: 25px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
}
@media (max-width: 800px) {
  .app-sidebar {
    width: 70px;
  }
  .brand {
    padding: 22px 15px;
  }
  .brand-copy,
  .nav-label,
  .nav-text,
  .sidebar-bottom {
    display: none;
  }
  .nav-item {
    margin: 6px 10px;
    padding: 13px;
  }
  .app-main {
    margin-left: 70px;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .topbar {
    height: auto;
    min-height: 76px;
    padding: 12px 18px;
    flex-wrap: wrap;
  }
  .content {
    padding: 24px 16px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-story {
    display: none;
  }
}
@media print {
  .app-sidebar,
  .topbar,
  .no-print {
    display: none !important;
  }
  .app-main {
    margin: 0;
  }
  .content {
    padding: 0;
  }
  body {
    background: white;
  }
  .print-only {
    display: block;
  }
}
