
:root {
  --navy: #1F3A5F; --navy-deep: #182E4C; --orange: #FF8C42; --orange-soft: #FFF1E3; --orange-ink: #A8480A;
  --canvas: #F8FAFC; --canvas-deep: #F1F5F9; --surface: #FFFFFF; --border: #E2E8F0; --divider: #EEF2F6;
  --text: #0F172A; --text-2: #5B6B80; --text-3: #94A3B8;
  --success: #22C55E; --success-ink: #166534;
  --warning-ink: #8A4B0B; --warning-soft: #FEF3C7;
  --danger-ink: #991B1B; --danger-soft: #FEE2E2;
  --series-a: #2F5D94; --series-b: #E86F1C;
  --side: 232px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font: 400 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── The frame: the sections down the left, as the app has them along the bottom ── */
.side { position: fixed; inset: 0 auto 0 0; z-index: 5; width: var(--side); display: flex; flex-direction: column; background: var(--navy); color: #fff; }
.brand { display: flex; align-items: flex-start; gap: 8px; padding: 20px 16px 16px 20px; }
.brand img { display: block; }
.brand .lockup { height: 56px; width: auto; }
.beta { flex: none; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 10px; line-height: 14px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.brand .mark { display: none; height: 40px; width: auto; }
.side nav { display: grid; gap: 2px; padding: 4px 12px; }
.side nav a { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.78); }
.side nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.side nav a[aria-current] { background: rgba(255, 255, 255, 0.16); color: #fff; }
.side nav svg { width: 18px; height: 18px; }
.acct { position: relative; margin-top: auto; display: grid; gap: 12px; padding: 14px 16px 16px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.acct .me { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acct .av { width: 32px; height: 32px; background: rgba(255, 255, 255, 0.16); font-size: 12px; }
.acct .nm, .acct .id { min-width: 0; line-height: 1.25; }
.acct b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct small { font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.acct .id, .acct > input { display: none; }
.acct .pop { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lang { display: flex; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.lang b, .lang button, .lang a { min-width: 30px; padding: 3px 7px; border: 0; border-radius: 999px; background: none; font-size: 11px; line-height: 16px; font-weight: 700; text-align: center; color: rgba(255, 255, 255, 0.7); }
.lang b { background: #fff; color: var(--navy); }
.lang button:hover, .lang a:hover { color: #fff; }
.out { padding: 4px 0; border: 0; background: none; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.out:hover { color: #fff; }
.mtop { display: none; }

body > main { margin-left: var(--side); padding: 28px 32px 56px; max-width: 1480px; }

/* ── The top of a page: where you are, and on the right what you can take away from it ── */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-2); overflow-wrap: anywhere; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; color: var(--navy); }
.paper { display: none; }
.actions { display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--navy); font-weight: 600; white-space: nowrap; cursor: pointer; list-style: none; }
.btn::-webkit-details-marker { display: none; }
.btn:hover { background: var(--canvas-deep); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { height: 46px; border-color: var(--orange); background: var(--orange); color: var(--navy-deep); font-size: 15px; font-weight: 700; }
.btn.primary:hover { background: #F57F32; }
.menu { position: relative; }
.menu > div { position: absolute; right: 0; top: 42px; z-index: 10; min-width: 232px; padding: 6px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--border), 0 12px 32px rgba(15, 23, 42, 0.16); }
.menu > div a { display: block; padding: 9px 10px; border-radius: 8px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.menu > div a:hover { background: var(--canvas-deep); }
.menu > div p { padding: 8px 10px 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-3); }
.menu > div a.more { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--divider); border-radius: 0 0 8px 8px; color: var(--text-2); }
.menu summary svg:last-child { width: 14px; height: 14px; margin-left: -2px; color: var(--text-2); }
.lede { margin: -14px 0 18px; color: var(--text-2); }

/* ── What the sheet is narrowed to ── */
/* What does not fit beside the days goes under them: three ways to narrow a page are wider than some screens. */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 14px; }
.seg { display: flex; padding: 3px; border-radius: 10px; background: var(--canvas-deep); box-shadow: inset 0 0 0 1px var(--border); }
.seg a { height: 30px; padding: 0 14px; border-radius: 8px; display: grid; place-items: center; font-weight: 600; color: var(--text-2); }
.seg a[aria-current] { background: var(--surface); color: var(--navy); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12); }
.step { display: flex; align-items: center; gap: 4px; }
.ib { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--canvas-deep); color: var(--navy); }
a.ib:hover { background: var(--border); }
.ib.off { color: var(--text-3); background: none; }
.ib svg { width: 16px; height: 16px; }
.when { display: flex; align-items: baseline; gap: 8px; padding: 0 8px; white-space: nowrap; }
.when b { font-size: 15px; font-weight: 700; color: var(--navy); }
.when span { color: var(--text-2); font-variant-numeric: tabular-nums; }
.span { display: flex; align-items: center; gap: 8px; }
.span label { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-2); }
.span input { height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-variant-numeric: tabular-nums; }
.pick { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pick > span { position: relative; display: flex; align-items: center; height: 36px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--navy); }
.pick svg:first-child { position: absolute; left: 12px; width: 15px; height: 15px; color: var(--text-2); pointer-events: none; }
.pick svg:last-child { position: absolute; right: 10px; width: 15px; height: 15px; pointer-events: none; }
.pick select { appearance: none; -webkit-appearance: none; max-width: 220px; height: 34px; padding: 0 32px 0 34px; border: 0; border-radius: 18px; background: none; font-weight: 600; text-overflow: ellipsis; cursor: pointer; }
.js .nojs { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); font-weight: 600; color: var(--navy); white-space: nowrap; }
.chip:hover { background: var(--canvas-deep); }
.chip svg { width: 15px; height: 15px; color: var(--text-2); }
.chip[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.chip[aria-pressed="true"] svg { color: #fff; }
.nowline { margin-left: auto; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.nowline b { font-weight: 600; }
.nowline span { color: var(--text-2); }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

.check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: var(--warning-soft); color: var(--warning-ink); }
.check svg { width: 16px; height: 16px; margin-top: 1px; }
.check > span { flex: 1; overflow-wrap: anywhere; }
.check.plan { font-weight: 600; }
.check.plan a { flex: none; color: inherit; text-decoration: underline; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.plans li { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; }
.plans b { display: block; font-size: 16px; color: var(--navy); }
.plans span { display: block; color: var(--text-2); }
.plans .price { margin-top: 8px; font-weight: 700; color: var(--text); }
.plans li.due { border-color: var(--navy); background: #F5F8FC; }
.plans .btn, .plans form { margin-top: 12px; }
.plans form .btn { margin-top: 0; }
.paying { margin-top: 14px; }
.paying .sub { margin: 8px 0 0; max-width: 60ch; }
.plans .yours { display: inline-block; margin-top: 12px; padding: 5px 12px; border-radius: 999px; background: #DCFCE7; color: var(--success-ink); font-size: 13px; font-weight: 600; }
/* The two plans side by side on a phone too: a choice of two reads as one line. */
.plan-choice .opts.inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-choice > small { display: block; margin-top: 8px; font-size: 12px; line-height: 1.45; color: var(--text-2); }
.plan-choice > small a { font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.check a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ── The sheet: a person a row, a day a column ── */
.sheet { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
thead .who { width: 23%; } thead .num { width: 7.75%; } thead .tot { width: 9%; }
.flat thead .who { width: auto; } .flat thead .num, .flat thead .tot { width: 14%; }
th, td { height: 44px; padding: 0 12px; text-align: right; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
thead th { position: sticky; top: 0; z-index: 2; height: 40px; background: var(--surface); border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
thead th:first-child { border-top-left-radius: 12px; } thead th:last-child { border-top-right-radius: 12px; }
.weeks thead .col { white-space: normal; line-height: 1.3; }
thead .n { margin-left: 6px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-3); }
.who { text-align: left; padding-left: 44px; }
.dom { margin-left: 5px; font-size: 13px; letter-spacing: 0; color: var(--text); }
.today .dow { color: var(--navy); }
.today .dom { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--orange); color: var(--navy-deep); font-weight: 800; }
tbody .row > * { border-top: 1px solid var(--divider); }
tbody:first-of-type .row > * { border-top: 0; }
tbody .row:hover > * { background: #FBFCFE; }
.off, tbody .row:hover > .off { background: var(--canvas); }
tbody th.who { display: flex; align-items: center; gap: 10px; height: 44px; padding-left: 8px; }
.av { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.2px; }
.av .dot { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border: 2px solid var(--surface); }
.a0 { background: #3B6FB6; } .a1 { background: #56708F; } .a2 { background: #2F7F95; } .a3 { background: #5A67C4; }
.a4 { background: #6F6A61; } .a5 { background: #8A5A8F; } .a6 { background: #7A5FB8; } .a7 { background: #4C5B7A; }
tbody .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 600; color: var(--text); }
.role { flex: none; padding: 2px 7px; border-radius: 9px; background: var(--canvas-deep); color: var(--navy); font-size: 11px; font-weight: 600; }
.tog { flex: none; width: 26px; height: 26px; margin-right: -4px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); }
a.tog:hover { background: var(--canvas-deep); color: var(--navy); }
.tog svg { width: 16px; height: 16px; transform: rotate(-90deg); transition: transform 0.12s; }
.open .tog { color: var(--navy); } .open .tog svg { transform: none; }
.none { color: var(--text-3); }
/* Three marks, each a shape as well as a colour, so the sheet still reads in grey on a printer. */
.ot { display: inline-block; margin-right: -6px; padding: 2px 6px; border-radius: 6px; background: var(--orange-soft); color: var(--orange-ink); font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--success-ink); font-weight: 600; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.cap { display: inline-flex; align-items: center; gap: 4px; margin-right: -6px; padding: 2px 6px; border-radius: 6px; background: var(--warning-soft); color: var(--warning-ink); font-weight: 600; }
.cap svg { width: 12px; height: 12px; }
tbody .reg { color: var(--text-2); }
td.tot { padding: 0 16px 0 8px; font-size: 14px; font-weight: 700; color: var(--navy); }
thead .tot { padding-right: 16px; }
.idle .nm, .idle td.tot { color: var(--text-3); font-weight: 500; }
.idle .av { opacity: 0.45; }

/* A person's row, opened: every shift behind the total, a line each. */
.open .row > * { background: var(--canvas); }
.open .row > .who, .detail td { box-shadow: inset 3px 0 0 var(--navy); }
.detail td { height: auto; padding: 0; background: var(--canvas); text-align: left; white-space: normal; }
.shifts { padding: 0 16px 12px 82px; font-size: 12px; line-height: 1.45; color: var(--text-2); }
.shifts .meta { padding-bottom: 4px; }
.shifts .shift { display: grid; grid-template-columns: 112px 168px minmax(0, 1fr) auto; gap: 0 16px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--border); }
.shifts .day { font-weight: 600; color: var(--text); }
.shifts .times { color: var(--text); font-variant-numeric: tabular-nums; }
.shifts .on { color: var(--success-ink); font-weight: 600; }
.shifts .why, .shifts em { font-style: normal; color: var(--warning-ink); font-weight: 600; }
.shifts .h { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.shifts .place { min-width: 0; overflow-wrap: anywhere; }
.shifts .why::before, .shifts .lunch::before { content: " · "; color: var(--text-3); font-weight: 400; }
.shifts .lunch { color: var(--text-2); }
/* A shift an admin corrected: the word on its line, what was changed under it, and a pencil in front of every figure it is part of. */
.shifts .fix { color: var(--navy); }
.shifts .fixit { font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.shifts .record { padding: 0 0 6px; }
.log { display: grid; gap: 6px; margin-top: 6px; padding: 8px 12px; border-radius: 8px; background: var(--canvas-deep); color: var(--text-2); font-size: 12px; line-height: 1.45; list-style: none; white-space: normal; text-align: left; }
.log li { display: grid; gap: 1px; }
.log b { font-weight: 600; color: var(--text); }
.log q { color: var(--text); overflow-wrap: anywhere; }
.log span { font-variant-numeric: tabular-nums; }
/* One person's timesheet: a line a shift, a sum a week. */
.tsheet .why { display: block; font-size: 12px; font-weight: 600; color: var(--warning-ink); }
.tsheet .why.fix { color: var(--navy); }
.tsheet em { font-style: normal; font-weight: 600; color: var(--warning-ink); }
.tsheet tbody th { font-size: 13px; }
.tsheet thead th { white-space: normal; line-height: 1.25; }
.tsheet tbody + tbody tr:first-child > * { border-top: 1px solid var(--divider); }
.tsheet .weeksum > * { background: var(--canvas); font-weight: 700; color: var(--text); }
.tsheet .weeksum th { font-size: 12px; font-weight: 600; color: var(--text-2); }
.tsheet .live { color: var(--success-ink); font-weight: 600; }
.panel.half { max-width: 620px; margin-top: 16px; }
.panel > .log:first-of-type { margin-top: 10px; }
.fixed { display: inline-block; margin-right: 5px; color: var(--navy); vertical-align: -1px; }
.fixed svg { width: 11px; height: 11px; }
/* Correcting one: the shift as it stands, the form, and the before and after to agree to. */
.fixing .log { margin: 10px 0 0; }
.fixing .unit input { width: 96px; }
.fixing input[type="datetime-local"] { font-variant-numeric: tabular-nums; }
.compare { margin-top: 12px; }
.compare th, .compare td { height: 38px; }
.compare .changed td:last-child { font-weight: 700; color: var(--navy); }
.delta { margin: 14px 0 6px; font-size: 15px; font-weight: 700; color: var(--navy); }
.fixing .caution { margin: 12px 0 16px; }
.pair { display: flex; flex-wrap: wrap; gap: 10px; }

tfoot th, tfoot td { height: 48px; border-top: 1px solid var(--border); background: var(--canvas); font-weight: 600; color: var(--text); }
tfoot th { font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-2); border-bottom-left-radius: 12px; }
tfoot td:last-child { border-bottom-right-radius: 12px; font-weight: 800; }
.empty { padding: 56px 24px; text-align: center; color: var(--text-2); }
.empty b { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 700; letter-spacing: -0.3px; color: var(--text); }

.under { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-top: 14px; color: var(--text-2); font-size: 12px; }
.key { flex: none; display: flex; gap: 20px; }
.key li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.key .ot, .key .cap { margin: 0; }
.key span { font-variant-numeric: tabular-nums; }
.rules { flex: 0 1 560px; min-width: 0; text-align: right; line-height: 1.5; }

/* ── Under a page's title: the way back ── */
.crumb { margin-bottom: 10px; }
.crumb a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-2); }
.crumb a:hover { color: var(--navy); }
.crumb svg { width: 14px; height: 14px; }
.pager { display: flex; justify-content: center; margin: 16px 0; }
.rules.left { flex: 1; text-align: left; }

/* ── Reports: a day under a day, each report whole ── */
.logday { margin-bottom: 24px; }
.logday h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--navy); }
.logday h2 .n { font-size: 12px; font-weight: 500; color: var(--text-2); }
.rep { margin-bottom: 10px; padding: 14px 16px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.rep.flag { border-color: #F5C97A; box-shadow: inset 3px 0 0 var(--warning); }
.rep header { display: flex; align-items: center; gap: 10px; }
.rep .av { width: 32px; height: 32px; font-size: 12px; }
.rep .by { flex: 1; min-width: 0; line-height: 1.3; }
.rep .by b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.rep .by span { color: var(--text-2); overflow-wrap: anywhere; }
.rep .facts { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.warn { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; background: var(--warning-soft); color: var(--warning-ink); font-weight: 600; }
.warn svg { width: 12px; height: 12px; }
.notes { margin: 12px 0 0; max-width: 78ch; font-size: 14px; line-height: 1.5; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.notes.none { color: var(--text-3); }
.photos { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 12px; }
.photos li { min-width: 0; }
.photos a { display: block; border-radius: 8px; }
/* A photo is shown whole, as tall as its row allows and no wider than the page: scaled, never cut to a box. */
.photos img { display: block; width: auto; height: auto; max-width: 100%; max-height: 132px; border-radius: 8px; background: var(--canvas-deep); }
.photos .more a { display: grid; place-items: center; width: 132px; height: 132px; background: var(--canvas-deep); font-weight: 600; color: var(--navy); }
.photos .more a:hover { background: var(--border); }
.photos.whole { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.photos.whole img { max-height: none; width: 100%; }
.talk { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--divider); display: grid; gap: 8px; max-width: 78ch; }
.talk b { font-weight: 600; }
.talk span { margin-left: 6px; font-size: 12px; color: var(--text-2); }
.talk p { margin-top: 1px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.rep .open { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.rep .by a { display: block; font-size: 14px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.rep .by a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.rep.whole { padding: 18px 20px; }
.rep.whole .notes { font-size: 15px; }
.answer { display: grid; gap: 8px; justify-items: start; margin-top: 12px; }
.pager span { align-self: center; margin-right: 12px; color: var(--text-2); }
/* One report: what it says on the left, the day it is about on the right. */
.split.read { grid-template-columns: minmax(0, 1fr) 320px; }
.facts-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 16px; margin: 10px 0 4px; }
.facts-list dt { color: var(--text-2); }
.facts-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts-list dd b { font-weight: 700; color: var(--navy); }
.facts-list .ot { margin: 0 0 0 8px; font-size: 12px; }
.shiftlist { margin-top: 10px; }
.shiftlist li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--divider); color: var(--text-2); font-variant-numeric: tabular-nums; }
.shiftlist span b { display: block; font-weight: 600; color: var(--text); }
.shiftlist li > b { font-weight: 600; color: var(--navy); white-space: nowrap; }
.panel .ln.more { display: inline-block; margin-top: 10px; font-size: 12px; }
.read .panel form .btn { margin-top: 10px; }
.answer textarea, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font: inherit; font-size: 14px; line-height: 1.45; color: var(--text); resize: vertical; }
.answer textarea:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }

/* ── Receipts: the sums a bookkeeper asks for, over the register ── */
.sums { display: grid; grid-template-columns: 200px repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.spent, .sum { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.spent { display: grid; align-content: center; gap: 2px; background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, 0.72); }
.spent b { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sum h2 { margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-2); }
.sum li > * { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 10px; align-items: baseline; margin: 0 -8px; padding: 5px 8px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.sum li > a:hover { background: var(--canvas); }
.sum .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.sum .n { color: var(--text-3); font-size: 12px; }
.sum b { min-width: 76px; text-align: right; font-weight: 600; color: var(--navy); }
.sum progress { grid-column: 1 / -1; width: 100%; height: 3px; margin-top: 4px; border: 0; border-radius: 2px; background: var(--canvas-deep); appearance: none; -webkit-appearance: none; overflow: hidden; }
.sum progress::-webkit-progress-bar { background: var(--canvas-deep); }
.sum progress::-webkit-progress-value { background: var(--navy); border-radius: 2px; }
.sum progress::-moz-progress-bar { background: var(--navy); border-radius: 2px; }
.reg thead .day { width: 9%; } .reg thead .cat { width: 13%; } .reg thead .at { width: 20%; } .reg thead .by { width: 16%; } .reg thead .tot { width: 12%; }
.reg .day, .reg .cat, .reg .at, .reg .by { text-align: left; overflow: hidden; text-overflow: ellipsis; }
.reg tbody .cat, .reg tbody .by { color: var(--text-2); }
.reg .has { flex: none; color: var(--text-3); }
.reg .has svg { width: 14px; height: 14px; }
.reg tfoot th.who { height: 48px; }
.slip { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; padding: 4px 16px 16px 44px; }
.slip .shot { display: block; align-self: start; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); overflow: hidden; }
.slip .shot img { display: block; width: 100%; height: auto; }
.slip p.shot { display: grid; place-items: center; min-height: 120px; color: var(--text-3); }
.slip .facts { display: flex; flex-wrap: wrap; gap: 2px 16px; color: var(--text-2); font-size: 12px; }
.slip .facts b { font-weight: 600; color: var(--text); }
.slip .notes { margin-top: 8px; font-size: 13px; }
.slip .notes b { font-weight: 600; }
.items { margin-top: 12px; max-width: 620px; font-size: 13px; font-variant-numeric: tabular-nums; }
.items li { display: grid; grid-template-columns: minmax(0, 1fr) 56px 84px 92px; gap: 0 12px; padding: 5px 0; border-top: 1px solid var(--border); text-align: right; }
.items li > :first-child { text-align: left; overflow-wrap: anywhere; }
.items .hd { border-top: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-2); }
.items b { font-weight: 600; color: var(--text); }
.items .ft { color: var(--text-2); }
.items .all { font-weight: 700; color: var(--navy); }
.items .all b { font-weight: 800; color: var(--navy); }

/* ── Pages made of tiles, panels and plain tables: Home, Team, Job sites, Settings ── */
.ok { margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: #DCFCE7; color: var(--success-ink); font-weight: 600; }
main > .banner { margin-bottom: 14px; }
.sec { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 10px; font-size: 15px; font-weight: 700; color: var(--navy); }
.sec .n, .panel h2 .n { font-size: 12px; font-weight: 500; color: var(--text-2); }
.bar > .sec { flex: 1; margin: 0; }
.btn.end { margin-left: auto; }
.btn.go { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn.go:hover { background: var(--navy-deep); }
.btn.stop { border-color: var(--danger-ink); background: var(--danger-ink); color: #fff; }
.btn.stop:hover { background: #7F1D1D; }
.ln { font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.sub { color: var(--text-2); line-height: 1.5; }
.sub.line { margin: 6px 0 0; }
main > .facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: -10px 0 16px; color: var(--text-2); }
.blank { padding: 20px 16px; color: var(--text-2); }
.quiet { margin-top: 14px; color: var(--text-2); line-height: 1.6; }
.quiet a { font-weight: 600; color: var(--navy); }
.quiet a:hover { text-decoration: underline; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { display: grid; align-content: start; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text-2); }
.tile b { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.2; color: var(--navy); overflow-wrap: anywhere; }
.tile small { font-size: 12px; }
.tile small .ot { margin: 0; }
.tile.live b { display: flex; align-items: center; gap: 9px; }
.tile.live b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px #DCFCE7; }
.tiles.slim .tile { padding: 10px 14px; }
.tiles.slim .tile b { font-size: 19px; }
.tile b svg { display: block; width: 22px; height: 22px; margin: 4px 0; }
.tile.link:hover { border-color: #CBD5E1; background: #FBFCFE; }
.tile.warn { border-color: #F5C97A; background: var(--warning-soft); color: var(--warning-ink); }
.tile.warn b { color: var(--warning-ink); }

.panel { margin-bottom: 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.panel h2 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; font-size: 15px; font-weight: 700; color: var(--navy); }
.panel h2 .ln { margin-left: auto; font-size: 12px; white-space: nowrap; }
.panel.narrow { max-width: 560px; margin-top: 22px; }
.sheet + .panel { margin-top: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; margin-bottom: 16px; }
.dash > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.dash .panel { margin: 0; }
.split .bar { margin-bottom: 10px; }
.split > aside > .panel:first-child { margin-top: 34px; }
.split.read > aside > .panel:first-child { margin-top: 0; }
.bar.over { margin: 26px 0 12px; }
.bar.over .sec { flex: none; margin-right: 8px; font-size: 17px; }

/* ── Home: now ── */
.st.on { display: inline-flex; align-items: center; gap: 6px; background: #DCFCE7; color: var(--success-ink); }
.st.on i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.st.late { background: var(--warning-soft); color: var(--warning-ink); }
.crew .st.done, .crew .st.missed { padding-left: 0; background: none; font-weight: 500; color: var(--text-2); }
.crew .idle .st.missed { color: var(--text-3); }
.crew td.site { white-space: normal; line-height: 1.25; overflow-wrap: anywhere; }
.todo ul { display: grid; gap: 2px; margin-top: 8px; }
.todo li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--divider); line-height: 1.45; }
.todo li:first-child { border-top: 0; }
.todo li svg { width: 16px; height: 16px; margin-top: 2px; color: var(--warning-ink); }
.todo li p { min-width: 0; overflow-wrap: anywhere; }
.todo li a { font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.todo.some { border-color: #F5C97A; }
.todo.some h2 .n { padding: 1px 7px; border-radius: 9px; background: var(--warning-soft); color: var(--warning-ink); font-weight: 700; }
.clear { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--text-2); }
.clear svg { width: 16px; height: 16px; color: var(--success); }

/* ── Charts: plain elements, sized by a class (h37 is 37% tall, w62 62% wide) ── */
.legend { display: flex; gap: 14px; margin: 0 0 10px; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend .a, .stack .a, .track .a { background: var(--series-a); }
.legend .b, .stack .b, .track .b { background: var(--series-b); }
.chart, .hbars { margin: 12px 0 0; }
.plot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; }
.scale { display: flex; flex-direction: column; justify-content: space-between; height: 176px; font-size: 11px; line-height: 1; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.scale li:first-child { margin-top: -5px; } .scale li:last-child { margin-bottom: -5px; }
/* Three hairlines behind the columns: the top of the scale, half of it, and the line the columns stand on. */
.run { display: flex; background: linear-gradient(var(--divider), var(--divider)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--divider), var(--divider)) 0 88px / 100% 1px no-repeat, linear-gradient(var(--border), var(--border)) 0 176px / 100% 1px no-repeat; }
.run li { position: relative; flex: 1 1 0; min-width: 0; }
.run li > * { display: block; color: inherit; }
.stack { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; height: 176px; }
.stack i { display: block; flex: none; width: min(62%, 24px); min-height: 2px; }
.stack i:first-child { border-radius: 4px 4px 0 0; }
.run li:hover .stack, .run a:focus-visible .stack { background: rgba(31, 58, 95, 0.05); }
.x { display: block; padding-top: 7px; text-align: center; line-height: 1.25; }
.x b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 3px; border-radius: 10px; font-size: 12px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.x small { display: block; font-size: 10px; color: var(--text-3); }
.run .now .x b { background: var(--orange); color: var(--navy-deep); font-weight: 800; }
.run .rest .x b, .run .ahead .x b { font-weight: 500; color: var(--text-3); }
.run.many .x small { display: none; }
.run.many .x b { min-width: 0; padding: 0; font-size: 11px; }
.tip { display: none; position: absolute; z-index: 6; left: 50%; bottom: calc(100% - 168px); transform: translateX(-50%); padding: 8px 11px; border-radius: 8px; background: var(--navy-deep); color: #fff; font-size: 12px; line-height: 1.45; text-align: left; white-space: nowrap; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22); pointer-events: none; }
.tip b { display: block; font-weight: 700; }
.tip span { display: block; color: rgba(255, 255, 255, 0.82); font-variant-numeric: tabular-nums; }
.run li:hover .tip, .run a:focus-visible .tip { display: block; }
.run li:nth-child(-n+2) .tip { left: 0; transform: none; }
.run li:nth-last-child(-n+2) .tip { left: auto; right: 0; transform: none; }
.hbars ul { display: grid; gap: 1px; }
.hbars li > * { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr) auto; gap: 0 12px; align-items: center; margin: 0 -8px; padding: 7px 8px; border-radius: 8px; color: inherit; }
.hbars.two li > * { grid-template-columns: minmax(0, 34%) minmax(0, 1fr) 72px 72px; }
.hbars .heads { display: flex; justify-content: flex-end; gap: 12px; padding-bottom: 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-3); }
.hbars .heads span { width: 72px; text-align: right; }
.hbars .legend + .heads { margin-top: -26px; }
/* Where there is little room across, a bar goes under its name and figures. */
.hbars.tight li > * { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
.hbars.tight.two li > * { grid-template-columns: minmax(0, 1fr) 72px 72px; }
.hbars.tight .track { grid-column: 1 / -1; grid-row: 2; height: 8px; }
.hbars li > a:hover { background: var(--canvas); }
.hbars .nm { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.hbars .nm small { display: inline-flex; align-items: center; gap: 5px; margin-left: 7px; font-size: 11px; font-weight: 500; color: var(--text-3); white-space: nowrap; }
.hbars .nm small.live { color: var(--success-ink); font-weight: 600; }
.track { display: flex; gap: 2px; height: 10px; border-radius: 0 4px 4px 0; overflow: hidden; }
.track i { flex: none; height: 100%; }
.track i:last-child { border-radius: 0 4px 4px 0; }
.hbars b { text-align: right; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbars .also { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── Home: the latest reports and receipts ── */
.feed { margin-top: 6px; }
.feed > li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--divider); }
.feed > li:first-child { border-top: 0; }
.feed > li > div { flex: 1; min-width: 0; }
.feed .av { width: 32px; height: 32px; font-size: 12px; }
.feed .by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.feed .by a { font-size: 14px; font-weight: 600; color: var(--text); }
.feed .by a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.feed .by span { color: var(--text-2); font-size: 12px; }
.feed .notes { margin-top: 4px; font-size: 13px; }
.feed .photos { margin-top: 8px; gap: 6px; }
.feed .photos img { max-height: 84px; }
.feed .photos .more a { width: 84px; height: 84px; }
.rows.two a { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; white-space: normal; }
.rows.two a:hover { text-decoration: none; }
.rows.two a:hover span b { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.rows.two span { min-width: 0; }
.rows.two span b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.rows.two small { display: block; font-size: 12px; font-weight: 400; color: var(--text-2); overflow-wrap: anywhere; }
.rows.two a > b { flex: none; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.panel .foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--divider); }

/* ── Export: the files most asked for, then a form for any other ── */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.quick li { display: grid; align-content: start; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.quick p { margin-bottom: 4px; }
.quick p b { display: block; font-size: 14px; font-weight: 700; color: var(--navy); }
.quick p span { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.quick .btn { justify-content: flex-start; width: 100%; white-space: normal; text-align: left; height: auto; min-height: 36px; padding: 6px 12px; line-height: 1.25; }
.quick .btn svg { color: var(--text-2); }
.exporter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; padding: 22px; }
.exporter .what { display: grid; gap: 8px; align-content: start; }
.exporter .how { display: grid; gap: 18px; align-content: start; }
.exporter fieldset.plain { gap: 10px; }
.exporter .f-who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.exporter .f-who legend { grid-column: 1 / -1; }
.exporter .extra { justify-items: start; }
.exporter .dates { display: flex; gap: 10px; }
.exporter .dates label { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-2); }
.exporter .dates input { height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-variant-numeric: tabular-nums; }
.opts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.exporter .btns { flex-wrap: wrap; padding-top: 4px; }
.exporter .btns .btn { height: 42px; padding: 0 16px; font-size: 14px; }
/* What a document has no use for is put away. A browser that cannot tell shows it all, and what does not apply is not read. */
.exporter:has(select[name="span"] option:not([value=""]):checked) .dates { display: none; }
.exporter:has(input[name="what"]:is([value="reports"], [value="receipts"], [value="team"]):checked) .hourly { display: none; }
.exporter:has(input[name="what"]:not([value="reports"]):not([value="receipts"]):checked) .extra { display: none; }
.exporter:has(input[name="what"][value="receipts"]:checked) .for-reports:not(.for-receipts) { display: none; }
.exporter:has(input[name="what"][value="reports"]:checked) .for-receipts:not(.for-reports) { display: none; }
.exporter:has(input[name="what"][value="team"]:checked) :is(.f-days, .f-who) { display: none; }
.exporter:has(input[name="what"][value="sites"]:checked) .f-who { display: none; }

/* ── A document on the screen as it will be on paper ── */
.docbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.docbar .grow { flex: 1; }
.doc { max-width: 8.5in; margin: 0 auto; padding: 0.6in 0.65in; border: 1px solid var(--border); border-radius: 4px; background: #fff; box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08); font-size: 12px; line-height: 1.45; }
.doc.wide { max-width: 11in; }
.doc-cover { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); }
.doc-cover:not(:first-child) { margin-top: 48px; padding-top: 28px; border-top: 1px dashed var(--border); break-before: page; }
.doc-by { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 4px; font-size: 10px; color: var(--text-2); }
.doc-by b { font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.doc h1 { font-size: 22px; }
.doc-cover p:not(.doc-by) { color: var(--text-2); }
.doc h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 20px 0 6px; font-size: 15px; font-weight: 700; color: var(--navy); break-after: avoid; }
.doc h2 span { font-size: 11px; font-weight: 500; color: var(--text-2); text-align: right; }
.doc h2.small { margin-top: 14px; font-size: 13px; color: var(--text); }
.doc-facts { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 11px; color: var(--text-2); }
.doc-facts b { color: var(--warning-ink); }
.doc-text { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.doc-quiet { margin-top: 10px; font-size: 10.5px; color: var(--text-2); }
.doc-said { margin: 6px 0 6px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.doc-said b { display: block; font-size: 10.5px; font-weight: 600; color: var(--text-2); }
.doc-none { padding: 6px 0; color: var(--text-3); }
.doc hr { margin: 12px 0; border: 0; border-top: 1px solid var(--divider); }
.doc-table { margin: 6px 0 10px; table-layout: auto; }
.doc-table th, .doc-table td { height: auto; padding: 5px 10px 5px 0; border-bottom: 1px solid var(--divider); text-align: left; vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.doc-table th:last-child, .doc-table td:last-child { padding-right: 0; }
.doc-table thead th { position: static; height: auto; padding-bottom: 4px; border-bottom: 1px solid var(--text-3); border-radius: 0 !important; background: none; font-size: 9.5px; vertical-align: bottom; white-space: normal; }
.doc-table .num { text-align: right; white-space: nowrap; }
.doc-table tfoot td, .doc-table tr.sum td { border-radius: 0 !important; border-top: 0; border-bottom: 1px solid var(--text-3); background: var(--canvas-deep); font-weight: 700; font-size: 12px; color: var(--text); }
.doc-table tfoot td:first-child, .doc-table tr.sum td:first-child { padding-left: 6px; }
.doc-table tfoot td:last-child, .doc-table tr.sum td:last-child { padding-right: 6px; }
.doc-photos { display: grid; align-items: start; gap: 8px; margin: 8px 0; }
.doc-photos.per2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.doc-photos.per3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.doc-photos li { break-inside: avoid; }
.doc-photos img { display: block; width: auto; height: auto; max-width: 100%; max-height: 3.4in; border-radius: 4px; }
.doc-photos.per3 img { max-height: 2.5in; }
.doc-sign { display: grid; grid-template-columns: 2fr 1fr 2fr 1fr; gap: 26px; margin-top: 46px; break-inside: avoid; }
.doc-sign span { padding-top: 4px; border-top: 1px solid var(--text-2); font-size: 10px; color: var(--text-2); }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rows { margin-top: 8px; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--divider); }
.rows li:first-child { border-top: 0; }
.rows a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text); }
.rows a:hover { color: var(--navy); text-decoration: underline; }
.asks { margin-top: 6px; }
.asks li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--divider); }
.asks li:first-child { border-top: 0; }
.asks p { flex: 1; min-width: 0; line-height: 1.3; }
.asks p b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.asks p span { color: var(--text-2); overflow-wrap: anywhere; }
.st { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.st.submitted { background: #DCFCE7; color: var(--success-ink); }
a.st:hover { text-decoration: underline; }
.st.pending { background: var(--warning-soft); color: var(--warning-ink); }
.st.missed { background: var(--canvas-deep); color: var(--text-2); }

/* A plain table: what a row is about on the left, its figures on the right. A column says its own width. */
.list th, .list td { text-align: left; overflow: hidden; text-overflow: ellipsis; }
.list thead th:first-child, .list tbody th, .list tfoot th { padding-left: 16px; }
.list tr > :last-child { padding-right: 16px; }
.list .num { text-align: right; }
.list tbody tr > * { border-top: 1px solid var(--divider); }
.list tbody tr:first-child > * { border-top: 0; }
.list tbody th { font-size: 14px; font-weight: 600; color: var(--text); }
.list tbody tr:hover > * { background: #FBFCFE; }
.list .strong { font-weight: 700; color: var(--navy); }
.list tfoot td { font-weight: 700; }
.list tr.off > *, .list tr.idle > * { color: var(--text-3); }
.list tr.off th, .list tr.idle th { color: var(--text-2); }
.list thead .num { width: auto; }
.pn { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; }
.pn > span:not(.av) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
a.pn:hover > span:not(.av) { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.pn small { flex: none; font-size: 11px; }

/* Forms inside a page: a few fields, and a button that says what it does. */
.form { display: grid; gap: 14px; justify-items: start; margin-top: 12px; }
.form > .field, .form > .opts, .form > fieldset, .form > .tick { width: 100%; }
.panel .field input, .panel .field select { height: 40px; border-radius: 10px; font-size: 14px; }
.field select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font: inherit; color: var(--text); }
.field select:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.field input[readonly] { background: var(--canvas); color: var(--text-2); }
.field small { font-size: 12px; color: var(--text-2); }
.field.short { max-width: 260px; }
.unit { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--text-2); }
.panel .unit input { width: 96px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset.plain { display: grid; gap: 14px; }
legend, .lbl { margin-bottom: 6px; padding: 0; font-size: 13px; font-weight: 600; }
.opts { display: grid; gap: 8px; }
.opts.inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts.inline .lbl { grid-column: 1 / -1; margin: 0; }
.opts.pay { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts.pay .lbl, .opts.two, .opts.pay .custom { grid-column: 1 / -1; margin: 0; }
.opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 6px; }
.opts.pay .custom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin-top: 6px; }
.opts.pay .custom .sub { grid-column: 1 / -1; margin: 0; }
/* Which two weeks is a question only for who pays every two weeks, the first day and length only for who picks
   Custom. A browser that cannot tell shows them to all. */
.opts.pay:has(input[name="payCycle"]:not([value="BIWEEKLY"]):checked) .two { display: none; }
.opts.pay:has(input[name="payCycle"]:not([value="CUSTOM"]):checked) .custom { display: none; }
.caution { padding: 10px 12px; border-radius: 10px; background: var(--warning-soft); color: var(--warning-ink); line-height: 1.5; }
.opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--navy); background: #F5F8FC; }
.opt input { flex: none; margin: 2px 0 0; accent-color: var(--navy); }
.opt b, .tick b { display: block; font-weight: 600; }
.opt small, .tick small { display: block; font-size: 12px; line-height: 1.4; color: var(--text-2); }
.panel .tick { align-items: flex-start; }
.panel .tick input { flex: none; margin-top: 1px; }
fieldset:disabled .opt, fieldset:disabled .tick { cursor: default; }
.panel hr { width: 100%; margin: 2px 0; border: 0; border-top: 1px solid var(--divider); }
.btns { display: flex; gap: 8px; }
.aside { display: grid; gap: 10px; justify-items: start; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--divider); }
.danger summary { cursor: pointer; font-weight: 600; color: var(--danger-ink); }
.danger[open] summary { margin-bottom: 8px; }
.danger p { margin-bottom: 10px; line-height: 1.5; color: var(--text-2); }
.form + .danger { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--divider); }
.copy { display: flex; gap: 8px; }
.copy input { flex: 1; min-width: 0; }
.copy .btn { height: 40px; }
.invite .field { margin-top: 12px; }
.code { display: flex; align-items: baseline; gap: 10px; margin: 12px 0; color: var(--text-2); }
.code b { font: 700 20px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 3px; color: var(--navy); }
.invite .sub b { font-weight: 600; color: var(--text); }
.acct .pop a.more { display: none; }

/* On a wide screen a week's shifts sit under their own days: the sheet's columns, carried into the opened row. */
@media screen and (min-width: 1180px) {
  .week7 .shifts { display: grid; grid-template-columns: 23% repeat(7, 7.5%) 1fr; grid-auto-flow: row dense; padding: 0 0 12px; }
  .week7 .shifts .meta { grid-column: 1; grid-row: 1 / span 4; padding: 2px 12px 0 82px; }
  .week7 .shifts .shift { display: block; padding: 2px 12px 4px 0; border: 0; text-align: right; }
  .week7 .shifts .day, .week7 .shifts .h { display: none; }
  .week7 .shifts .times, .week7 .shifts .place { display: block; margin-left: -10px; }
  .week7 .shifts .why, .week7 .shifts .lunch { display: block; white-space: nowrap; }
  .week7 .shifts .why::before, .week7 .shifts .lunch::before { content: none; }
  .week7 .shifts .fixit { display: block; margin-left: -10px; } .week7 .shifts .record { grid-column: 2 / -1; padding-right: 16px; }
  .week7 .d1 { grid-column: 2; } .week7 .d2 { grid-column: 3; } .week7 .d3 { grid-column: 4; } .week7 .d4 { grid-column: 5; }
  .week7 .d5 { grid-column: 6; } .week7 .d6 { grid-column: 7; } .week7 .d7 { grid-column: 8; }
}

.h0 { height: 0%; } .w0, .list thead .w0 { width: 0%; }
.h1 { height: 1%; } .w1, .list thead .w1 { width: 1%; }
.h2 { height: 2%; } .w2, .list thead .w2 { width: 2%; }
.h3 { height: 3%; } .w3, .list thead .w3 { width: 3%; }
.h4 { height: 4%; } .w4, .list thead .w4 { width: 4%; }
.h5 { height: 5%; } .w5, .list thead .w5 { width: 5%; }
.h6 { height: 6%; } .w6, .list thead .w6 { width: 6%; }
.h7 { height: 7%; } .w7, .list thead .w7 { width: 7%; }
.h8 { height: 8%; } .w8, .list thead .w8 { width: 8%; }
.h9 { height: 9%; } .w9, .list thead .w9 { width: 9%; }
.h10 { height: 10%; } .w10, .list thead .w10 { width: 10%; }
.h11 { height: 11%; } .w11, .list thead .w11 { width: 11%; }
.h12 { height: 12%; } .w12, .list thead .w12 { width: 12%; }
.h13 { height: 13%; } .w13, .list thead .w13 { width: 13%; }
.h14 { height: 14%; } .w14, .list thead .w14 { width: 14%; }
.h15 { height: 15%; } .w15, .list thead .w15 { width: 15%; }
.h16 { height: 16%; } .w16, .list thead .w16 { width: 16%; }
.h17 { height: 17%; } .w17, .list thead .w17 { width: 17%; }
.h18 { height: 18%; } .w18, .list thead .w18 { width: 18%; }
.h19 { height: 19%; } .w19, .list thead .w19 { width: 19%; }
.h20 { height: 20%; } .w20, .list thead .w20 { width: 20%; }
.h21 { height: 21%; } .w21, .list thead .w21 { width: 21%; }
.h22 { height: 22%; } .w22, .list thead .w22 { width: 22%; }
.h23 { height: 23%; } .w23, .list thead .w23 { width: 23%; }
.h24 { height: 24%; } .w24, .list thead .w24 { width: 24%; }
.h25 { height: 25%; } .w25, .list thead .w25 { width: 25%; }
.h26 { height: 26%; } .w26, .list thead .w26 { width: 26%; }
.h27 { height: 27%; } .w27, .list thead .w27 { width: 27%; }
.h28 { height: 28%; } .w28, .list thead .w28 { width: 28%; }
.h29 { height: 29%; } .w29, .list thead .w29 { width: 29%; }
.h30 { height: 30%; } .w30, .list thead .w30 { width: 30%; }
.h31 { height: 31%; } .w31, .list thead .w31 { width: 31%; }
.h32 { height: 32%; } .w32, .list thead .w32 { width: 32%; }
.h33 { height: 33%; } .w33, .list thead .w33 { width: 33%; }
.h34 { height: 34%; } .w34, .list thead .w34 { width: 34%; }
.h35 { height: 35%; } .w35, .list thead .w35 { width: 35%; }
.h36 { height: 36%; } .w36, .list thead .w36 { width: 36%; }
.h37 { height: 37%; } .w37, .list thead .w37 { width: 37%; }
.h38 { height: 38%; } .w38, .list thead .w38 { width: 38%; }
.h39 { height: 39%; } .w39, .list thead .w39 { width: 39%; }
.h40 { height: 40%; } .w40, .list thead .w40 { width: 40%; }
.h41 { height: 41%; } .w41, .list thead .w41 { width: 41%; }
.h42 { height: 42%; } .w42, .list thead .w42 { width: 42%; }
.h43 { height: 43%; } .w43, .list thead .w43 { width: 43%; }
.h44 { height: 44%; } .w44, .list thead .w44 { width: 44%; }
.h45 { height: 45%; } .w45, .list thead .w45 { width: 45%; }
.h46 { height: 46%; } .w46, .list thead .w46 { width: 46%; }
.h47 { height: 47%; } .w47, .list thead .w47 { width: 47%; }
.h48 { height: 48%; } .w48, .list thead .w48 { width: 48%; }
.h49 { height: 49%; } .w49, .list thead .w49 { width: 49%; }
.h50 { height: 50%; } .w50, .list thead .w50 { width: 50%; }
.h51 { height: 51%; } .w51, .list thead .w51 { width: 51%; }
.h52 { height: 52%; } .w52, .list thead .w52 { width: 52%; }
.h53 { height: 53%; } .w53, .list thead .w53 { width: 53%; }
.h54 { height: 54%; } .w54, .list thead .w54 { width: 54%; }
.h55 { height: 55%; } .w55, .list thead .w55 { width: 55%; }
.h56 { height: 56%; } .w56, .list thead .w56 { width: 56%; }
.h57 { height: 57%; } .w57, .list thead .w57 { width: 57%; }
.h58 { height: 58%; } .w58, .list thead .w58 { width: 58%; }
.h59 { height: 59%; } .w59, .list thead .w59 { width: 59%; }
.h60 { height: 60%; } .w60, .list thead .w60 { width: 60%; }
.h61 { height: 61%; } .w61, .list thead .w61 { width: 61%; }
.h62 { height: 62%; } .w62, .list thead .w62 { width: 62%; }
.h63 { height: 63%; } .w63, .list thead .w63 { width: 63%; }
.h64 { height: 64%; } .w64, .list thead .w64 { width: 64%; }
.h65 { height: 65%; } .w65, .list thead .w65 { width: 65%; }
.h66 { height: 66%; } .w66, .list thead .w66 { width: 66%; }
.h67 { height: 67%; } .w67, .list thead .w67 { width: 67%; }
.h68 { height: 68%; } .w68, .list thead .w68 { width: 68%; }
.h69 { height: 69%; } .w69, .list thead .w69 { width: 69%; }
.h70 { height: 70%; } .w70, .list thead .w70 { width: 70%; }
.h71 { height: 71%; } .w71, .list thead .w71 { width: 71%; }
.h72 { height: 72%; } .w72, .list thead .w72 { width: 72%; }
.h73 { height: 73%; } .w73, .list thead .w73 { width: 73%; }
.h74 { height: 74%; } .w74, .list thead .w74 { width: 74%; }
.h75 { height: 75%; } .w75, .list thead .w75 { width: 75%; }
.h76 { height: 76%; } .w76, .list thead .w76 { width: 76%; }
.h77 { height: 77%; } .w77, .list thead .w77 { width: 77%; }
.h78 { height: 78%; } .w78, .list thead .w78 { width: 78%; }
.h79 { height: 79%; } .w79, .list thead .w79 { width: 79%; }
.h80 { height: 80%; } .w80, .list thead .w80 { width: 80%; }
.h81 { height: 81%; } .w81, .list thead .w81 { width: 81%; }
.h82 { height: 82%; } .w82, .list thead .w82 { width: 82%; }
.h83 { height: 83%; } .w83, .list thead .w83 { width: 83%; }
.h84 { height: 84%; } .w84, .list thead .w84 { width: 84%; }
.h85 { height: 85%; } .w85, .list thead .w85 { width: 85%; }
.h86 { height: 86%; } .w86, .list thead .w86 { width: 86%; }
.h87 { height: 87%; } .w87, .list thead .w87 { width: 87%; }
.h88 { height: 88%; } .w88, .list thead .w88 { width: 88%; }
.h89 { height: 89%; } .w89, .list thead .w89 { width: 89%; }
.h90 { height: 90%; } .w90, .list thead .w90 { width: 90%; }
.h91 { height: 91%; } .w91, .list thead .w91 { width: 91%; }
.h92 { height: 92%; } .w92, .list thead .w92 { width: 92%; }
.h93 { height: 93%; } .w93, .list thead .w93 { width: 93%; }
.h94 { height: 94%; } .w94, .list thead .w94 { width: 94%; }
.h95 { height: 95%; } .w95, .list thead .w95 { width: 95%; }
.h96 { height: 96%; } .w96, .list thead .w96 { width: 96%; }
.h97 { height: 97%; } .w97, .list thead .w97 { width: 97%; }
.h98 { height: 98%; } .w98, .list thead .w98 { width: 98%; }
.h99 { height: 99%; } .w99, .list thead .w99 { width: 99%; }
.h100 { height: 100%; } .w100, .list thead .w100 { width: 100%; }

/* ── The door: signing in, and what someone sees who has no place here ── */
.door { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 400px); place-content: center; padding: 56px 16px 32px; background: var(--navy); }
.door .card { padding: 32px 28px 28px; border-radius: 20px; background: var(--surface); box-shadow: 0 16px 40px rgba(8, 20, 40, 0.28); }
.door .mast { position: relative; width: fit-content; margin: 0 auto 20px; }
.door .logo { display: block; height: 96px; width: auto; }
.door .beta { position: absolute; left: 100%; top: 4px; margin-left: 6px; background: var(--orange-soft); color: var(--orange-ink); }
.door h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.4px; text-align: center; color: var(--text); text-wrap: balance; }
.door .lead { margin: 6px 0 24px; text-align: center; font-size: 14px; line-height: 1.45; color: var(--text-2); text-wrap: balance; }
.door form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; }
.field input { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 16px; }
.field input:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.tick { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); cursor: pointer; }
.tick input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }
.banner { padding: 10px 14px; border-radius: 10px; background: var(--danger-soft); color: var(--danger-ink); font-size: 14px; font-weight: 600; }
.door .hint { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--divider); font-size: 13px; line-height: 1.5; color: var(--text-2); }
.door form.quiet { margin-top: 12px; }
.door form.quiet .btn { width: 100%; }
.door .ok { margin: 0; }
.door .hint a { font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.door .after { margin-top: 20px; text-align: center; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.72); text-wrap: balance; }
.door .lang { position: absolute; top: 16px; right: 16px; }
.door .card > .btn, .door .card > form > .btn { width: 100%; }
.door .card > a.btn { margin-top: 4px; }
.door .hint span { display: block; margin-top: 8px; }

/* ── Starting a company, and what comes next: the page a visitor came from, carried on.
   One column for a phone; the button ends the form and is never pinned, so no keyboard covers it. ── */
.start { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 440px); justify-content: center; align-content: start; padding: 0 20px 40px; background: var(--navy); color: #fff; }
.start > header { display: flex; align-items: center; gap: 10px; padding-top: 20px; }
.start .lockup { display: block; height: 44px; width: auto; }
.start .lang { margin-left: auto; }
.start .pitch { padding: 36px 0 24px; }
.start h1 { font-size: 34px; line-height: 1.08; font-weight: 800; letter-spacing: -1px; color: #fff; text-wrap: balance; }
.start h1 em { display: block; font-style: normal; color: var(--orange); }
.start .lead { margin-top: 12px; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, 0.8); }
.trial { display: grid; gap: 4px; margin-top: 16px; font-size: 14px; line-height: 1.45; }
.trial b { display: flex; align-items: flex-start; gap: 8px; font-size: 16px; font-weight: 700; }
.trial svg { width: 22px; height: 22px; padding: 5px; border-radius: 50%; background: var(--orange); color: var(--navy-deep); stroke-width: 3.5; }
.trial span { color: rgba(255, 255, 255, 0.75); }
.start .card { padding: 24px 20px; border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 16px 40px rgba(8, 20, 40, 0.28); }
.start form { display: grid; gap: 16px; }
.start .field input, .start .field select { height: 50px; }
.start .field input::placeholder { color: var(--text-3); }
.field textarea { display: block; width: 100%; min-height: 96px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font: inherit; font-size: 16px; line-height: 1.4; color: var(--text); resize: vertical; }
.field textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.start .card > .btn + .btn { margin-top: 10px; }
.field [aria-invalid] { border-color: var(--danger-ink); }
.field .err, .agree .err { color: var(--danger-ink); font-weight: 600; }
.field small a { font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.field > .peek { position: relative; display: block; font-size: inherit; font-weight: inherit; }
.peek input { padding-right: 76px; }
.peek button { position: absolute; top: 6px; right: 6px; height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font-size: 13px; font-weight: 600; color: var(--navy); }
.tick.agree { align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.tick.agree input { flex: none; width: 22px; height: 22px; }
.agree a { font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.agree .err { display: block; margin-top: 4px; font-size: 12px; }
.start .card > .btn, .start form > .btn, .steps > li > .btn { width: 100%; }
.start .card > .btn { height: 50px; border-radius: 14px; font-size: 15px; }
.start .btn.primary, .steps > li > .btn { height: 54px; border-radius: 14px; font-size: 17px; font-weight: 800; }
/* A sentence on a button takes a second line on a phone before it is cut short. */
.start .card > .btn { height: auto; min-height: 50px; padding: 8px 12px; line-height: 1.25; white-space: normal; text-align: center; }
.start .card > .btn.primary { min-height: 54px; }
/* A store's name is never cut short: on a small phone the button takes a second line. */
.steps > li > .btn { height: auto; min-height: 54px; padding: 8px 12px; line-height: 1.2; white-space: normal; text-align: center; }
.btn:disabled { opacity: 0.6; cursor: default; }
.start .hint { margin-top: 18px; text-align: center; font-size: 14px; }
.start .hint a { font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.start .after { margin-top: 20px; text-align: center; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.72); text-wrap: balance; }
.steps { display: grid; gap: 24px; margin: 0 0 24px; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-left: 44px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -4px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; }
.steps b { font-size: 16px; line-height: 1.35; }
.steps p { font-size: 14px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.steps .soon { padding: 10px 12px; border-radius: 10px; background: var(--canvas-deep); color: var(--text); }
.steps .copy input { height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--canvas); font-size: 13px; color: var(--text-2); }
.card > .trial { margin: 0 0 20px; padding: 14px 16px; border-radius: 12px; background: var(--orange-soft); }
.card > .trial span { color: var(--text-2); }
@media (min-width: 761px) {
  .start { padding-top: 16px; padding-bottom: 64px; }
  .start .card { padding: 28px; }
}
.lost { padding: 72px 16px; text-align: center; }
.lost h1 { margin-bottom: 8px; }
.lost p { margin-bottom: 20px; font-size: 14px; color: var(--text-2); }

/* ── A small laptop: the sections fold to a rail of icons and the sheet keeps every column ── */
@media screen and (max-width: 1359px) and (min-width: 761px) {
  :root { --side: 72px; }
  .brand { padding: 16px 0 12px; display: grid; place-items: center; gap: 6px; }
  .brand .beta { padding: 1px 5px; font-size: 9px; }
  .brand .lockup { display: none; } .brand .mark { display: block; }
  .side nav a { justify-content: center; padding: 0; }
  .side nav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .acct { justify-items: center; padding: 14px 0 16px; }
  .acct .me { cursor: pointer; }
  .acct .me .nm { display: none; }
  .acct .pop { left: 64px; bottom: 12px; }
}
/* Folded away, the account opens from its initials. */
@media screen and (max-width: 1359px) {
  .acct .pop { display: none; position: absolute; z-index: 20; width: 232px; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border), 0 12px 32px rgba(15, 23, 42, 0.18); }
  .acct > input { display: block; }
  .acct input:checked ~ .pop { display: flex; }
  .acct input:focus-visible ~ .me .av { outline: 2px solid var(--orange); outline-offset: 2px; }
  .acct .id { display: block; }
  .acct .id small { color: var(--text-2); }
  .acct .lang { align-self: flex-start; background: var(--canvas-deep); }
  .acct .lang b { background: var(--navy); color: #fff; }
  .acct .lang button { color: var(--text-2); }
  .acct .lang button:hover { color: var(--navy); }
  .acct .out { height: 38px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; color: var(--navy); }
  .acct .out:hover { background: var(--canvas-deep); color: var(--navy); }
  .acct form:last-child { display: grid; }
}
/* Narrower still, "Regular" goes: it is the total less the overtime, and both stay. Its column
   is squeezed shut, not removed: the opened row's cell spans every column by count, and one
   column fewer would leave that cell an empty column of its own to stretch across. */
@media screen and (max-width: 1179px) and (min-width: 761px) {
  body > main { padding: 24px 20px 48px; }
  .days .reg, .weeks .reg { width: 1px; padding: 0; overflow: hidden; font-size: 0; visibility: hidden; }
  /* A name is worth more of the column than the word beside it. */
  .role { display: none; }
  .reg .by { width: 1px; padding: 0; overflow: hidden; font-size: 0; visibility: hidden; }
  .sums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spent { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; }
  .slip { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); padding-left: 16px; }
  .split, .cols { grid-template-columns: minmax(0, 1fr); }
  .list .role, .facts .role { display: inline-block; }
  th, td { padding: 0 7px; }
  thead .who { width: 24%; } thead .otc { width: 9%; } thead .tot { width: 11%; }
  tbody td.col { font-size: 12.5px; }
  .cap { gap: 3px; padding: 2px 5px; } .cap svg { width: 11px; height: 11px; }
  .nowline span { display: none; }
  .under { flex-direction: column; gap: 12px; } .key { flex-wrap: wrap; } .rules { flex: none; text-align: left; }
}
/* A tablet held upright: the sheet scrolls sideways under the names. */
@media screen and (max-width: 999px) and (min-width: 761px) {
  .sheet { overflow-x: auto; }
  .days, .weeks { min-width: 900px; }
  /* The names stay on the left and the totals on the right; the days move between them. */
  tbody th.who, thead th.who, tfoot th.who { position: sticky; left: 0; z-index: 1; background: var(--surface); }
  .tot { position: sticky; right: 0; z-index: 1; background: var(--surface); box-shadow: -1px 0 0 var(--divider); }
  thead th.who, thead th.tot { z-index: 3; }
  tfoot th.who, tfoot .tot, .open .row > .who, .open .row > .tot { background: var(--canvas); }
  /* The opened row stays in view while the columns move: it is as wide as the screen, not the sheet. */
  .shifts { position: sticky; left: 0; max-width: calc(100vw - var(--side) - 42px); }
}

/* ── A phone: the app's own Hours tab. A card a person, the days inside it ── */
@media screen and (max-width: 760px) {
  body { font-size: 14px; }
  .side { display: contents; }
  /* The sections along the bottom, as the app has them. */
  .brand { display: none; }
  .side nav { position: fixed; inset: auto 0 0 0; z-index: 5; display: flex; gap: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); }
  .side nav a { flex: 1; flex-direction: column; justify-content: center; gap: 3px; height: 48px; padding: 0; border-radius: 8px; font-size: 11px; color: var(--text-3); }
  .side nav a:hover { background: none; color: var(--text-3); }
  .side nav a[aria-current] { background: none; color: var(--navy); }
  .side nav svg { width: 22px; height: 22px; }
  .mtop { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: calc(10px + env(safe-area-inset-top)) 64px 10px 16px; background: var(--navy); color: #fff; }
  .mtop img { height: 36px; width: auto; }
  .mtop .beta { order: 1; }
  .mtop b { min-width: 0; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .acct { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 16px; margin: 0; padding: 0; border: 0; color: #fff; }
  .acct .me { cursor: pointer; }
  .acct .me .nm { display: none; }
  .acct .pop { right: 0; top: 42px; }
  body > main { margin: 0; padding: 16px 16px calc(84px + env(safe-area-inset-bottom)); }
  .head { margin-bottom: 14px; align-items: center; }
  .eyebrow { display: none; }
  h1 { font-size: 24px; }
  .actions .btn { width: 40px; height: 40px; padding: 0; }
  .actions .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .actions .btn svg { width: 18px; height: 18px; }
  .bar { flex-wrap: wrap; gap: 10px; }
  /* Each choice as wide as its words, on one line: where four do not fit a small phone, the control scrolls sideways. */
  .seg { flex: 1 0 100%; overflow-x: auto; }
  .seg a { flex: 1 0 auto; height: 36px; padding: 0 8px; white-space: nowrap; }
  .step { flex: 1 0 100%; justify-content: space-between; }
  .ib { width: 40px; height: 40px; }
  .when { flex-direction: column; align-items: center; gap: 0; }
  .when span { font-size: 12px; }
  .span { flex: 1 0 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .span label { min-width: 0; flex-direction: column; align-items: stretch; gap: 4px; font-size: 12px; }
  .span input { width: 100%; min-width: 0; height: 40px; padding: 0 8px; font-size: 16px; }
  .span .btn { grid-column: 1 / -1; height: 40px; }
  .pick { flex: 1 1 auto; flex-wrap: wrap; }
  .pick > span { flex: 1 1 150px; min-width: 0; height: 40px; }
  .pick select { width: 100%; min-width: 0; max-width: none; height: 38px; font-size: 14px; }
  .nowline { font-size: 13px; }
  .nowline span { display: none; }
  .check { flex-wrap: wrap; font-size: 13px; }
  .check > span { flex: 1 0 0; }
  .check a { flex: 1 0 100%; padding-left: 26px; }

  .sheet { border: 0; background: none; border-radius: 0; }
  table, thead, tbody, tfoot, tr, th, td { display: block; }
  thead { display: none; }
  table { table-layout: auto; }
  tbody.p, tfoot { margin-bottom: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
  th, td { height: auto; padding: 0; }
  /* Name on the left, the total over its overtime on the right, the arrow last. */
  .row, tfoot tr { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 40px; column-gap: 10px; align-items: center; align-content: center; min-height: 60px; padding: 9px 6px 9px 12px; }
  tbody .row > *, .open .row > *, tfoot th, tfoot td, .detail td { border: 0; background: none; box-shadow: none; }
  .row .col, .row .reg, .row .dw, tfoot .col, tfoot .reg, tfoot .dw, span.tog, .role { display: none; }
  tbody .row th.who { display: contents; }
  .av { grid-column: 1; grid-row: 1 / span 2; width: 36px; height: 36px; font-size: 13px; }
  /* A long name takes a second line before it is cut short. */
  tbody .nm { grid-column: 2; grid-row: 1 / span 2; font-size: 15px; line-height: 1.25; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  td.tot { grid-column: 3; grid-row: 1; padding: 0; font-size: 16px; }
  .otc { grid-column: 3; grid-row: 2; }
  /* With no overtime under it, the total sits in the middle of the card. */
  .plain td.tot { grid-row: 1 / span 2; }
  .plain .otc { display: none; }
  .otc .ot { margin: 0; padding: 0; background: none; font-size: 12px; }
  .otc .ot::after { content: " " attr(data-word); }
  .tog { grid-column: 4; grid-row: 1 / span 2; width: 40px; height: 40px; margin: 0; }
  .open .row { border-bottom: 1px solid var(--divider); }
  .detail { background: var(--canvas); }
  .shifts { padding: 2px 12px 6px; }
  .shifts .meta { display: none; }
  .shifts .shift { grid-template-columns: minmax(0, 1fr) auto; gap: 1px 12px; padding: 9px 0; }
  .shifts .shift:nth-child(2) { border-top: 0; }
  .shifts .day { grid-column: 1; grid-row: 1; font-size: 14px; }
  .shifts .h { grid-column: 2; grid-row: 1; font-size: 14px; }
  .shifts .times, .shifts .place { grid-column: 1 / -1; color: var(--text-2); }
  tfoot { background: var(--canvas-deep); border-color: transparent; }
  tfoot th, tfoot td { height: auto; }
  tfoot th.who { grid-column: 1 / span 2; grid-row: 1 / span 2; padding: 0 0 0 4px; }
  tfoot td:last-child { font-size: 17px; }
  .empty { padding: 40px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
  /* Five sections fit the bar, as in the app; the other two open from the account. */
  .side nav a.more { display: none; }
  .acct .pop a.more { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); }
  .acct .pop a.more svg { width: 18px; height: 18px; color: var(--text-2); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { padding: 12px 14px; }
  .tile b { font-size: 22px; }
  .split, .cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .panel { padding: 16px; }
  .panel .field input, .panel .field select { height: 44px; font-size: 16px; }
  .asks li { flex-wrap: wrap; }
  .asks p { flex: 1 0 calc(100% - 46px); }
  .asks form { flex: 1; }
  .asks .btn { width: 100%; height: 40px; }
  .btn.end { flex: 1 0 100%; height: 40px; margin: 0; }
  .opts.inline, .opts.pay, .opts.two, .opts.pay .custom { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .blank { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
  main > .facts { margin-top: -6px; }
  /* A plain table as cards: what a row is about, then each figure beside the name of its column. */
  .list tbody tr, .list tfoot tr { display: block; min-height: 0; margin-bottom: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
  .list tfoot { margin: 0; border: 0; background: none; overflow: visible; }
  .list tfoot tr { border-color: transparent; background: var(--canvas-deep); }
  .list tbody tr > *, .list tfoot tr > * { padding: 0; border: 0; background: none; white-space: normal; }
  .list tbody th, .list tfoot th { margin-bottom: 4px; padding: 0; }
  .list td { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; text-align: right; }
  .list td::before { content: attr(data-label); flex: none; font-weight: 400; color: var(--text-2); text-align: left; }
  .list td:empty, .list td:not([data-label]) { display: none; }
  .list tfoot td:last-child { font-size: inherit; }
  .list .role, .facts .role { display: inline-block; }
  .list .av { width: 28px; height: 28px; font-size: 11px; }
  /* A receipt's card: the store over its day and job site, the amount, the arrow. */
  .reg .row { grid-template-columns: auto minmax(0, 1fr) auto 40px; column-gap: 6px; }
  .reg tbody .nm { grid-column: 1 / span 2; grid-row: 1; -webkit-line-clamp: 1; }
  .reg .day { grid-column: 1; grid-row: 2; }
  .reg .at { grid-column: 2; grid-row: 2; white-space: nowrap; }
  .reg .at::before { content: "· "; }
  .reg .day, .reg .at { font-size: 13px; color: var(--text-2); }
  .reg .cat, .reg .by, .reg .has { display: none; }
  .reg td.tot { grid-row: 1 / span 2; }
  .reg tfoot tr { grid-template-columns: minmax(0, 1fr) auto 40px; }
  .reg tfoot th.who { grid-column: 1; height: auto; }
  .reg tfoot td.tot { grid-column: 2; }
  .slip { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 4px 12px 12px; }
  .slip .shot { max-width: 420px; }
  .items li { grid-template-columns: minmax(0, 1fr) 40px 70px 78px; gap: 0 8px; }
  .sums { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .spent { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
  .rep { padding: 12px 12px 10px; }
  .rep header { flex-wrap: wrap; }
  .rep .facts { flex: 1 0 100%; justify-content: flex-start; padding-left: 42px; white-space: normal; }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .rep.whole .shots { grid-template-columns: minmax(0, 1fr); }
  .answer { flex-direction: column; align-items: stretch; }
  .answer textarea { font-size: 16px; }
  .under { flex-direction: column; gap: 14px; margin-top: 16px; }
  .key { flex-wrap: wrap; gap: 10px 16px; }
  .rules { flex: none; text-align: left; }
  .door { padding-top: 64px; align-content: start; }
}

/* ── On paper: the sheet and nothing else, for the payroll file ── */
/* ── The dashboard, a report and Export where there is less room across ── */
@media screen and (max-width: 1179px) {
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { gap: 16px; }
  .split > aside > .panel:first-child { margin-top: 0; }
  /* What needs someone's attention is read before the crew's long list. */
  .split.now > aside { order: -1; }
  .exporter { grid-template-columns: minmax(0, 1fr); }
  .exporter .what { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exporter .what legend { grid-column: 1 / -1; }
}
@media screen and (max-width: 760px) {
  .split { gap: 12px; }
  .lede { margin-top: -6px; }
  .quick, .exporter .what, .exporter .f-who, .opts.three { grid-template-columns: minmax(0, 1fr); }
  .exporter { gap: 20px; padding: 16px; }
  .exporter .dates { flex-wrap: wrap; }
  .exporter .btns .btn { flex: 1 1 100%; justify-content: center; }
  .hbars li > * { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .hbars.two li > * { grid-template-columns: minmax(0, 1fr) 72px 72px; }
  .hbars .track { grid-column: 1 / -1; grid-row: 2; height: 8px; }
  .scale, .stack { height: 132px; }
  .run { background: linear-gradient(var(--divider), var(--divider)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--divider), var(--divider)) 0 66px / 100% 1px no-repeat, linear-gradient(var(--border), var(--border)) 0 132px / 100% 1px no-repeat; }
  .tip { bottom: calc(100% - 124px); }
  .x small { display: none; }
  .photos.whole { grid-template-columns: minmax(0, 1fr); }
  .facts-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .docbar .grow { flex-basis: 100%; height: 0; }
  .doc { padding: 20px 16px; overflow-x: auto; }
  .doc-sign { grid-template-columns: 1fr 1fr; }
}

@media print {
  @page { size: letter landscape; margin: 12mm; }
  /* Reports are read down a page, as a letter is: notes, then the photos under them. */
  @page upright { size: letter portrait; margin: 12mm; }
  main.reports { page: upright; }
  body { background: #fff; font-size: 10.5px; }
  .side, .mtop, .actions, .bar, .check a, .tog { display: none !important; }
  body > main { margin: 0; padding: 0; max-width: none; }
  .head { margin-bottom: 8px; } h1 { font-size: 18px; }
  .paper { display: block; margin-top: 2px; font-size: 11px; color: var(--text); }
  .check { margin-bottom: 8px; padding: 6px 10px; }
  .sheet { border-radius: 0; border-color: #94A3B8; }
  th, td { height: 22px; padding: 0 8px; }
  thead th { position: static; height: 22px; border-radius: 0 !important; font-size: 9px; letter-spacing: 0.3px; }
  .dom { font-size: 11px; }
  .who, tbody th.who { height: 22px; padding-left: 8px; } .av { display: none; } tbody .nm { font-size: 11px; }
  tbody .row > * { border-top-color: #CBD5E1; }
  .open .row > .who, .detail td { box-shadow: none; }
  .shifts { padding: 0 8px 6px; font-size: 9px; }
  .week7 .shifts { padding: 0 0 6px; } .week7 .shifts .meta { padding-left: 8px; }
  .shifts .shift { padding: 2px 0; } .week7 .shifts .shift { padding: 0 8px 2px 0; }
  /* What was corrected goes on paper with the sheet; the way to correct it does not. */
  .shifts .fixit { display: none !important; } .log { margin-top: 2px; padding: 3px 6px; font-size: 8.5px; }
  .fixed svg { width: 8px; height: 8px; }
  tfoot th, tfoot td { height: 24px; border-radius: 0 !important; }
  tbody.p { break-inside: avoid; }
  td.tot, tfoot td:last-child { font-size: 11px; }
  .under { margin-top: 6px; font-size: 9px; } .key { gap: 12px; }
  .pager, .answer, .rep .open, .crumb, .reg .has { display: none !important; }
  .logday { margin-bottom: 12px; } .logday h2 { margin-bottom: 6px; font-size: 12px; break-after: avoid; }
  .rep { margin-bottom: 6px; padding: 8px 10px; break-inside: avoid; }
  .rep.whole { break-inside: auto; border: 0; padding: 0; }
  .notes { margin-top: 6px; font-size: 10.5px; } .photos { gap: 6px; margin-top: 8px; }
  .photos li { break-inside: avoid; } .photos .more { display: none; }
  .photos.whole img { max-height: 88mm; width: auto; max-width: 100%; }
  .chip, .tip, .docbar, .lede { display: none !important; }
  .feed .photos img { max-height: 22mm; }
  .scale, .stack { height: 40mm; }
  .run { background: none; border-bottom: 1px solid #94A3B8; }
  /* A document is its own sheet of paper: upright unless it is a wide one, with no frame around it. */
  main.export { page: upright; } main.export:has(.doc.wide) { page: auto; }
  .doc { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; font-size: 10px; }
  .doc-cover:not(:first-child) { margin-top: 0; padding-top: 0; border-top: 0; }
  .doc-table th, .doc-table td { height: auto; padding: 3px 8px 3px 0; }
  .doc-table thead th { height: auto; }
  .sums { gap: 8px; margin-bottom: 8px; } .spent, .sum { padding: 8px 10px; } .spent b { font-size: 18px; }
  .slip { padding: 2px 8px 8px; } .slip .shot { max-width: 60mm; }
  .reg tfoot th.who { height: 24px; } .sum li { padding: 3px 0; }
  main.home, main.team, main.sites, main.settings { page: upright; }
  .btn, .danger, .ok, main > .banner, .check.plan { display: none !important; }
  .tiles { gap: 8px; margin-bottom: 10px; } .tile { padding: 8px 10px; } .tile b { font-size: 16px; }
  .sec { margin: 12px 0 6px; font-size: 12px; break-after: avoid; }
  .panel { margin-bottom: 10px; padding: 10px 12px; break-inside: avoid; }
  .split { grid-template-columns: minmax(0, 1fr) 60mm; gap: 10px; }
  .split.dash { grid-template-columns: minmax(0, 1fr) 80mm; } .dash > div { gap: 8px; }
  .list tbody tr { break-inside: avoid; } .list tbody th { font-size: 11px; }
  /* The line under the title already says these on paper, and a link leads nowhere there. */
  main > .facts, .sub.line .ln { display: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
