﻿:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --panel: #ffffff;
  --ink: #17201b;
  --muted: #637067;
  --line: #d9dfd8;
  --accent: #2d6a4f;
  --accent-soft: #dff1e8;
  --warn: #a15c16;
  --danger: #9f2f2f;
  --shadow: 0 10px 30px rgba(23, 32, 27, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow, .label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.12;
}

h2 {
  margin-bottom: 6px;
  font-size: 20px;
}

.safety-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.summary-grid, .bucket-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.summary-card, .bucket-card, .panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.summary-card { padding: 18px; }
.summary-card strong { display: block; margin-top: 8px; font-size: 28px; }

.panel { margin-top: 16px; padding: 18px; }

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.panel-heading p {
  max-width: 460px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.bucket-card {
  box-shadow: none;
  padding: 14px;
}

.bucket-card strong { display: block; margin-top: 8px; font-size: 24px; }
.bucket-card span:last-child { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }

.action-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.action-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.action-item strong { display: block; margin-bottom: 4px; }
.action-item span { color: var(--muted); font-size: 14px; }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th { color: var(--muted); font-size: 12px; text-transform: uppercase; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.pill.warn { background: #f8ead8; color: var(--warn); }
.pill.danger { background: #f8dddd; color: var(--danger); }

@media (max-width: 840px) {
  .topbar, .panel-heading { display: block; }
  .safety-note { display: inline-block; margin-top: 14px; white-space: normal; }
  .summary-grid, .bucket-grid, .action-list { grid-template-columns: 1fr; }
}
