/* BUFF OS v111 — Step counter + walking rows in the Home 100-day challenge. */
.v111-card { padding-bottom: 14px; }
.v111-top { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.v111-ring { width: 84px; height: 84px; flex: none; position: relative; }
.v111-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.v111-ring circle { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 4; }
.v111-ring circle.fg { stroke: var(--accent, #3ddc84); stroke-linecap: round; transition: stroke-dashoffset .5s; }
.v111-ring.done circle.fg { stroke: #ffd166; }
.v111-ring i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 15px; color: var(--txt); }
.v111-big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--txt); font-variant-numeric: tabular-nums; }
.v111-sub { font-size: 12.5px; font-weight: 700; color: var(--txt3); margin-top: 2px; }
.v111-set { display: flex; gap: 8px; margin-top: 12px; }
.v111-set input { flex: 1; min-width: 0; padding: 11px 12px; border: 0; border-radius: 12px; background: var(--card2, rgba(255,255,255,.08)); color: var(--txt); font: inherit; font-size: 16px; font-weight: 700; }
.v111-set .btn { margin: 0; }
.v111-week { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: 14px; }
.v111-week div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: 10.5px; font-weight: 700; color: var(--txt3); }
.v111-week b { width: 100%; border-radius: 6px; background: rgba(255,255,255,.14); min-height: 3px; display: block; }
.v111-week b.hit { background: var(--accent, #3ddc84); }
.v111-how { margin-top: 12px; font-size: 12.5px; color: var(--txt2); } .v111-how summary { cursor: pointer; font-weight: 700; }
.v111-how code { word-break: break-all; font-size: 11.5px; }
.c100-row.v111-row .c100-ico i { font-size: 11px; }

.v111-bal { margin: 4px 0 12px; }
.v111-bh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--txt3); }
.v111-bh em { font-style: normal; letter-spacing: 0; text-transform: none; font-size: 12px; color: #ffb866; }
.v111-bal .v96-bal { display: flex; height: 28px; border-radius: 10px; overflow: hidden; }
.v111-bal .v96-bal div { display: flex; align-items: center; padding: 0 10px; background: rgba(95,211,154,.3); min-width: 0; }
.v111-bal .v96-bal div.lo { background: rgba(255,184,102,.35); }
.v111-bal .v96-bal b { font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; }
.v111-bal .v96-bal div.co { background: rgba(120,170,255,.3); }

.v111-bal { cursor: pointer; }
.v111-ov { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
.v111-sheet { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; box-sizing: border-box; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--bg2, #17181c); color: var(--txt); }
.v111-top2 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .v111-top2 h2 { margin: 0; font-size: 20px; }
.v111-top2 button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--txt); font-size: 16px; cursor: pointer; }
.v111-sheet .v96-bal { display: flex; height: 28px; border-radius: 10px; overflow: hidden; } .v111-sheet .v96-bal div { display: flex; align-items: center; padding: 0 10px; background: rgba(95,211,154,.3); } .v111-sheet .v96-bal div.lo { background: rgba(255,184,102,.35); } .v111-sheet .v96-bal div.co { background: rgba(120,170,255,.3); } .v111-sheet .v96-bal b { font-size: 12px; white-space: nowrap; overflow: hidden; }
.v111-p { font-size: 13.5px; line-height: 1.45; color: var(--txt2); margin: 12px 0; }
.v111-sec { margin-top: 14px; } .v111-sh { display: flex; align-items: center; gap: 8px; font-size: 15px; } .v111-sh em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--txt3); font-weight: 700; }
.v111-dot { width: 10px; height: 10px; border-radius: 50%; } .v111-dot.u { background: #5fd39a; } .v111-dot.l { background: #ffb866; } .v111-dot.c { background: #78aaff; }
.v111-ex { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: 13px; } .v111-ex span:last-child { color: var(--txt3); text-align: right; font-size: 12px; } .v111-ex i { font-style: normal; color: var(--txt3); font-size: 11.5px; }

.v111-bal .v96-bal div.up, .v111-sheet .v96-bal div.up { background: rgba(95,211,154,.3); }
.v111-bal .v96-bal b, .v111-sheet .v96-bal b { font-size: 13px; }
.v111-leg { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--txt2); }
.v111-leg span { display: flex; align-items: center; gap: 6px; } .v111-leg b { color: var(--txt); font-size: 14px; }
.v111-leg i { width: 11px; height: 11px; border-radius: 4px; } .v111-leg i.u { background: #5fd39a; } .v111-leg i.l { background: #ffb866; } .v111-leg i.c { background: #78aaff; }

.v111-wbars { display: flex; align-items: flex-end; gap: 3px; height: 48px; } .v111-wbars.big { height: 74px; margin-bottom: 4px; }
.v111-wbars b { flex: 1; border-radius: 3px; background: rgba(255,255,255,.1); } .v111-wbars b.on { background: #4ecb8f; } .v111-wbars b.now { outline: 1.5px solid #ffd166; }
.v111-ex b { color: var(--txt); }

.v111-planwrap { margin: 14px 0 4px; } .v111-ph2 { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--txt3); margin-bottom: 8px; } .v111-ph2 i { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 700; color: #4ecb8f; margin-left: 6px; }
.v111-plan { padding: 12px; margin-bottom: 10px; border-radius: 16px; background: rgba(255,184,102,.09); border: 1px solid rgba(255,184,102,.25); } .v111-plan.ok { background: rgba(95,211,154,.08); border-color: rgba(95,211,154,.25); }
.v111-ph { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 16px; } .v111-ph em { font-style: normal; font-size: 12.5px; color: var(--txt3); font-weight: 700; }
.v111-pb { height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); margin: 8px 0 6px; overflow: hidden; } .v111-pb div { height: 100%; background: #ffb866; border-radius: 4px; }
.v111-pt { font-size: 12.5px; color: var(--txt2); margin-bottom: 4px; line-height: 1.4; } .v111-pt b { color: var(--txt); }
.v111-rec span:last-child { display: flex; align-items: center; gap: 8px; color: var(--txt); font-size: 13px; } .v111-rec i { font-style: normal; color: var(--txt3); font-size: 11.5px; }
.v111-go { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #ffb866; color: #1a1306; font-size: 13px; cursor: pointer; }

/* Dock locked to the bottom: no centring transform (it jittered on iOS with the frosted plate), no page bounce behind it. */
html, body { overscroll-behavior-y: none !important; }
.tabbar { left: 0 !important; right: 0 !important; margin-left: auto !important; margin-right: auto !important; bottom: 0 !important; transform: translate3d(0, 0, 0) !important; -webkit-transform: translate3d(0, 0, 0) !important; will-change: transform; transition: opacity .3s !important; contain: layout; }
.tabbar.hidden { transform: translate3d(0, 160%, 0) !important; }
.tabbar { touch-action: manipulation; overscroll-behavior: none; }
.v111-link2 { display: block; width: 100%; margin-top: 10px; padding: 10px; border: 0; border-radius: 12px; background: rgba(255,255,255,.07); color: var(--txt2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
