:root {
  --green: #72b83d;
  --green-dark: #4f8a24;
  --blue: #176f98;
  --navy: #0b3b50;
  --ink: #17252d;
  --muted: #5b6b74;
  --line: #dde5ea;
  --bg: #f3f6f8;
  --card: #ffffff;
  --good-bg: #edf7e6;
  --warn-bg: #fff6e0;
  --warn-line: #e9c46a;
  --bad-bg: #fdecec;
  --bad-line: #e08b8b;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.45; }
a { color: var(--blue); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site { background: var(--navy); color: #fff; }
.site-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-logo { border-radius: 8px; background: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-kicker { font-size: 12px; letter-spacing: .12em; color: var(--green); font-weight: 700; }
.brand-name { font-size: 20px; font-weight: 700; }
.account { display: flex; align-items: center; gap: 10px; margin: 0; }
.who { font-size: 14px; opacity: .85; overflow-wrap: anywhere; }

.main { padding-top: 24px; padding-bottom: 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.card.narrow { max-width: 460px; margin: 40px auto; }
h1, h2 { margin: 0 0 4px; color: var(--navy); }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
.lede { margin: 0; color: var(--muted); }
.section-head { margin-bottom: 16px; }
.count { display: inline-block; min-width: 1.8em; padding: 0 .5em; border-radius: 999px; background: var(--green);
         color: #fff; font-size: 16px; text-align: center; vertical-align: 2px; }
.empty { margin: 8px 0 0; padding: 20px; border-radius: 8px; background: var(--bg); color: var(--muted); text-align: center; }
.hint { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.sub { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
       border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:focus-visible, input:focus-visible { outline: 3px solid #9fd0e8; outline-offset: 2px; }
.btn-go { background: var(--green-dark); color: #fff; font-size: 17px; padding: 12px 22px; }
.btn-go:hover { background: #437a1d; }
.btn-go:disabled { background: #a9b6bd; cursor: not-allowed; }
.btn-quiet { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); padding: 6px 12px; }
.btn-quiet:hover { background: rgba(255, 255, 255, .12); }
.btn-google { background: #fff; color: var(--ink); border-color: var(--line); margin-top: 16px; width: 100%; }
.btn-google svg { width: 20px; height: 20px; }

.note { border: 1px solid var(--line); border-left-width: 5px; border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; background: var(--card); }
.note-good { background: var(--good-bg); border-color: var(--green); }
.note-warn { background: var(--warn-bg); border-color: var(--warn-line); }
.note-bad { background: var(--bad-bg); border-color: var(--bad-line); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
           padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.check-all { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--green-dark); cursor: pointer; }

.requests { width: 100%; border-collapse: collapse; }
.requests th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 10px 8px;
               border-bottom: 1px solid var(--line); }
.requests td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.requests tr:last-child td { border-bottom: 0; }
.requests .name { font-weight: 600; }
.col-check { width: 36px; }
.col-days { white-space: nowrap; }
.col-hours { white-space: nowrap; }
.col-notes { max-width: 380px; overflow-wrap: anywhere; }
.col-sent { white-space: nowrap; }
tr.left-out td:not(.col-check) { opacity: .45; }

.tag { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tag-now { background: #e1f0f7; color: var(--blue); }
.tag-past { background: #eceff1; color: var(--muted); }
.tag-ok { margin-left: 0; background: var(--good-bg); color: var(--green-dark); }
.tag-no { margin-left: 0; background: var(--bad-bg); color: #a33a3a; }
.decided .sub { display: inline; margin-left: 4px; }

@media (max-width: 760px) {
  .card { padding: 16px; }
  .who { display: none; }
  .requests thead { display: none; }
  .requests, .requests tbody, .requests tr, .requests td { display: block; width: 100%; }
  .requests tr { position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--line); }
  .requests.decided tr { padding-left: 0; }
  .requests tr:last-child { border-bottom: 0; }
  .requests td { border: 0; padding: 2px 0; max-width: none; white-space: normal; }
  .requests td.col-check { position: absolute; left: 0; top: 12px; width: auto; }
  .col-sent .sub, .col-decision .sub { display: inline; margin-left: 4px; }
  .col-sent::before { content: "Sent "; color: var(--muted); }
  .btn-go { width: 100%; }
  .toolbar { flex-direction: column-reverse; align-items: stretch; }
}
