/* Time clock — shared tokens.
   Fonts are system-only on purpose: this runs on a LAN and must not wait on a CDN. */

:root {
  --steel-900: #16202b;
  --steel-800: #1e2c3a;
  --steel-700: #26364a;
  --steel-600: #33475c;
  --steel-400: #6b8299;
  --steel-300: #93a8bc;
  --steel-100: #d7e0e8;

  --paper: #f4f6f8;
  --card: #ffffff;
  --ink: #16202b;
  --ink-soft: #55677a;
  --rule: #dde4ea;

  --signal: #ffb13b;
  --signal-deep: #c67c00;
  --running: #1f8a68;
  --running-soft: #e4f4ee;
  --halt: #c14a38;
  --halt-soft: #fbeae7;
  --paused: #7a5cc4;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --num: ui-monospace, "SF Mono", "Roboto Mono", "Segoe UI Mono", Menlo, Consolas, monospace;

  --r-sm: 4px;
  --r-md: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.num, time, td.num, .hours { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

a { color: var(--steel-600); }

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

.topbar {
  background: var(--steel-900);
  color: #fff;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar .brand { font-weight: 650; letter-spacing: -0.01em; }
.topbar .brand small { display: block; font-weight: 400; font-size: 11px; color: var(--steel-300); letter-spacing: 0.02em; }
.topbar nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.topbar nav button {
  background: none; border: 0; color: var(--steel-300);
  padding: 8px 13px; border-radius: var(--r-sm); font: inherit; font-size: 14px; cursor: pointer;
}
.topbar nav button:hover { color: #fff; background: var(--steel-700); }
.topbar nav button[aria-current="true"] { color: var(--steel-900); background: var(--signal); font-weight: 600; }

main { max-width: 1180px; margin: 0 auto; padding: 26px 20px 80px; }

h1 { font-size: 25px; letter-spacing: -0.02em; margin: 0 0 4px; font-weight: 650; }
h2 { font-size: 17px; letter-spacing: -0.01em; margin: 0 0 12px; font-weight: 620; }
.sub { color: var(--ink-soft); font-size: 14px; margin: 0 0 22px; }

.panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 18px;
}
.panel > h2:first-child { margin-top: 0; }

/* ---------- figures ---------- */

.figures { display: flex; flex-wrap: wrap; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; margin-bottom: 18px; }
.figure { background: var(--card); padding: 15px 20px; flex: 1 1 150px; }
.figure .value { font-size: 27px; font-weight: 620; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.figure .label { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.figure.accent { border-left: 3px solid var(--signal); }
.figure.warn .value { color: var(--halt); }

/* ---------- tables ---------- */

table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-weight: 600; color: var(--ink-soft); font-size: 13px; padding: 8px 10px; border-bottom: 1.5px solid var(--rule); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr.today { background: #fffaf0; }
.muted { color: var(--ink-soft); }
.table-scroll { overflow-x: auto; }

/* ---------- status ---------- */

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.dot.in { background: var(--running); }
.dot.out { background: var(--steel-300); }
.dot.break { background: var(--paused); }

.tag { display: inline-block; font-size: 12px; padding: 2px 7px; border-radius: var(--r-sm); font-weight: 600; }
.tag.flag { background: var(--halt-soft); color: var(--halt); }
.tag.edited { background: #eef1f4; color: var(--ink-soft); }
.tag.pto { background: var(--running-soft); color: var(--running); }
.tag.pending { background: #fff6e5; color: #7a5000; }
.tag.approved { background: var(--running-soft); color: var(--running); }
.tag.denied { background: var(--halt-soft); color: var(--halt); }
.tag.cancelled { background: #eef1f4; color: var(--ink-soft); }

.badge {
  display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 6px;
  border-radius: 9px; background: var(--halt); color: #fff;
  font-size: 11.5px; font-weight: 700; line-height: 18px; text-align: center; vertical-align: 1px;
}

/* ---------- requests ---------- */

.req { border-top: 1px solid var(--rule); padding: 14px 0; }
.req:first-child { border-top: 0; padding-top: 2px; }
.req:last-child { padding-bottom: 0; }
.req-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.req-what { font-weight: 600; }
.req-meta { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.req-quote {
  margin-top: 7px; font-size: 14px; background: #f6f8fa; border-left: 3px solid var(--rule);
  padding: 6px 10px; border-radius: var(--r-sm);
}
.req-reply { font-size: 14px; margin-top: 7px; }
.req-calc { font-size: 13.5px; margin-top: 7px; font-variant-numeric: tabular-nums; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }

/* ---------- controls ---------- */

button, .btn {
  font: inherit; font-size: 14.5px; font-weight: 550;
  padding: 9px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--steel-600); background: var(--steel-700); color: #fff;
  cursor: pointer; text-decoration: none; display: inline-block;
}
button:hover, .btn:hover { background: var(--steel-600); }
button.secondary { background: var(--card); color: var(--ink); border-color: var(--rule); }
button.secondary:hover { background: #eef1f4; }
button.danger { background: var(--halt); border-color: var(--halt); }
button.small { padding: 5px 11px; font-size: 13px; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid var(--signal); outline-offset: 2px;
}

input, select, textarea {
  font: inherit; font-size: 15px; padding: 9px 11px;
  border: 1px solid var(--rule); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); width: 100%;
}
label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; font-weight: 550; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > .field { flex: 1 1 180px; margin-bottom: 14px; }
.actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

/* ---------- messages ---------- */

.msg { padding: 11px 14px; border-radius: var(--r-sm); font-size: 14.5px; margin-bottom: 14px; }
.msg.error { background: var(--halt-soft); color: #8e2f20; border-left: 3px solid var(--halt); }
.msg.ok { background: var(--running-soft); color: #145c46; border-left: 3px solid var(--running); }
.msg.info { background: #fff6e5; color: #7a5000; border-left: 3px solid var(--signal); }
.empty { color: var(--ink-soft); font-size: 14.5px; padding: 22px 4px; }

/* ---------- dialog ---------- */

dialog {
  border: 1px solid var(--rule); border-radius: var(--r-md); padding: 22px;
  max-width: 460px; width: calc(100% - 32px); box-shadow: 0 18px 50px rgba(22, 32, 43, 0.22);
}
dialog::backdrop { background: rgba(22, 32, 43, 0.5); }
dialog h2 { margin-top: 0; }

.period-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.period-nav .range { font-weight: 600; font-variant-numeric: tabular-nums; }

.code-reveal {
  font-family: var(--num); font-size: 30px; font-weight: 700; letter-spacing: 0.12em;
  background: var(--steel-900); color: var(--signal); padding: 14px 20px;
  border-radius: var(--r-md); text-align: center; margin: 12px 0;
}

/* ---------- announcements ---------- */

.ann {
  background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--steel-400);
  border-radius: var(--r-md); padding: 13px 16px; margin-bottom: 12px;
}
.ann.important { border-left-color: var(--signal); background: #fffaf0; }
.ann-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.ann.important .ann-kicker { color: var(--signal-deep); }
.ann-title { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; margin-top: 1px; }
.ann-body { font-size: 15px; margin-top: 4px; white-space: pre-line; overflow-wrap: anywhere; }
.ann-meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 7px; }
.ann-list .ann { margin-bottom: 10px; }
.ann.expired { opacity: 0.6; }

/* ---------- monthly calendar ---------- */

/* The card that holds the calendar: title and navigation on top, the grid, then totals. */
.cal-card { background: var(--card); border: 1px solid #c9d3dc; border-radius: 10px; overflow: hidden; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(22, 32, 43, 0.05); }
.cal-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid #c9d3dc; }
.cal-title { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; margin: 0; line-height: 1.1; min-width: 210px; }
.cal-nav { display: inline-flex; border: 1px solid #c9d3dc; border-radius: var(--r-sm); overflow: hidden; }
.cal-nav button { background: var(--card); color: var(--ink); border: 0; border-radius: 0; padding: 7px 13px; font-size: 14px; font-weight: 600; }
.cal-nav button + button { border-left: 1px solid #c9d3dc; }
.cal-nav button:hover { background: #eef1f4; }
.cal-head .cal-legend { margin: 0 0 0 auto; }
.cal-foot { display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; padding: 11px 16px; border-top: 1px solid #c9d3dc; background: #f6f8fa; font-size: 14px; }
.cal-foot strong { font-variant-numeric: tabular-nums; }
.cal-foot .hint { margin-left: auto; color: var(--ink-soft); font-size: 13px; }

/* The grid. Gaps on a darker background draw crisp, even lines between every cell. */
.cal { display: grid; gap: 1px; background: #c9d3dc; }
.cal-card .cal { border: 0; }
.cal:not(.cal-card .cal) { border: 1px solid #c9d3dc; border-radius: var(--r-md); overflow: hidden; }
/* Sunday … Saturday, then the week total. Weekend columns are a little narrower. */
.cal-row { display: grid; grid-template-columns: minmax(0, 0.8fr) repeat(5, minmax(0, 1fr)) minmax(0, 0.8fr) minmax(0, 1fr); gap: 1px; }
.cal-h {
  background: var(--steel-800); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; padding: 9px 10px;
}
.cal-h-week { background: var(--steel-900); color: var(--signal); }
.cal-day, .cal-week { background: var(--card); min-height: 118px; padding: 8px 10px 9px; min-width: 0; position: relative; }
.cal-day.weekend { background: #fafbfc; }

/* Pay periods: alternating blue and copper, a bar down the left edge, a light tint, and a label row */
.cal-period {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 14px 7px 18px;
  font-size: 13.5px; font-variant-numeric: tabular-nums;
}
.cal-period.pp0 { background: #e3ecf8; color: #1d4a85; box-shadow: inset 6px 0 0 #2f6db5; }
.cal-period.pp1 { background: #f8eadc; color: #7d3f12; box-shadow: inset 6px 0 0 #c06a2b; }
.pp-label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.pp-range { font-weight: 700; font-size: 14.5px; }
.pp-state { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 3px; background: rgba(255, 255, 255, 0.75); }
.pp-figs { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; }
.pp-figs strong { font-weight: 700; }
.pp-ot { color: var(--signal-deep); }
.cal-row.pp0 > :first-child { box-shadow: inset 6px 0 0 #2f6db5; }
.cal-row.pp1 > :first-child { box-shadow: inset 6px 0 0 #c06a2b; }
.cal-row.pp0 > .cal-day.today:first-child { box-shadow: inset 6px 0 0 #2f6db5, inset 0 0 0 3px var(--signal); }
.cal-row.pp1 > .cal-day.today:first-child { box-shadow: inset 6px 0 0 #c06a2b, inset 0 0 0 3px var(--signal); }
.cal-row > :first-child { padding-left: 14px; }
.cal-day.pp0:not(.other):not(.holiday):not(.closed) { background: #f6f9fe; }
.cal-day.pp1:not(.other):not(.holiday):not(.closed) { background: #fdf8f3; }
.cal-day.weekend.pp0:not(.other):not(.holiday):not(.closed) { background: #eef3fb; }
.cal-day.weekend.pp1:not(.other):not(.holiday):not(.closed) { background: #faf1e8; }

/* Vacation balance, beside the on-the-clock pill */
.bal-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; background: var(--card); border: 1px solid #c9d3dc; color: var(--ink-soft); }
.bal-pill strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.cal-day.other { background: #f5f7f9; }
.cal-day.other .cal-date { color: #aab6c2; }
.cal-day.other > :not(.cal-top) { opacity: 0.55; }
.cal-day.holiday { background: #eaf6f0; }
.cal-day.closed { background-color: #eef1f4; background-image: repeating-linear-gradient(135deg, transparent 0 9px, rgba(22, 32, 43, 0.05) 9px 18px); }
.cal-day.today { box-shadow: inset 0 0 0 3px var(--signal); }
.cal-week { background: #eef2f6; border-left: 2px solid #b8c4cf; }

.cal-top { display: flex; align-items: center; gap: 6px; min-height: 26px; }
.cal-date {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px;
  font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; border-radius: 13px;
}
.cal-day.today .cal-date { background: var(--signal); color: var(--steel-900); }
.cal-today-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal-deep); }
.cal-week-label { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); min-height: 26px; display: flex; align-items: center; }

.cal-hours { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 4px; line-height: 1.15; }
.cal-unit { font-size: 0.6em; font-weight: 600; color: var(--ink-soft); margin-left: 2px; letter-spacing: 0; }
.cal-week .cal-hours { color: var(--steel-800); font-size: 23px; }
.cal-sub { font-size: 12px; color: var(--ink-soft); line-height: 1.4; font-variant-numeric: tabular-nums; }
.cal-tag {
  display: block; max-width: 100%; margin-top: 5px; padding: 2px 7px; border-radius: var(--r-sm);
  font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-tag.holiday { background: #cfeadd; color: #0f6b4f; }
.cal-tag.closed { background: #d9dfe5; color: var(--steel-600); }
.cal-flag { font-size: 11.5px; font-weight: 700; color: var(--halt); margin-top: 2px; }
.cal-live { font-size: 10.5px; font-weight: 700; color: #fff; background: var(--running); border-radius: 3px; padding: 1px 5px; margin-left: 6px; letter-spacing: 0.02em; vertical-align: 3px; }
.cal-ot { font-size: 12px; font-weight: 700; color: var(--signal-deep); margin-top: 2px; }

.cal-team {
  font-size: 11.5px; line-height: 1.35; margin-top: 4px; padding: 2px 6px; border-left: 3px solid var(--paused);
  background: #f3effb; border-radius: 0 3px 3px 0;
  color: var(--steel-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-team b { font-weight: 700; color: var(--ink); }
.cal-team.leave { border-left-color: var(--running); background: #e9f5ef; }
.cal-team.mine b { color: var(--paused); }
.cal-team-day { font-size: 10.5px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; }
.cal-more { font-size: 11px; font-weight: 600; color: var(--ink-soft); margin-top: 3px; }
.cal-team-count { display: none; }

.cal-clickable .cal-day { cursor: pointer; transition: background 80ms ease; }
.cal-clickable .cal-day:hover { background-color: #fbf6ea; }
.cal-clickable .cal-day.today:hover { box-shadow: inset 0 0 0 3px var(--signal); }
.cal-clickable .cal-day:focus-visible { outline: 3px solid var(--signal); outline-offset: -3px; }

.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; }
.cal-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.cal-legend .lg-holiday::before { background: #eaf6f0; border: 1px solid #9fd0b8; }
.cal-legend .lg-closed::before { background: #e1e6eb; border: 1px solid #b8c4cf; }
.cal-legend .lg-today::before { background: #fff; border: 2px solid var(--signal); }
.cal-legend .lg-note::before { background: #f3effb; border-left: 3px solid var(--paused); border-radius: 0 3px 3px 0; }

/* The day window */
.myday { background: #f6f8fa; border: 1px solid var(--rule); border-radius: var(--r-md); padding: 10px 14px; margin-bottom: 14px; }
.myday-row { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.myday-row span { width: 92px; flex: 0 0 auto; color: var(--ink-soft); font-size: 13.5px; }
.myday-row em { margin-left: auto; font-style: normal; color: var(--paused); font-weight: 600; }
.myday-row.brk { padding-left: 12px; border-left: 3px solid var(--paused); margin: 2px 0; }
.myday-row.brk span { width: 80px; }
.myday-total { display: flex; gap: 1px; margin-top: 8px; border-top: 1px solid var(--rule); padding-top: 8px; }
.myday-total > div { flex: 1; }
.myday-total span { display: block; font-size: 12.5px; color: var(--ink-soft); }
.myday-total strong { font-size: 21px; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.myday-total small { display: block; font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.day-list { list-style: none; margin: 0 0 12px; padding: 0; }
.day-list li { padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.day-list li:last-child { border-bottom: 0; }

/* Page-level switch (Calendar | Time clock) and the on-the-clock pill beside it */
.viewbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.seg { display: inline-flex; border: 1px solid #c9d3dc; border-radius: var(--r-sm); overflow: hidden; background: var(--card); }
.seg button { background: none; border: 0; border-radius: 0; color: var(--ink-soft); padding: 8px 18px; font-size: 14.5px; font-weight: 600; }
.seg button + button { border-left: 1px solid #c9d3dc; }
.seg button:hover { background: #eef1f4; }
.seg button[aria-pressed="true"] { background: var(--steel-800); color: #fff; }
/* Quick actions beside the view switch, so nobody has to scroll to use them */
.quick { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.quick button {
  background: var(--card); color: var(--ink); border: 1px solid #c9d3dc; border-radius: var(--r-sm);
  padding: 8px 14px; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.quick button span { color: var(--signal-deep); font-weight: 700; margin-right: 2px; }
.quick button:hover { background: #fff6e5; border-color: var(--signal); }
#reqFlash .msg { margin-bottom: 12px; }
.state-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.state-pill.in { background: var(--running-soft); color: #145c46; }
.state-pill.out { background: #eef1f4; color: var(--ink-soft); }
.state-pill.break { background: #f0ebfb; color: #4b3591; }

@media (max-width: 760px) {
  .cal-head .cal-legend { margin: 0; width: 100%; }
  .cal-title { font-size: 22px; min-width: 0; }
}
@media (max-width: 620px) {
  .cal-day, .cal-week { min-height: 70px; padding: 4px 3px; }
  .cal-unit { display: none; }
  .cal-team-count { font-size: 9.5px; padding: 1px 3px; }
  .cal-h { padding: 7px 4px; font-size: 10.5px; letter-spacing: 0.03em; }
  .cal-date { font-size: 12.5px; min-width: 22px; height: 22px; }
  .cal-top { min-height: 22px; }
  .cal-today-label, .cal-week-label { display: none; }
  .cal-hours, .cal-week .cal-hours { font-size: 13px; letter-spacing: -0.03em; }
  .cal-sub, .cal-flag, .cal-ot { font-size: 10.5px; }
  .cal-tag { font-size: 10px; padding: 0 3px; }
  .cal-team, .cal-more { display: none; }
  .cal-team-count {
    display: inline-block; margin-top: 4px; padding: 1px 5px; border-radius: 3px;
    background: #f3effb; color: #4b3591; font-size: 10px; font-weight: 700; white-space: nowrap;
  }
  .cal-live { display: none; }
  .cal-foot .hint { margin-left: 0; }
  .state-pill { margin-left: 0; }
  .cal-period { padding: 6px 8px 6px 12px; font-size: 12px; gap: 6px; }
  .pp-range { font-size: 12.5px; }
  .pp-figs { margin-left: 0; gap: 8px; width: 100%; }
  .cal-row > :first-child { padding-left: 8px; }
  .cal-row.pp0 > :first-child, .cal-period.pp0 { box-shadow: inset 4px 0 0 #2f6db5; }
  .cal-row.pp1 > :first-child, .cal-period.pp1 { box-shadow: inset 4px 0 0 #c06a2b; }
  .quick { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .quick button { padding: 8px 6px; font-size: 13px; white-space: normal; line-height: 1.2; }
}

@media (max-width: 620px) {
  .topbar { height: auto; padding: 10px 14px; flex-wrap: wrap; }
  .topbar nav { width: 100%; margin-left: 0; }
  main { padding: 18px 14px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
