/* Siteclok on a worker's phone. The Tool Case look Andy approved on 5 October 2026
   (docs/prototype/siteclok-prototype.html, "worker app"): charcoal case, orange tread band,
   chunky wide capitals, a big rubber-grip button, green to sign in and red to sign out.
   No web fonts: the page must open from the phone's own copy with no signal. */
:root {
  --bg: #1C2025; --surface: #272C33; --soft: #30363E; --ink: #F3F0EA; --muted: #A9AFB7; --line: #3A414A;
  --accent: #FF7A1A; --accent-ink: #1C2025;
  --in: #2BD46B; --in-ink: #0E1411; --out: #FF4A3D; --out-ink: #FFFFFF;
  --warn: #FFB21F; --warn-ink: #1C2025; --ok: #2BD46B; --ok-ink: #0E1411; --focus: #6AAEFF;
  --radius: 16px; --radius-lg: 22px;
  --head: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 7px 0 rgba(0, 0, 0, .55), inset 0 -5px 0 rgba(0, 0, 0, .22);
  --band: repeating-linear-gradient(45deg, #FF7A1A 0 10px, #E0620A 10px 20px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.3; min-height: 100svh; }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.band { height: 12px; background: var(--band); }
.app { max-width: 520px; margin: 0 auto; min-height: calc(100svh - 12px); display: flex; flex-direction: column; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 18px 8px; font-weight: 800;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, .045) 25%, transparent 25% 75%, rgba(255, 255, 255, .045) 75%), linear-gradient(-45deg, rgba(255, 255, 255, .045) 25%, transparent 25% 75%, rgba(255, 255, 255, .045) 75%);
  background-size: 12px 12px; }
.logo { font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-weight: 900; font-size: 1.1rem; }
.logo b { color: var(--accent); }
.sig { font-size: .85rem; padding: 4px 10px; border-radius: 999px; background: var(--soft); }
.sig.off { background: var(--warn); color: var(--warn-ink); }

.body { flex: 1; padding: 8px 18px 28px; display: flex; flex-direction: column; gap: 14px; }
.h { font-family: var(--head); text-transform: uppercase; letter-spacing: .03em; font-weight: 900; font-stretch: 125%; line-height: 1.05; margin: 0; text-wrap: balance; }
.h.small { font-size: 1.05rem; }
.greet { font-size: 1.9rem; }
.p { margin: 0; font-weight: 700; font-size: 1.1rem; }
.note { margin: 0; font-size: .9rem; color: var(--muted); font-weight: 700; }
.center { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.center .h { font-size: 1.8rem; }
.ic { width: 1.4em; height: 1.4em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.chip { align-self: flex-start; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--soft); font-weight: 800; font-size: .9rem; }
.status { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; }
.status .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); flex: none; }
.status.on .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(43, 212, 107, .35); }
.pending { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--warn); color: var(--warn-ink); font-weight: 800; border: 0; text-align: left; cursor: pointer; }
.alert { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--warn); color: var(--warn-ink); }
.alert .ic { width: 40px; height: 40px; }
.alert .h { font-size: 1.4rem; }

.tapcard { flex: 1 1 auto; min-height: 236px; max-height: 390px; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 18px; text-align: center; border-radius: var(--radius-lg); border: 3px dashed var(--accent); background: rgba(255, 122, 26, .1); }
.tap-t { font-size: 1.5rem; max-width: 15ch; }
.tap-sub { font-weight: 800; font-size: 1.1rem; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.tapart { width: 170px; height: 102px; overflow: visible; }
.tapart .tag { fill: var(--accent); }
.tapart .wave { stroke: var(--accent-ink); }
.tapart .phone { fill: var(--surface); stroke: var(--ink); }
.tapart .btn { stroke: var(--ink); }
.tapart .phonegroup { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(14px); } }

.btn { font-weight: 800; font-size: 1.15rem; min-height: 62px; padding: 0 24px; border-radius: var(--radius); border: 0; background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); cursor: pointer; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.btn.in { background: var(--in); color: var(--in-ink); }
.btn.plain { background: var(--surface); color: var(--ink); min-height: 56px; font-size: 1rem; }
.btn:active { transform: translateY(4px); box-shadow: none; }
.link { background: none; border: 0; color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; padding: 0; cursor: pointer; min-height: 44px; align-self: flex-start; }

.big { flex: 1 1 auto; min-height: 210px; max-height: 360px; border: 0; border-radius: var(--radius-lg); display: grid; place-content: center; justify-items: center; gap: 8px; cursor: pointer; box-shadow: var(--shadow); padding: 16px 40px; position: relative; }
.big.in { background: var(--in); color: var(--in-ink); }
.big.out { background: var(--out); color: var(--out-ink); }
.big:active { transform: translateY(5px); box-shadow: none; }
.big:disabled { opacity: .6; }
.big::before, .big::after { content: ""; position: absolute; top: 22px; bottom: 22px; width: 12px; border-radius: 6px; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .24) 0 4px, transparent 4px 10px); }
.big::before { left: 14px; }
.big::after { right: 14px; }
.big .ic { width: 66px; height: 66px; }
.big-label { font-size: 2.7rem; text-align: center; }
.big-sub { font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.field { display: grid; gap: 8px; font-weight: 800; }
.select { font-size: 1.05rem; font-weight: 800; width: 100%; min-height: 58px; padding: 0 12px; border-radius: var(--radius); border: 3px solid var(--accent); background: var(--surface); color: var(--ink); }

.receipt { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.tick { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: var(--ok-ink); box-shadow: var(--shadow); animation: pop .35s cubic-bezier(.2, 1.4, .4, 1) both; align-self: center; }
.receipt.out .tick { background: var(--out); color: var(--out-ink); }
.tick .ic { width: 78px; height: 78px; }
@keyframes pop { from { transform: scale(.6); } to { transform: scale(1); } }
.rc-t { font-size: 2.1rem; }
.rc-time { font-size: 3.6rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.rc-job { font-weight: 800; }
.sync { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); font-weight: 700; max-width: 340px; }
.sync.wait { background: var(--warn); color: var(--warn-ink); }
.sync.check { background: var(--soft); box-shadow: inset 4px 0 0 var(--warn); }

.week { display: grid; gap: 8px; }
.days { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.day { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 10px 12px; background: var(--surface); border-radius: var(--radius); }
.day .d { font-weight: 900; }
.day .t { font-weight: 800; font-variant-numeric: tabular-nums; }
.day .n { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); font-weight: 700; }
.day.wait { box-shadow: inset 4px 0 0 var(--warn); }
.day.check { box-shadow: inset 4px 0 0 var(--out); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* The forgotten clock-out question, and the job search */
.ask { display: grid; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 4px 0 0 var(--warn); }
.ask.done { box-shadow: inset 4px 0 0 var(--ok); }
.ask .choices { display: flex; gap: 8px; flex-wrap: wrap; }
.ask .btn.small { width: auto; min-height: 48px; padding: 0 18px; }
.results { display: grid; gap: 10px; }
input.select { padding: 0 14px; }
