:root {
  --bg: #f5f5f0; --panel: #ffffff; --border: #d9d9d2; --text: #2a2a2a;
  --muted: #6b6b6b; --accent: #3a5a40; --accent-light: #e8f0e9;
  --warn: #c77a1f; --warn-bg: #fdf4e8; --alert: #b8342c; --alert-bg: #fbece9;
  --ok: #4a8a5f; --tab-inactive: #e5e5de;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
       background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45; }
header { background: var(--accent); color: #fff; padding: 14px 24px;
         display: flex; justify-content: space-between; align-items: center; }
header h1 { font-size: 18px; margin: 0; font-weight: 600; letter-spacing: 0.3px; }
.meta { font-size: 12px; opacity: 0.85; }
.tabs { display: flex; background: var(--panel); border-bottom: 1px solid var(--border); padding: 0 16px; }
.tab { padding: 12px 20px; font-weight: 500; color: var(--muted);
       cursor: pointer; border-bottom: 3px solid transparent;
       text-decoration: none; display: block; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab:hover:not(.active) { background: var(--tab-inactive); }
main { max-width: 1280px; margin: 0 auto; padding: 20px;
       display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile { background: var(--panel); border: 1px solid var(--border); border-radius: 6px;
        padding: 16px 18px; display: flex; flex-direction: column;
        box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.tile h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px;
           color: var(--muted); margin: 0 0 10px; font-weight: 600;
           display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tile h2 a { font-size: 11px; color: var(--accent); text-decoration: none;
             font-weight: 500; text-transform: none; letter-spacing: 0; }
.tile h2 a:hover { text-decoration: underline; }
.tile-sub { color: var(--muted); font-size: 10px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.metric { font-size: 28px; font-weight: 600; line-height: 1.1; }
.metric .sub { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; }
/* Who delivered the hours, shown beside a client name in the 615 pool rows. */
.sub-inline { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.metric-row { display: flex; gap: 28px; padding: 8px 0; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat .num { font-size: 24px; font-weight: 600; line-height: 1.1; }
.stat .num.alert { color: var(--alert); }
.stat .num.warn { color: var(--warn); }
.stat .num.muted { color: var(--muted); }
.stat .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.rows { margin-top: 8px; }
.row { display: flex; justify-content: space-between; padding: 6px 0;
       border-bottom: 1px solid #f0f0ea; font-size: 13px; gap: 12px; }
.row:last-child { border-bottom: none; }
.row .name { color: var(--text); font-weight: 500; }
.row .val { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.row .val.alert { color: var(--alert); font-weight: 500; }
.row .val a { color: var(--muted); text-decoration: none; }
.row .val a:hover { color: var(--accent); text-decoration: underline; }
.row-block { padding: 8px 0; border-bottom: 1px solid #f0f0ea; }
.row-head { display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.row-detail { color: var(--muted); font-size: 12px; padding: 2px 0; }
.subheader { font-size: 11px; text-transform: uppercase; color: var(--muted);
             letter-spacing: 0.5px; margin: 12px 0 4px; font-weight: 600; }
.pill { display: inline-block; font-size: 10px; font-weight: 600;
        padding: 2px 7px; border-radius: 10px; margin-left: 6px;
        text-transform: uppercase; letter-spacing: 0.3px; }
.pill.ok { background: var(--accent-light); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.alert { background: var(--alert-bg); color: var(--alert); }
.pill.muted { background: #eee; color: var(--muted); }
.footnote { font-size: 11px; color: var(--muted); margin-top: 8px; font-style: italic; }
.empty { color: var(--muted); font-style: italic; font-size: 13px; padding: 8px 0; }
.muted { color: var(--muted); font-weight: 400; }
.footer { max-width: 1280px; margin: 8px auto 24px; padding: 0 20px;
          font-size: 11px; color: var(--muted); font-style: italic; }
.freshness-banner { background: var(--accent-light); color: var(--accent);
                    padding: 12px 24px; font-size: 14px; font-weight: 600;
                    border-bottom: 2px solid var(--accent);
                    letter-spacing: 0.2px; }
.progress { height: 8px; background: #eee; border-radius: 4px;
            overflow: hidden; margin-top: 4px; }
.progress .fill { height: 100%; background: var(--accent); transition: width 0.3s; }
.progress .fill.warn { background: var(--warn); }
.progress .fill.alert { background: var(--alert); }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }
@media (max-width: 900px) {
  .col-4, .col-6, .col-8 { grid-column: span 12; }
}
