:root {
  --ink: #152422;
  --muted: #75817e;
  --paper: #f5f6f3;
  --border: #e3e8e2;
  --green: #c3f38b;
  --accent: #307455;
  --sidebar: #152722;
  --white: #fff;
  --amber: #946421;
  --red: #ad4135;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #66a28b;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.wordmark {
  font-size: 38px;
  font-weight: 750;
  color: white;
  letter-spacing: -2.5px;
  text-decoration: none;
}
.wordmark span {
  font-size: 12px;
  vertical-align: top;
  letter-spacing: 0;
  display: inline-block;
  margin: 7px 0 0 3px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #6b7d73;
}
.eyebrow.light {
  color: #9cb2a6;
}
.muted {
  color: var(--muted);
  line-height: 1.65;
}
.primary,
.secondary {
  border: 0;
  border-radius: 8px;
  padding: 12px 17px;
  white-space: nowrap;
  font-weight: 600;
}
.primary {
  background: var(--ink);
  color: white;
}
.primary:hover {
  background: #2d4d3e;
}
.secondary {
  background: white;
  border: 1px solid var(--border);
  color: var(--ink);
}
.login-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-brand {
  background: var(--sidebar);
  color: white;
  padding: 55px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-brand h1 {
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 450;
  letter-spacing: -2px;
  line-height: 1.12;
}
.login-brand p:not(.eyebrow) {
  color: #b2c5b7;
  line-height: 1.8;
}
.login-brand small {
  color: #84998b;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}
.login-box {
  width: 100%;
  max-width: 360px;
}
.login-box h2 {
  font-size: 30px;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.login-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 30px 0;
}
.login-box label {
  font-size: 12px;
  font-weight: 600;
}
.login-box input {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: white;
}
.login-box .primary {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
}
#login-error {
  color: var(--red);
  font-size: 12px;
  min-height: 15px;
}
.sidebar {
  width: 237px;
  height: 100vh;
  background: var(--sidebar);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 34px 24px;
  color: white;
  display: flex;
  flex-direction: column;
}
.sidebar > .eyebrow {
  margin: 49px 0 18px 12px;
  font-size: 9px;
}
.sidebar .wordmark {
  margin-left: 10px;
}
.nav-item {
  border: 0;
  color: #a9bdb1;
  background: transparent;
  width: 100%;
  text-align: left;
  padding: 15px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 12px;
}
.nav-item > span {
  font-size: 20px;
}
.nav-item small {
  margin-left: auto;
  font-size: 9px;
  opacity: 0.5;
}
.nav-item.active {
  background: var(--green);
  color: #213421;
  font-weight: 650;
}
.sidebar-footer {
  margin-top: auto;
  font-size: 10px;
  color: #a5bbac;
  border-top: 1px solid #31453b;
  padding: 24px 10px 0;
}
.sidebar-footer p {
  color: #80978a;
  font-size: 10px;
  margin: 10px 0 22px;
}
.sidebar-footer button {
  border: 0;
  background: none;
  color: #b5c7ba;
  padding: 0;
  font-size: 11px;
}
.private-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 7px;
}
.main {
  margin-left: 237px;
  padding: 0 40px;
  max-width: 1900px;
}
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--muted);
}
.slash {
  margin: 0 15px;
  color: #b2bdb5;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0;
  color: var(--ink);
  font-size: 11px;
}
.avatar {
  height: 29px;
  width: 29px;
  background: #e3ebdd;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.tag {
  font-size: 10px;
  color: #758278;
  border: 1px solid var(--border);
  padding: 5px 9px;
  border-radius: 5px;
  background: #fafcf8;
  white-space: nowrap;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 0 25px;
}
.page-heading h1 {
  font-size: 38px;
  letter-spacing: -1.8px;
  font-weight: 550;
  margin: 0 0 10px;
}
.page-heading h1 span {
  color: #70a946;
}
.page-heading .muted {
  margin: 0;
  font-size: 12px;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: end;
  padding: 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-wrap: wrap;
}
.filters > div {
  flex: 1;
  min-width: 110px;
}
.filters .service-filter {
  flex: 1.4;
}
.filters label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filters input,
.filters select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 7px;
  background: white;
  font-size: 11px;
  color: var(--ink);
}
.filters button {
  height: 36px;
  font-size: 11px;
}
.status-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 19px 1px 15px;
  font-size: 10px;
  color: var(--muted);
}
.quality-pill {
  padding: 5px 8px;
  background: #eaf0e5;
  border-radius: 20px;
  color: #6d7e69;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.metric-card {
  background: white;
  padding: 21px 20px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 134px;
}
.metric-label {
  color: #768078;
  font-size: 11px;
  margin: 0 0 15px;
}
.metric-value {
  font-size: 31px;
  font-weight: 560;
  letter-spacing: -1.5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.metric-meta {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
}
.status-badge {
  display: inline-block;
  font-size: 9px;
  border-radius: 4px;
  padding: 4px 6px;
  background: #f2f4ef;
  color: #7b8777;
}
.status-badge.real {
  background: #edf6e8;
  color: #4b7f3f;
}
.status-badge.partial {
  background: #fff5df;
  color: var(--amber);
}
.delta {
  font-size: 10px;
  color: #586c5a;
}
.chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.8fr) minmax(220px, 1fr);
  gap: 18px;
  margin-top: 21px;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 21px;
}
.chart-layout .panel {
  margin-bottom: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.panel-heading h2,
.objective h2 {
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.5px;
  margin: 0;
}
.panel-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 9px;
}
.chart {
  min-height: 230px;
  position: relative;
  display: grid;
  align-items: center;
}
.chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.chart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  color: var(--muted);
  font-size: 12px;
  gap: 12px;
}
.chart-empty strong {
  color: #83937b;
  font-size: 28px;
  font-weight: 400;
}
.chart-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: #879185;
  padding-top: 17px;
  border-top: 1px solid #eff1ec;
}
.legend {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  height: 6px;
  width: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.objective {
  background: #edf1e6;
  display: flex;
  flex-direction: column;
}
.objective h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 5px 0 20px;
}
.objective-number {
  font-size: 58px;
  font-weight: 500;
  letter-spacing: -3px;
}
.objective-number span {
  font-size: 15px;
  color: #7d8976;
  letter-spacing: 0;
}
.objective > p:not(.eyebrow) {
  font-size: 11px;
  margin: 5px 0 15px;
}
.objective hr {
  border: 0;
  border-top: 1px solid #d6dfce;
  width: 100%;
}
.objective small {
  font-size: 10px;
  color: #7b8772;
  line-height: 1.7;
}
.signals {
  margin-top: 21px;
}
.signal {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #eff1ec;
}
.signal-icon {
  background: #eef1e8;
  border-radius: 6px;
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #66805a;
}
.signal.warning .signal-icon {
  background: #fff3dd;
  color: var(--amber);
}
.signal h3 {
  font-size: 12px;
  font-weight: 550;
  margin: 0 0 6px;
}
.signal p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.notice {
  font-size: 12px;
  line-height: 1.6;
  padding: 14px 17px;
  background: #fff5df;
  border: 1px solid #ecdfc0;
  border-radius: 7px;
}
.notice.error {
  color: #923e34;
  background: #fff0ec;
}
.details input {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 9px;
  width: 250px;
  font-size: 11px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}
th {
  font-weight: 500;
  color: var(--muted);
  background: #f8faf5;
  padding: 13px 10px;
  white-space: nowrap;
}
td {
  padding: 15px 10px;
  border-bottom: 1px solid #edf0e9;
  font-variant-numeric: tabular-nums;
}
td:first-child {
  min-width: 230px;
}
td a {
  color: #6b7b6a;
  text-decoration: none;
  font-size: 10px;
  word-break: break-all;
}
td small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 5px;
}
.table-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #899384;
  font-size: 9px;
  letter-spacing: 0.4px;
  padding: 12px 0 32px;
}
.chart-point {
  fill: var(--accent);
  stroke: white;
  stroke-width: 2;
}
.chart-point:focus {
  stroke: var(--ink);
  stroke-width: 3;
}
.chart-label {
  font-size: 10px;
  fill: #8b9489;
}
.chart-grid {
  stroke: #edf0e9;
  stroke-dasharray: 3 5;
}
.chart-line {
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
}
.chart-tip {
  font-size: 11px;
  color: var(--muted);
  min-height: 18px;
  margin-top: 5px;
}
@media (min-width: 1600px) {
  .main {
    padding: 0 60px;
  }
  .metric-value {
    font-size: 37px;
  }
  .metric-card {
    padding: 25px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 195px;
    padding: 30px 15px;
  }
  .main {
    margin-left: 195px;
    padding: 0 24px;
  }
  .chart-layout {
    grid-template-columns: minmax(0, 2fr) minmax(190px, 1fr);
  }
  .metric-card {
    padding: 16px 13px;
  }
  .metric-value {
    font-size: 26px;
  }
  .filters {
    gap: 10px;
  }
  .filters .service-filter {
    min-width: 170px;
  }
}
@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chart-layout {
    grid-template-columns: 1fr;
  }
  .objective {
    display: flex;
  }
  .objective h2 {
    font-size: 18px;
  }
  .objective-number {
    font-size: 40px;
  }
  .sidebar {
    width: 175px;
    padding: 25px 10px;
  }
  .main {
    margin-left: 175px;
    padding: 0 20px;
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .topbar {
    height: 65px;
  }
  .topbar > .profile .tag {
    display: none;
  }
  .filters > div {
    min-width: 130px;
  }
  .page-footer {
    flex-direction: column;
  }
}
@media (max-width: 650px) {
  .login-wrap {
    grid-template-columns: 1fr;
  }
  .login-brand {
    display: none;
  }
  .login-form {
    min-height: 100vh;
    padding: 30px;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 15px 18px 8px;
    display: block;
  }
  .sidebar > .wordmark {
    font-size: 27px;
    margin-left: 4px;
  }
  .sidebar > .eyebrow,
  .sidebar-footer {
    display: none;
  }
  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
  }
  .nav-item {
    width: auto;
    min-width: 0;
    flex: 1 1 28%;
    padding: 11px 8px;
    font-size: 11px;
    gap: 6px;
    justify-content: center;
  }
  .nav-item small {
    display: none;
  }
  .nav-item > span {
    font-size: 15px;
  }
  .main {
    margin-left: 0;
    padding: 0 16px;
  }
  .topbar {
    height: 53px;
    font-size: 8px;
  }
  .slash {
    margin: 0 6px;
  }
  .profile {
    font-size: 10px;
    gap: 6px;
  }
  .avatar {
    width: 24px;
    height: 24px;
  }
  .page-heading {
    padding: 25px 0 20px;
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .page-heading .muted {
    font-size: 11px;
  }
  .page-heading .secondary {
    padding: 9px;
    font-size: 10px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .filters {
    padding: 13px;
    gap: 12px;
  }
  .filters > div,
  .filters .service-filter {
    flex: 1;
    min-width: calc(50% - 12px);
  }
  .filters > .primary {
    width: 100%;
  }
  .status-line {
    font-size: 9px;
    align-items: start;
  }
  .quality-pill {
    max-width: 48%;
    text-align: center;
  }
  .cards {
    gap: 10px;
  }
  .metric-card {
    padding: 15px 13px;
    min-height: 123px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric-value {
    font-size: 28px;
  }
  .metric-meta {
    font-size: 8px;
    gap: 3px;
    flex-wrap: wrap;
  }
  .panel {
    padding: 18px;
  }
  .panel-heading h2 {
    font-size: 16px;
  }
  .chart-footer {
    font-size: 8px;
  }
  .details .panel-heading {
    align-items: start;
    flex-direction: column;
  }
  .details input {
    width: 100%;
  }
  .page-footer {
    font-size: 8px;
    line-height: 1.8;
  }
  .panel-heading .eyebrow {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.15s,
      opacity 0.15s;
  }
  .metric-card {
    animation: appear 0.3s ease both;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.chart-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.chart-controls select {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: white;
  padding: 7px;
  font-size: 10px;
  max-width: 170px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#logout-mobile {
  display: none;
}
@media (max-width: 650px) {
  #logout-mobile {
    display: block;
    padding: 5px 7px;
    font-size: 9px;
  }
  .chart-controls {
    flex-wrap: wrap;
  }
  .chart-controls select {
    max-width: 130px;
  }
  .chart-controls .tag {
    display: none;
  }
}
