@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/Inter-Regular.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/Inter-SemiBold.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 700 800; font-display: swap; src: url(fonts/Inter-Bold.woff2) format('woff2'); }
:root {
  --bg: #f3f6fa; --card: #ffffff; --text: #0f1b2d; --muted: #556278; --accent: #047857; --accent-2: #0f766e; --accent-text: #ffffff;
  --border: #e3e9f1; --warn-bg: #fff6e0; --warn-border: #e2b53f; --danger: #b3261e; --dot: #f59e0b;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2)); --shadow: 0 2px 14px rgba(15, 27, 45, .07);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1220; --card: #131d33; --text: #e8eefb; --muted: #9fb0cc; --accent: #34d399; --accent-2: #2dd4bf; --accent-text: #052e22;
    --border: #24324d; --warn-bg: #3a3118; --warn-border: #a88726; --danger: #ff8a80; --dot: #fbbf24; --shadow: 0 2px 14px rgba(0, 0, 0, .35); }
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: -.01em; line-height: 1.5; padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.2rem; background: var(--grad); color: var(--accent-text); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; border-radius: 0 0 24px 24px; }
main { max-width: 640px; margin: 0 auto; padding: 1rem; }
.card { background: var(--card); border: none; border-radius: 18px; box-shadow: var(--shadow); padding: 1.1rem; margin-bottom: 1rem; }
h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; margin: 0 0 .5rem; } h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .5rem; } h3 { font-size: .8rem; margin: 1rem 0 .25rem; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.muted { color: var(--muted); font-size: .9rem; font-weight: 400; }
.notice { background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 14px; padding: .75rem; margin: .75rem 0; font-size: .95rem; }
label { display: block; margin: .75rem 0; font-weight: 600; }
input[type=text], input[type=number], input[type=time], input[type=search], input[type=email], input[type=password], input[type=url], input[type=date], input:not([type]), select, textarea { width: 100%; font: inherit; padding: .65rem; margin-top: .25rem; border: 2px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
textarea { resize: vertical; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; margin: .5rem 0; min-height: 44px; }
.check input { width: 1.5rem; height: 1.5rem; flex: none; margin-top: .15rem; accent-color: var(--accent); }
.done { text-decoration: line-through; color: var(--muted); }
.btn, .chip, .link { font: inherit; cursor: pointer; }
.btn { min-height: 48px; padding: .5rem 1.2rem; border-radius: 999px; border: 2px solid var(--border); background: var(--card); color: var(--text); font-weight: 600; margin: .25rem .25rem .25rem 0; }
.btn.primary { background: var(--grad); border-color: transparent; color: var(--accent-text); box-shadow: 0 6px 14px rgba(4, 120, 87, .28); }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.link { background: none; border: none; color: var(--muted); min-width: 44px; min-height: 44px; }
a { color: var(--accent); }
.row { display: flex; gap: .5rem; align-items: flex-end; } .row > * { flex: 1; } .row .btn { flex: none; }
.counter { display: flex; justify-content: space-between; align-items: center; margin: .5rem 0; }
.moods { display: flex; gap: .5rem; margin-bottom: .75rem; } .mood { font-size: 1.6rem; flex: 1; padding: 0; margin: 0; } .mood.sel, .chip.sel { background: var(--grad); border-color: transparent; color: var(--accent-text); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.chip { padding: .4rem .9rem; min-height: 44px; border-radius: 999px; border: 2px solid var(--border); background: var(--card); color: var(--text); }
.dots { display: flex; gap: .5rem; } .dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid var(--border); } .dot.on { background: var(--grad); border-color: transparent; }
.stats { display: flex; text-align: center; gap: .5rem; margin: .75rem 0; } .stats div { flex: 1; background: var(--bg); border-radius: 14px; padding: .5rem; }
.stats strong { display: block; font-size: 1.1rem; } .stats span { font-size: .8rem; color: var(--muted); }
.ms { margin: .75rem 0; } .msh { display: flex; justify-content: space-between; font-weight: 600; }
.bar { height: 12px; border-radius: 99px; background: var(--bg); overflow: hidden; } .bar span { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.chart { width: 100%; height: auto; } .ct { fill: var(--muted); font-size: 10px; }
ul.plain { list-style: none; padding: 0; margin: 0; } ul.plain li { display: flex; justify-content: space-between; align-items: center; }
ul.plain li:not(:has(.check)) { display: block; padding: .25rem 0; }
.slot { text-transform: capitalize; font-weight: 700; color: var(--accent); margin-right: .25rem; }
details.meal { border-top: 1px solid var(--border); padding: .6rem 0; } details summary { cursor: pointer; min-height: 44px; }
.tabs { padding: .25rem .25rem env(safe-area-inset-bottom); position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: var(--card); box-shadow: 0 -4px 24px rgba(15, 27, 45, .1); z-index: 5; }
.tabs button { flex: 1; min-height: 58px; border: none; border-radius: 16px; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; color: var(--muted); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.tabs button.sel { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.toast { position: fixed; bottom: calc(4.75rem + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: .6rem 1.1rem; border-radius: 999px; z-index: 10; }
#budgetform { align-items: flex-end; } .ok { color: var(--accent); } .over { color: var(--danger); font-weight: 600; }
.price { text-align: right; flex: none; margin-left: .5rem; font-size: .85rem; } .price .link { min-height: 32px; font-weight: 700; color: var(--text); font-size: 1rem; }
@media print { .top, .tabs, .btn, .chip, .link, form { display: none !important; } body { background: #fff; color: #000; } .card { border: none; } }
#install { min-height: 40px; margin: 0; padding: .2rem .8rem; border-color: var(--accent-text); color: var(--accent-text); } #install[hidden] { display: none; }
.offline { background: var(--warn-bg); text-align: center; padding: .25rem; font-size: .85rem; }
.foodrow { display: flex; justify-content: space-between; align-items: center; gap: .5rem; width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: .5rem .75rem; margin: .35rem 0; min-height: 52px; cursor: pointer; }
.foodrow > span:last-child { color: var(--accent); font-weight: 700; white-space: nowrap; }
.qty { display: flex; align-items: center; flex: none; } .qty .btn { min-height: 40px; min-width: 40px; padding: 0 .6rem; margin: 0 .15rem; }
li.pan { border-top: 1px solid var(--border); padding: .35rem 0; } .panin { display: flex; align-items: center; gap: .5rem; flex: none; } .panin input[type=number] { width: 5.5rem; margin: 0; }
.panin .check { margin: 0; min-height: 40px; } .tabs button { font-size: .78rem; padding: 0 2px; } .tabs svg { width: 1.5rem; height: 1.5rem; } .btn[disabled] { opacity: .4; cursor: default; }
ul.plain li.fli { display: flex; padding: .3rem 0; border-top: 1px solid var(--border); }
ul.plain li.shopli { display: grid; grid-template-columns: 1fr auto auto; align-items: start; column-gap: .5rem; border-top: 1px solid var(--border); padding: .3rem 0; } ul.plain li.shopli .price { margin-left: 0; } .rowact { grid-column: 1 / -1; padding-left: 2.25rem; } .rowact .btn { min-height: 40px; padding: 0 .8rem; font-size: .85rem; margin: .1rem .4rem .3rem 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.toast { display: flex; align-items: center; gap: .75rem; max-width: calc(100% - 2rem); box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.toast button { background: none; border: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 40px; padding: 0 .25rem; }
.celebrate { border-color: var(--accent); background: linear-gradient(135deg, var(--card), var(--bg)); }
.badge { background: var(--accent); color: var(--accent-text); border-radius: 999px; padding: .05rem .55rem; font-size: .75rem; font-weight: 700; vertical-align: middle; }
details.card > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: .5rem; list-style-position: inside; }
details.card[open] > summary { margin-bottom: .5rem; }
.more { flex: none; font-size: 1.4rem; line-height: 1; }
h3 { margin: .9rem 0 .25rem; }

.hdr { display: flex; align-items: center; gap: .25rem; }
.back { padding-left: 0; color: var(--accent); font-weight: 600; text-align: left; } .center { text-align: center; } .btn.sel { background: var(--accent); color: var(--accent-text); }
.stores { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .5rem 0; }
.store { font: inherit; color: var(--text); background: var(--bg); border: 2px solid var(--border); border-radius: 12px; padding: .6rem .3rem; min-height: 64px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; text-align: center; }
.store .muted { font-size: .75rem; } .store.sel { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.deck { position: relative; height: 25rem; margin: 0 0 1rem; }
.tcard { position: absolute; inset: 0; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 1.1rem; box-shadow: 0 6px 20px rgba(0,0,0,.12); overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.tcard.front { z-index: 2; } .tcard.behind { transform: scale(.94) translateY(.8rem); opacity: .7; z-index: 1; cursor: default; }
.tcard h2 { font-size: 1.35rem; margin: .1rem 0 .4rem; } .temoji { font-size: 4.2rem; text-align: center; margin: .2rem 0; } .tslot { text-transform: capitalize; font-weight: 700; color: var(--accent); }
.tcard.slot-breakfast { border-top: 8px solid #e9b44c; } .tcard.slot-lunch { border-top: 8px solid #6bb36b; } .tcard.slot-dinner { border-top: 8px solid #c46a5a; } .tcard.slot-snack { border-top: 8px solid #8b7bd0; }
.stamp { position: absolute; top: 1rem; font-weight: 800; font-size: 1.4rem; border: 4px solid; border-radius: 10px; padding: .1rem .6rem; opacity: 0; pointer-events: none; transform: rotate(-12deg); }
.stamp.like { left: 1rem; color: #2e9e5b; } .stamp.nope { right: 1rem; color: var(--danger); transform: rotate(12deg); }
.tbtns { display: flex; justify-content: center; gap: 1rem; margin-bottom: .5rem; } .tb { flex-direction: column; display: flex; align-items: center; justify-content: center; width: 5.2rem; height: 5.2rem; border-radius: 50%; font-size: 1.8rem; line-height: 1; padding: 0; margin: 0; }
.tb span { font-size: .78rem; font-weight: 600; margin-top: .15rem; } .tb.like { background: #2e9e5b; border-color: #2e9e5b; color: #fff; } .tb.nope { border-color: var(--danger); color: var(--danger); }
.chip.tag { min-height: 0; padding: .1rem .6rem; font-size: .8rem; border-width: 1px; cursor: default; }

.photobtn { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-align: center; }
.pbig { display: block; width: 100%; max-height: 18rem; object-fit: cover; border-radius: 12px; margin-bottom: .75rem; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.pcell { position: relative; padding: 0; border: none; border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: var(--bg); }
.pcell img { width: 100%; height: 100%; object-fit: cover; display: block; } .pcell span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.6); color: #fff; font-size: .78rem; text-align: center; padding: .1rem 0; }
.fl { display: flex; gap: .6rem; align-items: center; } .fthumb { width: 3.4rem; height: 3.4rem; padding: 0; border: none; border-radius: 8px; overflow: hidden; flex: none; cursor: pointer; background: var(--bg); } .fthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 20; overflow: auto; padding: 1rem; } .lbin { background: var(--card); border-radius: 14px; padding: 1rem; max-width: 560px; margin: 0 auto; } .lbin img { width: 100%; border-radius: 10px; margin-bottom: .5rem; }

/* header icon buttons and the flyout menu */
.top { gap: .25rem; } .top .logo { flex: 1; margin-left: .25rem; }
.hbtn { background: none; border: none; color: inherit; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.hbtn:hover { background: rgba(255, 255, 255, .18); } .hbtn[hidden] { display: none; } .hbtn svg { width: 1.5rem; height: 1.5rem; }
#scrim { position: fixed; inset: 0; background: rgba(8, 15, 30, .5); opacity: 0; transition: opacity .25s; z-index: 30; } #scrim.show { opacity: 1; } #scrim[hidden] { display: none; }
#drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); background: var(--card); z-index: 31; transform: translateX(-105%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: 6px 0 30px rgba(0, 0, 0, .25); border-radius: 0 24px 24px 0; padding-bottom: env(safe-area-inset-bottom); visibility: hidden; }
#drawer.open { transform: none; visibility: visible; }
.dhead { display: flex; align-items: center; gap: .75rem; padding: calc(1rem + env(safe-area-inset-top)) .8rem 1rem 1.1rem; background: var(--grad); color: var(--accent-text); border-radius: 0 24px 0 0; } .dhead div { flex: 1; line-height: 1.3; } .dhead span { opacity: .85; font-size: .9rem; }
.dlogo { width: 2.6rem; height: 2.6rem; border-radius: 14px; background: rgba(255, 255, 255, .2); overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.dbody { overflow-y: auto; padding: .25rem .6rem 1.2rem; flex: 1; } .dbody h3 { margin: 1.1rem .5rem .3rem; }
.ditem { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; font: inherit; color: var(--text); background: none; border: none; border-radius: 14px; padding: .55rem .6rem; min-height: 56px; cursor: pointer; }
.ditem:hover { background: var(--bg); } .ditem.sel { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.dico { width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--accent); } .ditem.sel .dico { background: var(--grad); color: var(--accent-text); }
.dtxt { display: flex; flex-direction: column; flex: 1; line-height: 1.25; } .dtxt span { font-size: .78rem; color: var(--muted); font-weight: 400; } .dtxt strong { font-weight: 600; }
body.noscroll { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { #drawer, #scrim { transition: none; } }
@media print { #drawer, #scrim { display: none !important; } }

/* compact Today */
.hero { padding: 1rem 1.1rem; } .herotop { display: flex; justify-content: space-between; align-items: center; gap: .5rem; } .herotop h1 { margin: 0; font-size: 1.3rem; } .hero .dots { gap: .25rem; } .hero .dot { width: 1rem; height: 1rem; border-width: 2px; }
.herobody { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; gap: 1rem; } .big { font-size: 2.1rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; } .big span { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.ring { width: 5.2rem; height: 5.2rem; flex: none; } .ringtxt { fill: var(--text); font-size: 14px; font-weight: 800; }
.btn.sm { min-height: 38px; padding: .2rem .85rem; font-size: .85rem; margin: .4rem .3rem 0 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
.tile { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: .8rem .85rem; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.tile h4 { margin: 0; font-size: .8rem; font-weight: 700; color: var(--muted); } .tval { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; } .tval span { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tile .bar { height: 8px; margin: .2rem 0 0; } .tctl { display: flex; gap: .3rem; margin-top: auto; } .tctl .btn.sm { margin: .35rem 0 0; padding: .2rem .7rem; flex: 1; } .tctl .btn.sm:first-child:not(:last-child) { flex: none; }
.moods.sm { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin: .3rem 0 0; } .moods.sm .mood { font-size: 1.35rem; min-height: 40px; height: 40px; border-radius: 14px; }
.card.next { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 1rem; } .card.next > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; } .card.next strong { font-size: .95rem; } .card.next .btn { margin: 0; flex: none; }
.chips.tight { margin: .6rem 0 0; gap: .4rem; } .chip.habit { min-height: 38px; padding: .2rem .8rem; font-size: .85rem; }
.card.next > span { display: flex; gap: .3rem; flex: none; flex-wrap: wrap; justify-content: flex-end; max-width: 9.5rem; }

/* GLP-1 journey */
.sites { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .5rem 0; }
.site { position: relative; font: inherit; color: var(--text); background: var(--bg); border: 2px solid var(--border); border-radius: 14px; padding: .6rem .5rem; min-height: 78px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.25; }
.site span { font-size: .85rem; color: var(--muted); } .site em { font-size: .78rem; font-style: normal; color: var(--muted); } .site.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.site .badge { position: absolute; top: -.5rem; right: .4rem; font-style: normal; font-size: .78rem; }
.glpnext .big { margin: .1rem 0; } .glpnext.overdue, .card.glpcard.overdue { box-shadow: inset 5px 0 0 var(--danger), var(--shadow); } .glpnext.due, .card.glpcard.due { box-shadow: inset 5px 0 0 var(--accent), var(--shadow); }
.scalebox { border-top: 1px solid var(--border); margin-top: .75rem; padding-top: .6rem; } .scalebox .counter { margin: 0; } .scalebox p { margin: .3rem 0 0; }

/* measurements, progress photos, health readings */
.mrow { gap: .75rem; padding: .35rem 0; border-top: 1px solid var(--border); } .spark { flex: none; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; } .cmp figure { margin: 0; text-align: center; } .cmp img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--bg); } .cmp figcaption { font-size: .8rem; color: var(--muted); }
.tag { display: inline-block; border-radius: 999px; padding: .1rem .6rem; font-size: .75rem; font-weight: 700; background: var(--bg); color: var(--muted); }
.tag.ok { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); } .tag.warn { background: #fff0d4; color: #8a5a00; } .tag.bad { background: #fde4e1; color: var(--danger); }
@media (prefers-color-scheme: dark) { .tag.warn { background: #3a3118; color: #f0c15a; } .tag.bad { background: #44201e; color: #ff9d94; } }

/* weekly summary */
.weekdots { display: flex; justify-content: space-between; margin: .8rem 0 .4rem; } .wd { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: .75rem; color: var(--muted); } .wd .dot { width: 1.7rem; height: 1.7rem; display: block; }
.streak { margin: .2rem 0; font-size: 1.05rem; }

/* doctor report preview */
.scrollx { overflow-x: auto; } .rt { width: 100%; border-collapse: collapse; font-size: .85rem; } .rt th, .rt td { text-align: left; padding: .3rem .4rem; border-bottom: 1px solid var(--border); } .rt th { color: var(--muted); font-weight: 600; }

/* my meals editor */
.ingrow { border-top: 1px solid var(--border); padding-top: .4rem; margin-top: .4rem; } .ingrow .row { align-items: flex-end; } .ingrow .link { margin-bottom: .6rem; }
.estbox { background: var(--bg); border-radius: 14px; padding: .7rem .8rem; margin: .6rem 0; } .estbox p { margin: .3rem 0; } .estbox details { margin: .3rem 0; }

.protbar { margin: .4rem 0 .6rem; font-size: .9rem; } .protbar .bar { height: 8px; margin-top: .2rem; }

/* mind and habits */
.big-btn { width: 100%; min-height: 64px; font-size: 1.15rem; }
.timerwrap { position: relative; width: 14rem; height: 14rem; margin: .5rem auto; display: flex; align-items: center; justify-content: center; } .timerring { position: absolute; inset: 0; width: 100%; height: 100%; }
.cdown { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; position: relative; }
.breath { position: absolute; width: 8rem; height: 8rem; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); animation: breathe 10s ease-in-out infinite; }
@keyframes breathe { 0% { transform: scale(.6); } 40% { transform: scale(1); } 100% { transform: scale(.6); } }
@media (prefers-reduced-motion: reduce) { .breath { animation: none; transform: scale(.8); } }
.swaprow { display: block !important; padding: .35rem 0; border-top: 1px solid var(--border); } .swaprow span { display: block; }
input[type=range] { width: 100%; accent-color: var(--accent); margin-top: .4rem; }
.faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; margin: .5rem 0; } .face { font: inherit; background: var(--bg); border: 2px solid var(--border); border-radius: 14px; padding: .4rem 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; color: var(--text); } .face span { font-size: 1.7rem; } .face em { font-size: .78rem; font-style: normal; color: var(--muted); } .face.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.hbar { display: grid; grid-template-columns: 6.5rem 1fr 1.5rem; gap: .5rem; align-items: center; font-size: .85rem; margin: .25rem 0; } .hbar .bar { height: 10px; } .hbar b { text-align: right; }
.sleepchart { width: 100%; height: auto; }
.mindcard .mrow { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--border); } .mindcard .mrow:first-of-type { border-top: none; } .mindcard h2 { margin-bottom: .2rem; } .mindcard .btn { margin: 0; flex: none; }
.lessonrow { background: none; border: none; font: inherit; color: var(--text); text-align: left; padding: .5rem 0; width: 100%; cursor: pointer; min-height: 48px; }
.btn[disabled] { opacity: .4; cursor: default; }

/* guided workouts */
.wkcard{text-align:center}
.wkcard.rest{background:var(--tint,#eef6f1)}
.wkname{margin:.2rem 0}
.wkclockbox{display:flex;flex-direction:column;align-items:center;margin:.4rem 0}
.wkclock{font-size:5rem;line-height:1;font-weight:800;font-variant-numeric:tabular-nums;color:var(--accent)}
.wkhow{font-size:1.05rem;max-width:32rem;margin:.6rem auto}
.wkctl{display:flex;gap:.6rem;justify-content:center;align-items:center;margin:.8rem 0}
.wkctl .btn.wide{min-width:9rem;font-size:1.1rem}
.big-btn{width:100%;margin-top:.8rem}
.btn.danger{color:var(--danger);border-color:var(--danger)}
.fli{display:flex;justify-content:space-between;gap:.6rem;align-items:flex-start;padding:.5rem 0;border-bottom:1px solid var(--line,#ddd)}
ul.plain{list-style:none;padding:0;margin:0}

/* app lock */
#lockscreen{position:fixed;inset:0;z-index:100;background:var(--bg,#f3f6fb);display:flex;align-items:center;justify-content:center;padding:1rem}
#lockscreen[hidden]{display:none}
.lockbox{width:100%;max-width:20rem;text-align:center}
.lockico{font-size:2.5rem}
.pindots{display:flex;gap:.8rem;justify-content:center;margin:1rem 0}
.pdot{width:1rem;height:1rem;border-radius:50%;border:2px solid var(--accent);display:inline-block}
.pdot.on{background:var(--accent)}
.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem;margin:1rem 0}
.pkey{font:inherit;font-size:1.6rem;min-height:4rem;border-radius:1rem;border:1px solid var(--line,#ccd);background:var(--card,#fff);color:inherit;cursor:pointer}
.pkey:active{background:var(--accent);color:#fff}
.pkey:disabled{opacity:.4}
.backupnote{border-left:4px solid var(--accent)}

/* meal prep */
ol.prep{list-style:none;padding:0;margin:0}
.prepstep{padding:.6rem 0;border-bottom:1px solid var(--line,#dde3ee)}
.prepstep.done strong{text-decoration:line-through;opacity:.6}
.prepstep .btn{margin:.4rem 0 0 1.9rem}

/* account */
.social{display:flex;flex-wrap:wrap;gap:.5rem}
.social .btn{flex:1 1 40%}

/* Icons in the logo's "friendly dial" style: soft tint, faint track, amber accent dot */
.ic .t { fill: currentColor; stroke: none; opacity: .2; } .ic .k { opacity: .3; } .ic .d { fill: var(--dot); stroke: none; } .ic .d-s { stroke: var(--dot); }
.dlogo img { width: 100%; height: 100%; display: block; }
/* ---- website layer (browser only; the Android app is unchanged) ---- */
.topnav { display: none; }
.tnlink { background: none; border: none; color: inherit; font: inherit; font-size: .95rem; font-weight: 700; padding: .5rem .85rem; border-radius: 999px; cursor: pointer; opacity: .92; letter-spacing: 0; }
.tnlink:hover { background: rgba(255, 255, 255, .18); } .tnlink.sel { background: rgba(255, 255, 255, .26); }
.topnav .grow { flex: 1; }
.btn.light { background: #fff; color: var(--accent-2, var(--accent)); border-color: transparent; }
.sitefoot { max-width: 640px; margin: 1rem auto 6.5rem; padding: 1rem; text-align: center; color: var(--muted); font-size: .85rem; line-height: 1.8; }
.sitefoot .link { min-height: 0; min-width: 0; padding: 0 .2rem; text-decoration: underline; }
.sitefoot[hidden] { display: none; }
body.web .top { position: sticky; top: 0; z-index: 20; }
body.landing .top, body.wide .top { gap: 1rem; }
body.landing .top .logo, body.wide .top .logo { flex: 0 0 auto; }
body.landing .topnav, body.wide .topnav { display: flex; align-items: center; gap: .2rem; flex: 1; min-width: 0; }
body.landing { padding-bottom: 0; }
body.landing .sitefoot { margin-bottom: 2rem; }
/* landing page */
body.landing main#app { max-width: none; padding: 0; }
.land-inner { max-width: 1040px; margin: 0 auto; padding: 2.4rem 1.2rem; }
.land h2 { font-size: clamp(1.4rem, 3.6vw, 2rem); letter-spacing: -.02em; margin: 0 0 1.2rem; }
.land-hero { background: radial-gradient(1200px 400px at 50% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent), var(--bg); text-align: center; }
.land-hero .land-inner { padding-top: 3.2rem; padding-bottom: 2.6rem; }
.land-hero h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; max-width: 16ch; margin: .4rem auto 1rem; }
.land-hero .lead { max-width: 38rem; margin: 0 auto 1.6rem; font-size: 1.15rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; font-size: .78rem; color: var(--accent); margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-bottom: .8rem; }
.big-cta { font-size: 1.1rem; padding: .9rem 1.6rem; min-height: 54px; }
.small { font-size: .85rem; }
.land-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.land-card { background: var(--card); border-radius: 22px; padding: 1.3rem; box-shadow: 0 4px 24px rgba(15, 27, 45, .07); }
.land-card h3 { margin: .8rem 0 .3rem; font-size: 1.1rem; } .land-card p { margin: 0; color: var(--muted); }
.lico { width: 3rem; height: 3rem; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; } .lico svg { width: 1.6rem; height: 1.6rem; }
.land-band { background: var(--card); }
.land-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.land-steps li { counter-increment: s; position: relative; padding-top: 3rem; } .land-steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--grad); color: var(--accent-text); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.land-steps strong { display: block; font-size: 1.1rem; } .land-steps span { color: var(--muted); }
.land-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; } .land-two h2 { font-size: 1.4rem; }
.faq { background: var(--card); border-radius: 16px; padding: .9rem 1.1rem; margin: .6rem 0; box-shadow: 0 2px 12px rgba(15, 27, 45, .05); } .faq summary { cursor: pointer; font-weight: 700; } .faq p { margin: .6rem 0 0; color: var(--muted); }
body.web:not(.wide):not(.landing) main#app { max-width: 720px; }
body.landing:not(.wide) main#app > section.card { max-width: 720px; margin: 1.5rem auto; }
/* desktop app layout (design A): full-height sidebar + page */
@media (min-width: 1000px) {
  body.wide { padding-bottom: 0; }
  body.wide .top { background: transparent; color: var(--text); box-shadow: none; border-radius: 0; margin-left: 248px; padding: 1.2rem 2.5rem 0; font-size: 1.1rem; }
  body.wide.h1 .top { display: none; }
  body.wide .top .hdr, body.wide .top .topnav { display: none; }
  body.wide #menuBtn, body.wide #nav { display: none !important; }
  body.wide #scrim { display: none !important; }
  body.wide #drawer { top: 0; left: 0; bottom: 0; width: 248px; transform: none; visibility: visible; border-radius: 0; box-shadow: none; border-right: 1px solid var(--border); background: var(--card); z-index: 10; }
  body.wide #drawer .dhead { background: none; color: var(--text); border-radius: 0; padding: 1.4rem 1.2rem .8rem; } body.wide #drawer .dhead span:not(.dlogo) { color: var(--muted); font-size: .8rem; } body.wide #drawer .dhead .hbtn { display: none; }
  body.wide .dbody { padding: .2rem .8rem 1rem; }
  body.wide .dbody h3 { margin: 1rem .7rem .25rem; font-size: .72rem; }
  body.wide .ditem { min-height: 44px; padding: .25rem .7rem; gap: .7rem; border-radius: 12px; }
  body.wide .ditem .dico { width: 1.6rem; height: 1.6rem; background: none; border-radius: 0; color: inherit; } body.wide .ditem.sel .dico { background: none; color: var(--accent); }
  body.wide .ditem .dtxt span { display: none; } body.wide .ditem .dtxt strong { font-size: .9rem; font-weight: 600; } body.wide .ditem.sel .dtxt strong { font-weight: 700; }
  body.wide .dacct { margin: auto .8rem .9rem; display: flex; align-items: center; gap: .7rem; padding: .7rem; border-radius: 14px; background: var(--bg); border: 0; font: inherit; color: var(--text); text-align: left; cursor: pointer; min-height: 56px; width: calc(100% - 1.6rem); }
  body.wide .dacct b { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
  body.wide .dacct span { display: flex; flex-direction: column; line-height: 1.25; font-size: .9rem; font-weight: 700; } body.wide .dacct small { color: var(--muted); font-weight: 500; font-size: .78rem; }
  body.wide main#app { margin-left: 248px; max-width: 1260px; padding: 2rem 2.5rem; columns: 400px 2; column-gap: 1.5rem; margin-right: auto; }
  body.wide main#app > * { break-inside: avoid; }
  body.wide main#app > .bhead, body.wide main#app > .bstrip, body.wide main#app > .fdayhead, body.wide main#app > .dpills, body.wide main#app > .seg, body.wide main#app > .msum, body.wide main#app > .card.notice, body.wide main#app > .wstats, body.wide main#app > .wcols { column-span: all; }
  body.wide .fdayhead { justify-content: flex-start; text-align: left; } body.wide .fdayhead > div { text-align: left; flex: none; } body.wide .fdayhead h1 { font-size: 2.1rem; }
  body.wide main#app > .toast { position: fixed; }
  body.wide .sitefoot { margin: 1rem 0 2rem 248px; max-width: 1260px; padding: 0 2.5rem; }
}
@media print { .topnav, .sitefoot { display: none !important; } }
.land-card h3, .land-two h3 { text-transform: none; letter-spacing: -.01em; color: var(--text); font-size: 1.1rem; }
@media (max-width: 699px) {
  body.landing .topnav [data-act=landhome], body.landing .topnav [data-t=about], body.landing .topnav [data-t=privacy] { display: none; }
  body.landing .topnav { justify-content: flex-end; }
  body.landing .top { padding: .8rem 1rem; }
}

/* slim, quiet scrollbar for the menu: invisible until you point at it */
.dbody { scrollbar-width: thin; scrollbar-color: transparent transparent; overscroll-behavior: contain; padding-right: .35rem; }
.dbody:hover, .dbody:focus-within { scrollbar-color: color-mix(in srgb, var(--muted) 55%, transparent) transparent; }
.dbody::-webkit-scrollbar { width: 8px; }
.dbody::-webkit-scrollbar-track { background: transparent; }
.dbody::-webkit-scrollbar-thumb { background: transparent; border-radius: 8px; }
.dbody:hover::-webkit-scrollbar-thumb, .dbody:focus-within::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 55%, transparent); }

/* exercise sessions */
.stopw { font-size: 1.3rem; margin: .2rem 0; font-variant-numeric: tabular-nums; }
.fli .col { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; flex: none; }
.fli .col .link { min-height: 0; padding: 0; font-size: .85rem; text-decoration: underline; }

/* plans */
.plustag { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--grad); color: var(--accent-text); border-radius: 999px; padding: .1rem .45rem; margin-left: .4rem; vertical-align: middle; }
.plan-price { margin: .6rem 0 0; } .plan-price span { font-size: 1rem; color: var(--muted); font-weight: 600; }
.fli.hl { background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 12px; padding-left: .5rem; padding-right: .5rem; }

/* ---- Design B "Coach": quiet header, floating pill navigation, and the Today screen ---- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* floating pill navigation (phone and narrow windows) */
body:not(.wide) { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
body:not(.wide) .tabs { left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); padding: 6px; gap: 2px; border-radius: 34px; box-shadow: 0 8px 28px rgba(15, 27, 45, .16); border: 1px solid var(--border); }
body:not(.wide) .tabs button { min-height: 52px; border-radius: 28px; flex-direction: row; gap: .35rem; flex: 1; }
body:not(.wide) .tabs button span { display: none; }
body:not(.wide) .tabs button.sel { flex: 1.7; background: var(--accent); color: var(--accent-text); font-weight: 700; }
body:not(.wide) .tabs button.sel span { display: inline; font-size: .8rem; }
body:not(.wide) .tabs button.sel svg .d { fill: var(--accent-text); }
/* quiet header on inner pages: big title, circular buttons */
body:not(.wide):not(.landing) .top { background: var(--bg); color: var(--text); border-radius: 0; box-shadow: none; padding: 1rem 1rem .4rem; font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; }
body:not(.wide):not(.landing) .top .logo { margin-left: .4rem; }
body:not(.wide):not(.landing) .hbtn { background: var(--card); color: var(--accent); box-shadow: var(--shadow); }
body:not(.wide):not(.landing) .hbtn:hover { background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
body.home:not(.wide) .top { display: none; }
body:not(.wide):not(.landing) .top #install { font-size: .8rem; }
/* Today */
.bhead { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .4rem .1rem .1rem; }
.bdate { color: var(--muted); font-size: .8rem; font-weight: 600; }
.bhead h1 { margin: .1rem 0 0; font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.bavatar { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--accent) 14%, var(--card)); color: var(--accent); font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; }
body.wide .bavatar { display: none; }
.bstrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--card); border-radius: 20px; box-shadow: var(--shadow); margin: .7rem 0; }
.bstrip > div { padding: .6rem .8rem; } .bstrip > div + div { border-left: 1px solid var(--border); }
.bstrip strong { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; } .bstrip small { font-size: .75rem; font-weight: 600; color: var(--muted); }
.bstrip span { color: var(--muted); font-size: .78rem; font-weight: 600; }
.bnext { background: var(--grad); color: var(--accent-text); border-radius: 24px; padding: 1.05rem 1.1rem; box-shadow: 0 4px 18px rgba(4, 120, 87, .28); margin-bottom: .8rem; }
.bnextlabel { display: flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .92; }
.bnextlabel i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); display: inline-block; }
.bnext h2 { margin: .3rem 0 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: inherit; text-transform: none; }
.bnext p { margin: .15rem 0 0; font-size: .85rem; opacity: .95; }
.bnextcta { display: flex; align-items: center; gap: .8rem; margin-top: .8rem; flex-wrap: wrap; }
.bbtn { min-height: 48px; padding: 0 1.4rem; border: 0; border-radius: 999px; background: #fff; color: #047857; font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer; }
.blink { min-height: 44px; padding: 0 .3rem; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bsec { margin: .9rem .2rem .45rem; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tl { position: relative; background: var(--card); border-radius: 22px; padding: .3rem 1rem; box-shadow: var(--shadow); }
.tl::before { content: ''; position: absolute; left: 83px; top: 30px; bottom: 30px; width: 2px; background: var(--border); }
.tlrow { display: flex; align-items: center; gap: 12px; min-height: 58px; } .tlrow + .tlrow { border-top: 1px solid var(--border); }
.tltime { flex: none; width: 44px; font-size: .78rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.tlnode { position: relative; z-index: 1; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 2px solid color-mix(in srgb, var(--muted) 45%, var(--card)); box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; color: var(--accent-text); }
.tlrow.fin .tlnode { background: var(--accent); border-color: var(--accent); }
.tlrow.now .tlnode { border: 3px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, var(--card)); }
.tlrow.now .tltime { color: var(--text); font-weight: 800; }
.tltxt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .tltxt strong { font-size: .85rem; font-weight: 700; } .tltxt span { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.tlrow.now .tltxt strong { font-weight: 800; }
.bchip { flex: none; min-height: 40px; padding: 0 .85rem; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--accent); font: inherit; font-weight: 700; font-size: .78rem; cursor: pointer; }
.bchip.alt { background: var(--card); border: 2px solid var(--border); color: var(--text); }

/* ---- Design B, stage 2: Meals and the workout player ---- */
.dpills { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: .2rem 0 .8rem; }
.dpill { min-height: 64px; border: 0; border-radius: 18px; background: var(--card); color: var(--text); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; font: inherit; cursor: pointer; position: relative; }
.dpill span { font-size: .78rem; font-weight: 700; color: var(--muted); } .dpill b { font-size: 1rem; font-weight: 800; }
.dpill.today::after { content: ''; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--dot); }
.dpill.sel { background: var(--accent); color: var(--accent-text); box-shadow: 0 4px 14px rgba(4, 120, 87, .3); } .dpill.sel span { color: var(--accent-text); opacity: .9; }
.msum { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 0 .2rem; margin-bottom: .6rem; font-size: .8rem; }
.msum .muted { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; }
.mbar { display: inline-block; width: 56px; height: 6px; border-radius: 4px; background: var(--border); overflow: hidden; } .mbar i { display: block; height: 100%; background: var(--accent); }
.mlinks { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 .7rem; }
.mealb { background: var(--card); border-radius: 22px; padding: .9rem 1rem; box-shadow: var(--shadow); margin-bottom: .7rem; border: 2px solid transparent; }
.mealb.nextb { border-color: var(--accent); }
.mealbtop { display: flex; align-items: center; justify-content: space-between; }
.mealbslot { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.mealbdone { display: inline-flex; align-items: center; gap: .25rem; font-size: .78rem; font-weight: 700; color: var(--accent); }
.mealb h2 { margin: .25rem 0 .5rem; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; text-transform: none; color: var(--text); }
.mchips { display: flex; gap: 6px; flex-wrap: wrap; } .mchips span { padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 13%, var(--card)); color: var(--accent); font-size: .78rem; font-weight: 700; } .mchips span.gray { background: color-mix(in srgb, var(--muted) 14%, var(--card)); color: var(--muted); }
.mealbact { display: flex; align-items: center; gap: .7rem; margin-top: .5rem; }
.bchip.solid { background: var(--accent); color: var(--accent-text); min-height: 44px; padding: 0 1.2rem; font-size: .8rem; }
.blink2 { min-height: 44px; padding: 0 .4rem; border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 700; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mdet { margin-top: .2rem; } .mdet summary { cursor: pointer; color: var(--muted); font-size: .75rem; font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.mrow2 { display: flex; gap: .5rem; flex-wrap: wrap; margin: .3rem 0 .8rem; }
.pset summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
/* workout player: immersive, no header or navigation */
body.playing .top, body.playing .tabs { display: none; } body.playing { padding-bottom: 1.5rem; }
.play { text-align: center; background: transparent; box-shadow: none; padding: .2rem 0 0; }
.playtop { display: flex; align-items: center; justify-content: space-between; }
.pbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); color: var(--text); box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; } .pbtn svg { width: 1.3rem; height: 1.3rem; } .pgap { width: 44px; }
.playtitle { display: flex; flex-direction: column; } .playtitle strong { font-size: .9rem; font-weight: 800; letter-spacing: -.02em; } .playtitle span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.pseg { display: grid; gap: 6px; margin: 1rem 0 .2rem; text-align: left; } .pbar { height: 6px; border-radius: 4px; background: var(--border); overflow: hidden; } .pbar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); } .pbar.solo { margin: 1rem 0 .2rem; }
.pseg span { display: block; margin-top: 4px; font-size: .78rem; font-weight: 700; color: var(--muted); } .pseg span.on { color: var(--accent); font-weight: 800; }
.plabel { font-size: .75rem; margin-top: .3rem; }
.ringbox { position: relative; width: 250px; height: 250px; margin: .6rem auto 0; } .ringbox svg { display: block; }
.rbg { fill: var(--card); stroke: var(--border); stroke-width: 12; } .rfg { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round; transition: stroke-dasharray .3s linear; } .rfg.rest { stroke: var(--dot); }
.ringnum { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; } .ringnum .wkclock { font-size: 5rem; line-height: 1; } .ringnum span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.play .wkname { margin: .8rem 0 0; font-size: 1.55rem; }
.pwatch { display: flex; align-items: center; justify-content: space-around; background: var(--card); border-radius: 18px; padding: .6rem .8rem; box-shadow: var(--shadow); margin: .8rem 0 .5rem; }
.pwatch div { display: flex; flex-direction: column; } .pwatch b { font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; } .pwatch span { font-size: .78rem; color: var(--muted); font-weight: 600; } .pwatch i { width: 1px; height: 30px; background: var(--border); }
.pnext { display: flex; align-items: center; justify-content: space-between; background: color-mix(in srgb, var(--accent) 12%, var(--card)); border-radius: 18px; padding: .6rem .9rem; text-align: left; }
.pnext em { display: block; font-style: normal; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); } .pnext strong { font-size: .85rem; } .pnext span { font-size: .75rem; font-weight: 700; color: var(--accent); }
.play .wkctl { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 1rem 0 .2rem; }
.pround { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--card); color: var(--text); box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.pbig { width: 80px; height: 80px; border-radius: 50%; border: 0; background: var(--grad); color: var(--accent-text); box-shadow: 0 6px 20px rgba(4, 120, 87, .35); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ringbox { width: 214px; height: 214px; margin-top: .3rem; } .ringbox svg { width: 100%; height: 100%; }
.ringnum .wkclock { font-size: 4.2rem; } .play .wkname { margin-top: .5rem; font-size: 1.4rem; } .play .wkhow { font-size: .95rem; margin: .3rem .5rem; }
.pwatch { margin: .5rem 0 .4rem; padding: .45rem .8rem; } .play .wkctl { margin: .7rem 0 .1rem; }

/* ---- Design B, stage 3: Food log ---- */
.fdayhead { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: .1rem 0 .7rem; }
.fdayhead > div { flex: 1; text-align: center; } .fdayhead h1 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; } .fdayhead .muted { font-size: .8rem; }
.pbtn[disabled] { opacity: .35; cursor: default; }
.fsum { background: var(--card); border-radius: 22px; padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.fbig { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-bottom: .45rem; } .fbig strong { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; } .fbig span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.fsum .bar { height: 10px; }
.fprot { margin-top: .7rem; font-size: .85rem; color: var(--muted); font-weight: 600; } .fprot strong { color: var(--text); } .fprot .bar { height: 7px; margin-top: .3rem; }
.fstate { margin: .7rem 0 0; font-size: .85rem; font-weight: 700; }
.fnote { margin: .3rem .2rem 0; font-size: .8rem; }
.fplan { display: flex; flex-direction: column; gap: .5rem; } .fplan .foodrow { background: var(--card); border: 0; border-radius: 18px; box-shadow: var(--shadow); padding: .7rem 1rem; min-height: 56px; }
.flog { background: var(--card); border-radius: 20px; padding: .7rem 1rem; box-shadow: var(--shadow); margin-bottom: .6rem; }
.flogtop { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .1rem; } .flogtop .muted { font-size: .8rem; font-weight: 600; }
.fname { font-weight: 700; font-size: .9rem; }
.flog ul.plain li.fli { border-top: 1px solid var(--border); padding: .4rem 0; align-items: center; }
.flog ul.plain li.fli:first-child { border-top: 0; }
.qty .btn { border-radius: 50%; min-height: 40px; min-width: 40px; padding: 0; }
.fslots { margin-bottom: .6rem; }
.fsearch { width: 100%; font: inherit; padding: .8rem 1.1rem; border: 2px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text); box-shadow: var(--shadow); min-height: 52px; }
.fsearch:focus { border-color: var(--accent); outline: none; }
.fres { margin: .5rem 0; } .fres .foodrow { background: var(--card); border: 0; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: .4rem; }
.ftiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .6rem; }
.ftile { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; text-align: left; font: inherit; color: var(--text); background: var(--card); border: 0; border-radius: 20px; padding: .8rem .9rem; box-shadow: var(--shadow); min-height: 96px; cursor: pointer; }
.ftile .ic { color: var(--accent); margin-bottom: .2rem; } .ftile strong { font-size: .85rem; font-weight: 800; line-height: 1.25; } .ftsub { color: var(--muted); font-size: .78rem; }
.ftile.primary { background: var(--grad); color: var(--accent-text); box-shadow: 0 4px 18px rgba(4, 120, 87, .28); } .ftile.primary .ic, .ftile.primary .ftsub { color: var(--accent-text); opacity: .95; }

/* ---- Design B, stage 3: Shopping list and pantry ---- */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: color-mix(in srgb, var(--muted) 14%, var(--card)); border-radius: 999px; margin: .2rem 0 .8rem; }
.seg button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; }
.seg button.sel { background: var(--card); color: var(--accent); box-shadow: var(--shadow); }
.shsum .shnote { font-size: .8rem; margin: .5rem 0 0; }
.shact { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; } .shact .btn { min-height: 44px; padding: 0 1rem; font-size: .85rem; }
.shgroup { background: var(--card); border-radius: 20px; padding: .7rem 1rem; box-shadow: var(--shadow); margin: .7rem 0 0; }
.shgtop { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .2rem; } .shgtop .muted { font-weight: 700; font-size: .85rem; color: var(--text); }
.shgroup ul.plain li.shopli { border-top: 1px solid var(--border); padding: .5rem 0; align-items: center; } .shgroup ul.plain li.shopli:first-child { border-top: 0; }
.shgroup .check { margin: 0; align-items: center; } .shgroup .check input { width: 1.5rem; height: 1.5rem; accent-color: var(--accent); flex: none; }
.shgroup .price .link { color: var(--text); font-weight: 800; font-size: .9rem; } .shgroup .price a { font-size: .75rem; color: var(--muted); }
.shgroup ul.plain li.pan { border-top: 1px solid var(--border); padding: .5rem 0; } .shgroup ul.plain li.pan:first-child { border-top: 0; }
.shgroup .rowact { grid-column: 1 / -1; display: flex; gap: .5rem; padding-top: .4rem; }

/* ---- Design B, stage 3: Goals ---- */
.gsum .bar { height: 10px; }
.gstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .8rem; }
.gstats div { display: flex; flex-direction: column; } .gstats strong { font-size: 1.05rem; font-weight: 800; } .gstats span { color: var(--muted); font-size: .78rem; font-weight: 600; }
.gms .ms { padding: .55rem 0; border-top: 1px solid var(--border); } .gms .ms:first-child { border-top: 0; }
.gms .msh { display: flex; justify-content: space-between; font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.shgroup #wform { margin-top: .6rem; } .shgroup #wform input { border-radius: 999px; }
.gdet { margin-top: .6rem; } .gdet summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--accent); cursor: pointer; }
.gset { width: 100%; margin: .8rem 0 0; min-height: 64px; }

/* ---- Design B, stage 3: Move ---- */
.mvgroup > .muted { margin: .1rem 0 .4rem; font-size: .85rem; }
.mvgroup .foodrow { background: transparent; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; min-height: 60px; padding: .5rem 0; }
.mvgroup .muted + .foodrow { border-top: 0; }
.mvhero .bnextcta { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.pset h3 { font-size: .95rem; margin: .8rem 0 .1rem; }

/* ---- Design B, stage 3: Settings ---- */
.setg h2 { margin: 0 0 .5rem; font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--text); }
.seg.seg3 { grid-template-columns: repeat(3, 1fr); margin: .2rem 0 0; }
#view > section.card, main > section.card { border-radius: 20px; box-shadow: var(--shadow); }

/* ---- Design B: remaining menu pages ---- */
.fdayhead .hback { display: block; margin: 0 auto .2rem; min-height: 36px; font-size: .85rem; color: var(--accent); font-weight: 700; }
main > .card:first-of-type, #app > .card:first-of-type { margin-top: 0; }

/* ---- Web layout A: Today cards ---- */
.whead { align-items: flex-end; flex-wrap: wrap; } .whbtns { display: flex; gap: .6rem; } .whbtns .btn { margin: 0; }
body.wide .whead h1 { font-size: 2.1rem; }
.wstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1.1rem 0 1.25rem; }
.wstat { background: var(--card); border-radius: 20px; padding: 1.1rem 1.25rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.wstat > span:first-child { font-size: .85rem; color: var(--muted); font-weight: 600; }
.wstat strong { font-size: 2.1rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; } .wstat strong small { font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.wstat .bar { height: 8px; margin-top: .55rem; } .wstat .wsub { color: var(--muted); font-size: .85rem; margin-top: .55rem; }
.wglass { display: flex; gap: 4px; margin-top: .75rem; } .wglass i { flex: 1; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--muted) 22%, var(--card)); } .wglass i.on { background: var(--accent); }
.wcols { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; column-span: all; }
.wcol { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; flex: 1 1 340px; } .wcol:first-child { flex: 1.5 1 440px; }
.wcol > * { margin: 0 !important; }
.wcol .bnext { padding: 1.5rem 1.7rem; border-radius: 26px; } .wcol .bnext h2 { font-size: 1.7rem; }
.tlcard { padding: .4rem 1.4rem .6rem; border-radius: 22px; } .tlcard > h2 { margin: .9rem 0 .2rem; font-size: 1.1rem; font-weight: 800; }
.tlcard .tl { box-shadow: none; padding: 0; }
.wcard { padding: 1.3rem 1.5rem; border-radius: 22px; } .wcard h2 { margin: 0 0 .3rem; font-size: 1.1rem; font-weight: 800; }
.wcardtop { display: flex; justify-content: space-between; align-items: baseline; } .wgood { color: var(--accent); font-weight: 700; font-size: .85rem; }
.wbig { font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; } .wbig small { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.wcard .chart { margin: .3rem 0 .2rem; } .wcard .bar { height: 8px; } .wsplit { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; font-weight: 600; margin-top: .4rem; }
.wkdots { display: flex; gap: .5rem; margin: .5rem 0; } .wkd { flex: 1; text-align: center; } .wkd span { display: block; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--muted) 18%, var(--card)); } .wkd span.on { background: var(--accent); } .wkd small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.wlinks { padding: .3rem 1.4rem; border-radius: 22px; } .wlinks button { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 56px; background: none; border: 0; border-top: 1px solid var(--border); font: inherit; font-weight: 700; color: var(--text); cursor: pointer; } .wlinks button:first-child { border-top: 0; }
@media (max-width: 1200px) { .wstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Web layout A: Meals week grid ---- */
.mwbudget { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: var(--card); border-radius: 20px; padding: 1rem 1.5rem; box-shadow: var(--shadow); margin: 1rem 0; }
.mwbudget > div:first-child span { display: block; color: var(--muted); font-size: .85rem; font-weight: 600; } .mwbudget strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; } .mwbudget small { font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.mwbudget .bar { flex: 1 1 200px; height: 10px; margin: 0; }
body.wide main#app > .mwbudget, body.wide main#app > .mgwrap, body.wide main#app > .mwdetail, body.wide main#app > .mrow2, body.wide main#app > details.pset { column-span: all; }
.mgwrap { overflow-x: auto; margin-bottom: 1.25rem; }
.mgrid { display: grid; grid-template-columns: 76px repeat(7, minmax(104px, 1fr)); gap: 8px; min-width: 840px; }
.mghd { text-align: center; padding: .55rem .3rem; border-radius: 14px; font-weight: 700; font-size: .85rem; color: var(--muted); } .mghd.today { background: var(--accent); color: var(--accent-text); font-weight: 800; }
.mgslot { padding-top: .8rem; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.mgcell { text-align: left; font: inherit; color: var(--text); background: var(--card); border: 2px solid transparent; border-radius: 16px; padding: .7rem .8rem; box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; gap: .25rem; min-height: 96px; }
.mgcell strong { font-size: .85rem; line-height: 1.3; } .mgcell span { color: var(--muted); font-size: .78rem; } .mgcell em { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--accent); } .mgcell em.gray { color: var(--muted); }
.mgcell.sel { border-color: var(--accent); } .mgcell.eaten strong { color: var(--muted); } .mgcell:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.mwdetail { padding: 1.4rem 1.7rem; border-radius: 24px; } .mwdetail h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; margin: .3rem 0 .6rem; }
.mwtop { display: flex; justify-content: space-between; align-items: center; } .mwbody { margin-top: .9rem; columns: 2 320px; column-gap: 2rem; } .mwbody p, .mwbody ul { break-inside: avoid; }
body.wide .mrow2 { margin: 0 0 1rem; }

/* ---- Web layout A: Food log ---- */
body.wide main#app > .fdayhead { justify-content: flex-start; }
.fcols .wcol { gap: 1rem; } .fcols .wcol:first-child { flex: 1.1 1 400px; } .fcols .wcol:last-child { flex: 1 1 400px; }
.fcols .fsum { padding: 1.3rem 1.5rem; border-radius: 24px; } .fcols .fbig strong { font-size: 2.6rem; }
.fcols .ftiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fcols .bsec { margin-top: 0; }
body.wide main#app > .fcols { column-span: all; }

/* ---- Web layout A: Shopping ---- */
body.wide main#app > .seg { max-width: 420px; }
.shw { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; column-span: all; }
.shmain { flex: 1.8 1 520px; min-width: 0; } .shside { order: 2; flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 1rem; }
.shside > * { margin: 0 !important; }
.shgrid { columns: 2 400px; column-gap: 1rem; } .shgrid > .shgroup { break-inside: avoid; margin: 0 0 1rem; }
body.wide main#app > .shw { column-span: all; }
@media (max-width: 1150px) { .shside { order: 0; position: static; } }

/* ---- Web layout A: Goals ---- */
body.wide .wcol .gsum { padding: 1.4rem 1.6rem; border-radius: 24px; } body.wide .wcol .gsum .fbig strong { font-size: 2.8rem; }
body.wide .wcol > .bsec { margin: .4rem .2rem -.4rem; }
body.wide .wcol > .shgroup { margin: 0; }

/* ---- Web layout A: Move ---- */
body.wide .wcol .mvhero { padding: 1.5rem 1.7rem; border-radius: 26px; } body.wide .wcol .mvhero h2 { font-size: 1.7rem; }
body.wide .wcol > .bsec { margin: .4rem .2rem -.4rem; }
body.wide .wcol .ftiles { margin-top: 0; }
body.wide .wcol .mvgroup { margin: 0; }

/* ---- Web layout A: Settings ---- */
body.wide .wcol > .bsec { margin: .4rem .2rem -.4rem; }
body.wide .wcol > .shgroup, body.wide .wcol > .card, body.wide .wcol > .ftile { margin: 0; }
body.wide .wcol > .gset { width: 100%; }
