:root {
  --bg: #f6f7f4;
  --panel: #ffffff;
  --border: #e3e5df;
  --text: #1b1f1a;
  --muted: #6b7266;
  --accent: #1f7a4d;
  --accent-soft: #e6f3ec;
  --chip: #eef0ea;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131613;
    --panel: #1b1f1b;
    --border: #2a2f2a;
    --text: #e8ebe6;
    --muted: #9aa294;
    --accent: #5fbf8a;
    --accent-soft: #1f2e25;
    --chip: #242924;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 24px 56px; }

header.top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 26px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 18px; letter-spacing: -.5px;
}
.brand h1 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.2px; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
nav.links { display: flex; gap: 6px; }
nav.links a {
  padding: 7px 12px; border-radius: 8px; font-size: 13px; color: var(--muted);
  border: 1px solid transparent;
}
nav.links a.active, nav.links a:hover { color: var(--text); background: var(--panel); border-color: var(--border); }
.meta { color: var(--muted); font-size: 12.5px; margin: -14px 0 22px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 18px 20px 12px; display: flex; flex-direction: column; min-height: 240px;
}
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.panel-head h2 { margin: 0; font-size: 16px; font-weight: 650; }
.cadence {
  font-size: 11.5px; color: var(--accent); background: var(--accent-soft);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
ul.reports { list-style: none; margin: 0; padding: 0; flex: 1; }
ul.reports li { border-top: 1px solid var(--border); }
ul.reports li:first-child { border-top: 0; }
ul.reports a {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  padding: 10px 6px; margin: 0 -6px; border-radius: 8px;
}
ul.reports a:hover { background: var(--chip); }
ul.reports .title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.reports .date { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
ul.reports .type {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  background: var(--chip); padding: 2px 7px; border-radius: 5px;
}
.empty { color: var(--muted); font-size: 14px; padding: 26px 4px; text-align: center; flex: 1; display: grid; place-items: center; }
.panel-foot { display: flex; justify-content: flex-end; padding-top: 8px; }
.panel-foot a { font-size: 13px; color: var(--accent); font-weight: 600; }
.panel-foot a:hover { text-decoration: underline; }
.new-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }

/* archive page */
section.archive { margin-bottom: 30px; }
section.archive h2 { font-size: 17px; margin: 0 0 10px; display: flex; align-items: baseline; gap: 10px; }
section.archive h2 .count { color: var(--muted); font-weight: 400; font-size: 13px; }
section.archive .panel { min-height: 0; padding-bottom: 6px; }
footer.foot { margin-top: 40px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); padding-top: 14px; }
