:root {
  --bg: #f7f6f3; --card: #ffffff; --ink: #1d1d1f; --muted: #6b6b70; --line: #e3e1dc;
  --go: #1f7a4d; --go-ink: #fff; --meal: #b5651d; --stop: #a33a2a; --warn-bg: #b3261e; --warn-ink: #fff;
  --chip: #eeece7; --accent: #2b5fab;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151517; --card: #1f1f22; --ink: #f2f2f3; --muted: #a1a1a8; --line: #333338; --chip: #2a2a2e; --accent: #7aa7ff; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
main { max-width: 640px; margin: 0 auto; padding: 16px; }
main.wide { max-width: 1100px; }
header.top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
header.top h1 { font-size: 18px; margin: 0; }
.muted { color: var(--muted); font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.hidden { display: none !important; }
button, .btn { font: inherit; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 10px 14px; cursor: pointer; text-decoration: none; display: inline-block; }
button:disabled { opacity: .5; cursor: default; }
button.link { border: 0; background: none; color: var(--accent); padding: 4px 0; }
.big { width: 100%; min-height: 34vh; max-height: 300px; font-size: 34px; font-weight: 700; border: 0; border-radius: 20px; color: var(--go-ink); background: var(--go); }
.big.meal_start { background: var(--meal); }
.big.meal_end { background: var(--go); }
.big.out { background: var(--stop); }
.second { width: 100%; margin-top: 10px; font-size: 18px; padding: 14px; }
.state { font-size: 15px; margin: 4px 0 12px; }
.total { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.banner { background: var(--warn-bg); color: var(--warn-ink); padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; }
.notice { background: var(--chip); padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; }
.error { color: var(--stop); }
ul.punches { list-style: none; padding: 0; margin: 8px 0 0; }
ul.punches li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.chip { font-size: 12px; background: var(--chip); border-radius: 999px; padding: 2px 8px; margin-left: 6px; white-space: nowrap; }
.chip.held { background: #f3d9a4; color: #4a3200; }
.chip.amendment { background: #d6e4fb; color: #0f2c5c; }
.chip.pending_manager { background: #f3d9a4; color: #4a3200; }
.chip.applied { background: #cfe9d9; color: #0c3b22; }
.chip.declined { background: #f1d0cb; color: #5c1209; }
label { display: block; font-size: 14px; color: var(--muted); margin: 10px 0 4px; }
input, select, textarea { font: inherit; width: 100%; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
input[type=checkbox] { width: auto; margin-right: 6px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 auto; }
.row > button { flex: 0 0 auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 6px 8px; border-top: 1px solid var(--line); vertical-align: top; font-size: 14px; }
th { color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; }
.day h3 { margin: 14px 0 4px; font-size: 15px; }
.scroll { overflow-x: auto; }
nav.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
nav.tabs button.on { background: var(--ink); color: var(--bg); }
dialog { border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); max-width: 480px; width: calc(100% - 32px); }
/* P2a: the break question (Yes and No the same size, nothing pre-selected) and the lunch guard */
.question { font-size: 18px; font-weight: 600; margin: 8px 0 14px; }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
button.answer { font-size: 20px; font-weight: 700; padding: 18px 10px; }
button.answer.stop { background: var(--stop); color: var(--go-ink); border: 0; }
button.link.small { font-size: 13px; }
blockquote { margin: 0 0 14px; padding: 8px 12px; border-left: 3px solid var(--line); color: var(--muted); white-space: pre-wrap; }
.yesno.three { grid-template-columns: 1fr 1fr 1fr; }
/* T21 A2: the activity choices at clock-out, one full-width button each */
.choices { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
/* P2 (Kevin 2026-11-18): the employee's short time card — ⓘ explanations, neutral punch problems */
details.info { display: inline; font-size: 14px; font-weight: 400; }
details.info > summary { display: inline; list-style: none; cursor: pointer; color: var(--accent); padding: 0 4px; }
details.info > summary::-webkit-details-marker { display: none; }
details.info[open] { display: block; }
details.info[open] > p { margin: 6px 0 0; }
.row.nav { flex-wrap: nowrap; justify-content: space-between; }
.row.nav > strong { flex: 1 1 auto; text-align: center; font-size: 15px; }
table.totals th, table.totals td { text-align: right; }
table.totals td { font-size: 18px; font-weight: 600; }
.day p.figures { margin: 0 0 4px; }
p.attn { margin: 4px 0; font-weight: 600; }
button.link.edit { margin-left: 10px; }
/* P3 (Kevin 2026-11-18): the day table on My time card — one row per day, tap to open its punches; fits 375 px */
.card.days-card { padding: 12px 8px; }
table.days th, table.days td { padding: 6px 3px; font-size: 13px; }
table.days td.num, table.days th.num { text-align: right; white-space: nowrap; }
table.days td.inout { line-height: 1.3; }
table.days tfoot th { border-top: 2px solid var(--line); color: var(--ink); }
tr.dayrow td { border-top: 1px solid var(--line); }
tr.detail td { border-top: 0; padding: 0 4px 10px; }
button.day-toggle { border: 0; background: none; padding: 0; color: var(--accent); font-size: 13px; text-align: left; line-height: 1.3; }
button.day-toggle .wk::before { content: '▸ '; }
button.day-toggle[aria-expanded="true"] .wk::before { content: '▾ '; }
button.day-toggle .check { color: var(--ink); font-weight: 700; font-size: 12px; }
.change { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }
.change p { margin: 2px 0; font-size: 14px; }
@media (min-width: 600px) { .card.days-card { padding: 16px; } table.days th, table.days td, button.day-toggle { font-size: 15px; padding: 6px 8px; } }
