:root {
  color-scheme: light;
  --ink: #142b29;
  --muted: #486260;
  --accent: #075c50;
  --line: #d2e2de;
  --surface: #f1f7f5;
  font: 100%/1.5 system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .18em; }
.top { background: white; border-bottom: 1px solid var(--line); }
.top-inner, .shell { margin-inline: auto; width: min(72rem, calc(100% - 2.5rem)); }
.top-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; min-height: 4.4rem; padding-block: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 780; font-size: 1.15rem; }
.dial { position: relative; display: inline-block; width: 1.65rem; height: 1.65rem; border: .14rem solid var(--accent); border-radius: 50%; background: #def1eb; }
.dial::after { position: absolute; left: 48%; top: 20%; width: 24%; height: 30%; content: ''; border-left: .13rem solid var(--accent); border-bottom: .13rem solid var(--accent); }
.dial.large { width: 2.8rem; height: 2.8rem; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.25rem; }
nav a, button.quiet { font-size: .9rem; font-weight: 650; }
button.quiet { padding: .35rem 0; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.shell { padding-block: 2.5rem 4rem; }
.narrow { max-width: 31rem; padding-top: clamp(2rem, 8vw, 6rem); }
.login { padding: clamp(1.3rem, 5vw, 2.5rem); }
.login h1 { margin-top: .6rem; }
.heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1.5rem; }
.heading.compact { align-items: start; gap: 1rem; margin-bottom: 1rem; }
.eyebrow { margin: 0 0 .25rem; font-weight: 700; color: var(--accent); }
h1, h2 { margin: 0; line-height: 1.18; letter-spacing: -.025em; }
h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h2 { font-size: 1.35rem; }
.muted { color: var(--muted); margin: .45rem 0 0; }
.back { display: inline-block; margin-bottom: 1rem; }
.totals, .team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.team-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
.metric { padding: 1.1rem 1.4rem; border: 1px solid var(--accent); border-radius: 1rem; color: white; background: var(--accent); }
.metric.pale { color: var(--ink); background: #e0f0ec; border-color: #c4e1d9; }
.metric p { margin: 0; font-weight: 650; }
.metric strong { font-size: 2rem; font-variant-numeric: tabular-nums; }
.card { min-width: 0; padding: clamp(1rem, 3vw, 1.6rem); margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: white; box-shadow: 0 3px 12px #153b3010; }
label { display: grid; gap: .28rem; font-size: .9rem; font-weight: 650; }
input, button, .button { min-height: 2.65rem; border-radius: .55rem; padding: .48rem .72rem; font: inherit; }
input { width: 100%; min-width: 0; border: 1px solid #a7c0ba; background: white; color: var(--ink); font-size: 1rem; }
button, .button { display: inline-flex; justify-content: center; align-items: center; border: 1px solid transparent; background: var(--accent); color: white; cursor: pointer; font-weight: 700; text-decoration: none; }
button:hover, .button:hover { filter: brightness(.93); }
.secondary { border-color: #b6cdc7; background: #f3f8f6; color: var(--accent); }
:focus-visible { outline: 3px solid #287cbb; outline-offset: 3px; }
.stack { display: grid; gap: 1rem; margin-top: 1.25rem; }
.inline { display: flex; align-items: end; gap: .55rem; }
.clock-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.selected { margin: .9rem 0 .75rem; font-weight: 750; }
.selected::first-letter { text-transform: uppercase; }
.actions { margin-top: 1.1rem; }
.table-wrap { overflow-x: auto; margin-top: .85rem; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .65rem .65rem; border-bottom: 1px solid var(--line); }
thead { background: var(--surface); font-size: .875rem; }
tbody td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.partial, small { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; }
.empty { background: var(--surface); color: var(--muted); padding: 1rem; border-radius: .55rem; margin: 1rem 0 0; }
.people { list-style: none; padding: 0; margin: .75rem 0 0; }
.people li { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .75rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.notice, .error { padding: .75rem 1rem; border-radius: .55rem; }
.notice { background: #d8eee5; color: #104935; }
.error { background: #fce9e5; color: #811d17; }
@media (max-width: 700px) {
  .team-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .clock-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
  .top-inner, .shell { width: calc(100% - 1.5rem); }
  .metric { padding: .8rem; }
  .metric strong { font-size: 1.45rem; }
}
.person-actions, .confirm-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.person-actions { justify-content: flex-end; }
.danger-link { color: #811d17; background: #fce9e5; }
button.danger { background: #981e17; }
