[hidden] { display: none !important; }
:root {
  --bg: #f6f7f4; --card: #fff; --text: #1f2a24; --muted: #6b766f; --line: #e5e8e3;
  --brand: #2f7d62; --brand-soft: #e3f1ea;
  --ok: #3a9d6e; --ok-soft: #e4f4ec;
  --fine: #6aa84f; --fine-soft: #eef6e6;
  --warn: #d99a2b; --warn-soft: #fbf1dc;
  --under: #8aa0b4; --under-soft: #edf1f5;
  --radius: 14px;
  --c-protein: #c0645a; --c-veggies: #4f9a5a; --c-fruit: #e08a3c; --c-dairy: #5b8fc9; --c-starch: #b59a52; --c-fat: #8d6bb5;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif; -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.error { color: #b5483c; min-height: 1.2em; margin: 8px 0 0; }
h1, h2 { margin: 0; } h2 { font-size: 15px; font-weight: 650; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 340px; text-align: center; padding: 28px 24px; }
.login-card .logo { font-size: 44px; } .login-card h1 { font-size: 22px; margin: 6px 0 2px; }
.login-card input { margin: 16px 0 12px; } .login-card .btn { width: 100%; }

/* layout */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--brand); color: #fff; }
.brand { font-weight: 700; font-size: 17px; white-space: nowrap; }
.profiles { display: flex; background: rgba(255,255,255,.15); border-radius: 999px; padding: 3px; }
.profiles button { border: 0; background: transparent; color: #fff; padding: 6px 14px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profiles button.active { background: #fff; color: var(--brand); }
main { max-width: 760px; margin: 0 auto; padding: 14px 14px 100px; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs button { flex: 1; border: 0; background: none; padding: 8px 0 10px; font: inherit; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.tabs .ico { font-size: 20px; filter: grayscale(1); opacity: .6; }
.tabs button.active { color: var(--brand); font-weight: 650; } .tabs button.active .ico { filter: none; opacity: 1; }
@media (min-width: 820px) {
  .tabs { position: sticky; top: 56px; bottom: auto; justify-content: center; border-top: 0; border-bottom: 1px solid var(--line); }
  .tabs button { flex: 0 0 130px; flex-direction: row; justify-content: center; gap: 6px; font-size: 14px; padding: 12px 0; }
  .tabs .ico { font-size: 16px; }
  main { padding-bottom: 40px; }
}

.card { background: var(--card); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(20,40,30,.06), 0 0 0 1px rgba(20,40,30,.03); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.legend { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; }
.dot.ok { background: var(--ok); } .dot.fine { background: var(--fine); } .dot.warn { background: var(--warn); }

/* forms */
label { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
input, select { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; color: var(--text); background: #fff; }
input:focus, select:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; } .row > label { margin-bottom: 0; } .grow { flex: 1; min-width: 120px; }
#entryForm .row { margin-bottom: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; color: var(--text); padding: 11px 16px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn:active { transform: scale(.98); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text); }
.actions { margin-top: 4px; }

.datebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.datebar-center { text-align: center; flex: 1; }
.datebar input[type=date] { max-width: 190px; margin: 0 auto; text-align: center; font-weight: 600; background: transparent; border-color: transparent; padding: 6px; }

/* category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat { border-radius: 12px; padding: 10px 12px; background: var(--under-soft); position: relative; overflow: hidden; }
.cat .name { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: 6px; }
.cat .name i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cat .val { font-size: 22px; font-weight: 700; margin: 2px 0; } .cat .val small { font-size: 13px; color: var(--muted); font-weight: 500; }
.cat .delta { font-size: 12px; font-weight: 600; }
.bar { height: 6px; border-radius: 3px; background: rgba(0,0,0,.07); margin-top: 6px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 3px; background: var(--under); transition: width .3s; }
.cat.s-under .delta { color: #5d7488; }
.cat.s-ok { background: var(--ok-soft); } .cat.s-ok .bar > span { background: var(--ok); } .cat.s-ok .delta { color: var(--ok); }
.cat.s-fine { background: var(--fine-soft); } .cat.s-fine .bar > span { background: var(--fine); } .cat.s-fine .delta { color: #4f8a36; }
.cat.s-warn { background: var(--warn-soft); } .cat.s-warn .bar > span { background: var(--warn); } .cat.s-warn .delta { color: #a8711a; }

/* rolling */
.rolling { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 560px) { .rolling { grid-template-columns: repeat(6, 1fr); } }
.roll { text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--under-soft); }
.roll .n { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.roll .v { font-size: 18px; font-weight: 700; } .roll .t { font-size: 11px; color: var(--muted); }
.roll.s-ok { background: var(--ok-soft); } .roll.s-fine { background: var(--fine-soft); } .roll.s-warn { background: var(--warn-soft); }

/* steppers */
.steppers { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
@media (min-width: 560px) { .steppers { grid-template-columns: 1fr 1fr; } }
.stepper { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: 12px; }
.stepper .lbl { flex: 1; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stepper .lbl i { width: 10px; height: 10px; border-radius: 50%; }
.stepper button { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--brand-soft); color: var(--brand); font-size: 22px; font-weight: 700; cursor: pointer; }
.stepper input { width: 64px; margin: 0; text-align: center; padding: 8px 4px; font-weight: 700; }

/* entries list */
.entries .empty { color: var(--muted); text-align: center; padding: 14px; }
.entry { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.entry:first-child { border-top: 0; }
.entry .meta { flex: 1; min-width: 0; }
.entry .title { font-weight: 650; } .entry .title span { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.chip { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #f1f3ef; }
.chip b { font-weight: 700; }
.entry .note { font-size: 12px; color: var(--muted); margin-top: 3px; }
.entry .ops { display: flex; gap: 4px; }
.entry .ops button { border: 0; background: #f1f3ef; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 15px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(20,40,30,.06); }
.stat .k { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.stat .v { font-size: 20px; font-weight: 700; } .stat .s { font-size: 11px; color: var(--muted); }
.stat.down .v { color: var(--ok); } .stat.up .v { color: #b5743c; }
.stat:first-child { grid-column: span 2; } @media (min-width: 560px) { .stat:first-child { grid-column: auto; } }

.seg { display: inline-flex; background: #eceee9; border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 10px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.active { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg.big { display: flex; margin-bottom: 12px; } .seg.big button { flex: 1; padding: 9px; font-size: 14px; }

.chart-wrap { position: relative; height: 240px; margin-top: 12px; } .chart-wrap.tall { height: 280px; }
.target-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 10px; }
@media (min-width: 560px) { .target-grid { grid-template-columns: repeat(3, 1fr); } }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: #24312a; color: #fff; padding: 10px 16px; border-radius: 10px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 50; font-weight: 600; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* reference */
.doc-list { display: grid; gap: 12px; }
.doc { display: flex; gap: 14px; align-items: flex-start; padding-top: 12px; border-top: 1px solid var(--line); }
.doc:first-child { border-top: 0; padding-top: 0; }
.doc-cover { flex: 0 0 96px; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.15); line-height: 0; background: #eee; }
.doc-cover img { width: 100%; height: auto; display: block; }
.doc-body { flex: 1; min-width: 0; }
.doc-title { font-weight: 700; font-size: 16px; }
.doc-desc { margin: 6px 0 10px; font-size: 13px; color: #3c4842; }
.doc .btn { padding: 8px 14px; }
@media (min-width: 560px) { .doc-cover { flex-basis: 130px; } }
.serving-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .serving-grid { grid-template-columns: 1fr 1fr; } }
.serving { background: #f6f7f4; border-radius: 10px; padding: 10px 12px; }
.serving .sh { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; display: flex; align-items: center; gap: 6px; }
.serving .sh i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.serving ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; } .serving li { margin: 2px 0; }
@media (min-width: 820px) { .tabs button { flex-basis: 120px; } }

/* in-app PDF viewer */
.viewer-card { padding: 0; overflow: hidden; }
.viewer-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.viewer-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.viewer-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-tools { display: flex; gap: 6px; }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.icon-btn.sm { width: 34px; height: 34px; font-size: 18px; }
.pdf-scroll { height: calc(100vh - 230px); height: calc(100dvh - 230px); min-height: 360px; overflow: auto; -webkit-overflow-scrolling: touch; background: #5d6661; padding: 8px; overscroll-behavior: contain; }
@media (min-width: 820px) { .pdf-scroll { height: calc(100vh - 260px); } }
.pdf-page { position: relative; margin: 0 auto 8px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.pdf-page canvas { display: block; }
.pdf-page-num { position: absolute; right: 6px; bottom: 6px; font-size: 11px; background: rgba(0,0,0,.55); color: #fff; padding: 2px 7px; border-radius: 999px; z-index: 1; }
.pdf-status { color: #fff; text-align: center; padding: 40px 0; }
.pdf-iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.viewer-foot { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); justify-content: flex-end; flex-wrap: wrap; }
.doc.active .doc-cover { outline: 3px solid var(--brand); outline-offset: 2px; }

/* quick-add foods */
.quick { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 12px; background: #fbfcfa; }
.quick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.quick-row, .picked { display: flex; gap: 6px; overflow-x: auto; align-items: center; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.quick-row::-webkit-scrollbar, .picked::-webkit-scrollbar, .group-chips::-webkit-scrollbar { display: none; }
.picked { flex-wrap: wrap; overflow: visible; }
.picked:empty { display: none; }
.qlabel { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); white-space: nowrap; margin-right: 2px; }
.qchip { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--text); }
.qchip.fav { border-color: #f0d48a; background: #fff8e6; }
.qchip:active, .food:active { transform: scale(.97); }
.pchip { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 4px 4px 4px 10px; font-size: 13px; font-weight: 600; }
.pchip button { border: 0; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--brand); font-weight: 800; cursor: pointer; line-height: 1; }
#foodSearch { margin: 2px 0 8px; }
.group-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.group-chips button { flex: 0 0 auto; border: 0; background: #eceee9; color: var(--muted); border-radius: 8px; padding: 7px 11px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.group-chips button.active { background: var(--brand); color: #fff; }
.food-list { max-height: 330px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: grid; grid-template-columns: 1fr; gap: 6px; padding: 2px; }
@media (min-width: 560px) { .food-list { grid-template-columns: 1fr 1fr; max-height: 380px; } }
.food-group-h { grid-column: 1 / -1; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 2px 0; }
.food { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px 8px 10px; cursor: pointer; user-select: none; -webkit-user-select: none; }
@media (hover: hover) { .food:hover { border-color: #c9d6cf; } }
.food-main { flex: 1; min-width: 0; }
.food-name { font-weight: 650; font-size: 14px; line-height: 1.25; }
.food-portion { font-size: 12px; color: var(--muted); }
.food-sv { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.sv { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.star { flex: 0 0 auto; border: 0; background: none; font-size: 20px; width: 36px; height: 36px; cursor: pointer; color: #c3c8c2; border-radius: 8px; }
.star.on { color: #e0a720; }
.food.added { animation: added .45s ease; }
@keyframes added { 0% { background: var(--brand-soft); border-color: var(--brand); } 100% { background: #fff; } }
.stepper.bump { animation: bump .5s ease; }
@keyframes bump { 0% { background: var(--brand-soft); border-color: var(--brand); } 100% { background: transparent; } }
.food-list .empty { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 16px; font-size: 13px; }
.sub-label { font-size: 12px; color: var(--muted); font-weight: 700; margin: 0 0 6px; }
.custom-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.custom-form .row { margin-bottom: 10px; }

/* ---------- iOS / touch polish ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a.btn, .food, .qchip, [role=button] { touch-action: manipulation; -webkit-touch-callout: none; }
input, select, textarea { font-size: 16px !important; } /* >=16px: prevents iOS zoom-on-focus */
/* 44px minimum tap targets */
.btn { min-height: 44px; }
.btn.sm { min-height: 44px; }
.icon-btn { width: 44px; height: 44px; }
.icon-btn.sm { width: 44px; height: 44px; }
.stepper button { width: 44px; height: 44px; }
.stepper input { height: 44px; }
.entry .ops button { width: 44px; height: 44px; }
.star { width: 44px; height: 44px; }
.qchip, .group-chips button { min-height: 44px; }
.seg button { min-height: 40px; padding: 8px 12px; }
.seg.big button { min-height: 44px; }
.profiles button { min-height: 36px; padding: 6px 16px; position: relative; }
.profiles button::after { content: ''; position: absolute; inset: -6px -2px; } /* 48px effective hit area */
.pchip { min-height: 36px; }
.pchip button { width: 30px; height: 30px; position: relative; }
.pchip button::after { content: ''; position: absolute; inset: -7px; } /* 44px effective hit area */
.linklike { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 13px; min-height: 44px; padding: 0 4px; cursor: pointer; }
/* thumb-friendly bottom bar + safe areas */
.tabs button { min-height: 56px; }
@media (max-width: 819px) {
  main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .tabs { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); box-shadow: 0 -2px 10px rgba(0,0,0,.04); }
}
.topbar { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.toast { bottom: calc(90px + env(safe-area-inset-bottom)); }

/* ---------- workouts ---------- */
.wo-progress { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.wo-person { background: #f6f7f4; border-radius: 12px; padding: 10px; border: 2px solid transparent; }
.wo-person.me { border-color: var(--brand-soft); background: #f1f8f4; }
.wo-name { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.wo-count { font-size: 15px; margin-top: 2px; } .wo-count b { font-size: 24px; }
.wo-dots { display: flex; justify-content: space-between; margin-top: 8px; gap: 2px; }
.wd { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: #e3e7e2; color: #8a948e; }
.wd.cur { outline: 2px solid var(--text); outline-offset: 1px; }
.wo-streak { font-size: 12px; font-weight: 700; margin-top: 6px; color: #b5592c; }
.wd.yes { background: var(--ok); color: #fff; }
.wd.no { background: #f3e3df; color: #a4594c; }
.wo-q { font-size: 16px; font-weight: 650; margin-bottom: 10px; line-height: 1.35; }
.wo-q #woWho { color: var(--brand); }
.wo-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.wo-yn button { min-height: 60px; border: 0; background: #fff; font: inherit; font-size: 20px; font-weight: 800; cursor: pointer; color: var(--muted); transition: background .15s, color .15s; }
.wo-yn button + button { border-left: 2px solid var(--line); }
.wo-yn button.active[data-answer="yes"] { background: var(--ok); color: #fff; }
.wo-yn button.active[data-answer="no"] { background: #e9d7d2; color: #8a4436; }
/* ---------- PWA bits ---------- */
.a2hs { position: fixed; left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 40;
  background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: 12px; display: flex; gap: 12px; align-items: center; animation: up .3s ease; }
.a2hs[hidden] { display: none; }
.a2hs::after { content: ''; position: absolute; bottom: -8px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: #fff; }
.a2hs-icon img { width: 52px; height: 52px; border-radius: 12px; display: block; }
.a2hs-text { flex: 1; font-size: 13px; line-height: 1.35; } .a2hs-text strong { display: block; font-size: 15px; margin-bottom: 2px; }
.share-ico { width: 17px; height: 17px; vertical-align: -3px; color: #0a7aff; }
.a2hs-close { border: 0; background: var(--brand); color: #fff; border-radius: 10px; font: inherit; font-weight: 700; min-height: 44px; padding: 0 14px; cursor: pointer; }
@keyframes up { from { transform: translateY(20px); opacity: 0; } }
@media (min-width: 820px) { .a2hs { max-width: 420px; left: auto; bottom: 20px; } .a2hs::after { display: none; } }
.offline { position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 9; background: #fbf1dc; color: #7a5410; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 12px; }
.offline[hidden] { display: none; }
.push-status { font-size: 14px; margin-bottom: 10px; padding: 10px 12px; background: #f6f7f4; border-radius: 10px; }
.profile-row { margin-bottom: 10px; } .profile-row .goal { flex: 0 0 130px; }
input, select { min-height: 44px; }
.datebar input[type=date] { min-height: 44px; }
.group-chips button, .qchip { min-width: 44px; }
/* workout cards: never overflow on narrow phones */
.wo-progress { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.wo-person { min-width: 0; }
.wo-dots { gap: 0; }
.wd { width: 18px; height: 18px; font-size: 9px; flex: 0 0 18px; }
@media (min-width: 400px) { .wd { width: 20px; height: 20px; flex-basis: 20px; } }
.wo-count { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
