@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url(/fonts/open-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url(/fonts/open-sans-600.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url(/fonts/open-sans-700.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url(/fonts/roboto-500.woff2) format("woff2"); }
:root {
  --bg: #f7f9fb; --card: #fff; --ink: #1f1f1f; --muted: #5c5c5c; --line: #e0e0e0;
  --brand: #e2000e; --brand-ink: #fff; --action: #1f1f1f; --action-ink: #fff; --go: #14733f; --stop: #e2000e; --tint: #f1f3f5;
  --ok: #14733f; --ok-bg: #e2f2e8; --warn: #8a5a00; --warn-bg: #fbf0d3; --fail: #b8000b; --fail-bg: #fde4e5; --todo: #5c5c5c; --todo-bg: #ececec;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616; --card: #1f1f1f; --ink: #f1f1f1; --muted: #ababab; --line: #3a3a3a;
    --brand: #ff5a63; --brand-ink: #1f1f1f; --action: #f1f1f1; --action-ink: #1f1f1f; --go: #1f9455; --stop: #e2000e; --tint: #2a2a2a;
    --ok: #6fd39b; --ok-bg: #173526; --warn: #eec261; --warn-bg: #3b2e10; --fail: #ff9a92; --fail-bg: #431c19; --todo: #ababab; --todo-bg: #2d2d2d;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 "Open Sans", system-ui, sans-serif; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
h1, h2, .timer, .hero .n { font-family: Roboto, "Open Sans", sans-serif; font-weight: 500; }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; line-height: 1.2; }
h2 { font-size: 1.15rem; margin: 0 0 .6rem; }
h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
p { margin: .4rem 0; }
a { color: var(--brand); }
.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 16px; background: #fff; color: #1f1f1f; border-bottom: 3px solid #e2000e; }
.top a { color: #1f1f1f; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; font-weight: 600; text-decoration: none; font-size: .95rem; }
.brand img { height: 36px; width: auto; display: block; }
.sync { font-size: .85rem; }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.muted { color: var(--muted); font-size: .92rem; }
.small { font-size: .85rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spread { justify-content: space-between; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.full { grid-column: 1 / -1; }
@media (max-width: 420px) { .grid.tight { grid-template-columns: 1fr; } }
label.f { display: block; font-weight: 600; font-size: .92rem; }
label.f small { display: block; font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--muted); border-radius: 8px; padding: 10px; margin-top: 4px; min-height: 46px; }
input[type=checkbox] { width: 24px; height: 24px; min-height: 0; margin: 0; flex: none; accent-color: var(--brand); }
label.c { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .95rem; min-height: 44px; }
textarea { min-height: 80px; }
button, .btn { font: inherit; font-weight: 600; border: 1px solid var(--muted); background: transparent; color: var(--ink); border-radius: 8px; padding: 10px 14px; min-height: 46px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button:disabled { opacity: .5; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.danger { color: var(--fail); border-color: var(--fail); }
.big { display: flex; width: 100%; min-height: 76px; font-size: 1.3rem; font-weight: 800; margin: 10px 0; color: #fff; border: 0; touch-action: manipulation; }
.big.go { background: var(--go); }
.big.stop { background: var(--stop); }
.big.fill { background: var(--action); color: var(--action-ink); }
.timer { font-size: clamp(3rem, 18vw, 4.6rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; text-align: center; margin: 6px 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; text-align: center; }
.stats div { background: var(--tint); border-radius: 8px; padding: 8px; }
.stats b { display: block; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.stats span { font-size: .8rem; color: var(--muted); }
.pips { display: flex; gap: 6px; align-items: center; }
.pip { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); }
.pip.on { background: var(--ok); border-color: var(--ok); }
.pip.now { border-color: var(--brand); background: var(--tint); }
.log { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: .82rem; }
th, td { padding: 7px 6px 7px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
td.a { text-align: right; white-space: nowrap; }
td.a button { min-height: 36px; padding: 4px 9px; font-size: .85rem; }
.void td { color: var(--muted); text-decoration: line-through; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.s-ok { color: var(--ok); background: var(--ok-bg); } .s-warn { color: var(--warn); background: var(--warn-bg); }
.s-fail { color: var(--fail); background: var(--fail-bg); } .s-todo { color: var(--todo); background: var(--todo-bg); }
.banner { border-radius: 8px; padding: 10px 12px; margin: 10px 0; font-size: .95rem; }
.hero { text-align: center; padding: 8px 0; }
.hero .n { font-size: 3.4rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.check { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.check p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .86rem; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photos figure { margin: 0; } .photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; background: var(--todo-bg); display: block; }
.photos figcaption { font-size: .82rem; color: var(--muted); }
.file { position: relative; overflow: hidden; }
.file input { position: absolute; inset: 0; opacity: 0; margin: 0; min-height: 0; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(6, 1fr); background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { text-align: center; padding: 16px 0 14px; font-size: .84rem; font-weight: 600; color: var(--muted); text-decoration: none; border-top: 3px solid transparent; }
.tabs a[aria-current=page] { color: var(--brand); border-top-color: var(--brand); }
.toast { position: fixed; left: 16px; right: 16px; top: calc(52px + env(safe-area-inset-top)); z-index: 6; max-width: 500px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.toast[hidden] { display: none; }
.toast button { color: inherit; border-color: currentColor; min-height: 38px; padding: 4px 12px; }
dialog { border: 0; border-radius: 12px; padding: 18px; width: min(440px, calc(100vw - 32px)); background: var(--card); color: var(--ink); }
dialog::backdrop { background: rgb(0 0 0 / .55); }
.chart { display: block; width: 100%; height: auto; color: var(--brand); }
.chart text { font-size: 11px; fill: var(--muted); }
.chart .grid-l { stroke: var(--line); }
.list a { display: block; color: inherit; text-decoration: none; }
.report h1 { margin-bottom: .1rem; }
.report dl { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 3px 12px; margin: 0; font-size: .93rem; }
.report dt { color: var(--muted); } .report dd { margin: 0; overflow-wrap: anywhere; }
.sign { margin-top: 24px; display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.sign div { border-top: 1px solid var(--ink); padding-top: 4px; font-size: .85rem; margin-top: 34px; }
@media print {
  :root { --bg: #fff; --card: #fff; --ink: #000; --muted: #333; --line: #bbb; }
  body { padding: 0; font-size: 11pt; background: #fff; }
  .top, .tabs, .toast, .noprint { display: none !important; }
  main { max-width: none; padding: 0; }
  .card { border: 0; padding: 0; margin-bottom: 14pt; break-inside: avoid; }
  .badge { border: 1px solid #000; }
}
.tabs[hidden] { display: none; }
.auth { max-width: 420px; margin: 8px auto 0; text-align: center; }
.auth form { text-align: left; margin-top: 16px; }
.auth form > button[data-act] { width: 100%; }
.auth-logo { width: 220px; max-width: 70%; height: auto; display: block; margin: 0 auto 12px; border-radius: 6px; }
.rhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 3px solid #e2000e; }
.rhead img { height: 54px; width: auto; }
.rhead div { text-align: right; }
.tabs a[aria-current=page] { color: var(--brand); border-top-color: var(--brand); }
