@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

:root {
  color-scheme: light;
  --ink: #1b302c;
  --muted: #62716d;
  --bg: #f3f6f4;
  --line: #e2e9e4;
  --green: #13795c;
  --lime: #c6f78d;
  --orange: #d48a2a;
  --nav: #122925;
  --font: 'DM Sans', sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
}
button,
select,
input {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #6e9bd1;
  outline-offset: 4px;
}
button {
  color: inherit;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  z-index: 20;
  top: -80px;
  left: 20px;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 220px;
  background: var(--nav);
  color: #eaf4ed;
  padding: 35px 20px 24px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  font:
    800 31px 'Manrope',
    sans-serif;
  letter-spacing: -1.5px;
  margin: 0 5px 53px;
}
.brand-mark {
  background: var(--lime);
  color: var(--nav);
  width: 32px;
  height: 34px;
  font: bold 33px/1 sans-serif;
  text-align: center;
  border-radius: 9px;
  margin-right: 10px;
  letter-spacing: 0;
}
.brand-period {
  color: var(--lime);
}
.workspace-label,
.mini-label {
  font-size: 12px;
  letter-spacing: 1.65px;
  font-weight: 600;
  color: #95aca2;
}
.workspace-label {
  margin: 0 13px 14px;
}
.nav-link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-radius: 8px;
  margin-bottom: 6px;
  color: #c1d1c8;
  font-size: 14px;
}
.nav-link > span:first-child {
  font-size: 21px;
  line-height: 1;
}
.nav-link:hover {
  background: #203d34;
}
.nav-link.active {
  background: #2a4338;
  color: #d8f4b8;
}
.nav-number {
  font-size: 12px;
  margin-left: auto;
  opacity: 0.7;
}
.sidebar-note {
  margin: auto 12px;
  padding: 56px 0;
}
.sidebar-note p {
  font:
    600 22px/1.45 'Manrope',
    sans-serif;
  letter-spacing: -0.5px;
  max-width: 150px;
}
.sidebar-note > span:last-child {
  font-size: 13px;
  color: #9db4a8;
  line-height: 1.9;
}
.hairline {
  height: 1px;
  width: 34px;
  background: #4e6757;
  margin: 23px 0;
}
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  padding-top: 20px;
  border-top: 1px solid #2f493f;
}
.sidebar-footer small {
  display: block;
  color: #9bb0a6;
  font-size: 12px;
}
.avatar {
  flex-shrink: 0;
  border: 1px solid #496256;
  border-radius: 50%;
  padding: 7px;
  color: #d8f4b8;
}
.workspace {
  margin-left: 220px;
}
.topbar {
  min-height: 77px;
  padding: 20px 38px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  font-size: 14px;
}
.region-symbol {
  color: var(--green);
  margin-right: 10px;
  font-size: 20px;
}
.divider {
  color: #b6c1ba;
  margin: 0 14px;
}
.snapshot-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}
main {
  max-width: 1640px;
  margin: 0 auto;
  padding: 36px 38px 18px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 29px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.4px;
  font-weight: 650;
  color: var(--muted);
}
h1,
h2,
h3 {
  font-family: 'Manrope', sans-serif;
}
h1 {
  font-size: clamp(27px, 2.7vw, 39px);
  letter-spacing: -1.5px;
  line-height: 1.25;
  margin: 8px 0 10px;
  font-weight: 750;
}
.page-heading p {
  margin: 0;
  color: var(--muted);
}
h2 {
  font-size: 18px;
  line-height: 1.5;
  margin: 5px 0 0;
  font-weight: 750;
  letter-spacing: -0.45px;
}
h3 {
  font-size: 17px;
}
.button,
select,
.icon-button {
  border: 1px solid #d7e1da;
  background: white;
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 14px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-weight: 500;
}
.button:hover,
.icon-button:hover {
  background: #eaf1eb;
}
.export-button {
  box-shadow: 0 2px 3px #12342106;
}
.context-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--muted);
}
.context-bar > div {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.badge {
  border: 1px solid #d3dfd7;
  color: #486756;
  background: #e7efe8;
  border-radius: 5px;
  font-size: 12px;
  padding: 4px 8px;
  white-space: nowrap;
}
.badge.warn {
  color: #8a5315;
  background: #fff2db;
  border-color: #efdfbb;
}
.range-label {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}
select {
  padding-right: 25px;
  color: var(--ink);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 21px 17px;
}
.metric:first-child {
  background: #e7f0e7;
  border-color: #d5e4d4;
}
.metric-label {
  font-size: 14px;
  color: #4b6256;
}
.metric-value {
  font:
    650 34px/1.3 'Manrope',
    sans-serif;
  letter-spacing: -1.2px;
  margin: 8px 0 7px;
  font-variant-numeric: tabular-nums;
}
.metric-value small {
  font: 450 16px var(--font);
  letter-spacing: 0;
  color: var(--muted);
}
.metric-note {
  color: var(--muted);
  font-size: 12px;
}
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  gap: 22px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 22px 24px 10px;
}
.panel-heading .eyebrow {
  font-size: 12px;
}
.date-label select {
  max-width: 168px;
  font-size: 13px;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px;
  padding: 9px 24px 0;
  color: var(--muted);
  font-size: 12px;
}
.chart-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-line {
  width: 16px;
  height: 2px;
  display: inline-block;
}
.legend-line.actual {
  background: var(--green);
}
.legend-line.forecast {
  border-top: 2px dashed var(--orange);
}
.unit-note {
  margin-left: auto;
}
.chart-wrap {
  padding: 10px 12px 0;
  min-height: 245px;
}
.chart-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
svg text {
  font-family: var(--font);
}
.chart-caption {
  font-size: 12px;
  color: var(--muted);
  margin: 0 24px 18px;
}
.point-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: #fbfcfb;
}
.point-card {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  text-align: left;
  cursor: pointer;
}
.point-card:first-child {
  padding-left: 23px;
}
.point-card:last-child {
  border-right: 0;
}
.point-card:hover {
  background: #edf4eb;
}
.point-card small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.point-card strong {
  font-size: 17px;
  font-weight: 550;
}
.point-card span {
  display: block;
  font-size: 12px;
  color: #806139;
}
.insight-card {
  background: #d4ebc1;
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.insight-card .eyebrow {
  color: #4c693d;
}
.insight-glyph {
  font:
    400 52px/1.15 'Manrope',
    sans-serif;
  padding: 24px 0 9px;
}
.insight-card h2 {
  font-size: 24px;
  line-height: 1.3;
  max-width: 190px;
  letter-spacing: -0.7px;
}
.insight-card p {
  font-size: 14px;
  color: #466139;
  margin: 13px 0;
}
.insight-stat {
  font:
    650 34px 'Manrope',
    sans-serif;
  letter-spacing: -1px;
}
.insight-stat span {
  font: 12px var(--font);
  letter-spacing: 0;
  display: block;
}
.insight-link {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  padding-top: 18px;
  margin-top: auto;
  border-top: 1px solid #b7d2a2;
}
.lower-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  margin-top: 22px;
}
.secondary {
  color: var(--muted);
  font-size: 12px;
}
.heatmap {
  padding: 18px 24px 6px;
  display: grid;
  gap: 6px;
  overflow-x: auto;
}
.heat-row {
  display: grid;
  grid-template-columns: 105px repeat(var(--days), minmax(12px, 1fr));
  gap: 4px;
  align-items: center;
}
.heat-row label {
  font-size: 12px;
  color: var(--muted);
}
.heat-cell {
  border: 0;
  min-width: 12px;
  height: 28px;
  border-radius: 3px;
  padding: 0;
}
.heat-cell:hover {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
.heat-dates {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  padding-left: 110px;
}
.heat-legend {
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 24px 22px;
  color: var(--muted);
  flex-wrap: wrap;
}
.heat-legend i {
  height: 7px;
  width: 55px;
  background: linear-gradient(90deg, #e4eee7, #20664c);
  border-radius: 2px;
}
.heat-legend span:last-child {
  margin-left: auto;
}
.exception-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf0ec;
  background: white;
  text-align: left;
  padding: 13px 24px;
}
.exception-row:hover {
  background: #f3f7f1;
}
.exception-row:last-child {
  border: 0;
}
.exception-row strong {
  font-weight: 550;
  font-size: 14px;
}
.exception-row small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.error-chip {
  background: #fcf0df;
  color: #9b671e;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 13px;
  white-space: nowrap;
}
.trust-strip {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 23px 0 5px;
}
.trust-symbol {
  width: 33px;
  height: 33px;
  border: 1px solid #cadacc;
  border-radius: 50%;
  text-align: center;
  padding-top: 3px;
  color: var(--green);
}
.trust-strip strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
}
.trust-strip div > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.trust-strip a {
  margin-left: auto;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 550;
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: #718079;
  flex-wrap: wrap;
}
footer > span:first-child {
  letter-spacing: 1px;
  font-size: 12px;
}
.footer-cross {
  padding: 0 9px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 25px;
  max-width: 640px;
  width: calc(100% - 32px);
  color: var(--ink);
  box-shadow: 0 24px 100px #09261930;
}
dialog::backdrop {
  background: #09261970;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.icon-button {
  font-size: 25px;
  padding: 0 12px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
dl {
  margin: 0;
}
dt {
  font-size: 12px;
  color: var(--muted);
}
dd {
  margin: 4px 0 18px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.detail-note {
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.quality-check {
  padding: 23px;
}
.quality-check h2 {
  margin: 13px 0 8px;
}
.quality-check p {
  color: var(--muted);
  font-size: 14px;
}
.status-good {
  color: #216542;
}
.status-warn {
  color: #96621e;
}
.notice {
  padding: 18px 22px;
  background: #fcf0df;
  border: 1px solid #eeddc5;
  border-radius: 9px;
  font-size: 14px;
}
.prose {
  padding: 28px;
}
.prose p {
  max-width: 850px;
  color: #53665c;
}
.prose a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 22px;
}
.pipeline-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.pipeline-steps span {
  padding: 9px 15px;
  background: #e9f0e8;
  border-radius: 6px;
  font-size: 14px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  background: #f9fbf8;
  font-weight: 500;
}
.table-scroll {
  overflow: auto;
}
.table-caption {
  padding: 15px 22px;
  color: var(--muted);
  font-size: 14px;
}
.quality-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.quality-actions label {
  font-size: 14px;
}
.code-formula {
  background: #edf3ec;
  border-radius: 5px;
  display: block;
  padding: 12px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
#load-error {
  background: #fff2df;
  padding: 20px;
  border: 1px solid #e3c790;
  border-radius: 10px;
}
@media (min-width: 1600px) {
  .chart-wrap {
    min-height: 320px;
  }
  .insight-card {
    padding: 30px;
  }
  .main-grid {
    grid-template-columns: minmax(0, 1fr) 295px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 195px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .workspace {
    margin-left: 195px;
  }
  main {
    padding: 28px 25px 18px;
  }
  .topbar {
    padding: 19px 25px;
  }
  .main-grid {
    grid-template-columns: minmax(0, 1fr) 225px;
    gap: 16px;
  }
  .insight-card {
    padding: 20px;
  }
  .panel-heading {
    padding-left: 18px;
    padding-right: 18px;
  }
  .metric {
    padding: 17px;
  }
  .metric-value {
    font-size: 29px;
  }
  .chart-legend {
    padding-left: 18px;
  }
  .lower-grid {
    gap: 16px;
  }
  .point-card small {
    font-size: 12px;
  }
  .point-card:first-child {
    padding-left: 12px;
  }
}
@media (max-width: 1000px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  .insight-card {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 12px 25px;
  }
  .insight-glyph {
    display: none;
  }
  .insight-card h2 {
    max-width: none;
    grid-column: 1;
  }
  .insight-card p {
    grid-column: 2;
    grid-row: 1/3;
    margin: 0;
  }
  .insight-stat {
    grid-column: 1;
    font-size: 28px;
  }
  .insight-link {
    grid-column: 2;
    grid-row: 3;
  }
  .lower-grid {
    grid-template-columns: 1fr;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quality-grid {
    grid-template-columns: 1fr 1fr;
  }
  .method-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 18px 20px 0;
  }
  .brand {
    margin: 0 0 17px;
    font-size: 26px;
  }
  .brand-mark {
    width: 28px;
    height: 30px;
    font-size: 29px;
  }
  .workspace-label,
  .sidebar-note,
  .sidebar-footer {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 8px;
  }
  .nav-link {
    padding: 10px 11px;
    font-size: 13px;
    gap: 7px;
    margin-bottom: 12px;
  }
  .nav-number {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    min-height: 58px;
    padding: 14px 20px;
    font-size: 12px;
  }
  .snapshot-label {
    display: none;
  }
  main {
    padding: 25px 18px 18px;
  }
  h1 {
    font-size: 29px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading p {
    font-size: 14px;
  }
  .export-button {
    padding: 7px 11px;
    margin-top: 5px;
  }
  .export-button span {
    display: none;
  }
  .context-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .range-label {
    width: 100%;
    justify-content: space-between;
  }
  .metric-grid {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric-value {
    font-size: 28px;
  }
  .metric-label {
    font-size: 13px;
  }
  .panel-heading {
    align-items: flex-start;
    padding: 18px 16px 10px;
    flex-wrap: wrap;
  }
  .panel-heading h2 {
    font-size: 17px;
  }
  .chart-wrap {
    min-height: 0;
    padding: 12px 6px 0;
  }
  .chart-caption {
    margin-left: 16px;
    margin-right: 16px;
  }
  .unit-note {
    margin-left: 0;
  }
  .point-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .point-card {
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
  }
  .point-card:first-child {
    padding-left: 16px;
  }
  .insight-card {
    display: block;
    padding: 24px;
  }
  .insight-card h2 {
    margin: 13px 0;
  }
  .insight-card p {
    font-size: 14px;
  }
  .insight-stat {
    margin: 14px 0;
  }
  .insight-link {
    margin-top: 20px;
  }
  .quality-grid {
    grid-template-columns: 1fr;
  }
  .trust-strip {
    flex-wrap: wrap;
  }
  .trust-strip a {
    margin-left: 48px;
  }
  .heatmap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .heat-row {
    grid-template-columns: 84px repeat(var(--days), minmax(7px, 1fr));
    gap: 3px;
  }
  .heat-cell {
    min-width: 7px;
  }
  .heat-dates {
    padding-left: 88px;
  }
  .heat-legend {
    padding-left: 16px;
    padding-right: 16px;
  }
  .quality-actions {
    flex-wrap: wrap;
  }
  .prose {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .view {
    animation: appear 0.25s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0.5;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
