:root {
  --ink: #17302d;
  --muted: #697b77;
  --green: #13775e;
  --green-dark: #0b5643;
  --line: #dfe7e3;
  --surface: #fff;
  --bg: #f4f7f5;
  --nav: #142c28;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #cbd8d2;
  border-radius: 7px;
  padding: 10px 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #edf3ef;
  text-decoration: none;
}
button.primary,
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
button.primary:hover,
.button.primary:hover {
  background: var(--green-dark);
}
button.danger {
  color: #a63637;
  border-color: #e6bcbc;
}
.full {
  width: 100%;
}
input,
select,
textarea {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 1px solid #cbd8d2;
  padding: 10px 11px;
  border-radius: 6px;
  min-width: 0;
}
input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #a2d5c2;
  outline-offset: 2px;
}
input[readonly] {
  background: #f0f3f1;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
label small {
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}
.shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--nav);
  color: #c4d3cf;
  padding: 27px 17px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.6px;
  padding: 0 8px 23px;
}
.brand:hover {
  text-decoration: none;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #9aafa8;
  margin-top: 5px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 39px;
  border-radius: 10px 10px 10px 0;
  background: #b9e6d0;
  color: #14392e;
  font-size: 24px;
  font-weight: 800;
}
.nav-group {
  margin-top: 19px;
}
.nav-group > span {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 0 12px;
  margin-bottom: 7px;
  color: #829f95;
}
.nav-group a {
  display: block;
  border-radius: 6px;
  padding: 8px 12px;
  color: #bdcec7;
  font-size: 12px;
  margin: 2px 0;
}
.nav-group a.active {
  background: #294b40;
  color: #ddf6e9;
  border-left: 3px solid #abd4bb;
  padding-left: 9px;
}
.nav-group a:hover {
  background: #26473d;
  text-decoration: none;
}
.account {
  margin-top: auto;
  border-top: 1px solid #365247;
  padding: 18px 12px 0;
  display: grid;
  gap: 4px;
  font-size: 12px;
}
.account .muted {
  color: #9db2a9;
}
.link-button {
  border: 0;
  background: none;
  color: #bfd3c9;
  padding: 6px 0;
  font-size: 12px;
}
.link-button:hover {
  background: none;
  color: #fff;
}
main {
  padding: 0 36px 22px;
  min-width: 0;
  max-width: 1800px;
}
.topline {
  height: 65px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.9px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 30px 0 23px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--green);
  margin: 0 0 10px;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 0 0 10px;
  font-weight: 650;
}
h2 {
  font-size: 16px;
  margin: 0 0 16px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.6px;
  margin: 0 0 12px;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
}
.page-heading p.muted {
  margin: 0;
  font-size: 13px;
}
.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.inline-form label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.inline-form input {
  font-size: 13px;
  min-width: 160px;
}
.status-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.status-strip strong {
  font-weight: 500;
  color: var(--ink);
}
.status-strip a {
  margin-left: auto;
}
.badge {
  display: inline-block;
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 9px;
  letter-spacing: 0.5px;
  font-weight: 700;
  white-space: nowrap;
}
.badge.good {
  background: #e1f1e8;
  color: #237354;
}
.badge.bad {
  background: #fae8e4;
  color: #a34137;
}
.badge.warm {
  background: #f9efda;
  color: #966422;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 14px;
  gap: 10px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading > span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.6px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 22px;
}
.kpi {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
}
.kpi-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}
.kpi strong {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1px;
  display: block;
  font-variant-numeric: tabular-nums;
}
.kpi-comparison {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
}
.kpi-comparison span {
  font-size: 10px;
  padding: 4px 6px;
  background: #edf5ef;
  color: var(--green);
  border-radius: 4px;
}
.kpi-comparison small {
  font-size: 10px;
  color: var(--muted);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 23px;
  margin-bottom: 20px;
  min-width: 0;
}
.panel > .section-heading {
  margin-top: 0;
}
.panel.flush {
  padding: 0;
  overflow: hidden;
}
.charts-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}
.chart-wrap {
  position: relative;
  height: 240px;
}
.dimension-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1ee;
  font-size: 12px;
}
.dimension-row:last-child {
  border: 0;
}
.dimension-row > span {
  overflow-wrap: anywhere;
}
.dimension-row strong,
.dimension-row b {
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.split-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin-top: 26px;
}
.split-metrics .dimension-row {
  font-size: 10px;
  padding: 7px 0;
}
.split-metrics .dimension-row b {
  font-size: 10px;
}
.three-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.two-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.rank {
  display: inline-block;
  color: #9aa9a2;
  width: 22px;
  font-size: 10px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: #f8faf8;
  font-weight: 600;
  padding: 13px 15px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
}
td {
  padding: 13px 15px;
  border-bottom: 1px solid #edf1ee;
  white-space: nowrap;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
}
td.wrap {
  white-space: normal;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fbfcfb;
}
.numeric {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.row-actions {
  display: flex;
  gap: 14px;
  min-height: 51px;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 20px;
}
.toolbar > input {
  max-width: 320px;
}
.toolbar > select {
  max-width: 160px;
}
.toolbar label {
  font-size: 10px;
  max-width: 160px;
}
.toolbar > a {
  padding: 10px;
  font-size: 12px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.job-actions {
  margin: 5px 0 25px;
}
.empty {
  text-align: center;
  padding: 65px 20px;
  color: var(--muted);
}
.empty h2 {
  color: var(--ink);
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
}
.empty.compact {
  padding: 32px 6px;
  font-size: 12px;
}
.pagination {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.pagination > div {
  display: flex;
  gap: 8px;
}
.notice {
  background: #fff6de;
  border: 1px solid #ecdbb0;
  padding: 15px 20px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.7;
  margin: 20px 0;
  color: #766030;
}
.notice.success {
  background: #e7f3eb;
  color: #226c50;
  border-color: #bcddc7;
}
.form-panel {
  max-width: 950px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 25px;
}
.form-grid button {
  align-self: end;
  justify-self: start;
}
.form-end {
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.resolution {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  font-size: 13px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
}
summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
details table {
  margin-top: 20px;
}
footer {
  display: flex;
  justify-content: space-between;
  color: #8c9b93;
  font-size: 10px;
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding: 22px 0 0;
}
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #16382e;
  padding: 30px;
}
.login-card {
  width: 450px;
  max-width: 100%;
  background: #f8faf7;
  border-radius: 15px;
  padding: 42px;
}
.login-card .brand-mark {
  margin-bottom: 30px;
}
.login-card h1 {
  font-size: 34px;
}
.login-card form {
  margin-top: 30px;
}
.login-card label {
  margin-bottom: 20px;
}
.error-panel {
  margin-top: 40px;
}
.login-card .error-panel {
  padding: 0;
  border: 0;
  background: none;
}
#email-lines input {
  min-width: 105px;
}
#email-lines td:first-child input {
  min-width: 220px;
}
@media (min-width: 1550px) {
  .kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .kpi strong {
    font-size: 25px;
  }
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  main {
    padding: 0 22px 20px;
  }
  .charts-grid {
    grid-template-columns: 1fr;
  }
  .three-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .topline span:last-child {
    display: none;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 16px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 12px;
  }
  .nav-group {
    min-width: 150px;
  }
  .account {
    display: none;
  }
  .brand {
    padding-bottom: 0;
  }
  .kpi-grid,
  .two-grid,
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kpi {
    padding: 14px;
  }
  .kpi strong {
    font-size: 23px;
  }
  .status-strip {
    gap: 12px;
  }
  .status-strip a {
    margin-left: 0;
  }
  .topline {
    height: 45px;
  }
}
@media print {
  .sidebar,
  .toolbar,
  .actions,
  .topline,
  footer {
    display: none;
  }
  .shell {
    display: block;
  }
  main {
    padding: 0;
  }
  .panel,
  .kpi {
    break-inside: avoid;
  }
  .chart-wrap {
    height: 220px;
  }
}
