/* PickleHours, dressed in the friedpicklegames.com system (FPG Design Brief, Oct 2026):
   pickle-black ground, bone text on an opacity ladder, Bebas Neue for anything that shouts,
   DM Sans for sentences, square buttons, olive doing the quiet work, mustard as the house accent,
   coloured glows instead of grey shadows, film grain over the dark. */

:root {
  --ground: #0d0c07;
  --raised: #141209;
  --sunken: #0e0c08;
  --floating: rgba(12, 14, 10, 0.98);
  --bone: #e7e8e6;
  --bone-88: rgba(231, 232, 230, 0.88);
  --bone-82: rgba(231, 232, 230, 0.82);
  --bone-body: rgba(231, 232, 230, 0.68);
  --bone-quiet: rgba(231, 232, 230, 0.48);
  --bone-fine: rgba(231, 232, 230, 0.28);
  --olive: #999965;
  --line: rgba(153, 153, 101, 0.12);
  --line-mid: rgba(153, 153, 101, 0.18);
  --line-strong: rgba(153, 153, 101, 0.28);
  --label: rgba(153, 153, 101, 0.7);
  --mustard: #ede090;
  --mustard-light: #f5eba8;
  --on-mustard: #2a2220;
  --glow-mustard: 0 2px 14px rgba(237, 224, 144, 0.22);
  --glow-mustard-hot: 0 4px 22px rgba(237, 224, 144, 0.45);
  --sage: #8bc98b;
  --sage-light: #a8daa8;
  --rose: #d9a39a;
  --rose-tint: rgba(217, 163, 154, 0.09);
  --danger: #e8897c;
  /* chart series (validated: CVD + normal-vision separation on #141209) */
  --dill: #8bc98b;
  --nonbill: #6e6e4c;
  --focus: #ede090;
  --display: "Bebas Neue", Impact, "Arial Narrow Bold", sans-serif;
  --text: "DM Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--bone);
  font: 400 16px/1.6 var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
/* film grain, like the site */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--mustard); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--raised); padding: 8px 12px; z-index: 150; }
.loading { color: var(--bone-quiet); padding: 48px 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 12, 7, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-mid);
}
.top-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 32px; height: 76px;
  display: flex; align-items: center; gap: 22px;
}
.mark {
  font-family: var(--display); font-weight: 400; font-size: 25px; letter-spacing: 0.09em;
  color: var(--bone); text-decoration: none; display: flex; align-items: center; gap: 12px; text-transform: uppercase;
  line-height: 1;
}
.mark img {
  width: 46px; height: 46px; border-radius: 50%; background: #fff; object-fit: cover;
  box-shadow: 0 0 0 2px rgba(231, 232, 230, 0.08);
}
.envs { display: inline-flex; border: 1px solid var(--line-strong); }
.envs button {
  border: 0; background: transparent; padding: 6px 12px 4px; cursor: pointer;
  font-family: var(--display); font-size: 16px; letter-spacing: 0.12em; color: var(--bone-82); line-height: 1;
}
.envs button:hover { color: var(--bone); background: var(--line); }
.envs button[aria-pressed="true"] { background: var(--mustard); color: var(--on-mustard); }
.env-name { font-size: 13px; color: var(--bone-quiet); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--bone-82); padding: 8px 12px 6px;
  font-family: var(--display); font-size: 17px; letter-spacing: 0.13em; line-height: 1;
  border-bottom: 2px solid transparent; transition: color 160ms;
}
.nav a:hover { color: var(--bone); }
.nav a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--mustard); }
.nav .ico { display: none; }

main { max-width: 1100px; margin: 0 auto; padding: 40px 32px 120px; outline: none; position: relative; }
main:focus, main:focus-visible { outline: none; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 0.95; }
.page-title { font-size: clamp(48px, 7vw, 76px); letter-spacing: -0.005em; margin-bottom: 10px; }
.page-sub { color: var(--bone-body); margin: 0 0 32px; max-width: 58ch; font-size: 16px; }
h2.section { font-size: 34px; letter-spacing: 0.04em; margin: 52px 0 18px; }
.eyebrow, .field > span, .stat .k, .day-head h3 {
  font-family: var(--display); font-size: 13px; letter-spacing: 0.2em; color: var(--label); font-weight: 400;
}

/* ---------- buttons: square, Bebas, glow ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(231, 232, 230, 0.28); background: transparent; color: var(--bone);
  padding: 13px 22px 11px; border-radius: 0; cursor: pointer;
  font-family: var(--display); font-size: 18px; letter-spacing: 0.1em; line-height: 1;
  text-decoration: none; min-height: 46px;
  transition: transform 220ms var(--ease), box-shadow 220ms, background-color 160ms, border-color 160ms, color 160ms;
}
.btn:hover { border-color: var(--bone); transform: translateY(-1px); }
.btn.primary { background: var(--mustard); border-color: var(--mustard); color: var(--on-mustard); box-shadow: var(--glow-mustard); }
.btn.primary:hover { background: var(--mustard-light); box-shadow: var(--glow-mustard-hot); transform: translateY(-2px); }
.btn.quiet { border-color: transparent; color: var(--bone-body); }
.btn.quiet:hover { color: var(--bone); background: var(--line); transform: none; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { color: #f4a397; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.small { padding: 8px 12px 6px; min-height: 34px; font-size: 15px; }
.linkish {
  background: none; border: 0; padding: 0; color: var(--mustard); cursor: pointer;
  font-family: var(--display); font-size: 17px; letter-spacing: 0.12em; line-height: 1;
  border-bottom: 1px solid rgba(237, 224, 144, 0.4);
}
.linkish:hover { color: var(--mustard-light); border-bottom-color: var(--mustard-light); }

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; }
.field > span { display: block; }
.field .hint { font-family: var(--text); font-size: 13px; color: var(--bone-quiet); letter-spacing: 0; margin-left: 6px; }
.field > .hint { margin-left: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
  background: var(--sunken); border: 1px solid var(--line-strong); border-radius: 3px;
  padding: 10px 12px; min-height: 46px; width: 100%; font-size: 16px; color: var(--bone);
  transition: border-color 160ms;
}
input:hover, select:hover, textarea:hover { border-color: rgba(153, 153, 101, 0.45); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--mustard); box-shadow: 0 0 0 3px rgba(237, 224, 144, 0.15); }
input::placeholder, textarea::placeholder { color: var(--bone-fine); }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(0.85) sepia(0.2); }
input[type="checkbox"] { accent-color: var(--sage); width: 18px; height: 18px; }
textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
select option { background: var(--raised); }

.card { background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: 26px; }
.stack { display: grid; gap: 18px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.muted { color: var(--bone-quiet); }
.error { color: var(--danger); font-weight: 500; margin: 0; }
.error:empty { display: none; }

/* badges: 1px outline in the accent at ~50%, 8% tint fill */
.flag {
  display: inline-flex; align-items: center; font-family: var(--display); font-size: 13px; letter-spacing: 0.12em;
  color: var(--rose); background: var(--rose-tint); border: 1px solid rgba(217, 163, 154, 0.5);
  border-radius: 2px; padding: 3px 7px 1px; white-space: nowrap; line-height: 1.1;
}
.flag.nb { color: var(--olive); background: rgba(153, 153, 101, 0.08); border-color: rgba(153, 153, 101, 0.45); }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); opacity: 0;
  background: var(--mustard); color: var(--on-mustard); padding: 12px 20px 10px;
  font-family: var(--display); font-size: 17px; letter-spacing: 0.1em; line-height: 1;
  box-shadow: var(--glow-mustard-hot);
  transition: opacity 180ms, transform 260ms var(--ease); pointer-events: none; z-index: 120; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- auth screens ---------- */
.auth { max-width: 440px; margin: 9vh auto 0; }
.auth-logo { width: 84px; height: 84px; border-radius: 50%; background: #fff; object-fit: cover; display: block; margin-bottom: 22px; }
.auth-title { font-family: var(--display); font-size: clamp(76px, 18vw, 112px); line-height: 0.86; letter-spacing: -0.02em; margin: 0 0 18px; }
.auth-title span { display: block; }
.auth-title span + span { color: var(--mustard); text-shadow: 0 0 40px rgba(237, 224, 144, 0.18); }
.auth .lede { color: var(--bone-88); margin: 0 0 28px; font-weight: 500; }

/* ---------- timer: the one loud thing ---------- */
.timer {
  position: relative;
  background: var(--raised); border: 1px solid var(--line); border-radius: 6px;
  padding: 24px 28px 26px 31px;
  display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: end;
  overflow: hidden;
}
.timer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line-strong); transition: background-color 300ms; }
.timer .desc-wrap { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; }
.timer .desc {
  flex: 1; border: 0; background: transparent; font-size: 22px; font-weight: 500; padding: 6px 0; min-height: 48px;
  border-bottom: 1px solid var(--line-strong); border-radius: 0; box-shadow: none;
}
.timer .desc:focus { border-bottom-color: var(--mustard); box-shadow: none; }
.clock {
  font-family: var(--display); font-variant-numeric: tabular-nums;
  font-size: clamp(96px, 17vw, 200px); line-height: 0.82; letter-spacing: 0.01em;
  color: rgba(231, 232, 230, 0.16); margin-top: 18px; transition: color 300ms, text-shadow 300ms;
}
.go {
  min-width: 168px; height: 72px; border-radius: 0; border: 1px solid var(--mustard); cursor: pointer;
  background: var(--mustard); color: var(--on-mustard);
  font-family: var(--display); font-size: 32px; letter-spacing: 0.1em; line-height: 1; padding-top: 4px;
  box-shadow: var(--glow-mustard);
  transition: transform 220ms var(--ease), box-shadow 220ms, background-color 160ms, color 160ms;
}
.go:hover { transform: translateY(-2px); box-shadow: var(--glow-mustard-hot); background: var(--mustard-light); }
.go:active { transform: translateY(0); }
.timer .since { grid-column: 1 / -1; font-size: 14px; color: var(--bone-quiet); margin: 6px 0 0; min-height: 22px; }
.timer .since .linkish { font-size: 15px; margin-left: 4px; }
.timer.running::before { background: var(--mustard); box-shadow: 0 0 18px rgba(237, 224, 144, 0.5); }
.timer.running .clock { color: var(--mustard); text-shadow: 0 0 48px rgba(237, 224, 144, 0.22); }
.timer.running .go { background: transparent; color: var(--bone); border-color: rgba(231, 232, 230, 0.4); box-shadow: none; }
.timer.running .go:hover { border-color: var(--bone); background: var(--line); }

.bill-toggle {
  border: 1px solid var(--line-strong); background: transparent; border-radius: 2px; padding: 7px 12px 5px;
  font-family: var(--display); font-size: 15px; letter-spacing: 0.12em; line-height: 1; cursor: pointer;
  white-space: nowrap; color: var(--bone-quiet); min-height: 34px;
}
.bill-toggle[aria-pressed="true"] { color: var(--sage); border-color: rgba(139, 201, 139, 0.5); background: rgba(139, 201, 139, 0.08); }

.long-warning {
  position: relative; margin-top: 14px; background: var(--raised); border: 1px solid var(--line); border-radius: 6px;
  padding: 16px 18px 16px 21px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; overflow: hidden;
}
.long-warning::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--mustard); }
.long-warning p { margin: 0; flex: 1 1 260px; font-weight: 500; }
.other-env { margin-top: 14px; }

/* autocomplete */
.ac { position: relative; flex: 1; min-width: 0; }
.ac-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 4px; list-style: none;
  background: var(--floating); backdrop-filter: blur(12px); border: 1px solid var(--line-mid); border-radius: 6px;
  max-height: 300px; overflow: auto; color: var(--bone); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
}
.ac-list li { padding: 10px 12px; border-radius: 3px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: var(--line-mid); }
.ac-list li small { color: var(--bone-quiet); white-space: nowrap; }
.ac-list mark { background: none; color: var(--mustard); }

/* add by hand */
.manual { margin-top: 20px; }
.manual-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 14px; align-items: end; }

/* ---------- entry list: eyebrow day headers with a rule to the edge ---------- */
.day { margin-top: 44px; }
.day-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.day-head::after { content: ""; order: 1; flex: 1; height: 1px; background: var(--line-strong); }
.day-head h3 { order: 0; font-size: 14px; line-height: 1; padding-top: 2px; }
.day-head .tot { order: 2; font-family: var(--display); font-size: 24px; letter-spacing: 0.04em; color: var(--bone); line-height: 1; padding-top: 2px; }
.entries { list-style: none; margin: 0; padding: 0; }
.entry {
  display: grid; grid-template-columns: 1fr auto auto; gap: 4px 22px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.entry:last-child { border-bottom: 0; }
.entry .what { min-width: 0; }
.entry .what .d { font-weight: 500; font-size: 17px; overflow-wrap: anywhere; }
.entry .what .d.none { color: var(--bone-quiet); font-style: italic; font-weight: 400; }
.entry .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.entry .when { color: var(--bone-quiet); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.entry .dur { font-family: var(--display); font-size: 26px; letter-spacing: 0.03em; line-height: 1; min-width: 62px; text-align: right; padding-top: 3px; }
.entry .acts { grid-column: 1 / -1; display: flex; gap: 2px; margin: 2px 0 0 -12px; opacity: 0.75; transition: opacity 160ms; }
.entry:hover .acts, .entry:focus-within .acts { opacity: 1; }
.entry .was { grid-column: 1 / -1; font-size: 13px; color: var(--rose); }
.entry.is-running .dur { color: var(--mustard); text-shadow: 0 0 18px rgba(237, 224, 144, 0.3); }
.edit-form { grid-column: 1 / -1; padding: 20px; margin-top: 8px; background: var(--sunken); border-radius: 6px; border: 1px solid var(--line-mid); }
.more { margin-top: 32px; }
.empty { padding: 32px 0; color: var(--bone-body); max-width: 52ch; }

/* ---------- filters ---------- */
.filters { display: flex; gap: 18px; flex-wrap: wrap; align-items: end; margin-bottom: 30px; }
.chips { display: flex; gap: 0; flex-wrap: wrap; border: 1px solid var(--line-strong); width: fit-content; }
.chip {
  border: 0; border-right: 1px solid var(--line-strong); background: transparent; padding: 11px 14px 9px;
  font-family: var(--display); font-size: 16px; letter-spacing: 0.1em; line-height: 1; cursor: pointer; color: var(--bone-82); min-height: 44px;
}
.chip:last-child { border-right: 0; }
.chip:hover { color: var(--bone); background: var(--line); }
.chip[aria-pressed="true"] { background: var(--bone); color: var(--ground); }
.custom-range { display: flex; gap: 10px; align-items: end; }
.custom-range input { width: auto; }
.person { min-width: 200px; }
.person select { width: auto; min-width: 200px; }

/* ---------- stats: big Bebas numbers in mustard with a faint glow ---------- */
.totals-strip {
  display: flex; gap: 0; flex-wrap: wrap; margin: 0 0 26px;
  border-top: 2px solid var(--line-strong); background: var(--raised); border-radius: 0 0 6px 6px;
}
.stat { padding: 18px 26px 16px; border-right: 1px solid var(--line); flex: 1 1 140px; }
.stat:last-child { border-right: 0; }
.stat .v { font-family: var(--display); font-size: 52px; line-height: 0.95; letter-spacing: 0; color: var(--mustard); text-shadow: 0 0 30px rgba(237, 224, 144, 0.2); font-variant-numeric: tabular-nums; }
.stat .k { margin-top: 6px; font-size: 12px; }
.stat.beet .v { color: var(--rose); text-shadow: 0 0 30px rgba(217, 163, 154, 0.2); }
.actions-row { margin-bottom: 22px; }
.actions-row .muted { font-size: 14px; }
.paper { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line); }
.paper iframe { width: 100%; border: 0; display: block; min-height: 480px; background: #fff; }

/* ---------- analytics ---------- */
.legend { display: flex; gap: 20px; font-family: var(--display); font-size: 14px; letter-spacing: 0.14em; color: var(--bone-82); margin-bottom: 10px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; }
.chart-wrap { position: relative; background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: 20px 20px 12px 8px; }
.chart-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-wrap .grid line { stroke: var(--line-mid); stroke-width: 1; }
.chart-wrap .grid text, .chart-wrap .xlab { fill: var(--bone-quiet); font-size: 12px; font-family: var(--text); }
.chart-wrap .bill { fill: var(--dill); }
.chart-wrap .nonbill { fill: var(--nonbill); }
.chart-wrap .hit { fill: transparent; }
.chart-wrap .hit:hover, .chart-wrap .hit.on { fill: rgba(231, 232, 230, 0.05); }
.tip {
  position: absolute; pointer-events: none; background: var(--floating); color: var(--bone);
  border: 1px solid var(--line-strong); border-radius: 3px; padding: 9px 12px; font-size: 14px;
  white-space: nowrap; z-index: 5; transform: translate(-50%, calc(-100% - 10px)); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.8);
}
.tip b { display: block; margin-bottom: 3px; font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: 0.06em; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: minmax(140px, 34%) 1fr 72px; gap: 16px; align-items: center; position: relative; outline-offset: 4px; }
.bars .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; color: var(--bone-88); }
.bars .track { height: 14px; display: flex; gap: 2px; }
.bars .seg { height: 100%; }
.bars .seg.bill { background: var(--dill); }
.bars .seg.nonbill { background: var(--nonbill); }
.bars .seg:last-child { border-radius: 0 3px 3px 0; }
.bars .val { text-align: right; font-family: var(--display); font-size: 22px; letter-spacing: 0.04em; line-height: 1; padding-top: 2px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-family: var(--display); font-weight: 400; font-size: 13px; letter-spacing: 0.18em; color: var(--label); border-bottom: 1px solid var(--line-strong); padding: 8px 10px 6px; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--bone-88); }
.tbl .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
details.table-view { margin-top: 22px; }
details.table-view summary { cursor: pointer; color: var(--mustard); font-family: var(--display); font-size: 17px; letter-spacing: 0.12em; }

/* ---------- settings ---------- */
.card > h2.section { margin: 0; font-size: 30px; }
.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.person-card { background: var(--sunken); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; }
.person-card .row { justify-content: space-between; }
.person-card h3 { font-size: 26px; letter-spacing: 0.03em; margin-bottom: 4px; }
.person-card .flag { margin-top: 8px; }
details#addPerson > summary { list-style: none; }
details#addPerson > summary::-webkit-details-marker { display: none; }
.link-box { display: flex; gap: 8px; margin-top: 12px; }
.link-box input { font-size: 14px; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  /* backdrop-filter would trap the fixed bottom nav inside the header */
  .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ground); }
  .top-inner { gap: 12px; padding: 0 16px; height: 64px; }
  .mark { font-size: 22px; }
  .mark img { width: 38px; height: 38px; }
  .env-name { display: none; }
  .envs { margin-left: auto; }
  .nav {
    position: fixed; bottom: 0; left: 0; right: 0; margin: 0; z-index: 25; gap: 0;
    background: var(--raised); border-top: 1px solid var(--line-mid);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); justify-content: space-around;
  }
  .nav a { display: grid; justify-items: center; gap: 4px; font-size: 14px; padding: 4px 10px; border-bottom: 0; }
  .nav a[aria-current="page"] { color: var(--mustard); }
  .nav .ico { display: block; width: 22px; height: 22px; }
  main { padding: 26px 16px 130px; }
  .timer { padding: 18px 18px 20px 21px; grid-template-columns: 1fr; }
  .timer .desc { font-size: 19px; }
  .clock { font-size: clamp(84px, 26vw, 120px); margin-top: 12px; }
  .go { width: 100%; height: 64px; margin-top: 8px; }
  .manual-grid { grid-template-columns: 1fr 1fr; }
  .manual-grid .wide { grid-column: 1 / -1; }
  .grid2 { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .entry { grid-template-columns: 1fr auto; }
  .entry .when { grid-column: 1; grid-row: 2; }
  .entry .dur { grid-row: 1; grid-column: 2; }
  .bars li { grid-template-columns: 1fr 60px; gap: 6px 12px; }
  .bars .lab { grid-column: 1 / -1; }
  .stat { padding: 14px 16px 12px; flex-basis: 45%; border-bottom: 1px solid var(--line); }
  .stat .v { font-size: 40px; }
  .chart-wrap .grid text, .chart-wrap .xlab { font-size: 24px; }
  .chips { width: 100%; }
  .chip { flex: 1 1 33%; border-bottom: 1px solid var(--line-strong); }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

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