/* Anwesend Employee portal — design system.
 *
 * Served straight from public/ like admin.css and the marketing style.css
 * (this app has no asset pipeline); the layout busts the far-future cache
 * header with an mtime fingerprint — see PortalHelper#portal_stylesheet_url.
 *
 * Built mobile-first, which is the substantive difference from admin.css:
 * an admin sits at a desk, an employee checks their hours on the phone in
 * their hand — the same phone doing the recording. So the primary navigation
 * is a bottom tab bar under 720px, days render as cards rather than an
 * eight-column table, and every tap target is at least 44px.
 *
 * Tokens deliberately match admin.css: same product, same company, and an
 * employee who has seen a screenshot of the admin panel should recognise
 * this as the same system.
 *
 * Sections: tokens, base, skip link, shell, topbar, tabs, page header,
 * cards, stats, day list, month grid, timeline, badges, callouts, forms,
 * buttons, flash, empty state, copy row, auth, footer, responsive, print.
 */

/* ------------------------------------------------------------------ tokens */

:root {
  color-scheme: light;

  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;

  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --muted-soft: #94a3b8;

  --canvas: #f6f7f9;
  --surface: #ffffff;
  --surface-sunken: #f8fafc;
  --surface-hover: #f1f5f9;

  --line: #e5e7eb;
  --line-soft: #eef1f4;
  --line-strong: #d5dae1;

  --ok-bg: #dcfce7;   --ok-fg: #15803d;   --ok-line: #bbf7d0;
  --warn-bg: #fef9c3; --warn-fg: #a16207; --warn-line: #fde68a;
  --bad-bg: #fee2e2;  --bad-fg: #b91c1c;  --bad-line: #fecaca;
  --info-bg: #e0e7ff; --info-fg: #4338ca; --info-line: #c7d2fe;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.07), 0 1px 3px rgba(15, 23, 42, 0.05);

  --topbar-h: 58px;
  --tabbar-h: 64px;
  --content-w: 880px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* -------------------------------------------------------------------- base */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.011em; margin: 0; }

p { margin: 0 0 0.75rem; }
p:last-child { margin-bottom: 0; }

code {
  font-family: var(--font-mono);
  background: var(--surface-sunken);
  border: 1px solid var(--line-soft);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.82em;
  word-break: break-all;
}

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: 0.75rem; }

/* -------------------------------------------------------------- skip link */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 100;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

/* ------------------------------------------------------------------- shell */

.page {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 1.25rem 1rem calc(var(--tabbar-h) + 2rem);
}

/* ------------------------------------------------------------------ topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
}

.topbar-inner {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-size: 1.02rem;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  display: grid;
  place-items: center;
  color: #fff;
}

/* Desktop navigation; replaced by .tabbar under 720px. */
.topnav { display: none; gap: 0.15rem; margin-left: 0.75rem; }

.topnav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}
.topnav a:hover { background: var(--surface-hover); text-decoration: none; }
.topnav a.current { background: var(--brand-50); color: var(--brand-700); }

.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.topbar-email { display: none; color: var(--muted); font-size: 0.85rem; }

/* ------------------------------------------------------------------- tabs */

/* Bottom tab bar: the primary navigation on a phone, which is where this
   portal is actually read. Fixed, thumb-reachable, safe-area aware. */
.tabbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-top: 1px solid var(--line);
  display: flex;
}

.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.tabbar a:hover { text-decoration: none; }
.tabbar a.current { color: var(--brand-700); }
.tabbar svg { width: 22px; height: 22px; }

/* ----------------------------------------------------------- page header */

.page-header { margin-bottom: 1.25rem; }

.page-header .back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.page-header .back:hover { color: var(--brand-700); }

.page-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-header .subtitle {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 62ch;
}

/* ------------------------------------------------------------------ cards */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
}

.card.flush { padding: 0; overflow: hidden; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.card.flush .card-head {
  margin: 0;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line-soft);
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-foot {
  border-top: 1px solid var(--line-soft);
  padding: 0.85rem 1.15rem;
  background: var(--surface-sunken);
  font-size: 0.87rem;
  color: var(--muted);
}

/* Hero: the "how much am I recorded for" answer, first thing on the page. */
.hero {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
}
.hero h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; font-weight: 700; }
.hero .hero-value { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; margin-top: 0.2rem; }
.hero .hero-note { opacity: 0.9; font-size: 0.9rem; margin-top: 0.25rem; }
.hero-split { display: flex; gap: 1.75rem; flex-wrap: wrap; margin-top: 0.85rem; }
.hero-split div { min-width: 88px; }
.hero-split .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; opacity: 0.82; font-weight: 700; }
.hero-split .v { font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ stats */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.85rem 0.9rem;
  box-shadow: var(--shadow-xs);
}
.stat-key {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.stat-value {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-top: 0.15rem;
}
.stat-foot { font-size: 0.8rem; color: var(--muted); }

/* --------------------------------------------------------------- day list */

.day-list { list-style: none; margin: 0; padding: 0; }

.day-row {
  display: block;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
}
.day-row:last-child { border-bottom: none; }
.day-row:hover { background: var(--surface-hover); text-decoration: none; }

.day-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.day-date { font-weight: 700; letter-spacing: -0.01em; }
.day-site { color: var(--muted); font-size: 0.88rem; }

.day-figure {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.day-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.day-meta .sep { color: var(--line-strong); }

/* -------------------------------------------------------------- month grid */

.month-nav { display: flex; gap: 0.4rem; align-items: center; }

.month-grid { padding: 0.5rem 0.75rem 1rem; }

.month-weekdays, .month-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.month-weekdays {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 0.1rem 0.4rem;
}

.month-week + .month-week { margin-top: 0.3rem; }

.month-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 52px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: var(--surface-sunken);
  color: inherit;
  font-size: 0.78rem;
  padding: 0.3rem 0.2rem;
}
a.month-cell:hover { background: var(--surface-hover); text-decoration: none; }

.month-cell.outside { opacity: 0.4; }
.month-cell.today { border-color: var(--brand-500); border-width: 2px; }

.month-cell-date { font-weight: 700; font-variant-numeric: tabular-nums; }
.month-cell-hours { font-size: 0.68rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

.month-cell.has-data.high { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-line); }
.month-cell.has-data.medium { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-line); }
.month-cell.has-data.low { background: var(--bad-bg); color: var(--bad-fg); border-color: var(--bad-line); }
.month-cell.has-data.inferred { background: var(--info-bg); color: var(--info-fg); border-color: var(--info-line); }

.legend { display: flex; flex-wrap: wrap; gap: 0.9rem; font-size: 0.82rem; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.legend .dot.high { background: var(--ok-fg); }
.legend .dot.medium { background: var(--warn-fg); }
.legend .dot.low { background: var(--bad-fg); }
.legend .dot.inferred { background: var(--info-fg); }
.legend .dot.neutral { background: var(--muted-soft); }

@media (max-width: 480px) {
  .month-cell { min-height: 44px; font-size: 0.72rem; }
  .month-cell-hours { display: none; }
  .month-weekdays { font-size: 0.62rem; }
}

/* ---------------------------------------------------------- activity bar */

/* One day's WiFi coverage as a single horizontal strip — plain absolutely-
 * positioned fills rather than SVG or a charting library, since this app
 * ships no JS beyond one clipboard handler and a single day's geometry
 * needs nothing more. Colors reuse the confidence vocabulary the month
 * grid's legend already teaches (var(--ok-fg) etc.), so this reads
 * immediately to anyone who has seen that page.
 */
.activity-bar {
  position: relative;
  height: 34px;
  border-radius: var(--radius);
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  overflow: hidden;
}

.activity-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 2px solid var(--surface);
}
.activity-segment:first-child { border-left: none; }

.activity-segment.high { background: var(--ok-fg); }
.activity-segment.medium { background: var(--warn-fg); }
.activity-segment.low { background: var(--bad-fg); }
.activity-segment.inferred { background: var(--info-fg); }
.activity-segment.neutral { background: var(--muted-soft); }

.activity-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- timeline */

.timeline { list-style: none; margin: 0; padding: 0.25rem 0 0; }

.timeline li {
  position: relative;
  padding: 0 0 1rem 1.4rem;
  border-left: 2px solid var(--line);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-500);
  border: 2px solid var(--surface);
}
.timeline li.is-open::before { background: var(--warn-fg); }

.timeline-time { font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline-meta { color: var(--muted); font-size: 0.85rem; }

/* ----------------------------------------------------------------- badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.12rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
}
.badge.plain::before { display: none; }

.badge.high, .badge.approved, .badge.ok { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-line); }
.badge.medium, .badge.submitted, .badge.under_review, .badge.warn { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-line); }
.badge.low, .badge.rejected, .badge.bad { background: var(--bad-bg); color: var(--bad-fg); border-color: var(--bad-line); }
.badge.inferred, .badge.amended, .badge.info { background: var(--info-bg); color: var(--info-fg); border-color: var(--info-line); }
.badge.neutral { background: var(--surface-hover); color: var(--muted); border-color: var(--line); }

/* --------------------------------------------------------------- callouts */

.callout {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: #713f12;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.callout svg { flex: none; margin-top: 0.1rem; }
.callout.info { background: var(--brand-50); border-color: var(--brand-200); color: #1e3a8a; }
.callout.bad { background: var(--bad-bg); border-color: var(--bad-line); color: #7f1d1d; }
.callout a { color: inherit; text-decoration: underline; }

/* ------------------------------------------------------------------ forms */

label, .label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}

.field { margin-bottom: 1rem; }
.field:last-child { margin-bottom: 0; }
.field .hint { font-size: 0.83rem; color: var(--muted); margin-top: 0.35rem; }

input[type=text], input[type=email], input[type=password], input[type=date],
input[type=time], input[type=number], select, textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 1rem; /* 16px: anything smaller makes iOS Safari zoom on focus */
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  min-height: 44px;
}
input:disabled { background: var(--surface-sunken); color: var(--muted); }
textarea { min-height: 96px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100);
}

.field-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.field-row > * { flex: 1 1 140px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--brand-600);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--brand-700); text-decoration: none; color: #fff; }

.btn.secondary { background: var(--surface); color: var(--ink-soft); border-color: var(--line-strong); }
.btn.secondary:hover { background: var(--surface-hover); color: var(--ink); }

/* Kept for views written against the old stylesheet. */
.btn.quiet { background: var(--surface); color: var(--brand-700); border-color: var(--line-strong); }
.btn.quiet:hover { background: var(--brand-50); color: var(--brand-700); }

.btn.danger { background: var(--surface); color: var(--bad-fg); border-color: var(--bad-line); }
.btn.danger:hover { background: var(--bad-bg); color: var(--bad-fg); }

.btn.block { width: 100%; }
.btn.small { min-height: 36px; padding: 0.35rem 0.7rem; font-size: 0.87rem; }

.btn-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }

form.inline { display: inline; }

/* ------------------------------------------------------------------ flash */

.flash {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  font-size: 0.92rem;
  border: 1px solid transparent;
}
.flash.notice { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-line); }
.flash.alert { background: var(--bad-bg); color: var(--bad-fg); border-color: var(--bad-line); }

/* ------------------------------------------------------------ empty state */

.empty {
  text-align: center;
  padding: 2.25rem 1.25rem;
  color: var(--muted);
}
.empty .empty-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--surface-hover);
  color: var(--muted-soft);
  display: grid;
  place-items: center;
  margin: 0 auto 0.6rem;
}
.empty .empty-title { font-weight: 700; color: var(--ink-soft); }
.empty .empty-body { font-size: 0.88rem; max-width: 44ch; margin: 0.25rem auto 0; }

/* --------------------------------------------------------------- copy row */

.copy-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
}
.copy-row .copy-value {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  word-break: break-all;
  align-self: center;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------- auth */

/* Sign-in and invite: no navigation at all — there is nowhere else to go
   until you are signed in, and a tab bar that only leads to a redirect is
   worse than none. */
body.auth { background: var(--canvas); }

.auth-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 1.6rem 1.5rem;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-weight: 700;
  font-size: 1.1rem;
}
.auth-card h1 { font-size: 1.3rem; text-align: center; }
.auth-card .auth-sub { color: var(--muted); font-size: 0.9rem; text-align: center; margin: 0.4rem 0 1.2rem; }
.auth-foot { text-align: center; margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }

/* ----------------------------------------------------------------- footer */

.portal-footer {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding: 1rem 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.portal-footer a { color: var(--muted); }

/* ------------------------------------------------------------- responsive */

@media (min-width: 720px) {
  body { font-size: 15.5px; }

  .page { padding: 1.75rem 1.5rem 3rem; }

  .topnav { display: flex; }
  .topbar-email { display: inline; }

  /* Bottom tabs are a phone affordance; on a desktop the top nav carries it. */
  .tabbar { display: none; }

  .page-header h1 { font-size: 1.85rem; }

  /* Day rows become a real row on a wide screen: the same markup, laid out
     horizontally instead of stacked. No duplicated table markup to keep in
     step with the card markup. */
  .day-row { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem; }
  .day-row-top { display: contents; }
  .day-meta { grid-column: 1 / -1; margin-top: 0.3rem; }
}

@media (max-width: 480px) {
  .hero .hero-value { font-size: 1.8rem; }
  .btn-row .btn { width: 100%; }
}

/* Respect a user who has asked for less motion — the only animation here is
   the backdrop blur, but the rule keeps that promise if more is added. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------ print */

/* An employee printing their own record — for a works council meeting, or
   because someone asked for it on paper — should get the record, not the
   furniture. */
@media print {
  .topbar, .tabbar, .portal-footer, .btn, .flash { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; max-width: none; }
  .card, .stat-card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .hero { background: none; color: var(--ink); border: 1px solid #ccc; }
  a { color: inherit; text-decoration: none; }
}
