/* Household Chore Rotation — toolkityourlife.com/ChoreRotation/
   Matches the site's look (same base as Home Maintenance Calendar): black, Inter + Archivo Black, lime accent. Mobile first.
   Status colors: due today yellow · done green (the site's lime) · partner apps blue. Overdue uses a soft red only on
   the chore itself; people are never shown in red ("a little behind" is yellow, with words). */
:root {
  --bg: #000; --bg2: #0b0b0c; --card: #121214; --card2: #18181b; --line: rgba(255,255,255,.12); --line2: rgba(255,255,255,.2);
  --ink: #f4f4f2; --muted: #9a9aa0; --accent: #c9ff3d; --accent-ink: #000;
  --ok: #c9ff3d; --soon: #ffc44d; --bad: #ff6b6b; --none: #77777d; --info: #7cc4ff;
  --r: 14px; --tab-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
html.big { font-size: 112.5%; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 1rem/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 8px);
}
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255,255,255,.06), transparent 70%); }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; background: rgba(0,0,0,.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-nav { flex: 1; min-width: 0; min-height: 38px; display: flex; align-items: center; }
.acct { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: 999px;
  background: rgba(18,18,20,.9); border: 1px solid var(--line); cursor: pointer; font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
.acct:hover { border-color: rgba(201,255,61,.6); }
.acct-av { width: 26px; height: 26px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; overflow: hidden; font-size: .8rem; color: var(--muted); }
.acct-av img { width: 100%; height: 100%; object-fit: cover; }
.acct.signed-in .acct-av { background: var(--accent); color: #000; }
.acct-label { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu { position: absolute; right: 12px; top: calc(100% + 6px); min-width: 230px; padding: 6px; background: rgba(18,18,20,.97);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,.6); }
.acct-menu p { margin: 8px 10px; color: var(--muted); font-size: .82rem; }
.acct-menu button, .acct-menu a { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); text-decoration: none; cursor: pointer; }
.acct-menu button:hover, .acct-menu a:hover { background: rgba(255,255,255,.07); color: var(--accent); }

/* ---------- layout ---------- */
.view { max-width: 980px; margin: 0 auto; padding: 16px 14px 24px; outline: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font: 400 clamp(1.45rem, 5.5vw, 2.2rem)/1.05 "Archivo Black", "Inter", sans-serif; text-transform: uppercase; letter-spacing: -.01em; }
h1 .accent { color: var(--accent); }
h1.t-h { text-transform: none; font-size: clamp(1.35rem, 5vw, 1.9rem); letter-spacing: 0; overflow-wrap: anywhere; }
h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: .01em; }
h2 .count { color: var(--muted); font-weight: 600; font-size: .85rem; margin-left: 4px; }
h2.h-overdue { color: var(--bad); } h2.h-today { color: var(--soon); } h2.h-done { color: var(--ok); } h2.h-info { color: var(--info); }
h3 { font-size: .98rem; font-weight: 700; }
.sub { color: var(--muted); margin: 6px 0 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .75rem; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spread { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.stack p { margin: 0; }
.section { margin-top: 22px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
.crumbs { margin: 0 0 10px; }
.crumbs a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.crumbs a:hover { color: var(--accent); }
.notes { white-space: pre-wrap; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: #d8d8d6; font-size: .92rem; }
@media (min-width: 720px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .view { padding: 22px 20px 28px; }
}

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; font-size: .95rem; }
.btn:hover { border-color: rgba(201,255,61,.6); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: none; }
.btn.danger { color: var(--bad); border-color: rgba(255,107,107,.4); background: none; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: .85rem; border-radius: 10px; }
.btn.big { min-height: 52px; padding: 0 22px; font-size: 1.02rem; }
.btn.icon { padding: 0; width: 36px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

label.f { display: block; }
label.f > span, .f-label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 5px; font-weight: 500; }
.in, select.in, textarea.in { width: 100%; min-height: 44px; padding: 10px 12px; font-size: 16px; background: #0e0e10; color: var(--ink);
  border: 1px solid var(--line2); border-radius: 10px; }
select.in.sm { width: auto; min-height: 36px; padding: 4px 10px; font-size: 14px; }
textarea.in { min-height: 88px; resize: vertical; }
.in:focus { outline: none; border-color: rgba(201,255,61,.7); box-shadow: 0 0 0 3px rgba(201,255,61,.12); }
input[type="date"].in { min-width: 0; }
.fgrid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.fgrid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 12px; background: #0e0e10; border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { min-height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; font-weight: 600; font-size: .88rem; }
.seg button[aria-pressed="true"] { background: var(--card2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.seg.pts button { min-width: 44px; }
.seg.nowrap { flex-wrap: nowrap; }
.seg.nowrap button { min-height: 34px; }
.seg.pts button[aria-pressed="true"] { background: var(--accent); color: #000; box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 12px 4px 5px; border-radius: 999px; border: 1px solid var(--line2);
  background: #0e0e10; font-size: .9rem; cursor: pointer; max-width: 100%; color: var(--ink); }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: rgba(201,255,61,.12); }
.chip.plain { padding-left: 12px; }

/* ---------- people ---------- */
.av { --c: var(--accent); flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .72rem; font-weight: 700;
  background: color-mix(in srgb, var(--c) 18%, #0e0e10); color: var(--c); box-shadow: inset 0 0 0 1.5px var(--c); letter-spacing: .02em; }
.av.sm { width: 24px; height: 24px; font-size: .62rem; }
.av.lg { width: 42px; height: 42px; font-size: .9rem; }
.av.open { --c: var(--none); border: 0; box-shadow: inset 0 0 0 1.5px var(--none); border-style: dashed; }
.who { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--card2); border: 1px solid var(--line); font-size: .7rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tag.away { color: var(--info); border-color: rgba(124,196,255,.4); }
.pts { display: inline-flex; gap: 2px; vertical-align: 1px; }
.pts i { width: 6px; height: 6px; border-radius: 50%; background: var(--line2); }
.pts i.on { background: var(--accent); }
.person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.person + .person { margin-top: 8px; }
.person .p-main { min-width: 0; } .person .p-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  letter-spacing: .02em; border: 1px solid currentColor; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-overdue { color: var(--bad); } .s-today { color: var(--soon); } .s-done { color: var(--ok); } .s-upcoming { color: #c4c4c8; border-color: var(--line2); }
.s-upcoming::before { background: none; border: 1.5px solid currentColor; } .s-paused { color: var(--none); } .s-info { color: var(--info); }

/* ---------- summary tiles ---------- */
.tiles { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); margin-top: 14px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { display: block; text-align: left; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
a.tile:hover { border-color: rgba(201,255,61,.6); }
.tile b { display: block; font: 400 1.6rem/1 "Archivo Black", sans-serif; }
.tile span { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; }
.tile.t-overdue b { color: var(--bad); } .tile.t-today b { color: var(--soon); } .tile.t-done b { color: var(--ok); }

/* ---------- chore rows ---------- */
.list { display: grid; gap: 8px; }
.tk { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px 10px 10px;
  border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tk::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: transparent; }
.tk.st-overdue { border-color: rgba(255,107,107,.38); } .tk.st-overdue::before { background: var(--bad); }
.tk.st-today { border-color: rgba(255,196,77,.32); } .tk.st-today::before { background: var(--soon); }
.tk.st-done::before { background: var(--ok); }
.tk.st-paused, .tk.planned { opacity: .62; }
.tk:hover { border-color: rgba(201,255,61,.5); }
.tk-check { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line2); background: none; display: grid; place-items: center; cursor: pointer; color: transparent; padding: 0; }
.tk-check svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
button.tk-check:hover, button.tk-check:focus-visible { border-color: var(--ok); color: var(--ok); background: rgba(201,255,61,.08); }
.st-overdue button.tk-check { border-color: rgba(255,107,107,.6); } .st-today button.tk-check { border-color: rgba(255,196,77,.6); }
.tk-check.done { border-color: var(--ok); background: var(--ok); color: #000; cursor: default; }
.tk-check.ghosted { border-style: dashed; cursor: default; }
.tk-main { min-width: 0; color: inherit; text-decoration: none; display: block; padding: 2px 0; }
.tk-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-weight: 700; overflow: hidden; line-height: 1.25; overflow-wrap: anywhere; }
.tk-meta { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-when { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; text-decoration: none; color: inherit; }
.tk-when .who b { font-size: .8rem; max-width: 84px; }
@media (max-width: 420px) { .tk-when .badge { font-size: .7rem; padding: 2px 7px; } .tk { grid-template-columns: 40px minmax(0,1fr) auto; } .tk-check { width: 40px; height: 40px; } .tk-when .who b { max-width: 62px; } }
.allclear { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; padding: 16px; border-radius: var(--r); border: 1px solid rgba(201,255,61,.35); background: rgba(201,255,61,.06); }
.allclear b { display: flex; align-items: center; gap: 8px; color: var(--ok); }
.allclear svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.empty { text-align: center; padding: 34px 18px; border: 1px dashed var(--line2); border-radius: 18px; margin-top: 16px; }
.empty h2 { font: 400 1.25rem "Archivo Black", sans-serif; text-transform: uppercase; }
.empty p { color: var(--muted); max-width: 440px; margin: 8px auto 16px; }
.grp-h { display: flex; align-items: center; gap: 10px; margin: 20px 0 8px; }
.grp-h h2 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-h { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 8px; font-weight: 700; }
.day-h.is-today { color: var(--accent); }
.day-h span { color: var(--muted); font-weight: 500; font-size: .85rem; }
.wk-nav { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.wk-nav b { flex: 1; text-align: center; }

/* ---------- requests ---------- */
.req { border-left: 3px solid var(--info); }
.req p { margin: 0; }
.req .row { margin-top: 10px; }

/* ---------- fairness board ---------- */
.fb { display: grid; gap: 10px; }
.fb-row { padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.fb-top { display: flex; align-items: center; gap: 10px; }
.fb-top .fb-name { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-num { font: 400 1.3rem/1 "Archivo Black", sans-serif; white-space: nowrap; }
.fb-num small { font: 500 .78rem "Inter", sans-serif; color: var(--muted); margin-left: 3px; }
.meter { position: relative; height: 12px; border-radius: 999px; background: var(--card2); margin: 14px 0 20px; }
.meter > i { display: block; height: 100%; border-radius: 999px; background: var(--accent); min-width: 4px; }
.meter > u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 2px; }
.meter > u::after { content: "fair share"; position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); font-size: .64rem; color: var(--muted); white-space: nowrap; text-decoration: none; }
.meter > u.r::after { left: auto; right: 0; transform: none; } .meter > u.l::after { left: 0; transform: none; }
.fb-note { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .85rem; color: var(--muted); }
.fb-state { font-weight: 600; }
.fb-state.even, .fb-state.ahead { color: var(--ok); } .fb-state.behind { color: var(--soon); } .fb-state.away { color: var(--info); }
.act { display: grid; gap: 6px; }
.act-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.act-row .a-main { min-width: 0; } .act-row .a-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.thumb { width: 40px; height: 40px; border-radius: 10px; background: var(--card2); display: grid; place-items: center; overflow: hidden; color: var(--muted); border: 0; padding: 0; cursor: zoom-in; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- detail ---------- */
.dhead { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; font-size: .92rem; margin: 0; align-items: center; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.pairbox { border-left: 3px solid var(--info); }
.preview { position: relative; border-radius: 14px; overflow: hidden; background: #0e0e10; border: 1px solid var(--line); }
.preview img { display: block; width: 100%; max-height: min(260px, 30vh); object-fit: contain; }
.picks { display: grid; gap: 6px; margin-top: 10px; }
.pick { display: flex; align-items: center; gap: 12px; padding: 6px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); min-height: 52px; cursor: pointer; }
.pick input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.pick .pk-main { flex: 1; min-width: 0; } .pick .pk-main b { display: block; font-weight: 600; overflow-wrap: anywhere; } .pick .pk-main span { display: block; color: var(--muted); font-size: .8rem; }
.pick.added { opacity: .55; }
button.pick { width: 100%; text-align: left; color: var(--ink); }
button.pick:hover { border-color: rgba(201,255,61,.5); }
.sticky-cta { position: sticky; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); z-index: 20; margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px 10px 16px; border-radius: 16px; background: rgba(18,18,20,.95); border: 1px solid var(--line2); box-shadow: 0 12px 40px rgba(0,0,0,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (min-width: 900px) { .sticky-cta { bottom: 90px; } }
.invite { display: flex; gap: 8px; }
.invite .in { font-size: 13px; color: var(--muted); }

/* ---------- banners ---------- */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); margin-top: 14px;
  background: rgba(201,255,61,.08); border: 1px solid rgba(201,255,61,.35); }
.banner.info { background: rgba(124,196,255,.07); border-color: rgba(124,196,255,.35); }
.banner > div { min-width: 0; flex: 1; }
.banner p { margin: 0; }
.banner .row { margin-top: 10px; }
.syncline { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; margin: 8px 0 0; }
.syncline span { min-width: 0; }
.syncline i { width: 8px; height: 8px; border-radius: 50%; background: var(--none); flex: none; }
.syncline.cloud i { background: var(--ok); }
.syncline.off i { background: var(--soon); }
.works { display: flex; flex-wrap: wrap; gap: 8px; }
.works a { font-size: .8rem; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.works a:hover { color: var(--accent); border-color: rgba(201,255,61,.5); }
.bills { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.bills li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 10px; background: #0f0f11; border: 1px solid var(--line); }
.bills li b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bills li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- sheet / toast ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 2147482000; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; background: #0c0c0e; border: 1px solid var(--line); border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(18px + var(--safe-b)); }
@media (min-width: 720px) { .sheet-bg { align-items: center; } .sheet { border-radius: 20px; } }
.sheet.wide { max-width: 980px; padding: 10px; background: #000; }
.sheet.wide img { display: block; width: 100%; height: auto; border-radius: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 14px); transform: translateX(-50%); z-index: 2147482500;
  background: #151515; border: 1px solid var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-size: .9rem; box-shadow: 0 8px 30px rgba(0,0,0,.6); max-width: calc(100vw - 24px); text-align: center; }
.toast.err { border-color: var(--bad); }
.toast button { margin-left: 10px; background: none; border: 0; color: var(--accent); font-weight: 700; cursor: pointer; padding: 0; }

/* ---------- tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(8,8,9,.94); border-top: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted);
  text-decoration: none; font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.tabbar a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--accent); }
.tabbar .tab-add svg { width: 30px; height: 30px; padding: 4px; border-radius: 50%; background: var(--accent); color: #000; stroke: #000; }
.tab-dot { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--soon); color: #000; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
@media (min-width: 900px) {
  .tabbar { left: 50%; right: auto; bottom: 14px; width: 520px; transform: translateX(-50%); border-radius: 999px; border: 1px solid var(--line); height: 60px; padding: 0; }
  body { padding-bottom: 96px; }
}

/* ---------- ads ---------- */
.ad { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 18px 0; width: 100%; }
.ad-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #666; }
.ad ins, .ad .mn { width: 100%; min-height: 90px; }
.ad-ph { width: 100%; max-width: 970px; min-height: 90px; border: 1px dashed #444; border-radius: 8px; display: grid; place-items: center; color: #777; font-size: 13px; text-align: center; padding: 8px; }

.foot { max-width: 760px; margin: 18px auto 0; padding: 10px 16px 20px; text-align: center; color: #6a6a70; font-size: .78rem; }
.foot a { color: inherit; }
.foot p { margin: 4px 0; }

/* ---------- fridge chart (print view) ---------- */
.pv-wrap { overflow-x: auto; border-radius: 12px; }
.pv { background: #fff; color: #111; border-radius: 12px; padding: 20px; font-size: 13px; line-height: 1.35; min-width: 720px; }
.pv h1 { color: #111; font-size: 22px; text-transform: none; font-family: "Inter", sans-serif; font-weight: 800; letter-spacing: 0; }
.pv p { margin: 4px 0; }
.pv table { width: 100%; border-collapse: collapse; margin-top: 12px; table-layout: fixed; }
.pv th, .pv td { text-align: left; padding: 6px 7px; border: 1px solid #bbb; vertical-align: top; }
.pv th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #333; background: #f1f1f1; }
.pv th.today { background: #e4f5a8; }
.pv th small { display: block; font-weight: 500; color: #666; letter-spacing: 0; text-transform: none; }
.pv td.name { font-weight: 700; width: 15%; background: #fafafa; }
.pv td.name small { display: block; font-weight: 500; color: #666; }
.pv .fc { display: flex; gap: 5px; align-items: flex-start; margin: 0 0 5px; break-inside: avoid; }
.pv .fc::before { content: ""; flex: none; width: 11px; height: 11px; border: 1.5px solid #333; border-radius: 3px; margin-top: 2px; }
.pv .fc.done::before { background: #333; }
.pv .fc small { color: #666; }
.pv .pv-foot { margin-top: 12px; font-size: 11px; color: #666; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pv tr { break-inside: avoid; page-break-inside: avoid; }
@media print {
  @page { size: landscape; margin: 10mm; }
  html, body { background: #fff !important; color: #111 !important; padding: 0 !important; }
  body::before { display: none; }
  [data-noprint], .ad, .toast, .sheet-bg, tyl-nav, .tylp-foot, .noprint, .tk-check, .sticky-cta { display: none !important; }
  .view { max-width: none; padding: 0; }
  .pv-wrap { overflow: visible; }
  .pv { padding: 0; border-radius: 0; min-width: 0; }
  body:not(.printing-view) .card, body:not(.printing-view) .tk, body:not(.printing-view) .fb-row { background: #fff !important; color: #111 !important; border-color: #ccc !important; }
  body:not(.printing-view) h1, body:not(.printing-view) h2 { color: #111 !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
