/*
 * CivFlo Time, the worker phone (PHONE-REDESIGN gate 3, docs/design/worker-phone-redesign.md "The look"): one small set of tokens.
 * Deep spruce and sage from one family, paper grey behind, brass only for the office, brick only on "Remove this phone".
 * System fonts only. 54 px buttons, 44 px chips.
 */
:root {
  --paper: #f2f4f1;
  --card: #ffffff;
  --ink: #14211e;
  --ink-2: #4e5d58;
  --ink-3: #5f6b66;
  --line: #e0e5e1;
  --line-strong: #c9d2cd;
  --deep: #17463f;
  --sage: #dce8e3;
  --sage-2: #edf3f0;
  --brass-bg: #f2ecdd;
  --brass: #6a5626;
  --brass-dot: #b0975a;
  --brick: #93392f;
  --brick-line: #d9b8b3;
  --radius-card: 20px;
  --radius-field: 14px;
  --radius-button: 16px;
  /* Older names, kept so a rule written before the tokens still reads the new colours. */
  --page: var(--paper);
  --teal: var(--deep);
  --red: var(--brick);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
main {
  max-width: 480px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px calc(env(safe-area-inset-bottom, 0px) + 32px);
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* While the bar along the bottom shows, the page's end clears it. */
html[data-shell="screen-today"] main, html[data-shell="screen-account"] main { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); }

/* The three places (PHONE-REDESIGN gate 4): Today, My week, Account, always in the same spot. */
.tabs { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; max-width: 480px; margin: 0 auto; padding: 6px 12px calc(env(safe-area-inset-bottom, 0px) + 8px); border-top: 1px solid var(--line); background: var(--card); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 56px; margin: 0; padding: 6px 4px 4px; border-radius: 12px; background: none; color: var(--ink-3); font-size: 12.5px; font-weight: 650; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab svg .f { fill: currentColor; stroke: none; }
.tab[aria-current="page"] { color: var(--deep); }
.tab-dot { position: absolute; top: 4px; left: calc(50% + 8px); width: 9px; height: 9px; border: 2px solid var(--card); border-radius: 50%; background: var(--brass-dot); box-sizing: content-box; }

/* The header: the CivFlo mark and wordmark, top left of every screen; who's signed in, top right. */
.hd { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 14px; }
.hd-title { margin: 0; line-height: 0; }
.hd-logo { display: block; height: 25px; width: auto; }
.hd-me { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; margin: 0 0 0 auto; line-height: 1.15; text-align: right; }
.hd-me b { overflow-wrap: anywhere; color: var(--ink); font-size: 15px; font-weight: 700; }
.hd-me span { overflow-wrap: anywhere; color: var(--ink-2); font-size: 12.5px; }

h1 { margin: 0 0 16px; font-size: 22px; }
p { margin: 0 0 12px; color: var(--ink-2); }
label { display: block; margin-bottom: 8px; color: var(--ink); font-weight: 600; }
input[type="text"] {
  width: 100%;
  min-height: 56px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-field);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--deep); outline-offset: 1px; border-color: var(--deep); }
button {
  width: 100%;
  min-height: 54px;
  margin-top: 12px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-button);
  background: var(--deep);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
}
button:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
button:disabled { opacity: 0.45; }
button.quiet { margin-top: 0; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.who { color: var(--ink); font-size: 20px; font-weight: 700; }
.note { padding: 12px 14px; border-radius: var(--radius-field); background: var(--sage); color: var(--ink); }
.note p { color: var(--ink); }
.note > :last-child { margin-bottom: 0; }
.error { margin-top: 12px; color: var(--brick); }
.or { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
.tick { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; }
.tick input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--deep); }
a { color: var(--deep); font-weight: 600; }
h2 { margin: 20px 0 6px; color: var(--ink); font-size: 17px; }
ul { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); }
li { margin-bottom: 6px; }
.small { font-size: 13.5px; }
.row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.row p { margin: 0; }
.row .on { color: var(--ink); font-weight: 600; }
button.danger { border-color: var(--brick-line); background: transparent; color: var(--brick); }
button.quiet + button.quiet { margin-top: 8px; }
/* The week strip (PHONE-REDESIGN gate 5): seven days, each with its hours; brass where the office has something on it. */
.strip { display: grid; grid-template-columns: 18px repeat(7, minmax(0, 1fr)) 18px; gap: 4px; align-items: stretch; margin-bottom: 14px; }
.strip-arrow { width: 18px; min-height: 56px; margin: 0; padding: 0; border-radius: 8px; background: none; color: var(--ink-2); font-size: 22px; font-weight: 400; }
.strip-arrow:disabled { opacity: 0; }
.strip .day { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; min-height: 56px; margin: 0; padding: 7px 0 6px; border: 1.5px solid transparent; border-radius: 14px; background: var(--card); color: var(--ink); font-weight: 400; }
.strip .day:disabled { opacity: 1; }
.strip .day i { color: var(--ink-2); font-size: 11.5px; font-style: normal; font-weight: 600; }
.strip .day b { font-size: 18px; font-weight: 700; line-height: 1.1; }
.strip .day u { overflow: hidden; max-width: 100%; color: var(--ink-2); font-size: 12px; font-weight: 650; text-decoration: none; text-overflow: clip; white-space: nowrap; font-variant-numeric: tabular-nums; }
.strip .day.approved { background: var(--sage); }
.strip .day.approved u { color: var(--deep); }
.strip .day.sent, .strip .day.waiting { border-color: var(--sage); }
.strip .day.office { background: var(--brass-bg); }
.strip .day.office u { color: var(--brass); }
.strip .day.nothing { border: 1.5px dashed var(--line-strong); background: transparent; }
.strip .day.later, .strip .day.closed { background: transparent; }
.strip .day.later i, .strip .day.later b, .strip .day.closed i, .strip .day.closed b { color: var(--ink-3); }
.strip .day.sel { border-color: var(--deep); background: var(--deep); }
.strip .day.sel i, .strip .day.sel b, .strip .day.sel u { color: #fff; }
/* TS-6a: the Today screen. Large whole-field targets, because a native time picker opens from the whole box. */
button.link { width: auto; min-height: 44px; margin: 0; padding: 0 4px; border: 0; background: none; color: var(--deep); font-size: 15.5px; font-weight: 650; text-align: left; }
#compact-rest > button.link, #second-job > button.link, #detail-rest > button.link { display: block; }
input[type="date"], input[type="time"], input[type="number"], input[type="search"], input:not([type]), select {
  width: 100%;
  min-height: 52px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-field);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
}
#day-form label, #day-form .label { margin-top: 14px; }
.label { margin-bottom: 8px; color: var(--ink); font-weight: 600; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pair label { margin-top: 14px; }
fieldset { margin: 14px 0 0; padding: 0; border: 0; }
legend { margin-bottom: 8px; padding: 0; color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip:has(input:checked) { border-color: var(--deep); background: var(--deep); color: #fff; }
.chip:has(input:focus-visible) { outline: 2px solid var(--deep); outline-offset: 2px; }
/* The night the clocks go back (TS5-GO-LIVE): which one, full width under its times, as two stacked choices. */
.twice { margin-top: 8px; }
.twice .chips { flex-direction: column; margin: 6px 0 10px; }
.twice .chip { justify-content: flex-start; width: 100%; padding: 10px 14px; }
#second-job { margin-top: 14px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-card); background: var(--card); }
.summary { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-card); background: var(--card); color: var(--ink); font-weight: 650; }
#day-why { margin: 8px 0 0; }
/* Outside the entry, which hides once the day is sent: the answer has to stay readable after that. */
#day-sent, #day-result { margin-top: 12px; }
/* TS-6b: the date under Start and Finish, so a next-day finish is never a surprise. */
.date { margin: 0 0 6px; }
#day-form label.tick { margin-top: 12px; }
#day-next-note { margin: 6px 0 0; }
/* TS-6b: the detailed day. One card per row, its from and to side by side, so 360 px holds it. */
.row-card { margin-top: 10px; padding: 14px; border-radius: var(--radius-card); background: var(--card); }
.row-card label { margin-top: 10px; }
.row-card label:first-child { margin-top: 0; }
.row-card button.link { margin-top: 4px; color: var(--brick); }
#detail-rest > p.label { margin-top: 18px; margin-bottom: 0; }
#detail-rest button.quiet { margin-top: 10px; }
/* TS-6c: My week. Each day a full-width row; one that can be opened is a button with the same look. */
.week-switch { display: flex; gap: 16px; margin-bottom: 8px; }
.week-switch button[aria-current="true"] { color: var(--ink); text-decoration: underline; }
.week-total { margin-bottom: 12px; padding: 14px 16px; border-radius: var(--radius-card); background: var(--card); }
.week-total p { margin: 0; }
#week-days { padding: 2px 14px; border-radius: var(--radius-card); background: var(--card); }
.week-row { display: block; width: 100%; min-height: 48px; margin: 0; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: var(--ink); font: inherit; font-weight: 400; text-align: left; }
.week-row:last-child { border-bottom: 0; }
.week-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 650; }
.week-next { display: block; margin-top: 2px; color: var(--ink-2); font-weight: 400; }
#week-view > p.small:last-child { margin-top: 12px; }

/* The clock (TS-8b1). Same card and button language as the day's form. */
#clock { margin-bottom: 16px; }
#clock-off > p.small { margin-top: 8px; }
.clock-card { padding: 16px; border-radius: var(--radius-card); background: var(--card); }
.clock-total { margin: 4px 0 2px; color: var(--ink); font-size: 32px; font-weight: 750; font-variant-numeric: tabular-nums; }
#clock-breaks button { margin-top: 8px; }
#clock-picker label { display: block; margin-top: 12px; }
#picker-results { margin-top: 8px; }
button.job-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 8px; padding: 12px 14px; border: 0; background: var(--sage-2); color: var(--ink); text-align: left; font-weight: 650; }
button.job-row .small { color: var(--ink-2); font-weight: 400; }
#clock-done p { margin: 0; }
/* Putting a forgotten clock right (TS-8c). */
#clock-off > button.link, #clock-running > button.link { display: block; margin-top: 8px; }
#clock-start label, #clock-finish label { margin-top: 12px; }
#clock-start h2, #clock-finish h2 { margin-top: 8px; }
/* From your office (TS-10b2): brass, and only for the office. Its own words set apart from ours. */
#office { margin-bottom: 16px; }
#office > .label { color: var(--brass); }
#office .row-card { margin-top: 8px; background: var(--brass-bg); }
#office .row-card p { margin-bottom: 8px; color: var(--ink); }
#office .row-card > .label { color: var(--brass); }
#office .row-card > :last-child { margin-bottom: 0; }
.quote { padding: 10px 12px; border-radius: 12px; background: var(--card); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
textarea { display: block; width: 100%; min-height: 96px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-field); background: var(--card); color: var(--ink); font: inherit; resize: vertical; }
#office label { margin-top: 4px; font-size: 14px; }
#day-resend { margin-top: 0; margin-bottom: 12px; }
/* A received day's own presses (TS-10b3): change it, take a change back, challenge the office's change. */
#day-takeback, #challenge-open { margin-top: 0; margin-bottom: 12px; }
#challenge-box { margin-bottom: 16px; }
#challenge-box label { margin-top: 0; font-size: 14px; }
#challenge-box button.link { display: block; margin-top: 8px; }

/* Today's card (PHONE-REDESIGN gate 6): one card for one day, its state in the corner, the hours the largest thing on it. */
.card { position: relative; display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; padding: 16px; overflow: hidden; border-radius: 22px; background: var(--card); }
.card > * { margin-top: 0; margin-bottom: 0; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.eyebrow { color: var(--ink-2); font-size: 12.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.pill { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--sage-2); color: var(--ink-2); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.pill.dashed { border: 1.4px dashed #aebab5; background: transparent; }
.pill.brass { background: var(--brass-bg); color: var(--brass); }
.pill.ok { background: var(--sage); color: var(--deep); }
#day-form .card label { margin-top: 0; }
.job-field select { min-height: 56px; border-color: transparent; background-color: var(--sage-2); font-size: 15.5px; font-weight: 650; text-overflow: ellipsis; }
.job-field label { margin-bottom: 6px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.tiles { gap: 8px; }
.tile { display: flex; flex-direction: column; min-width: 0; padding: 8px 10px 10px; border: 1.5px solid var(--line); border-radius: 14px; }
.tile:focus-within { border-color: var(--deep); box-shadow: 0 0 0 1.5px var(--deep); }
#day-form .tile label { margin: 0; color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.tile .date { margin: 0; color: var(--ink-3); font-size: 12px; }
.tile input[type="time"] { width: 100%; min-width: 0; min-height: 36px; padding: 0; border: 0; background: transparent; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile input[type="time"]:focus-visible { outline: none; }
#break-set legend { color: var(--ink-2); font-size: 13.5px; }
.break-chips { display: grid; grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr)) 1.3fr; gap: 6px; }
.break-chips .chip { min-width: 0; padding: 0 4px; font-size: 15px; white-space: nowrap; }
.sum { display: flex; align-items: center; gap: 14px; padding-top: 2px; }
.sum .big { flex: none; color: var(--ink); font-size: 56px; font-weight: 780; line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sum span:last-child { min-width: 0; color: var(--ink-2); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.rowlink { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 54px; margin: 0; padding: 12px 12px 12px 16px; border: 0; border-radius: 16px; background: var(--sage-2); color: var(--ink); font-size: 16px; font-weight: 700; text-align: left; }
.rowlink > span:first-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.rowlink em { color: var(--ink-2); font-size: 13px; font-style: normal; font-weight: 400; }
.chev { flex: none; color: var(--ink-3); font-size: 22px; font-weight: 400; }
.card #more-open { margin-top: 2px; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding-left: 0; padding-right: 0; }
.under { margin: 0 6px 10px; color: var(--ink-2); }
button.send { min-height: 60px; font-size: 18px; }
/* The More sheet: from the bottom, over a dimmed page. */
.sheet-wrap { position: fixed; z-index: 20; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(16, 22, 20, 0.36); }
.sheet { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 480px; padding: 18px 16px calc(env(safe-area-inset-bottom, 0px) + 18px); border-radius: 22px 22px 0 0; background: var(--paper); }
.sheet h2 { margin: 0 0 4px; font-size: 20px; }
.sheet .rowlink { background: var(--card); }
.sheet button.quiet { margin-top: 6px; }
.toggle { cursor: pointer; }
.toggle input { flex: none; appearance: none; -webkit-appearance: none; position: relative; width: 52px; height: 32px; margin: 0; border-radius: 999px; background: var(--line-strong); transition: background 0.15s; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.toggle input:checked { background: var(--deep); }
.toggle input:checked::after { transform: translateX(20px); }
.toggle input:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }

/* A sent or waiting day (PHONE-REDESIGN gate 7): its facts kept, the three steps under them; the logo's rings, faintly, on a sent one. */
.sent-card.done { background: var(--sage); }
.rings { position: absolute; top: -70px; right: -70px; width: 260px; height: 260px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 13px, rgba(23, 70, 63, 0.11) 13px 14.5px); pointer-events: none; }
.sent-card:not(.done) .rings { display: none; }
.sent-card > :not(.rings) { position: relative; }
.sum.solo { align-items: baseline; gap: 10px; }
.sent-w { color: var(--deep); font-size: 26px; font-weight: 700; }
.sent-card:not(.done) .sent-w { color: var(--ink-2); }
.line { margin: 0 0 2px; color: var(--ink); font-size: 15px; line-height: 1.4; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 4px 0 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 22px 8px 0 0; color: var(--ink-2); font-size: 13px; font-weight: 650; line-height: 1.25; }
.steps li::before { content: ""; position: absolute; top: 2px; left: 0; z-index: 1; width: 12px; height: 12px; border: 2px solid var(--ink-3); border-radius: 50%; background: var(--card); }
.steps li::after { content: ""; position: absolute; top: 9px; left: 16px; right: 0; height: 2px; background: var(--line-strong); }
.steps li:last-child::after { display: none; }
.steps li.done::before { border-color: var(--deep); background: var(--deep); }
.steps li.done::after { background: var(--deep); }
.steps li.now { color: var(--ink); }
.steps li.now::before { border-color: var(--deep); box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 8px var(--deep); }
.next { margin: 0; color: var(--ink); font-size: 15px; font-weight: 700; }
#day-change { margin-bottom: 12px; background: var(--card); }

/* The clock in today's card (PHONE-REDESIGN gate 8). */
.state { margin: 0; color: var(--ink); font-size: 24px; font-weight: 750; line-height: 1.15; }
.fine { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }
button.link.inline { display: inline; min-height: 0; padding: 0; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
button.link.back { align-self: flex-start; min-height: 36px; margin: -4px 0 -4px -4px; }
.card > button { margin-top: 0; }
#clock-off .fine { margin-top: 2px; }
.tile-one input[type="time"] { width: 100%; min-height: 36px; padding: 0; border: 0; background: transparent; font-size: 22px; font-weight: 700; }
.rowlink.flat { padding: 4px 0; background: transparent; border-radius: 0; }
.rowlink.flat b { font-size: 16px; }
.card.run { background: var(--deep); color: #fff; }
.card.run .eyebrow { color: #bfd3cc; }
.card.run .big, .card.run .line { color: #fff; }
.card.run .sent-w { color: #cfe0da; font-size: 19px; }
.card.run .rings { display: block; background: repeating-radial-gradient(circle, transparent 0 13px, rgba(255, 255, 255, 0.09) 13px 14.5px); }
.card.run.brk { border: 1.5px solid var(--brass-dot); background: var(--card); color: var(--ink); }
.card.run.brk .eyebrow { color: var(--ink-2); }
.card.run.brk .big, .card.run.brk .line { color: var(--ink); }
.card.run.brk .sent-w { color: var(--brass); }
.card.run.brk .rings { display: none; }
.pill.live { background: rgba(255, 255, 255, 0.14); color: #fff; }
.card.run.brk .pill.live { background: var(--brass-bg); color: var(--brass); }
.fine.on-dark { color: #cfe0da; }
.card.run.brk .fine.on-dark { color: var(--ink-2); }
#clock-actions { margin-bottom: 12px; }
#clock-actions > button { margin-top: 10px; }
#clock-actions > button.link { display: block; margin-top: 4px; }
.pair-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.pair-buttons button { margin-top: 0; font-size: 15.5px; }
#clock-picker .job-row { min-height: 60px; }
#picker-missing { justify-content: flex-start; font-size: 15.5px; }

/* Office messages in their day (PHONE-REDESIGN gate 9): one brass line on Today for each other day, opening it. */
#office-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ban { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; margin: 0; padding: 10px 14px; border: 0; border-radius: 14px; background: var(--brass-bg); color: var(--brass); font-weight: 400; text-align: left; }
.ban > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ban-head { margin: 0; color: var(--brass); font-size: 15px; font-weight: 700; }
.ban-sub { margin: 0; color: var(--brass); font-size: 13px; }
.ban-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--brass-dot); }
#office .said { margin: 0 0 4px; color: var(--brass); font-size: 12.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
#office .pair-buttons { margin-top: 4px; }
#office .pair-buttons button { margin-top: 0; }

/* "You sent" above "Now" (PHONE-REDESIGN gate 10): the worker's own version kept beside the office's. */
.compare { display: flex; flex-direction: column; overflow: hidden; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); }
.vs { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 12px; }
.vs + .vs { border-top: 1px solid var(--line); background: var(--sage-2); }
.vs p { margin: 0; }
.vs-label { color: var(--ink-2); font-size: 12.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.vs-times { color: var(--ink); font-size: 14px; }
.vs b { color: var(--ink); font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs.was b { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 2px; }

/* My week (PHONE-REDESIGN gate 11): the total large, each day with its step, the pay hours card, RDOs a row that opens a sheet. */
.week-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 10px; }
.week-head .title { margin: 0; font-size: 28px; font-weight: 750; }
.seg { display: flex; flex: none; padding: 3px; border-radius: 999px; background: var(--line); }
.seg button { width: auto; min-height: 40px; margin: 0; padding: 0 12px; border-radius: 999px; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 650; }
.seg button[aria-current="true"] { background: var(--card); color: var(--ink); }
.tot { display: flex; align-items: flex-end; gap: 12px; padding: 2px 6px 0; }
.tot .big { font-size: 56px; font-weight: 780; line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tot-words { display: flex; flex-direction: column; padding-bottom: 4px; color: var(--ink-2); font-size: 14px; line-height: 1.3; }
.fine.pad { margin: 8px 6px 12px; }
#week-rdos { margin-bottom: 12px; }
#week-rdos #rdo-open { background: var(--card); }
.wlist { margin-bottom: 12px; padding: 2px 14px; border-radius: var(--radius-card); background: var(--card); }
.week-row .week-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; font-weight: 400; }
.week-day { color: var(--ink); font-weight: 700; white-space: nowrap; }
.week-where { display: flex; align-items: center; gap: 8px; min-width: 0; }
.week-dots { display: inline-flex; flex: none; gap: 3px; }
.week-dots i { width: 8px; height: 8px; border: 1.5px solid var(--deep); border-radius: 50%; }
.week-dots i.on { background: var(--deep); }
.week-dots i.brass { border-color: var(--brass-dot); background: var(--brass-dot); }
.week-row .week-next { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.25; }
.week-row.step-office .week-next { color: var(--brass); font-weight: 650; }
.week-hours { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.week-finishes { display: block; margin: 2px 0 0; color: var(--ink-2); }
.card.pay .who { font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); }
.card.pay p { margin: 0; color: var(--ink); }
.pay-row { display: flex; justify-content: space-between; gap: 10px; font-size: 15.5px; }
.pay-row span { color: var(--ink-2); }
.pay-row b { font-variant-numeric: tabular-nums; }
.card.pay .small, .card.pay .fine { color: var(--ink-2); }
#week-pay-figures { display: flex; flex-direction: column; gap: 7px; }

/* Set-up, sign-in, Account and the notice (PHONE-REDESIGN gate 12): the logo first, large on the set-up screens. */
.hd-time { display: none; }
html[data-shell="screen-code"] .hd, html[data-shell="screen-loading"] .hd { justify-content: center; margin: 22px 0 22px; }
html[data-shell="screen-code"] .hd-title, html[data-shell="screen-loading"] .hd-title { display: flex; flex-direction: column; align-items: center; gap: 6px; }
html[data-shell="screen-code"] .hd-logo, html[data-shell="screen-loading"] .hd-logo { height: 42px; }
html[data-shell="screen-code"] .hd-time, html[data-shell="screen-loading"] .hd-time { display: block; color: var(--ink-2); font-size: 13px; font-weight: 700; letter-spacing: 0.22em; line-height: 1; text-transform: uppercase; }
#screen-loading { text-align: center; }
.setup { display: flex; flex-direction: column; gap: 14px; }
.setup > * { margin-top: 0; margin-bottom: 0; }
.state.sm { font-size: 19px; }
#code-form label { margin: 0; }
#code { min-height: 60px; font-size: 26px; font-weight: 700; letter-spacing: 0.14em; }
#code-form .error { margin: 0; }
.note.brass { background: var(--brass-bg); color: var(--brass); }
.note.brass p { color: var(--brass); }
#signin-waiting { font-weight: 650; }
.setup .or { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; padding-top: 0; border-top: 0; }
.setup .or > * { margin: 0; }
.setup .or .under { text-align: center; }
#screen-code.waiting .or { order: -1; }
#screen-code.waiting #sign-in { border: 0; background: var(--deep); color: #fff; }
#screen-code.waiting #code-go { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
#screen-confirm .eyebrow { margin-top: 4px; }
.notice-card #confirm-acknowledgement p { margin: 0 0 10px; color: var(--ink); font-size: 15px; }
.notice-card a.rowlink { border-top: 1px solid var(--line); padding-top: 12px; text-decoration: none; color: var(--ink); }
.big-tick { min-height: 48px; font-size: 17px; }
.big-tick input { width: 26px; height: 26px; }
#screen-account .title { margin: 4px 0 2px; font-size: 28px; font-weight: 750; }
.account-line { margin: 0 0 14px; }
#screen-account .card .eyebrow { margin: 0; }
#screen-account .card .row { padding: 10px 12px; border: 1.5px solid var(--line); border-bottom-width: 1.5px; border-radius: 14px; }
#screen-account .card .row + .row { margin-top: 8px; }
#screen-account .card a.rowlink { border-top: 1px solid var(--line); padding-top: 12px; text-decoration: none; color: var(--ink); }
#account-sign-out { margin: 0 0 12px; }
.remove-card { border: 1.5px solid var(--line); background: transparent; }
.remove-card button { margin: 0; }
/* The full notice page: the same paper and type, one readable column. */
main.notice { padding-top: calc(env(safe-area-inset-top, 0px) + 22px); }
.notice-logo { margin: 0 0 18px; }
.notice-logo img { display: block; height: 32px; width: auto; }
main.notice h1 { font-size: 24px; line-height: 1.2; }
main.notice h2 { margin-top: 22px; font-size: 18px; }
main.notice p, main.notice li { color: var(--ink); font-size: 15.5px; line-height: 1.55; }
#removed-held { background: var(--brass-bg); color: var(--brass); } #removed-held p { color: var(--brass); }

/* Quiet states (PHONE-REDESIGN gate 13): not started, setting up, paused, frozen, starts later, no jobs, as Today's one card. */
#today-message.state-card { margin-bottom: 12px; padding: 20px 18px; border-radius: 22px; background: var(--card); color: var(--ink); font-size: 17px; font-weight: 650; line-height: 1.4; }
#today-message { margin-bottom: 12px; }
#today-queue { margin: 0 6px 10px; }
/* Gate 13, measured at 360 px: every press at least 44 px tall; the strip's arrows reach into the margin beside them. */
.seg button { min-height: 44px; }
.tile input[type="time"] { min-height: 44px; }
.strip-arrow { position: relative; }
.strip-arrow::before { content: ""; position: absolute; top: 0; bottom: 0; left: -14px; right: -4px; }
.strip-arrow + .day { position: relative; }
