:root {
  color-scheme:light;
  --ink:#172b29;
  --muted:#6a7d78;
  --line:#dfe7e2;
  --green:#156b50;
  --orange:#dba25b;
  --paper:#f5f7f4;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
a {
  color:var(--green);
  text-decoration:none;
}
a:hover {
  text-decoration:underline;
}
.header {
  height:82px;
  padding:0 5%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  background:white;
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--ink);
  font-weight:700;
  font-size:19px;
}
.brand .muted {
  font-size:13px;
  font-weight:400;
}
.brand-mark {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:9px;
  background:var(--green);
  color:white;
  font-family:Georgia,serif;
  font-size:25px;
}
nav {
  display:flex;
  align-items:center;
  gap:22px;
  font-size:13px;
}
nav form {
  margin:0;
}
.text-button {
  background:none;
  border:0;
  padding:0;
  color:var(--muted);
  font:inherit;
  cursor:pointer;
}
main {
  max-width:1440px;
  padding:45px 5% 60px;
  margin:auto;
}
.page-heading,.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.page-heading {
  margin-bottom:28px;
}
h1 {
  font-size:clamp(26px,3vw,40px);
  font-weight:550;
  letter-spacing:-1.5px;
  line-height:1.15;
  margin:8px 0 12px;
}
h2 {
  font-size:20px;
  font-weight:550;
  margin:2px 0;
  letter-spacing:-.5px;
}
.accent {
  color:var(--green);
}
p {
  margin:7px 0;
}
.muted,.caption {
  color:var(--muted);
}
.caption {
  font-size:12px;
}
.eyebrow {
  font-size:10px;
  letter-spacing:1.7px;
  font-weight:700;
  color:var(--muted);
}
.panel {
  background:white;
  border:1px solid var(--line);
  border-radius:12px;
  margin-bottom:22px;
}
.filters {
  padding:20px;
  display:flex;
  gap:16px;
  align-items:flex-end;
}
label {
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:12px;
  font-weight:600;
  flex:1;
}
select,input {
  height:42px;
  border:1px solid #cdd8d1;
  border-radius:6px;
  padding:0 12px;
  font:inherit;
  color:var(--ink);
  background:white;
  min-width:0;
  width:100%;
}
input:focus,select:focus,button:focus-visible,a:focus-visible {
  outline:2px solid var(--green);
  outline-offset:3px;
}
.primary,.button {
  border:1px solid var(--line);
  border-radius:6px;
  padding:11px 17px;
  font:600 13px system-ui;
  cursor:pointer;
  white-space:nowrap;
  background:white;
  color:var(--ink);
}
.primary {
  background:var(--green);
  color:white;
  border-color:var(--green);
  height:42px;
}
.source-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
}
.source {
  padding:19px 22px;
}
.source>div {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#c79b54;
}
.dot.ok {
  background:#268b60;
}
.badge {
  font-size:10px;
  padding:4px 8px;
  background:#f0f4f0;
  border-radius:4px;
  color:#61736b;
}
.source .badge {
  margin-left:auto;
}
.notice {
  padding:14px 18px;
  border:1px solid #efd2a3;
  background:#fff6e7;
  border-radius:8px;
  font-size:13px;
  margin-bottom:22px;
}
.chart-panel {
  padding:26px;
}
.legend {
  display:flex;
  gap:18px;
  font-size:12px;
}
.legend span {
  display:flex;
  align-items:center;
  gap:6px;
}
.legend i {
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:2px;
}
.revenue-key {
  background:var(--green);
}
.expense-key {
  background:var(--orange);
}
#chart {
  overflow-x:auto;
  min-height:235px;
  margin-top:25px;
}
#chart svg {
  display:block;
  min-width:850px;
  width:100%;
  height:auto;
}
#chart text {
  font:10px system-ui;
  fill:var(--muted);
}
.table-panel>.section-heading {
  padding:23px 26px;
}
.table-scroll {
  overflow-x:auto;
}
table {
  border-collapse:collapse;
  width:100%;
  font-size:13px;
  white-space:nowrap;
}
th,td {
  text-align:left;
  border-top:1px solid #edf0ed;
  padding:16px 24px;
}
thead th {
  color:var(--muted);
  font-size:10px;
  letter-spacing:.7px;
  text-transform:uppercase;
  font-weight:600;
  background:#fafbf9;
}
tbody th {
  font-weight:500;
}
.number {
  text-align:right;
  font-variant-numeric:tabular-nums;
}
.revenue {
  color:var(--green);
}
.product-tag {
  padding:4px 8px;
  border:1px solid var(--line);
  border-radius:4px;
  font-size:11px;
}
.empty {
  text-align:center;
  padding:45px;
  color:var(--muted);
}
.methodology {
  padding:12px 4px;
  max-width:960px;
  color:var(--muted);
  font-size:12px;
}
.methodology h2 {
  font-size:15px;
  color:var(--ink);
  margin-bottom:10px;
}
.methodology p {
  margin-bottom:12px;
}
.login {
  max-width:440px;
  padding:40px;
  margin:40px auto;
}
.login h1 {
  font-family:Georgia,serif;
  font-size:36px;
  font-weight:400;
}
.login form {
  display:flex;
  flex-direction:column;
  gap:12px;
  margin:26px 0;
}
.login .primary {
  margin-top:10px;
}
.error {
  color:#a13825;
  font-size:13px;
}
@media(max-width:760px) {
  .header {
    padding:15px 5%;
    height:auto;
  }
  .brand .muted {
    display:none;
  }
  nav {
    gap:12px;
  }
  main {
    padding-top:28px;
  }
  .page-heading {
    align-items:flex-start;
    flex-direction:column;
  }
  .filters {
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .filters button {
    grid-column:1/-1;
  }
  .source-grid {
    grid-template-columns:1fr;
    gap:0;
  }
  .section-heading {
    align-items:flex-start;
    flex-direction:column;
  }
  th,td {
    padding:14px 18px;
  }
  .chart-panel {
    padding:20px;
  }
  .login {
    padding:26px;
  }
  nav>span {
    display:none;
  }
}

.pnl-total th, .pnl-total td { font-weight: 700; background: rgba(128,128,128,.08); }
