:root {
  --bg: #ffffff;
  --fg: #192435;
  --muted: #5c6878;
  --line: #e3e6ea;
  --tile: #f6f7f9;
  --accent: #017737;
  --accent-fg: #ffffff;
  --error: #b3261e;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 15px;
  color: var(--fg);
  background: var(--bg);
}
[data-theme="dark"] {
  --bg: #1b1f24;
  --fg: #eef1f4;
  --muted: #a3adb9;
  --line: #333a43;
  --tile: #242a31;
  --accent: #26a65b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}
.bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.bar h1 {
  font-size: 16px;
  margin: 0;
  flex: 0 0 auto;
}
.status {
  flex: 1 1 auto;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}
.status.error {
  color: var(--error);
}
button {
  font: inherit;
  cursor: pointer;
}
.refresh {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 6px;
  padding: 5px 12px;
}
.refresh:disabled {
  opacity: 0.6;
  cursor: default;
}
main {
  padding: 14px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--tile);
  color: var(--fg);
}
.tile:hover,
.tile:focus-visible {
  border-color: var(--accent);
  outline: none;
}
.tile-label {
  font-weight: 600;
}
.tile-label small {
  font-weight: 400;
  color: var(--muted);
}
.tile-count {
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.tile-hint {
  color: var(--muted);
  font-size: 13px;
}
.tile:last-child {
  grid-column: 1 / -1;
}
.breakdown {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
}
.breakdown li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 3px;
}
.foot {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 2px 0;
}
.list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.back {
  border: none;
  background: none;
  color: var(--accent);
  padding: 4px 0;
  font-weight: 600;
}
.see-in-pd {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.see-in-pd::after {
  content: " ↗";
}
.list h2 {
  margin: 8px 0 2px;
  font-size: 18px;
}
.intro {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}
.group h3 {
  font-size: 14px;
  margin: 14px 0 6px;
}
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.rows li + li {
  border-top: 1px solid var(--line);
}
.row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 8px 12px;
  color: var(--fg);
  text-decoration: none;
}
a.row:hover,
a.row:focus-visible {
  background: var(--tile);
  outline: none;
}
.row-title {
  font-weight: 600;
  grid-column: 1;
}
.row-sub {
  grid-column: 1;
  color: var(--muted);
  font-size: 13px;
}
.row-go {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--muted);
  font-size: 20px;
}
.empty {
  color: var(--muted);
  font-style: italic;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.tile {
  padding: 10px;
}
.tile:last-child .tile-count {
  font-size: 34px;
}

.tile {
  padding: 0;
  overflow: hidden;
}
.tile-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 10px;
  border: 0;
  background: none;
  color: var(--fg);
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.tile-main:hover,
.tile-main:focus-visible {
  background: rgba(1, 119, 55, 0.06);
  outline: none;
}
.tile-cta {
  margin-top: 2px;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}
.tile-preview {
  align-self: stretch;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font-size: 12px;
  padding: 5px 10px;
  text-align: left;
}
.tile-preview:hover {
  color: var(--accent);
}
.tile .breakdown {
  padding: 0 10px 8px;
}
.bd-link {
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: var(--fg);
  text-decoration: none;
}
a.bd-link:hover span {
  color: var(--accent);
  text-decoration: underline;
}
.group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.section-pd {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.section-pd::after {
  content: " ↗";
}
.pd-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.note {
  background: #fff6e0;
  color: #6b4e00;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
}
[data-theme="dark"] .note {
  background: #3a3220;
  color: #f3d98b;
}
.tile-main {
  flex: 1 1 auto;
}
.tile-cta {
  font-size: 12px;
  white-space: nowrap;
}
a.bd-link > span:first-child::after {
  content: " ↗";
  color: var(--accent);
  font-size: 12px;
}
